Changeset 3351118
- Timestamp:
- 08/27/2025 10:57:39 AM (7 months ago)
- Location:
- theme-site-kit
- Files:
-
- 305 added
- 13 edited
-
tags/1.0.5 (added)
-
tags/1.0.5/assets (added)
-
tags/1.0.5/assets/font-awesome (added)
-
tags/1.0.5/assets/font-awesome/css (added)
-
tags/1.0.5/assets/font-awesome/css/all.css (added)
-
tags/1.0.5/assets/font-awesome/css/all.min.css (added)
-
tags/1.0.5/assets/font-awesome/webfonts (added)
-
tags/1.0.5/assets/font-awesome/webfonts/fa-brands-400.ttf (added)
-
tags/1.0.5/assets/font-awesome/webfonts/fa-brands-400.woff2 (added)
-
tags/1.0.5/assets/font-awesome/webfonts/fa-regular-400.ttf (added)
-
tags/1.0.5/assets/font-awesome/webfonts/fa-regular-400.woff2 (added)
-
tags/1.0.5/assets/font-awesome/webfonts/fa-solid-900.ttf (added)
-
tags/1.0.5/assets/font-awesome/webfonts/fa-solid-900.woff2 (added)
-
tags/1.0.5/assets/font-awesome/webfonts/fa-v4compatibility.ttf (added)
-
tags/1.0.5/assets/font-awesome/webfonts/fa-v4compatibility.woff2 (added)
-
tags/1.0.5/assets/images (added)
-
tags/1.0.5/assets/images/blockons.png (added)
-
tags/1.0.5/assets/images/kwtsk-logo.png (added)
-
tags/1.0.5/assets/images/layouts.png (added)
-
tags/1.0.5/assets/images/linkt.png (added)
-
tags/1.0.5/assets/images/patterns.png (added)
-
tags/1.0.5/assets/images/settings.png (added)
-
tags/1.0.5/assets/images/storecustomizer.png (added)
-
tags/1.0.5/assets/patterns (added)
-
tags/1.0.5/assets/patterns/background-dots.png (added)
-
tags/1.0.5/assets/patterns/footer-bg-logo-white.png (added)
-
tags/1.0.5/assets/patterns/footer-bg-logo.png (added)
-
tags/1.0.5/assets/patterns/maintenance-1.png (added)
-
tags/1.0.5/assets/patterns/maintenance-2.png (added)
-
tags/1.0.5/assets/patterns/maintenance-3.png (added)
-
tags/1.0.5/dist (added)
-
tags/1.0.5/dist/057b6239ee908ef0c212.png (added)
-
tags/1.0.5/dist/438513ee5fbca476b645.png (added)
-
tags/1.0.5/dist/49565bb914cd23f6af7e.png (added)
-
tags/1.0.5/dist/55837204424005438f4f.png (added)
-
tags/1.0.5/dist/admin.css (added)
-
tags/1.0.5/dist/admin.js (added)
-
tags/1.0.5/dist/admin.min.css (added)
-
tags/1.0.5/dist/admin.min.js (added)
-
tags/1.0.5/dist/code-snippets.css (added)
-
tags/1.0.5/dist/code-snippets.js (added)
-
tags/1.0.5/dist/code-snippets.min.css (added)
-
tags/1.0.5/dist/code-snippets.min.js (added)
-
tags/1.0.5/dist/editor.css (added)
-
tags/1.0.5/dist/editor.js (added)
-
tags/1.0.5/dist/editor.min.css (added)
-
tags/1.0.5/dist/editor.min.js (added)
-
tags/1.0.5/dist/f91da5bf7f0d29e62fef.png (added)
-
tags/1.0.5/dist/ff5575aba3b1a00315e5.png (added)
-
tags/1.0.5/dist/frontend.css (added)
-
tags/1.0.5/dist/frontend.js (added)
-
tags/1.0.5/dist/frontend.min.css (added)
-
tags/1.0.5/dist/frontend.min.js (added)
-
tags/1.0.5/dist/layouts.css (added)
-
tags/1.0.5/dist/layouts.js (added)
-
tags/1.0.5/dist/layouts.min.css (added)
-
tags/1.0.5/dist/layouts.min.js (added)
-
tags/1.0.5/dist/settings.css (added)
-
tags/1.0.5/dist/settings.js (added)
-
tags/1.0.5/dist/settings.min.css (added)
-
tags/1.0.5/dist/settings.min.js (added)
-
tags/1.0.5/includes (added)
-
tags/1.0.5/includes/class-kwtsk-admin.php (added)
-
tags/1.0.5/includes/class-kwtsk-block-patterns.php (added)
-
tags/1.0.5/includes/class-kwtsk-custom-code.php (added)
-
tags/1.0.5/includes/class-kwtsk-disable-comments.php (added)
-
tags/1.0.5/includes/class-kwtsk-duplicate-posts.php (added)
-
tags/1.0.5/includes/class-kwtsk-frontend.php (added)
-
tags/1.0.5/includes/class-kwtsk-maintenance-mode.php (added)
-
tags/1.0.5/includes/class-kwtsk-notices.php (added)
-
tags/1.0.5/includes/class-kwtsk-post-types.php (added)
-
tags/1.0.5/includes/class-kwtsk-rest-api.php (added)
-
tags/1.0.5/includes/class-kwtsk-scripts.php (added)
-
tags/1.0.5/includes/class-kwtsk-svg-handler.php (added)
-
tags/1.0.5/lang (added)
-
tags/1.0.5/lang/theme-site-kit.pot (added)
-
tags/1.0.5/readme.txt (added)
-
tags/1.0.5/theme-site-kit.php (added)
-
tags/1.0.5/vendor (added)
-
tags/1.0.5/vendor/freemius (added)
-
tags/1.0.5/vendor/freemius/LICENSE.txt (added)
-
tags/1.0.5/vendor/freemius/assets (added)
-
tags/1.0.5/vendor/freemius/assets/css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/account.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/add-ons.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/affiliation.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/checkout.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/clone-resolution.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/common.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/connect.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/debug.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/dialog-boxes.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/index.php (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/optout.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/admin/plugins.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/customizer.css (added)
-
tags/1.0.5/vendor/freemius/assets/css/index.php (added)
-
tags/1.0.5/vendor/freemius/assets/img (added)
-
tags/1.0.5/vendor/freemius/assets/img/blockons.png (added)
-
tags/1.0.5/vendor/freemius/assets/img/index.php (added)
-
tags/1.0.5/vendor/freemius/assets/img/plugin-icon.png (added)
-
tags/1.0.5/vendor/freemius/assets/img/theme-icon.png (added)
-
tags/1.0.5/vendor/freemius/assets/img/theme-site-kit.png (added)
-
tags/1.0.5/vendor/freemius/assets/index.php (added)
-
tags/1.0.5/vendor/freemius/assets/js (added)
-
tags/1.0.5/vendor/freemius/assets/js/index.php (added)
-
tags/1.0.5/vendor/freemius/assets/js/jquery.form.js (added)
-
tags/1.0.5/vendor/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
tags/1.0.5/vendor/freemius/assets/js/postmessage.js (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/14fb1bd5b7c41648488b06147f50a0dc.svg (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/178afa6030e76635dbe835e111d2c507.png (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/27b5a722a5553d9de0170325267fccec.png (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/4375c4a3ddc6f637c2ab9a2d7220f91e.png (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/4529cac82a2d1f300d3c4702b7b5e8f3.svg (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/5480ed23b199531a8cbc05924f26952b.png (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/b4f3b958f4a019862d81b15f3f8eee3a.svg (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/c03f665db27af43971565560adfba594.png (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/cb5fc4f6ec7ada72e986f6e7dde365bf.png (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/dd89563360f0272635c8f0ab7d7f1402.png (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/e366d70661d8ad2493bd6afbd779f125.png (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/f18006f6535a1a6e9c6bfbffafe6f18a.svg (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/f3aac72a8e63997d6bb888f816457e9b.png (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/f928f1be99776af83e8e6be4baf8ffe7.svg (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/fde48e4609a6ddc11d639fc2421f2afd.png (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/freemius-pricing.js (added)
-
tags/1.0.5/vendor/freemius/assets/js/pricing/freemius-pricing.js.LICENSE.txt (added)
-
tags/1.0.5/vendor/freemius/config.php (added)
-
tags/1.0.5/vendor/freemius/includes (added)
-
tags/1.0.5/vendor/freemius/includes/class-freemius-abstract.php (added)
-
tags/1.0.5/vendor/freemius/includes/class-freemius.php (added)
-
tags/1.0.5/vendor/freemius/includes/class-fs-admin-notices.php (added)
-
tags/1.0.5/vendor/freemius/includes/class-fs-api.php (added)
-
tags/1.0.5/vendor/freemius/includes/class-fs-garbage-collector.php (added)
-
tags/1.0.5/vendor/freemius/includes/class-fs-lock.php (added)
-
tags/1.0.5/vendor/freemius/includes/class-fs-logger.php (added)
-
tags/1.0.5/vendor/freemius/includes/class-fs-options.php (added)
-
tags/1.0.5/vendor/freemius/includes/class-fs-plugin-updater.php (added)
-
tags/1.0.5/vendor/freemius/includes/class-fs-security.php (added)
-
tags/1.0.5/vendor/freemius/includes/class-fs-storage.php (added)
-
tags/1.0.5/vendor/freemius/includes/class-fs-user-lock.php (added)
-
tags/1.0.5/vendor/freemius/includes/customizer (added)
-
tags/1.0.5/vendor/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/1.0.5/vendor/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/1.0.5/vendor/freemius/includes/customizer/index.php (added)
-
tags/1.0.5/vendor/freemius/includes/debug (added)
-
tags/1.0.5/vendor/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/1.0.5/vendor/freemius/includes/debug/debug-bar-start.php (added)
-
tags/1.0.5/vendor/freemius/includes/debug/index.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-affiliate.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-billing.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-entity.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-payment.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-plugin-info.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-plugin-license.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-plugin.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-pricing.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-scope-entity.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-site.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-subscription.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/class-fs-user.php (added)
-
tags/1.0.5/vendor/freemius/includes/entities/index.php (added)
-
tags/1.0.5/vendor/freemius/includes/fs-core-functions.php (added)
-
tags/1.0.5/vendor/freemius/includes/fs-essential-functions.php (added)
-
tags/1.0.5/vendor/freemius/includes/fs-html-escaping-functions.php (added)
-
tags/1.0.5/vendor/freemius/includes/fs-plugin-info-dialog.php (added)
-
tags/1.0.5/vendor/freemius/includes/index.php (added)
-
tags/1.0.5/vendor/freemius/includes/l10n.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-cache-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-checkout-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-clone-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-contact-form-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-debug-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-license-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-option-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-permission-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-plan-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
tags/1.0.5/vendor/freemius/includes/managers/index.php (added)
-
tags/1.0.5/vendor/freemius/includes/sdk (added)
-
tags/1.0.5/vendor/freemius/includes/sdk/Exceptions (added)
-
tags/1.0.5/vendor/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/1.0.5/vendor/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/1.0.5/vendor/freemius/includes/sdk/Exceptions/Exception.php (added)
-
tags/1.0.5/vendor/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/1.0.5/vendor/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/1.0.5/vendor/freemius/includes/sdk/Exceptions/index.php (added)
-
tags/1.0.5/vendor/freemius/includes/sdk/FreemiusBase.php (added)
-
tags/1.0.5/vendor/freemius/includes/sdk/FreemiusWordPress.php (added)
-
tags/1.0.5/vendor/freemius/includes/sdk/LICENSE.txt (added)
-
tags/1.0.5/vendor/freemius/includes/sdk/index.php (added)
-
tags/1.0.5/vendor/freemius/includes/supplements (added)
-
tags/1.0.5/vendor/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/1.0.5/vendor/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/1.0.5/vendor/freemius/includes/supplements/fs-migration-2.5.1.php (added)
-
tags/1.0.5/vendor/freemius/includes/supplements/index.php (added)
-
tags/1.0.5/vendor/freemius/index.php (added)
-
tags/1.0.5/vendor/freemius/languages (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-cs_CZ.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-da_DK.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-de_DE.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-es_ES.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-fr_FR.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-he_IL.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-hu_HU.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-it_IT.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-ja.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-nl_NL.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-ru_RU.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-ta.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius-zh_CN.mo (added)
-
tags/1.0.5/vendor/freemius/languages/freemius.pot (added)
-
tags/1.0.5/vendor/freemius/languages/index.php (added)
-
tags/1.0.5/vendor/freemius/require.php (added)
-
tags/1.0.5/vendor/freemius/start.php (added)
-
tags/1.0.5/vendor/freemius/templates (added)
-
tags/1.0.5/vendor/freemius/templates/account (added)
-
tags/1.0.5/vendor/freemius/templates/account.php (added)
-
tags/1.0.5/vendor/freemius/templates/account/billing.php (added)
-
tags/1.0.5/vendor/freemius/templates/account/index.php (added)
-
tags/1.0.5/vendor/freemius/templates/account/partials (added)
-
tags/1.0.5/vendor/freemius/templates/account/partials/activate-license-button.php (added)
-
tags/1.0.5/vendor/freemius/templates/account/partials/addon.php (added)
-
tags/1.0.5/vendor/freemius/templates/account/partials/deactivate-license-button.php (added)
-
tags/1.0.5/vendor/freemius/templates/account/partials/disconnect-button.php (added)
-
tags/1.0.5/vendor/freemius/templates/account/partials/index.php (added)
-
tags/1.0.5/vendor/freemius/templates/account/partials/site.php (added)
-
tags/1.0.5/vendor/freemius/templates/account/payments.php (added)
-
tags/1.0.5/vendor/freemius/templates/add-ons.php (added)
-
tags/1.0.5/vendor/freemius/templates/add-trial-to-pricing.php (added)
-
tags/1.0.5/vendor/freemius/templates/admin-notice.php (added)
-
tags/1.0.5/vendor/freemius/templates/ajax-loader.php (added)
-
tags/1.0.5/vendor/freemius/templates/api-connectivity-message-js.php (added)
-
tags/1.0.5/vendor/freemius/templates/auto-installation.php (added)
-
tags/1.0.5/vendor/freemius/templates/checkout (added)
-
tags/1.0.5/vendor/freemius/templates/checkout.php (added)
-
tags/1.0.5/vendor/freemius/templates/checkout/frame.php (added)
-
tags/1.0.5/vendor/freemius/templates/checkout/process-redirect.php (added)
-
tags/1.0.5/vendor/freemius/templates/checkout/redirect.php (added)
-
tags/1.0.5/vendor/freemius/templates/clone-resolution-js.php (added)
-
tags/1.0.5/vendor/freemius/templates/connect (added)
-
tags/1.0.5/vendor/freemius/templates/connect.php (added)
-
tags/1.0.5/vendor/freemius/templates/connect/index.php (added)
-
tags/1.0.5/vendor/freemius/templates/connect/permission.php (added)
-
tags/1.0.5/vendor/freemius/templates/connect/permissions-group.php (added)
-
tags/1.0.5/vendor/freemius/templates/contact.php (added)
-
tags/1.0.5/vendor/freemius/templates/debug (added)
-
tags/1.0.5/vendor/freemius/templates/debug.php (added)
-
tags/1.0.5/vendor/freemius/templates/debug/api-calls.php (added)
-
tags/1.0.5/vendor/freemius/templates/debug/index.php (added)
-
tags/1.0.5/vendor/freemius/templates/debug/logger.php (added)
-
tags/1.0.5/vendor/freemius/templates/debug/plugins-themes-sync.php (added)
-
tags/1.0.5/vendor/freemius/templates/debug/scheduled-crons.php (added)
-
tags/1.0.5/vendor/freemius/templates/email.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms (added)
-
tags/1.0.5/vendor/freemius/templates/forms/affiliation.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/data-debug-mode.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/deactivation (added)
-
tags/1.0.5/vendor/freemius/templates/forms/deactivation/contact.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/deactivation/form.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/deactivation/index.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/deactivation/retry-skip.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/email-address-update.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/index.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/license-activation.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/optout.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/resend-key.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/subscription-cancellation.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/trial-start.php (added)
-
tags/1.0.5/vendor/freemius/templates/forms/user-change.php (added)
-
tags/1.0.5/vendor/freemius/templates/gdpr-optin-js.php (added)
-
tags/1.0.5/vendor/freemius/templates/index.php (added)
-
tags/1.0.5/vendor/freemius/templates/js (added)
-
tags/1.0.5/vendor/freemius/templates/js/index.php (added)
-
tags/1.0.5/vendor/freemius/templates/js/jquery.content-change.php (added)
-
tags/1.0.5/vendor/freemius/templates/js/open-license-activation.php (added)
-
tags/1.0.5/vendor/freemius/templates/js/permissions.php (added)
-
tags/1.0.5/vendor/freemius/templates/js/style-premium-theme.php (added)
-
tags/1.0.5/vendor/freemius/templates/partials (added)
-
tags/1.0.5/vendor/freemius/templates/partials/index.php (added)
-
tags/1.0.5/vendor/freemius/templates/partials/network-activation.php (added)
-
tags/1.0.5/vendor/freemius/templates/plugin-icon.php (added)
-
tags/1.0.5/vendor/freemius/templates/plugin-info (added)
-
tags/1.0.5/vendor/freemius/templates/plugin-info/description.php (added)
-
tags/1.0.5/vendor/freemius/templates/plugin-info/features.php (added)
-
tags/1.0.5/vendor/freemius/templates/plugin-info/index.php (added)
-
tags/1.0.5/vendor/freemius/templates/plugin-info/screenshots.php (added)
-
tags/1.0.5/vendor/freemius/templates/pricing.php (added)
-
tags/1.0.5/vendor/freemius/templates/secure-https-header.php (added)
-
tags/1.0.5/vendor/freemius/templates/sticky-admin-notice-js.php (added)
-
tags/1.0.5/vendor/freemius/templates/tabs-capture-js.php (added)
-
tags/1.0.5/vendor/freemius/templates/tabs.php (added)
-
trunk/dist/layouts.js (modified) (34 diffs)
-
trunk/dist/layouts.min.js (modified) (1 diff)
-
trunk/dist/settings.css (modified) (2 diffs)
-
trunk/dist/settings.js (modified) (59 diffs)
-
trunk/dist/settings.min.css (modified) (1 diff)
-
trunk/dist/settings.min.js (modified) (1 diff)
-
trunk/includes/class-kwtsk-frontend.php (modified) (1 diff)
-
trunk/includes/class-kwtsk-post-types.php (modified) (4 diffs)
-
trunk/includes/class-kwtsk-rest-api.php (modified) (2 diffs)
-
trunk/includes/class-kwtsk-scripts.php (modified) (4 diffs)
-
trunk/lang/theme-site-kit.pot (modified) (16 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/theme-site-kit.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
theme-site-kit/trunk/dist/layouts.js
r3298008 r3351118 114 114 const {toString: utils_toString} = Object.prototype; 115 115 const {getPrototypeOf} = Object; 116 const {iterator, toStringTag} = Symbol; 116 117 117 118 const kindOf = (cache => thing => { … … 240 241 241 242 const prototype = getPrototypeOf(val); 242 return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); 243 return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val); 244 } 245 246 /** 247 * Determine if a value is an empty object (safely handles Buffers) 248 * 249 * @param {*} val The value to test 250 * 251 * @returns {boolean} True if value is an empty object, otherwise false 252 */ 253 const isEmptyObject = (val) => { 254 // Early return for non-objects or Buffers to prevent RangeError 255 if (!isObject(val) || isBuffer(val)) { 256 return false; 257 } 258 259 try { 260 return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype; 261 } catch (e) { 262 // Fallback for any other objects that might cause RangeError with Object.keys() 263 return false; 264 } 243 265 } 244 266 … … 365 387 } 366 388 } else { 389 // Buffer check 390 if (isBuffer(obj)) { 391 return; 392 } 393 367 394 // Iterate over object keys 368 395 const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); … … 378 405 379 406 function findKey(obj, key) { 407 if (isBuffer(obj)){ 408 return null; 409 } 410 380 411 key = key.toLowerCase(); 381 412 const keys = Object.keys(obj); … … 591 622 */ 592 623 const forEachEntry = (obj, fn) => { 593 const generator = obj && obj[ Symbol.iterator];594 595 const iterator = generator.call(obj);624 const generator = obj && obj[iterator]; 625 626 const _iterator = generator.call(obj); 596 627 597 628 let result; 598 629 599 while ((result = iterator.next()) && !result.done) {630 while ((result = _iterator.next()) && !result.done) { 600 631 const pair = result.value; 601 632 fn.call(obj, pair[0], pair[1]); … … 718 749 */ 719 750 function isSpecCompliantForm(thing) { 720 return !!(thing && isFunction(thing.append) && thing[ Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);751 return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]); 721 752 } 722 753 … … 729 760 if (stack.indexOf(source) >= 0) { 730 761 return; 762 } 763 764 //Buffer check 765 if (isBuffer(source)) { 766 return source; 731 767 } 732 768 … … 786 822 787 823 // ********************* 824 825 826 const isIterable = (thing) => thing != null && isFunction(thing[iterator]); 827 788 828 789 829 /* harmony default export */ const utils = ({ … … 798 838 isObject, 799 839 isPlainObject, 840 isEmptyObject, 800 841 isReadableStream, 801 842 isRequest, … … 842 883 isThenable, 843 884 setImmediate: _setImmediate, 844 asap 885 asap, 886 isIterable 845 887 }); 846 888 … … 1077 1119 } 1078 1120 1121 if (utils.isBoolean(value)) { 1122 return value.toString(); 1123 } 1124 1079 1125 if (!useBlob && utils.isBlob(value)) { 1080 1126 throw new core_AxiosError('Blob is not supported. Use a Buffer instead.'); … … 1483 1529 1484 1530 function toURLEncodedForm(data, options) { 1485 return helpers_toFormData(data, new platform.classes.URLSearchParams(), Object.assign({1531 return helpers_toFormData(data, new platform.classes.URLSearchParams(), { 1486 1532 visitor: function(value, key, path, helpers) { 1487 1533 if (platform.isNode && utils.isBuffer(value)) { … … 1491 1537 1492 1538 return helpers.defaultVisitor.apply(this, arguments); 1493 } 1494 }, options)); 1539 }, 1540 ...options 1541 }); 1495 1542 } 1496 1543 … … 1915 1962 } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { 1916 1963 setHeaders(parseHeaders(header), valueOrRewrite); 1917 } else if (utils.isHeaders(header)) { 1918 for (const [key, value] of header.entries()) { 1919 setHeader(value, key, rewrite); 1920 } 1964 } else if (utils.isObject(header) && utils.isIterable(header)) { 1965 let obj = {}, dest, key; 1966 for (const entry of header) { 1967 if (!utils.isArray(entry)) { 1968 throw TypeError('Object iterator must return a key-value pair'); 1969 } 1970 1971 obj[key = entry[0]] = (dest = obj[key]) ? 1972 (utils.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1]; 1973 } 1974 1975 setHeaders(obj, valueOrRewrite) 1921 1976 } else { 1922 1977 header != null && setHeader(valueOrRewrite, header, rewrite); … … 2058 2113 toString() { 2059 2114 return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n'); 2115 } 2116 2117 getSetCookie() { 2118 return this.get("set-cookie") || []; 2060 2119 } 2061 2120 … … 2294 2353 timer = null; 2295 2354 } 2296 fn .apply(null,args);2355 fn(...args); 2297 2356 } 2298 2357 … … 2478 2537 function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) { 2479 2538 let isRelativeUrl = !isAbsoluteURL(requestedURL); 2480 if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {2539 if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) { 2481 2540 return combineURLs(baseURL, requestedURL); 2482 2541 } … … 2583 2642 }; 2584 2643 2585 utils.forEach(Object.keys( Object.assign({}, config1, config2)), function computeConfigValue(prop) {2644 utils.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) { 2586 2645 const merge = mergeMap[prop] || mergeDeepProperties; 2587 2646 const configValue = merge(config1[prop], config2[prop], prop); … … 2609 2668 newConfig.headers = headers = core_AxiosHeaders.from(headers); 2610 2669 2611 newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url ), config.params, config.paramsSerializer);2670 newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer); 2612 2671 2613 2672 // HTTP basic authentication … … 3159 3218 }); 3160 3219 3161 let response = await fetch(request );3220 let response = await fetch(request, fetchOptions); 3162 3221 3163 3222 const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response'); … … 3205 3264 unsubscribe && unsubscribe(); 3206 3265 3207 if (err && err.name === 'TypeError' && / fetch/i.test(err.message)) {3266 if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) { 3208 3267 throw Object.assign( 3209 3268 new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request), … … 3385 3444 3386 3445 ;// ./node_modules/axios/lib/env/data.js 3387 const VERSION = "1. 8.1";3446 const VERSION = "1.11.0"; 3388 3447 ;// ./node_modules/axios/lib/helpers/validator.js 3389 3448 … … 3510 3569 class Axios { 3511 3570 constructor(instanceConfig) { 3512 this.defaults = instanceConfig ;3571 this.defaults = instanceConfig || {}; 3513 3572 this.interceptors = { 3514 3573 request: new core_InterceptorManager(), … … 3643 3702 if (!synchronousRequestInterceptors) { 3644 3703 const chain = [dispatchRequest.bind(this), undefined]; 3645 chain.unshift .apply(chain,requestInterceptorChain);3646 chain.push .apply(chain,responseInterceptorChain);3704 chain.unshift(...requestInterceptorChain); 3705 chain.push(...responseInterceptorChain); 3647 3706 len = chain.length; 3648 3707 … … 4126 4185 ;// ./src/backend/layouts/LayoutsPage.js 4127 4186 function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } 4128 function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } 4187 function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); } 4188 function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); } 4129 4189 function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } 4130 4190 function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } … … 4165 4225 setError = _useState8[1]; 4166 4226 var _useState9 = (0,external_React_.useState)(null), 4167 _useState10 = _slicedToArray(_useState9, 2), 4168 activeCollection = _useState10[0], 4169 setActiveCollection = _useState10[1]; 4227 _useState0 = _slicedToArray(_useState9, 2), 4228 activeCollection = _useState0[0], 4229 setActiveCollection = _useState0[1]; 4230 var _useState1 = (0,external_React_.useState)(null), 4231 _useState10 = _slicedToArray(_useState1, 2), 4232 previewLayout = _useState10[0], 4233 setPreviewLayout = _useState10[1]; 4170 4234 var _useState11 = (0,external_React_.useState)(null), 4171 4235 _useState12 = _slicedToArray(_useState11, 2), 4172 previewLayout= _useState12[0],4173 set PreviewLayout= _useState12[1];4174 var _useState13 = (0,external_React_.useState)( null),4236 importingLayoutId = _useState12[0], 4237 setImportingLayoutId = _useState12[1]; 4238 var _useState13 = (0,external_React_.useState)({}), 4175 4239 _useState14 = _slicedToArray(_useState13, 2), 4176 importingLayoutId = _useState14[0], 4177 setImportingLayoutId = _useState14[1]; 4240 importedPages = _useState14[0], 4241 setImportedPages = _useState14[1]; 4242 var isPremium = Boolean(kwtskObj.isPremium); 4243 var upgradeUrl = kwtskObj.upgradeUrl; 4178 4244 var _useState15 = (0,external_React_.useState)({}), 4179 4245 _useState16 = _slicedToArray(_useState15, 2), 4180 importedPages = _useState16[0], 4181 setImportedPages = _useState16[1]; 4182 var isPremium = Boolean(kwtskObj.isPremium); 4183 var upgradeUrl = kwtskObj.upgradeUrl; 4184 var _useState17 = (0,external_React_.useState)({}), 4246 pluginStatuses = _useState16[0], 4247 setPluginStatuses = _useState16[1]; 4248 var _useState17 = (0,external_React_.useState)([]), 4185 4249 _useState18 = _slicedToArray(_useState17, 2), 4186 pluginStatuses = _useState18[0],4187 set PluginStatuses = _useState18[1];4250 categories = _useState18[0], 4251 setCategories = _useState18[1]; 4188 4252 var _useState19 = (0,external_React_.useState)([]), 4189 4253 _useState20 = _slicedToArray(_useState19, 2), 4190 categories = _useState20[0],4191 set Categories = _useState20[1];4192 var _useState21 = (0,external_React_.useState)( []),4254 tags = _useState20[0], 4255 setTags = _useState20[1]; 4256 var _useState21 = (0,external_React_.useState)(""), 4193 4257 _useState22 = _slicedToArray(_useState21, 2), 4194 tags= _useState22[0],4195 set Tags= _useState22[1];4258 selectedCategory = _useState22[0], 4259 setSelectedCategory = _useState22[1]; 4196 4260 var _useState23 = (0,external_React_.useState)(""), 4197 4261 _useState24 = _slicedToArray(_useState23, 2), 4198 selectedCategory = _useState24[0], 4199 setSelectedCategory = _useState24[1]; 4200 var _useState25 = (0,external_React_.useState)(""), 4201 _useState26 = _slicedToArray(_useState25, 2), 4202 selectedTag = _useState26[0], 4203 setSelectedTag = _useState26[1]; 4262 selectedTag = _useState24[0], 4263 setSelectedTag = _useState24[1]; 4204 4264 4205 4265 // Fetch layouts … … 4252 4312 }); 4253 4313 var importLayout = /*#__PURE__*/function () { 4254 var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator Runtime().mark(function _callee(layout) {4255 var confirmed, response, newPage ;4256 return _regenerator Runtime().wrap(function _callee$(_context) {4257 while (1) switch (_context.p rev = _context.next) {4314 var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(layout) { 4315 var confirmed, response, newPage, _t; 4316 return _regenerator().w(function (_context) { 4317 while (1) switch (_context.p = _context.n) { 4258 4318 case 0: 4259 4319 confirmed = window.confirm(LayoutsPage_("This layout will be imported and added as a new page. Continue?", "theme-site-kit")); 4260 4320 if (confirmed) { 4261 _context.n ext = 3;4321 _context.n = 1; 4262 4322 break; 4263 4323 } 4264 return _context.a brupt("return");4265 case 3:4324 return _context.a(2); 4325 case 1: 4266 4326 setImportingLayoutId(layout.id); 4267 _context.p rev = 4;4268 _context.n ext = 7;4327 _context.p = 2; 4328 _context.n = 3; 4269 4329 return lib_axios.post("".concat(kwtskObj.apiUrl, "kwtsk/v1/import-layout"), layout, { 4270 4330 headers: { … … 4273 4333 } 4274 4334 }); 4275 case 7:4276 response = _context. sent;4335 case 3: 4336 response = _context.v; 4277 4337 newPage = response.data; 4278 4338 setImportedPages(function (prev) { … … 4280 4340 }); 4281 4341 // console.log("Layout imported successfully", newPage); 4282 _context.n ext = 16;4342 _context.n = 5; 4283 4343 break; 4284 case 12:4285 _context.p rev = 12;4286 _ context.t0 = _context["catch"](4);4287 console.error(_ context.t0);4344 case 4: 4345 _context.p = 4; 4346 _t = _context.v; 4347 console.error(_t); 4288 4348 alert(LayoutsPage_("Failed to create page. Please try again or check your permissions.", "theme-site-kit")); 4289 case 16:4290 _context.p rev = 16;4349 case 5: 4350 _context.p = 5; 4291 4351 setImportingLayoutId(null); 4292 return _context.finish(16); 4293 case 19: 4294 case "end": 4295 return _context.stop(); 4352 return _context.f(5); 4353 case 6: 4354 return _context.a(2); 4296 4355 } 4297 }, _callee, null, [[ 4, 12, 16, 19]]);4356 }, _callee, null, [[2, 4, 5, 6]]); 4298 4357 })); 4299 4358 return function importLayout(_x) { … … 4374 4433 } else if (status === "activate") { 4375 4434 buttonContent = /*#__PURE__*/external_React_default().createElement(LayoutsPage_Button, { 4376 onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { 4377 return _regeneratorRuntime().wrap(function _callee2$(_context2) { 4378 while (1) switch (_context2.prev = _context2.next) { 4435 onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() { 4436 var _t2; 4437 return _regenerator().w(function (_context2) { 4438 while (1) switch (_context2.p = _context2.n) { 4379 4439 case 0: 4380 4440 setPluginStatuses(function (prev) { 4381 4441 return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, plugin.slug, "activating")); 4382 4442 }); 4383 _context2.p rev= 1;4384 _context2.n ext = 4;4443 _context2.p = 1; 4444 _context2.n = 2; 4385 4445 return lib_axios.post("".concat(kwtskObj.apiUrl, "kwtsk/v1/install-plugin"), { 4386 4446 slug: plugin.slug … … 4391 4451 } 4392 4452 }); 4393 case 4:4453 case 2: 4394 4454 setPluginStatuses(function (prev) { 4395 4455 return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, plugin.slug, "activated")); 4396 4456 }); 4397 _context2.n ext = 10;4457 _context2.n = 4; 4398 4458 break; 4399 case 7:4400 _context2.p rev = 7;4401 _ context2.t0 = _context2["catch"](1);4459 case 3: 4460 _context2.p = 3; 4461 _t2 = _context2.v; 4402 4462 setPluginStatuses(function (prev) { 4403 4463 return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, plugin.slug, undefined)); 4404 4464 }); 4405 case 10: 4406 case "end": 4407 return _context2.stop(); 4465 case 4: 4466 return _context2.a(2); 4408 4467 } 4409 }, _callee2, null, [[1, 7]]);4468 }, _callee2, null, [[1, 3]]); 4410 4469 })), 4411 4470 className: "kwtsk-req-btn activate" … … 4414 4473 // Default: not installed. 4415 4474 buttonContent = /*#__PURE__*/external_React_default().createElement(LayoutsPage_Button, { 4416 onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator Runtime().mark(function _callee3() {4417 var res, message ;4418 return _regenerator Runtime().wrap(function _callee3$(_context3) {4419 while (1) switch (_context3.p rev = _context3.next) {4475 onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() { 4476 var res, message, _t3; 4477 return _regenerator().w(function (_context3) { 4478 while (1) switch (_context3.p = _context3.n) { 4420 4479 case 0: 4421 4480 setPluginStatuses(function (prev) { 4422 4481 return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, plugin.slug, "installing")); 4423 4482 }); 4424 _context3.p rev= 1;4425 _context3.n ext = 4;4483 _context3.p = 1; 4484 _context3.n = 2; 4426 4485 return lib_axios.post("".concat(kwtskObj.apiUrl, "kwtsk/v1/install-plugin"), { 4427 4486 slug: plugin.slug … … 4432 4491 } 4433 4492 }); 4434 case 4:4435 res = _context3. sent;4493 case 2: 4494 res = _context3.v; 4436 4495 message = res.data.message.toLowerCase(); 4437 4496 if (message.includes("installed but inactive")) { … … 4444 4503 }); 4445 4504 } 4446 _context3.n ext = 12;4505 _context3.n = 4; 4447 4506 break; 4448 case 9:4449 _context3.p rev = 9;4450 _ context3.t0 = _context3["catch"](1);4507 case 3: 4508 _context3.p = 3; 4509 _t3 = _context3.v; 4451 4510 setPluginStatuses(function (prev) { 4452 4511 return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, plugin.slug, undefined)); 4453 4512 }); 4454 case 12: 4455 case "end": 4456 return _context3.stop(); 4513 case 4: 4514 return _context3.a(2); 4457 4515 } 4458 }, _callee3, null, [[1, 9]]);4516 }, _callee3, null, [[1, 3]]); 4459 4517 })), 4460 4518 className: "kwtsk-req-btn" -
theme-site-kit/trunk/dist/layouts.min.js
r3298008 r3351118 1 (()=>{var e={677:e=>{e.exports=function(){return this.React}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=> ue,hasStandardBrowserEnv:()=>de,hasStandardBrowserWebWorkerEnv:()=>pe,navigator:()=>fe,origin:()=>he});var t=n(677),r=n.n(t);function o(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:s}=Object,a=(c=Object.create(null),e=>{const t=i.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const l=e=>(e=e.toLowerCase(),t=>a(t)===e),u=e=>t=>typeof t===e,{isArray:f}=Array,d=u("undefined");const p=l("ArrayBuffer");const h=u("string"),m=u("function"),y=u("number"),g=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==a(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},w=l("Date"),v=l("File"),E=l("Blob"),k=l("FileList"),O=l("URLSearchParams"),[S,R,N,T]=["ReadableStream","Request","Response","Headers"].map(l);function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),f(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function P(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,A=e=>!d(e)&&e!==j;const L=(C="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>C&&e instanceof C);var C;const U=l("HTMLFormElement"),_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F=l("RegExp"),B=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};x(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const D=l("AsyncFunction"),q=(I="function"==typeof setImmediate,M=m(j.postMessage),I?setImmediate:M?(z=`axios@${Math.random()}`,W=[],j.addEventListener("message",(({source:e,data:t})=>{e===j&&t===z&&W.length&&W.shift()()}),!1),e=>{W.push(e),j.postMessage(z,"*")}):e=>setTimeout(e));var I,M,z,W;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(j):"undefined"!=typeof process&&process.nextTick||q,J={isArray:f,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=a(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:h,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:b,isReadableStream:S,isRequest:R,isResponse:N,isHeaders:T,isUndefined:d,isDate:w,isFile:v,isBlob:E,isRegExp:F,isFunction:m,isStream:e=>g(e)&&m(e.pipe),isURLSearchParams:O,isTypedArray:L,isFileList:k,forEach:x,merge:function e(){const{caseless:t}=A(this)&&this||{},n={},r=(r,o)=>{const i=t&&P(n,o)||o;b(n[i])&&b(r)?n[i]=e(n[i],r):b(r)?n[i]=e({},r):f(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&x(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(x(t,((t,r)=>{n&&m(t)?e[r]=o(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:U,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:B,freezeMethods:e=>{B(e,((t,n)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];m(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return f(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:P,global:j,isContextDefined:A,isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=f(e)?[]:{};return x(e,((e,t)=>{const i=n(e,r+1);!d(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:D,isThenable:e=>e&&(g(e)||m(e))&&m(e.then)&&m(e.catch),setImmediate:q,asap:H};function V(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}J.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const G=V.prototype,K={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{K[e]={value:e}})),Object.defineProperties(V,K),Object.defineProperty(G,"isAxiosError",{value:!0}),V.from=(e,t,n,r,o,i)=>{const s=Object.create(G);return J.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),V.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const $=V;function X(e){return J.isPlainObject(e)||J.isArray(e)}function Q(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Y(e,t,n){return e?e.concat(t).map((function(e,t){return e=Q(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Z=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));const ee=function(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(!a&&J.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(J.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(X)}(e)||(J.isFileList(e)||J.endsWith(n,"[]"))&&(a=J.toArray(e)))return n=Q(n),a.forEach((function(e,r){!J.isUndefined(e)&&null!==e&&t.append(!0===s?Y([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!X(e)||(t.append(Y(o,n,i),c(e)),!1)}const u=[],f=Object.assign(Z,{defaultVisitor:l,convertValue:c,isVisitable:X});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!J.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),J.forEach(n,(function(n,i){!0===(!(J.isUndefined(n)||null===n)&&o.call(t,n,J.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&ee(e,this,t)}const re=ne.prototype;re.append=function(e,t){this._pairs.push([e,t])},re.toString=function(e){const t=e?function(t){return e.call(this,t,te)}:te;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const oe=ne;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function se(e,t,n){if(!t)return e;const r=n&&n.encode||ie;J.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):J.isURLSearchParams(t)?t.toString():new oe(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const ae=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},le={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:oe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ue="undefined"!=typeof window&&"undefined"!=typeof document,fe="object"==typeof navigator&&navigator||void 0,de=ue&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=ue&&window.location.href||"http://localhost",me={...e,...le};const ye=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&J.isArray(r)?r.length:i,a)return J.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&J.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&J.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,((e,r)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ge={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=J.isObject(e);o&&J.isHTMLForm(e)&&(e=new FormData(e));if(J.isFormData(e))return r?JSON.stringify(ye(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ee(e,new me.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return me.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=J.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ee(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ge.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw $.from(e,$.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{ge.headers[e]={}}));const be=ge,we=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ve=Symbol("internals");function Ee(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:J.isArray(e)?e.map(ke):String(e)}function Oe(e,t,n,r,o){return J.isFunction(r)?r.call(this,t,n):(o&&(t=n),J.isString(t)?J.isString(r)?-1!==t.indexOf(r):J.isRegExp(r)?r.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ee(t);if(!o)throw new Error("header name must be a non-empty string");const i=J.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ke(e))}const i=(e,t)=>J.forEach(e,((e,n)=>o(e,n,t)));if(J.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(J.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ee(e)){const n=J.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(J.isFunction(t))return t.call(this,e,n);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ee(e)){const n=J.findKey(this,e);return!(!n||void 0===this[n]||t&&!Oe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ee(e)){const o=J.findKey(n,e);!o||t&&!Oe(0,n[o],o,t)||(delete n[o],r=!0)}}return J.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Oe(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return J.forEach(this,((r,o)=>{const i=J.findKey(n,o);if(i)return t[i]=ke(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=ke(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&J.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ve]=this[ve]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ee(e);t[r]||(!function(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return J.isArray(e)?e.forEach(r):r(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Se.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),J.freezeMethods(Se);const Re=Se;function Ne(e,t){const n=this||be,r=t||n,o=Re.from(r.headers);let i=r.data;return J.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Te(e){return!(!e||!e.__CANCEL__)}function xe(e,t,n){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(xe,$,{__CANCEL__:!0});const Pe=xe;function je(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Ae=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[s];o||(o=c),n[i]=a,r[i]=c;let u=s,f=0;for(;u!==i;)f+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}};const Le=function(e,t){let n,r,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout((()=>{r=null,s(n)}),i-a)))},()=>n&&s(n)]},Ce=(e,t,n=3)=>{let r=0;const o=Ae(50,250);return Le((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,c=o(a);r=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},Ue=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},_e=e=>(...t)=>J.asap((()=>e(...t))),Fe=me.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,me.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(me.origin),me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent)):()=>!0,Be=me.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];J.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),J.isString(r)&&s.push("path="+r),J.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function De(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const qe=e=>e instanceof Re?{...e}:e;function Ie(e,t){t=t||{};const n={};function r(e,t,n,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,n,o){return J.isUndefined(t)?J.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!J.isUndefined(t))return r(void 0,t)}function s(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>o(qe(e),qe(t),0,!0)};return J.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);J.isUndefined(s)&&i!==a||(n[r]=s)})),n}const Me=e=>{const t=Ie({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Re.from(a),t.url=se(De(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),J.isFormData(r))if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(me.hasStandardBrowserEnv&&(o&&J.isFunction(o)&&(o=o(t)),o||!1!==o&&Fe(t.url))){const e=i&&s&&Be.read(s);e&&a.set(i,e)}return t},ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Me(e);let o=r.data;const i=Re.from(r.headers).normalize();let s,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=Re.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());je((function(e){t(e),h()}),(function(e){n(e),h()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new $("Request aborted",$.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new $("Network Error",$.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new $(t,o.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&J.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),J.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,u]=Ce(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=Ce(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Pe(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===me.protocols.indexOf(g)?n(new $("Unsupported protocol "+g+":",$.ERR_BAD_REQUEST,e)):m.send(o||null)}))},We=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof $?t:new Pe(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>J.asap(s),a}},He=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Je=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ve=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Je(e))yield*He(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},Ge="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ke=Ge&&"function"==typeof ReadableStream,$e=Ge&&("function"==typeof TextEncoder?(Xe=new TextEncoder,e=>Xe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Xe;const Qe=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ye=Ke&&Qe((()=>{let e=!1;const t=new Request(me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ze=Ke&&Qe((()=>J.isReadableStream(new Response("").body))),et={stream:Ze&&(e=>e.body)};var tt;Ge&&(tt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!et[e]&&(et[e]=J.isFunction(tt[e])?t=>t[e]():(t,n)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,n)})})));const nt=async(e,t)=>{const n=J.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e)){const t=new Request(me.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e)?(await $e(e)).byteLength:void 0)})(t):n},rt={http:null,xhr:ze,fetch:Ge&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:f="same-origin",fetchOptions:d}=Me(e);l=l?(l+"").toLowerCase():"text";let p,h=We([o,i&&i.toAbortSignal()],s);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(c&&Ye&&"get"!==n&&"head"!==n&&0!==(y=await nt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(J.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Ue(y,Ce(_e(c)));r=Ve(n.body,65536,e,t)}}J.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?f:void 0});let i=await fetch(p);const s=Ze&&("stream"===l||"response"===l);if(Ze&&(a||s&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=J.toFiniteNumber(i.headers.get("content-length")),[n,r]=a&&Ue(t,Ce(_e(a),!0))||[];i=new Response(Ve(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}l=l||"text";let g=await et[J.findKey(et,l)||"text"](i,e);return!s&&m&&m(),await new Promise(((t,n)=>{je(t,n,{data:g,headers:Re.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,p),{cause:t.cause||t});throw $.from(t,t&&t.code,e,p)}})};J.forEach(rt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const ot=e=>`- ${e}`,it=e=>J.isFunction(e)||null===e||!1===e,st=e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!it(n)&&(r=rt[(t=String(n)).toLowerCase()],void 0===r))throw new $(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(ot).join("\n"):" "+ot(e[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function at(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function ct(e){at(e),e.headers=Re.from(e.headers),e.data=Ne.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return st(e.adapter||be.adapter)(e).then((function(t){return at(e),t.data=Ne.call(e,e.transformResponse,t),t.headers=Re.from(t.headers),t}),(function(t){return Te(t)||(at(e),t&&t.response&&(t.response.data=Ne.call(e,e.transformResponse,t.response),t.response.headers=Re.from(t.response.headers))),Promise.reject(t)}))}const lt="1.8.1",ut={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ut[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ft={};ut.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new $(r(o," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!ft[o]&&(ft[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},ut.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const dt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new $("option "+i+" must be "+n,$.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:ut},pt=dt.validators;class ht{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ie(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&dt.assertOptions(n,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),null!=r&&(J.isFunction(r)?t.paramsSerializer={serialize:r}:dt.assertOptions(r,{encode:pt.function,serialize:pt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),dt.assertOptions(t,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&J.merge(o.common,o[t.method]);o&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Re.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,f=0;if(!a){const e=[ct.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=s.length;let d=t;for(f=0;f<u;){const e=s[f++],t=s[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=ct.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return se(De((e=Ie(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],(function(e){ht.prototype[e]=function(t,n){return this.request(Ie(n||{},{method:e,url:t,data:(n||{}).data}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ie(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ht.prototype[e]=t(),ht.prototype[e+"Form"]=t(!0)}));const mt=ht;class yt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Pe(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new yt((function(t){e=t})),cancel:e}}}const gt=yt;const bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bt).forEach((([e,t])=>{bt[t]=e}));const wt=bt;const vt=function e(t){const n=new mt(t),r=o(mt.prototype.request,n);return J.extend(r,mt.prototype,n,{allOwnKeys:!0}),J.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ie(t,n))},r}(be);vt.Axios=mt,vt.CanceledError=Pe,vt.CancelToken=gt,vt.isCancel=Te,vt.VERSION=lt,vt.toFormData=ee,vt.AxiosError=$,vt.Cancel=vt.CanceledError,vt.all=function(e){return Promise.all(e)},vt.spread=function(e){return function(t){return e.apply(null,t)}},vt.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},vt.mergeConfig=Ie,vt.AxiosHeaders=Re,vt.formToJSON=e=>ye(J.isHTMLForm(e)?new FormData(e):e),vt.getAdapter=st,vt.HttpStatusCode=wt,vt.default=vt;const Et=vt;var kt=wp.i18n.__,Ot=wp.components.Button;const St=function(e){var t=e.layout,n=e.importLayout,r=e.handlePreviewLayout,o=e.isImporting,i=e.importedPageId,s=e.isProLayout,a=e.isPremium,c=e.upgradeUrl,l=e.adminUrl;return React.createElement("div",{className:"kwtsk-layout"},React.createElement("div",{className:"kwtsk-layout-img"},React.createElement("img",{src:t.previewImage,alt:t.title})),React.createElement("div",{className:"kwtsk-layout-content"},React.createElement("h3",null,t.title),React.createElement("div",{className:"kwtsk-layout-btns"},s&&a||!s&&!a?React.createElement(React.Fragment,null,i?React.createElement("a",{href:"".concat(l,"post.php?post=").concat(i,"&action=edit&editor-mode=visual"),className:"kwtsk-btn",target:"_blank",rel:"noopener noreferrer"},kt("Edit Page","theme-site-kit")):React.createElement(Ot,{onClick:function(){return n(t)},className:"kwtsk-btn ".concat(o?"importing":""),disabled:o},kt("Import Layout","theme-site-kit"))):React.createElement("a",{href:c,className:"kwtsk-btn"},kt("Upgrade to Pro","theme-site-kit")),React.createElement(Ot,{onClick:function(){return r(t)},className:"kwtsk-btn"},kt("Preview Layout","your-textdomain")))))};function Rt(e){return Rt="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},Rt(e)}function Nt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Nt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,s=Object.create(i.prototype),a=new j(r||[]);return o(s,"_invoke",{value:N(e,n,a)}),s}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",m="completed",y={};function g(){}function b(){}function w(){}var v={};l(v,s,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(A([])));k&&k!==n&&r.call(k,s)&&(v=k);var O=w.prototype=g.prototype=Object.create(v);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function n(o,i,s,a){var c=f(e[o],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Rt(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(u).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function N(t,n,r){var o=d;return function(i,s){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw s;return{value:e,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var c=T(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(t,n,r);if("normal"===l.type){if(o=r.done?m:p,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var s=i.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Rt(t)+" is not iterable")}return b.prototype=w,o(O,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l(e,c,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},S(R.prototype),l(R.prototype,a,(function(){return this})),t.AsyncIterator=R,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new R(u(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},S(O),l(O,c,"Generator"),l(O,s,(function(){return this})),l(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(s)},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),y},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),P(n),y}},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;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function Tt(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 xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Rt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function At(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){jt(i,r,o,s,a,"next",e)}function a(e){jt(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Lt(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){var r,o,i,s,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n={}.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)?Ct(e,t):void 0}}(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 Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ut=wp.i18n.__,_t=wp.components.Button;const Ft=function(e){var n=e.kwtskObj,o=e.svgOn,i=Lt((0,t.useState)([]),2),s=i[0],a=i[1],c=Lt((0,t.useState)([]),2),l=c[0],u=c[1],f=Lt((0,t.useState)(!0),2),d=f[0],p=f[1],h=Lt((0,t.useState)(null),2),m=h[0],y=h[1],g=Lt((0,t.useState)(null),2),b=g[0],w=g[1],v=Lt((0,t.useState)(null),2),E=v[0],k=v[1],O=Lt((0,t.useState)(null),2),S=O[0],R=O[1],N=Lt((0,t.useState)({}),2),T=N[0],x=N[1],P=Boolean(n.isPremium),j=n.upgradeUrl,A=Lt((0,t.useState)({}),2),L=A[0],C=A[1],U=Lt((0,t.useState)([]),2),_=U[0],F=U[1],B=Lt((0,t.useState)([]),2),D=B[0],q=B[1],I=Lt((0,t.useState)(""),2),M=I[0],z=I[1],W=Lt((0,t.useState)(""),2),H=W[0],J=W[1];if((0,t.useEffect)((function(){Et.get("".concat(n.apiUrl,"kwtsk/v1/layouts")).then((function(e){a(e.data.layouts),F(e.data.categories),q(e.data.tags),p(!1)})).catch((function(e){console.error("Error fetching layouts:",e),y("Error fetching layouts"),p(!1)}))}),[n.apiUrl]),(0,t.useEffect)((function(){Et.get("".concat(n.apiUrl,"kwtsk/v1/installed-plugins"),{headers:{"X-WP-Nonce":n.nonce}}).then((function(e){u(e.data)})).catch((function(e){console.error("Error fetching installed plugins:",e)}))}),[n.apiUrl,n.nonce]),(0,t.useEffect)((function(){return E?document.body.classList.add("kwtsk-modal-open"):document.body.classList.remove("kwtsk-modal-open"),function(){return document.body.classList.remove("kwtsk-modal-open")}}),[E]),d)return r().createElement("div",null,Ut("Loading layouts...","theme-site-kit"));if(m)return r().createElement("div",null,m);var V=s.filter((function(e){return!M||e.collectionCategory===M})),G=function(){var e=At(Nt().mark((function e(t){var r,o;return Nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm(Ut("This layout will be imported and added as a new page. Continue?","theme-site-kit"))){e.next=3;break}return e.abrupt("return");case 3:return R(t.id),e.prev=4,e.next=7,Et.post("".concat(n.apiUrl,"kwtsk/v1/import-layout"),t,{headers:{"X-WP-Nonce":n.nonce,"Content-Type":"application/json"}});case 7:r=e.sent,o=r.data,x((function(e){return xt(xt({},e),{},Pt({},t.id,o.post_id))})),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0),alert(Ut("Failed to create page. Please try again or check your permissions.","theme-site-kit"));case 16:return e.prev=16,R(null),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,12,16,19]])})));return function(t){return e.apply(this,arguments)}}();function K(e){var t=l.find((function(t){return t.slug===e.slug})),n=L[e.slug];return n||(n=t?t.active?"activated":"activate":"not_installed"),n}var $,X,Q=($=s.find((function(e){return e.collectionName===b})))&&$.requiredPlugins?$.requiredPlugins:[],Y=[{ignore:"blockons",condition:"blockons-pro"}],Z=Q.filter((function(e){var t=Y.find((function(t){return t.ignore===e.slug}));return!t||!l.some((function(e){return e.slug===t.condition}))})),ee=Z.length>0&&Z.every((function(e){return"activated"===K(e)})),te=null;if(Z.length>0&&!ee&&(te=r().createElement("div",{className:"kwtsk-required-plugins"},r().createElement("h4",null,Ut("Required Plugins","theme-site-kit")),r().createElement("p",null,Ut("To use these layouts, please install the following plugins:","theme-site-kit")),r().createElement("ul",null,Z.map((function(e){var t,o=K(e);return t="installing"===o?r().createElement("span",null,Ut("Installing Plugin...","theme-site-kit")):"activating"===o?r().createElement("span",null,Ut("Activating Plugin...","theme-site-kit")):"activated"===o?r().createElement("span",null,Ut("Already installed","theme-site-kit")):"activate"===o?r().createElement(_t,{onClick:At(Nt().mark((function t(){return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return C((function(t){return xt(xt({},t),{},Pt({},e.slug,"activating"))})),t.prev=1,t.next=4,Et.post("".concat(n.apiUrl,"kwtsk/v1/install-plugin"),{slug:e.slug},{headers:{"X-WP-Nonce":n.nonce,"Content-Type":"application/json"}});case 4:C((function(t){return xt(xt({},t),{},Pt({},e.slug,"activated"))})),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),C((function(t){return xt(xt({},t),{},Pt({},e.slug,void 0))}));case 10:case"end":return t.stop()}}),t,null,[[1,7]])}))),className:"kwtsk-req-btn activate"},Ut("Activate","theme-site-kit")):r().createElement(_t,{onClick:At(Nt().mark((function t(){var r,o;return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return C((function(t){return xt(xt({},t),{},Pt({},e.slug,"installing"))})),t.prev=1,t.next=4,Et.post("".concat(n.apiUrl,"kwtsk/v1/install-plugin"),{slug:e.slug},{headers:{"X-WP-Nonce":n.nonce,"Content-Type":"application/json"}});case 4:r=t.sent,(o=r.data.message.toLowerCase()).includes("installed but inactive")?C((function(t){return xt(xt({},t),{},Pt({},e.slug,"activate"))})):(o.includes("already installed")||o.includes("activated"))&&C((function(t){return xt(xt({},t),{},Pt({},e.slug,"activated"))})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),C((function(t){return xt(xt({},t),{},Pt({},e.slug,void 0))}));case 12:case"end":return t.stop()}}),t,null,[[1,9]])}))),className:"kwtsk-req-btn"},Ut("Install Now","theme-site-kit")),r().createElement("li",{key:e.slug},r().createElement("span",null,e.name)," ",t)}))))),null===b)X=r().createElement(r().Fragment,null,r().createElement("div",{className:"kwtsk-page-title"},r().createElement("h2",null,Ut("Import Page Layouts","theme-site-kit")),r().createElement("p",null,Ut("Welcome to the Import Page Layouts tool - your shortcut to quickly building new pages using professionally designed Gutenberg layouts. Instead of building from scratch, simply browse the different layout collections below.","theme-site-kit")),r().createElement("p",null,Ut("Note: Imported layouts may appear slightly different depending on your active theme. Variations might include adjustments in heading sizes, small styling details, or fonts.","theme-site-kit")),!o&&r().createElement("p",{className:"kwtsk-svg-warning"},Ut("Please ensure SVG Uploads are enabled, as some of these layouts include SVG images.","theme-site-kit")," ",r().createElement("a",{href:"".concat(n.adminUrl,"options-general.php?page=theme-site-kit-settings&tab=extras")},Ut("Go to SVG Uploads","")))),r().createElement("div",{className:"kwtsk-filters"},r().createElement("select",{value:M,onChange:function(e){return z(e.target.value)}},r().createElement("option",{value:""},Ut("All Categories")),_.map((function(e){return r().createElement("option",{key:e,value:e},e)})))),r().createElement("div",{className:"kwtsk-collections"},V.length>0?V.map((function(e){return r().createElement("div",{key:e.collectionName,className:"kwtsk-collection"},r().createElement("h3",null,e.collectionName),r().createElement("div",{className:"kwtsk-collection-content"},r().createElement("div",{className:"kwtsk-collection-preview"},r().createElement("img",{src:e.previewImage,alt:e.collectionName}),e.isProLayout&&!P&&r().createElement("a",{href:j,className:"fa-solid fa-web-awesome kwtsk-pro-icon"})),r().createElement("div",{className:"kwtsk-collection-info"},r().createElement(_t,{onClick:function(){return w(e.collectionName)},className:"kwtsk-collection-btn"},Ut("View Layout Collection","theme-site-kit")))))})):r().createElement("div",{className:"kwtsk-no-layouts"},Ut("No layout collections available.","theme-site-kit"))));else{var ne,re=null===(ne=s.find((function(e){return e.collectionName===b})))||void 0===ne?void 0:ne.layouts;H&&(re=re.filter((function(e){return e.tags&&e.tags.includes(H)})));var oe=s.find((function(e){return e.collectionName===b}));X=r().createElement("div",{className:"kwtsk-layouts-collection"},r().createElement("div",{className:"kwtsk-collection-header"},r().createElement("h2",null,b),r().createElement(_t,{onClick:function(){return w(null)},className:"kwtsk-btn"},"<<"," ",Ut("Go Back","theme-site-kit")),r().createElement("div",{className:"kwtsk-tags"},D.map((function(e){return r().createElement("button",{key:e,className:"kwtsk-tag".concat(H===e?" active":""),onClick:function(){return J(H===e?"":e)}},e)})))),te,r().createElement("div",{className:"kwtsk-layout-items"},re&&re.length>0?re.map((function(e,t){return r().createElement(St,{key:e.id||t,layout:e,importLayout:G,handlePreviewLayout:k,isImporting:null!==S&&S===e.id,importedPageId:T[e.id],isProLayout:null==oe?void 0:oe.isProLayout,isPremium:P,upgradeUrl:j,adminUrl:n.adminUrl})})):r().createElement("div",null,Ut("No layouts available in this collection.","theme-site-kit"))))}return r().createElement("div",{className:"kwtsk-page-layouts"},X,E&&r().createElement("div",{className:"kwtsk-layout-modal-overlay",onClick:function(){return k(null)}},r().createElement("div",{className:"kwtsk-layout-modal-content",onClick:function(e){return e.stopPropagation()}},r().createElement("button",{className:"kwtsk-layout-modal-close",onClick:function(){return k(null)}},"×"),r().createElement("div",{className:"kwtsk-layout-modal-header"},r().createElement("div",null,r().createElement("h4",null,E.title)),P?r().createElement(_t,{onClick:function(){return G(E)},className:"kwtsk-btn"},Ut("Import Layout","theme-site-kit")):r().createElement("a",{href:j,className:"kwtsk-btn"},Ut("Upgrade to Pro","theme-site-kit"))),r().createElement("div",{className:"kwtsk-layout-modal-img"},r().createElement("img",{src:E.previewImage,alt:E.title})))))};var Bt=wp.element.render;document.addEventListener("DOMContentLoaded",(function(){var e=kwtskLObj,t=document.getElementById("kwtsk-layouts-root"),n=Boolean(e.canSvg);t&&Bt(React.createElement(Ft,{kwtskObj:e,svgOn:n}),t)}))})(),(this["theme-site-kit"]=this["theme-site-kit"]||{})["layouts.min"]={}})();1 (()=>{var e={677:e=>{e.exports=function(){return this.React}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>pe,hasStandardBrowserEnv:()=>he,hasStandardBrowserWebWorkerEnv:()=>ye,navigator:()=>me,origin:()=>ge});var t=n(677),r=n.n(t);function o(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:a,toStringTag:c}=Symbol,l=(u=Object.create(null),e=>{const t=i.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const f=e=>(e=e.toLowerCase(),t=>l(t)===e),d=e=>t=>typeof t===e,{isArray:p}=Array,m=d("undefined");function h(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const y=f("ArrayBuffer");const g=d("string"),b=d("function"),w=d("number"),E=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==l(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||c in e||a in e)},k=f("Date"),O=f("File"),S=f("Blob"),R=f("FileList"),N=f("URLSearchParams"),[T,P,j,A]=["ReadableStream","Request","Response","Headers"].map(f);function C(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(h(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function x(e,t){if(h(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,L=e=>!m(e)&&e!==U;const _=(F="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>F&&e instanceof F);var F;const B=f("HTMLFormElement"),D=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),q=f("RegExp"),I=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};C(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const M=f("AsyncFunction"),z=(W="function"==typeof setImmediate,H=b(U.postMessage),W?setImmediate:H?(J=`axios@${Math.random()}`,V=[],U.addEventListener("message",(({source:e,data:t})=>{e===U&&t===J&&V.length&&V.shift()()}),!1),e=>{V.push(e),U.postMessage(J,"*")}):e=>setTimeout(e));var W,H,J,V;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(U):"undefined"!=typeof process&&process.nextTick||z,K={isArray:p,isArrayBuffer:y,isBuffer:h,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||b(e.append)&&("formdata"===(t=l(e))||"object"===t&&b(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y(e.buffer),t},isString:g,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:E,isPlainObject:v,isEmptyObject:e=>{if(!E(e)||h(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:T,isRequest:P,isResponse:j,isHeaders:A,isUndefined:m,isDate:k,isFile:O,isBlob:S,isRegExp:q,isFunction:b,isStream:e=>E(e)&&b(e.pipe),isURLSearchParams:N,isTypedArray:_,isFileList:R,forEach:C,merge:function e(){const{caseless:t}=L(this)&&this||{},n={},r=(r,o)=>{const i=t&&x(n,o)||o;v(n[i])&&v(r)?n[i]=e(n[i],r):v(r)?n[i]=e({},r):p(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&C(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(C(t,((t,r)=>{n&&b(t)?e[r]=o(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:f,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!w(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[a]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:B,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:I,freezeMethods:e=>{I(e,((t,n)=>{if(b(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];b(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:x,global:U,isContextDefined:L,isSpecCompliantForm:function(e){return!!(e&&b(e.append)&&"FormData"===e[c]&&e[a])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(E(e)){if(t.indexOf(e)>=0)return;if(h(e))return e;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return C(e,((e,t)=>{const i=n(e,r+1);!m(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:M,isThenable:e=>e&&(E(e)||b(e))&&b(e.then)&&b(e.catch),setImmediate:z,asap:G,isIterable:e=>null!=e&&b(e[a])};function $(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}K.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}});const X=$.prototype,Q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Q[e]={value:e}})),Object.defineProperties($,Q),Object.defineProperty(X,"isAxiosError",{value:!0}),$.from=(e,t,n,r,o,i)=>{const s=Object.create(X);return K.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Z=$;function Y(e){return K.isPlainObject(e)||K.isArray(e)}function ee(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function te(e,t,n){return e?e.concat(t).map((function(e,t){return e=ee(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ne=K.toFlatObject(K,{},null,(function(e){return/^is[A-Z]/.test(e)}));const re=function(e,t,n){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!K.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(K.isBoolean(e))return e.toString();if(!a&&K.isBlob(e))throw new Z("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(K.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&function(e){return K.isArray(e)&&!e.some(Y)}(e)||(K.isFileList(e)||K.endsWith(n,"[]"))&&(a=K.toArray(e)))return n=ee(n),a.forEach((function(e,r){!K.isUndefined(e)&&null!==e&&t.append(!0===s?te([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!Y(e)||(t.append(te(o,n,i),c(e)),!1)}const u=[],f=Object.assign(ne,{defaultVisitor:l,convertValue:c,isVisitable:Y});if(!K.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!K.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),K.forEach(n,(function(n,i){!0===(!(K.isUndefined(n)||null===n)&&o.call(t,n,K.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function oe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ie(e,t){this._pairs=[],e&&re(e,this,t)}const se=ie.prototype;se.append=function(e,t){this._pairs.push([e,t])},se.toString=function(e){const t=e?function(t){return e.call(this,t,oe)}:oe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ae=ie;function ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function le(e,t,n){if(!t)return e;const r=n&&n.encode||ce;K.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):K.isURLSearchParams(t)?t.toString():new ae(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const ue=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},fe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},de={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},pe="undefined"!=typeof window&&"undefined"!=typeof document,me="object"==typeof navigator&&navigator||void 0,he=pe&&(!me||["ReactNative","NativeScript","NS"].indexOf(me.product)<0),ye="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ge=pe&&window.location.href||"http://localhost",be={...e,...de};const we=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&K.isArray(r)?r.length:i,a)return K.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&K.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&K.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s}if(K.isFormData(e)&&K.isFunction(e.entries)){const n={};return K.forEachEntry(e,((e,r)=>{t(function(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const Ee={transitional:fe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=K.isObject(e);o&&K.isHTMLForm(e)&&(e=new FormData(e));if(K.isFormData(e))return r?JSON.stringify(we(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return re(e,new be.classes.URLSearchParams,{visitor:function(e,t,n,r){return be.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=K.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return re(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ee.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Z.from(e,Z.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],(e=>{Ee.headers[e]={}}));const ve=Ee,ke=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oe=Symbol("internals");function Se(e){return e&&String(e).trim().toLowerCase()}function Re(e){return!1===e||null==e?e:K.isArray(e)?e.map(Re):String(e)}function Ne(e,t,n,r,o){return K.isFunction(r)?r.call(this,t,n):(o&&(t=n),K.isString(t)?K.isString(r)?-1!==t.indexOf(r):K.isRegExp(r)?r.test(t):void 0:void 0)}class Te{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Se(t);if(!o)throw new Error("header name must be a non-empty string");const i=K.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Re(e))}const i=(e,t)=>K.forEach(e,((e,n)=>o(e,n,t)));if(K.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(K.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ke[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(K.isObject(e)&&K.isIterable(e)){let n,r,o={};for(const t of e){if(!K.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?K.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Se(e)){const n=K.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(K.isFunction(t))return t.call(this,e,n);if(K.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Se(e)){const n=K.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ne(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Se(e)){const o=K.findKey(n,e);!o||t&&!Ne(0,n[o],o,t)||(delete n[o],r=!0)}}return K.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ne(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return K.forEach(this,((r,o)=>{const i=K.findKey(n,o);if(i)return t[i]=Re(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=Re(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return K.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&K.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Oe]=this[Oe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Se(e);t[r]||(!function(e,t){const n=K.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return K.isArray(e)?e.forEach(r):r(e),this}}Te.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Te.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),K.freezeMethods(Te);const Pe=Te;function je(e,t){const n=this||ve,r=t||n,o=Pe.from(r.headers);let i=r.data;return K.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ae(e){return!(!e||!e.__CANCEL__)}function Ce(e,t,n){Z.call(this,null==e?"canceled":e,Z.ERR_CANCELED,t,n),this.name="CanceledError"}K.inherits(Ce,Z,{__CANCEL__:!0});const xe=Ce;function Ue(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Le=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[s];o||(o=c),n[i]=a,r[i]=c;let u=s,f=0;for(;u!==i;)f+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}};const _e=function(e,t){let n,r,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout((()=>{r=null,s(n)}),i-a)))},()=>n&&s(n)]},Fe=(e,t,n=3)=>{let r=0;const o=Le(50,250);return _e((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,c=o(a);r=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},Be=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},De=e=>(...t)=>K.asap((()=>e(...t))),qe=be.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,be.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(be.origin),be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent)):()=>!0,Ie=be.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];K.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),K.isString(r)&&s.push("path="+r),K.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Me(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ze=e=>e instanceof Pe?{...e}:e;function We(e,t){t=t||{};const n={};function r(e,t,n,r){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:r},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function o(e,t,n,o){return K.isUndefined(t)?K.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!K.isUndefined(t))return r(void 0,t)}function s(e,t){return K.isUndefined(t)?K.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>o(ze(e),ze(t),0,!0)};return K.forEach(Object.keys({...e,...t}),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);K.isUndefined(s)&&i!==a||(n[r]=s)})),n}const He=e=>{const t=We({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Pe.from(a),t.url=le(Me(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),K.isFormData(r))if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(be.hasStandardBrowserEnv&&(o&&K.isFunction(o)&&(o=o(t)),o||!1!==o&&qe(t.url))){const e=i&&s&&Ie.read(s);e&&a.set(i,e)}return t},Je="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=He(e);let o=r.data;const i=Pe.from(r.headers).normalize();let s,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function m(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let h=new XMLHttpRequest;function y(){if(!h)return;const r=Pe.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Ue((function(e){t(e),m()}),(function(e){n(e),m()}),{data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(new Z("Request aborted",Z.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Z("Network Error",Z.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||fe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Z(t,o.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&K.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),K.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),f&&"json"!==f&&(h.responseType=r.responseType),p&&([c,u]=Fe(p,!0),h.addEventListener("progress",c)),d&&h.upload&&([a,l]=Fe(d),h.upload.addEventListener("progress",a),h.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(s=t=>{h&&(n(!t||t.type?new xe(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===be.protocols.indexOf(g)?n(new Z("Unsupported protocol "+g+":",Z.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Ve=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Z?t:new xe(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Z(`timeout ${t} of ms exceeded`,Z.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>K.asap(s),a}},Ge=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ke=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},$e=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ke(e))yield*Ge(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},Xe="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Qe=Xe&&"function"==typeof ReadableStream,Ze=Xe&&("function"==typeof TextEncoder?(Ye=new TextEncoder,e=>Ye.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ye;const et=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tt=Qe&&et((()=>{let e=!1;const t=new Request(be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),nt=Qe&&et((()=>K.isReadableStream(new Response("").body))),rt={stream:nt&&(e=>e.body)};var ot;Xe&&(ot=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!rt[e]&&(rt[e]=K.isFunction(ot[e])?t=>t[e]():(t,n)=>{throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,n)})})));const it=async(e,t)=>{const n=K.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e)){const t=new Request(be.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return K.isArrayBufferView(e)||K.isArrayBuffer(e)?e.byteLength:(K.isURLSearchParams(e)&&(e+=""),K.isString(e)?(await Ze(e)).byteLength:void 0)})(t):n},st={http:null,xhr:Je,fetch:Xe&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:f="same-origin",fetchOptions:d}=He(e);l=l?(l+"").toLowerCase():"text";let p,m=Ve([o,i&&i.toAbortSignal()],s);const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let y;try{if(c&&tt&&"get"!==n&&"head"!==n&&0!==(y=await it(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(K.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Be(y,Fe(De(c)));r=$e(n.body,65536,e,t)}}K.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...d,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?f:void 0});let i=await fetch(p,d);const s=nt&&("stream"===l||"response"===l);if(nt&&(a||s&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=K.toFiniteNumber(i.headers.get("content-length")),[n,r]=a&&Be(t,Fe(De(a),!0))||[];i=new Response($e(i.body,65536,n,(()=>{r&&r(),h&&h()})),e)}l=l||"text";let g=await rt[K.findKey(rt,l)||"text"](i,e);return!s&&h&&h(),await new Promise(((t,n)=>{Ue(t,n,{data:g,headers:Pe.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(t){if(h&&h(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,p),{cause:t.cause||t});throw Z.from(t,t&&t.code,e,p)}})};K.forEach(st,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const at=e=>`- ${e}`,ct=e=>K.isFunction(e)||null===e||!1===e,lt=e=>{e=K.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!ct(n)&&(r=st[(t=String(n)).toLowerCase()],void 0===r))throw new Z(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(at).join("\n"):" "+at(e[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ut(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xe(null,e)}function ft(e){ut(e),e.headers=Pe.from(e.headers),e.data=je.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return lt(e.adapter||ve.adapter)(e).then((function(t){return ut(e),t.data=je.call(e,e.transformResponse,t),t.headers=Pe.from(t.headers),t}),(function(t){return Ae(t)||(ut(e),t&&t.response&&(t.response.data=je.call(e,e.transformResponse,t.response),t.response.headers=Pe.from(t.response.headers))),Promise.reject(t)}))}const dt="1.11.0",pt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{pt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const mt={};pt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+dt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Z(r(o," has been removed"+(t?" in "+t:"")),Z.ERR_DEPRECATED);return t&&!mt[o]&&(mt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},pt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const ht={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new Z("option "+i+" must be "+n,Z.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Z("Unknown option "+i,Z.ERR_BAD_OPTION)}},validators:pt},yt=ht.validators;class gt{constructor(e){this.defaults=e||{},this.interceptors={request:new ue,response:new ue}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=We(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ht.assertOptions(n,{silentJSONParsing:yt.transitional(yt.boolean),forcedJSONParsing:yt.transitional(yt.boolean),clarifyTimeoutError:yt.transitional(yt.boolean)},!1),null!=r&&(K.isFunction(r)?t.paramsSerializer={serialize:r}:ht.assertOptions(r,{encode:yt.function,serialize:yt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ht.assertOptions(t,{baseUrl:yt.spelling("baseURL"),withXsrfToken:yt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&K.merge(o.common,o[t.method]);o&&K.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Pe.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,f=0;if(!a){const e=[ft.bind(this),void 0];for(e.unshift(...s),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=s.length;let d=t;for(f=0;f<u;){const e=s[f++],t=s[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=ft.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return le(Me((e=We(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}K.forEach(["delete","get","head","options"],(function(e){gt.prototype[e]=function(t,n){return this.request(We(n||{},{method:e,url:t,data:(n||{}).data}))}})),K.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(We(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}gt.prototype[e]=t(),gt.prototype[e+"Form"]=t(!0)}));const bt=gt;class wt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new xe(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new wt((function(t){e=t})),cancel:e}}}const Et=wt;const vt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vt).forEach((([e,t])=>{vt[t]=e}));const kt=vt;const Ot=function e(t){const n=new bt(t),r=o(bt.prototype.request,n);return K.extend(r,bt.prototype,n,{allOwnKeys:!0}),K.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(We(t,n))},r}(ve);Ot.Axios=bt,Ot.CanceledError=xe,Ot.CancelToken=Et,Ot.isCancel=Ae,Ot.VERSION=dt,Ot.toFormData=re,Ot.AxiosError=Z,Ot.Cancel=Ot.CanceledError,Ot.all=function(e){return Promise.all(e)},Ot.spread=function(e){return function(t){return e.apply(null,t)}},Ot.isAxiosError=function(e){return K.isObject(e)&&!0===e.isAxiosError},Ot.mergeConfig=We,Ot.AxiosHeaders=Pe,Ot.formToJSON=e=>we(K.isHTMLForm(e)?new FormData(e):e),Ot.getAdapter=lt,Ot.HttpStatusCode=kt,Ot.default=Ot;const St=Ot;var Rt=wp.i18n.__,Nt=wp.components.Button;const Tt=function(e){var t=e.layout,n=e.importLayout,r=e.handlePreviewLayout,o=e.isImporting,i=e.importedPageId,s=e.isProLayout,a=e.isPremium,c=e.upgradeUrl,l=e.adminUrl;return React.createElement("div",{className:"kwtsk-layout"},React.createElement("div",{className:"kwtsk-layout-img"},React.createElement("img",{src:t.previewImage,alt:t.title})),React.createElement("div",{className:"kwtsk-layout-content"},React.createElement("h3",null,t.title),React.createElement("div",{className:"kwtsk-layout-btns"},s&&a||!s&&!a?React.createElement(React.Fragment,null,i?React.createElement("a",{href:"".concat(l,"post.php?post=").concat(i,"&action=edit&editor-mode=visual"),className:"kwtsk-btn",target:"_blank",rel:"noopener noreferrer"},Rt("Edit Page","theme-site-kit")):React.createElement(Nt,{onClick:function(){return n(t)},className:"kwtsk-btn ".concat(o?"importing":""),disabled:o},Rt("Import Layout","theme-site-kit"))):React.createElement("a",{href:c,className:"kwtsk-btn"},Rt("Upgrade to Pro","theme-site-kit")),React.createElement(Nt,{onClick:function(){return r(t)},className:"kwtsk-btn"},Rt("Preview Layout","your-textdomain")))))};function Pt(e){return Pt="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},Pt(e)}function jt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof a?r:a,l=Object.create(c.prototype);return At(l,"_invoke",function(n,r,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,a=0,c=e,d.n=n,s}};function p(n,r){for(a=n,c=r,t=0;!f&&l&&!o&&t<u.length;t++){var o,i=u[t],p=d.p,m=i[2];n>3?(o=m===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(a=0,d.v=r,d.n=i[1]):p<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,d.n=m,a=0))}if(o||n>1)return s;throw f=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,m),a=u,c=m;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:n.call(r,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(n,o,i),!0),l}var s={};function a(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(At(t={},r,(function(){return this})),t),f=l.prototype=a.prototype=Object.create(u);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,At(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,At(f,"constructor",l),At(l,"constructor",c),c.displayName="GeneratorFunction",At(l,o,"GeneratorFunction"),At(f),At(f,o,"Generator"),At(f,r,(function(){return this})),At(f,"toString",(function(){return"[object Generator]"})),(jt=function(){return{w:i,m:d}})()}function At(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}At=function(e,t,n,r){function i(t,n){At(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},At(e,t,n,r)}function Ct(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 xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){Ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ut(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Pt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lt(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function _t(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){Lt(i,r,o,s,a,"next",e)}function a(e){Lt(i,r,o,s,a,"throw",e)}s(void 0)}))}}function Ft(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){var r,o,i,s,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n={}.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)?Bt(e,t):void 0}}(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 Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Dt=wp.i18n.__,qt=wp.components.Button;const It=function(e){var n=e.kwtskObj,o=e.svgOn,i=Ft((0,t.useState)([]),2),s=i[0],a=i[1],c=Ft((0,t.useState)([]),2),l=c[0],u=c[1],f=Ft((0,t.useState)(!0),2),d=f[0],p=f[1],m=Ft((0,t.useState)(null),2),h=m[0],y=m[1],g=Ft((0,t.useState)(null),2),b=g[0],w=g[1],E=Ft((0,t.useState)(null),2),v=E[0],k=E[1],O=Ft((0,t.useState)(null),2),S=O[0],R=O[1],N=Ft((0,t.useState)({}),2),T=N[0],P=N[1],j=Boolean(n.isPremium),A=n.upgradeUrl,C=Ft((0,t.useState)({}),2),x=C[0],U=C[1],L=Ft((0,t.useState)([]),2),_=L[0],F=L[1],B=Ft((0,t.useState)([]),2),D=B[0],q=B[1],I=Ft((0,t.useState)(""),2),M=I[0],z=I[1],W=Ft((0,t.useState)(""),2),H=W[0],J=W[1];if((0,t.useEffect)((function(){St.get("".concat(n.apiUrl,"kwtsk/v1/layouts")).then((function(e){a(e.data.layouts),F(e.data.categories),q(e.data.tags),p(!1)})).catch((function(e){console.error("Error fetching layouts:",e),y("Error fetching layouts"),p(!1)}))}),[n.apiUrl]),(0,t.useEffect)((function(){St.get("".concat(n.apiUrl,"kwtsk/v1/installed-plugins"),{headers:{"X-WP-Nonce":n.nonce}}).then((function(e){u(e.data)})).catch((function(e){console.error("Error fetching installed plugins:",e)}))}),[n.apiUrl,n.nonce]),(0,t.useEffect)((function(){return v?document.body.classList.add("kwtsk-modal-open"):document.body.classList.remove("kwtsk-modal-open"),function(){return document.body.classList.remove("kwtsk-modal-open")}}),[v]),d)return r().createElement("div",null,Dt("Loading layouts...","theme-site-kit"));if(h)return r().createElement("div",null,h);var V=s.filter((function(e){return!M||e.collectionCategory===M})),G=function(){var e=_t(jt().m((function e(t){var r,o,i;return jt().w((function(e){for(;;)switch(e.p=e.n){case 0:if(window.confirm(Dt("This layout will be imported and added as a new page. Continue?","theme-site-kit"))){e.n=1;break}return e.a(2);case 1:return R(t.id),e.p=2,e.n=3,St.post("".concat(n.apiUrl,"kwtsk/v1/import-layout"),t,{headers:{"X-WP-Nonce":n.nonce,"Content-Type":"application/json"}});case 3:r=e.v,o=r.data,P((function(e){return xt(xt({},e),{},Ut({},t.id,o.post_id))})),e.n=5;break;case 4:e.p=4,i=e.v,console.error(i),alert(Dt("Failed to create page. Please try again or check your permissions.","theme-site-kit"));case 5:return e.p=5,R(null),e.f(5);case 6:return e.a(2)}}),e,null,[[2,4,5,6]])})));return function(t){return e.apply(this,arguments)}}();function K(e){var t=l.find((function(t){return t.slug===e.slug})),n=x[e.slug];return n||(n=t?t.active?"activated":"activate":"not_installed"),n}var $,X,Q=($=s.find((function(e){return e.collectionName===b})))&&$.requiredPlugins?$.requiredPlugins:[],Z=[{ignore:"blockons",condition:"blockons-pro"}],Y=Q.filter((function(e){var t=Z.find((function(t){return t.ignore===e.slug}));return!t||!l.some((function(e){return e.slug===t.condition}))})),ee=Y.length>0&&Y.every((function(e){return"activated"===K(e)})),te=null;if(Y.length>0&&!ee&&(te=r().createElement("div",{className:"kwtsk-required-plugins"},r().createElement("h4",null,Dt("Required Plugins","theme-site-kit")),r().createElement("p",null,Dt("To use these layouts, please install the following plugins:","theme-site-kit")),r().createElement("ul",null,Y.map((function(e){var t,o=K(e);return t="installing"===o?r().createElement("span",null,Dt("Installing Plugin...","theme-site-kit")):"activating"===o?r().createElement("span",null,Dt("Activating Plugin...","theme-site-kit")):"activated"===o?r().createElement("span",null,Dt("Already installed","theme-site-kit")):"activate"===o?r().createElement(qt,{onClick:_t(jt().m((function t(){return jt().w((function(t){for(;;)switch(t.p=t.n){case 0:return U((function(t){return xt(xt({},t),{},Ut({},e.slug,"activating"))})),t.p=1,t.n=2,St.post("".concat(n.apiUrl,"kwtsk/v1/install-plugin"),{slug:e.slug},{headers:{"X-WP-Nonce":n.nonce,"Content-Type":"application/json"}});case 2:U((function(t){return xt(xt({},t),{},Ut({},e.slug,"activated"))})),t.n=4;break;case 3:t.p=3,t.v,U((function(t){return xt(xt({},t),{},Ut({},e.slug,void 0))}));case 4:return t.a(2)}}),t,null,[[1,3]])}))),className:"kwtsk-req-btn activate"},Dt("Activate","theme-site-kit")):r().createElement(qt,{onClick:_t(jt().m((function t(){var r,o;return jt().w((function(t){for(;;)switch(t.p=t.n){case 0:return U((function(t){return xt(xt({},t),{},Ut({},e.slug,"installing"))})),t.p=1,t.n=2,St.post("".concat(n.apiUrl,"kwtsk/v1/install-plugin"),{slug:e.slug},{headers:{"X-WP-Nonce":n.nonce,"Content-Type":"application/json"}});case 2:r=t.v,(o=r.data.message.toLowerCase()).includes("installed but inactive")?U((function(t){return xt(xt({},t),{},Ut({},e.slug,"activate"))})):(o.includes("already installed")||o.includes("activated"))&&U((function(t){return xt(xt({},t),{},Ut({},e.slug,"activated"))})),t.n=4;break;case 3:t.p=3,t.v,U((function(t){return xt(xt({},t),{},Ut({},e.slug,void 0))}));case 4:return t.a(2)}}),t,null,[[1,3]])}))),className:"kwtsk-req-btn"},Dt("Install Now","theme-site-kit")),r().createElement("li",{key:e.slug},r().createElement("span",null,e.name)," ",t)}))))),null===b)X=r().createElement(r().Fragment,null,r().createElement("div",{className:"kwtsk-page-title"},r().createElement("h2",null,Dt("Import Page Layouts","theme-site-kit")),r().createElement("p",null,Dt("Welcome to the Import Page Layouts tool - your shortcut to quickly building new pages using professionally designed Gutenberg layouts. Instead of building from scratch, simply browse the different layout collections below.","theme-site-kit")),r().createElement("p",null,Dt("Note: Imported layouts may appear slightly different depending on your active theme. Variations might include adjustments in heading sizes, small styling details, or fonts.","theme-site-kit")),!o&&r().createElement("p",{className:"kwtsk-svg-warning"},Dt("Please ensure SVG Uploads are enabled, as some of these layouts include SVG images.","theme-site-kit")," ",r().createElement("a",{href:"".concat(n.adminUrl,"options-general.php?page=theme-site-kit-settings&tab=extras")},Dt("Go to SVG Uploads","")))),r().createElement("div",{className:"kwtsk-filters"},r().createElement("select",{value:M,onChange:function(e){return z(e.target.value)}},r().createElement("option",{value:""},Dt("All Categories")),_.map((function(e){return r().createElement("option",{key:e,value:e},e)})))),r().createElement("div",{className:"kwtsk-collections"},V.length>0?V.map((function(e){return r().createElement("div",{key:e.collectionName,className:"kwtsk-collection"},r().createElement("h3",null,e.collectionName),r().createElement("div",{className:"kwtsk-collection-content"},r().createElement("div",{className:"kwtsk-collection-preview"},r().createElement("img",{src:e.previewImage,alt:e.collectionName}),e.isProLayout&&!j&&r().createElement("a",{href:A,className:"fa-solid fa-web-awesome kwtsk-pro-icon"})),r().createElement("div",{className:"kwtsk-collection-info"},r().createElement(qt,{onClick:function(){return w(e.collectionName)},className:"kwtsk-collection-btn"},Dt("View Layout Collection","theme-site-kit")))))})):r().createElement("div",{className:"kwtsk-no-layouts"},Dt("No layout collections available.","theme-site-kit"))));else{var ne,re=null===(ne=s.find((function(e){return e.collectionName===b})))||void 0===ne?void 0:ne.layouts;H&&(re=re.filter((function(e){return e.tags&&e.tags.includes(H)})));var oe=s.find((function(e){return e.collectionName===b}));X=r().createElement("div",{className:"kwtsk-layouts-collection"},r().createElement("div",{className:"kwtsk-collection-header"},r().createElement("h2",null,b),r().createElement(qt,{onClick:function(){return w(null)},className:"kwtsk-btn"},"<<"," ",Dt("Go Back","theme-site-kit")),r().createElement("div",{className:"kwtsk-tags"},D.map((function(e){return r().createElement("button",{key:e,className:"kwtsk-tag".concat(H===e?" active":""),onClick:function(){return J(H===e?"":e)}},e)})))),te,r().createElement("div",{className:"kwtsk-layout-items"},re&&re.length>0?re.map((function(e,t){return r().createElement(Tt,{key:e.id||t,layout:e,importLayout:G,handlePreviewLayout:k,isImporting:null!==S&&S===e.id,importedPageId:T[e.id],isProLayout:null==oe?void 0:oe.isProLayout,isPremium:j,upgradeUrl:A,adminUrl:n.adminUrl})})):r().createElement("div",null,Dt("No layouts available in this collection.","theme-site-kit"))))}return r().createElement("div",{className:"kwtsk-page-layouts"},X,v&&r().createElement("div",{className:"kwtsk-layout-modal-overlay",onClick:function(){return k(null)}},r().createElement("div",{className:"kwtsk-layout-modal-content",onClick:function(e){return e.stopPropagation()}},r().createElement("button",{className:"kwtsk-layout-modal-close",onClick:function(){return k(null)}},"×"),r().createElement("div",{className:"kwtsk-layout-modal-header"},r().createElement("div",null,r().createElement("h4",null,v.title)),j?r().createElement(qt,{onClick:function(){return G(v)},className:"kwtsk-btn"},Dt("Import Layout","theme-site-kit")):r().createElement("a",{href:A,className:"kwtsk-btn"},Dt("Upgrade to Pro","theme-site-kit"))),r().createElement("div",{className:"kwtsk-layout-modal-img"},r().createElement("img",{src:v.previewImage,alt:v.title})))))};var Mt=wp.element.render;document.addEventListener("DOMContentLoaded",(function(){var e=kwtskLObj,t=document.getElementById("kwtsk-layouts-root"),n=Boolean(e.canSvg);t&&Mt(React.createElement(It,{kwtskObj:e,svgOn:n}),t)}))})(),(this["theme-site-kit"]=this["theme-site-kit"]||{})["layouts.min"]={}})(); -
theme-site-kit/trunk/dist/settings.css
r3298008 r3351118 1272 1272 } 1273 1273 .cpts-table .cpts-single-sets > div { 1274 padding: 8px 0; 1274 padding: 6px 0; 1275 margin: 2px 0; 1275 1276 } 1276 1277 .cpts-table .cpts-single-sets { 1277 1278 position: relative; 1278 1279 } 1280 /* new */ 1281 .cpts-permalink-input { 1282 margin: 8px 0 0 25px; 1283 display: inline; 1284 } 1285 1286 .cpts-permalink-input input { 1287 -webkit-box-flex: 1; 1288 -ms-flex: 1; 1289 flex: 1; 1290 max-width: 180px; 1291 padding: 2px 8px; 1292 margin: 0 5px 0 0; 1293 border: 1px solid #ddd; 1294 border-radius: 4px; 1295 font-size: 13px; 1296 } 1297 1298 .cpts-permalink-input input:focus { 1299 border-color: #2271b1; 1300 -webkit-box-shadow: 0 0 0 1px #2271b1; 1301 box-shadow: 0 0 0 1px #2271b1; 1302 outline: none; 1303 } 1304 1305 .cpts-permalink-input code { 1306 background: #f0f0f1; 1307 padding: 4px 8px; 1308 border-radius: 2px; 1309 font-size: 12px; 1310 color: #1e1e1e; 1311 } 1312 /* new */ 1279 1313 .cpts-table .cpts-single-slug { 1280 1314 display: -webkit-box; … … 1369 1403 } 1370 1404 1405 .cpts-template { 1406 margin-top: 10px !important; 1407 display: -webkit-box; 1408 display: -ms-flexbox; 1409 display: flex; 1410 -webkit-box-align: center; 1411 -ms-flex-align: center; 1412 align-items: center; 1413 gap: 10px; 1414 } 1415 1416 .cpts-template button { 1417 background-color: #f0f0f1; 1418 color: #2271b1; 1419 border-color: #2271b1; 1420 padding: 4px 12px; 1421 min-height: 30px; 1422 -webkit-transition: all 0.3s ease; 1423 transition: all 0.3s ease; 1424 } 1425 1426 .cpts-template button:hover { 1427 background-color: #2271b1; 1428 color: #fff; 1429 } 1430 1431 .cpts-template button:disabled { 1432 background-color: #f6f7f7; 1433 border-color: #a7aaad; 1434 color: #a7aaad; 1435 cursor: not-allowed; 1436 } 1437 1438 .cpts-template .button.has-template { 1439 background-color: #f0f0f1; 1440 border-color: #8c8f94; 1441 color: #2271b1; 1442 } 1443 1444 .cpts-template .button.has-template:hover { 1445 background-color: #2271b1; 1446 color: #fff; 1447 border-color: #2271b1; 1448 } 1449 1450 .cpts-template .template-exists { 1451 color: #2271b1; 1452 font-size: 13px; 1453 display: -webkit-box; 1454 display: -ms-flexbox; 1455 display: flex; 1456 -webkit-box-align: center; 1457 -ms-flex-align: center; 1458 align-items: center; 1459 gap: 5px; 1460 } 1461 1462 .cpts-template .template-exists i { 1463 color: #00a32a; 1464 } 1465 -
theme-site-kit/trunk/dist/settings.js
r3326191 r3351118 10032 10032 const {toString: utils_toString} = Object.prototype; 10033 10033 const {getPrototypeOf} = Object; 10034 const {iterator, toStringTag} = Symbol; 10034 10035 10035 10036 const kindOf = (cache => thing => { … … 10158 10159 10159 10160 const prototype = getPrototypeOf(val); 10160 return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); 10161 return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val); 10162 } 10163 10164 /** 10165 * Determine if a value is an empty object (safely handles Buffers) 10166 * 10167 * @param {*} val The value to test 10168 * 10169 * @returns {boolean} True if value is an empty object, otherwise false 10170 */ 10171 const isEmptyObject = (val) => { 10172 // Early return for non-objects or Buffers to prevent RangeError 10173 if (!isObject(val) || isBuffer(val)) { 10174 return false; 10175 } 10176 10177 try { 10178 return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype; 10179 } catch (e) { 10180 // Fallback for any other objects that might cause RangeError with Object.keys() 10181 return false; 10182 } 10161 10183 } 10162 10184 … … 10283 10305 } 10284 10306 } else { 10307 // Buffer check 10308 if (isBuffer(obj)) { 10309 return; 10310 } 10311 10285 10312 // Iterate over object keys 10286 10313 const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); … … 10296 10323 10297 10324 function findKey(obj, key) { 10325 if (isBuffer(obj)){ 10326 return null; 10327 } 10328 10298 10329 key = key.toLowerCase(); 10299 10330 const keys = Object.keys(obj); … … 10509 10540 */ 10510 10541 const forEachEntry = (obj, fn) => { 10511 const generator = obj && obj[ Symbol.iterator];10512 10513 const iterator = generator.call(obj);10542 const generator = obj && obj[iterator]; 10543 10544 const _iterator = generator.call(obj); 10514 10545 10515 10546 let result; 10516 10547 10517 while ((result = iterator.next()) && !result.done) {10548 while ((result = _iterator.next()) && !result.done) { 10518 10549 const pair = result.value; 10519 10550 fn.call(obj, pair[0], pair[1]); … … 10636 10667 */ 10637 10668 function isSpecCompliantForm(thing) { 10638 return !!(thing && isFunction(thing.append) && thing[ Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);10669 return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]); 10639 10670 } 10640 10671 … … 10647 10678 if (stack.indexOf(source) >= 0) { 10648 10679 return; 10680 } 10681 10682 //Buffer check 10683 if (isBuffer(source)) { 10684 return source; 10649 10685 } 10650 10686 … … 10704 10740 10705 10741 // ********************* 10742 10743 10744 const isIterable = (thing) => thing != null && isFunction(thing[iterator]); 10745 10706 10746 10707 10747 /* harmony default export */ const utils = ({ … … 10716 10756 isObject, 10717 10757 isPlainObject, 10758 isEmptyObject, 10718 10759 isReadableStream, 10719 10760 isRequest, … … 10760 10801 isThenable, 10761 10802 setImmediate: _setImmediate, 10762 asap 10803 asap, 10804 isIterable 10763 10805 }); 10764 10806 … … 10995 11037 } 10996 11038 11039 if (utils.isBoolean(value)) { 11040 return value.toString(); 11041 } 11042 10997 11043 if (!useBlob && utils.isBlob(value)) { 10998 11044 throw new core_AxiosError('Blob is not supported. Use a Buffer instead.'); … … 11401 11447 11402 11448 function toURLEncodedForm(data, options) { 11403 return helpers_toFormData(data, new platform.classes.URLSearchParams(), Object.assign({11449 return helpers_toFormData(data, new platform.classes.URLSearchParams(), { 11404 11450 visitor: function(value, key, path, helpers) { 11405 11451 if (platform.isNode && utils.isBuffer(value)) { … … 11409 11455 11410 11456 return helpers.defaultVisitor.apply(this, arguments); 11411 } 11412 }, options)); 11457 }, 11458 ...options 11459 }); 11413 11460 } 11414 11461 … … 11833 11880 } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { 11834 11881 setHeaders(parseHeaders(header), valueOrRewrite); 11835 } else if (utils.isHeaders(header)) { 11836 for (const [key, value] of header.entries()) { 11837 setHeader(value, key, rewrite); 11838 } 11882 } else if (utils.isObject(header) && utils.isIterable(header)) { 11883 let obj = {}, dest, key; 11884 for (const entry of header) { 11885 if (!utils.isArray(entry)) { 11886 throw TypeError('Object iterator must return a key-value pair'); 11887 } 11888 11889 obj[key = entry[0]] = (dest = obj[key]) ? 11890 (utils.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1]; 11891 } 11892 11893 setHeaders(obj, valueOrRewrite) 11839 11894 } else { 11840 11895 header != null && setHeader(valueOrRewrite, header, rewrite); … … 11976 12031 toString() { 11977 12032 return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n'); 12033 } 12034 12035 getSetCookie() { 12036 return this.get("set-cookie") || []; 11978 12037 } 11979 12038 … … 12212 12271 timer = null; 12213 12272 } 12214 fn .apply(null,args);12273 fn(...args); 12215 12274 } 12216 12275 … … 12396 12455 function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) { 12397 12456 let isRelativeUrl = !isAbsoluteURL(requestedURL); 12398 if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {12457 if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) { 12399 12458 return combineURLs(baseURL, requestedURL); 12400 12459 } … … 12501 12560 }; 12502 12561 12503 utils.forEach(Object.keys( Object.assign({}, config1, config2)), function computeConfigValue(prop) {12562 utils.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) { 12504 12563 const merge = mergeMap[prop] || mergeDeepProperties; 12505 12564 const configValue = merge(config1[prop], config2[prop], prop); … … 12527 12586 newConfig.headers = headers = core_AxiosHeaders.from(headers); 12528 12587 12529 newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url ), config.params, config.paramsSerializer);12588 newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer); 12530 12589 12531 12590 // HTTP basic authentication … … 13077 13136 }); 13078 13137 13079 let response = await fetch(request );13138 let response = await fetch(request, fetchOptions); 13080 13139 13081 13140 const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response'); … … 13123 13182 unsubscribe && unsubscribe(); 13124 13183 13125 if (err && err.name === 'TypeError' && / fetch/i.test(err.message)) {13184 if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) { 13126 13185 throw Object.assign( 13127 13186 new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request), … … 13303 13362 13304 13363 ;// ./node_modules/axios/lib/env/data.js 13305 const VERSION = "1. 8.1";13364 const VERSION = "1.11.0"; 13306 13365 ;// ./node_modules/axios/lib/helpers/validator.js 13307 13366 … … 13428 13487 class Axios { 13429 13488 constructor(instanceConfig) { 13430 this.defaults = instanceConfig ;13489 this.defaults = instanceConfig || {}; 13431 13490 this.interceptors = { 13432 13491 request: new core_InterceptorManager(), … … 13561 13620 if (!synchronousRequestInterceptors) { 13562 13621 const chain = [dispatchRequest.bind(this), undefined]; 13563 chain.unshift .apply(chain,requestInterceptorChain);13564 chain.push .apply(chain,responseInterceptorChain);13622 chain.unshift(...requestInterceptorChain); 13623 chain.push(...responseInterceptorChain); 13565 13624 len = chain.length; 13566 13625 … … 25701 25760 25702 25761 var SocialIconSelector = function SocialIconSelector(props) { 25703 var _props$value, _icons$editingUrlInde, _icons$editingUrlInde2, _icons$editingUrlInde3, _icons$editingUrlInde4, _icons$editingUrlInde5, _icons$editingUrlInde6, _icons$editingUrlInde7, _icons$editingUrlInde8, _icons$editingUrlInde9, _icons$editingUrlInde 10, _icons$editingUrlInde11, _icons$editingUrlInde12, _icons$editingUrlInde13;25762 var _props$value, _icons$editingUrlInde, _icons$editingUrlInde2, _icons$editingUrlInde3, _icons$editingUrlInde4, _icons$editingUrlInde5, _icons$editingUrlInde6, _icons$editingUrlInde7, _icons$editingUrlInde8, _icons$editingUrlInde9, _icons$editingUrlInde0, _icons$editingUrlInde1, _icons$editingUrlInde10, _icons$editingUrlInde11; 25704 25763 var repeaterInputId = kwtskConvertToSlug(props.slug) || kwtskConvertToSlug(props.title); 25705 25764 … … 25930 25989 }), (((_icons$editingUrlInde4 = icons[editingUrlIndex]) === null || _icons$editingUrlInde4 === void 0 ? void 0 : _icons$editingUrlInde4.value) === "fa-solid fa-envelope" || ((_icons$editingUrlInde5 = icons[editingUrlIndex]) === null || _icons$editingUrlInde5 === void 0 ? void 0 : _icons$editingUrlInde5.value) === "fa-solid fa-phone-alt" || ((_icons$editingUrlInde6 = icons[editingUrlIndex]) === null || _icons$editingUrlInde6 === void 0 ? void 0 : _icons$editingUrlInde6.value) === "fa-brands fa-whatsapp" || ((_icons$editingUrlInde7 = icons[editingUrlIndex]) === null || _icons$editingUrlInde7 === void 0 ? void 0 : _icons$editingUrlInde7.value) === "fa-brands fa-line" || ((_icons$editingUrlInde8 = icons[editingUrlIndex]) === null || _icons$editingUrlInde8 === void 0 ? void 0 : _icons$editingUrlInde8.value) === "fa-brands fa-telegram") && /*#__PURE__*/React.createElement("p", { 25931 25990 className: "kwtsk-input-note" 25932 }, ((_icons$editingUrlInde9 = icons[editingUrlIndex]) === null || _icons$editingUrlInde9 === void 0 ? void 0 : _icons$editingUrlInde9.value) === "fa-solid fa-envelope" && SocialIconSelector_('For email link add - "mailto:name@youremail.com"', "theme-site-kit"), ((_icons$editingUrlInde 10 = icons[editingUrlIndex]) === null || _icons$editingUrlInde10 === void 0 ? void 0 : _icons$editingUrlInde10.value) === "fa-solid fa-phone-alt" && SocialIconSelector_('For phone link add - "tel:+1234567890"', "theme-site-kit"), ((_icons$editingUrlInde11 = icons[editingUrlIndex]) === null || _icons$editingUrlInde11 === void 0 ? void 0 : _icons$editingUrlInde11.value) === "fa-brands fa-whatsapp" && SocialIconSelector_('For whatsapp link add - "https://wa.me/27824532805"', "theme-site-kit"), ((_icons$editingUrlInde12 = icons[editingUrlIndex]) === null || _icons$editingUrlInde12 === void 0 ? void 0 : _icons$editingUrlInde12.value) === "fa-brands fa-line" && SocialIconSelector_('For line link add - "https://line.me/ti/p/~username"', "theme-site-kit"), ((_icons$editingUrlInde13 = icons[editingUrlIndex]) === null || _icons$editingUrlInde13 === void 0 ? void 0 : _icons$editingUrlInde13.value) === "fa-brands fa-telegram" && SocialIconSelector_('For telegram link add - "https://t.me/username"', "theme-site-kit"))), props.options && props.options.length > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h4", null, SocialIconSelector_("Select Icons:", "theme-site-kit")), /*#__PURE__*/React.createElement("p", null, SocialIconSelector_("Select the icons you'd like to display on your website frontend.", "theme-site-kit")), /*#__PURE__*/React.createElement("div", {25991 }, ((_icons$editingUrlInde9 = icons[editingUrlIndex]) === null || _icons$editingUrlInde9 === void 0 ? void 0 : _icons$editingUrlInde9.value) === "fa-solid fa-envelope" && SocialIconSelector_('For email link add - "mailto:name@youremail.com"', "theme-site-kit"), ((_icons$editingUrlInde0 = icons[editingUrlIndex]) === null || _icons$editingUrlInde0 === void 0 ? void 0 : _icons$editingUrlInde0.value) === "fa-solid fa-phone-alt" && SocialIconSelector_('For phone link add - "tel:+1234567890"', "theme-site-kit"), ((_icons$editingUrlInde1 = icons[editingUrlIndex]) === null || _icons$editingUrlInde1 === void 0 ? void 0 : _icons$editingUrlInde1.value) === "fa-brands fa-whatsapp" && SocialIconSelector_('For whatsapp link add - "https://wa.me/27824532805"', "theme-site-kit"), ((_icons$editingUrlInde10 = icons[editingUrlIndex]) === null || _icons$editingUrlInde10 === void 0 ? void 0 : _icons$editingUrlInde10.value) === "fa-brands fa-line" && SocialIconSelector_('For line link add - "https://line.me/ti/p/~username"', "theme-site-kit"), ((_icons$editingUrlInde11 = icons[editingUrlIndex]) === null || _icons$editingUrlInde11 === void 0 ? void 0 : _icons$editingUrlInde11.value) === "fa-brands fa-telegram" && SocialIconSelector_('For telegram link add - "https://t.me/username"', "theme-site-kit"))), props.options && props.options.length > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h4", null, SocialIconSelector_("Select Icons:", "theme-site-kit")), /*#__PURE__*/React.createElement("p", null, SocialIconSelector_("Select the icons you'd like to display on your website frontend.", "theme-site-kit")), /*#__PURE__*/React.createElement("div", { 25933 25992 className: "kwtsk-checkbox-selects" 25934 25993 }, props.options.map(function (opt) { … … 25983 26042 ;// ./src/backend/components/inputs/CptsSelect.js 25984 26043 function CptsSelect_typeof(o) { "@babel/helpers - typeof"; return CptsSelect_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, CptsSelect_typeof(o); } 25985 function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == CptsSelect_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(CptsSelect_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } 25986 function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); } 25987 function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; } 26044 function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); } 26045 function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); } 25988 26046 function CptsSelect_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } 25989 26047 function CptsSelect_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? CptsSelect_ownKeys(Object(t), !0).forEach(function (r) { CptsSelect_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : CptsSelect_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } … … 25991 26049 function CptsSelect_toPropertyKey(t) { var i = CptsSelect_toPrimitive(t, "string"); return "symbol" == CptsSelect_typeof(i) ? i : i + ""; } 25992 26050 function CptsSelect_toPrimitive(t, r) { if ("object" != CptsSelect_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != CptsSelect_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } 26051 function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); } 26052 function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; } 25993 26053 function CptsSelect_slicedToArray(r, e) { return CptsSelect_arrayWithHoles(r) || CptsSelect_iterableToArrayLimit(r, e) || CptsSelect_unsupportedIterableToArray(r, e) || CptsSelect_nonIterableRest(); } 25994 26054 function CptsSelect_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } … … 25999 26059 var CptsSelect_useState = wp.element.useState; 26000 26060 var CptsSelect_ = wp.i18n.__; 26061 26001 26062 26002 26063 … … 26028 26089 checking = _useState8[0], 26029 26090 setChecking = _useState8[1]; 26091 var _useState9 = CptsSelect_useState({}), 26092 _useState0 = CptsSelect_slicedToArray(_useState9, 2), 26093 creatingTemplate = _useState0[0], 26094 setCreatingTemplate = _useState0[1]; 26095 var _useState1 = CptsSelect_useState({}), 26096 _useState10 = CptsSelect_slicedToArray(_useState1, 2), 26097 existingTemplates = _useState10[0], 26098 setExistingTemplates = _useState10[1]; 26030 26099 var postTypes = value || {}; 26100 var checkExistingTemplate = /*#__PURE__*/function () { 26101 var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(key, settings) { 26102 var response, _t; 26103 return _regenerator().w(function (_context) { 26104 while (1) switch (_context.p = _context.n) { 26105 case 0: 26106 _context.p = 0; 26107 _context.n = 1; 26108 return lib_axios.get("".concat(apiUrl, "/check-template?post_type=").concat(settings.slug), { 26109 headers: { 26110 'X-WP-Nonce': window.kwtskSObj.nonce 26111 } 26112 }); 26113 case 1: 26114 response = _context.v; 26115 setExistingTemplates(function (prev) { 26116 return CptsSelect_objectSpread(CptsSelect_objectSpread({}, prev), {}, CptsSelect_defineProperty({}, key, response.data.exists)); 26117 }); 26118 _context.n = 3; 26119 break; 26120 case 2: 26121 _context.p = 2; 26122 _t = _context.v; 26123 console.error("Error checking template:", _t); 26124 case 3: 26125 return _context.a(2); 26126 } 26127 }, _callee, null, [[0, 2]]); 26128 })); 26129 return function checkExistingTemplate(_x, _x2) { 26130 return _ref2.apply(this, arguments); 26131 }; 26132 }(); 26133 26134 // Check for existing templates when post types change 26135 React.useEffect(function () { 26136 Object.entries(postTypes).forEach(function (_ref3) { 26137 var _ref4 = CptsSelect_slicedToArray(_ref3, 2), 26138 key = _ref4[0], 26139 settings = _ref4[1]; 26140 checkExistingTemplate(key, settings); 26141 }); 26142 }, [postTypes]); 26031 26143 var validateText = function validateText(text) { 26032 26144 return /^[a-zA-Z ]+$/.test(text); 26033 26145 }; 26146 var handleCreateTemplate = /*#__PURE__*/function () { 26147 var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(key, settings) { 26148 var response, _t2; 26149 return _regenerator().w(function (_context2) { 26150 while (1) switch (_context2.p = _context2.n) { 26151 case 0: 26152 setCreatingTemplate(function (prev) { 26153 return CptsSelect_objectSpread(CptsSelect_objectSpread({}, prev), {}, CptsSelect_defineProperty({}, key, true)); 26154 }); 26155 _context2.p = 1; 26156 _context2.n = 2; 26157 return lib_axios.post("".concat(apiUrl, "/create-cpt-template"), { 26158 post_type: settings.slug, 26159 label: settings.label 26160 }, { 26161 headers: { 26162 'X-WP-Nonce': window.kwtskSObj.nonce 26163 } 26164 }); 26165 case 2: 26166 response = _context2.v; 26167 if (!response.data.success) { 26168 _context2.n = 3; 26169 break; 26170 } 26171 alert(CptsSelect_("Template created successfully!", "theme-site-kit")); 26172 // Update the existingTemplates state 26173 setExistingTemplates(function (prev) { 26174 return CptsSelect_objectSpread(CptsSelect_objectSpread({}, prev), {}, CptsSelect_defineProperty({}, key, true)); 26175 }); 26176 _context2.n = 4; 26177 break; 26178 case 3: 26179 throw new Error(response.data.message || "Failed to create template"); 26180 case 4: 26181 _context2.n = 6; 26182 break; 26183 case 5: 26184 _context2.p = 5; 26185 _t2 = _context2.v; 26186 console.error("Error creating template:", _t2); 26187 alert(CptsSelect_("Failed to create template. Please try again.", "theme-site-kit")); 26188 case 6: 26189 _context2.p = 6; 26190 setCreatingTemplate(function (prev) { 26191 var updated = CptsSelect_objectSpread({}, prev); 26192 delete updated[key]; 26193 return updated; 26194 }); 26195 return _context2.f(6); 26196 case 7: 26197 return _context2.a(2); 26198 } 26199 }, _callee2, null, [[1, 5, 6, 7]]); 26200 })); 26201 return function handleCreateTemplate(_x3, _x4) { 26202 return _ref5.apply(this, arguments); 26203 }; 26204 }(); 26034 26205 var handleAddPostType = function handleAddPostType() { 26035 26206 var trimmedName = newCptName.trim(); … … 26064 26235 enable_tags: false, 26065 26236 has_archive: true, 26066 template: "" 26237 category_slug: "", 26238 tag_slug: "", 26239 template: "default" 26067 26240 })); 26068 26241 onChange({ … … 26106 26279 }; 26107 26280 var handleDelete = /*#__PURE__*/function () { 26108 var _ref 2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(key) {26109 var postType, response, data, total, updated;26110 return _regenerator Runtime().wrap(function _callee$(_context) {26111 while (1) switch (_context .prev = _context.next) {26281 var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(key) { 26282 var postType, response, data, total, forceDelete, deleteResponse, updated, _t3; 26283 return _regenerator().w(function (_context3) { 26284 while (1) switch (_context3.p = _context3.n) { 26112 26285 case 0: 26113 26286 postType = postTypes[key]; 26114 26287 if (postType) { 26115 _context .next = 3;26288 _context3.n = 1; 26116 26289 break; 26117 26290 } 26118 return _context.abrupt("return"); 26119 case 3: 26120 // Set checking state for this key. 26291 return _context3.a(2); 26292 case 1: 26121 26293 setChecking(function (prev) { 26122 26294 return CptsSelect_objectSpread(CptsSelect_objectSpread({}, prev), {}, CptsSelect_defineProperty({}, key, true)); 26123 26295 }); 26124 _context .prev = 4;26125 _context .next = 7;26296 _context3.p = 2; 26297 _context3.n = 3; 26126 26298 return fetch("".concat(apiUrl, "/check-post-type?type=").concat(postType.slug)); 26127 case 7:26128 response = _context .sent;26299 case 3: 26300 response = _context3.v; 26129 26301 if (response.ok) { 26130 _context .next = 10;26302 _context3.n = 4; 26131 26303 break; 26132 26304 } 26133 26305 throw new Error("Post type not found or fetch failed"); 26134 case 10:26135 _context .next = 12;26306 case 4: 26307 _context3.n = 5; 26136 26308 return response.json(); 26137 case 12:26138 data = _context .sent;26309 case 5: 26310 data = _context3.v; 26139 26311 total = data.count; 26140 26312 if (!(total > 0)) { 26141 _context .next = 17;26313 _context3.n = 7; 26142 26314 break; 26143 26315 } 26144 alert(CptsSelect_("Let's keep the database clean and make sure you delete all ".concat(total, " post(s) in \"").concat(postType.label, "\" before removing this post type from the Dashboard."), "theme-site-kit")); 26145 return _context.abrupt("return"); 26146 case 17: 26147 if (window.confirm(CptsSelect_("Are you sure you want to delete this post type?", "theme-site-kit"))) { 26148 _context.next = 19; 26316 forceDelete = window.confirm(CptsSelect_("This post type has posts or meta data still saved. Would you like to delete the post type and all its posts? This cannot be undone.", "theme-site-kit")); 26317 if (forceDelete) { 26318 _context3.n = 6; 26149 26319 break; 26150 26320 } 26151 return _context.abrupt("return"); 26152 case 19: 26321 return _context3.a(2); 26322 case 6: 26323 _context3.n = 8; 26324 break; 26325 case 7: 26326 if (window.confirm(CptsSelect_("Are you sure you want to delete this post type?", "theme-site-kit"))) { 26327 _context3.n = 8; 26328 break; 26329 } 26330 return _context3.a(2); 26331 case 8: 26332 _context3.n = 9; 26333 return fetch("".concat(apiUrl, "/delete-post-type"), { 26334 method: 'POST', 26335 headers: { 26336 'Content-Type': 'application/json', 26337 'X-WP-Nonce': window.kwtskSObj.nonce 26338 }, 26339 body: JSON.stringify({ 26340 post_type: postType.slug, 26341 force_delete: total > 0 26342 }) 26343 }); 26344 case 9: 26345 deleteResponse = _context3.v; 26346 if (deleteResponse.ok) { 26347 _context3.n = 10; 26348 break; 26349 } 26350 throw new Error("Failed to delete post type"); 26351 case 10: 26153 26352 updated = CptsSelect_objectSpread({}, postTypes); 26154 26353 delete updated[key]; … … 26159 26358 } 26160 26359 }); 26161 _context .next = 28;26360 _context3.n = 12; 26162 26361 break; 26163 case 24:26164 _context .prev = 24;26165 _ context.t0 = _context["catch"](4);26166 console.error("Error checking post count:", _ context.t0);26362 case 11: 26363 _context3.p = 11; 26364 _t3 = _context3.v; 26365 console.error("Error checking post count:", _t3); 26167 26366 alert(CptsSelect_("An error occurred while checking posts.", "theme-site-kit")); 26168 case 28: 26169 _context.prev = 28; 26170 // Remove checking state for this key. 26367 case 12: 26368 _context3.p = 12; 26171 26369 setChecking(function (prev) { 26172 26370 var updated = CptsSelect_objectSpread({}, prev); … … 26174 26372 return updated; 26175 26373 }); 26176 return _context.finish(28); 26177 case 31: 26178 case "end": 26179 return _context.stop(); 26374 return _context3.f(12); 26375 case 13: 26376 return _context3.a(2); 26180 26377 } 26181 }, _callee , null, [[4, 24, 28, 31]]);26378 }, _callee3, null, [[2, 11, 12, 13]]); 26182 26379 })); 26183 return function handleDelete(_x ) {26184 return _ref 2.apply(this, arguments);26380 return function handleDelete(_x5) { 26381 return _ref6.apply(this, arguments); 26185 26382 }; 26186 26383 }(); … … 26211 26408 }, CptsSelect_("Add Post Type", "theme-site-kit"))), Object.keys(postTypes).length === 0 ? /*#__PURE__*/React.createElement("p", { 26212 26409 className: "no-cpts" 26213 }, CptsSelect_("No custom post types added yet.", "theme-site-kit")) : /*#__PURE__*/React.createElement(React.Fragment, null, Object.entries(postTypes).map(function (_ref 3, index) {26214 var _ref 4 = CptsSelect_slicedToArray(_ref3, 2),26215 key = _ref 4[0],26216 settings = _ref 4[1];26410 }, CptsSelect_("No custom post types added yet.", "theme-site-kit")) : /*#__PURE__*/React.createElement(React.Fragment, null, Object.entries(postTypes).map(function (_ref7, index) { 26411 var _ref8 = CptsSelect_slicedToArray(_ref7, 2), 26412 key = _ref8[0], 26413 settings = _ref8[1]; 26217 26414 return /*#__PURE__*/React.createElement("table", { 26218 26415 key: key, … … 26236 26433 inputType: "onlytoggle", 26237 26434 onChange: handleToggleChange 26238 }), " ", /*#__PURE__*/React.createElement("span", null, "- ", CptsSelect_("Has Categories", "theme-site-kit"))), /*#__PURE__*/React.createElement("div", { 26435 }), " ", /*#__PURE__*/React.createElement("span", null, "- ", CptsSelect_("Has Categories", "theme-site-kit")), settings.enable_categories && /*#__PURE__*/React.createElement("div", { 26436 className: "cpts-permalink-input" 26437 }, /*#__PURE__*/React.createElement("span", null, CptsSelect_("URL:", "theme-site-kit"), " "), /*#__PURE__*/React.createElement("input", { 26438 type: "text", 26439 placeholder: "".concat(settings.slug, "-category"), 26440 value: settings.category_slug || "", 26441 onChange: function onChange(e) { 26442 return handleInputChange(key, "category_slug", e.target.value); 26443 } 26444 }))), /*#__PURE__*/React.createElement("div", { 26239 26445 className: "cpts-tags" 26240 26446 }, /*#__PURE__*/React.createElement(components_SettingRow, { … … 26243 26449 inputType: "onlytoggle", 26244 26450 onChange: handleToggleChange 26245 }), " ", /*#__PURE__*/React.createElement("span", null, "- ", CptsSelect_("Has Tags", "theme-site-kit"))), /*#__PURE__*/React.createElement("div", { 26451 }), " ", /*#__PURE__*/React.createElement("span", null, "- ", CptsSelect_("Has Tags", "theme-site-kit")), settings.enable_tags && /*#__PURE__*/React.createElement("div", { 26452 className: "cpts-permalink-input" 26453 }, /*#__PURE__*/React.createElement("span", null, CptsSelect_("URL:", "theme-site-kit"), " "), /*#__PURE__*/React.createElement("input", { 26454 type: "text", 26455 placeholder: "".concat(settings.slug, "-tag"), 26456 value: settings.tag_slug || "", 26457 onChange: function onChange(e) { 26458 return handleInputChange(key, "tag_slug", e.target.value); 26459 } 26460 }))), /*#__PURE__*/React.createElement("div", { 26246 26461 className: "cpts-archive" 26247 26462 }, /*#__PURE__*/React.createElement(components_SettingRow, { … … 26250 26465 inputType: "onlytoggle", 26251 26466 onChange: handleToggleChange 26252 }), " ", /*#__PURE__*/React.createElement("span", null, "- ", CptsSelect_("Has Archives Page", "theme-site-kit"))), /*#__PURE__*/React.createElement("span", { 26467 }), " ", /*#__PURE__*/React.createElement("span", null, "- ", CptsSelect_("Has Archives Page", "theme-site-kit"))), /*#__PURE__*/React.createElement("div", { 26468 className: "cpts-template" 26469 }, /*#__PURE__*/React.createElement("button", { 26470 type: "button", 26471 className: "button ".concat(existingTemplates[key] ? 'has-template' : ''), 26472 onClick: function onClick() { 26473 return handleCreateTemplate(key, settings); 26474 }, 26475 disabled: creatingTemplate[key] 26476 }, creatingTemplate[key] ? CptsSelect_("Creating Template...", "theme-site-kit") : existingTemplates[key] ? CptsSelect_("Recreate Template", "theme-site-kit") : CptsSelect_("Create Template", "theme-site-kit")), existingTemplates[key] && /*#__PURE__*/React.createElement("span", { 26477 className: "template-exists" 26478 }, /*#__PURE__*/React.createElement("i", { 26479 className: "fa-solid fa-check" 26480 }), CptsSelect_("Template exists", "theme-site-kit"))), /*#__PURE__*/React.createElement("span", { 26253 26481 className: "fa-solid fa-xmark cpts-del ".concat(checking[key] ? "checking" : ""), 26254 26482 onClick: function onClick() { … … 26259 26487 })), /*#__PURE__*/React.createElement("p", { 26260 26488 className: "cpts-note" 26261 }, CptsSelect_("Remember to Save Permalinks after adding or making changes toCustom Post Types.", "theme-site-kit"), " ", /*#__PURE__*/React.createElement("a", {26489 }, CptsSelect_("Remember to Save Settings below, and then Save Permalinks after editing your Custom Post Types.", "theme-site-kit"), " ", /*#__PURE__*/React.createElement("a", { 26262 26490 href: "".concat(adminUrl, "options-permalink.php"), 26263 26491 target: "_blank" 26264 }, CptsSelect_(" Go toPermalinks", "theme-site-kit"))));26492 }, CptsSelect_("Update Permalinks", "theme-site-kit")))); 26265 26493 }; 26266 26494 /* harmony default export */ const inputs_CptsSelect = (CptsSelect); … … 26395 26623 var title = _ref.title, 26396 26624 description = _ref.description, 26625 link = _ref.link, 26626 linkText = _ref.linkText, 26397 26627 isPro = _ref.isPro, 26398 26628 isPremium = _ref.isPremium; … … 26403 26633 }, title, " ", isPro && !isPremium && /*#__PURE__*/React.createElement("span", { 26404 26634 className: "probanner" 26405 }, SettingHeader_("Premium Feature", "theme-site-kit"))), description && /*#__PURE__*/React.createElement("p", null, description)); 26635 }, SettingHeader_("Premium Feature", "theme-site-kit"))), description && /*#__PURE__*/React.createElement("p", null, description), link && linkText && /*#__PURE__*/React.createElement("a", { 26636 href: link, 26637 target: "_blank", 26638 rel: "noopener noreferrer" 26639 }, linkText)); 26406 26640 }; 26407 26641 /* harmony default export */ const components_SettingHeader = (SettingHeader); … … 26626 26860 26627 26861 var SettingsPage = function SettingsPage(_ref) { 26628 var _kwtskOptions$disable, _kwtskOptions$disable2, _kwtskOptions$mainten, _kwtskOptions$mainten2, _kwtskOptions$mainten3, _kwtskOptions$mainten4, _kwtskOptions$mainten5, _kwtskOptions$mainten6, _kwtskOptions$mainten7, _kwtskOptions$mainten8, _kwtskOptions$mainten9, _kwtskOptions$mainten 10, _kwtskOptions$mainten11, _kwtskOptions$mainten12, _kwtskOptions$mainten13, _kwtskOptions$mainten14, _kwtskOptions$mainten15, _kwtskOptions$mainten16, _kwtskOptions$mainten17, _kwtskOptions$mainten18, _kwtskOptions$mainten19, _kwtskOptions$mainten20, _kwtskOptions$social, _kwtskOptions$social2, _kwtskOptions$social3, _kwtskOptions$social4, _kwtskOptions$social5, _kwtskOptions$social6, _kwtskOptions$social7, _kwtskOptions$social8, _kwtskOptions$social9, _kwtskOptions$social10, _kwtskOptions$social11, _kwtskOptions$social12, _kwtskOptions$social13, _kwtskOptions$social14, _kwtskOptions$social15, _kwtskOptions$social16, _kwtskOptions$social17, _kwtskOptions$social18, _kwtskOptions$social19, _kwtskOptions$social20, _kwtskOptions$mobilem, _kwtskOptions$mobilem2, _kwtskOptions$mobilem3, _kwtskOptions$mobilem4, _kwtskOptions$social21, _kwtskOptions$social22, _kwtskOptions$social23, _kwtskOptions$cpts, _kwtskOptions$cpts2, _kwtskOptions$cpts3, _kwtskOptions$cpts4, _kwtskOptions$svguplo, _kwtskOptions$svguplo2, _kwtskOptions$code, _kwtskOptions$code2, _kwtskOptions$duplica;26862 var _kwtskOptions$disable, _kwtskOptions$disable2, _kwtskOptions$mainten, _kwtskOptions$mainten2, _kwtskOptions$mainten3, _kwtskOptions$mainten4, _kwtskOptions$mainten5, _kwtskOptions$mainten6, _kwtskOptions$mainten7, _kwtskOptions$mainten8, _kwtskOptions$mainten9, _kwtskOptions$mainten0, _kwtskOptions$mainten1, _kwtskOptions$mainten10, _kwtskOptions$mainten11, _kwtskOptions$mainten12, _kwtskOptions$mainten13, _kwtskOptions$mainten14, _kwtskOptions$mainten15, _kwtskOptions$mainten16, _kwtskOptions$mainten17, _kwtskOptions$mainten18, _kwtskOptions$social, _kwtskOptions$social2, _kwtskOptions$social3, _kwtskOptions$social4, _kwtskOptions$social5, _kwtskOptions$social6, _kwtskOptions$social7, _kwtskOptions$social8, _kwtskOptions$social9, _kwtskOptions$social0, _kwtskOptions$social1, _kwtskOptions$social10, _kwtskOptions$social11, _kwtskOptions$social12, _kwtskOptions$social13, _kwtskOptions$social14, _kwtskOptions$social15, _kwtskOptions$social16, _kwtskOptions$social17, _kwtskOptions$social18, _kwtskOptions$mobilem, _kwtskOptions$mobilem2, _kwtskOptions$mobilem3, _kwtskOptions$mobilem4, _kwtskOptions$mobilem5, _kwtskOptions$mobilem6, _kwtskOptions$mobilem7, _kwtskOptions$mobilem8, _kwtskOptions$cpts, _kwtskOptions$cpts2, _kwtskOptions$cpts3, _kwtskOptions$cpts4, _kwtskOptions$svguplo, _kwtskOptions$svguplo2, _kwtskOptions$code, _kwtskOptions$code2, _kwtskOptions$duplica; 26629 26863 var kwtskObj = _ref.kwtskObj; 26630 26864 var url = "".concat(kwtskObj.apiUrl, "kwtsk/v1"); … … 26636 26870 var postTypes = kwtskObj.post_types; 26637 26871 var publishedPages = kwtskObj.publishedPages; 26872 // const pageTemplates = kwtskObj.pageTemplates; 26638 26873 var _useState = SettingsPage_useState(publishedPages), 26639 26874 _useState2 = SettingsPage_slicedToArray(_useState, 2), … … 26660 26895 // const wcActive = Boolean(kwtskObj.wcActive); 26661 26896 var _useState9 = SettingsPage_useState({}), 26662 _useState10 = SettingsPage_slicedToArray(_useState9, 2), 26663 kwtskOptions = _useState10[0], 26664 setKwtskOptions = _useState10[1]; 26897 _useState0 = SettingsPage_slicedToArray(_useState9, 2), 26898 kwtskOptions = _useState0[0], 26899 setKwtskOptions = _useState0[1]; 26900 var _useState1 = SettingsPage_useState(false), 26901 _useState10 = SettingsPage_slicedToArray(_useState1, 2), 26902 showSocialPreview = _useState10[0], 26903 setShowSocialPreview = _useState10[1]; 26665 26904 var _useState11 = SettingsPage_useState(false), 26666 26905 _useState12 = SettingsPage_slicedToArray(_useState11, 2), 26667 showSocialPreview = _useState12[0], 26668 setShowSocialPreview = _useState12[1]; 26669 var _useState13 = SettingsPage_useState(false), 26670 _useState14 = SettingsPage_slicedToArray(_useState13, 2), 26671 creatingPage = _useState14[0], 26672 setCreatingPage = _useState14[1]; 26906 creatingPage = _useState12[0], 26907 setCreatingPage = _useState12[1]; 26673 26908 var _changeTab = function changeTab() { 26674 26909 var tabId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "general"; … … 27002 27237 } 27003 27238 }, SettingsPage_("Create a New Template Page", "theme-site-kit")), " ", /*#__PURE__*/React.createElement("div", null, SettingsPage_("Remember to save your settings afterwards!", "theme-site-kit")))) 27004 }), !((_kwtskOptions$mainten 10 = kwtskOptions.maintenance) !== null && _kwtskOptions$mainten10 !== void 0 && _kwtskOptions$mainten10.template) && /*#__PURE__*/React.createElement(components_SettingGroup, {27239 }), !((_kwtskOptions$mainten0 = kwtskOptions.maintenance) !== null && _kwtskOptions$mainten0 !== void 0 && _kwtskOptions$mainten0.template) && /*#__PURE__*/React.createElement(components_SettingGroup, { 27005 27240 label: SettingsPage_("Edit Template Page", "theme-site-kit") 27006 27241 }, isPremium && /*#__PURE__*/React.createElement(components_SettingRow, { 27007 27242 title: SettingsPage_("Background Color", "theme-site-kit"), 27008 27243 slug: "maintenance_bgcolor", 27009 value: (_kwtskOptions$mainten1 1 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten11 === void 0 ? void 0 : _kwtskOptions$mainten11.bgcolor,27244 value: (_kwtskOptions$mainten1 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten1 === void 0 ? void 0 : _kwtskOptions$mainten1.bgcolor, 27010 27245 inputType: "colorpicker", 27011 27246 defaultValue: "#f5f5f5", … … 27014 27249 title: SettingsPage_("Title", "theme-site-kit"), 27015 27250 slug: "maintenance_title", 27016 value: (_kwtskOptions$mainten1 2 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten12 === void 0 ? void 0 : _kwtskOptions$mainten12.title,27251 value: (_kwtskOptions$mainten10 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten10 === void 0 ? void 0 : _kwtskOptions$mainten10.title, 27017 27252 inputType: "text", 27018 27253 onChange: handleChange, 27019 placeholder: ((_kwtskOptions$mainten1 3 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten13 === void 0 ? void 0 : _kwtskOptions$mainten13.mode) === "coming_soon" ? SettingsPage_("Coming Soon", "theme-site-kit") : SettingsPage_("Maintenance Mode", "theme-site-kit")27254 placeholder: ((_kwtskOptions$mainten11 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten11 === void 0 ? void 0 : _kwtskOptions$mainten11.mode) === "coming_soon" ? SettingsPage_("Coming Soon", "theme-site-kit") : SettingsPage_("Maintenance Mode", "theme-site-kit") 27020 27255 }), isPremium && /*#__PURE__*/React.createElement(components_SettingRow, { 27021 27256 title: SettingsPage_("Title Color", "theme-site-kit"), 27022 27257 slug: "maintenance_titlecolor", 27023 value: (_kwtskOptions$mainten1 4 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten14 === void 0 ? void 0 : _kwtskOptions$mainten14.titlecolor,27258 value: (_kwtskOptions$mainten12 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten12 === void 0 ? void 0 : _kwtskOptions$mainten12.titlecolor, 27024 27259 inputType: "colorpicker", 27025 27260 defaultValue: "#333", … … 27028 27263 title: SettingsPage_("Text", "theme-site-kit"), 27029 27264 slug: "maintenance_text", 27030 value: (_kwtskOptions$mainten1 5 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten15 === void 0 ? void 0 : _kwtskOptions$mainten15.text,27265 value: (_kwtskOptions$mainten13 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten13 === void 0 ? void 0 : _kwtskOptions$mainten13.text, 27031 27266 inputType: "text", 27032 27267 onChange: handleChange, 27033 placeholder: ((_kwtskOptions$mainten1 6 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten16 === void 0 ? void 0 : _kwtskOptions$mainten16.mode) === "coming_soon" ? SettingsPage_("Our website is launching soon. Stay tuned!", "theme-site-kit") : SettingsPage_("We are currently performing scheduled maintenance. Please check back soon.", "theme-site-kit")27268 placeholder: ((_kwtskOptions$mainten14 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten14 === void 0 ? void 0 : _kwtskOptions$mainten14.mode) === "coming_soon" ? SettingsPage_("Our website is launching soon. Stay tuned!", "theme-site-kit") : SettingsPage_("We are currently performing scheduled maintenance. Please check back soon.", "theme-site-kit") 27034 27269 }), isPremium && /*#__PURE__*/React.createElement(components_SettingRow, { 27035 27270 title: SettingsPage_("Text Color", "theme-site-kit"), 27036 27271 slug: "maintenance_textcolor", 27037 value: (_kwtskOptions$mainten1 7 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten17 === void 0 ? void 0 : _kwtskOptions$mainten17.textcolor,27272 value: (_kwtskOptions$mainten15 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten15 === void 0 ? void 0 : _kwtskOptions$mainten15.textcolor, 27038 27273 inputType: "colorpicker", 27039 27274 defaultValue: "#666", … … 27042 27277 title: SettingsPage_("Who Can Access the Site", "linkt"), 27043 27278 slug: "maintenance_access", 27044 value: (_kwtskOptions$mainten1 8 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten18 === void 0 ? void 0 : _kwtskOptions$mainten18.access,27279 value: (_kwtskOptions$mainten16 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten16 === void 0 ? void 0 : _kwtskOptions$mainten16.access, 27045 27280 inputType: "select", 27046 27281 options: { … … 27049 27284 }, 27050 27285 onChange: handleChange 27051 }), ((_kwtskOptions$mainten1 9 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten19 === void 0 ? void 0 : _kwtskOptions$mainten19.access) === "custom" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(components_SettingRow, {27286 }), ((_kwtskOptions$mainten17 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten17 === void 0 ? void 0 : _kwtskOptions$mainten17.access) === "custom" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(components_SettingRow, { 27052 27287 title: SettingsPage_("Select User Roles", "theme-site-kit"), 27053 27288 slug: "maintenance_userroles", 27054 value: (_kwtskOptions$mainten 20 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten20 === void 0 ? void 0 : _kwtskOptions$mainten20.userroles,27289 value: (_kwtskOptions$mainten18 = kwtskOptions.maintenance) === null || _kwtskOptions$mainten18 === void 0 ? void 0 : _kwtskOptions$mainten18.userroles, 27055 27290 inputType: "multicheckbox", 27056 27291 options: userRoles, … … 27152 27387 inputType: "toggle", 27153 27388 onChange: handleChange 27154 }), ((_kwtskOptions$social 10 = kwtskOptions.social) === null || _kwtskOptions$social10 === void 0 ? void 0 : _kwtskOptions$social10.showbg) && /*#__PURE__*/React.createElement(components_SettingRow, {27389 }), ((_kwtskOptions$social0 = kwtskOptions.social) === null || _kwtskOptions$social0 === void 0 ? void 0 : _kwtskOptions$social0.showbg) && /*#__PURE__*/React.createElement(components_SettingRow, { 27155 27390 title: SettingsPage_("Background Color", "theme-site-kit"), 27156 27391 slug: "social_iconbgcolor", 27157 value: (_kwtskOptions$social1 1 = kwtskOptions.social) === null || _kwtskOptions$social11 === void 0 ? void 0 : _kwtskOptions$social11.iconbgcolor,27392 value: (_kwtskOptions$social1 = kwtskOptions.social) === null || _kwtskOptions$social1 === void 0 ? void 0 : _kwtskOptions$social1.iconbgcolor, 27158 27393 inputType: "colorpicker", 27159 27394 defaultValue: "#FFF", … … 27162 27397 title: SettingsPage_("Label on Hover", "theme-site-kit"), 27163 27398 slug: "social_showtext", 27164 value: (_kwtskOptions$social1 2 = kwtskOptions.social) === null || _kwtskOptions$social12 === void 0 ? void 0 : _kwtskOptions$social12.showtext,27399 value: (_kwtskOptions$social10 = kwtskOptions.social) === null || _kwtskOptions$social10 === void 0 ? void 0 : _kwtskOptions$social10.showtext, 27165 27400 inputType: "toggle", 27166 27401 onChange: handleChange … … 27168 27403 title: SettingsPage_("Icon Original Color", "theme-site-kit"), 27169 27404 slug: "social_iconorigcolor", 27170 value: (_kwtskOptions$social1 3 = kwtskOptions.social) === null || _kwtskOptions$social13 === void 0 ? void 0 : _kwtskOptions$social13.iconorigcolor,27405 value: (_kwtskOptions$social11 = kwtskOptions.social) === null || _kwtskOptions$social11 === void 0 ? void 0 : _kwtskOptions$social11.iconorigcolor, 27171 27406 inputType: "toggle", 27172 27407 onChange: handleChange 27173 }), (!((_kwtskOptions$social1 4 = kwtskOptions.social) !== null && _kwtskOptions$social14 !== void 0 && _kwtskOptions$social14.iconorigcolor) || ((_kwtskOptions$social15 = kwtskOptions.social) === null || _kwtskOptions$social15 === void 0 ? void 0 : _kwtskOptions$social15.showtext)) && /*#__PURE__*/React.createElement(components_SettingRow, {27174 title: (_kwtskOptions$social1 6 = kwtskOptions.social) !== null && _kwtskOptions$social16 !== void 0 && _kwtskOptions$social16.iconorigcolor && (_kwtskOptions$social17 = kwtskOptions.social) !== null && _kwtskOptions$social17 !== void 0 && _kwtskOptions$social17.showtext ? SettingsPage_("Text Color", "theme-site-kit") : SettingsPage_("Icon & Text Color", "theme-site-kit"),27408 }), (!((_kwtskOptions$social12 = kwtskOptions.social) !== null && _kwtskOptions$social12 !== void 0 && _kwtskOptions$social12.iconorigcolor) || ((_kwtskOptions$social13 = kwtskOptions.social) === null || _kwtskOptions$social13 === void 0 ? void 0 : _kwtskOptions$social13.showtext)) && /*#__PURE__*/React.createElement(components_SettingRow, { 27409 title: (_kwtskOptions$social14 = kwtskOptions.social) !== null && _kwtskOptions$social14 !== void 0 && _kwtskOptions$social14.iconorigcolor && (_kwtskOptions$social15 = kwtskOptions.social) !== null && _kwtskOptions$social15 !== void 0 && _kwtskOptions$social15.showtext ? SettingsPage_("Text Color", "theme-site-kit") : SettingsPage_("Icon & Text Color", "theme-site-kit"), 27175 27410 slug: "social_iconcolor", 27176 value: (_kwtskOptions$social1 8 = kwtskOptions.social) === null || _kwtskOptions$social18 === void 0 ? void 0 : _kwtskOptions$social18.iconcolor,27411 value: (_kwtskOptions$social16 = kwtskOptions.social) === null || _kwtskOptions$social16 === void 0 ? void 0 : _kwtskOptions$social16.iconcolor, 27177 27412 inputType: "colorpicker", 27178 27413 defaultValue: "#AF2DBF", … … 27183 27418 inputType: "pronote", 27184 27419 mini: true 27185 })), !isPremium && ((_kwtskOptions$social1 9 = kwtskOptions.social) === null || _kwtskOptions$social19 === void 0 ? void 0 : _kwtskOptions$social19.icons.length) >= 4 && /*#__PURE__*/React.createElement(components_SettingRow, {27420 })), !isPremium && ((_kwtskOptions$social17 = kwtskOptions.social) === null || _kwtskOptions$social17 === void 0 ? void 0 : _kwtskOptions$social17.icons.length) >= 4 && /*#__PURE__*/React.createElement(components_SettingRow, { 27186 27421 title: SettingsPage_("Upgrade to Theme Site Kit Pro", "theme-site-kit"), 27187 27422 desc: SettingsPage_("Unlock unlimited social icons and more features with Theme Site Kit Pro.", "theme-site-kit"), … … 27190 27425 }), /*#__PURE__*/React.createElement(components_SettingRow, { 27191 27426 slug: "social_icons", 27192 value: (_kwtskOptions$social 20 = kwtskOptions.social) === null || _kwtskOptions$social20 === void 0 ? void 0 : _kwtskOptions$social20.icons,27427 value: (_kwtskOptions$social18 = kwtskOptions.social) === null || _kwtskOptions$social18 === void 0 ? void 0 : _kwtskOptions$social18.icons, 27193 27428 inputType: "socialicons", 27194 27429 options: kwtskSocialOptions, … … 27201 27436 }, /*#__PURE__*/React.createElement(components_SettingHeader, { 27202 27437 title: SettingsPage_("Custom Mobile Menu", "theme-site-kit"), 27203 description: SettingsPage_("Upgrade your site's mobile experience with an enhanced core Navigation Block extension. This feature creates a smooth, modern slide-out menu that looks great and works even better on mobile devices.", "theme-site-kit"), 27438 description: SettingsPage_("Upgrade your site's mobile experience with an enhanced core Navigation Block extension. This feature creates a smooth, modern slide-out menu that looks great and works even better on mobile devices.", "theme-site-kit") 27439 // link={"https://www.youtube.com/watch?v=dQw4w9WgXcQ"} 27440 // linkText={__("Watch Video", "theme-site-kit")} 27441 , 27204 27442 isPro: true, 27205 27443 isPremium: isPremium … … 27227 27465 title: SettingsPage_("Background Color", "theme-site-kit"), 27228 27466 slug: "mobilemenu_bgcolor", 27229 value: (_kwtskOptions$ social21 = kwtskOptions.social) === null || _kwtskOptions$social21 === void 0 ? void 0 : _kwtskOptions$social21.bgcolor,27467 value: (_kwtskOptions$mobilem5 = kwtskOptions.mobilemenu) === null || _kwtskOptions$mobilem5 === void 0 ? void 0 : _kwtskOptions$mobilem5.bgcolor, 27230 27468 inputType: "colorpicker", 27231 27469 defaultValue: "#1d2327", … … 27234 27472 title: SettingsPage_("Text Color", "theme-site-kit"), 27235 27473 slug: "mobilemenu_textcolor", 27236 value: (_kwtskOptions$ social22 = kwtskOptions.social) === null || _kwtskOptions$social22 === void 0 ? void 0 : _kwtskOptions$social22.textcolor,27474 value: (_kwtskOptions$mobilem6 = kwtskOptions.mobilemenu) === null || _kwtskOptions$mobilem6 === void 0 ? void 0 : _kwtskOptions$mobilem6.textcolor, 27237 27475 inputType: "colorpicker", 27238 27476 defaultValue: "#b4b4b4", … … 27241 27479 title: SettingsPage_("Selected Text Color", "theme-site-kit"), 27242 27480 slug: "mobilemenu_selectedcolor", 27243 value: (_kwtskOptions$ social23 = kwtskOptions.social) === null || _kwtskOptions$social23 === void 0 ? void 0 : _kwtskOptions$social23.selectedcolor,27481 value: (_kwtskOptions$mobilem7 = kwtskOptions.mobilemenu) === null || _kwtskOptions$mobilem7 === void 0 ? void 0 : _kwtskOptions$mobilem7.selectedcolor, 27244 27482 inputType: "colorpicker", 27245 27483 defaultValue: "#FFF", 27246 27484 onChange: handleChange 27247 }))) : /*#__PURE__*/React.createElement(components_SettingRow, { 27485 })), /*#__PURE__*/React.createElement(components_SettingRow, { 27486 title: SettingsPage_("Menu Width", "theme-site-kit"), 27487 slug: "mobilemenu_width", 27488 value: (_kwtskOptions$mobilem8 = kwtskOptions.mobilemenu) === null || _kwtskOptions$mobilem8 === void 0 ? void 0 : _kwtskOptions$mobilem8.width, 27489 inputType: "text", 27490 onChange: handleChange, 27491 placeholder: "250px" 27492 })) : /*#__PURE__*/React.createElement(components_SettingRow, { 27248 27493 title: SettingsPage_("Upgrade to Theme Site Kit Pro", "theme-site-kit"), 27249 27494 desc: SettingsPage_("Theme Site Kit Pro introduces a refined slide-out mobile navigation design for the core editor's Navigation block, offering a cleaner and more intuitive user experience.", "theme-site-kit"), … … 27276 27521 apiUrl: url, 27277 27522 adminUrl: adminUrl 27523 // pageTemplates={pageTemplates} 27278 27524 })) : /*#__PURE__*/React.createElement(components_SettingRow, { 27279 27525 title: "Upgrade to Theme Site Kit Pro", -
theme-site-kit/trunk/dist/settings.min.css
r3298008 r3351118 1 1 :root{--kwtsk-main:#7047eb}.kwtsk-hide,.kwtsk-repeater:first-child .kwtsk-repeater-close{display:none!important}.kwtsk-settings{max-width:980px;position:relative}.kwtsk-loader-wrap{-webkit-box-align:start;-ms-flex-align:start;-webkit-box-pack:center;-ms-flex-pack:center;align-items:flex-start;background-color:#fff;bottom:-5px;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;left:-5px;padding-top:150px;position:absolute;right:-5px;top:-5px;z-index:20}.kwtsk-settings .form-table th{color:#404040;padding:24px 10px 20px 0}.form-table td[colspan="2"]{padding-left:0;padding-right:0}.kwtsk-thtitle{color:#404040;font-size:14px;font-weight:600;margin:0 0 15px}.kwtskthdesc{background-color:#f9f9f9;border:1px solid #e5e5e5;border-radius:4px;color:#6a6a6a;margin:0 0 12px;padding:10px 12px}.kwtskthdesc span{display:block;margin:8px 0 0}.kwtskDesctip{cursor:pointer}.kwtsk-row p.setting-note{color:#979797;font-size:13px;margin:5px 0 0 6px}.kwtskSettingBar{-ms-flex-align:center}.kwtskSettingBar,.kwtskSettingBar h2,.kwtskSettingBarMain{-webkit-box-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.kwtskSettingBar h2,.kwtskSettingBarMain{-webkit-box-flex:1;-ms-flex-align:center;-ms-flex:1;flex:1}.kwtskSettingBar h2{font-size:24px;font-weight:400;margin:15px 0 15px 5px}.kwtskSettingBarOptions{-webkit-box-pack:end;-ms-flex-pack:end;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-end;width:200px}.kwtskSettingBarOptions>a{color:#8b8b8b;font-size:20px;margin:0 0 0 15px;padding:5px;text-decoration:none;-webkit-transition:all .3s;transition:all .3s}body.kwtsk-free a.kwtsk-account{display:none!important}.kwtsk-delete{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:25px;justify-content:center;width:25px}.kwtskSettingBarOptions .kwtsk-delete:before{color:#c9c9c9;content:"\f182";font-family:Dashicons;font-size:20px;line-height:20px;text-decoration:none;-webkit-transition:color .3s;transition:color .3s}.kwtsk-delete.show-confirm:before,.kwtsk-delete:hover:before{color:#727272}.kwtsk-confirm-delete{background-color:#d70202;border-radius:3px;bottom:45px;color:#f1bebe;font-size:11px;letter-spacing:.4px;opacity:0;padding:4px 10px;position:absolute;right:60px;-webkit-transition:opacity .6s;transition:opacity .6s;visibility:hidden;white-space:nowrap;width:-webkit-max-content;width:-moz-max-content;width:max-content}.kwtsk-confirm-delete:after{border-bottom:6px solid transparent;border-left:8px solid #d70202;border-top:6px solid transparent;content:"";display:block;height:0;position:absolute;right:-8px;top:7px;width:0}.kwtsk-delete.show-confirm .kwtsk-confirm-delete{opacity:1;visibility:visible}.kwtsk-confirm-delete a{color:inherit;font-size:inherit!important;text-decoration:underline}.kwtskSettingBarOptions a:hover{color:var(--kwtsk-main)}.kwtsk-confirm-delete a:hover{color:#fff}.kwtskSettingBar.bottom{background-color:#fff;border-top:1px solid #999;margin:30px 0 10px;padding:30px 0 0}.kwtsk-settings-content.hide-save .kwtskSettingBar.bottom{display:none!important}.kwtsk-tabs ul{-webkit-box-pack:start;-ms-flex-pack:start;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-start;margin:20px 0 -1px;padding:0 5px;position:relative}.kwtsk-tabs li{-webkit-box-flex:1;-ms-flex:1;flex:1;margin:0 1px;padding:0;text-align:center;white-space:nowrap}.kwtsk-tab{background-color:#f4f7fb;border:1px solid #b5bfc9;border-bottom:0!important;border-radius:3px 3px 0 0;color:#5b6065;cursor:pointer;display:block;padding:10px 18px 12px}.kwtsk-tab:hover{color:#000}.kwtsk-tab.active{border-color:#7a8896;color:#107daf;cursor:auto;margin:0 0 -1px;z-index:4}.kwtsk-content-wrap,.kwtsk-tab.active{background-color:#fff;position:relative}.kwtsk-content-wrap{border:1px solid #7a8896;border-radius:3px;padding:20px}.kwtsk-content-wrap-inner{position:relative;z-index:24}.kwtsk-content{display:none}.kwtsk-content.active{display:block;min-height:400px}.kwtsk-content .form-table{margin:0}.kwtsk-description{background-color:#fdfdfd;border:1px solid rgba(0,0,0,.08);border-radius:4px;font-size:12px;letter-spacing:.2px;margin:10px -10px 0;padding:20px;text-align:center}.kwtsk-general-page h2{font-size:28px}.kwtsk-general-page p{font-size:15px}.kwtsk-gp-features{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;gap:25px;margin:40px 0}.kwtsk-gp-feature{-webkit-box-flex:1;-ms-flex:1;flex:1}.kwtsk-gp-feature-img{background-repeat:no-repeat;background-size:cover;border-radius:3px;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px rgba(0,0,0,.2);height:110px;margin:0 0 18px;max-width:280px;overflow:hidden;width:100%}.kwtsk-gp-feature-img.settings{background-image:url(49565bb914cd23f6af7e.png)}.kwtsk-gp-feature-img.layouts{background-image:url(55837204424005438f4f.png)}.kwtsk-gp-feature-img.patterns{background-image:url(ff5575aba3b1a00315e5.png)}.kwtsk-gp-feature h3,.kwtsk-gp-plugin h3{font-size:22px;margin:0 0 12px}.kwtsk-gp-feature p,.kwtsk-gp-plugin p{font-size:13px}.kwtsk-gp-feature .kwtsk-gp-a,.kwtsk-gp-plugin .kwtsk-gp-plugin-a{background-color:#dcdcdc;border-radius:3px;color:#414242;line-height:1;padding:8px 10px;text-align:center;text-decoration:none;-webkit-transition:background-color .3s ease-in-out 0s,color .3s ease-in-out 0s,-webkit-box-shadow .3s ease-in-out 0s;transition:background-color .3s ease-in-out 0s,color .3s ease-in-out 0s,-webkit-box-shadow .3s ease-in-out 0s;transition:background-color .3s ease-in-out 0s,color .3s ease-in-out 0s,box-shadow .3s ease-in-out 0s;transition:background-color .3s ease-in-out 0s,color .3s ease-in-out 0s,box-shadow .3s ease-in-out 0s,-webkit-box-shadow .3s ease-in-out 0s}.kwtsk-gp-feature .kwtsk-gp-a:hover,.kwtsk-gp-plugin:hover .kwtsk-gp-plugin-a{background-color:var(--kwtsk-main);color:#fff}.kwtsk-gp-plugin .kwtsk-gp-plugin-a{display:inline-block;font-size:13px;margin:0 0 12px}.kwtsk-gp-plugins{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;gap:20px}.kwtsk-gp-plugin{-webkit-box-flex:1;border-radius:3px;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.2),0 0 6px rgba(0,0,0,.14);box-shadow:0 0 0 1px rgba(0,0,0,.2),0 0 6px rgba(0,0,0,.14);color:#3c434a!important;-ms-flex:1;flex:1;font-size:16px;overflow:hidden;text-align:center;text-decoration:none}.kwtsk-gp-plugin-img{background-repeat:no-repeat;background-size:cover;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2);box-shadow:0 1px 0 rgba(0,0,0,.2);height:91px;margin:0 0 12px;max-width:280px;width:100%}.kwtsk-gp-plugin p{padding:0 15px}.kwtsk-gp-plugin-img.storcustomizer{background-image:url(438513ee5fbca476b645.png)}.kwtsk-gp-plugin-img.blockons{background-image:url(057b6239ee908ef0c212.png)}.kwtsk-gp-plugin-img.linkt{background-image:url(f91da5bf7f0d29e62fef.png)}.kwtskheading{margin:25px -10px 0}.kwtskheading.nomargin{margin-top:0}#kwtsk-content-2 table tr:first-child .kwtskheading,#kwtsk-content-3 table tr:first-child .kwtskheading{margin-top:-11px}.kwtskheading-title{border-bottom:1px solid rgba(0,0,0,.2);color:var(--kwtsk-main);font-size:17px;font-weight:500;letter-spacing:.4px;margin:0;padding:0 0 8px;text-transform:uppercase}.kwtsk-row .kwtskheading-desc{color:#979797;font-size:12px;font-weight:400;margin:8px 0 0;max-width:none;padding:0}.kwtskdoclink{color:#9d9d9d;display:inline-block;font-size:20px;margin-left:10px;position:relative;text-decoration:none;top:-1px;vertical-align:middle}.kwtskdoclink:before{content:"\f504";display:block;font-family:Dashicons}.kwtsk-tooltip{color:#9d9d9d;display:inline-block;font-size:20px;position:relative;top:-1px;vertical-align:middle}.kwtsk-tooltip:before{content:"\f223";display:block;font-family:Dashicons}.kwtsk-tooltip .kwtsk-tooltiptxt{background-color:#404040;border-radius:4px;bottom:125%;color:#fff;font-size:11.5px;font-weight:300;left:50%;letter-spacing:.1px;line-height:1.5;margin-left:-85px;opacity:0;padding:8px 10px;position:absolute;text-align:center;-webkit-transition:opacity .6s;transition:opacity .6s;visibility:hidden;width:160px;z-index:1}.kwtsk-tooltip .kwtsk-tooltiptxt:after{border:5px solid transparent;border-top-color:#404040;content:"";left:50%;margin-left:-10px;position:absolute;top:100%}.kwtsk-tooltip:hover{color:#404040}.kwtsk-tooltip:hover .kwtsk-tooltiptxt{opacity:1;visibility:visible}.kwtsk-row.split-top{-webkit-box-shadow:0 1px 0 #dfdfdf;box-shadow:0 1px 0 #dfdfdf}.kwtsk-row.split-top td,.kwtsk-row.split-top th{margin-top:20px;padding-top:20px}.kwtsk-row.split-bottom{-webkit-box-shadow:0 1px 0 #dfdfdf;box-shadow:0 1px 0 #dfdfdf}.kwtsk-row.split-bottom td,.kwtsk-row.split-bottom th{margin-bottom:20px;padding-bottom:20px}.kwtsk-row.kwtsk-full td{padding:15px 0}.kwtsk-row .regular-text,.kwtsk-row input[type=number],.kwtsk-row select{border:1px solid #ccc;max-width:440px;padding:5px 10px;-webkit-transition:border .3s;transition:border .3s;width:100%}.kwtsk-repeater .kwtsk-repeater-right .rdt input:hover,.kwtsk-repeater input:hover,.kwtsk-row .regular-text:hover,.kwtsk-row input[type=number]:hover,.kwtsk-row select:hover{border:1px solid #868686}.kwtsk-row input[type=number]{max-width:110px}.kwtsk-row span.prefix{margin:0 5px 0 0}.kwtsk-row span.suffix{margin:0 0 0 5px}.kwtsk-row .kwtsk-post-select__control,.kwtsk-row .kwtsk-post-select__menu{max-width:440px}.kwtsk-row .kwtsk-post-select__control input[type=text]{-webkit-box-shadow:none;box-shadow:none}.kwtsk-row-cols{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.kwtsk-row-col-left{-webkit-box-flex:1;-ms-flex:1;flex:1}.kwtsk-row-col-right{opacity:0;text-align:right;-webkit-transition:opacity .6s;transition:opacity .6s;visibility:hidden;width:60px}.kwtsk-row:hover .kwtsk-row-col-right{opacity:1;visibility:visible}.kwtsk-row.heading td,.kwtsk-row.heading th{padding-bottom:0}.kwtsk-row.pronote td{padding:0}.kwtsk-pronote{background-color:#f4f1ff;border-radius:4px;-webkit-box-shadow:0 0 0 1px #e4defc,0 1px 6px rgba(0,0,0,.18);box-shadow:0 0 0 1px #e4defc,0 1px 6px rgba(0,0,0,.18);margin:20px 0 0;padding:18px}.kwtsk-row.pronote h6{color:#5523ed;font-size:19px;margin:0;padding:0}.kwtsk-row.pronote p{font-size:13px;margin:10px 0;opacity:.6}p.kwtsk-input-note{color:#6c6c6c;margin:10px 0}.kwtsk-pronote .kwtsk-pronote-a{margin:18px 0 0}.kwtsk-pronote .kwtsk-pronote-a .pronote-btn{background-color:#ed5523;border-radius:4px;-webkit-box-shadow:inset 0 0 0 1px rgba(0,0,0,.12),0 1px 5px rgba(0,0,0,.15);box-shadow:inset 0 0 0 1px rgba(0,0,0,.12),0 1px 5px rgba(0,0,0,.15);color:#fff;display:inline-block;letter-spacing:.4px;margin:0;padding:10px 25px;text-decoration:none}.kwtsk-pronote .kwtsk-pronote-a .pronote-btn:hover{background-color:#e14612}.kwtsk-pronote.mini{margin:10px 0 0;padding:2px 10px;text-align:center}span.probanner{background-color:#f4f1ff;border-radius:4px;-webkit-box-shadow:0 0 0 1px #e4defc,0 1px 6px rgba(0,0,0,.18);box-shadow:0 0 0 1px #e4defc,0 1px 6px rgba(0,0,0,.18);color:#5523ed;display:inline-block;font-size:13px;font-weight:400;margin:0 0 0 8px;padding:2px 5px}.toggle-switch{display:inline-block;height:24px;position:relative;width:40px}.toggle-switch input.toggle-switch-checkbox{height:0;opacity:0;width:0}.toggle-switch-slider{background-color:#ccc;bottom:0;cursor:pointer;left:0;right:0;top:0}.toggle-switch-slider,.toggle-switch-slider:before{border-radius:34px;position:absolute;-webkit-transition:all .18s ease-in-out 0s;transition:all .18s ease-in-out 0s}.toggle-switch-slider:before{background-color:#fff;bottom:3px;content:"";height:18px;left:3px;width:18px}.toggle-switch input.toggle-switch-checkbox:checked+.toggle-switch-slider{background-color:#2196f3}.toggle-switch input.toggle-switch-checkbox:focus+.toggle-switch-slider{-webkit-box-shadow:0 0 1px #2196f3;box-shadow:0 0 1px #2196f3}.toggle-switch 2 input.toggle-switch-checkbox:checked+.toggle-switch-slider:before{-webkit-transform:translateX(16px);transform:translateX(16px)}.kwtsk-group{position:relative}.kwtsk-group-btn{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background-color:#f6f7f7;border:1px solid #c4c4c4;border-radius:4px;color:#888;cursor:pointer;display:block;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;height:28px;justify-content:center;-webkit-transition:all .3s;transition:all .3s;width:50px}.kwtsk-group-btn:hover{background-color:#eee;border-color:#868686;color:#636363}.kwtsk-group-btn span.dashicons{font-size:20px;height:20px;width:20px}.kwtsk-group-container{background-color:#fff;border-radius:5px;-webkit-box-shadow:inset 0 0 0 1px #ccc,0 2px 10px rgba(0,0,0,.12);box-shadow:inset 0 0 0 1px #ccc,0 2px 10px rgba(0,0,0,.12);display:none;left:55px;padding:12px 10px 8px;position:absolute;top:0;width:366px;z-index:8}.kwtsk-group.kwtsk-show .kwtsk-group-container{display:block}.kwtsk-group-container table.form-table td,.kwtsk-group-container table.form-table th{font-size:13px;padding:5px 5px 10px;vertical-align:middle}.kwtsk-group-container table.form-table th{font-size:12px;padding-right:12px;width:115px}.kwtsk-group-container table.form-table td .kwtsk-row-col-right{display:none!important}.kwtsk-group-container .kwtsk-row .regular-text,.kwtsk-group-container .kwtsk-row input[type=number],.kwtsk-group-container .kwtsk-row select{padding:2px 8px}.kwtskRange{margin:18px 0;max-width:440px;position:relative;width:100%}.kwtskRangeInput{display:-webkit-box;display:-ms-flexbox;display:flex}.kwtskRangeInput span{padding:0 5px;width:-webkit-max-content;width:-moz-max-content;width:max-content}.kwtskRangeInput input{width:100%}.kwtskRangeInputVal{color:#a2a2a2;font-size:11px;padding:0 15px 0 0;position:absolute;text-align:center;top:-22px;width:100%}.kwtskRange input[type=text]{background:none;border:0;-webkit-box-shadow:none;box-shadow:none;color:inherit;font-size:inherit;padding:0 2px 0 0;text-align:right;width:35px}.kwtskRange:hover input[type=text]{color:#000!important}.kwtskColorPicker{max-width:226px;overflow:hidden;position:relative}.kwtskColorBtn{border:1px solid #c4c4c4;border-radius:3px;font-size:11px;min-height:30px;padding:0 0 0 30px;-webkit-transition:border .3s;transition:border .3s}.kwtskColorBtnTxt{background:#f6f7f7;border-left:1px solid #c3c4c7;border-radius:0 2px 2px 0;color:#50575e;display:block;line-height:2.54545455;padding:0 6px;text-align:center;-webkit-transition:all .3s;transition:all .3s}.kwtskColorBtn:hover,.kwtskColorBtn:hover .kwtskColorBtnTxt,.kwtskColorPicker.kwtskButton-active .kwtskColorBtn,.kwtskColorPicker.kwtskButton-active .kwtskColorBtnTxt{border-color:#868686}.kwtskColorBtn:hover .kwtskColorBtnTxt,.kwtskColorPicker.kwtskButton-active .kwtskColorBtnTxt{background-color:#eee}.kwtskColorInput{border-color:#aaa;display:none;max-width:113px;position:absolute;right:0;top:0}.kwtskPickColor{left:-999999px;position:absolute;top:110%;z-index:999}.kwtskColorPicker.kwtskButton-active{overflow:visible}.kwtskColorPicker.kwtskButton-active .kwtskPickColor{left:0}.kwtskColorPicker.kwtskButton-active .kwtskColorInput{border:1px solid #acacac;color:#747474;display:block}.kwtsk-disable-comments .kwtsk-radio-block{margin:0 0 12px}.kwtsk-disable-comments .kwtsk-radio-select{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;background-color:#f9f9f9;border:1px solid rgba(0,0,0,.12);border-radius:4px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-start;margin:0;padding:25px 18px}.kwtsk-disable-comments .radio-label{font-size:16px;margin:-2px 0 0 8px}.kwtsk-disable-comments .kwtsk-radio-select.selected.selected{background-color:#ededed;border-color:#b9b9b9;color:#000}.kwtsk-disable-comments .kwtsk-radio-select.selected .radio-label{color:var(--kwtsk-main)}.kwtsk-disable-comments .clear-selection{color:#999;cursor:pointer;font-size:12px;text-align:right}.kwtsk-disable-comments .clear-selection:hover{color:#000}.kwtsk-checkbox-selects,.kwtsk-selected-icons{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px;margin:34px 0 0;min-height:90px}#kwtsk-content-social_links h4{font-size:16px;margin:60px 0 0;padding:0}.kwtsk-checkboxes-block{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;margin:8px 0 0}.kwtsk-checkboxes-block:first-child{margin-top:10px}.kwtsk-checkboxes-block .checkboxes-label{margin-left:4px}.kwtsk-checkbox-block{-webkit-box-flex:0;cursor:-webkit-grab;cursor:grab;-ms-flex:0 0 auto;flex:0 0 auto;height:90px;overflow:hidden;position:relative;width:90px}.kwtsk-checkbox-block.sortable-ghost{cursor:-webkit-grabbing;cursor:grabbing;opacity:.8;-webkit-transform:rotate(12deg);transform:rotate(12deg);z-index:100}.kwtsk-checkbox-block.sortable-ghost .kwtsk-checkbox-select{-webkit-box-shadow:0 4px 8px rgba(0,0,0,.24);box-shadow:0 4px 8px rgba(0,0,0,.24)}.kwtsk-checkbox-block .kwtsk-checkbox-select{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background-color:#f9f9f9;border:1px solid rgba(0,0,0,.12);border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;height:100%;justify-content:center;padding:5px;width:100%}.kwtsk-checkbox-block .kwtsk-checkbox-select .checkbox-label{font-size:13px;white-space:nowrap}.kwtsk-checkbox-block .kwtsk-checkbox-select .social-link-icon{color:#bebebe;font-size:32px}.kwtsk-checkbox-block .kwtsk-remove{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background-color:#fff;border:0;border-radius:3px;-webkit-box-shadow:0 0 0 1px #b9b9b9,0 1px 4px rgba(0,0,0,.18);box-shadow:0 0 0 1px #b9b9b9,0 1px 4px rgba(0,0,0,.18);display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;height:18px;justify-content:center;padding:5px;position:absolute;right:5px;top:5px;width:18px}.kwtsk-icon-input.kwtsk-social-url-input{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:35px;max-width:600px}.kwtsk-icon-input.kwtsk-social-url-input h4{margin-top:0!important}#kwtsk-content-social_links p{margin:10px 0}.kwtsk-checkbox-options{display:-webkit-box;display:-ms-flexbox;display:flex;height:70px;width:70px}.kwtsk-checkbox-options .kwtsk-checkbox-select{-webkit-box-flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;justify-content:center;position:relative}.kwtsk-checkbox-options .kwtsk-checkbox-select .social-link-icon{font-size:26px;margin:0 0 5px}.kwtsk-checkbox-options .kwtsk-checkbox-select:hover .social-link-icon{color:#000}.kwtsk-checkbox-options .kwtsk-checkbox-select .checkbox-label{font-size:11px}.kwtsk-checkbox-options .kwtsk-checkbox-select .social-link-icon{color:#bebebe;font-size:28px}.kwtsk-checkbox-select.selected input.icon-txt{background:none;border:0;font-size:13px;height:auto;line-height:1;min-height:auto;min-height:17px;padding:0;text-align:center;width:100%}input.checkbox-single{bottom:0;height:1px;opacity:0;position:absolute;right:0;visibility:hidden;width:1px}.kwtsk-selected-icons .kwtsk-checkbox-select.selected{background-color:#f5f5f5;border-color:#b9b9b9;color:#000}.kwtsk-selected-icons .kwtsk-checkbox-select.selected .social-link-icon{color:var(--kwtsk-main)}.kwtsk-checkbox-selects .kwtsk-checkbox-select.selected .social-link-icon{color:#000}.kwtsk-icon-input{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:20px}.kwtsk-icon-input input{-webkit-box-flex:1;border:1px solid #ccc;border-radius:4px;-ms-flex:1;flex:1;padding:8px}.kwtsk-icon-input.valid input{border-color:green}.kwtsk-icon-input.invalid input{border-color:red}.kwtsk-icon-input button.kwtsk-add{margin-left:10px;padding:8px 12px}.cpts-select .no-cpts{color:#b3b3b3;font-size:16px;padding:40px 10px;text-align:center}.cpts-select .cpts-add-new{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px}.cpts-select .cpts-add-new input{-webkit-box-flex:1;-ms-flex:1;flex:1;margin:0;padding:8px 12px}.cpts-select .cpts-add-new input.invalid{border:1px solid #965454;-webkit-box-shadow:0 0 0 1px #d90f0f;box-shadow:0 0 0 1px #d90f0f}.cpts-select .cpts-add-new button{height:46px;padding:5px 15px}.cpts-select .cpts-note{color:#1e1e1e;font-size:13px;font-weight:700;margin:25px 0 0}.cpts-table{border-radius:4px;margin:30px 0 0!important}.cpts-table:hover{-webkit-box-shadow:0 0 0 1px #c7c7c7;box-shadow:0 0 0 1px #c7c7c7}.cpts-table.even{background-color:#f9f9f9}.cpts-table th.cpts-label{font-size:16px;padding:26px 10px 10px 14px}.cpts-table td{position:relative}.cpts-table .cpts-single-sets>div{ padding:8px 0}.cpts-table .cpts-single-sets{position:relative}.cpts-table .cpts-single-slug{-webkit-box-align:baseline;-ms-flex-align:baseline;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:baseline;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between}.cpts-table .cpts-single{font-weight:700}.cpts-table .cpts-single span{font-weight:400}.cpts-table .cpts-slug code{background:#e9e9e9;border-radius:3px;display:inline-block;min-width:110px;padding:6px 12px;text-align:center}.cpts-table .cpts-single-sets span{color:#868686}.cpts-table .cpts-del{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background-color:#fff;border-radius:20px;bottom:10px;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.2);box-shadow:0 1px 4px rgba(0,0,0,.2);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:18px;height:28px;justify-content:center;opacity:0;position:absolute;right:10px;-webkit-transition:all .3s;transition:all .3s;width:28px}.cpts-table .cpts-del.checking{opacity:1!important}.cpts-table .cpts-del.checking:before{-webkit-animation:kwtsk-delspin .8s linear infinite;animation:kwtsk-delspin .8s linear infinite;border:2px solid #6a6f75;border-radius:50%;border-top-color:transparent;content:"";display:inline-block;height:12px;left:calc(50% - 8px);position:absolute;top:6px;vertical-align:middle;width:12px}@-webkit-keyframes kwtsk-delspin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes kwtsk-delspin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.cpts-table .cpts-del:hover{background-color:#fff4f4;color:#d40808}.cpts-table:hover .cpts-del{opacity:1}2 input.toggle-switch-checkbox:checked+.toggle-switch-slider:before{-webkit-transform:translateX(16px);transform:translateX(16px)}.kwtsk-group{position:relative}.kwtsk-group-btn{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background-color:#f6f7f7;border:1px solid #c4c4c4;border-radius:4px;color:#888;cursor:pointer;display:block;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;height:28px;justify-content:center;-webkit-transition:all .3s;transition:all .3s;width:50px}.kwtsk-group-btn:hover{background-color:#eee;border-color:#868686;color:#636363}.kwtsk-group-btn span.dashicons{font-size:20px;height:20px;width:20px}.kwtsk-group-container{background-color:#fff;border-radius:5px;-webkit-box-shadow:inset 0 0 0 1px #ccc,0 2px 10px rgba(0,0,0,.12);box-shadow:inset 0 0 0 1px #ccc,0 2px 10px rgba(0,0,0,.12);display:none;left:55px;padding:12px 10px 8px;position:absolute;top:0;width:366px;z-index:8}.kwtsk-group.kwtsk-show .kwtsk-group-container{display:block}.kwtsk-group-container table.form-table td,.kwtsk-group-container table.form-table th{font-size:13px;padding:5px 5px 10px;vertical-align:middle}.kwtsk-group-container table.form-table th{font-size:12px;padding-right:12px;width:115px}.kwtsk-group-container table.form-table td .kwtsk-row-col-right{display:none!important}.kwtsk-group-container .kwtsk-row .regular-text,.kwtsk-group-container .kwtsk-row input[type=number],.kwtsk-group-container .kwtsk-row select{padding:2px 8px}.kwtskRange{margin:18px 0;max-width:440px;position:relative;width:100%}.kwtskRangeInput{display:-webkit-box;display:-ms-flexbox;display:flex}.kwtskRangeInput span{padding:0 5px;width:-webkit-max-content;width:-moz-max-content;width:max-content}.kwtskRangeInput input{width:100%}.kwtskRangeInputVal{color:#a2a2a2;font-size:11px;padding:0 15px 0 0;position:absolute;text-align:center;top:-22px;width:100%}.kwtskRange input[type=text]{background:none;border:0;-webkit-box-shadow:none;box-shadow:none;color:inherit;font-size:inherit;padding:0 2px 0 0;text-align:right;width:35px}.kwtskRange:hover input[type=text]{color:#000!important}.kwtskColorPicker{max-width:226px;overflow:hidden;position:relative}.kwtskColorBtn{border:1px solid #c4c4c4;border-radius:3px;font-size:11px;min-height:30px;padding:0 0 0 30px;-webkit-transition:border .3s;transition:border .3s}.kwtskColorBtnTxt{background:#f6f7f7;border-left:1px solid #c3c4c7;border-radius:0 2px 2px 0;color:#50575e;display:block;line-height:2.54545455;padding:0 6px;text-align:center;-webkit-transition:all .3s;transition:all .3s}.kwtskColorBtn:hover,.kwtskColorBtn:hover .kwtskColorBtnTxt,.kwtskColorPicker.kwtskButton-active .kwtskColorBtn,.kwtskColorPicker.kwtskButton-active .kwtskColorBtnTxt{border-color:#868686}.kwtskColorBtn:hover .kwtskColorBtnTxt,.kwtskColorPicker.kwtskButton-active .kwtskColorBtnTxt{background-color:#eee}.kwtskColorInput{border-color:#aaa;display:none;max-width:113px;position:absolute;right:0;top:0}.kwtskPickColor{left:-999999px;position:absolute;top:110%;z-index:999}.kwtskColorPicker.kwtskButton-active{overflow:visible}.kwtskColorPicker.kwtskButton-active .kwtskPickColor{left:0}.kwtskColorPicker.kwtskButton-active .kwtskColorInput{border:1px solid #acacac;color:#747474;display:block}.kwtsk-disable-comments .kwtsk-radio-block{margin:0 0 12px}.kwtsk-disable-comments .kwtsk-radio-select{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;background-color:#f9f9f9;border:1px solid rgba(0,0,0,.12);border-radius:4px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-start;margin:0;padding:25px 18px}.kwtsk-disable-comments .radio-label{font-size:16px;margin:-2px 0 0 8px}.kwtsk-disable-comments .kwtsk-radio-select.selected.selected{background-color:#ededed;border-color:#b9b9b9;color:#000}.kwtsk-disable-comments .kwtsk-radio-select.selected .radio-label{color:var(--kwtsk-main)}.kwtsk-disable-comments .clear-selection{color:#999;cursor:pointer;font-size:12px;text-align:right}.kwtsk-disable-comments .clear-selection:hover{color:#000}.kwtsk-checkbox-selects,.kwtsk-selected-icons{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px;margin:34px 0 0;min-height:90px}#kwtsk-content-social_links h4{font-size:16px;margin:60px 0 0;padding:0}.kwtsk-checkboxes-block{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;margin:8px 0 0}.kwtsk-checkboxes-block:first-child{margin-top:10px}.kwtsk-checkboxes-block .checkboxes-label{margin-left:4px}.kwtsk-checkbox-block{-webkit-box-flex:0;cursor:-webkit-grab;cursor:grab;-ms-flex:0 0 auto;flex:0 0 auto;height:90px;overflow:hidden;position:relative;width:90px}.kwtsk-checkbox-block.sortable-ghost{cursor:-webkit-grabbing;cursor:grabbing;opacity:.8;-webkit-transform:rotate(12deg);transform:rotate(12deg);z-index:100}.kwtsk-checkbox-block.sortable-ghost .kwtsk-checkbox-select{-webkit-box-shadow:0 4px 8px rgba(0,0,0,.24);box-shadow:0 4px 8px rgba(0,0,0,.24)}.kwtsk-checkbox-block .kwtsk-checkbox-select{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background-color:#f9f9f9;border:1px solid rgba(0,0,0,.12);border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;height:100%;justify-content:center;padding:5px;width:100%}.kwtsk-checkbox-block .kwtsk-checkbox-select .checkbox-label{font-size:13px;white-space:nowrap}.kwtsk-checkbox-block .kwtsk-checkbox-select .social-link-icon{color:#bebebe;font-size:32px}.kwtsk-checkbox-block .kwtsk-remove{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background-color:#fff;border:0;border-radius:3px;-webkit-box-shadow:0 0 0 1px #b9b9b9,0 1px 4px rgba(0,0,0,.18);box-shadow:0 0 0 1px #b9b9b9,0 1px 4px rgba(0,0,0,.18);display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;height:18px;justify-content:center;padding:5px;position:absolute;right:5px;top:5px;width:18px}.kwtsk-icon-input.kwtsk-social-url-input{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:35px;max-width:600px}.kwtsk-icon-input.kwtsk-social-url-input h4{margin-top:0!important}#kwtsk-content-social_links p{margin:10px 0}.kwtsk-checkbox-options{display:-webkit-box;display:-ms-flexbox;display:flex;height:70px;width:70px}.kwtsk-checkbox-options .kwtsk-checkbox-select{-webkit-box-flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;justify-content:center;position:relative}.kwtsk-checkbox-options .kwtsk-checkbox-select .social-link-icon{font-size:26px;margin:0 0 5px}.kwtsk-checkbox-options .kwtsk-checkbox-select:hover .social-link-icon{color:#000}.kwtsk-checkbox-options .kwtsk-checkbox-select .checkbox-label{font-size:11px}.kwtsk-checkbox-options .kwtsk-checkbox-select .social-link-icon{color:#bebebe;font-size:28px}.kwtsk-checkbox-select.selected input.icon-txt{background:none;border:0;font-size:13px;height:auto;line-height:1;min-height:auto;min-height:17px;padding:0;text-align:center;width:100%}input.checkbox-single{bottom:0;height:1px;opacity:0;position:absolute;right:0;visibility:hidden;width:1px}.kwtsk-selected-icons .kwtsk-checkbox-select.selected{background-color:#f5f5f5;border-color:#b9b9b9;color:#000}.kwtsk-selected-icons .kwtsk-checkbox-select.selected .social-link-icon{color:var(--kwtsk-main)}.kwtsk-checkbox-selects .kwtsk-checkbox-select.selected .social-link-icon{color:#000}.kwtsk-icon-input{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:20px}.kwtsk-icon-input input{-webkit-box-flex:1;border:1px solid #ccc;border-radius:4px;-ms-flex:1;flex:1;padding:8px}.kwtsk-icon-input.valid input{border-color:green}.kwtsk-icon-input.invalid input{border-color:red}.kwtsk-icon-input button.kwtsk-add{margin-left:10px;padding:8px 12px}.cpts-select .no-cpts{color:#b3b3b3;font-size:16px;padding:40px 10px;text-align:center}.cpts-select .cpts-add-new{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px}.cpts-select .cpts-add-new input{-webkit-box-flex:1;-ms-flex:1;flex:1;margin:0;padding:8px 12px}.cpts-select .cpts-add-new input.invalid{border:1px solid #965454;-webkit-box-shadow:0 0 0 1px #d90f0f;box-shadow:0 0 0 1px #d90f0f}.cpts-select .cpts-add-new button{height:46px;padding:5px 15px}.cpts-select .cpts-note{color:#1e1e1e;font-size:13px;font-weight:700;margin:25px 0 0}.cpts-table{border-radius:4px;margin:30px 0 0!important}.cpts-table:hover{-webkit-box-shadow:0 0 0 1px #c7c7c7;box-shadow:0 0 0 1px #c7c7c7}.cpts-table.even{background-color:#f9f9f9}.cpts-table th.cpts-label{font-size:16px;padding:26px 10px 10px 14px}.cpts-table td{position:relative}.cpts-table .cpts-single-sets>div{margin:2px 0;padding:6px 0}.cpts-table .cpts-single-sets{position:relative}.cpts-permalink-input{display:inline;margin:8px 0 0 25px}.cpts-permalink-input input{-webkit-box-flex:1;border:1px solid #ddd;border-radius:4px;-ms-flex:1;flex:1;font-size:13px;margin:0 5px 0 0;max-width:180px;padding:2px 8px}.cpts-permalink-input input:focus{border-color:#2271b1;-webkit-box-shadow:0 0 0 1px #2271b1;box-shadow:0 0 0 1px #2271b1;outline:none}.cpts-permalink-input code{background:#f0f0f1;border-radius:2px;color:#1e1e1e;font-size:12px;padding:4px 8px}.cpts-table .cpts-single-slug{-webkit-box-align:baseline;-ms-flex-align:baseline;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:baseline;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between}.cpts-table .cpts-single{font-weight:700}.cpts-table .cpts-single span{font-weight:400}.cpts-table .cpts-slug code{background:#e9e9e9;border-radius:3px;display:inline-block;min-width:110px;padding:6px 12px;text-align:center}.cpts-table .cpts-single-sets span{color:#868686}.cpts-table .cpts-del{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background-color:#fff;border-radius:20px;bottom:10px;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.2);box-shadow:0 1px 4px rgba(0,0,0,.2);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:18px;height:28px;justify-content:center;opacity:0;position:absolute;right:10px;-webkit-transition:all .3s;transition:all .3s;width:28px}.cpts-table .cpts-del.checking{opacity:1!important}.cpts-table .cpts-del.checking:before{-webkit-animation:kwtsk-delspin .8s linear infinite;animation:kwtsk-delspin .8s linear infinite;border:2px solid #6a6f75;border-radius:50%;border-top-color:transparent;content:"";display:inline-block;height:12px;left:calc(50% - 8px);position:absolute;top:6px;vertical-align:middle;width:12px}@-webkit-keyframes kwtsk-delspin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes kwtsk-delspin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.cpts-table .cpts-del:hover{background-color:#fff4f4;color:#d40808}.cpts-table:hover .cpts-del{opacity:1}.cpts-template{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;margin-top:10px!important}.cpts-template button{background-color:#f0f0f1;border-color:#2271b1;color:#2271b1;min-height:30px;padding:4px 12px;-webkit-transition:all .3s ease;transition:all .3s ease}.cpts-template button:hover{background-color:#2271b1;color:#fff}.cpts-template button:disabled{background-color:#f6f7f7;border-color:#a7aaad;color:#a7aaad;cursor:not-allowed}.cpts-template .button.has-template{background-color:#f0f0f1;border-color:#8c8f94;color:#2271b1}.cpts-template .button.has-template:hover{background-color:#2271b1;border-color:#2271b1;color:#fff}.cpts-template .template-exists{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#2271b1;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:13px;gap:5px}.cpts-template .template-exists i{color:#00a32a} -
theme-site-kit/trunk/dist/settings.min.js
r3326191 r3351118 6 6 * @license MIT 7 7 */ 8 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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(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 a(e){return a="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},a(e)}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 l(){return l=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},l.apply(this,arguments)}function s(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 c(e){return function(e){if(Array.isArray(e))return u(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 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)||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 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}n.r(t),n.d(t,{MultiDrag:()=>kt,Sortable:()=>$e,Swap:()=>ft,default:()=>Rt});function p(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var f=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=p(/Edge/i),h=p(/firefox/i),m=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),b=p(/iP(ad|od|hone)/i),g=p(/chrome/i)&&p(/android/i),v={capture:!1,passive:!1};function y(e,t,n){e.addEventListener(t,n,!f&&v)}function w(e,t,n){e.removeEventListener(t,n,!f&&v)}function x(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function E(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function k(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&x(e,t):x(e,t))||r&&e===n)return e;if(e===n)break}while(e=E(e))}return null}var _,S=/\s+/g;function R(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(S," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(S," ")}}function O(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function C(e,t){var n="";if("string"==typeof e)n=e;else do{var r=O(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function j(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,a=r.length;if(n)for(;o<a;o++)n(r[o],o);return r}return[]}function A(){var e=document.scrollingElement;return e||document.documentElement}function T(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var a,i,l,s,c,u,p;if(e!==window&&e.parentNode&&e!==A()?(i=(a=e.getBoundingClientRect()).top,l=a.left,s=a.bottom,c=a.right,u=a.height,p=a.width):(i=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,p=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!f))do{if(o&&o.getBoundingClientRect&&("none"!==O(o,"transform")||n&&"static"!==O(o,"position"))){var d=o.getBoundingClientRect();i-=d.top+parseInt(O(o,"border-top-width")),l-=d.left+parseInt(O(o,"border-left-width")),s=i+a.height,c=l+a.width;break}}while(o=o.parentNode);if(r&&e!==window){var h=C(o||e),m=h&&h.a,b=h&&h.d;h&&(s=(i/=b)+(u/=b),c=(l/=m)+(p/=m))}return{top:i,left:l,bottom:s,right:c,width:p,height:u}}}function P(e,t,n){for(var r=B(e,!0),o=T(e)[t];r;){var a=T(r)[n];if(!("top"===n||"left"===n?o>=a:o<=a))return r;if(r===A())break;r=B(r,!1)}return!1}function N(e,t,n,r){for(var o=0,a=0,i=e.children;a<i.length;){if("none"!==i[a].style.display&&i[a]!==$e.ghost&&(r||i[a]!==$e.dragged)&&k(i[a],n.draggable,e,!1)){if(o===t)return i[a];o++}a++}return null}function D(e,t){for(var n=e.lastElementChild;n&&(n===$e.ghost||"none"===O(n,"display")||t&&!x(n,t));)n=n.previousElementSibling;return n||null}function M(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===$e.clone||t&&!x(e,t)||n++;return n}function F(e){var t=0,n=0,r=A();if(e)do{var o=C(e),a=o.a,i=o.d;t+=e.scrollLeft*a,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function B(e,t){if(!e||!e.getBoundingClientRect)return A();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=O(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return A();if(r||t)return n;r=!0}}}while(n=n.parentNode);return A()}function L(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function I(e,t){return function(){if(!_){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),_=setTimeout((function(){_=void 0}),t)}}}function U(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function z(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function H(e,t){O(e,"position","absolute"),O(e,"top",t.top),O(e,"left",t.left),O(e,"width",t.width),O(e,"height",t.height)}function W(e){O(e,"position",""),O(e,"top",""),O(e,"left",""),O(e,"width",""),O(e,"height","")}function $(e,t,n){var r={};return Array.from(e.children).forEach((function(o){var a,i,l,s;if(k(o,t.draggable,e,!1)&&!o.animated&&o!==n){var c=T(o);r.left=Math.min(null!==(a=r.left)&&void 0!==a?a:1/0,c.left),r.top=Math.min(null!==(i=r.top)&&void 0!==i?i:1/0,c.top),r.right=Math.max(null!==(l=r.right)&&void 0!==l?l:-1/0,c.right),r.bottom=Math.max(null!==(s=r.bottom)&&void 0!==s?s:-1/0,c.bottom)}})),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var G="Sortable"+(new Date).getTime();function X(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==O(e,"display")&&e!==$e.ghost){t.push({target:e,rect:T(e)});var n=o({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=C(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var o=!1,a=0;t.forEach((function(e){var t=0,n=e.target,i=n.fromRect,l=T(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,p=C(n,!0);p&&(l.top-=p.f,l.left-=p.e),n.toRect=l,n.thisAnimationDuration&&L(s,l)&&!L(i,l)&&(u.top-l.top)/(u.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,s,c,r.options)),L(l,i)||(n.prevFromRect=i,n.prevToRect=l,t||(t=r.options.animation),r.animate(n,u,l,t)),t&&(o=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"==typeof n&&n()}),a):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){O(e,"transition",""),O(e,"transform","");var o=C(this.el),a=o&&o.a,i=o&&o.d,l=(t.left-n.left)/(a||1),s=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!s,O(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),O(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),O(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){O(e,"transition",""),O(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var V=[],q={initializeByDefault:!0},Y={mount:function(e){for(var t in q)q.hasOwnProperty(t)&&!(t in e)&&(e[t]=q[t]);V.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),V.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=e+"Global";V.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][a]&&t[r.pluginName][a](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in V.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[o]=a,l(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var a=this.modifyOption(e,o,e.options[o]);void 0!==a&&(e.options[o]=a)}},getEventProperties:function(e,t){var n={};return V.forEach((function(r){"function"==typeof r.eventProperties&&l(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return V.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function K(e){var t=e.sortable,n=e.rootEl,r=e.name,a=e.targetEl,i=e.cloneEl,l=e.toEl,s=e.fromEl,c=e.oldIndex,u=e.newIndex,p=e.oldDraggableIndex,h=e.newDraggableIndex,m=e.originalEvent,b=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[G]){var v,y=t.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||f||d?(v=document.createEvent("Event")).initEvent(r,!0,!0):v=new CustomEvent(r,{bubbles:!0,cancelable:!0}),v.to=l||n,v.from=s||n,v.item=a||n,v.clone=i,v.oldIndex=c,v.newIndex=u,v.oldDraggableIndex=p,v.newDraggableIndex=h,v.originalEvent=m,v.pullMode=b?b.lastPutMode:void 0;var x=o(o({},g),Y.getEventProperties(r,t));for(var E in x)v[E]=x[E];n&&n.dispatchEvent(v),y[w]&&y[w].call(t,v)}}var J=["evt"],Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=s(n,J);Y.pluginEvent.bind($e)(e,t,o({dragEl:ee,parentEl:te,ghostEl:ne,rootEl:re,nextEl:oe,lastDownEl:ae,cloneEl:ie,cloneHidden:le,dragStarted:we,putSortable:de,activeSortable:$e.active,originalEvent:r,oldIndex:se,oldDraggableIndex:ue,newIndex:ce,newDraggableIndex:pe,hideGhostForTarget:Ue,unhideGhostForTarget:ze,cloneNowHidden:function(){le=!0},cloneNowShown:function(){le=!1},dispatchSortableEvent:function(e){Q({sortable:t,name:e,originalEvent:r})}},a))};function Q(e){K(o({putSortable:de,cloneEl:ie,targetEl:ee,rootEl:re,oldIndex:se,oldDraggableIndex:ue,newIndex:ce,newDraggableIndex:pe},e))}var ee,te,ne,re,oe,ae,ie,le,se,ce,ue,pe,fe,de,he,me,be,ge,ve,ye,we,xe,Ee,ke,_e,Se=!1,Re=!1,Oe=[],Ce=!1,je=!1,Ae=[],Te=!1,Pe=[],Ne="undefined"!=typeof document,De=b,Me=d||f?"cssFloat":"float",Fe=Ne&&!g&&!b&&"draggable"in document.createElement("div"),Be=function(){if(Ne){if(f)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Le=function(e,t){var n=O(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=N(e,0,t),a=N(e,1,t),i=o&&O(o),l=a&&O(a),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+T(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+T(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=r&&"none"===n[Me]||a&&"none"===n[Me]&&s+c>r)?"vertical":"horizontal"},Ie=function(e){function t(e,n){return function(r,o,a,i){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,a,i),n)(r,o,a,i);var s=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==a(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ue=function(){!Be&&ne&&O(ne,"display","none")},ze=function(){!Be&&ne&&O(ne,"display","")};Ne&&!g&&document.addEventListener("click",(function(e){if(Re)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Re=!1,!1}),!0);var He=function(e){if(ee){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,a=e.clientY,Oe.some((function(e){var t=e[G].options.emptyInsertThreshold;if(t&&!D(e)){var n=T(e),r=o>=n.left-t&&o<=n.right+t,l=a>=n.top-t&&a<=n.bottom+t;return r&&l?i=e:void 0}})),i);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[G]._onDragOver(n)}}var o,a,i},We=function(e){ee&&ee.parentNode[G]._isOutsideThisEl(e.target)};function $e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=l({},t),e[G]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==$e.supportPointer&&"PointerEvent"in window&&(!m||b),emptyInsertThreshold:5};for(var r in Y.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Ie(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Fe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?y(e,"pointerdown",this._onTapStart):(y(e,"mousedown",this._onTapStart),y(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(e,"dragover",this),y(e,"dragenter",this)),Oe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),l(this,X())}function Ge(e,t,n,r,o,a,i,l){var s,c,u=e[G],p=u.options.onMove;return!window.CustomEvent||f||d?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=o||t,s.relatedRect=a||T(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),p&&(c=p.call(u,s,i)),c}function Xe(e){e.draggable=!1}function Ve(){Te=!1}function qe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Ye(e){return setTimeout(e,0)}function Ke(e){return clearTimeout(e)}$e.prototype={constructor:$e,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(xe=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ee):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=r.filter;if(function(e){Pe.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Pe.push(r)}}(n),!ee&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!m||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=k(l,r.draggable,n,!1))&&l.animated||ae===l)){if(se=M(l),ue=M(l,r.draggable),"function"==typeof c){if(c.call(this,e,l,this))return Q({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Z("filter",t,{evt:e}),void(o&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=k(s,r.trim(),n,!1))return Q({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),Z("filter",t,{evt:e}),!0}))))return void(o&&e.preventDefault());r.handle&&!k(s,r.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,a=o.el,i=o.options,l=a.ownerDocument;if(n&&!ee&&n.parentNode===a){var s=T(n);if(re=a,te=(ee=n).parentNode,oe=ee.nextSibling,ae=n,fe=i.group,$e.dragged=ee,he={target:ee,clientX:(t||e).clientX,clientY:(t||e).clientY},ve=he.clientX-s.left,ye=he.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ee.style["will-change"]="all",r=function(){Z("delayEnded",o,{evt:e}),$e.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!h&&o.nativeDraggable&&(ee.draggable=!0),o._triggerDragStart(e,t),Q({sortable:o,name:"choose",originalEvent:e}),R(ee,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){j(ee,e.trim(),Xe)})),y(l,"dragover",He),y(l,"mousemove",He),y(l,"touchmove",He),i.supportPointer?(y(l,"pointerup",o._onDrop),!this.nativeDraggable&&y(l,"pointercancel",o._onDrop)):(y(l,"mouseup",o._onDrop),y(l,"touchend",o._onDrop),y(l,"touchcancel",o._onDrop)),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ee.draggable=!0),Z("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||f))r();else{if($e.eventCanceled)return void this._onDrop();i.supportPointer?(y(l,"pointerup",o._disableDelayedDrag),y(l,"pointercancel",o._disableDelayedDrag)):(y(l,"mouseup",o._disableDelayedDrag),y(l,"touchend",o._disableDelayedDrag),y(l,"touchcancel",o._disableDelayedDrag)),y(l,"mousemove",o._delayedDragTouchMoveHandler),y(l,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&y(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ee&&Xe(ee),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._disableDelayedDrag),w(e,"touchend",this._disableDelayedDrag),w(e,"touchcancel",this._disableDelayedDrag),w(e,"pointerup",this._disableDelayedDrag),w(e,"pointercancel",this._disableDelayedDrag),w(e,"mousemove",this._delayedDragTouchMoveHandler),w(e,"touchmove",this._delayedDragTouchMoveHandler),w(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):y(document,t?"touchmove":"mousemove",this._onTouchMove):(y(ee,"dragend",this),y(re,"dragstart",this._onDragStart));try{document.selection?Ye((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Se=!1,re&&ee){Z("dragStarted",this,{evt:t}),this.nativeDraggable&&y(document,"dragover",We);var n=this.options;!e&&R(ee,n.dragClass,!1),R(ee,n.ghostClass,!0),$e.active=this,e&&this._appendGhost(),Q({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(me){this._lastX=me.clientX,this._lastY=me.clientY,Ue();for(var e=document.elementFromPoint(me.clientX,me.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(me.clientX,me.clientY))!==t;)t=e;if(ee.parentNode[G]._isOutsideThisEl(e),t)do{if(t[G]){if(t[G]._onDragOver({clientX:me.clientX,clientY:me.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=E(t));ze()}},_onTouchMove:function(e){if(he){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=ne&&C(ne,!0),i=ne&&a&&a.a,l=ne&&a&&a.d,s=De&&_e&&F(_e),c=(o.clientX-he.clientX+r.x)/(i||1)+(s?s[0]-Ae[0]:0)/(i||1),u=(o.clientY-he.clientY+r.y)/(l||1)+(s?s[1]-Ae[1]:0)/(l||1);if(!$e.active&&!Se){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(ne){a?(a.e+=c-(be||0),a.f+=u-(ge||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");O(ne,"webkitTransform",p),O(ne,"mozTransform",p),O(ne,"msTransform",p),O(ne,"transform",p),be=c,ge=u,me=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ne){var e=this.options.fallbackOnBody?document.body:re,t=T(ee,!0,De,!0,e),n=this.options;if(De){for(_e=e;"static"===O(_e,"position")&&"none"===O(_e,"transform")&&_e!==document;)_e=_e.parentNode;_e!==document.body&&_e!==document.documentElement?(_e===document&&(_e=A()),t.top+=_e.scrollTop,t.left+=_e.scrollLeft):_e=A(),Ae=F(_e)}R(ne=ee.cloneNode(!0),n.ghostClass,!1),R(ne,n.fallbackClass,!0),R(ne,n.dragClass,!0),O(ne,"transition",""),O(ne,"transform",""),O(ne,"box-sizing","border-box"),O(ne,"margin",0),O(ne,"top",t.top),O(ne,"left",t.left),O(ne,"width",t.width),O(ne,"height",t.height),O(ne,"opacity","0.8"),O(ne,"position",De?"absolute":"fixed"),O(ne,"zIndex","100000"),O(ne,"pointerEvents","none"),$e.ghost=ne,e.appendChild(ne),O(ne,"transform-origin",ve/parseInt(ne.style.width)*100+"% "+ye/parseInt(ne.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;Z("dragStart",this,{evt:e}),$e.eventCanceled?this._onDrop():(Z("setupClone",this),$e.eventCanceled||((ie=z(ee)).removeAttribute("id"),ie.draggable=!1,ie.style["will-change"]="",this._hideClone(),R(ie,this.options.chosenClass,!1),$e.clone=ie),n.cloneId=Ye((function(){Z("clone",n),$e.eventCanceled||(n.options.removeCloneOnHide||re.insertBefore(ie,ee),n._hideClone(),Q({sortable:n,name:"clone"}))})),!t&&R(ee,o.dragClass,!0),t?(Re=!0,n._loopId=setInterval(n._emulateDragOver,50)):(w(document,"mouseup",n._onDrop),w(document,"touchend",n._onDrop),w(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,ee)),y(document,"drop",n),O(ee,"transform","translateZ(0)")),Se=!0,n._dragStartId=Ye(n._dragStarted.bind(n,t,e)),y(document,"selectstart",n),we=!0,window.getSelection().removeAllRanges(),m&&O(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,a,i=this.el,l=e.target,s=this.options,c=s.group,u=$e.active,p=fe===c,f=s.sort,d=de||u,h=this,m=!1;if(!Te){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=k(l,s.draggable,i,!0),L("dragOver"),$e.eventCanceled)return m;if(ee.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||h._ignoreWhileAnimating===l)return z(!1);if(Re=!1,u&&!s.disabled&&(p?f||(r=te!==re):de===this||(this.lastPutMode=fe.checkPull(this,u,ee,e))&&c.checkPut(this,u,ee,e))){if(a="vertical"===this._getDirection(e,l),t=T(ee),L("dragOverValid"),$e.eventCanceled)return m;if(r)return te=re,I(),this._hideClone(),L("revert"),$e.eventCanceled||(oe?re.insertBefore(ee,oe):re.appendChild(ee)),z(!0);var b=D(i,s.draggable);if(!b||function(e,t,n){var r=T(D(n.el,n.options.draggable)),o=$(n.el,n.options,ne),a=10;return t?e.clientX>o.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+a||e.clientX>r.right&&e.clientY>r.top}(e,a,this)&&!b.animated){if(b===ee)return z(!1);if(b&&i===e.target&&(l=b),l&&(n=T(l)),!1!==Ge(re,i,ee,t,l,n,e,!!l))return I(),b&&b.nextSibling?i.insertBefore(ee,b.nextSibling):i.appendChild(ee),te=i,H(),z(!0)}else if(b&&function(e,t,n){var r=T(N(n.el,0,n.options,!0)),o=$(n.el,n.options,ne),a=10;return t?e.clientX<o.left-a||e.clientY<r.top&&e.clientX<r.right:e.clientY<o.top-a||e.clientY<r.bottom&&e.clientX<r.left}(e,a,this)){var g=N(i,0,s,!0);if(g===ee)return z(!1);if(n=T(l=g),!1!==Ge(re,i,ee,t,l,n,e,!1))return I(),i.insertBefore(ee,g),te=i,H(),z(!0)}else if(l.parentNode===i){n=T(l);var v,y,w,x=ee.parentNode!==i,E=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===i||o===l||r+a/2===i+s/2}(ee.animated&&ee.toRect||t,l.animated&&l.toRect||n,a),_=a?"top":"left",S=P(l,"top","top")||P(ee,"top","top"),C=S?S.scrollTop:void 0;if(xe!==l&&(y=n[_],Ce=!1,je=!E&&s.invertSwap||x),v=function(e,t,n,r,o,a,i,l){var s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,p=r?n.bottom:n.right,f=!1;if(!i)if(l&&ke<c*o){if(!Ce&&(1===Ee?s>u+c*a/2:s<p-c*a/2)&&(Ce=!0),Ce)f=!0;else if(1===Ee?s<u+ke:s>p-ke)return-Ee}else if(s>u+c*(1-o)/2&&s<p-c*(1-o)/2)return function(e){return M(ee)<M(e)?1:-1}(t);if((f=f||i)&&(s<u+c*a/2||s>p-c*a/2))return s>u+c/2?1:-1;return 0}(e,l,n,a,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,je,xe===l),0!==v){var j=M(ee);do{j-=v,w=te.children[j]}while(w&&("none"===O(w,"display")||w===ne))}if(0===v||w===l)return z(!1);xe=l,Ee=v;var A=l.nextElementSibling,F=!1,B=Ge(re,i,ee,t,l,n,e,F=1===v);if(!1!==B)return 1!==B&&-1!==B||(F=1===B),Te=!0,setTimeout(Ve,30),I(),F&&!A?i.appendChild(ee):l.parentNode.insertBefore(ee,F?A:l),S&&U(S,0,C-S.scrollTop),te=ee.parentNode,void 0===y||je||(ke=Math.abs(y-T(l)[_])),H(),z(!0)}if(i.contains(ee))return z(!1)}return!1}function L(s,c){Z(s,h,o({evt:e,isOwner:p,axis:a?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:d,target:l,completed:z,onMove:function(n,r){return Ge(re,i,ee,t,n,T(n),e,r)},changed:H},c))}function I(){L("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function z(t){return L("dragOverCompleted",{insertion:t}),t&&(p?u._hideClone():u._showClone(h),h!==d&&(R(ee,de?de.options.ghostClass:u.options.ghostClass,!1),R(ee,s.ghostClass,!0)),de!==h&&h!==$e.active?de=h:h===$e.active&&de&&(de=null),d===h&&(h._ignoreWhileAnimating=l),h.animateAll((function(){L("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(l===ee&&!ee.animated||l===i&&!l.animated)&&(xe=null),s.dragoverBubble||e.rootEl||l===document||(ee.parentNode[G]._isOutsideThisEl(e.target),!t&&He(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function H(){ce=M(ee),pe=M(ee,s.draggable),Q({sortable:h,name:"change",toEl:i,newIndex:ce,newDraggableIndex:pe,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",He),w(document,"mousemove",He),w(document,"touchmove",He)},_offUpEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._onDrop),w(e,"touchend",this._onDrop),w(e,"pointerup",this._onDrop),w(e,"pointercancel",this._onDrop),w(e,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ce=M(ee),pe=M(ee,n.draggable),Z("drop",this,{evt:e}),te=ee&&ee.parentNode,ce=M(ee),pe=M(ee,n.draggable),$e.eventCanceled||(Se=!1,je=!1,Ce=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ke(this.cloneId),Ke(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&O(document.body,"user-select",""),O(ee,"transform",""),e&&(we&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ne&&ne.parentNode&&ne.parentNode.removeChild(ne),(re===te||de&&"clone"!==de.lastPutMode)&&ie&&ie.parentNode&&ie.parentNode.removeChild(ie),ee&&(this.nativeDraggable&&w(ee,"dragend",this),Xe(ee),ee.style["will-change"]="",we&&!Se&&R(ee,de?de.options.ghostClass:this.options.ghostClass,!1),R(ee,this.options.chosenClass,!1),Q({sortable:this,name:"unchoose",toEl:te,newIndex:null,newDraggableIndex:null,originalEvent:e}),re!==te?(ce>=0&&(Q({rootEl:te,name:"add",toEl:te,fromEl:re,originalEvent:e}),Q({sortable:this,name:"remove",toEl:te,originalEvent:e}),Q({rootEl:te,name:"sort",toEl:te,fromEl:re,originalEvent:e}),Q({sortable:this,name:"sort",toEl:te,originalEvent:e})),de&&de.save()):ce!==se&&ce>=0&&(Q({sortable:this,name:"update",toEl:te,originalEvent:e}),Q({sortable:this,name:"sort",toEl:te,originalEvent:e})),$e.active&&(null!=ce&&-1!==ce||(ce=se,pe=ue),Q({sortable:this,name:"end",toEl:te,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Z("nulling",this),re=ee=te=ne=oe=ie=ae=le=he=me=we=ce=pe=se=ue=xe=Ee=de=fe=$e.dragged=$e.ghost=$e.clone=$e.active=null,Pe.forEach((function(e){e.checked=!0})),Pe.length=be=ge=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ee&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,a=this.options;r<o;r++)k(e=n[r],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||qe(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];k(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return k(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=Y.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Ie(n)},destroy:function(){Z("destroy",this);var e=this.el;e[G]=null,w(e,"mousedown",this._onTapStart),w(e,"touchstart",this._onTapStart),w(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(w(e,"dragover",this),w(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Oe.splice(Oe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!le){if(Z("hideClone",this),$e.eventCanceled)return;O(ie,"display","none"),this.options.removeCloneOnHide&&ie.parentNode&&ie.parentNode.removeChild(ie),le=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(le){if(Z("showClone",this),$e.eventCanceled)return;ee.parentNode!=re||this.options.group.revertClone?oe?re.insertBefore(ie,oe):re.appendChild(ie):re.insertBefore(ie,ee),this.options.group.revertClone&&this.animate(ee,ie),O(ie,"display",""),le=!1}}else this._hideClone()}},Ne&&y(document,"touchmove",(function(e){($e.active||Se)&&e.cancelable&&e.preventDefault()})),$e.utils={on:y,off:w,css:O,find:j,is:function(e,t){return!!k(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:I,closest:k,toggleClass:R,clone:z,index:M,nextTick:Ye,cancelNextTick:Ke,detectDirection:Le,getChild:N,expando:G},$e.get=function(e){return e[G]},$e.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&($e.utils=o(o({},$e.utils),e.utils)),Y.mount(e)}))},$e.create=function(e,t){return new $e(e,t)},$e.version="1.15.6";var Je,Ze,Qe,et,tt,nt,rt=[],ot=!1;function at(){rt.forEach((function(e){clearInterval(e.pid)})),rt=[]}function it(){clearInterval(nt)}var lt,st=I((function(e,t,n,r){if(t.scroll){var o,a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=A(),u=!1;Ze!==n&&(Ze=n,at(),Je=t.scroll,o=t.scrollFn,!0===Je&&(Je=B(n,!0)));var p=0,f=Je;do{var d=f,h=T(d),m=h.top,b=h.bottom,g=h.left,v=h.right,y=h.width,w=h.height,x=void 0,E=void 0,k=d.scrollWidth,_=d.scrollHeight,S=O(d),R=d.scrollLeft,C=d.scrollTop;d===c?(x=y<k&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),E=w<_&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(x=y<k&&("auto"===S.overflowX||"scroll"===S.overflowX),E=w<_&&("auto"===S.overflowY||"scroll"===S.overflowY));var j=x&&(Math.abs(v-a)<=l&&R+y<k)-(Math.abs(g-a)<=l&&!!R),P=E&&(Math.abs(b-i)<=l&&C+w<_)-(Math.abs(m-i)<=l&&!!C);if(!rt[p])for(var N=0;N<=p;N++)rt[N]||(rt[N]={});rt[p].vx==j&&rt[p].vy==P&&rt[p].el===d||(rt[p].el=d,rt[p].vx=j,rt[p].vy=P,clearInterval(rt[p].pid),0==j&&0==P||(u=!0,rt[p].pid=setInterval(function(){r&&0===this.layer&&$e.active._onTouchMove(tt);var t=rt[this.layer].vy?rt[this.layer].vy*s:0,n=rt[this.layer].vx?rt[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call($e.dragged.parentNode[G],n,t,e,tt,rt[this.layer].el)||U(rt[this.layer].el,n,t)}.bind({layer:p}),24))),p++}while(t.bubbleScroll&&f!==c&&(f=B(f,!1)));ot=u}}),30),ct=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||o;i();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ut(){}function pt(){}function ft(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;lt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,a=e.changed,i=e.cancel;if(o.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=lt;!1!==r(n)?(R(n,s.swapClass,!0),lt=n):lt=null,c&&c!==lt&&R(c,s.swapClass,!1)}a(),t(!0),i()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,o=n||this.sortable,a=this.options;lt&&R(lt,a.swapClass,!1),lt&&(a.swap||n&&n.options.swap)&&r!==lt&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),function(e,t){var n,r,o=e.parentNode,a=t.parentNode;if(!o||!a||o.isEqualNode(t)||a.isEqualNode(e))return;n=M(e),r=M(t),o.isEqualNode(a)&&n<r&&r++;o.insertBefore(t,o.children[n]),a.insertBefore(e,a.children[r])}(r,lt),o.animateAll(),o!==t&&t.animateAll())},nulling:function(){lt=null}},l(e,{pluginName:"swap",eventProperties:function(){return{swapItem:lt}}})}ut.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=N(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ct},l(ut,{pluginName:"revertOnSpill"}),pt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ct},l(pt,{pluginName:"removeOnSpill"});var dt,ht,mt,bt,gt,vt=[],yt=[],wt=!1,xt=!1,Et=!1;function kt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?y(document,"pointerup",this._deselectMultiDrag):(y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag))),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var r="";vt.length&&ht===e?vt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;mt=t},delayEnded:function(){this.isMultiDrag=~vt.indexOf(mt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<vt.length;r++)yt.push(z(vt[r])),yt[r].sortableIndex=vt[r].sortableIndex,yt[r].draggable=!1,yt[r].style["will-change"]="",R(yt[r],this.options.selectedClass,!1),vt[r]===mt&&R(yt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||vt.length&&ht===t&&(_t(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(_t(!1,n),yt.forEach((function(e){O(e,"display","")})),t(),gt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(yt.forEach((function(e){O(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),gt=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&ht&&ht.multiDrag._deselectMultiDrag(),vt.forEach((function(e){e.sortableIndex=M(e)})),vt=vt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Et=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){vt.forEach((function(e){e!==mt&&O(e,"position","absolute")}));var r=T(mt,!1,!0,!0);vt.forEach((function(e){e!==mt&&H(e,r)})),xt=!0,wt=!0}n.animateAll((function(){xt=!1,wt=!1,t.options.animation&&vt.forEach((function(e){W(e)})),t.options.sort&&St()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;xt&&~vt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;vt.length>1&&(vt.forEach((function(e){r.addAnimationState({target:e,rect:xt?T(e):o}),W(e),e.fromRect=o,t.removeAnimationState(e)})),xt=!1,function(e,t){vt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,a=e.parentEl,i=e.putSortable,l=this.options;if(r){if(n&&o._hideClone(),wt=!1,l.animation&&vt.length>1&&(xt||!n&&!o.options.sort&&!i)){var s=T(mt,!1,!0,!0);vt.forEach((function(e){e!==mt&&(H(e,s),a.appendChild(e))})),xt=!0}if(!n)if(xt||St(),vt.length>1){var c=gt;o._showClone(t),o.options.animation&&!gt&&c&&yt.forEach((function(e){o.addAnimationState({target:e,rect:bt}),e.fromRect=bt,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(vt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){bt=l({},t);var o=C(mt,!0);bt.top-=o.f,bt.left-=o.e}},dragOverAnimationComplete:function(){xt&&(xt=!1,St())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,a=e.dispatchSortableEvent,i=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var c=this.options,u=r.children;if(!Et)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),R(mt,c.selectedClass,!~vt.indexOf(mt)),~vt.indexOf(mt))vt.splice(vt.indexOf(mt),1),dt=null,K({sortable:o,rootEl:n,name:"deselect",targetEl:mt,originalEvent:t});else{if(vt.push(mt),K({sortable:o,rootEl:n,name:"select",targetEl:mt,originalEvent:t}),t.shiftKey&&dt&&o.el.contains(dt)){var p=M(dt),f=M(mt);~p&&~f&&p!==f&&function(){var e,a;f>p?(a=p,e=f):(a=f,e=p+1);for(var i=c.filter;a<e;a++){if(!~vt.indexOf(u[a]))if(k(u[a],c.draggable,r,!1))i&&("function"==typeof i?i.call(o,t,u[a],o):i.split(",").some((function(e){return k(u[a],e.trim(),r,!1)})))||(R(u[a],c.selectedClass,!0),vt.push(u[a]),K({sortable:o,rootEl:n,name:"select",targetEl:u[a],originalEvent:t}))}}()}else dt=mt;ht=s}if(Et&&this.isMultiDrag){if(xt=!1,(r[G].options.sort||r!==n)&&vt.length>1){var d=T(mt),h=M(mt,":not(."+this.options.selectedClass+")");if(!wt&&c.animation&&(mt.thisAnimationDuration=null),s.captureAnimationState(),!wt&&(c.animation&&(mt.fromRect=d,vt.forEach((function(e){if(e.thisAnimationDuration=null,e!==mt){var t=xt?T(e):d;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),St(),vt.forEach((function(e){u[h]?r.insertBefore(e,u[h]):r.appendChild(e),h++})),i===M(mt))){var m=!1;vt.forEach((function(e){e.sortableIndex===M(e)||(m=!0)})),m&&(a("update"),a("sort"))}vt.forEach((function(e){W(e)})),s.animateAll()}ht=s}(n===r||l&&"clone"!==l.lastPutMode)&&yt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Et=!1,yt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),w(document,"pointerup",this._deselectMultiDrag),w(document,"mouseup",this._deselectMultiDrag),w(document,"touchend",this._deselectMultiDrag),w(document,"keydown",this._checkKeyDown),w(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==Et&&Et||ht!==this.sortable||e&&k(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;vt.length;){var t=vt[0];R(t,this.options.selectedClass,!1),vt.shift(),K({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},l(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[G];t&&t.options.multiDrag&&!~vt.indexOf(e)&&(ht&&ht!==t&&(ht.multiDrag._deselectMultiDrag(),ht=t),R(e,t.options.selectedClass,!0),vt.push(e))},deselect:function(e){var t=e.parentNode[G],n=vt.indexOf(e);t&&t.options.multiDrag&&~n&&(R(e,t.options.selectedClass,!1),vt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return vt.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=xt&&r!==mt?-1:xt?M(r,":not(."+e.options.selectedClass+")"):M(r),n.push({multiDragElement:r,index:o})})),{items:c(vt),clones:[].concat(yt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function _t(e,t){yt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function St(){vt.forEach((function(e){e!==mt&&e.parentNode&&e.parentNode.removeChild(e)}))}$e.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):t.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):(w(document,"pointermove",this._handleFallbackAutoScroll),w(document,"touchmove",this._handleFallbackAutoScroll),w(document,"mousemove",this._handleFallbackAutoScroll)),it(),at(),clearTimeout(_),_=void 0},nulling:function(){tt=Ze=Je=ot=nt=Qe=et=null,rt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,o);if(tt=e,t||this.options.forceAutoScrollFallback||d||f||m){st(e,this.options,a,t);var i=B(a,!0);!ot||nt&&r===Qe&&o===et||(nt&&it(),nt=setInterval((function(){var a=B(document.elementFromPoint(r,o),!0);a!==i&&(i=a,at()),st(e,n.options,a,t)}),10),Qe=r,et=o)}else{if(!this.options.bubbleScroll||B(a,!0)===A())return void at();st(e,this.options,B(a,!1),!1)}}},l(e,{pluginName:"scroll",initializeByDefault:!0})}),$e.mount(pt,ut);const Rt=$e},270:(e,t,n)=>{var r=n(7068),o=n(346);e.exports=function e(t,n,a,i,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,l))}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},361: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}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},583:(e,t,n)=>{var r=n(7237),o=n(7255),a=n(8586),i=n(7797);e.exports=function(e){return a(e)?r(i(e)):o(e)}},631:(e,t,n)=>{var r=n(8077),o=n(9326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},641:(e,t,n)=>{var r=n(6649),o=n(5950);e.exports=function(e,t){return e&&r(e,t,o)}},659:(e,t,n)=>{var r=n(1873),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[l]=n:delete e[l]),o}},677:e=>{e.exports=function(){return this.React}()},689:(e,t,n)=>{var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,l){var s=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!s)return!1;for(var p=u;p--;){var f=c[p];if(!(s?f in t:o.call(t,f)))return!1}var d=l.get(e),h=l.get(t);if(d&&h)return d==t&&h==e;var m=!0;l.set(e,t),l.set(t,e);for(var b=s;++p<u;){var g=e[f=c[p]],v=t[f];if(a)var y=s?a(v,g,f,t,e,l):a(g,v,f,e,t,l);if(!(void 0===y?g===v||i(g,v,n,a,l):y)){m=!1;break}b||(b="constructor"==f)}if(m&&!b){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return l.delete(e),l.delete(t),m}},695:(e,t,n)=>{var r=n(8096),o=n(2428),a=n(6449),i=n(3656),l=n(361),s=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&o(e),p=!n&&!u&&i(e),f=!n&&!u&&!p&&s(e),d=n||u||p||f,h=d?r(e.length,String):[],m=h.length;for(var b in e)!t&&!c.call(e,b)||d&&("length"==b||p&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||l(b,m))||h.push(b);return h}},748:(e,t,n)=>{"use strict";var r,o=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},a=n(677),i=(r=a)&&r.__esModule?r:{default:r};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,l=e.height,s=void 0===l?24:l,c=e.style,u=void 0===c?{}:c,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:s},u)},p),i.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},756:(e,t,n)=>{var r=n(3805);e.exports=function(e){return e==e&&!r(e)}},776:(e,t,n)=>{var r=n(756),o=n(5950);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}},909:(e,t,n)=>{var r=n(641),o=n(8329)(r);e.exports=o},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},945:(e,t,n)=>{var r=n(79),o=n(8223),a=n(3661);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}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},1175:(e,t,n)=>{var r=n(6025);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}},1331:(e,t,n)=>{var r=n(2552),o=n(8879),a=n(346),i=Function.prototype,l=Object.prototype,s=i.toString,c=l.hasOwnProperty,u=s.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=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1420:(e,t,n)=>{var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},1549:(e,t,n)=>{var r=n(2032),o=n(3862),a=n(6721),i=n(2749),l=n(5749);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},1720:(e,t)=>{var n;8 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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(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 a(e){return a="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},a(e)}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 l(){return l=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},l.apply(this,arguments)}function s(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 c(e){return function(e){if(Array.isArray(e))return u(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 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)||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 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}n.r(t),n.d(t,{MultiDrag:()=>kt,Sortable:()=>$e,Swap:()=>ft,default:()=>Rt});function p(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var f=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=p(/Edge/i),h=p(/firefox/i),m=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),b=p(/iP(ad|od|hone)/i),g=p(/chrome/i)&&p(/android/i),v={capture:!1,passive:!1};function y(e,t,n){e.addEventListener(t,n,!f&&v)}function w(e,t,n){e.removeEventListener(t,n,!f&&v)}function x(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function E(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function k(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&x(e,t):x(e,t))||r&&e===n)return e;if(e===n)break}while(e=E(e))}return null}var _,S=/\s+/g;function R(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(S," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(S," ")}}function O(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function C(e,t){var n="";if("string"==typeof e)n=e;else do{var r=O(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function j(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,a=r.length;if(n)for(;o<a;o++)n(r[o],o);return r}return[]}function A(){var e=document.scrollingElement;return e||document.documentElement}function T(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var a,i,l,s,c,u,p;if(e!==window&&e.parentNode&&e!==A()?(i=(a=e.getBoundingClientRect()).top,l=a.left,s=a.bottom,c=a.right,u=a.height,p=a.width):(i=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,p=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!f))do{if(o&&o.getBoundingClientRect&&("none"!==O(o,"transform")||n&&"static"!==O(o,"position"))){var d=o.getBoundingClientRect();i-=d.top+parseInt(O(o,"border-top-width")),l-=d.left+parseInt(O(o,"border-left-width")),s=i+a.height,c=l+a.width;break}}while(o=o.parentNode);if(r&&e!==window){var h=C(o||e),m=h&&h.a,b=h&&h.d;h&&(s=(i/=b)+(u/=b),c=(l/=m)+(p/=m))}return{top:i,left:l,bottom:s,right:c,width:p,height:u}}}function P(e,t,n){for(var r=B(e,!0),o=T(e)[t];r;){var a=T(r)[n];if(!("top"===n||"left"===n?o>=a:o<=a))return r;if(r===A())break;r=B(r,!1)}return!1}function N(e,t,n,r){for(var o=0,a=0,i=e.children;a<i.length;){if("none"!==i[a].style.display&&i[a]!==$e.ghost&&(r||i[a]!==$e.dragged)&&k(i[a],n.draggable,e,!1)){if(o===t)return i[a];o++}a++}return null}function D(e,t){for(var n=e.lastElementChild;n&&(n===$e.ghost||"none"===O(n,"display")||t&&!x(n,t));)n=n.previousElementSibling;return n||null}function M(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===$e.clone||t&&!x(e,t)||n++;return n}function F(e){var t=0,n=0,r=A();if(e)do{var o=C(e),a=o.a,i=o.d;t+=e.scrollLeft*a,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function B(e,t){if(!e||!e.getBoundingClientRect)return A();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=O(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return A();if(r||t)return n;r=!0}}}while(n=n.parentNode);return A()}function L(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function I(e,t){return function(){if(!_){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),_=setTimeout((function(){_=void 0}),t)}}}function U(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function z(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function H(e,t){O(e,"position","absolute"),O(e,"top",t.top),O(e,"left",t.left),O(e,"width",t.width),O(e,"height",t.height)}function W(e){O(e,"position",""),O(e,"top",""),O(e,"left",""),O(e,"width",""),O(e,"height","")}function $(e,t,n){var r={};return Array.from(e.children).forEach((function(o){var a,i,l,s;if(k(o,t.draggable,e,!1)&&!o.animated&&o!==n){var c=T(o);r.left=Math.min(null!==(a=r.left)&&void 0!==a?a:1/0,c.left),r.top=Math.min(null!==(i=r.top)&&void 0!==i?i:1/0,c.top),r.right=Math.max(null!==(l=r.right)&&void 0!==l?l:-1/0,c.right),r.bottom=Math.max(null!==(s=r.bottom)&&void 0!==s?s:-1/0,c.bottom)}})),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var X="Sortable"+(new Date).getTime();function G(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==O(e,"display")&&e!==$e.ghost){t.push({target:e,rect:T(e)});var n=o({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=C(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var o=!1,a=0;t.forEach((function(e){var t=0,n=e.target,i=n.fromRect,l=T(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,p=C(n,!0);p&&(l.top-=p.f,l.left-=p.e),n.toRect=l,n.thisAnimationDuration&&L(s,l)&&!L(i,l)&&(u.top-l.top)/(u.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,s,c,r.options)),L(l,i)||(n.prevFromRect=i,n.prevToRect=l,t||(t=r.options.animation),r.animate(n,u,l,t)),t&&(o=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"==typeof n&&n()}),a):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){O(e,"transition",""),O(e,"transform","");var o=C(this.el),a=o&&o.a,i=o&&o.d,l=(t.left-n.left)/(a||1),s=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!s,O(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),O(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),O(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){O(e,"transition",""),O(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var V=[],q={initializeByDefault:!0},Y={mount:function(e){for(var t in q)q.hasOwnProperty(t)&&!(t in e)&&(e[t]=q[t]);V.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),V.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=e+"Global";V.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][a]&&t[r.pluginName][a](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in V.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[o]=a,l(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var a=this.modifyOption(e,o,e.options[o]);void 0!==a&&(e.options[o]=a)}},getEventProperties:function(e,t){var n={};return V.forEach((function(r){"function"==typeof r.eventProperties&&l(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return V.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function K(e){var t=e.sortable,n=e.rootEl,r=e.name,a=e.targetEl,i=e.cloneEl,l=e.toEl,s=e.fromEl,c=e.oldIndex,u=e.newIndex,p=e.oldDraggableIndex,h=e.newDraggableIndex,m=e.originalEvent,b=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[X]){var v,y=t.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||f||d?(v=document.createEvent("Event")).initEvent(r,!0,!0):v=new CustomEvent(r,{bubbles:!0,cancelable:!0}),v.to=l||n,v.from=s||n,v.item=a||n,v.clone=i,v.oldIndex=c,v.newIndex=u,v.oldDraggableIndex=p,v.newDraggableIndex=h,v.originalEvent=m,v.pullMode=b?b.lastPutMode:void 0;var x=o(o({},g),Y.getEventProperties(r,t));for(var E in x)v[E]=x[E];n&&n.dispatchEvent(v),y[w]&&y[w].call(t,v)}}var J=["evt"],Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=s(n,J);Y.pluginEvent.bind($e)(e,t,o({dragEl:ee,parentEl:te,ghostEl:ne,rootEl:re,nextEl:oe,lastDownEl:ae,cloneEl:ie,cloneHidden:le,dragStarted:we,putSortable:de,activeSortable:$e.active,originalEvent:r,oldIndex:se,oldDraggableIndex:ue,newIndex:ce,newDraggableIndex:pe,hideGhostForTarget:Ue,unhideGhostForTarget:ze,cloneNowHidden:function(){le=!0},cloneNowShown:function(){le=!1},dispatchSortableEvent:function(e){Q({sortable:t,name:e,originalEvent:r})}},a))};function Q(e){K(o({putSortable:de,cloneEl:ie,targetEl:ee,rootEl:re,oldIndex:se,oldDraggableIndex:ue,newIndex:ce,newDraggableIndex:pe},e))}var ee,te,ne,re,oe,ae,ie,le,se,ce,ue,pe,fe,de,he,me,be,ge,ve,ye,we,xe,Ee,ke,_e,Se=!1,Re=!1,Oe=[],Ce=!1,je=!1,Ae=[],Te=!1,Pe=[],Ne="undefined"!=typeof document,De=b,Me=d||f?"cssFloat":"float",Fe=Ne&&!g&&!b&&"draggable"in document.createElement("div"),Be=function(){if(Ne){if(f)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Le=function(e,t){var n=O(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=N(e,0,t),a=N(e,1,t),i=o&&O(o),l=a&&O(a),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+T(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+T(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=r&&"none"===n[Me]||a&&"none"===n[Me]&&s+c>r)?"vertical":"horizontal"},Ie=function(e){function t(e,n){return function(r,o,a,i){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,a,i),n)(r,o,a,i);var s=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==a(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ue=function(){!Be&&ne&&O(ne,"display","none")},ze=function(){!Be&&ne&&O(ne,"display","")};Ne&&!g&&document.addEventListener("click",(function(e){if(Re)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Re=!1,!1}),!0);var He=function(e){if(ee){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,a=e.clientY,Oe.some((function(e){var t=e[X].options.emptyInsertThreshold;if(t&&!D(e)){var n=T(e),r=o>=n.left-t&&o<=n.right+t,l=a>=n.top-t&&a<=n.bottom+t;return r&&l?i=e:void 0}})),i);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[X]._onDragOver(n)}}var o,a,i},We=function(e){ee&&ee.parentNode[X]._isOutsideThisEl(e.target)};function $e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=l({},t),e[X]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==$e.supportPointer&&"PointerEvent"in window&&(!m||b),emptyInsertThreshold:5};for(var r in Y.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Ie(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Fe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?y(e,"pointerdown",this._onTapStart):(y(e,"mousedown",this._onTapStart),y(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(e,"dragover",this),y(e,"dragenter",this)),Oe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),l(this,G())}function Xe(e,t,n,r,o,a,i,l){var s,c,u=e[X],p=u.options.onMove;return!window.CustomEvent||f||d?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=o||t,s.relatedRect=a||T(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),p&&(c=p.call(u,s,i)),c}function Ge(e){e.draggable=!1}function Ve(){Te=!1}function qe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Ye(e){return setTimeout(e,0)}function Ke(e){return clearTimeout(e)}$e.prototype={constructor:$e,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(xe=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ee):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=r.filter;if(function(e){Pe.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Pe.push(r)}}(n),!ee&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!m||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=k(l,r.draggable,n,!1))&&l.animated||ae===l)){if(se=M(l),ue=M(l,r.draggable),"function"==typeof c){if(c.call(this,e,l,this))return Q({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Z("filter",t,{evt:e}),void(o&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=k(s,r.trim(),n,!1))return Q({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),Z("filter",t,{evt:e}),!0}))))return void(o&&e.preventDefault());r.handle&&!k(s,r.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,a=o.el,i=o.options,l=a.ownerDocument;if(n&&!ee&&n.parentNode===a){var s=T(n);if(re=a,te=(ee=n).parentNode,oe=ee.nextSibling,ae=n,fe=i.group,$e.dragged=ee,he={target:ee,clientX:(t||e).clientX,clientY:(t||e).clientY},ve=he.clientX-s.left,ye=he.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ee.style["will-change"]="all",r=function(){Z("delayEnded",o,{evt:e}),$e.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!h&&o.nativeDraggable&&(ee.draggable=!0),o._triggerDragStart(e,t),Q({sortable:o,name:"choose",originalEvent:e}),R(ee,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){j(ee,e.trim(),Ge)})),y(l,"dragover",He),y(l,"mousemove",He),y(l,"touchmove",He),i.supportPointer?(y(l,"pointerup",o._onDrop),!this.nativeDraggable&&y(l,"pointercancel",o._onDrop)):(y(l,"mouseup",o._onDrop),y(l,"touchend",o._onDrop),y(l,"touchcancel",o._onDrop)),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ee.draggable=!0),Z("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||f))r();else{if($e.eventCanceled)return void this._onDrop();i.supportPointer?(y(l,"pointerup",o._disableDelayedDrag),y(l,"pointercancel",o._disableDelayedDrag)):(y(l,"mouseup",o._disableDelayedDrag),y(l,"touchend",o._disableDelayedDrag),y(l,"touchcancel",o._disableDelayedDrag)),y(l,"mousemove",o._delayedDragTouchMoveHandler),y(l,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&y(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ee&&Ge(ee),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._disableDelayedDrag),w(e,"touchend",this._disableDelayedDrag),w(e,"touchcancel",this._disableDelayedDrag),w(e,"pointerup",this._disableDelayedDrag),w(e,"pointercancel",this._disableDelayedDrag),w(e,"mousemove",this._delayedDragTouchMoveHandler),w(e,"touchmove",this._delayedDragTouchMoveHandler),w(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):y(document,t?"touchmove":"mousemove",this._onTouchMove):(y(ee,"dragend",this),y(re,"dragstart",this._onDragStart));try{document.selection?Ye((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Se=!1,re&&ee){Z("dragStarted",this,{evt:t}),this.nativeDraggable&&y(document,"dragover",We);var n=this.options;!e&&R(ee,n.dragClass,!1),R(ee,n.ghostClass,!0),$e.active=this,e&&this._appendGhost(),Q({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(me){this._lastX=me.clientX,this._lastY=me.clientY,Ue();for(var e=document.elementFromPoint(me.clientX,me.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(me.clientX,me.clientY))!==t;)t=e;if(ee.parentNode[X]._isOutsideThisEl(e),t)do{if(t[X]){if(t[X]._onDragOver({clientX:me.clientX,clientY:me.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=E(t));ze()}},_onTouchMove:function(e){if(he){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=ne&&C(ne,!0),i=ne&&a&&a.a,l=ne&&a&&a.d,s=De&&_e&&F(_e),c=(o.clientX-he.clientX+r.x)/(i||1)+(s?s[0]-Ae[0]:0)/(i||1),u=(o.clientY-he.clientY+r.y)/(l||1)+(s?s[1]-Ae[1]:0)/(l||1);if(!$e.active&&!Se){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(ne){a?(a.e+=c-(be||0),a.f+=u-(ge||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");O(ne,"webkitTransform",p),O(ne,"mozTransform",p),O(ne,"msTransform",p),O(ne,"transform",p),be=c,ge=u,me=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ne){var e=this.options.fallbackOnBody?document.body:re,t=T(ee,!0,De,!0,e),n=this.options;if(De){for(_e=e;"static"===O(_e,"position")&&"none"===O(_e,"transform")&&_e!==document;)_e=_e.parentNode;_e!==document.body&&_e!==document.documentElement?(_e===document&&(_e=A()),t.top+=_e.scrollTop,t.left+=_e.scrollLeft):_e=A(),Ae=F(_e)}R(ne=ee.cloneNode(!0),n.ghostClass,!1),R(ne,n.fallbackClass,!0),R(ne,n.dragClass,!0),O(ne,"transition",""),O(ne,"transform",""),O(ne,"box-sizing","border-box"),O(ne,"margin",0),O(ne,"top",t.top),O(ne,"left",t.left),O(ne,"width",t.width),O(ne,"height",t.height),O(ne,"opacity","0.8"),O(ne,"position",De?"absolute":"fixed"),O(ne,"zIndex","100000"),O(ne,"pointerEvents","none"),$e.ghost=ne,e.appendChild(ne),O(ne,"transform-origin",ve/parseInt(ne.style.width)*100+"% "+ye/parseInt(ne.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;Z("dragStart",this,{evt:e}),$e.eventCanceled?this._onDrop():(Z("setupClone",this),$e.eventCanceled||((ie=z(ee)).removeAttribute("id"),ie.draggable=!1,ie.style["will-change"]="",this._hideClone(),R(ie,this.options.chosenClass,!1),$e.clone=ie),n.cloneId=Ye((function(){Z("clone",n),$e.eventCanceled||(n.options.removeCloneOnHide||re.insertBefore(ie,ee),n._hideClone(),Q({sortable:n,name:"clone"}))})),!t&&R(ee,o.dragClass,!0),t?(Re=!0,n._loopId=setInterval(n._emulateDragOver,50)):(w(document,"mouseup",n._onDrop),w(document,"touchend",n._onDrop),w(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,ee)),y(document,"drop",n),O(ee,"transform","translateZ(0)")),Se=!0,n._dragStartId=Ye(n._dragStarted.bind(n,t,e)),y(document,"selectstart",n),we=!0,window.getSelection().removeAllRanges(),m&&O(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,a,i=this.el,l=e.target,s=this.options,c=s.group,u=$e.active,p=fe===c,f=s.sort,d=de||u,h=this,m=!1;if(!Te){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=k(l,s.draggable,i,!0),L("dragOver"),$e.eventCanceled)return m;if(ee.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||h._ignoreWhileAnimating===l)return z(!1);if(Re=!1,u&&!s.disabled&&(p?f||(r=te!==re):de===this||(this.lastPutMode=fe.checkPull(this,u,ee,e))&&c.checkPut(this,u,ee,e))){if(a="vertical"===this._getDirection(e,l),t=T(ee),L("dragOverValid"),$e.eventCanceled)return m;if(r)return te=re,I(),this._hideClone(),L("revert"),$e.eventCanceled||(oe?re.insertBefore(ee,oe):re.appendChild(ee)),z(!0);var b=D(i,s.draggable);if(!b||function(e,t,n){var r=T(D(n.el,n.options.draggable)),o=$(n.el,n.options,ne),a=10;return t?e.clientX>o.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+a||e.clientX>r.right&&e.clientY>r.top}(e,a,this)&&!b.animated){if(b===ee)return z(!1);if(b&&i===e.target&&(l=b),l&&(n=T(l)),!1!==Xe(re,i,ee,t,l,n,e,!!l))return I(),b&&b.nextSibling?i.insertBefore(ee,b.nextSibling):i.appendChild(ee),te=i,H(),z(!0)}else if(b&&function(e,t,n){var r=T(N(n.el,0,n.options,!0)),o=$(n.el,n.options,ne),a=10;return t?e.clientX<o.left-a||e.clientY<r.top&&e.clientX<r.right:e.clientY<o.top-a||e.clientY<r.bottom&&e.clientX<r.left}(e,a,this)){var g=N(i,0,s,!0);if(g===ee)return z(!1);if(n=T(l=g),!1!==Xe(re,i,ee,t,l,n,e,!1))return I(),i.insertBefore(ee,g),te=i,H(),z(!0)}else if(l.parentNode===i){n=T(l);var v,y,w,x=ee.parentNode!==i,E=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===i||o===l||r+a/2===i+s/2}(ee.animated&&ee.toRect||t,l.animated&&l.toRect||n,a),_=a?"top":"left",S=P(l,"top","top")||P(ee,"top","top"),C=S?S.scrollTop:void 0;if(xe!==l&&(y=n[_],Ce=!1,je=!E&&s.invertSwap||x),v=function(e,t,n,r,o,a,i,l){var s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,p=r?n.bottom:n.right,f=!1;if(!i)if(l&&ke<c*o){if(!Ce&&(1===Ee?s>u+c*a/2:s<p-c*a/2)&&(Ce=!0),Ce)f=!0;else if(1===Ee?s<u+ke:s>p-ke)return-Ee}else if(s>u+c*(1-o)/2&&s<p-c*(1-o)/2)return function(e){return M(ee)<M(e)?1:-1}(t);if((f=f||i)&&(s<u+c*a/2||s>p-c*a/2))return s>u+c/2?1:-1;return 0}(e,l,n,a,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,je,xe===l),0!==v){var j=M(ee);do{j-=v,w=te.children[j]}while(w&&("none"===O(w,"display")||w===ne))}if(0===v||w===l)return z(!1);xe=l,Ee=v;var A=l.nextElementSibling,F=!1,B=Xe(re,i,ee,t,l,n,e,F=1===v);if(!1!==B)return 1!==B&&-1!==B||(F=1===B),Te=!0,setTimeout(Ve,30),I(),F&&!A?i.appendChild(ee):l.parentNode.insertBefore(ee,F?A:l),S&&U(S,0,C-S.scrollTop),te=ee.parentNode,void 0===y||je||(ke=Math.abs(y-T(l)[_])),H(),z(!0)}if(i.contains(ee))return z(!1)}return!1}function L(s,c){Z(s,h,o({evt:e,isOwner:p,axis:a?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:d,target:l,completed:z,onMove:function(n,r){return Xe(re,i,ee,t,n,T(n),e,r)},changed:H},c))}function I(){L("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function z(t){return L("dragOverCompleted",{insertion:t}),t&&(p?u._hideClone():u._showClone(h),h!==d&&(R(ee,de?de.options.ghostClass:u.options.ghostClass,!1),R(ee,s.ghostClass,!0)),de!==h&&h!==$e.active?de=h:h===$e.active&&de&&(de=null),d===h&&(h._ignoreWhileAnimating=l),h.animateAll((function(){L("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(l===ee&&!ee.animated||l===i&&!l.animated)&&(xe=null),s.dragoverBubble||e.rootEl||l===document||(ee.parentNode[X]._isOutsideThisEl(e.target),!t&&He(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function H(){ce=M(ee),pe=M(ee,s.draggable),Q({sortable:h,name:"change",toEl:i,newIndex:ce,newDraggableIndex:pe,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",He),w(document,"mousemove",He),w(document,"touchmove",He)},_offUpEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._onDrop),w(e,"touchend",this._onDrop),w(e,"pointerup",this._onDrop),w(e,"pointercancel",this._onDrop),w(e,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ce=M(ee),pe=M(ee,n.draggable),Z("drop",this,{evt:e}),te=ee&&ee.parentNode,ce=M(ee),pe=M(ee,n.draggable),$e.eventCanceled||(Se=!1,je=!1,Ce=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ke(this.cloneId),Ke(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&O(document.body,"user-select",""),O(ee,"transform",""),e&&(we&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ne&&ne.parentNode&&ne.parentNode.removeChild(ne),(re===te||de&&"clone"!==de.lastPutMode)&&ie&&ie.parentNode&&ie.parentNode.removeChild(ie),ee&&(this.nativeDraggable&&w(ee,"dragend",this),Ge(ee),ee.style["will-change"]="",we&&!Se&&R(ee,de?de.options.ghostClass:this.options.ghostClass,!1),R(ee,this.options.chosenClass,!1),Q({sortable:this,name:"unchoose",toEl:te,newIndex:null,newDraggableIndex:null,originalEvent:e}),re!==te?(ce>=0&&(Q({rootEl:te,name:"add",toEl:te,fromEl:re,originalEvent:e}),Q({sortable:this,name:"remove",toEl:te,originalEvent:e}),Q({rootEl:te,name:"sort",toEl:te,fromEl:re,originalEvent:e}),Q({sortable:this,name:"sort",toEl:te,originalEvent:e})),de&&de.save()):ce!==se&&ce>=0&&(Q({sortable:this,name:"update",toEl:te,originalEvent:e}),Q({sortable:this,name:"sort",toEl:te,originalEvent:e})),$e.active&&(null!=ce&&-1!==ce||(ce=se,pe=ue),Q({sortable:this,name:"end",toEl:te,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Z("nulling",this),re=ee=te=ne=oe=ie=ae=le=he=me=we=ce=pe=se=ue=xe=Ee=de=fe=$e.dragged=$e.ghost=$e.clone=$e.active=null,Pe.forEach((function(e){e.checked=!0})),Pe.length=be=ge=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ee&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,a=this.options;r<o;r++)k(e=n[r],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||qe(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];k(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return k(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=Y.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Ie(n)},destroy:function(){Z("destroy",this);var e=this.el;e[X]=null,w(e,"mousedown",this._onTapStart),w(e,"touchstart",this._onTapStart),w(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(w(e,"dragover",this),w(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Oe.splice(Oe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!le){if(Z("hideClone",this),$e.eventCanceled)return;O(ie,"display","none"),this.options.removeCloneOnHide&&ie.parentNode&&ie.parentNode.removeChild(ie),le=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(le){if(Z("showClone",this),$e.eventCanceled)return;ee.parentNode!=re||this.options.group.revertClone?oe?re.insertBefore(ie,oe):re.appendChild(ie):re.insertBefore(ie,ee),this.options.group.revertClone&&this.animate(ee,ie),O(ie,"display",""),le=!1}}else this._hideClone()}},Ne&&y(document,"touchmove",(function(e){($e.active||Se)&&e.cancelable&&e.preventDefault()})),$e.utils={on:y,off:w,css:O,find:j,is:function(e,t){return!!k(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:I,closest:k,toggleClass:R,clone:z,index:M,nextTick:Ye,cancelNextTick:Ke,detectDirection:Le,getChild:N,expando:X},$e.get=function(e){return e[X]},$e.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&($e.utils=o(o({},$e.utils),e.utils)),Y.mount(e)}))},$e.create=function(e,t){return new $e(e,t)},$e.version="1.15.6";var Je,Ze,Qe,et,tt,nt,rt=[],ot=!1;function at(){rt.forEach((function(e){clearInterval(e.pid)})),rt=[]}function it(){clearInterval(nt)}var lt,st=I((function(e,t,n,r){if(t.scroll){var o,a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=A(),u=!1;Ze!==n&&(Ze=n,at(),Je=t.scroll,o=t.scrollFn,!0===Je&&(Je=B(n,!0)));var p=0,f=Je;do{var d=f,h=T(d),m=h.top,b=h.bottom,g=h.left,v=h.right,y=h.width,w=h.height,x=void 0,E=void 0,k=d.scrollWidth,_=d.scrollHeight,S=O(d),R=d.scrollLeft,C=d.scrollTop;d===c?(x=y<k&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),E=w<_&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(x=y<k&&("auto"===S.overflowX||"scroll"===S.overflowX),E=w<_&&("auto"===S.overflowY||"scroll"===S.overflowY));var j=x&&(Math.abs(v-a)<=l&&R+y<k)-(Math.abs(g-a)<=l&&!!R),P=E&&(Math.abs(b-i)<=l&&C+w<_)-(Math.abs(m-i)<=l&&!!C);if(!rt[p])for(var N=0;N<=p;N++)rt[N]||(rt[N]={});rt[p].vx==j&&rt[p].vy==P&&rt[p].el===d||(rt[p].el=d,rt[p].vx=j,rt[p].vy=P,clearInterval(rt[p].pid),0==j&&0==P||(u=!0,rt[p].pid=setInterval(function(){r&&0===this.layer&&$e.active._onTouchMove(tt);var t=rt[this.layer].vy?rt[this.layer].vy*s:0,n=rt[this.layer].vx?rt[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call($e.dragged.parentNode[X],n,t,e,tt,rt[this.layer].el)||U(rt[this.layer].el,n,t)}.bind({layer:p}),24))),p++}while(t.bubbleScroll&&f!==c&&(f=B(f,!1)));ot=u}}),30),ct=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||o;i();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ut(){}function pt(){}function ft(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;lt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,a=e.changed,i=e.cancel;if(o.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=lt;!1!==r(n)?(R(n,s.swapClass,!0),lt=n):lt=null,c&&c!==lt&&R(c,s.swapClass,!1)}a(),t(!0),i()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,o=n||this.sortable,a=this.options;lt&&R(lt,a.swapClass,!1),lt&&(a.swap||n&&n.options.swap)&&r!==lt&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),function(e,t){var n,r,o=e.parentNode,a=t.parentNode;if(!o||!a||o.isEqualNode(t)||a.isEqualNode(e))return;n=M(e),r=M(t),o.isEqualNode(a)&&n<r&&r++;o.insertBefore(t,o.children[n]),a.insertBefore(e,a.children[r])}(r,lt),o.animateAll(),o!==t&&t.animateAll())},nulling:function(){lt=null}},l(e,{pluginName:"swap",eventProperties:function(){return{swapItem:lt}}})}ut.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=N(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ct},l(ut,{pluginName:"revertOnSpill"}),pt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ct},l(pt,{pluginName:"removeOnSpill"});var dt,ht,mt,bt,gt,vt=[],yt=[],wt=!1,xt=!1,Et=!1;function kt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?y(document,"pointerup",this._deselectMultiDrag):(y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag))),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var r="";vt.length&&ht===e?vt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;mt=t},delayEnded:function(){this.isMultiDrag=~vt.indexOf(mt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<vt.length;r++)yt.push(z(vt[r])),yt[r].sortableIndex=vt[r].sortableIndex,yt[r].draggable=!1,yt[r].style["will-change"]="",R(yt[r],this.options.selectedClass,!1),vt[r]===mt&&R(yt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||vt.length&&ht===t&&(_t(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(_t(!1,n),yt.forEach((function(e){O(e,"display","")})),t(),gt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(yt.forEach((function(e){O(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),gt=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&ht&&ht.multiDrag._deselectMultiDrag(),vt.forEach((function(e){e.sortableIndex=M(e)})),vt=vt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Et=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){vt.forEach((function(e){e!==mt&&O(e,"position","absolute")}));var r=T(mt,!1,!0,!0);vt.forEach((function(e){e!==mt&&H(e,r)})),xt=!0,wt=!0}n.animateAll((function(){xt=!1,wt=!1,t.options.animation&&vt.forEach((function(e){W(e)})),t.options.sort&&St()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;xt&&~vt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;vt.length>1&&(vt.forEach((function(e){r.addAnimationState({target:e,rect:xt?T(e):o}),W(e),e.fromRect=o,t.removeAnimationState(e)})),xt=!1,function(e,t){vt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,a=e.parentEl,i=e.putSortable,l=this.options;if(r){if(n&&o._hideClone(),wt=!1,l.animation&&vt.length>1&&(xt||!n&&!o.options.sort&&!i)){var s=T(mt,!1,!0,!0);vt.forEach((function(e){e!==mt&&(H(e,s),a.appendChild(e))})),xt=!0}if(!n)if(xt||St(),vt.length>1){var c=gt;o._showClone(t),o.options.animation&&!gt&&c&&yt.forEach((function(e){o.addAnimationState({target:e,rect:bt}),e.fromRect=bt,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(vt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){bt=l({},t);var o=C(mt,!0);bt.top-=o.f,bt.left-=o.e}},dragOverAnimationComplete:function(){xt&&(xt=!1,St())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,a=e.dispatchSortableEvent,i=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var c=this.options,u=r.children;if(!Et)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),R(mt,c.selectedClass,!~vt.indexOf(mt)),~vt.indexOf(mt))vt.splice(vt.indexOf(mt),1),dt=null,K({sortable:o,rootEl:n,name:"deselect",targetEl:mt,originalEvent:t});else{if(vt.push(mt),K({sortable:o,rootEl:n,name:"select",targetEl:mt,originalEvent:t}),t.shiftKey&&dt&&o.el.contains(dt)){var p=M(dt),f=M(mt);~p&&~f&&p!==f&&function(){var e,a;f>p?(a=p,e=f):(a=f,e=p+1);for(var i=c.filter;a<e;a++){if(!~vt.indexOf(u[a]))if(k(u[a],c.draggable,r,!1))i&&("function"==typeof i?i.call(o,t,u[a],o):i.split(",").some((function(e){return k(u[a],e.trim(),r,!1)})))||(R(u[a],c.selectedClass,!0),vt.push(u[a]),K({sortable:o,rootEl:n,name:"select",targetEl:u[a],originalEvent:t}))}}()}else dt=mt;ht=s}if(Et&&this.isMultiDrag){if(xt=!1,(r[X].options.sort||r!==n)&&vt.length>1){var d=T(mt),h=M(mt,":not(."+this.options.selectedClass+")");if(!wt&&c.animation&&(mt.thisAnimationDuration=null),s.captureAnimationState(),!wt&&(c.animation&&(mt.fromRect=d,vt.forEach((function(e){if(e.thisAnimationDuration=null,e!==mt){var t=xt?T(e):d;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),St(),vt.forEach((function(e){u[h]?r.insertBefore(e,u[h]):r.appendChild(e),h++})),i===M(mt))){var m=!1;vt.forEach((function(e){e.sortableIndex===M(e)||(m=!0)})),m&&(a("update"),a("sort"))}vt.forEach((function(e){W(e)})),s.animateAll()}ht=s}(n===r||l&&"clone"!==l.lastPutMode)&&yt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Et=!1,yt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),w(document,"pointerup",this._deselectMultiDrag),w(document,"mouseup",this._deselectMultiDrag),w(document,"touchend",this._deselectMultiDrag),w(document,"keydown",this._checkKeyDown),w(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==Et&&Et||ht!==this.sortable||e&&k(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;vt.length;){var t=vt[0];R(t,this.options.selectedClass,!1),vt.shift(),K({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},l(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[X];t&&t.options.multiDrag&&!~vt.indexOf(e)&&(ht&&ht!==t&&(ht.multiDrag._deselectMultiDrag(),ht=t),R(e,t.options.selectedClass,!0),vt.push(e))},deselect:function(e){var t=e.parentNode[X],n=vt.indexOf(e);t&&t.options.multiDrag&&~n&&(R(e,t.options.selectedClass,!1),vt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return vt.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=xt&&r!==mt?-1:xt?M(r,":not(."+e.options.selectedClass+")"):M(r),n.push({multiDragElement:r,index:o})})),{items:c(vt),clones:[].concat(yt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function _t(e,t){yt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function St(){vt.forEach((function(e){e!==mt&&e.parentNode&&e.parentNode.removeChild(e)}))}$e.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):t.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):(w(document,"pointermove",this._handleFallbackAutoScroll),w(document,"touchmove",this._handleFallbackAutoScroll),w(document,"mousemove",this._handleFallbackAutoScroll)),it(),at(),clearTimeout(_),_=void 0},nulling:function(){tt=Ze=Je=ot=nt=Qe=et=null,rt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,o);if(tt=e,t||this.options.forceAutoScrollFallback||d||f||m){st(e,this.options,a,t);var i=B(a,!0);!ot||nt&&r===Qe&&o===et||(nt&&it(),nt=setInterval((function(){var a=B(document.elementFromPoint(r,o),!0);a!==i&&(i=a,at()),st(e,n.options,a,t)}),10),Qe=r,et=o)}else{if(!this.options.bubbleScroll||B(a,!0)===A())return void at();st(e,this.options,B(a,!1),!1)}}},l(e,{pluginName:"scroll",initializeByDefault:!0})}),$e.mount(pt,ut);const Rt=$e},270:(e,t,n)=>{var r=n(7068),o=n(346);e.exports=function e(t,n,a,i,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,l))}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},361: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}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},583:(e,t,n)=>{var r=n(7237),o=n(7255),a=n(8586),i=n(7797);e.exports=function(e){return a(e)?r(i(e)):o(e)}},631:(e,t,n)=>{var r=n(8077),o=n(9326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},641:(e,t,n)=>{var r=n(6649),o=n(5950);e.exports=function(e,t){return e&&r(e,t,o)}},659:(e,t,n)=>{var r=n(1873),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[l]=n:delete e[l]),o}},677:e=>{e.exports=function(){return this.React}()},689:(e,t,n)=>{var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,l){var s=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!s)return!1;for(var p=u;p--;){var f=c[p];if(!(s?f in t:o.call(t,f)))return!1}var d=l.get(e),h=l.get(t);if(d&&h)return d==t&&h==e;var m=!0;l.set(e,t),l.set(t,e);for(var b=s;++p<u;){var g=e[f=c[p]],v=t[f];if(a)var y=s?a(v,g,f,t,e,l):a(g,v,f,e,t,l);if(!(void 0===y?g===v||i(g,v,n,a,l):y)){m=!1;break}b||(b="constructor"==f)}if(m&&!b){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return l.delete(e),l.delete(t),m}},695:(e,t,n)=>{var r=n(8096),o=n(2428),a=n(6449),i=n(3656),l=n(361),s=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&o(e),p=!n&&!u&&i(e),f=!n&&!u&&!p&&s(e),d=n||u||p||f,h=d?r(e.length,String):[],m=h.length;for(var b in e)!t&&!c.call(e,b)||d&&("length"==b||p&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||l(b,m))||h.push(b);return h}},748:(e,t,n)=>{"use strict";var r,o=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},a=n(677),i=(r=a)&&r.__esModule?r:{default:r};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,l=e.height,s=void 0===l?24:l,c=e.style,u=void 0===c?{}:c,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:s},u)},p),i.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},756:(e,t,n)=>{var r=n(3805);e.exports=function(e){return e==e&&!r(e)}},776:(e,t,n)=>{var r=n(756),o=n(5950);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}},909:(e,t,n)=>{var r=n(641),o=n(8329)(r);e.exports=o},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},945:(e,t,n)=>{var r=n(79),o=n(8223),a=n(3661);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}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},1175:(e,t,n)=>{var r=n(6025);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}},1331:(e,t,n)=>{var r=n(2552),o=n(8879),a=n(346),i=Function.prototype,l=Object.prototype,s=i.toString,c=l.hasOwnProperty,u=s.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=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1420:(e,t,n)=>{var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},1549:(e,t,n)=>{var r=n(2032),o=n(3862),a=n(6721),i=n(2749),l=n(5749);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},1720:(e,t)=>{var n; 9 9 /*! 10 10 Copyright (c) 2018 Jed Watson. 11 11 Licensed under the MIT License (MIT), see 12 12 http://jedwatson.github.io/classnames 13 */!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 l in n)r.call(n,l)&&n[l]&&e.push(l);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)}()},1769:(e,t,n)=>{var r=n(6449),o=n(8586),a=n(1802),i=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},1791:(e,t,n)=>{var r=n(6547),o=n(3360);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var l=-1,s=t.length;++l<s;){var c=t[l],u=a?a(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),i?o(n,c,u):r(n,c,u)}return n}},1799:(e,t,n)=>{var r=n(7217),o=n(270);e.exports=function(e,t,n,a){var i=n.length,l=i,s=!a;if(null==e)return!l;for(e=Object(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<l;){var u=(c=n[i])[0],p=e[u],f=c[1];if(s&&c[2]){if(void 0===p&&!(u in e))return!1}else{var d=new r;if(a)var h=a(p,f,u,e,t,d);if(!(void 0===h?o(f,p,3,a,d):h))return!1}}return!0}},1802:(e,t,n)=>{var r=n(2224),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},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},1882:(e,t,n)=>{var r=n(2552),o=n(3805);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}},1961:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},1986:(e,t,n)=>{var r=n(1873),o=n(7828),a=n(5288),i=n(5911),l=n(317),s=n(4247),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,p,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||!p(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 d=l;case"[object Set]":var h=1&r;if(d||(d=s),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var b=i(d(e),d(t),r,c,p,f);return f.delete(e),b;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2199:(e,t,n)=>{var r=n(4528),o=n(6449);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},2271:(e,t,n)=>{var r=n(1791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},2428:(e,t,n)=>{var r=n(7534),o=n(346),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},2552:(e,t,n)=>{var r=n(1873),o=n(659),a=n(9350),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)}},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},2693:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,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,bigint: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:a,resetWarningCache:o};return n.PropTypes=n,n}},2749:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},2804:(e,t,n)=>{var r=n(6110)(n(9325),"Promise");e.exports=r},2903:(e,t,n)=>{var r=n(3805),o=n(5527),a=n(181),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var l in e)("constructor"!=l||!t&&i.call(e,l))&&n.push(l);return n}},2949:(e,t,n)=>{var r=n(2651);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}},3007: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}},3040:(e,t,n)=>{var r=n(1549),o=n(79),a=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},3201:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},3215:(e,t,n)=>{var r=n(641),o=n(4066);e.exports=function(e,t){return e&&r(e,o(t))}},3221:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),l=i.length;l--;){var s=i[e?l:++o];if(!1===n(a[s],s,a))break}return t}}},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},3243:(e,t,n)=>{var r=n(6110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},3290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,l=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}},3345:e=>{e.exports=function(){return[]}},3349:(e,t,n)=>{var r=n(2199),o=n(6375),a=n(7241);e.exports=function(e){return r(e,a,o)}},3360:(e,t,n)=>{var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3488:e=>{e.exports=function(e){return e}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},3650:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=n(9935),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s},3661:(e,t,n)=>{var r=n(3040),o=n(7670),a=n(289),i=n(4509),l=n(2949);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},3663:(e,t,n)=>{var r=n(1799),o=n(776),a=n(7197);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)}}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3729: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}},3736:(e,t,n)=>{var r=n(1873),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3838:(e,t,n)=>{var r=n(1791),o=n(7241);e.exports=function(e,t){return e&&r(t,o(t),e)}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},4066:(e,t,n)=>{var r=n(3488);e.exports=function(e){return"function"==typeof e?e:r}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},4248: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}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4394:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},4528: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}},4657:(e,t,n)=>{"use strict";var r,o=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},a=n(677),i=(r=a)&&r.__esModule?r:{default:r};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,l=e.height,s=void 0===l?24:l,c=e.style,u=void 0===c?{}:c,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:s},u)},p),i.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},4664:(e,t,n)=>{var r=n(9770),o=n(3345),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=l},4733:(e,t,n)=>{var r=n(1791),o=n(5950);e.exports=function(e,t){return e&&r(t,o(t),e)}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},4894:(e,t,n)=>{var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4901:(e,t,n)=>{var r=n(2552),o=n(294),a=n(346),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)]}},4932: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}},5015:(e,t,n)=>{var r=n(2552),o=n(6449),a=n(346);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},5083:(e,t,n)=>{var r=n(1882),o=n(7296),a=n(3805),i=n(7473),l=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,u=s.toString,p=c.hasOwnProperty,f=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?f:l).test(i(e))}},5128:(e,t,n)=>{var r=n(909),o=n(4894);e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},5268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,o=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},a=n(677),i=(r=a)&&r.__esModule?r:{default:r};function l(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 s=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return a=s=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(u))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return i.default.createElement(t,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},i.default.createElement(e,o({},s.props,s.state)))},l(s,a)}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)}(r,n),r}(i.default.Component)};t.default=s},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5378:(e,t,n)=>{var r=n(4932),o=n(5389),a=n(5128),i=n(6449);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},5389:(e,t,n)=>{var r=n(3663),o=n(7978),a=n(3488),i=n(6449),l=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):l(e)}},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5529:(e,t,n)=>{var r=n(9344),o=n(8879),a=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},5556:(e,t,n)=>{e.exports=n(2694)()},5580:(e,t,n)=>{var r=n(6110)(n(9325),"DataView");e.exports=r},5749:(e,t,n)=>{var r=n(1042);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}},5861:(e,t,n)=>{var r=n(5580),o=n(8223),a=n(2804),i=n(6545),l=n(8303),s=n(2552),c=n(7473),u="[object Map]",p="[object Promise]",f="[object Set]",d="[object WeakMap]",h="[object DataView]",m=c(r),b=c(o),g=c(a),v=c(i),y=c(l),w=s;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||a&&w(a.resolve())!=p||i&&w(new i)!=f||l&&w(new l)!=d)&&(w=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case b:return u;case g:return p;case v:return f;case y:return d}return t}),e.exports=w},5901:(e,t,n)=>{var r=n(246),o=n(1720),a=n(677),i=n(8997);function l(e){return e&&e.__esModule?e.default:e}function s(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e){e.forEach((e=>c(e.element)))}function p(e){e.forEach((e=>{!function(e,t,n){const r=e.children[n]||null;e.insertBefore(t,r)}(e.parentElement,e.element,e.oldIndex)}))}function f(e,t){const n=b(e),r={parentElement:e.from};let o=[];switch(n){case"normal":o=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":o=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...r},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...r}];break;case"multidrag":o=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...r})))}const a=function(e,t){const n=e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex));return n}(o,t);return a}function d(e,t){return m(e,h(e,t))}function h(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function m(e,t,n,r){const o=[...t];return e.forEach((e=>{const t=r&&n&&r(e.item,n);o.splice(e.newIndex,0,t||e.item)})),o}function b(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}function g(e){const{list:t,setList:n,children:r,tag:o,style:a,className:i,clone:l,onAdd:s,onChange:c,onChoose:u,onClone:p,onEnd:f,onFilter:d,onRemove:h,onSort:m,onStart:b,onUnchoose:g,onUpdate:v,onMove:y,onSpill:w,onSelect:x,onDeselect:E,...k}=e;return k}s(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),s(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),s(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),s(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),s(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),s(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),s(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),s(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),s(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),s(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),s(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),s(e.exports,"ReactSortable",(()=>y));const v={dragging:null};class y extends a.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,a.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,v),l(i)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();l(r).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:r}=this.props,o={style:t,className:n,id:r},i=e&&null!==e?e:"div";return(0,a.createElement)(i,{ref:this.ref,...o},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:r="sortable-chosen",dragClass:i="sortable-drag",fallbackClass:s="sortable-falback",ghostClass:c="sortable-ghost",swapClass:u="sortable-swap-highlight",filter:p="sortable-filter",list:f}=this.props;if(!e||null==e)return null;const d=t||"data-id";return a.Children.map(e,((e,t)=>{if(void 0===e)return;const i=f[t]||{},{className:s}=e.props,c="string"==typeof p&&{[p.replace(".","")]:!!i.filtered},u=l(o)(s,{[n]:i.selected,[r]:i.chosen,...c});return(0,a.cloneElement)(e,{[d]:e.key,className:u})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=g(this.props);["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t)));return{...e,onMove:(e,t)=>{const{onMove:n}=this.props,r=e.willInsertAfter||-1;if(!n)return r;const o=n(e,t,this.sortable,v);return void 0!==o&&o}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,v)}onAdd(e){const{list:t,setList:n,clone:r}=this.props,o=f(e,[...v.dragging.props.list]);u(o);n(m(o,t,e,r).map((e=>Object.assign(e,{selected:!1}))),this.sortable,v)}onRemove(e){const{list:t,setList:n}=this.props,r=b(e),o=f(e,t);p(o);let a=[...t];if("clone"!==e.pullMode)a=h(o,a);else{let t=o;switch(r){case"multidrag":t=o.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=o.map((t=>({...t,element:e.clone})));break;default:l(i)(!0,`mode "${r}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${r}" plugin`)}u(t),o.forEach((t=>{const n=t.oldIndex,r=this.props.clone(t.item,e);a.splice(n,1,r)}))}a=a.map((e=>Object.assign(e,{selected:!1}))),n(a,this.sortable,v)}onUpdate(e){const{list:t,setList:n}=this.props,r=f(e,t);u(r),p(r);return n(d(r,t),this.sortable,v)}onStart(){v.dragging=this}onEnd(){v.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(t,{chosen:!0})),r})),this.sortable,v)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(r,{chosen:!1})),r})),this.sortable,v)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&c(e.item)}onSelect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);r[n].selected=!0})),n(r,this.sortable,v)}onDeselect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(r[t].selected=!0)})),n(r,this.sortable,v)}}var w,x;w=e.exports,x={},Object.keys(x).forEach((function(e){"default"===e||"__esModule"===e||w.hasOwnProperty(e)||Object.defineProperty(w,e,{enumerable:!0,get:function(){return x[e]}})}))},5911:(e,t,n)=>{var r=n(8859),o=n(4248),a=n(9219);e.exports=function(e,t,n,i,l,s){var c=1&n,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var f=s.get(e),d=s.get(t);if(f&&d)return f==t&&d==e;var h=-1,m=!0,b=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h<u;){var g=e[h],v=t[h];if(i)var y=c?i(v,g,h,t,e,s):i(g,v,h,e,t,s);if(void 0!==y){if(y)continue;m=!1;break}if(b){if(!o(t,(function(e,t){if(!a(b,t)&&(g===e||l(g,e,n,i,s)))return b.push(t)}))){m=!1;break}}else if(g!==v&&!l(g,v,n,i,s)){m=!1;break}}return s.delete(e),s.delete(t),m}},5950:(e,t,n)=>{var r=n(695),o=n(8984),a=n(4894);e.exports=function(e){return a(e)?r(e):o(e)}},6009:(e,t,n)=>{e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},6038:(e,t,n)=>{var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},6110:(e,t,n)=>{var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},6169:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},6189: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}},6203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=i(n(3215)),o=i(n(8055)),a=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};function i(e){return e&&e.__esModule?e:{default:e}}var l=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=a({},n[t],o[t])})),t})),n};t.default=l},6375:(e,t,n)=>{var r=n(4528),o=n(8879),a=n(4664),i=n(3345),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=l},6449:e=>{var t=Array.isArray;e.exports=t},6545:(e,t,n)=>{var r=n(6110)(n(9325),"Set");e.exports=r},6547:(e,t,n)=>{var r=n(3360),o=n(5288),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)}},6649:(e,t,n)=>{var r=n(3221)();e.exports=r},6686:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,o=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},a=n(677),i=(r=a)&&r.__esModule?r:{default:r};function l(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 s=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return a=s=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(u))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return i.default.createElement(t,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},i.default.createElement(e,o({},s.props,s.state)))},l(s,a)}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)}(r,n),r}(i.default.Component)};t.default=s},6721:(e,t,n)=>{var r=n(1042),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}},6892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(3215),a=(r=o)&&r.__esModule?r:{default:r},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};var l={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},s=t.autoprefix=function(e){var t={};return(0,a.default)(e,(function(e,n){var r={};(0,a.default)(e,(function(e,t){var n=l[t];n?r=i({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=s},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7068:(e,t,n)=>{var r=n(7217),o=n(5911),a=n(1986),i=n(689),l=n(5861),s=n(6449),c=n(3656),u=n(7167),p="[object Arguments]",f="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,b,g){var v=s(e),y=s(t),w=v?f:l(e),x=y?f:l(t),E=(w=w==p?d:w)==d,k=(x=x==p?d:x)==d,_=w==x;if(_&&c(e)){if(!c(t))return!1;v=!0,E=!1}if(_&&!E)return g||(g=new r),v||u(e)?o(e,t,n,m,b,g):a(e,t,w,n,m,b,g);if(!(1&n)){var S=E&&h.call(e,"__wrapped__"),R=k&&h.call(t,"__wrapped__");if(S||R){var O=S?e.value():e,C=R?t.value():t;return g||(g=new r),b(O,C,n,m,g)}}return!!_&&(g||(g=new r),i(e,t,n,m,b,g))}},7167:(e,t,n)=>{var r=n(4901),o=n(7301),a=n(6009),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},7197:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},7199:(e,t,n)=>{var r=n(9653),o=n(6169),a=n(3201),i=n(3736),l=n(1961);e.exports=function(e,t,n){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new s(+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 l(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},7217:(e,t,n)=>{var r=n(79),o=n(1420),a=n(938),i=n(3605),l=n(9817),s=n(945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=l,c.prototype.set=s,e.exports=c},7237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7241:(e,t,n)=>{var r=n(695),o=n(2903),a=n(4894);e.exports=function(e){return a(e)?r(e,!0):o(e)}},7255:(e,t,n)=>{var r=n(7422);e.exports=function(e){return function(t){return r(t,e)}}},7296:(e,t,n)=>{var r,o=n(5481),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},7422:(e,t,n)=>{var r=n(1769),o=n(7797);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}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7534:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},7556:(e,t,n)=>{var r=n(1873),o=n(4932),a=n(6449),i=n(4394),l=r?r.prototype:void 0,s=l?l.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 s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},7730:(e,t,n)=>{var r=n(9172),o=n(7301),a=n(6009),i=a&&a.isMap,l=i?o(i):r;e.exports=l},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},7978:(e,t,n)=>{var r=n(270),o=n(8156),a=n(631),i=n(8586),l=n(756),s=n(7197),c=n(7797);e.exports=function(e,t){return i(e)&&l(t)?s(c(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},8055:(e,t,n)=>{var r=n(9999);e.exports=function(e){return r(e,5)}},8077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},8096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},8156:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},8303:(e,t,n)=>{var r=n(6110)(n(9325),"WeakMap");e.exports=r},8329:(e,t,n)=>{var r=n(4894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i<a)&&!1!==o(l[i],i,l););return n}}},8440:(e,t,n)=>{var r=n(6038),o=n(7301),a=n(6009),i=a&&a.isSet,l=i?o(i):r;e.exports=l},8527:(e,t,n)=>{"use strict";t.H8=void 0;var r=c(n(9265)),o=c(n(6203)),a=c(n(6892)),i=c(n(6686)),l=c(n(5268)),s=c(n(2693));function c(e){return e&&e.__esModule?e:{default:e}}i.default,t.H8=i.default,l.default,s.default;var u=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var l=(0,r.default)(n),s=(0,o.default)(e,l);return(0,a.default)(s)};t.Ay=u},8586:(e,t,n)=>{var r=n(6449),o=n(4394),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))}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},8859:(e,t,n)=>{var r=n(3661),o=n(1380),a=n(1459);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},8879:(e,t,n)=>{var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},8948:(e,t,n)=>{var r=n(1791),o=n(6375);e.exports=function(e,t){return r(e,o(e),t)}},8984:(e,t,n)=>{var r=n(5527),o=n(3650),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}},8997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=!0,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t;throw new Error(n?o+": "+n:o)}}},9172:(e,t,n)=>{var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},9219:e=>{e.exports=function(e,t){return e.has(t)}},9265:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=l(n(5015)),o=l(n(3215)),a=l(n(1331)),i=l(n(5378));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,i.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,a.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=s},9325:(e,t,n)=>{var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},9326:(e,t,n)=>{var r=n(1769),o=n(2428),a=n(6449),i=n(361),l=n(294),s=n(7797);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,p=!1;++c<u;){var f=s(t[c]);if(!(p=null!=e&&n(e,f)))break;e=e[f]}return p||++c!=u?p:!!(u=null==e?0:e.length)&&l(u)&&i(f,u)&&(a(e)||o(e))}},9344:(e,t,n)=>{var r=n(3805),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},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9653:(e,t,n)=>{var r=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},9770: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}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},9935:e=>{e.exports=function(){return!1}},9999:(e,t,n)=>{var r=n(7217),o=n(3729),a=n(6547),i=n(4733),l=n(3838),s=n(3290),c=n(3007),u=n(2271),p=n(8948),f=n(2),d=n(3349),h=n(5861),m=n(6189),b=n(7199),g=n(5529),v=n(6449),y=n(3656),w=n(7730),x=n(3805),E=n(8440),k=n(5950),_=n(7241),S="[object Arguments]",R="[object Function]",O="[object Object]",C={};C[S]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[O]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[R]=C["[object WeakMap]"]=!1,e.exports=function e(t,n,j,A,T,P){var N,D=1&n,M=2&n,F=4&n;if(j&&(N=T?j(t,A,T,P):j(t)),void 0!==N)return N;if(!x(t))return t;var B=v(t);if(B){if(N=m(t),!D)return c(t,N)}else{var L=h(t),I=L==R||"[object GeneratorFunction]"==L;if(y(t))return s(t,D);if(L==O||L==S||I&&!T){if(N=M||I?{}:g(t),!D)return M?p(t,l(N,t)):u(t,i(N,t))}else{if(!C[L])return T?t:{};N=b(t,L,D)}}P||(P=new r);var U=P.get(t);if(U)return U;P.set(t,N),E(t)?t.forEach((function(r){N.add(e(r,n,j,r,t,P))})):w(t)&&t.forEach((function(r,o){N.set(o,e(r,n,j,o,t,P))}));var z=B?void 0:(F?M?d:f:M?_:k)(t);return o(z||t,(function(r,o){z&&(r=t[o=r]),a(N,o,e(r,n,j,o,t,P))})),N}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r](a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);(()=>{"use strict";var e={};function t(e,t){return function(){return e.apply(t,arguments)}}n.r(e),n.d(e,{hasBrowserEnv:()=> se,hasStandardBrowserEnv:()=>ue,hasStandardBrowserWebWorkerEnv:()=>pe,navigator:()=>ce,origin:()=>fe});const{toString:r}=Object.prototype,{getPrototypeOf:o}=Object,a=(i=Object.create(null),e=>{const t=r.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});var i;const l=e=>(e=e.toLowerCase(),t=>a(t)===e),s=e=>t=>typeof t===e,{isArray:c}=Array,u=s("undefined");const p=l("ArrayBuffer");const f=s("string"),d=s("function"),h=s("number"),m=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==a(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},g=l("Date"),v=l("File"),y=l("Blob"),w=l("FileList"),x=l("URLSearchParams"),[E,k,_,S]=["ReadableStream","Request","Response","Headers"].map(l);function R(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),c(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function O(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,j=e=>!u(e)&&e!==C;const A=(T="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>T&&e instanceof T);var T;const P=l("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),D=l("RegExp"),M=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};R(n,((n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)})),Object.defineProperties(e,r)};const F=l("AsyncFunction"),B=(L="function"==typeof setImmediate,I=d(C.postMessage),L?setImmediate:I?(U=`axios@${Math.random()}`,z=[],C.addEventListener("message",(({source:e,data:t})=>{e===C&&t===U&&z.length&&z.shift()()}),!1),e=>{z.push(e),C.postMessage(U,"*")}):e=>setTimeout(e));var L,I,U,z;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(C):"undefined"!=typeof process&&process.nextTick||B,W={isArray:c,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&d(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||d(e.append)&&("formdata"===(t=a(e))||"object"===t&&d(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:f,isNumber:h,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:b,isReadableStream:E,isRequest:k,isResponse:_,isHeaders:S,isUndefined:u,isDate:g,isFile:v,isBlob:y,isRegExp:D,isFunction:d,isStream:e=>m(e)&&d(e.pipe),isURLSearchParams:x,isTypedArray:A,isFileList:w,forEach:R,merge:function e(){const{caseless:t}=j(this)&&this||{},n={},r=(r,o)=>{const a=t&&O(n,o)||o;b(n[a])&&b(r)?n[a]=e(n[a],r):b(r)?n[a]=e({},r):c(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&R(arguments[e],r);return n},extend:(e,n,r,{allOwnKeys:o}={})=>(R(n,((n,o)=>{r&&d(n)?e[o]=t(n,r):e[o]=n}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,i,l;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],r&&!r(l,e,t)||s[l]||(t[l]=e[l],s[l]=!0);e=!1!==n&&o(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(c(e))return e;let t=e.length;if(!h(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:P,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:M,freezeMethods:e=>{M(e,((t,n)=>{if(d(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];d(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return c(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:O,global:C,isContextDefined:j,isSpecCompliantForm:function(e){return!!(e&&d(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=c(e)?[]:{};return R(e,((e,t)=>{const a=n(e,r+1);!u(a)&&(o[t]=a)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:F,isThenable:e=>e&&(m(e)||d(e))&&d(e.then)&&d(e.catch),setImmediate:B,asap:H};function $(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}W.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const G=$.prototype,X={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{X[e]={value:e}})),Object.defineProperties($,X),Object.defineProperty(G,"isAxiosError",{value:!0}),$.from=(e,t,n,r,o,a)=>{const i=Object.create(G);return W.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const V=$;function q(e){return W.isPlainObject(e)||W.isArray(e)}function Y(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function K(e,t,n){return e?e.concat(t).map((function(e,t){return e=Y(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const J=W.toFlatObject(W,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Z=function(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!W.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(o))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(W.isDate(e))return e.toISOString();if(!l&&W.isBlob(e))throw new V("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(e)||W.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(W.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(W.isArray(e)&&function(e){return W.isArray(e)&&!e.some(q)}(e)||(W.isFileList(e)||W.endsWith(n,"[]"))&&(l=W.toArray(e)))return n=Y(n),l.forEach((function(e,r){!W.isUndefined(e)&&null!==e&&t.append(!0===i?K([n],r,a):null===i?n:n+"[]",s(e))})),!1;return!!q(e)||(t.append(K(o,n,a),s(e)),!1)}const u=[],p=Object.assign(J,{defaultVisitor:c,convertValue:s,isVisitable:q});if(!W.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!W.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),W.forEach(n,(function(n,a){!0===(!(W.isUndefined(n)||null===n)&&o.call(t,n,W.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a])})),u.pop()}}(e),t};function Q(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ee(e,t){this._pairs=[],e&&Z(e,this,t)}const te=ee.prototype;te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,Q)}:Q;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ne=ee;function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,n){if(!t)return e;const r=n&&n.encode||re;W.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(a=o?o(t,n):W.isURLSearchParams(t)?t.toString():new ne(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const ae=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},le={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},se="undefined"!=typeof window&&"undefined"!=typeof document,ce="object"==typeof navigator&&navigator||void 0,ue=se&&(!ce||["ReactNative","NativeScript","NS"].indexOf(ce.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=se&&window.location.href||"http://localhost",de={...e,...le};const he=function(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),l=o>=e.length;if(a=!a&&W.isArray(r)?r.length:a,l)return W.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&W.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&W.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,((e,r)=>{t(function(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const me={transitional:ie,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=W.isObject(e);o&&W.isHTMLForm(e)&&(e=new FormData(e));if(W.isFormData(e))return r?JSON.stringify(he(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Z(e,new de.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return de.isNode&&W.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=W.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw V.from(e,V.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));const be=me,ge=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ve=Symbol("internals");function ye(e){return e&&String(e).trim().toLowerCase()}function we(e){return!1===e||null==e?e:W.isArray(e)?e.map(we):String(e)}function xe(e,t,n,r,o){return W.isFunction(r)?r.call(this,t,n):(o&&(t=n),W.isString(t)?W.isString(r)?-1!==t.indexOf(r):W.isRegExp(r)?r.test(t):void 0:void 0)}class Ee{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ye(t);if(!o)throw new Error("header name must be a non-empty string");const a=W.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=we(e))}const a=(e,t)=>W.forEach(e,((e,n)=>o(e,n,t)));if(W.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(W.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ge[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(W.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=ye(e)){const n=W.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(W.isFunction(t))return t.call(this,e,n);if(W.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ye(e)){const n=W.findKey(this,e);return!(!n||void 0===this[n]||t&&!xe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ye(e)){const o=W.findKey(n,e);!o||t&&!xe(0,n[o],o,t)||(delete n[o],r=!0)}}return W.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!xe(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return W.forEach(this,((r,o)=>{const a=W.findKey(n,o);if(a)return t[a]=we(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=we(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return W.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&W.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ve]=this[ve]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ye(e);t[r]||(!function(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return W.isArray(e)?e.forEach(r):r(e),this}}Ee.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Ee.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),W.freezeMethods(Ee);const ke=Ee;function _e(e,t){const n=this||be,r=t||n,o=ke.from(r.headers);let a=r.data;return W.forEach(e,(function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function Se(e){return!(!e||!e.__CANCEL__)}function Re(e,t,n){V.call(this,null==e?"canceled":e,V.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(Re,V,{__CANCEL__:!0});const Oe=Re;function Ce(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new V("Request failed with status code "+n.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const je=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(l){const s=Date.now(),c=r[i];o||(o=s),n[a]=l,r[a]=s;let u=i,p=0;for(;u!==a;)p+=n[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),s-o<t)return;const f=c&&s-c;return f?Math.round(1e3*p/f):void 0}};const Ae=function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),l=t-o;l>=a?i(e,t):(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),a-l)))},()=>n&&i(n)]},Te=(e,t,n=3)=>{let r=0;const o=je(50,250);return Ae((n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,l=a-r,s=o(l);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:s||void 0,estimated:s&&i&&a<=i?(i-a)/s:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Pe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ne=e=>(...t)=>W.asap((()=>e(...t))),De=de.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,de.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,Me=de.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];W.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),W.isString(r)&&i.push("path="+r),W.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Fe(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Be=e=>e instanceof ke?{...e}:e;function Le(e,t){t=t||{};const n={};function r(e,t,n,r){return W.isPlainObject(e)&&W.isPlainObject(t)?W.merge.call({caseless:r},e,t):W.isPlainObject(t)?W.merge({},t):W.isArray(t)?t.slice():t}function o(e,t,n,o){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!W.isUndefined(t))return r(void 0,t)}function i(e,t){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const s={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(e,t,n)=>o(Be(e),Be(t),0,!0)};return W.forEach(Object.keys(Object.assign({},e,t)),(function(r){const a=s[r]||o,i=a(e[r],t[r],r);W.isUndefined(i)&&a!==l||(n[r]=i)})),n}const Ie=e=>{const t=Le({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:l,auth:s}=t;if(t.headers=l=ke.from(l),t.url=oe(Fe(t.baseURL,t.url),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),W.isFormData(r))if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(!1!==(n=l.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];l.setContentType([e||"multipart/form-data",...t].join("; "))}if(de.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(t)),o||!1!==o&&De(t.url))){const e=a&&i&&Me.read(i);e&&l.set(a,e)}return t},Ue="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Ie(e);let o=r.data;const a=ke.from(r.headers).normalize();let i,l,s,c,u,{responseType:p,onUploadProgress:f,onDownloadProgress:d}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function b(){if(!m)return;const r=ke.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ce((function(e){t(e),h()}),(function(e){n(e),h()}),{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(b)},m.onabort=function(){m&&(n(new V("Request aborted",V.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new V("Network Error",V.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ie;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new V(t,o.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,m)),m=null},void 0===o&&a.setContentType(null),"setRequestHeader"in m&&W.forEach(a.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),W.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),d&&([s,u]=Te(d,!0),m.addEventListener("progress",s)),f&&m.upload&&([l,c]=Te(f),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Oe(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===de.protocols.indexOf(g)?n(new V("Unsupported protocol "+g+":",V.ERR_BAD_REQUEST,e)):m.send(o||null)}))},ze=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof V?t:new Oe(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,o(new V(`timeout ${t} of ms exceeded`,V.ETIMEDOUT))}),t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:l}=r;return l.unsubscribe=()=>W.asap(i),l}},He=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},We=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},$e=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of We(e))yield*He(n,t)}(e,t);let a,i=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return l(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw l(e),e}},cancel:e=>(l(e),o.return())},{highWaterMark:2})},Ge="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Xe=Ge&&"function"==typeof ReadableStream,Ve=Ge&&("function"==typeof TextEncoder?(qe=new TextEncoder,e=>qe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var qe;const Ye=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ke=Xe&&Ye((()=>{let e=!1;const t=new Request(de.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Je=Xe&&Ye((()=>W.isReadableStream(new Response("").body))),Ze={stream:Je&&(e=>e.body)};var Qe;Ge&&(Qe=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ze[e]&&(Ze[e]=W.isFunction(Qe[e])?t=>t[e]():(t,n)=>{throw new V(`Response type '${e}' is not supported`,V.ERR_NOT_SUPPORT,n)})})));const et=async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e)){const t=new Request(de.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return W.isArrayBufferView(e)||W.isArrayBuffer(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=""),W.isString(e)?(await Ve(e)).byteLength:void 0)})(t):n},tt={http:null,xhr:Ue,fetch:Ge&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:s,responseType:c,headers:u,withCredentials:p="same-origin",fetchOptions:f}=Ie(e);c=c?(c+"").toLowerCase():"text";let d,h=ze([o,a&&a.toAbortSignal()],i);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(s&&Ke&&"get"!==n&&"head"!==n&&0!==(b=await et(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(W.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Pe(b,Te(Ne(s)));r=$e(n.body,65536,e,t)}}W.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;d=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?p:void 0});let a=await fetch(d);const i=Je&&("stream"===c||"response"===c);if(Je&&(l||i&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=W.toFiniteNumber(a.headers.get("content-length")),[n,r]=l&&Pe(t,Te(Ne(l),!0))||[];a=new Response($e(a.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let g=await Ze[W.findKey(Ze,c)||"text"](a,e);return!i&&m&&m(),await new Promise(((t,n)=>{Ce(t,n,{data:g,headers:ke.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:d})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new V("Network Error",V.ERR_NETWORK,e,d),{cause:t.cause||t});throw V.from(t,t&&t.code,e,d)}})};W.forEach(tt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const nt=e=>`- ${e}`,rt=e=>W.isFunction(e)||null===e||!1===e,ot=e=>{e=W.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){let t;if(n=e[a],r=n,!rt(n)&&(r=tt[(t=String(n)).toLowerCase()],void 0===r))throw new V(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+a]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(nt).join("\n"):" "+nt(e[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function at(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Oe(null,e)}function it(e){at(e),e.headers=ke.from(e.headers),e.data=_e.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ot(e.adapter||be.adapter)(e).then((function(t){return at(e),t.data=_e.call(e,e.transformResponse,t),t.headers=ke.from(t.headers),t}),(function(t){return Se(t)||(at(e),t&&t.response&&(t.response.data=_e.call(e,e.transformResponse,t.response),t.response.headers=ke.from(t.response.headers))),Promise.reject(t)}))}const lt="1.8.1",st={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{st[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ct={};st.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new V(r(o," has been removed"+(t?" in "+t:"")),V.ERR_DEPRECATED);return t&&!ct[o]&&(ct[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},st.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const ut={assertOptions:function(e,t,n){if("object"!=typeof e)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new V("option "+a+" must be "+n,V.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new V("Unknown option "+a,V.ERR_BAD_OPTION)}},validators:st},pt=ut.validators;class ft{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Le(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ut.assertOptions(n,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),null!=r&&(W.isFunction(r)?t.paramsSerializer={serialize:r}:ut.assertOptions(r,{encode:pt.function,serialize:pt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ut.assertOptions(t,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&W.merge(o.common,o[t.method]);o&&W.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ke.concat(a,o);const i=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const s=[];let c;this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)}));let u,p=0;if(!l){const e=[it.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,s),u=e.length,c=Promise.resolve(t);p<u;)c=c.then(e[p++],e[p++]);return c}u=i.length;let f=t;for(p=0;p<u;){const e=i[p++],t=i[p++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=it.call(this,f)}catch(e){return Promise.reject(e)}for(p=0,u=s.length;p<u;)c=c.then(s[p++],s[p++]);return c}getUri(e){return oe(Fe((e=Le(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}W.forEach(["delete","get","head","options"],(function(e){ft.prototype[e]=function(t,n){return this.request(Le(n||{},{method:e,url:t,data:(n||{}).data}))}})),W.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Le(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ft.prototype[e]=t(),ft.prototype[e+"Form"]=t(!0)}));const dt=ft;class ht{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Oe(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ht((function(t){e=t})),cancel:e}}}const mt=ht;const bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bt).forEach((([e,t])=>{bt[t]=e}));const gt=bt;const vt=function e(n){const r=new dt(n),o=t(dt.prototype.request,r);return W.extend(o,dt.prototype,r,{allOwnKeys:!0}),W.extend(o,r,null,{allOwnKeys:!0}),o.create=function(t){return e(Le(n,t))},o}(be);vt.Axios=dt,vt.CanceledError=Oe,vt.CancelToken=mt,vt.isCancel=Se,vt.VERSION=lt,vt.toFormData=Z,vt.AxiosError=V,vt.Cancel=vt.CanceledError,vt.all=function(e){return Promise.all(e)},vt.spread=function(e){return function(t){return e.apply(null,t)}},vt.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},vt.mergeConfig=Le,vt.AxiosHeaders=ke,vt.formToJSON=e=>he(W.isHTMLForm(e)?new FormData(e):e),vt.getAdapter=ot,vt.HttpStatusCode=gt,vt.default=vt;const yt=vt;var wt=wp.i18n.__,xt=function(e){var t="-"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_")?"-":"_";return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,t).replace(new RegExp("".concat(t,"{2,}"),"g"),t).replace(new RegExp("^".concat(t,"|").concat(t,"$"),"g"),"")},Et=[{value:"email",label:wt("Email","theme-site-kit")},{value:"phone",label:wt("Phone","theme-site-kit")},{value:"whatsapp",label:wt("WhatsApp","theme-site-kit")},{value:"telegram",label:wt("Telegram","theme-site-kit")},{value:"line",label:wt("Line","theme-site-kit")},{value:"facebook",label:wt("Facebook","theme-site-kit")},{value:"x-twitter",label:wt("X","theme-site-kit")},{value:"instagram",label:wt("Instagram","theme-site-kit")},{value:"linkedin",label:wt("LinkedIn","theme-site-kit")},{value:"pinterest",label:wt("Pinterest","theme-site-kit")},{value:"tiktok",label:wt("TikTok","theme-site-kit")},{value:"bluesky",label:wt("Bluesky","theme-site-kit")},{value:"youtube",label:wt("YouTube","theme-site-kit")},{value:"vimeo",label:wt("Vimeo","theme-site-kit")},{value:"wordpress",label:wt("WordPress","theme-site-kit")},{value:"tumblr",label:wt("Tumblr","theme-site-kit")},{value:"dribbble",label:wt("Dribbble","theme-site-kit")},{value:"airbnb",label:wt("Airbnb","theme-site-kit")},{value:"behance",label:wt("Behance","theme-site-kit")},{value:"product-hunt",label:wt("Product Hunt","theme-site-kit")},{value:"twitch",label:wt("Twitch","theme-site-kit")},{value:"snapchat",label:wt("SnapChat","theme-site-kit")},{value:"figma",label:wt("Figma","theme-site-kit")},{value:"spotify",label:wt("Spotify","theme-site-kit")},{value:"soundcloud",label:wt("SoundCloud","theme-site-kit")},{value:"deezer",label:wt("Deezer","theme-site-kit")},{value:"meetup",label:wt("Meetup","theme-site-kit")},{value:"etsy",label:wt("Etsy","theme-site-kit")},{value:"paypal",label:wt("PayPal","theme-site-kit")},{value:"skype",label:wt("Skype","theme-site-kit")},{value:"reddit-alien",label:wt("TikTok","theme-site-kit")},{value:"mix",label:wt("Mix","theme-site-kit")},{value:"hubspot",label:wt("HubSpot","theme-site-kit")},{value:"strava",label:wt("Strava","theme-site-kit")},{value:"foursquare",label:wt("Foursquare","theme-site-kit")},{value:"github-alt",label:wt("Github","theme-site-kit")},{value:"audible",label:wt("Audible","theme-site-kit")},{value:"aws",label:wt("AWS","theme-site-kit")},{value:"kickstarter-k",label:wt("Kickstarter","theme-site-kit")},{value:"flickr",label:wt("Flickr","theme-site-kit")},{value:"deviantart",label:wt("DeviantArt","theme-site-kit")},{value:"500px",label:wt("500px","theme-site-kit")},{value:"btc",label:wt("Bitcoin","theme-site-kit")},{value:"ethereum",label:wt("Ethereum","theme-site-kit")}],kt=wp.i18n.__;const _t=function(e){var t=e.slug,n=e.title,r=e.value,o=e.onChange,a=e.comingSoon,i=xt(t)?xt(t):xt(n),l=!!r;return a?React.createElement("p",{className:"setting-note"},n," ",kt("coming soon...","theme-site-kit")):React.createElement("label",{className:"toggle-switch"},React.createElement("input",{id:i,name:i,type:"checkbox",onChange:o,checked:l,className:"toggle-switch-checkbox"}),React.createElement("span",{className:"toggle-switch-slider"}))};function St(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Rt(e,t);var n={}.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)?Rt(e,t):void 0}}(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 Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ot=function(e){var t=xt(e.slug)?xt(e.slug):xt(e.title),n=e.options;return React.createElement(React.Fragment,null,React.createElement("select",{id:t,name:t,onChange:e.onChange,value:e.value||e.defaultValue,className:"snSelect"},e.emptyOption&&React.createElement("option",{value:"",key:"empty"},e.emptyLabel||"Select an option..."),Object.entries(n).map((function(e){var t=St(e,2),n=t[0],r=t[1];return React.createElement("option",{value:n,key:n},r)}))))};function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(null,arguments)}const jt=function(e){var t=xt(e.slug)?xt(e.slug):xt(e.title),n=e.prefix?e.prefix:"",r=e.suffix?e.suffix:"";return React.createElement(React.Fragment,null,n&&React.createElement("span",{className:"prefix"},n),"text"===e.inputType?React.createElement("input",Ct({type:"text",id:t,name:t,placeholder:e.placeholder,value:e.value||"",onChange:e.onChange,className:"regular-text ".concat(e.className||"")},e.disabled&&{disabled:!0})):"number"===e.inputType?React.createElement("input",{type:"number",id:t,name:t,placeholder:e.placeholder,value:e.value||"",onChange:e.onChange,className:"small-text"}):React.createElement("textarea",{id:t,name:t,value:e.value||"",placeholder:e.placeholder,onChange:e.onChange,className:"regular-text",rows:"5"}),r&&React.createElement("span",{className:"suffix"},r))};function At(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tt(e,t);var n={}.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)?Tt(e,t):void 0}}(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 n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Pt=wp.element,Nt=Pt.useState,Dt=Pt.useEffect;const Mt=function(e){var t=xt(e.slug)?xt(e.slug):xt(e.title),n=At(Nt(0),2),r=n[0],o=n[1],a=e.defaultValue?e.defaultValue:e.min;return Dt((function(){e.value?o(e.value):o(a)}),[e.value]),React.createElement("div",{className:"kwtskRange"},React.createElement("div",{className:"kwtskRangeInput"},React.createElement("span",null,e.min),React.createElement("input",{type:"range",id:t,name:t,onChange:e.onChange,value:r,min:e.min?e.min:0,max:e.max?e.max:500,step:e.step?e.step:1}),React.createElement("span",null,e.max?e.max:500)),React.createElement("div",{className:"kwtskRangeInputVal"},React.createElement("input",{type:"text",value:r,readOnly:!0}),e.suffix?e.suffix:""))};function Ft(e){return function(e){if(Array.isArray(e))return It(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lt(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 Bt(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Lt(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 Lt(e,t){if(e){if("string"==typeof e)return It(e,t);var n={}.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)?It(e,t):void 0}}function It(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ut=wp.element.useState;wp.i18n.__;const zt=function(e){var t=e.slug,n=e.value,r=e.onChange,o=e.options,a=void 0===o?[]:o,i=t,l=Bt(Ut(Array.isArray(n)?n:[]),2),s=l[0],c=l[1],u=Array.isArray(a)?a:Object.entries(a).map((function(e){var t=Bt(e,2);return{value:t[0],label:t[1]}})),p=function(e,t){var n;n=t?[].concat(Ft(s),[e]):s.filter((function(t){return t!==e})),c(n),r({target:{type:"checkbox",name:i,value:n,checked:t,className:"checkbox-input"}})};return React.createElement(React.Fragment,null,u.map((function(e){var t=xt("".concat(i,"-").concat(e.value)),n=s.includes(e.value);return React.createElement("div",{key:e.value,className:"kwtsk-checkboxes-block"},React.createElement("label",{className:"kwtsk-checkboxes-label ".concat(n?"selected":""),htmlFor:t},React.createElement("input",{id:t,name:i,type:"checkbox",value:e.value,checked:n,onChange:function(t){return p(e.value,t.target.checked)},className:"checkboxes-input"}),React.createElement("span",{className:"checkboxes-label"},e.label)))})))};var Ht=n(677),Wt=n.n(Ht),$t=n(8527),Gt={},Xt=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(Gt[o])return Gt[o];var a=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var a=o.getContext("2d");return a?(a.fillStyle=e,a.fillRect(0,0,o.width,o.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return Gt[o]=a,a},Vt=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},qt=function(e){var t=e.white,n=e.grey,r=e.size,o=e.renderers,a=e.borderRadius,i=e.boxShadow,l=e.children,s=(0,$t.Ay)({default:{grid:{borderRadius:a,boxShadow:i,absolute:"0px 0px 0px 0px",background:"url("+Xt(t,n,r,o.canvas)+") center left"}}});return(0,Ht.isValidElement)(l)?Wt().cloneElement(l,Vt({},l.props,{style:Vt({},l.props.style,s.grid)})):Wt().createElement("div",{style:s.grid})};qt.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};const Yt=qt;var Kt=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},Jt=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}}();function Zt(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}const Qt=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=Zt(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=function(e,t,n,r,o){var a=o.clientWidth,i=o.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=l-(o.getBoundingClientRect().left+window.pageXOffset),u=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var p=void 0;if(p=u<0?0:u>i?1:Math.round(100*u/i)/100,t.a!==p)return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}else{var f=void 0;if(r!==(f=c<0?0:c>a?1:Math.round(100*c/a)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},Zt(r,n)}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),Jt(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,$t.Ay)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:Kt({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return Wt().createElement("div",{style:n.alpha},Wt().createElement("div",{style:n.checkboard},Wt().createElement(Yt,{renderers:this.props.renderers})),Wt().createElement("div",{style:n.gradient}),Wt().createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Wt().createElement("div",{style:n.pointer},this.props.pointer?Wt().createElement(this.props.pointer,this.props):Wt().createElement("div",{style:n.slider}))))}}]),t}(Ht.PureComponent||Ht.Component);var en=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}}();var tn=[38,40],nn=1;const rn=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,tn.indexOf(t)>-1)){var o=n.getArrowOffset(),a=38===e.keyCode?r+o:r-o;n.setUpdatedValue(a,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+nn++,n}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),en(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,$t.Ay)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return Wt().createElement("div",{style:t.wrap},Wt().createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?Wt().createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(Ht.PureComponent||Ht.Component);var on=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}}();function an(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}const ln=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=an(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=function(e,t,n,r){var o=r.clientWidth,a=r.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(r.getBoundingClientRect().left+window.pageXOffset),c=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var u=void 0;if(u=c<0?359:c>a?0:360*(-100*c/a+100)/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var p=void 0;if(p=s<0?0:s>o?359:100*s/o*360/100,n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},an(r,n)}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),on(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,$t.Ay)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return Wt().createElement("div",{style:r.hue},Wt().createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Wt().createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),Wt().createElement("div",{style:r.pointer},this.props.pointer?Wt().createElement(this.props.pointer,this.props):Wt().createElement("div",{style:r.slider}))))}}]),t}(Ht.PureComponent||Ht.Component);var sn=n(5556),cn=n.n(sn);const un=function(){this.__data__=[],this.size=0};const pn=function(e,t){return e===t||e!=e&&t!=t};const fn=function(e,t){for(var n=e.length;n--;)if(pn(e[n][0],t))return n;return-1};var dn=Array.prototype.splice;const hn=function(e){var t=this.__data__,n=fn(t,e);return!(n<0)&&(n==t.length-1?t.pop():dn.call(t,n,1),--this.size,!0)};const mn=function(e){var t=this.__data__,n=fn(t,e);return n<0?void 0:t[n][1]};const bn=function(e){return fn(this.__data__,e)>-1};const gn=function(e,t){var n=this.__data__,r=fn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function vn(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])}}vn.prototype.clear=un,vn.prototype.delete=hn,vn.prototype.get=mn,vn.prototype.has=bn,vn.prototype.set=gn;const yn=vn;const wn=function(){this.__data__=new yn,this.size=0};const xn=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const En=function(e){return this.__data__.get(e)};const kn=function(e){return this.__data__.has(e)};const _n="object"==typeof global&&global&&global.Object===Object&&global;var Sn="object"==typeof self&&self&&self.Object===Object&&self;const Rn=_n||Sn||Function("return this")();const On=Rn.Symbol;var Cn=Object.prototype,jn=Cn.hasOwnProperty,An=Cn.toString,Tn=On?On.toStringTag:void 0;const Pn=function(e){var t=jn.call(e,Tn),n=e[Tn];try{e[Tn]=void 0;var r=!0}catch(e){}var o=An.call(e);return r&&(t?e[Tn]=n:delete e[Tn]),o};var Nn=Object.prototype.toString;const Dn=function(e){return Nn.call(e)};var Mn=On?On.toStringTag:void 0;const Fn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Mn&&Mn in Object(e)?Pn(e):Dn(e)};const Bn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Ln=function(e){if(!Bn(e))return!1;var t=Fn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const In=Rn["__core-js_shared__"];var Un,zn=(Un=/[^.]+$/.exec(In&&In.keys&&In.keys.IE_PROTO||""))?"Symbol(src)_1."+Un:"";const Hn=function(e){return!!zn&&zn in e};var Wn=Function.prototype.toString;const $n=function(e){if(null!=e){try{return Wn.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Gn=/^\[object .+?Constructor\]$/,Xn=Function.prototype,Vn=Object.prototype,qn=Xn.toString,Yn=Vn.hasOwnProperty,Kn=RegExp("^"+qn.call(Yn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Jn=function(e){return!(!Bn(e)||Hn(e))&&(Ln(e)?Kn:Gn).test($n(e))};const Zn=function(e,t){return null==e?void 0:e[t]};const Qn=function(e,t){var n=Zn(e,t);return Jn(n)?n:void 0};const er=Qn(Rn,"Map");const tr=Qn(Object,"create");const nr=function(){this.__data__=tr?tr(null):{},this.size=0};const rr=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var or=Object.prototype.hasOwnProperty;const ar=function(e){var t=this.__data__;if(tr){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return or.call(t,e)?t[e]:void 0};var ir=Object.prototype.hasOwnProperty;const lr=function(e){var t=this.__data__;return tr?void 0!==t[e]:ir.call(t,e)};const sr=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tr&&void 0===t?"__lodash_hash_undefined__":t,this};function cr(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])}}cr.prototype.clear=nr,cr.prototype.delete=rr,cr.prototype.get=ar,cr.prototype.has=lr,cr.prototype.set=sr;const ur=cr;const pr=function(){this.size=0,this.__data__={hash:new ur,map:new(er||yn),string:new ur}};const fr=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const dr=function(e,t){var n=e.__data__;return fr(t)?n["string"==typeof t?"string":"hash"]:n.map};const hr=function(e){var t=dr(this,e).delete(e);return this.size-=t?1:0,t};const mr=function(e){return dr(this,e).get(e)};const br=function(e){return dr(this,e).has(e)};const gr=function(e,t){var n=dr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function vr(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])}}vr.prototype.clear=pr,vr.prototype.delete=hr,vr.prototype.get=mr,vr.prototype.has=br,vr.prototype.set=gr;const yr=vr;const wr=function(e,t){var n=this.__data__;if(n instanceof yn){var r=n.__data__;if(!er||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new yr(r)}return n.set(e,t),this.size=n.size,this};function xr(e){var t=this.__data__=new yn(e);this.size=t.size}xr.prototype.clear=wn,xr.prototype.delete=xn,xr.prototype.get=En,xr.prototype.has=kn,xr.prototype.set=wr;const Er=xr;const kr=function(){try{var e=Qn(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const _r=function(e,t,n){"__proto__"==t&&kr?kr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};const Sr=function(e,t,n){(void 0!==n&&!pn(e[t],n)||void 0===n&&!(t in e))&&_r(e,t,n)};const Rr=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),l=i.length;l--;){var s=i[e?l:++o];if(!1===n(a[s],s,a))break}return t}}();var Or="object"==typeof exports&&exports&&!exports.nodeType&&exports,Cr=Or&&"object"==typeof module&&module&&!module.nodeType&&module,jr=Cr&&Cr.exports===Or?Rn.Buffer:void 0,Ar=jr?jr.allocUnsafe:void 0;const Tr=function(e,t){if(t)return e.slice();var n=e.length,r=Ar?Ar(n):new e.constructor(n);return e.copy(r),r};const Pr=Rn.Uint8Array;const Nr=function(e){var t=new e.constructor(e.byteLength);return new Pr(t).set(new Pr(e)),t};const Dr=function(e,t){var n=t?Nr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const Mr=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Fr=Object.create;const Br=function(){function e(){}return function(t){if(!Bn(t))return{};if(Fr)return Fr(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Lr=function(e,t){return function(n){return e(t(n))}};const Ir=Lr(Object.getPrototypeOf,Object);var Ur=Object.prototype;const zr=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ur)};const Hr=function(e){return"function"!=typeof e.constructor||zr(e)?{}:Br(Ir(e))};const Wr=function(e){return null!=e&&"object"==typeof e};const $r=function(e){return Wr(e)&&"[object Arguments]"==Fn(e)};var Gr=Object.prototype,Xr=Gr.hasOwnProperty,Vr=Gr.propertyIsEnumerable;const qr=$r(function(){return arguments}())?$r:function(e){return Wr(e)&&Xr.call(e,"callee")&&!Vr.call(e,"callee")};const Yr=Array.isArray;const Kr=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};const Jr=function(e){return null!=e&&Kr(e.length)&&!Ln(e)};const Zr=function(e){return Wr(e)&&Jr(e)};const Qr=function(){return!1};var eo="object"==typeof exports&&exports&&!exports.nodeType&&exports,to=eo&&"object"==typeof module&&module&&!module.nodeType&&module,no=to&&to.exports===eo?Rn.Buffer:void 0;const ro=(no?no.isBuffer:void 0)||Qr;var oo=Function.prototype,ao=Object.prototype,io=oo.toString,lo=ao.hasOwnProperty,so=io.call(Object);const co=function(e){if(!Wr(e)||"[object Object]"!=Fn(e))return!1;var t=Ir(e);if(null===t)return!0;var n=lo.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&io.call(n)==so};var uo={};uo["[object Float32Array]"]=uo["[object Float64Array]"]=uo["[object Int8Array]"]=uo["[object Int16Array]"]=uo["[object Int32Array]"]=uo["[object Uint8Array]"]=uo["[object Uint8ClampedArray]"]=uo["[object Uint16Array]"]=uo["[object Uint32Array]"]=!0,uo["[object Arguments]"]=uo["[object Array]"]=uo["[object ArrayBuffer]"]=uo["[object Boolean]"]=uo["[object DataView]"]=uo["[object Date]"]=uo["[object Error]"]=uo["[object Function]"]=uo["[object Map]"]=uo["[object Number]"]=uo["[object Object]"]=uo["[object RegExp]"]=uo["[object Set]"]=uo["[object String]"]=uo["[object WeakMap]"]=!1;const po=function(e){return Wr(e)&&Kr(e.length)&&!!uo[Fn(e)]};const fo=function(e){return function(t){return e(t)}};var ho="object"==typeof exports&&exports&&!exports.nodeType&&exports,mo=ho&&"object"==typeof module&&module&&!module.nodeType&&module,bo=mo&&mo.exports===ho&&_n.process,go=function(){try{var e=mo&&mo.require&&mo.require("util").types;return e||bo&&bo.binding&&bo.binding("util")}catch(e){}}();var vo=go&&go.isTypedArray;const yo=vo?fo(vo):po;const wo=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var xo=Object.prototype.hasOwnProperty;const Eo=function(e,t,n){var r=e[t];xo.call(e,t)&&pn(r,n)&&(void 0!==n||t in e)||_r(e,t,n)};const ko=function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var l=t[a],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),o?_r(n,l,s):Eo(n,l,s)}return n};const _o=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var So=/^(?:0|[1-9]\d*)$/;const Ro=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&So.test(e))&&e>-1&&e%1==0&&e<t};var Oo=Object.prototype.hasOwnProperty;const Co=function(e,t){var n=Yr(e),r=!n&&qr(e),o=!n&&!r&&ro(e),a=!n&&!r&&!o&&yo(e),i=n||r||o||a,l=i?_o(e.length,String):[],s=l.length;for(var c in e)!t&&!Oo.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ro(c,s))||l.push(c);return l};const jo=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Ao=Object.prototype.hasOwnProperty;const To=function(e){if(!Bn(e))return jo(e);var t=zr(e),n=[];for(var r in e)("constructor"!=r||!t&&Ao.call(e,r))&&n.push(r);return n};const Po=function(e){return Jr(e)?Co(e,!0):To(e)};const No=function(e){return ko(e,Po(e))};const Do=function(e,t,n,r,o,a,i){var l=wo(e,n),s=wo(t,n),c=i.get(s);if(c)Sr(e,n,c);else{var u=a?a(l,s,n+"",e,t,i):void 0,p=void 0===u;if(p){var f=Yr(s),d=!f&&ro(s),h=!f&&!d&&yo(s);u=s,f||d||h?Yr(l)?u=l:Zr(l)?u=Mr(l):d?(p=!1,u=Tr(s,!0)):h?(p=!1,u=Dr(s,!0)):u=[]:co(s)||qr(s)?(u=l,qr(l)?u=No(l):Bn(l)&&!Ln(l)||(u=Hr(s))):p=!1}p&&(i.set(s,u),o(u,s,r,a,i),i.delete(s)),Sr(e,n,u)}};const Mo=function e(t,n,r,o,a){t!==n&&Rr(n,(function(i,l){if(a||(a=new Er),Bn(i))Do(t,n,l,r,e,o,a);else{var s=o?o(wo(t,l),i,l+"",t,n,a):void 0;void 0===s&&(s=i),Sr(t,l,s)}}),Po)};const Fo=function(e){return e};const Bo=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)};var Lo=Math.max;const Io=function(e,t,n){return t=Lo(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=Lo(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(i),Bo(e,this,l)}};const Uo=function(e){return function(){return e}};const zo=kr?function(e,t){return kr(e,"toString",{configurable:!0,enumerable:!1,value:Uo(t),writable:!0})}:Fo;var Ho=Date.now;const Wo=function(e){var t=0,n=0;return function(){var r=Ho(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(zo);const $o=function(e,t){return Wo(Io(e,t,Fo),e+"")};const Go=function(e,t,n){if(!Bn(n))return!1;var r=typeof t;return!!("number"==r?Jr(n)&&Ro(t,n.length):"string"==r&&t in n)&&pn(n[t],e)};const Xo=function(e){return $o((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&Go(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}((function(e,t,n){Mo(e,t,n)}));var Vo=function(e){var t=e.zDepth,n=e.radius,r=e.background,o=e.children,a=e.styles,i=void 0===a?{}:a,l=(0,$t.Ay)(Xo({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},i),{"zDepth-1":1===t});return Wt().createElement("div",{style:l.wrap},Wt().createElement("div",{style:l.bg}),Wt().createElement("div",{style:l.content},o))};Vo.propTypes={background:cn().string,zDepth:cn().oneOf([0,1,2,3,4,5]),radius:cn().number,styles:cn().object},Vo.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};const qo=Vo;const Yo=function(){return Rn.Date.now()};var Ko=/\s/;const Jo=function(e){for(var t=e.length;t--&&Ko.test(e.charAt(t)););return t};var Zo=/^\s+/;const Qo=function(e){return e?e.slice(0,Jo(e)+1).replace(Zo,""):e};const ea=function(e){return"symbol"==typeof e||Wr(e)&&"[object Symbol]"==Fn(e)};var ta=/^[-+]0x[0-9a-f]+$/i,na=/^0b[01]+$/i,ra=/^0o[0-7]+$/i,oa=parseInt;const aa=function(e){if("number"==typeof e)return e;if(ea(e))return NaN;if(Bn(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bn(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qo(e);var n=na.test(e);return n||ra.test(e)?oa(e.slice(2),n?2:8):ta.test(e)?NaN:+e};var ia=Math.max,la=Math.min;const sa=function(e,t,n){var r,o,a,i,l,s,c=0,u=!1,p=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||p&&e-c>=a}function m(){var e=Yo();if(h(e))return b(e);l=setTimeout(m,function(e){var n=t-(e-s);return p?la(n,a-(e-c)):n}(e))}function b(e){return l=void 0,f&&r?d(e):(r=o=void 0,i)}function g(){var e=Yo(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(m,t),u?d(e):i}(s);if(p)return clearTimeout(l),l=setTimeout(m,t),d(s)}return void 0===l&&(l=setTimeout(m,t)),i}return t=aa(t)||0,Bn(n)&&(u=!!n.leading,a=(p="maxWait"in n)?ia(aa(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},g.flush=function(){return void 0===l?i:b(Yo())},g};const ca=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Bn(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),sa(e,t,{leading:r,maxWait:t,trailing:o})};var ua=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}}();var pa=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,a=r.height,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(n.getBoundingClientRect().left+window.pageXOffset),c=l-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>a&&(c=a);var u=s/o,p=1-c/a;return{h:t.h,s:u,v:p,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=ca((function(e,t,n){e(t,n)}),50),n}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),ua(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,o=t.black,a=t.pointer,i=t.circle,l=(0,$t.Ay)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:o,pointer:a,circle:i}},{custom:!!this.props.style});return Wt().createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Wt().createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),Wt().createElement("div",{style:l.white,className:"saturation-white"},Wt().createElement("div",{style:l.black,className:"saturation-black"}),Wt().createElement("div",{style:l.pointer},this.props.pointer?Wt().createElement(this.props.pointer,this.props):Wt().createElement("div",{style:l.circle}))))}}]),t}(Ht.PureComponent||Ht.Component);const fa=pa;const da=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};const ha=Lr(Object.keys,Object);var ma=Object.prototype.hasOwnProperty;const ba=function(e){if(!zr(e))return ha(e);var t=[];for(var n in Object(e))ma.call(e,n)&&"constructor"!=n&&t.push(n);return t};const ga=function(e){return Jr(e)?Co(e):ba(e)};const va=function(e,t){return function(n,r){if(null==n)return n;if(!Jr(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Object(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}((function(e,t){return e&&Rr(e,t,ga)}));const ya=function(e){return"function"==typeof e?e:Fo};const wa=function(e,t){return(Yr(e)?da:va)(e,ya(t))};function xa(e){return xa="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},xa(e)}var Ea=/^\s+/,ka=/\s+$/;function _a(e,t){if(t=t||{},(e=e||"")instanceof _a)return e;if(!(this instanceof _a))return new _a(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;"string"==typeof e&&(e=function(e){e=e.replace(Ea,"").replace(ka,"").toLowerCase();var t,n=!1;if(za[e])e=za[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=ei.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=ei.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=ei.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=ei.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=ei.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=ei.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=ei.hex8.exec(e))return{r:Xa(t[1]),g:Xa(t[2]),b:Xa(t[3]),a:Ka(t[4]),format:n?"name":"hex8"};if(t=ei.hex6.exec(e))return{r:Xa(t[1]),g:Xa(t[2]),b:Xa(t[3]),format:n?"name":"hex"};if(t=ei.hex4.exec(e))return{r:Xa(t[1]+""+t[1]),g:Xa(t[2]+""+t[2]),b:Xa(t[3]+""+t[3]),a:Ka(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=ei.hex3.exec(e))return{r:Xa(t[1]+""+t[1]),g:Xa(t[2]+""+t[2]),b:Xa(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==xa(e)&&(ti(e.r)&&ti(e.g)&&ti(e.b)?(s=e.r,c=e.g,u=e.b,t={r:255*$a(s,255),g:255*$a(c,255),b:255*$a(u,255)},i=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):ti(e.h)&&ti(e.s)&&ti(e.v)?(r=qa(e.s),o=qa(e.v),t=function(e,t,n){e=6*$a(e,360),t=$a(t,100),n=$a(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,c=[n,i,a,a,l,n][s],u=[l,n,n,i,a,a][s],p=[a,a,l,n,n,i][s];return{r:255*c,g:255*u,b:255*p}}(e.h,r,o),i=!0,l="hsv"):ti(e.h)&&ti(e.s)&&ti(e.l)&&(r=qa(e.s),a=qa(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=$a(e,360),t=$a(t,100),n=$a(n,100),0===t)r=o=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=i(s,l,e+1/3),o=i(s,l,e),a=i(s,l,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,a),i=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a));var s,c,u;return n=Wa(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.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._ok=n.ok}function Sa(e,t,n){e=$a(e,255),t=$a(t,255),n=$a(n,255);var r,o,a=Math.max(e,t,n),i=Math.min(e,t,n),l=(a+i)/2;if(a==i)r=o=0;else{var s=a-i;switch(o=l>.5?s/(2-a-i):s/(a+i),a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,l}}function Ra(e,t,n){e=$a(e,255),t=$a(t,255),n=$a(n,255);var r,o,a=Math.max(e,t,n),i=Math.min(e,t,n),l=a,s=a-i;if(o=0===a?0:s/a,a==i)r=0;else{switch(a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,v:l}}function Oa(e,t,n,r){var o=[Va(Math.round(e).toString(16)),Va(Math.round(t).toString(16)),Va(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Ca(e,t,n,r){return[Va(Ya(r)),Va(Math.round(e).toString(16)),Va(Math.round(t).toString(16)),Va(Math.round(n).toString(16))].join("")}function ja(e,t){t=0===t?0:t||10;var n=_a(e).toHsl();return n.s-=t/100,n.s=Ga(n.s),_a(n)}function Aa(e,t){t=0===t?0:t||10;var n=_a(e).toHsl();return n.s+=t/100,n.s=Ga(n.s),_a(n)}function Ta(e){return _a(e).desaturate(100)}function Pa(e,t){t=0===t?0:t||10;var n=_a(e).toHsl();return n.l+=t/100,n.l=Ga(n.l),_a(n)}function Na(e,t){t=0===t?0:t||10;var n=_a(e).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))),_a(n)}function Da(e,t){t=0===t?0:t||10;var n=_a(e).toHsl();return n.l-=t/100,n.l=Ga(n.l),_a(n)}function Ma(e,t){var n=_a(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,_a(n)}function Fa(e){var t=_a(e).toHsl();return t.h=(t.h+180)%360,_a(t)}function Ba(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=_a(e).toHsl(),r=[_a(e)],o=360/t,a=1;a<t;a++)r.push(_a({h:(n.h+a*o)%360,s:n.s,l:n.l}));return r}function La(e){var t=_a(e).toHsl(),n=t.h;return[_a(e),_a({h:(n+72)%360,s:t.s,l:t.l}),_a({h:(n+216)%360,s:t.s,l:t.l})]}function Ia(e,t,n){t=t||6,n=n||30;var r=_a(e).toHsl(),o=360/n,a=[_a(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(_a(r));return a}function Ua(e,t){t=t||6;for(var n=_a(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(_a({h:r,s:o,v:a})),a=(a+l)%1;return i}_a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=Wa(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Ra(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Ra(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+")"},toHsl:function(){var e=Sa(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Sa(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+")"},toHex:function(e){return Oa(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[Va(Math.round(e).toString(16)),Va(Math.round(t).toString(16)),Va(Math.round(n).toString(16)),Va(Ya(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*$a(this._r,255))+"%",g:Math.round(100*$a(this._g,255))+"%",b:Math.round(100*$a(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*$a(this._r,255))+"%, "+Math.round(100*$a(this._g,255))+"%, "+Math.round(100*$a(this._b,255))+"%)":"rgba("+Math.round(100*$a(this._r,255))+"%, "+Math.round(100*$a(this._g,255))+"%, "+Math.round(100*$a(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Ha[Oa(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Ca(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=_a(e);n="#"+Ca(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"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()},clone:function(){return _a(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Pa,arguments)},brighten:function(){return this._applyModification(Na,arguments)},darken:function(){return this._applyModification(Da,arguments)},desaturate:function(){return this._applyModification(ja,arguments)},saturate:function(){return this._applyModification(Aa,arguments)},greyscale:function(){return this._applyModification(Ta,arguments)},spin:function(){return this._applyModification(Ma,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Ia,arguments)},complement:function(){return this._applyCombination(Fa,arguments)},monochromatic:function(){return this._applyCombination(Ua,arguments)},splitcomplement:function(){return this._applyCombination(La,arguments)},triad:function(){return this._applyCombination(Ba,[3])},tetrad:function(){return this._applyCombination(Ba,[4])}},_a.fromRatio=function(e,t){if("object"==xa(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:qa(e[r]));e=n}return _a(e,t)},_a.equals=function(e,t){return!(!e||!t)&&_a(e).toRgbString()==_a(t).toRgbString()},_a.random=function(){return _a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},_a.mix=function(e,t,n){n=0===n?0:n||50;var r=_a(e).toRgb(),o=_a(t).toRgb(),a=n/100;return _a({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})},_a.readability=function(e,t){var n=_a(e),r=_a(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},_a.isReadable=function(e,t,n){var r,o,a=_a.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},_a.mostReadable=function(e,t,n){var r,o,a,i,l=null,s=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var c=0;c<t.length;c++)(r=_a.readability(e,t[c]))>s&&(s=r,l=_a(t[c]));return _a.isReadable(e,l,{level:a,size:i})||!o?l:(n.includeFallbackColors=!1,_a.mostReadable(e,["#fff","#000"],n))};var za=_a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ha=_a.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(za);function Wa(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function $a(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=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Ga(e){return Math.min(1,Math.max(0,e))}function Xa(e){return parseInt(e,16)}function Va(e){return 1==e.length?"0"+e:""+e}function qa(e){return e<=1&&(e=100*e+"%"),e}function Ya(e){return Math.round(255*parseFloat(e)).toString(16)}function Ka(e){return Xa(e)/255}var Ja,Za,Qa,ei=(Za="[\\s|\\(]+("+(Ja="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Ja+")[,|\\s]+("+Ja+")\\s*\\)?",Qa="[\\s|\\(]+("+Ja+")[,|\\s]+("+Ja+")[,|\\s]+("+Ja+")[,|\\s]+("+Ja+")\\s*\\)?",{CSS_UNIT:new RegExp(Ja),rgb:new RegExp("rgb"+Za),rgba:new RegExp("rgba"+Qa),hsl:new RegExp("hsl"+Za),hsla:new RegExp("hsla"+Qa),hsv:new RegExp("hsv"+Za),hsva:new RegExp("hsva"+Qa),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 ti(e){return!!ei.CSS_UNIT.exec(e)}var ni=function(e){var t=0,n=0;return wa(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},ri=function(e,t){var n=e.hex?_a(e.hex):_a(e),r=n.toHsl(),o=n.toHsv(),a=n.toRgb(),i=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===i&&0===a.a?"transparent":"#"+i,rgb:a,hsv:o,oldHue:e.h||t||r.h,source:e.source}},oi=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&_a(e).isValid()},ai=function(e){if(!e)return"#fff";var t=ri(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},ii=function(e,t){return _a(t+" ("+e.replace("°","")+")")._ok},li=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},si=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}}();const ci=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=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,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(ni(e)){var r=ri(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(ni(e)){var r=ri(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=li({},ri(e.color,0)),t.debounce=sa((function(e,t,n){e(t,n)}),100),t}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)}(n,t),si(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),Wt().createElement(e,li({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return li({},ri(e.color,t.oldHue))}}]),n}(Ht.PureComponent||Ht.Component);return t.propTypes=li({},e.propTypes),t.defaultProps=li({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};var ui=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},pi=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}}();function fi(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 di=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};const hi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=n=fi(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(a))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},fi(n,t)}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)}(r,n),pi(r,[{key:"render",value:function(){return Wt().createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},Wt().createElement(e,ui({},this.props,this.state)))}}]),r}(Wt().Component)}((function(e){var t=e.color,n=e.style,r=e.onClick,o=void 0===r?function(){}:r,a=e.onHover,i=e.title,l=void 0===i?t:i,s=e.children,c=e.focus,u=e.focusStyle,p=void 0===u?{}:u,f="transparent"===t,d=(0,$t.Ay)({default:{swatch:di({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?p:{})}}),h={};return a&&(h.onMouseOver=function(e){return a(t,e)}),Wt().createElement("div",di({style:d.swatch,onClick:function(e){return o(t,e)},title:l,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&o(t,e)}},h),s,f&&Wt().createElement(Yt,{borderRadius:d.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))}));const mi=function(e){var t=e.direction,n=(0,$t.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return Wt().createElement("div",{style:n.picker})};var bi=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},gi=function(e){var t=e.rgb,n=e.hsl,r=e.width,o=e.height,a=e.onChange,i=e.direction,l=e.style,s=e.renderers,c=e.pointer,u=e.className,p=void 0===u?"":u,f=(0,$t.Ay)({default:{picker:{position:"relative",width:r,height:o},alpha:{radius:"2px",style:l}}});return Wt().createElement("div",{style:f.picker,className:"alpha-picker "+p},Wt().createElement(Qt,bi({},f.alpha,{rgb:t,hsl:n,pointer:c,renderers:s,onChange:a,direction:i})))};gi.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:mi};ci(gi);const vi=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};const yi=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const wi=function(e){return this.__data__.has(e)};function xi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new yr;++t<n;)this.add(e[t])}xi.prototype.add=xi.prototype.push=yi,xi.prototype.has=wi;const Ei=xi;const ki=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};const _i=function(e,t){return e.has(t)};const Si=function(e,t,n,r,o,a){var i=1&n,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var p=-1,f=!0,d=2&n?new Ei:void 0;for(a.set(e,t),a.set(t,e);++p<l;){var h=e[p],m=t[p];if(r)var b=i?r(m,h,p,t,e,a):r(h,m,p,e,t,a);if(void 0!==b){if(b)continue;f=!1;break}if(d){if(!ki(t,(function(e,t){if(!_i(d,t)&&(h===e||o(h,e,n,r,a)))return d.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f};const Ri=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};const Oi=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Ci=On?On.prototype:void 0,ji=Ci?Ci.valueOf:void 0;const Ai=function(e,t,n,r,o,a,i){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||!a(new Pr(e),new Pr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return pn(+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 l=Ri;case"[object Set]":var s=1&r;if(l||(l=Oi),e.size!=t.size&&!s)return!1;var c=i.get(e);if(c)return c==t;r|=2,i.set(e,t);var u=Si(l(e),l(t),r,o,a,i);return i.delete(e),u;case"[object Symbol]":if(ji)return ji.call(e)==ji.call(t)}return!1};const Ti=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};const Pi=function(e,t,n){var r=t(e);return Yr(e)?r:Ti(r,n(e))};const Ni=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};const Di=function(){return[]};var Mi=Object.prototype.propertyIsEnumerable,Fi=Object.getOwnPropertySymbols;const Bi=Fi?function(e){return null==e?[]:(e=Object(e),Ni(Fi(e),(function(t){return Mi.call(e,t)})))}:Di;const Li=function(e){return Pi(e,ga,Bi)};var Ii=Object.prototype.hasOwnProperty;const Ui=function(e,t,n,r,o,a){var i=1&n,l=Li(e),s=l.length;if(s!=Li(t).length&&!i)return!1;for(var c=s;c--;){var u=l[c];if(!(i?u in t:Ii.call(t,u)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var h=i;++c<s;){var m=e[u=l[c]],b=t[u];if(r)var g=i?r(b,m,u,t,e,a):r(m,b,u,e,t,a);if(!(void 0===g?m===b||o(m,b,n,r,a):g)){d=!1;break}h||(h="constructor"==u)}if(d&&!h){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(d=!1)}return a.delete(e),a.delete(t),d};const zi=Qn(Rn,"DataView");const Hi=Qn(Rn,"Promise");const Wi=Qn(Rn,"Set");const $i=Qn(Rn,"WeakMap");var Gi="[object Map]",Xi="[object Promise]",Vi="[object Set]",qi="[object WeakMap]",Yi="[object DataView]",Ki=$n(zi),Ji=$n(er),Zi=$n(Hi),Qi=$n(Wi),el=$n($i),tl=Fn;(zi&&tl(new zi(new ArrayBuffer(1)))!=Yi||er&&tl(new er)!=Gi||Hi&&tl(Hi.resolve())!=Xi||Wi&&tl(new Wi)!=Vi||$i&&tl(new $i)!=qi)&&(tl=function(e){var t=Fn(e),n="[object Object]"==t?e.constructor:void 0,r=n?$n(n):"";if(r)switch(r){case Ki:return Yi;case Ji:return Gi;case Zi:return Xi;case Qi:return Vi;case el:return qi}return t});const nl=tl;var rl="[object Arguments]",ol="[object Array]",al="[object Object]",il=Object.prototype.hasOwnProperty;const ll=function(e,t,n,r,o,a){var i=Yr(e),l=Yr(t),s=i?ol:nl(e),c=l?ol:nl(t),u=(s=s==rl?al:s)==al,p=(c=c==rl?al:c)==al,f=s==c;if(f&&ro(e)){if(!ro(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new Er),i||yo(e)?Si(e,t,n,r,o,a):Ai(e,t,s,n,r,o,a);if(!(1&n)){var d=u&&il.call(e,"__wrapped__"),h=p&&il.call(t,"__wrapped__");if(d||h){var m=d?e.value():e,b=h?t.value():t;return a||(a=new Er),o(m,b,n,r,a)}}return!!f&&(a||(a=new Er),Ui(e,t,n,r,o,a))};const sl=function e(t,n,r,o,a){return t===n||(null==t||null==n||!Wr(t)&&!Wr(n)?t!=t&&n!=n:ll(t,n,r,o,e,a))};const cl=function(e,t,n,r){var o=n.length,a=o,i=!r;if(null==e)return!a;for(e=Object(e);o--;){var l=n[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var s=(l=n[o])[0],c=e[s],u=l[1];if(i&&l[2]){if(void 0===c&&!(s in e))return!1}else{var p=new Er;if(r)var f=r(c,u,s,e,t,p);if(!(void 0===f?sl(u,c,3,r,p):f))return!1}}return!0};const ul=function(e){return e==e&&!Bn(e)};const pl=function(e){for(var t=ga(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ul(o)]}return t};const fl=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};const dl=function(e){var t=pl(e);return 1==t.length&&t[0][2]?fl(t[0][0],t[0][1]):function(n){return n===e||cl(n,e,t)}};var hl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ml=/^\w*$/;const bl=function(e,t){if(Yr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ea(e))||(ml.test(e)||!hl.test(e)||null!=t&&e in Object(t))};function gl(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(gl.Cache||yr),n}gl.Cache=yr;const vl=gl;const yl=function(e){var t=vl(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t};var wl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xl=/\\(\\)?/g;const El=yl((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(wl,(function(e,n,r,o){t.push(r?o.replace(xl,"$1"):n||e)})),t}));var kl=On?On.prototype:void 0,_l=kl?kl.toString:void 0;const Sl=function e(t){if("string"==typeof t)return t;if(Yr(t))return vi(t,e)+"";if(ea(t))return _l?_l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const Rl=function(e){return null==e?"":Sl(e)};const Ol=function(e,t){return Yr(e)?e:bl(e,t)?[e]:El(Rl(e))};const Cl=function(e){if("string"==typeof e||ea(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};const jl=function(e,t){for(var n=0,r=(t=Ol(t,e)).length;null!=e&&n<r;)e=e[Cl(t[n++])];return n&&n==r?e:void 0};const Al=function(e,t,n){var r=null==e?void 0:jl(e,t);return void 0===r?n:r};const Tl=function(e,t){return null!=e&&t in Object(e)};const Pl=function(e,t,n){for(var r=-1,o=(t=Ol(t,e)).length,a=!1;++r<o;){var i=Cl(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&Kr(o)&&Ro(i,o)&&(Yr(e)||qr(e))};const Nl=function(e,t){return null!=e&&Pl(e,t,Tl)};const Dl=function(e,t){return bl(e)&&ul(t)?fl(Cl(e),t):function(n){var r=Al(n,e);return void 0===r&&r===t?Nl(n,e):sl(t,r,3)}};const Ml=function(e){return function(t){return null==t?void 0:t[e]}};const Fl=function(e){return function(t){return jl(t,e)}};const Bl=function(e){return bl(e)?Ml(Cl(e)):Fl(e)};const Ll=function(e){return"function"==typeof e?e:null==e?Fo:"object"==typeof e?Yr(e)?Dl(e[0],e[1]):dl(e):Bl(e)};const Il=function(e,t){var n=-1,r=Jr(e)?Array(e.length):[];return va(e,(function(e,o,a){r[++n]=t(e,o,a)})),r};const Ul=function(e,t){return(Yr(e)?vi:Il)(e,Ll(t,3))};const zl=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,o=(0,$t.Ay)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return Wt().createElement("div",{style:o.swatches},Ul(t,(function(e){return Wt().createElement(hi,{key:e,color:e,style:o.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})})),Wt().createElement("div",{style:o.clear}))};var Hl=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,o=e.colors,a=e.width,i=e.triangle,l=e.styles,s=void 0===l?{}:l,c=e.className,u=void 0===c?"":c,p="transparent"===r,f=function(e,n){oi(e)&&t({hex:e,source:"hex"},n)},d=(0,$t.Ay)(Xo({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:ai(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},s),{"hide-triangle":"hide"===i});return Wt().createElement("div",{style:d.card,className:"block-picker "+u},Wt().createElement("div",{style:d.triangle}),Wt().createElement("div",{style:d.head},p&&Wt().createElement(Yt,{borderRadius:"6px 6px 0 0"}),Wt().createElement("div",{style:d.label},r)),Wt().createElement("div",{style:d.body},Wt().createElement(zl,{colors:o,onClick:f,onSwatchHover:n}),Wt().createElement(rn,{style:{input:d.input},value:r,onChange:f})))};Hl.propTypes={width:cn().oneOfType([cn().string,cn().number]),colors:cn().arrayOf(cn().string),triangle:cn().oneOf(["top","hide"]),styles:cn().object},Hl.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};ci(Hl);var Wl={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"},$l={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"},Gl={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"},Xl={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Vl={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"},ql={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"},Yl={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"},Kl={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Jl={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Zl={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"},Ql={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},es={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},ts={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},ns={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},rs={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"},os={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},as={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},is={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"};var ls=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,o=e.hover,a=e.active,i=e.circleSize,l=e.circleSpacing,s=(0,$t.Ay)({default:{swatch:{width:i,height:i,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(i/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:o,active:a});return Wt().createElement("div",{style:s.swatch},Wt().createElement(hi,{style:s.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:s.Swatch.boxShadow+", 0 0 5px "+t}}))};ls.defaultProps={circleSize:28,circleSpacing:14};const ss=(0,$t.H8)(ls);var cs=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,o=e.colors,a=e.hex,i=e.circleSize,l=e.styles,s=void 0===l?{}:l,c=e.circleSpacing,u=e.className,p=void 0===u?"":u,f=(0,$t.Ay)(Xo({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},s)),d=function(e,t){return n({hex:e,source:"hex"},t)};return Wt().createElement("div",{style:f.card,className:"circle-picker "+p},Ul(o,(function(e){return Wt().createElement(ss,{key:e,color:e,onClick:d,onSwatchHover:r,active:a===e.toLowerCase(),circleSize:i,circleSpacing:c})})))};cs.propTypes={width:cn().oneOfType([cn().string,cn().number]),circleSize:cn().number,circleSpacing:cn().number,styles:cn().object},cs.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Wl[500],$l[500],Gl[500],Xl[500],Vl[500],ql[500],Yl[500],Kl[500],Jl[500],Zl[500],Ql[500],es[500],ts[500],ns[500],rs[500],os[500],as[500],is[500]],styles:{}};ci(cs);const us=function(e){return void 0===e};var ps=n(4657),fs=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}}();var ds=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?oi(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(us(e.s)?n.props.hsl.s:e.s),l:Number(us(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}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),fs(t,[{key:"render",value:function(){var e=this,t=(0,$t.Ay)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=Wt().createElement("div",{style:t.fields,className:"flexbox-fix"},Wt().createElement("div",{style:t.field},Wt().createElement(rn,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=Wt().createElement("div",{style:t.fields,className:"flexbox-fix"},Wt().createElement("div",{style:t.field},Wt().createElement(rn,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),Wt().createElement("div",{style:t.field},Wt().createElement(rn,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),Wt().createElement("div",{style:t.field},Wt().createElement(rn,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),Wt().createElement("div",{style:t.alpha},Wt().createElement(rn,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=Wt().createElement("div",{style:t.fields,className:"flexbox-fix"},Wt().createElement("div",{style:t.field},Wt().createElement(rn,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),Wt().createElement("div",{style:t.field},Wt().createElement(rn,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),Wt().createElement("div",{style:t.field},Wt().createElement(rn,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),Wt().createElement("div",{style:t.alpha},Wt().createElement(rn,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),Wt().createElement("div",{style:t.wrap,className:"flexbox-fix"},n,Wt().createElement("div",{style:t.toggle},Wt().createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},Wt().createElement(ps.A,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(Wt().Component);ds.defaultProps={view:"hex"};const hs=ds;const ms=function(){var e=(0,$t.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return Wt().createElement("div",{style:e.picker})};const bs=function(){var e=(0,$t.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return Wt().createElement("div",{style:e.picker})};var gs=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,o=e.rgb,a=e.hsl,i=e.hsv,l=e.hex,s=e.renderers,c=e.styles,u=void 0===c?{}:c,p=e.className,f=void 0===p?"":p,d=e.defaultView,h=(0,$t.Ay)(Xo({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},u),{disableAlpha:r});return Wt().createElement("div",{style:h.picker,className:"chrome-picker "+f},Wt().createElement("div",{style:h.saturation},Wt().createElement(fa,{style:h.Saturation,hsl:a,hsv:i,pointer:bs,onChange:n})),Wt().createElement("div",{style:h.body},Wt().createElement("div",{style:h.controls,className:"flexbox-fix"},Wt().createElement("div",{style:h.color},Wt().createElement("div",{style:h.swatch},Wt().createElement("div",{style:h.active}),Wt().createElement(Yt,{renderers:s}))),Wt().createElement("div",{style:h.toggles},Wt().createElement("div",{style:h.hue},Wt().createElement(ln,{style:h.Hue,hsl:a,pointer:ms,onChange:n})),Wt().createElement("div",{style:h.alpha},Wt().createElement(Qt,{style:h.Alpha,rgb:o,hsl:a,pointer:ms,renderers:s,onChange:n})))),Wt().createElement(hs,{rgb:o,hsl:a,hex:l,view:d,onChange:n,disableAlpha:r})))};gs.propTypes={width:cn().oneOfType([cn().string,cn().number]),disableAlpha:cn().bool,styles:cn().object,defaultView:cn().oneOf(["hex","rgb","hsl"])},gs.defaultProps={width:225,disableAlpha:!1,styles:{}};const vs=ci(gs);const ys=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,a=e.active,i=(0,$t.Ay)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:ai(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return Wt().createElement(hi,{style:i.color,color:t,onClick:r,onHover:o,focusStyle:{boxShadow:"0 0 4px "+t}},Wt().createElement("div",{style:i.dot}))};const ws=function(e){var t=e.hex,n=e.rgb,r=e.onChange,o=(0,$t.Ay)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return Wt().createElement("div",{style:o.fields,className:"flexbox-fix"},Wt().createElement("div",{style:o.active}),Wt().createElement(rn,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:t,onChange:a}),Wt().createElement(rn,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:a}),Wt().createElement(rn,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:a}),Wt().createElement(rn,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:a}))};var xs=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,o=e.hex,a=e.rgb,i=e.styles,l=void 0===i?{}:i,s=e.className,c=void 0===s?"":s,u=(0,$t.Ay)(Xo({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),p=function(e,n){e.hex?oi(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return Wt().createElement(qo,{style:u.Compact,styles:l},Wt().createElement("div",{style:u.compact,className:"compact-picker "+c},Wt().createElement("div",null,Ul(r,(function(e){return Wt().createElement(ys,{key:e,color:e,active:e.toLowerCase()===o,onClick:p,onSwatchHover:n})})),Wt().createElement("div",{style:u.clear})),Wt().createElement(ws,{hex:o,rgb:a,onChange:p})))};xs.propTypes={colors:cn().arrayOf(cn().string),styles:cn().object},xs.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};ci(xs);const Es=(0,$t.H8)((function(e){var t=e.hover,n=e.color,r=e.onClick,o=e.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},i=(0,$t.Ay)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:t});return Wt().createElement("div",{style:i.swatch},Wt().createElement(hi,{color:n,onClick:r,onHover:o,focusStyle:a}))}));var ks=function(e){var t=e.width,n=e.colors,r=e.onChange,o=e.onSwatchHover,a=e.triangle,i=e.styles,l=void 0===i?{}:i,s=e.className,c=void 0===s?"":s,u=(0,$t.Ay)(Xo({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":"hide"===a,"top-left-triangle":"top-left"===a,"top-right-triangle":"top-right"===a,"bottom-left-triangle":"bottom-left"===a,"bottom-right-triangle":"bottom-right"===a}),p=function(e,t){return r({hex:e,source:"hex"},t)};return Wt().createElement("div",{style:u.card,className:"github-picker "+c},Wt().createElement("div",{style:u.triangleShadow}),Wt().createElement("div",{style:u.triangle}),Ul(n,(function(e){return Wt().createElement(Es,{color:e,key:e,onClick:p,onSwatchHover:o})})))};ks.propTypes={width:cn().oneOfType([cn().string,cn().number]),colors:cn().arrayOf(cn().string),triangle:cn().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:cn().object},ks.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};ci(ks);const _s=function(e){var t=e.direction,n=(0,$t.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return Wt().createElement("div",{style:n.picker})};var Ss=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},Rs=function(e){var t=e.width,n=e.height,r=e.onChange,o=e.hsl,a=e.direction,i=e.pointer,l=e.styles,s=void 0===l?{}:l,c=e.className,u=void 0===c?"":c,p=(0,$t.Ay)(Xo({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},s));return Wt().createElement("div",{style:p.picker,className:"hue-picker "+u},Wt().createElement(ln,Ss({},p.hue,{hsl:o,pointer:i,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:a})))};Rs.propTypes={styles:cn().object},Rs.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:_s,styles:{}};ci(Rs);ci((function(e){var t=e.onChange,n=e.hex,r=e.rgb,o=e.styles,a=void 0===o?{}:o,i=e.className,l=void 0===i?"":i,s=(0,$t.Ay)(Xo({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),c=function(e,n){e.hex?oi(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n)};return Wt().createElement(qo,{styles:a},Wt().createElement("div",{style:s.material,className:"material-picker "+l},Wt().createElement(rn,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"hex",value:n,onChange:c}),Wt().createElement("div",{style:s.split,className:"flexbox-fix"},Wt().createElement("div",{style:s.third},Wt().createElement(rn,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:r.r,onChange:c})),Wt().createElement("div",{style:s.third},Wt().createElement(rn,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:r.g,onChange:c})),Wt().createElement("div",{style:s.third},Wt().createElement(rn,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:r.b,onChange:c})))))}));const Os=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,o=e.hex,a=(0,$t.Ay)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),i=function(e,o){e["#"]?oi(e["#"])&&t({hex:e["#"],source:"hex"},o):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},o):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"},o)};return Wt().createElement("div",{style:a.fields},Wt().createElement(rn,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(r.h),onChange:i}),Wt().createElement(rn,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(100*r.s),onChange:i}),Wt().createElement(rn,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(100*r.v),onChange:i}),Wt().createElement("div",{style:a.divider}),Wt().createElement(rn,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),Wt().createElement(rn,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),Wt().createElement(rn,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}),Wt().createElement("div",{style:a.divider}),Wt().createElement(rn,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:o.replace("#",""),onChange:i}),Wt().createElement("div",{style:a.fieldSymbols},Wt().createElement("div",{style:a.symbol},"°"),Wt().createElement("div",{style:a.symbol},"%"),Wt().createElement("div",{style:a.symbol},"%")))};const Cs=function(e){var t=e.hsl,n=(0,$t.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return Wt().createElement("div",{style:n.picker})};const js=function(){var e=(0,$t.Ay)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return Wt().createElement("div",{style:e.pointer},Wt().createElement("div",{style:e.left},Wt().createElement("div",{style:e.leftInside})),Wt().createElement("div",{style:e.right},Wt().createElement("div",{style:e.rightInside})))};const As=function(e){var t=e.onClick,n=e.label,r=e.children,o=e.active,a=(0,$t.Ay)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return Wt().createElement("div",{style:a.button,onClick:t},n||r)};const Ts=function(e){var t=e.rgb,n=e.currentColor,r=(0,$t.Ay)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return Wt().createElement("div",null,Wt().createElement("div",{style:r.label},"new"),Wt().createElement("div",{style:r.swatches},Wt().createElement("div",{style:r.new}),Wt().createElement("div",{style:r.current})),Wt().createElement("div",{style:r.label},"current"))};var Ps=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}}();var Ns=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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));return n.state={currentColor:e.hex},n}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),Ps(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,o=void 0===r?"":r,a=(0,$t.Ay)(Xo({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return Wt().createElement("div",{style:a.picker,className:"photoshop-picker "+o},Wt().createElement("div",{style:a.head},this.props.header),Wt().createElement("div",{style:a.body,className:"flexbox-fix"},Wt().createElement("div",{style:a.saturation},Wt().createElement(fa,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:Cs,onChange:this.props.onChange})),Wt().createElement("div",{style:a.hue},Wt().createElement(ln,{direction:"vertical",hsl:this.props.hsl,pointer:js,onChange:this.props.onChange})),Wt().createElement("div",{style:a.controls},Wt().createElement("div",{style:a.top,className:"flexbox-fix"},Wt().createElement("div",{style:a.previews},Wt().createElement(Ts,{rgb:this.props.rgb,currentColor:this.state.currentColor})),Wt().createElement("div",{style:a.actions},Wt().createElement(As,{label:"OK",onClick:this.props.onAccept,active:!0}),Wt().createElement(As,{label:"Cancel",onClick:this.props.onCancel}),Wt().createElement(Os,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(Wt().Component);Ns.propTypes={header:cn().string,styles:cn().object},Ns.defaultProps={header:"Color Picker",styles:{}};ci(Ns);const Ds=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,o=e.hex,a=e.disableAlpha,i=(0,$t.Ay)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),l=function(e,o){e.hex?oi(e.hex)&&t({hex:e.hex,source:"hex"},o):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},o):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},o))};return Wt().createElement("div",{style:i.fields,className:"flexbox-fix"},Wt().createElement("div",{style:i.double},Wt().createElement(rn,{style:{input:i.input,label:i.label},label:"hex",value:o.replace("#",""),onChange:l})),Wt().createElement("div",{style:i.single},Wt().createElement(rn,{style:{input:i.input,label:i.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),Wt().createElement("div",{style:i.single},Wt().createElement(rn,{style:{input:i.input,label:i.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),Wt().createElement("div",{style:i.single},Wt().createElement(rn,{style:{input:i.input,label:i.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),Wt().createElement("div",{style:i.alpha},Wt().createElement(rn,{style:{input:i.input,label:i.label},label:"a",value:Math.round(100*n.a),onChange:l,dragLabel:"true",dragMax:"100"})))};var Ms=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},Fs=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,a=(0,$t.Ay)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),i=function(e,t){r({hex:e,source:"hex"},t)};return Wt().createElement("div",{style:a.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return Wt().createElement("div",{key:n,style:a.swatchWrap},Wt().createElement(hi,Ms({},t,{style:a.swatch,onClick:i,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};Fs.propTypes={colors:cn().arrayOf(cn().oneOfType([cn().string,cn().shape({color:cn().string,title:cn().string})])).isRequired};const Bs=Fs;var Ls=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},Is=function(e){var t=e.width,n=e.rgb,r=e.hex,o=e.hsv,a=e.hsl,i=e.onChange,l=e.onSwatchHover,s=e.disableAlpha,c=e.presetColors,u=e.renderers,p=e.styles,f=void 0===p?{}:p,d=e.className,h=void 0===d?"":d,m=(0,$t.Ay)(Xo({default:Ls({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},f),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},f),{disableAlpha:s});return Wt().createElement("div",{style:m.picker,className:"sketch-picker "+h},Wt().createElement("div",{style:m.saturation},Wt().createElement(fa,{style:m.Saturation,hsl:a,hsv:o,onChange:i})),Wt().createElement("div",{style:m.controls,className:"flexbox-fix"},Wt().createElement("div",{style:m.sliders},Wt().createElement("div",{style:m.hue},Wt().createElement(ln,{style:m.Hue,hsl:a,onChange:i})),Wt().createElement("div",{style:m.alpha},Wt().createElement(Qt,{style:m.Alpha,rgb:n,hsl:a,renderers:u,onChange:i}))),Wt().createElement("div",{style:m.color},Wt().createElement(Yt,null),Wt().createElement("div",{style:m.activeColor}))),Wt().createElement(Ds,{rgb:n,hsl:a,hex:r,onChange:i,disableAlpha:s}),Wt().createElement(Bs,{colors:c,onClick:i,onSwatchHover:l}))};Is.propTypes={disableAlpha:cn().bool,width:cn().oneOfType([cn().string,cn().number]),styles:cn().object},Is.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};ci(Is);const Us=function(e){var t=e.hsl,n=e.offset,r=e.onClick,o=void 0===r?function(){}:r,a=e.active,i=e.first,l=e.last,s=(0,$t.Ay)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:i,last:l});return Wt().createElement("div",{style:s.swatch,onClick:function(e){return o({h:t.h,s:.5,l:n,source:"hsl"},e)}})};const zs=function(e){var t=e.onClick,n=e.hsl,r=(0,$t.Ay)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),o=.1;return Wt().createElement("div",{style:r.swatches},Wt().createElement("div",{style:r.swatch},Wt().createElement(Us,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<o&&Math.abs(n.s-.5)<o,onClick:t,first:!0})),Wt().createElement("div",{style:r.swatch},Wt().createElement(Us,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<o&&Math.abs(n.s-.5)<o,onClick:t})),Wt().createElement("div",{style:r.swatch},Wt().createElement(Us,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<o&&Math.abs(n.s-.5)<o,onClick:t})),Wt().createElement("div",{style:r.swatch},Wt().createElement(Us,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<o&&Math.abs(n.s-.5)<o,onClick:t})),Wt().createElement("div",{style:r.swatch},Wt().createElement(Us,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<o&&Math.abs(n.s-.5)<o,onClick:t,last:!0})),Wt().createElement("div",{style:r.clear}))};const Hs=function(){var e=(0,$t.Ay)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return Wt().createElement("div",{style:e.picker})};var Ws=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,o=e.styles,a=void 0===o?{}:o,i=e.className,l=void 0===i?"":i,s=(0,$t.Ay)(Xo({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return Wt().createElement("div",{style:s.wrap||{},className:"slider-picker "+l},Wt().createElement("div",{style:s.hue},Wt().createElement(ln,{style:s.Hue,hsl:t,pointer:r,onChange:n})),Wt().createElement("div",{style:s.swatches},Wt().createElement(zs,{hsl:t,onClick:n})))};Ws.propTypes={styles:cn().object},Ws.defaultProps={pointer:Hs,styles:{}};ci(Ws);var $s=n(748);const Gs=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,a=e.first,i=e.last,l=e.active,s=(0,$t.Ay)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:ai(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:i,active:l,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return Wt().createElement(hi,{color:t,style:s.color,onClick:r,onHover:o,focusStyle:{boxShadow:"0 0 4px "+t}},Wt().createElement("div",{style:s.check},Wt().createElement($s.A,null)))};const Xs=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,o=e.active,a=(0,$t.Ay)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return Wt().createElement("div",{style:a.group},Ul(r,(function(e,a){return Wt().createElement(Gs,{key:e,color:e,active:e.toLowerCase()===o,first:0===a,last:a===r.length-1,onClick:t,onSwatchHover:n})})))};var Vs=function(e){var t=e.width,n=e.height,r=e.onChange,o=e.onSwatchHover,a=e.colors,i=e.hex,l=e.styles,s=void 0===l?{}:l,c=e.className,u=void 0===c?"":c,p=(0,$t.Ay)(Xo({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},s)),f=function(e,t){return r({hex:e,source:"hex"},t)};return Wt().createElement("div",{style:p.picker,className:"swatches-picker "+u},Wt().createElement(qo,null,Wt().createElement("div",{style:p.overflow},Wt().createElement("div",{style:p.body},Ul(a,(function(e){return Wt().createElement(Xs,{key:e.toString(),group:e,active:i,onClick:f,onSwatchHover:o})})),Wt().createElement("div",{style:p.clear})))))};Vs.propTypes={width:cn().oneOfType([cn().string,cn().number]),height:cn().oneOfType([cn().string,cn().number]),colors:cn().arrayOf(cn().arrayOf(cn().string)),styles:cn().object},Vs.defaultProps={width:320,height:240,colors:[[Wl[900],Wl[700],Wl[500],Wl[300],Wl[100]],[$l[900],$l[700],$l[500],$l[300],$l[100]],[Gl[900],Gl[700],Gl[500],Gl[300],Gl[100]],[Xl[900],Xl[700],Xl[500],Xl[300],Xl[100]],[Vl[900],Vl[700],Vl[500],Vl[300],Vl[100]],[ql[900],ql[700],ql[500],ql[300],ql[100]],[Yl[900],Yl[700],Yl[500],Yl[300],Yl[100]],[Kl[900],Kl[700],Kl[500],Kl[300],Kl[100]],[Jl[900],Jl[700],Jl[500],Jl[300],Jl[100]],["#194D33",Zl[700],Zl[500],Zl[300],Zl[100]],[Ql[900],Ql[700],Ql[500],Ql[300],Ql[100]],[es[900],es[700],es[500],es[300],es[100]],[ts[900],ts[700],ts[500],ts[300],ts[100]],[ns[900],ns[700],ns[500],ns[300],ns[100]],[rs[900],rs[700],rs[500],rs[300],rs[100]],[os[900],os[700],os[500],os[300],os[100]],[as[900],as[700],as[500],as[300],as[100]],[is[900],is[700],is[500],is[300],is[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};ci(Vs);var qs=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,o=e.colors,a=e.width,i=e.triangle,l=e.styles,s=void 0===l?{}:l,c=e.className,u=void 0===c?"":c,p=(0,$t.Ay)(Xo({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},s),{"hide-triangle":"hide"===i,"top-left-triangle":"top-left"===i,"top-right-triangle":"top-right"===i}),f=function(e,n){oi(e)&&t({hex:e,source:"hex"},n)};return Wt().createElement("div",{style:p.card,className:"twitter-picker "+u},Wt().createElement("div",{style:p.triangleShadow}),Wt().createElement("div",{style:p.triangle}),Wt().createElement("div",{style:p.body},Ul(o,(function(e,t){return Wt().createElement(hi,{key:t,color:e,hex:e,style:p.swatch,onClick:f,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),Wt().createElement("div",{style:p.hash},"#"),Wt().createElement(rn,{label:null,style:{input:p.input},value:r.replace("#",""),onChange:f}),Wt().createElement("div",{style:p.clear})))};qs.propTypes={width:cn().oneOfType([cn().string,cn().number]),triangle:cn().oneOf(["hide","top-left","top-right"]),colors:cn().arrayOf(cn().string),styles:cn().object},qs.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};ci(qs);var Ys=function(e){var t=(0,$t.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return Wt().createElement("div",{style:t.picker})};Ys.propTypes={hsl:cn().shape({h:cn().number,s:cn().number,l:cn().number,a:cn().number})},Ys.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Ks=Ys;var Js=function(e){var t=(0,$t.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return Wt().createElement("div",{style:t.picker})};Js.propTypes={hsl:cn().shape({h:cn().number,s:cn().number,l:cn().number,a:cn().number})},Js.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Zs=Js;const Qs=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,o=e.hex,a=e.hsv,i=function(e,n){if(e.hex)oi(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var r=e.rgb.split(",");ii(e.rgb,"rgb")&&t({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},n)}else if(e.hsv){var o=e.hsv.split(",");ii(e.hsv,"hsv")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("°",""),1==o[1]?o[1]=.01:1==o[2]&&(o[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsv"},n))}else if(e.hsl){var a=e.hsl.split(",");ii(e.hsl,"hsl")&&(a[2]=a[2].replace("%",""),a[1]=a[1].replace("%",""),a[0]=a[0].replace("°",""),1==u[1]?u[1]=.01:1==u[2]&&(u[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:"hsl"},n))}},l=(0,$t.Ay)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),s=n.r+", "+n.g+", "+n.b,c=Math.round(r.h)+"°, "+Math.round(100*r.s)+"%, "+Math.round(100*r.l)+"%",u=Math.round(a.h)+"°, "+Math.round(100*a.s)+"%, "+Math.round(100*a.v)+"%";return Wt().createElement("div",{style:l.wrap,className:"flexbox-fix"},Wt().createElement("div",{style:l.fields},Wt().createElement("div",{style:l.double},Wt().createElement(rn,{style:{input:l.input,label:l.label},label:"hex",value:o,onChange:i})),Wt().createElement("div",{style:l.column},Wt().createElement("div",{style:l.single},Wt().createElement(rn,{style:{input:l.input2,label:l.label2},label:"rgb",value:s,onChange:i})),Wt().createElement("div",{style:l.single},Wt().createElement(rn,{style:{input:l.input2,label:l.label2},label:"hsv",value:u,onChange:i})),Wt().createElement("div",{style:l.single},Wt().createElement(rn,{style:{input:l.input2,label:l.label2},label:"hsl",value:c,onChange:i})))))};var ec=function(e){var t=e.width,n=e.onChange,r=e.rgb,o=e.hsl,a=e.hsv,i=e.hex,l=e.header,s=e.styles,c=void 0===s?{}:s,u=e.className,p=void 0===u?"":u,f=(0,$t.Ay)(Xo({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+r.r+", "+r.g+", "+r.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return Wt().createElement("div",{style:f.picker,className:"google-picker "+p},Wt().createElement("div",{style:f.head},l),Wt().createElement("div",{style:f.swatch}),Wt().createElement("div",{style:f.saturation},Wt().createElement(fa,{hsl:o,hsv:a,pointer:Ks,onChange:n})),Wt().createElement("div",{style:f.body},Wt().createElement("div",{style:f.controls,className:"flexbox-fix"},Wt().createElement("div",{style:f.hue},Wt().createElement(ln,{style:f.Hue,hsl:o,radius:"4px",pointer:Zs,onChange:n}))),Wt().createElement(Qs,{rgb:r,hsl:o,hex:i,hsv:a,onChange:n})))};ec.propTypes={width:cn().oneOfType([cn().string,cn().number]),styles:cn().object,header:cn().string},ec.defaultProps={width:652,styles:{},header:"Color picker"};ci(ec);function tc(e){return tc="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},tc(e)}function nc(e){return function(e){if(Array.isArray(e))return ac(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oc(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 rc(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||oc(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 oc(e,t){if(e){if("string"==typeof e)return ac(e,t);var n={}.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)?ac(e,t):void 0}}function ac(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ic=wp.element,lc=ic.useState,sc=ic.useEffect,cc=wp.i18n.__;const uc=function(e){var t=xt(e.slug)?xt(e.slug):xt(e.title),n=e.defaultValue?e.defaultValue:"#BBB",r=rc(lc(n),2),o=r[0],a=r[1],i=document.getElementsByClassName("kwtskColorPicker");sc((function(){e.value&&a(e.value)}),[e.value]);window.addEventListener("click",(function(e){var t=document.getElementById("openColorPicker");t&&(!e.target!=t&&t.contains(e.target)||(t.removeAttribute("id"),t.closest(".kwtskColorPicker").classList.remove("kwtskButton-active")))}));return React.createElement("div",{className:"kwtskColorPicker"},React.createElement("div",{className:"kwtskColorDisplay"},React.createElement("button",{className:"kwtskColorBtn",style:{backgroundColor:o},onClick:function(e){return e.preventDefault()},onFocus:function(e){return function(e){e.preventDefault(),nc(i).forEach((function(e){e.classList.remove("kwtskButton-active"),e.removeAttribute("id")})),e.target.closest(".kwtskColorPicker").setAttribute("id","openColorPicker"),e.target.closest(".kwtskColorPicker").classList.add("kwtskButton-active")}(e)}},React.createElement("span",{className:"kwtskColorBtnTxt"},cc("Select Color","theme-site-kit"))),React.createElement("input",{type:"text",id:t,value:o||"",className:"kwtskColorInput",disabled:!0,onChange:e.onChange})),React.createElement("div",{className:"kwtskPickColor"},React.createElement(vs,{color:o,onChange:function(e){return function(e){"object"===tc(e)&&null!==e?a(e.hex):a(e)}(e)},disableAlpha:!0,onChangeComplete:function(n){return function(n){var r="object"===tc(n)&&null!==n?n.hex:n;e.onChange&&e.onChange({target:{name:t,value:r}})}(n)}})))};function pc(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fc(e,t);var n={}.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)?fc(e,t):void 0}}(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 fc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var dc=wp.element.useState,hc=wp.i18n.__;const mc=function(e){var t=e.slug,n=e.value,r=e.onChange,o=e.options,a=void 0===o?[]:o,i=t,l=pc(dc(n),2),s=l[0],c=l[1];return React.createElement(React.Fragment,null,a.map((function(e){var t=xt("".concat(i,"-").concat(e.value)),o=n===e.value;return React.createElement("div",{key:e.value,className:"kwtsk-radio-block"},React.createElement("label",{className:"kwtsk-radio-select ".concat(o?"selected":""),htmlFor:t},React.createElement("input",{id:t,name:i,type:"radio",value:e.value,checked:o,onChange:function(t){var n=t.target.checked,o={target:{type:"radio",name:i,value:e.value,checked:n,className:"radio-input"}};c(e.value),r(o)},className:"radio-input"}),React.createElement("span",{className:"radio-label"},e.label)))})),s&&React.createElement("div",{className:"clear-selection",onClick:function(){var e={target:{type:"radio",name:i,value:!1,checked:!1,className:"radio-input"}};c(null),r(e)}},hc("Clear Selection","theme-site-kit")))};var bc=n(5901);function gc(e){return gc="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},gc(e)}function vc(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 yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(n),!0).forEach((function(t){wc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wc(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=gc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xc(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)||kc(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 Ec(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||kc(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 kc(e,t){if(e){if("string"==typeof e)return _c(e,t);var n={}.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)?_c(e,t):void 0}}function _c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Sc=wp.element,Rc=Sc.useState,Oc=Sc.useEffect,Cc=Sc.useRef,jc=wp.i18n.__;const Ac=function(e){var t,n,r,o,a,i,l,s,c,u,p,f,d,h,m=xt(e.slug)||xt(e.title),b=Array.isArray(e.value)?e.value:(null===(t=e.value)||void 0===t?void 0:t.icons)||[],g=Ec(Rc(b),2),v=g[0],y=g[1],w=Ec(Rc(""),2),x=w[0],E=w[1],k=Ec(Rc(null),2),_=k[0],S=k[1],R=Ec(Rc(null),2),O=R[0],C=R[1],j=Cc(null);Oc((function(){var t,n=Array.isArray(e.value)?e.value:(null===(t=e.value)||void 0===t?void 0:t.icons)||[];n.length>0&&0===v.length&&y(n)}),[e.value]),Oc((function(){if(j.current){j.current.value=JSON.stringify(v);var t=new Event("change",{bubbles:!0});j.current.dispatchEvent(t)}e.onChange&&e.onChange({target:{name:m,value:v}})}),[v,m]);var A=function(e){return/^(fas|fab|fa-solid|fa-brands)\s+fa-[\w-]+$/.test(e)},T=function(e){var t=e.split(" ");return t[1]?t[1].replace("fa-",""):""},P=function(e){if(e.preventDefault(),A(x)){var t=x.trim();v.find((function(e){return e.value===t}))||y([].concat(xc(v),[{value:t,label:T(t)}])),E("")}},N=function(e){var t="email"===e.value||"phone"===e.value?"fa-solid":"fa-brands",n=e.value;return"phone"===n&&(n="phone-alt"),"email"===n&&(n="envelope"),"".concat(t," fa-").concat(n)};return React.createElement(React.Fragment,null,v.length>0&&React.createElement(React.Fragment,null,React.createElement(bc.ReactSortable,{tag:"div",className:"kwtsk-selected-icons",list:v,setList:y,options:{animation:300,onStart:function(e){e.item.classList.add("dragging")},onEnd:function(e){e.item.classList.remove("dragging")}}},v.map((function(e,t){return React.createElement("div",{key:"".concat(e.value,"-").concat(t),"data-id":e.value,className:"kwtsk-checkbox-block"},React.createElement("div",{className:"kwtsk-checkbox-select selected",onClick:function(){S(t),C(t)}},React.createElement("span",{className:"social-link-icon ".concat(e.value)}),_===t?React.createElement("input",{type:"text",value:e.label,onChange:function(e){return function(e,t){var n=t.target.value;y(v.map((function(t,r){return r===e?yc(yc({},t),{},{label:n}):t})))}(t,e)},onBlur:function(){return S(null)},onKeyDown:function(e){"Enter"===e.key&&S(null)},className:"icon-txt",autoFocus:!0}):React.createElement("span",{className:"checkbox-label"},e.label)),React.createElement("button",{className:"kwtsk-remove fas fa-xmark",onClick:function(e){return function(e,t){t.preventDefault(),t.stopPropagation();var n=xc(v);n.splice(e,1),y(n),_===e&&S(null),O===e&&C(null)}(t,e)}}))})))),null!==O&&React.createElement("div",{className:"kwtsk-icon-input kwtsk-social-url-input"},React.createElement("h4",null,"".concat(null===(n=v[O])||void 0===n?void 0:n.label,": ")+jc("Add Your Link:","theme-site-kit")),React.createElement("p",null,jc("Need help on adding the correct links for the different icons?","theme-site-kit")," ",React.createElement("a",{href:"",target:"_blank"},jc("Read our documentation"))),React.createElement("input",{type:"text",className:"kwtsk-social-icon-url",placeholder:"".concat((null===(r=v[O])||void 0===r?void 0:r.label)||""," ")+jc("URL or Link","theme-site-kit"),value:(null===(o=v[O])||void 0===o?void 0:o.url)||"",onChange:function(e){return t=O,n=e.target.value,void y(v.map((function(e,r){return r===t?yc(yc({},e),{},{url:n}):e})));var t,n}}),("fa-solid fa-envelope"===(null===(a=v[O])||void 0===a?void 0:a.value)||"fa-solid fa-phone-alt"===(null===(i=v[O])||void 0===i?void 0:i.value)||"fa-brands fa-whatsapp"===(null===(l=v[O])||void 0===l?void 0:l.value)||"fa-brands fa-line"===(null===(s=v[O])||void 0===s?void 0:s.value)||"fa-brands fa-telegram"===(null===(c=v[O])||void 0===c?void 0:c.value))&&React.createElement("p",{className:"kwtsk-input-note"},"fa-solid fa-envelope"===(null===(u=v[O])||void 0===u?void 0:u.value)&&jc('For email link add - "mailto:name@youremail.com"',"theme-site-kit"),"fa-solid fa-phone-alt"===(null===(p=v[O])||void 0===p?void 0:p.value)&&jc('For phone link add - "tel:+1234567890"',"theme-site-kit"),"fa-brands fa-whatsapp"===(null===(f=v[O])||void 0===f?void 0:f.value)&&jc('For whatsapp link add - "https://wa.me/27824532805"',"theme-site-kit"),"fa-brands fa-line"===(null===(d=v[O])||void 0===d?void 0:d.value)&&jc('For line link add - "https://line.me/ti/p/~username"',"theme-site-kit"),"fa-brands fa-telegram"===(null===(h=v[O])||void 0===h?void 0:h.value)&&jc('For telegram link add - "https://t.me/username"',"theme-site-kit"))),e.options&&e.options.length>0&&React.createElement(React.Fragment,null,React.createElement("h4",null,jc("Select Icons:","theme-site-kit")),React.createElement("p",null,jc("Select the icons you'd like to display on your website frontend.","theme-site-kit")),React.createElement("div",{className:"kwtsk-checkbox-selects"},e.options.map((function(t){var n=e.slug,r=xt("".concat(n,"-").concat(t.value)),o=N(t),a=function(e){var t=N(e);return!!v.find((function(e){return e.value===t}))}(t);return React.createElement("div",{key:t.value,className:"kwtsk-checkbox-options"},React.createElement("label",{className:"kwtsk-checkbox-select ".concat(a?"selected":""),htmlFor:r},React.createElement("span",{className:"social-link-icon ".concat(o)}),React.createElement("input",{id:r,name:"".concat(n,"_").concat(t.value),type:"checkbox",checked:a,onChange:function(e){return function(e,t){var n=N(e);if(t)v.find((function(e){return e.value===n}))||y((function(t){var r={value:n,label:e.label||T(n)},o=[].concat(xc(t),[r]);return C(o.length-1),o}));else{var r=v.findIndex((function(e){return e.value===n}));y(v.filter((function(e){return e.value!==n}))),r===O&&C(null)}}(t,e.target.checked)},className:"checkbox-single"}),React.createElement("span",{className:"checkbox-label"},t.label)))})))),React.createElement("h4",null,jc("Or add your own Custom Icons:","theme-site-kit")),React.createElement("p",null,jc("Haven't found the icon you're looking for? Add your own custom icons.","theme-site-kit")," ",React.createElement("a",{href:"",target:"_blank"},jc("Add Font Awesome icons"))),React.createElement("div",{className:"kwtsk-icon-input ".concat(x?A(x)?"valid":"invalid":"")},React.createElement("input",{type:"text",placeholder:jc("fa-brands fa-brave","theme-site-kit"),value:x,onChange:function(e){return E(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),A(x)&&P(e))}}),React.createElement("button",{className:"kwtsk-add",onClick:P},jc("Add Icon","theme-site-kit"))),React.createElement("input",{type:"hidden",id:m,name:m,ref:j}))};function Tc(e){return Tc="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},Tc(e)}function Pc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Pc=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.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(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof g?t:g,i=Object.create(a.prototype),l=new A(r||[]);return o(i,"_invoke",{value:R(e,n,l)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",d="suspendedYield",h="executing",m="completed",b={};function g(){}function v(){}function y(){}var w={};c(w,i,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(T([])));E&&E!==n&&r.call(E,i)&&(w=E);var k=y.prototype=g.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,a,i,l){var s=p(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==Tc(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function R(t,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=O(l,r);if(s){if(s===b)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=p(t,n,r);if("normal"===c.type){if(o=r.done?m:d,c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var a=p(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,b;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(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 j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Tc(t)+" is not iterable")}return v.prototype=y,o(k,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},_(S.prototype),c(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new S(u(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(k),c(k,s,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,b):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),b},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),j(n),b}},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;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}function Nc(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Dc(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 Mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach((function(t){Fc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fc(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Tc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Tc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bc(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lc(e,t);var n={}.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)?Lc(e,t):void 0}}(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 Lc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ic=wp.element.useState,Uc=wp.i18n.__;const zc=function(e){var t=e.title,n=e.slug,r=e.value,o=e.onChange,a=e.apiUrl,i=e.adminUrl,l=(xt(n||t),Bc(Ic(""),2)),s=l[0],c=l[1],u=Bc(Ic(""),2),p=u[0],f=u[1],d=Bc(Ic({name:"",singular:""}),2),h=d[0],m=d[1],b=Bc(Ic({}),2),g=b[0],v=b[1],y=r||{},w=function(e){return/^[a-zA-Z ]+$/.test(e)},x=function(e){var t=e.target,n=t.name,r=t.checked,a=n.match(/^cpts_post_types_(.+?)_(enable_categories|enable_tags|has_archive)$/);if(a){var i=a[1],l=a[2];if(y[i]){var s=Mc(Mc({},y),{},Fc({},i,Mc(Mc({},y[i]),{},Fc({},l,r))));o({target:{name:"cpts_post_types",value:s}})}}},E=function(){var e,t=(e=Pc().mark((function e(t){var n,r,i,l,s;return Pc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=y[t]){e.next=3;break}return e.abrupt("return");case 3:return v((function(e){return Mc(Mc({},e),{},Fc({},t,!0))})),e.prev=4,e.next=7,fetch("".concat(a,"/check-post-type?type=").concat(n.slug));case 7:if((r=e.sent).ok){e.next=10;break}throw new Error("Post type not found or fetch failed");case 10:return e.next=12,r.json();case 12:if(i=e.sent,!((l=i.count)>0)){e.next=17;break}return alert(Uc("Let's keep the database clean and make sure you delete all ".concat(l,' post(s) in "').concat(n.label,'" before removing this post type from the Dashboard.'),"theme-site-kit")),e.abrupt("return");case 17:if(window.confirm(Uc("Are you sure you want to delete this post type?","theme-site-kit"))){e.next=19;break}return e.abrupt("return");case 19:delete(s=Mc({},y))[t],o({target:{name:"cpts_post_types",value:s}}),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(4),console.error("Error checking post count:",e.t0),alert(Uc("An error occurred while checking posts.","theme-site-kit"));case 28:return e.prev=28,v((function(e){var n=Mc({},e);return delete n[t],n})),e.finish(28);case 31:case"end":return e.stop()}}),e,null,[[4,24,28,31]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Nc(a,r,o,i,l,"next",e)}function l(e){Nc(a,r,o,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();return React.createElement("div",{className:"cpts-select"},React.createElement("h4",null,Uc(t||"Custom Post Types","theme-site-kit")),React.createElement("div",{className:"cpts-add-new"},React.createElement("input",{type:"text",placeholder:Uc("Post Type Name (e.g. Case Studies)","theme-site-kit"),value:s,className:h.name,onChange:function(e){return c(e.target.value)}}),React.createElement("input",{type:"text",placeholder:Uc("Singular Name (e.g. Case Study)","theme-site-kit"),value:p,className:h.singular,onChange:function(e){return f(e.target.value)}}),React.createElement("button",{type:"button",className:"button",onClick:function(){var e=s.trim(),t=p.trim(),n=xt(e,"_"),r=xt(e,"-"),a=!0,i={name:"valid",singular:"valid"};if(e&&w(e)||(i.name="invalid",a=!1),t&&w(t)||(i.singular="invalid",a=!1),y[n]&&(i.name="invalid",a=!1),m(i),a){var l,u=Mc(Mc({},y),{},Fc({},n,{key:n,label:(l=e,l.replace(/\b\w/g,(function(e){return e.toUpperCase()}))),slug:r,singular:t,enable_categories:!1,enable_tags:!1,has_archive:!0,template:""}));o({target:{name:"cpts_post_types",value:u}}),c(""),f(""),m({name:"",singular:""})}}},Uc("Add Post Type","theme-site-kit"))),0===Object.keys(y).length?React.createElement("p",{className:"no-cpts"},Uc("No custom post types added yet.","theme-site-kit")):React.createElement(React.Fragment,null,Object.entries(y).map((function(e,t){var n=Bc(e,2),r=n[0],o=n[1];return React.createElement("table",{key:r,className:"form-table cpts-table ".concat(t%2==0?"even":""),role:"presentation"},React.createElement("tbody",null,React.createElement("tr",null,React.createElement("th",{className:"cpts-label"},o.label),React.createElement("td",null,React.createElement("div",{className:"cpts-single-sets"},React.createElement("div",{className:"cpts-single-slug"},React.createElement("div",{className:"cpts-single"},o.singular," ",React.createElement("span",null,"("+Uc("Singular","theme-site-kit")+")")),React.createElement("div",{className:"cpts-slug"},React.createElement("code",null,o.slug))),React.createElement("div",{className:"cpts-cats"},React.createElement(Vc,{slug:"cpts_post_types_".concat(r,"_enable_categories"),value:!!o.enable_categories,inputType:"onlytoggle",onChange:x})," ",React.createElement("span",null,"- ",Uc("Has Categories","theme-site-kit"))),React.createElement("div",{className:"cpts-tags"},React.createElement(Vc,{slug:"cpts_post_types_".concat(r,"_enable_tags"),value:!!o.enable_tags,inputType:"onlytoggle",onChange:x})," ",React.createElement("span",null,"- ",Uc("Has Tags","theme-site-kit"))),React.createElement("div",{className:"cpts-archive"},React.createElement(Vc,{slug:"cpts_post_types_".concat(r,"_has_archive"),value:!!o.has_archive,inputType:"onlytoggle",onChange:x})," ",React.createElement("span",null,"- ",Uc("Has Archives Page","theme-site-kit"))),React.createElement("span",{className:"fa-solid fa-xmark cpts-del ".concat(g[r]?"checking":""),onClick:function(){return E(r)},title:Uc("Delete this post type","theme-site-kit")}))))))}))),React.createElement("p",{className:"cpts-note"},Uc("Remember to Save Permalinks after adding or making changes to Custom Post Types.","theme-site-kit")," ",React.createElement("a",{href:"".concat(i,"options-permalink.php"),target:"_blank"},Uc("Go to Permalinks","theme-site-kit"))))};const Hc=function(e){return React.createElement("div",{className:"kwtsk-tooltip"},React.createElement("span",{className:"kwtsk-tooltiptxt"},e.tooltip))};var Wc=wp.i18n.__;const $c=function(e){return React.createElement("div",{className:"kwtsk-pronote ".concat(e.nomargin?"nomargin":""," ").concat(e.mini?"mini":"")},e.title&&React.createElement("h6",null,e.title,":"),e.desc&&React.createElement("p",null,e.desc),e.upgradeUrl&&React.createElement("div",{className:"kwtsk-pronote-a"},React.createElement("a",{href:e.upgradeUrl,className:"pronote-btn"},Wc("Purchase Pro","theme-site-kit"))))};const Gc=function(e){var t=e.title,n=e.description,r=e.nomargin;return React.createElement("div",{className:"kwtskheading ".concat(r?"nomargin":"")},t&&React.createElement("h4",{className:"kwtskheading-title"},t),n&&React.createElement("p",{className:"kwtskheading-desc"},n))};var Xc=wp.i18n.__;const Vc=function(e){var t,n=e.slug?xt(e.slug):xt(e.title);if("toggle"===e.inputType)t=React.createElement(_t,e);else{if("onlytoggle"===e.inputType)return React.createElement(_t,e);if("select"===e.inputType)t=React.createElement(Ot,e);else if("radio"===e.inputType)t=React.createElement(mc,e);else if("multicheckbox"===e.inputType)t=React.createElement(zt,e);else{if("socialicons"===e.inputType)return React.createElement("tr",null,React.createElement("td",{colSpan:2},React.createElement("div",{className:e.customClass},React.createElement(Ac,e))));if("cptsoptions"===e.inputType)return React.createElement("tr",null,React.createElement("td",{colSpan:2},React.createElement("div",null,React.createElement(zc,e))));if("range"===e.inputType)t=React.createElement(Mt,e);else if("colorpicker"===e.inputType)t=React.createElement(uc,e);else{if("heading"===e.inputType)return React.createElement("tr",{className:"kwtsk-row heading"},React.createElement("td",{colSpan:2},React.createElement(Gc,e)));if("pronote"===e.inputType)return React.createElement("tr",{className:"kwtsk-row pronote"},React.createElement("td",{colSpan:2},React.createElement($c,e)));t=React.createElement(jt,e)}}}return React.createElement("tr",{className:"kwtsk-row"},!e.notitle&&React.createElement("th",{scope:"row"},React.createElement("label",{htmlFor:""!=e.parent?n:e.value},e.title||" ")),React.createElement("td",e.notitle?{colSpan:2}:{},React.createElement("div",{className:"kwtsk-row-cols"},React.createElement("div",{className:"kwtsk-row-col-left ".concat(e.customClass||"")},t,e.note?React.createElement("p",{className:"setting-note"},e.note):"",e.standOutNote&&React.createElement(React.Fragment,null,React.createElement("p",{className:"stand-out-note"},e.standOutNote,React.createElement("a",{href:"options-permalink.php",className:"stand-out-note-link",target:"_blank"},Xc("Update the Permalinks","theme-site-kit"))))),React.createElement("div",{className:"kwtsk-row-col-right"},e.tooltip&&React.createElement(Hc,{tooltip:e.tooltip}),e.documentation&&React.createElement("a",{href:e.documentation,target:"_blank",className:"kwtskdoclink",title:Xc("Documentation","theme-site-kit")})))))};var qc=wp.i18n.__;const Yc=function(e){var t=e.title,n=e.description,r=e.isPro,o=e.isPremium;return React.createElement("div",{className:"kwtsk-header"},t&&React.createElement("h3",{className:"kwtsk-title"},t," ",r&&!o&&React.createElement("span",{className:"probanner"},qc("Premium Feature","theme-site-kit"))),n&&React.createElement("p",null,n))};const Kc=function(e){var t=e.label,n=e.children;return React.createElement("tr",{className:"kwtsk-row kwtsk-group-row"},React.createElement("th",null,t),React.createElement("td",null,React.createElement("div",{className:"kwtsk-group"},React.createElement("a",{className:"kwtsk-group-btn"},React.createElement("span",{className:"dashicons dashicons-edit"})),React.createElement("div",{className:"kwtsk-group-container"},React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,n))))))};function Jc(e){return Jc="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},Jc(e)}function Zc(){return Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zc.apply(null,arguments)}function Qc(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 eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qc(Object(n),!0).forEach((function(t){tu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Jc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Jc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Jc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nu=function(e){var t=e.height,n=e.width,r=t||!1,o=n||!1;return React.createElement("div",{className:"kwtsk-loader-wrap"},React.createElement("div",Zc({className:"kwtsk-loader"},r||o?{style:eu(eu({},r?{height:r}:{}),o?{width:o}:{})}:{}),React.createElement("div",{className:"kwtsk-spinner-text"}),React.createElement("div",{className:"kwtsk-loader-sector kwtsk-loader-sector-blue"}),React.createElement("div",{className:"kwtsk-loader-sector kwtsk-loader-sector-pink"}),React.createElement("div",{className:"kwtsk-loader-sector kwtsk-loader-sector-purple"})))};function ru(e){return ru="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},ru(e)}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ou.apply(null,arguments)}function au(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ru(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ru(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ru(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.i18n.__;const iu=function(e){var t=e.options,n=e.isPro,r=t.enabled,o=t.icons,a=t.offset,i=t.position,l=t.style,s=t.spacing,c=t.iconbgcolor,u=t.iconcolor,p=t.iconsize,f=t.showbg,d=t.showtext,h=t.iconorigcolor;if(r&&!(o.length<1)){var m={"right-bottom":"bottom","left-bottom":"bottom","bottom-center":"bottom","bottom-left":"left","bottom-right":"right"}[i]||"top",b=n?o:o.slice(0,4);return React.createElement("div",{className:"kwtsk-social-icons ".concat(f?"hasbg":"nobg"," kwtsk-si-").concat(i," kwtsk-si-").concat(l," kwtsk-si-").concat(p," ").concat(n&&h?"kwtsk-colorig":""),style:au(au({},m,"".concat("bottom-center"===i?"10px":"".concat(a,"px"))),"gap","".concat(s,"px"))},b.map((function(e,t){var n=e.value,r=e.label,o=e.url;return React.createElement("div",{className:"kwtsk-social-icon",key:t},React.createElement("a",ou({href:"email"===n?"mailto:".concat(o):o},"email"!==n||"phone"!==n?{target:"_blank"}:{},{rel:"noopener noreferrer",className:"kwtsk-social-icon-a",style:{backgroundColor:c,color:u}},d?{}:{title:r}),React.createElement("i",{className:"kwtsk-icon ".concat(n)})),d&&React.createElement("div",{className:"kwtsk-social-icon-label",style:{backgroundColor:c,color:u}},React.createElement("div",{className:"corner",style:{borderColor:c}}),r))})))}};var lu=wp.i18n.__;const su=function(e){var t=e.adminUrl,n=e.changeTab;document.querySelector(".ask-feedback");return React.createElement("div",{className:"kwtsk-general-page"},React.createElement("h2",null,lu("Welcome to Theme Site Kit","theme-site-kit")),React.createElement("p",null,lu("Your new secret weapon for cleaner, smoother, and just better working WordPress websites.","theme-site-kit")),React.createElement("p",null,lu("Offering a range of useful features, Theme Site Kit is designed to help you take your WordPress site to the next level.","theme-site-kit")),React.createElement("p",null,lu("And the best part? You can pick and choose which features you want to use, so you can keep your site as light and fast as possible.","theme-site-kit")),React.createElement("div",{className:"kwtsk-gp-features"},React.createElement("div",{className:"kwtsk-gp-feature"},React.createElement("div",{className:"kwtsk-gp-feature-img settings"}),React.createElement("h3",null,lu("Site Kit Settings","theme-site-kit")),React.createElement("p",null,lu("This plugin includes a range of helpful tools to improve your site, like disabling comments, maintenance mode while building, safely upload SVG formats, floating contact and social links, and more. Head to the top tabs in the plugin settings to explore each feature and adjust the options to suit your website.","theme-site-kit")),React.createElement("span",{className:"kwtsk-gp-a",onClick:function(){return n("disable_comments")}},lu("Go to next tab(s)","theme-site-kit"))),React.createElement("div",{className:"kwtsk-gp-feature"},React.createElement("div",{className:"kwtsk-gp-feature-img layouts"}),React.createElement("h3",null,lu("Import Page Layouts","theme-site-kit")),React.createElement("p",null,lu("Get a head start on your design with a set of pre-built page layouts you can import in one click. Whether you're building a homepage, about page, or contact section and more, browse through the page layouts to preview and import the layouts that best match your site's structure and branding.","theme-site-kit")),React.createElement("a",{className:"kwtsk-gp-a",target:"_blank",href:"".concat(t,"themes.php?page=theme-site-kit-layouts")},lu("View Page Layouts","theme-site-kit"))),React.createElement("div",{className:"kwtsk-gp-feature"},React.createElement("div",{className:"kwtsk-gp-feature-img patterns"}),React.createElement("h3",null,lu("Block Patterns","theme-site-kit")),React.createElement("p",null,lu("Quickly build stylish sections using custom WordPress patterns designed for speed and simplicity. You'll find them in the core editor under the Patterns tab, just browse through them or search by name, then insert them directly into your page to create beautiful, consistent content a matter of minutes.","theme-site-kit")),React.createElement("a",{className:"kwtsk-gp-a",target:"_blank",href:"https://kairaweb.com/wordpress-plugin/theme-site-kit/"},lu("View Block Patterns","theme-site-kit")))),React.createElement("p",null,lu("Whether you're a seasoned pro or just starting out, Theme Site Kit is designed to be easy to use.","theme-site-kit")),React.createElement("p",null,lu("So go ahead, take a look around and see what you can do with Theme Site Kit.","theme-site-kit")),React.createElement("br",null),React.createElement("br",null),React.createElement("h2",null,lu("Discover Our Other Plugins","theme-site-kit")),React.createElement("p",null,lu("Explore our other plugins to further enhance your WordPress experience.","theme-site-kit")),React.createElement("div",{className:"kwtsk-gp-plugins"},React.createElement("a",{className:"kwtsk-gp-plugin",href:"https://kairaweb.com/wordpress-plugin/storecustomizer/",target:"_blank"},React.createElement("div",{className:"kwtsk-gp-plugin-img storcustomizer"}),React.createElement("h3",null,lu("StoreCustomizer","theme-site-kit")),React.createElement("p",null,lu("Customize your WooCommerce store pages with ease.","theme-site-kit")),React.createElement("span",{className:"kwtsk-gp-plugin-a"},lu("View Plugin","theme-site-kit"))),React.createElement("a",{className:"kwtsk-gp-plugin",href:"https://kairaweb.com/wordpress-plugin/blockons/",target:"_blank"},React.createElement("div",{className:"kwtsk-gp-plugin-img blockons"}),React.createElement("h3",null,lu("Blockons","theme-site-kit")),React.createElement("p",null,lu("Advanced blocks and Site Addons for your website.","theme-site-kit")),React.createElement("span",{className:"kwtsk-gp-plugin-a"},lu("View Plugin","theme-site-kit"))),React.createElement("a",{className:"kwtsk-gp-plugin",href:"https://kairaweb.com/wordpress-plugin/linkt/",target:"_blank"},React.createElement("div",{className:"kwtsk-gp-plugin-img linkt"}),React.createElement("h3",null,lu("Linkt","theme-site-kit")),React.createElement("p",null,lu("Affiliate Links and Custom Link Tracking & Management.","theme-site-kit")),React.createElement("span",{className:"kwtsk-gp-plugin-a"},lu("View Plugin","theme-site-kit")))))};function cu(e){return cu="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},cu(e)}function uu(e){return function(e){if(Array.isArray(e))return bu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mu(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 pu(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 fu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pu(Object(n),!0).forEach((function(t){du(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function du(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=cu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hu(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||mu(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 mu(e,t){if(e){if("string"==typeof e)return bu(e,t);var n={}.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)?bu(e,t):void 0}}function bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var gu=wp.element,vu=gu.useState,yu=gu.useEffect,wu=wp.i18n.__;const xu=function(e){var t,n,r,o,a,i,l,s,c,u,p,f,d,h,m,b,g,v,y,w,x,E,k,_,S,R,O,C,j,A,T,P,N,D,M,F,B,L,I,U,z,H,W,$,G,X,V,q,Y,K,J,Z,Q,ee,te,ne,re,oe,ae=e.kwtskObj,ie="".concat(ae.apiUrl,"kwtsk/v1"),le=ae.nonce,se=ae.adminUrl,ce=ae.accountUrl,ue=ae.upgradeUrl,pe=Boolean(ae.isPremium),fe=ae.post_types,de=ae.publishedPages,he=hu(vu(de),2),me=he[0],be=he[1],ge=ae.userRoles,ve=hu(vu(!1),2),ye=ve[0],we=ve[1],xe=hu(vu(!0),2),Ee=xe[0],ke=xe[1],_e=hu(vu(new URLSearchParams(window.location.search).get("tab")||"general"),2),Se=_e[0],Re=_e[1],Oe=ae.kwtskDefaults,Ce=hu(vu({}),2),je=Ce[0],Ae=Ce[1],Te=hu(vu(!1),2),Pe=Te[0],Ne=Te[1],De=hu(vu(!1),2),Me=De[0],Fe=De[1],Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"general";Re(e);var t=new URLSearchParams(window.location.search);t.set("tab",e),window.history.replaceState(null,"","?"+t.toString())};console.log(je);var Le=function(e){var t=e.target,n=t.type,r=t.checked,o=t.name,a=t.value,i=t.className;"checkbox"!==n||"checkbox-single"!==i&&"toggle-switch-checkbox"!==i||(a=r);var l=o.match(/^cpts_post_types_(.+)_(enable_categories|enable_tags)$/);if(l){var s=l[1],c=l[2];Ae((function(e){var t,n;return fu(fu({},e),{},{cpts:fu(fu({},e.cpts),{},{post_types:fu(fu({},(null===(t=e.cpts)||void 0===t?void 0:t.post_types)||{}),{},du({},s,fu(fu({},(null===(n=e.cpts)||void 0===n||null===(n=n.post_types)||void 0===n?void 0:n[s])||{}),{},du({},c,a))))})})}))}else{var u=o.indexOf("_");if(u>-1){var p=o.substring(0,u),f=o.substring(u+1);Ae(fu(fu({},je),{},du({},p,fu(fu({},je[p]||{}),{},du({},f,a)))))}else Ae(fu(fu({},je),{},du({},o,a)))}};yu((function(){var e;(e=document.querySelectorAll(".kwtsk-group-btn"))&&e.forEach((function(t){t.addEventListener("click",(function(){var n=t.parentElement;e.forEach((function(e){e.parentElement.removeAttribute("id","openGroup"),e.parentElement.classList.remove("kwtsk-show")})),n.classList.contains("kwtsk-show")?(n.removeAttribute("id","openGroup"),n.classList.remove("kwtsk-show")):(n.setAttribute("id","openGroup"),n.classList.add("kwtsk-show"))}))})),window.addEventListener("click",(function(e){var t=document.getElementById("openGroup");t&&(!e.target!=t&&t.contains(e.target)||(t.removeAttribute("id"),t.classList.remove("kwtsk-show")))}))}),[je]);yu((function(){yt.get(ie+"/settings").then((function(e){var t=null!=e&&e.data?JSON.parse(e.data):console.log("Theme Site Kit Options Empty");if(t){var n=function(e){Ae((function(n){return fu(fu({},n),{},du({},e,t[e]?t[e]:""))}))};for(var r in t)n(r)}else Ae(Oe)})).then((function(){ke(!1)}))}),[]);return React.createElement(React.Fragment,null,React.createElement("div",{className:"kwtsk-settings"},React.createElement("div",{className:"kwtskSettingBar"},React.createElement("h2",null,wu("Theme Site Kit Settings","theme-site-kit")),React.createElement("div",{className:"kwtskSettingBarOptions"},pe&&React.createElement("a",{href:ce,className:"fa-solid fa-user kwtsk-account",title:wu("My Account","theme-site-kit")}),React.createElement("a",{href:"https://kairaweb.com/documentation/",className:"fa-solid fa-life-ring kwtsk-docs",title:wu("Documentation","theme-site-kit"),target:"_blank"}))),React.createElement("div",{className:"kwtsk-settings-content ".concat("general"===Se?"hide-save":"")},React.createElement("form",{id:"kwtsk-settings-form",onSubmit:function(e){return function(e){e.preventDefault(),we(!0),yt.post(ie+"/settings",{kwtskOptions:je},{headers:{"content-type":"application/json","X-WP-NONCE":le}}).then((function(e){we(!1)}))}(e)}},React.createElement("div",{className:"kwtsk-tabs"},React.createElement("ul",null,React.createElement("li",null,React.createElement("a",{id:"kwtsktab-general",className:"kwtsk-tab ".concat("general"===Se?"active":""),onClick:function(){return Be("general")}},wu("General","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-disable_comments",className:"kwtsk-tab ".concat("disable_comments"===Se?"active":""),onClick:function(){return Be("disable_comments")}},wu("Disable Comments","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-maintenance_mode",className:"kwtsk-tab ".concat("maintenance_mode"===Se?"active":""),onClick:function(){return Be("maintenance_mode")}},wu("Maintenance Mode","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-social_links",className:"kwtsk-tab ".concat("social_links"===Se?"active":""),onClick:function(){return Be("social_links")}},wu("Social Links","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-mobile_menu",className:"kwtsk-tab ".concat("mobile_menu"===Se?"active":""),onClick:function(){return Be("mobile_menu")}},wu("Mobile Menu","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-cpts",className:"kwtsk-tab ".concat("cpts"===Se?"active":""),onClick:function(){return Be("cpts")}},wu("Custom Post Types","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-extras",className:"kwtsk-tab ".concat("extras"===Se?"active":""),onClick:function(){return Be("extras")}},wu("Extras","theme-site-kit")))),React.createElement("div",{className:"kwtsk-content-wrap"},React.createElement("div",{className:"kwtsk-content-wrap-inner"},(Ee||ye)&&React.createElement(nu,null),React.createElement("div",{id:"kwtsk-content-general",className:"kwtsk-content ".concat("general"===Se?"active":"")},React.createElement(su,{adminUrl:se,changeTab:function(){return Be("disable_comments")}})),React.createElement("div",{id:"kwtsk-content-disable_comments",className:"kwtsk-content ".concat("disable_comments"===Se?"active":"")},React.createElement(Yc,{title:wu("Disable Comments","theme-site-kit"),description:wu("Easily turn off comments across your entire site or selectively disable them per post or page. Keep your content clean and focused, without unnecessary clutter or spam.","theme-site-kit")}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Vc,{title:wu("Disable Comments","theme-site-kit"),slug:"disablecomments_disable",value:null===(t=je.disablecomments)||void 0===t?void 0:t.disable,inputType:"radio",options:[{value:"everywhere",label:wu("Everywhere","theme-site-kit")},{value:"post_types",label:wu("Post Types Only","theme-site-kit")}],onChange:Le,customClass:"kwtsk-disable-comments",notitle:!0}),"post_types"===(null===(n=je.disablecomments)||void 0===n?void 0:n.disable)&&React.createElement(React.Fragment,null,fe&&React.createElement("tr",null,React.createElement("th",{scope:"row"},React.createElement("h4",null,wu("Disable Comments on:","theme-site-kit"))),React.createElement("td",null,React.createElement("table",{className:"form-table inner-setting-table",role:"presentation"},React.createElement("tbody",null,Object.entries(fe).map((function(e){var t,n=hu(e,2),r=(n[0],n[1]);return React.createElement(Vc,{key:r.name,title:r.label,slug:"disablecomments_post_types",value:(null===(t=je.disablecomments)||void 0===t||null===(t=t.post_types)||void 0===t?void 0:t.includes(r.name))||!1,inputType:"toggle",onChange:function(e){var t,n=(null===(t=je.disablecomments)||void 0===t?void 0:t.post_types)||[];n=e.target.checked?[].concat(uu(n),[r.name]):n.filter((function(e){return e!==r.name})),Le({target:{name:"disablecomments_post_types",value:n}})}})})))))))))),React.createElement("div",{id:"kwtsk-content-maintenance_mode",className:"kwtsk-content ".concat("maintenance_mode"===Se?"active":"")},React.createElement(Yc,{title:wu("Maintenance Mode","theme-site-kit"),description:wu("Enable maintenance mode to temporarily hide your site from visitors while you build your website or make needed updates.","theme-site-kit")}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Vc,{title:wu("Enable Maintenance Mode","theme-site-kit"),slug:"maintenance_enabled",value:null===(r=je.maintenance)||void 0===r?void 0:r.enabled,inputType:"toggle",onChange:Le}),(null===(o=je.maintenance)||void 0===o?void 0:o.enabled)&&React.createElement(React.Fragment,null,React.createElement(Vc,{title:wu("Choose Mode","linkt"),slug:"maintenance_mode",value:null===(a=je.maintenance)||void 0===a?void 0:a.mode,inputType:"select",emptyOption:!0,emptyLabel:wu("Disabled","theme-site-kit"),options:{maintenance:wu("Maintenance Mode","theme-site-kit"),coming_soon:wu("Coming Soon","theme-site-kit")},onChange:Le,note:null!==(i=je.maintenance)&&void 0!==i&&i.mode?"maintenance"===(null===(l=je.maintenance)||void 0===l?void 0:l.mode)?wu("Maintenance Mode (returning HTTP 503 code)","theme-site-kit"):wu("Coming Soon mode (returning HTTP 200 code)","theme-site-kit"):wu("Choose between Coming Soon mode (returning HTTP 200 code) or Maintenance Mode (returning HTTP 503 code).","theme-site-kit")}),("maintenance"===(null===(s=je.maintenance)||void 0===s?void 0:s.mode)||"coming_soon"===(null===(c=je.maintenance)||void 0===c?void 0:c.mode))&&React.createElement(React.Fragment,null,pe&&React.createElement(Vc,{title:wu("Choose Template","theme-site-kit"),slug:"maintenance_template",value:null===(u=je.maintenance)||void 0===u?void 0:u.template,inputType:"select",emptyOption:!0,emptyLabel:wu("Default Basic Template","theme-site-kit"),options:me,onChange:Le,note:null!==(p=je.maintenance)&&void 0!==p&&p.template?React.createElement(React.Fragment,null,React.createElement("a",{href:"".concat(se,"post.php?post=").concat(je.maintenance.template,"&action=edit"),target:"_blank",rel:"noopener noreferrer"},wu("Edit Template Page","theme-site-kit"))," ",React.createElement("div",null,wu("This page will be hidden, you can only edit it from here.","theme-site-kit"))):React.createElement(React.Fragment,null,Me?wu("Creating page...","theme-site-kit"):React.createElement(React.Fragment,null,React.createElement("a",{href:"#",onClick:function(e){e.preventDefault(),function(e){e.preventDefault(),Fe(!0),yt.post(ie+"/create-template-page",{},{headers:{"X-WP-NONCE":le}}).then((function(e){var t=e.data,n=t.page_id,r=t.page_title;Ae((function(e){return fu(fu({},e),{},{maintenance:fu(fu({},e.maintenance),{},{template:n})})})),be((function(e){return fu(fu({},e),{},du({},n,r))}))})).catch((function(e){console.error(e),alert("Could not create template page.")})).finally((function(){return Fe(!1)}))}(e)}},wu("Create a New Template Page","theme-site-kit"))," ",React.createElement("div",null,wu("Remember to save your settings afterwards!","theme-site-kit"))))}),!(null!==(f=je.maintenance)&&void 0!==f&&f.template)&&React.createElement(Kc,{label:wu("Edit Template Page","theme-site-kit")},pe&&React.createElement(Vc,{title:wu("Background Color","theme-site-kit"),slug:"maintenance_bgcolor",value:null===(d=je.maintenance)||void 0===d?void 0:d.bgcolor,inputType:"colorpicker",defaultValue:"#f5f5f5",onChange:Le}),React.createElement(Vc,{title:wu("Title","theme-site-kit"),slug:"maintenance_title",value:null===(h=je.maintenance)||void 0===h?void 0:h.title,inputType:"text",onChange:Le,placeholder:"coming_soon"===(null===(m=je.maintenance)||void 0===m?void 0:m.mode)?wu("Coming Soon","theme-site-kit"):wu("Maintenance Mode","theme-site-kit")}),pe&&React.createElement(Vc,{title:wu("Title Color","theme-site-kit"),slug:"maintenance_titlecolor",value:null===(b=je.maintenance)||void 0===b?void 0:b.titlecolor,inputType:"colorpicker",defaultValue:"#333",onChange:Le}),React.createElement(Vc,{title:wu("Text","theme-site-kit"),slug:"maintenance_text",value:null===(g=je.maintenance)||void 0===g?void 0:g.text,inputType:"text",onChange:Le,placeholder:"coming_soon"===(null===(v=je.maintenance)||void 0===v?void 0:v.mode)?wu("Our website is launching soon. Stay tuned!","theme-site-kit"):wu("We are currently performing scheduled maintenance. Please check back soon.","theme-site-kit")}),pe&&React.createElement(Vc,{title:wu("Text Color","theme-site-kit"),slug:"maintenance_textcolor",value:null===(y=je.maintenance)||void 0===y?void 0:y.textcolor,inputType:"colorpicker",defaultValue:"#666",onChange:Le})),React.createElement(Vc,{title:wu("Who Can Access the Site","linkt"),slug:"maintenance_access",value:null===(w=je.maintenance)||void 0===w?void 0:w.access,inputType:"select",options:{loggedin:wu("Logged In Users","theme-site-kit"),custom:wu("Custom","theme-site-kit")},onChange:Le}),"custom"===(null===(x=je.maintenance)||void 0===x?void 0:x.access)&&React.createElement(React.Fragment,null,React.createElement(Vc,{title:wu("Select User Roles","theme-site-kit"),slug:"maintenance_userroles",value:null===(E=je.maintenance)||void 0===E?void 0:E.userroles,inputType:"multicheckbox",options:ge,onChange:Le}))),!pe&&React.createElement(React.Fragment,null,React.createElement("br",null),React.createElement("br",null),React.createElement(Vc,{slug:"maintenance_pronote",desc:wu("Unlock full design control with Theme Site Kit Pro - customize default template colors, build your own Maintenance Mode page using the intuitive WordPress block editor, or instantly import our pre-designed page layouts to use for your 'Maintenance Mode' template.","theme-site-kit"),inputType:"pronote",upgradeUrl:ue})))))),React.createElement("div",{id:"kwtsk-content-social_links",className:"kwtsk-content ".concat("social_links"===Se?"active":"")},React.createElement(Yc,{title:wu("Social Links","theme-site-kit"),description:wu("Add slick, always-visible floating icons for your social media profiles and contact options. Positioned neatly along the side of your site, they make it easy for visitors to connect with you anytime.","theme-site-kit")}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Vc,{title:wu("Enable Social Links","theme-site-kit"),slug:"social_enabled",value:null===(k=je.social)||void 0===k?void 0:k.enabled,inputType:"toggle",onChange:Le}),(null===(_=je.social)||void 0===_?void 0:_.enabled)&&React.createElement(React.Fragment,null,React.createElement(Vc,{title:wu("Show Preview","theme-site-kit"),slug:"social_preview",value:Pe,inputType:"toggle",onChange:function(){return Ne((function(e){return!e}))}}),React.createElement(Vc,{title:wu("Position","linkt"),slug:"social_position",value:null===(S=je.social)||void 0===S?void 0:S.position,inputType:"select",options:{"right-top":wu("Right Top","theme-site-kit"),"right-bottom":wu("Right Bottom","theme-site-kit"),"left-top":wu("Left Top","theme-site-kit"),"left-bottom":wu("Left Bottom","theme-site-kit"),"bottom-left":wu("Bottom Left","theme-site-kit"),"bottom-center":wu("Bottom Center","theme-site-kit"),"bottom-right":wu("Bottom Right","theme-site-kit")},onChange:Le}),"bottom-center"!==(null===(R=je.social)||void 0===R?void 0:R.position)&&React.createElement(Vc,{title:wu("Offset","theme-site-kit"),slug:"social_offset",value:null===(O=je.social)||void 0===O?void 0:O.offset,placeholder:"150",inputType:"number",onChange:Le,suffix:"px"}),React.createElement(Kc,{label:wu("Edit Social Icons","theme-site-kit")},React.createElement(Vc,{title:wu("Icon Size","linkt"),slug:"social_iconsize",value:null===(C=je.social)||void 0===C?void 0:C.iconsize,inputType:"select",options:{xsmall:wu("Extra Small","theme-site-kit"),small:wu("Small","theme-site-kit"),medium:wu("Medium","theme-site-kit"),large:wu("Large","theme-site-kit"),xlarge:wu("Extra Large","theme-site-kit")},onChange:Le}),React.createElement(Vc,{title:wu("Icon Spacing","theme-site-kit"),slug:"social_spacing",value:null===(j=je.social)||void 0===j?void 0:j.spacing,inputType:"range",defaultValue:8,min:1,max:40,suffix:"px",onChange:Le}),React.createElement(Vc,{title:wu("Icon Style","linkt"),slug:"social_style",value:null===(A=je.social)||void 0===A?void 0:A.style,inputType:"select",options:{square:wu("Square","theme-site-kit"),rounded:wu("Rounded","theme-site-kit"),rounder:wu("More Rounded","theme-site-kit"),round:wu("Round","theme-site-kit")},onChange:Le}),React.createElement(Vc,{title:wu("Show Background","theme-site-kit"),slug:"social_showbg",value:null===(T=je.social)||void 0===T?void 0:T.showbg,inputType:"toggle",onChange:Le}),(null===(P=je.social)||void 0===P?void 0:P.showbg)&&React.createElement(Vc,{title:wu("Background Color","theme-site-kit"),slug:"social_iconbgcolor",value:null===(N=je.social)||void 0===N?void 0:N.iconbgcolor,inputType:"colorpicker",defaultValue:"#FFF",onChange:Le}),React.createElement(Vc,{title:wu("Label on Hover","theme-site-kit"),slug:"social_showtext",value:null===(D=je.social)||void 0===D?void 0:D.showtext,inputType:"toggle",onChange:Le}),pe&&React.createElement(Vc,{title:wu("Icon Original Color","theme-site-kit"),slug:"social_iconorigcolor",value:null===(M=je.social)||void 0===M?void 0:M.iconorigcolor,inputType:"toggle",onChange:Le}),(!(null!==(F=je.social)&&void 0!==F&&F.iconorigcolor)||(null===(B=je.social)||void 0===B?void 0:B.showtext))&&React.createElement(Vc,{title:null!==(L=je.social)&&void 0!==L&&L.iconorigcolor&&null!==(I=je.social)&&void 0!==I&&I.showtext?wu("Text Color","theme-site-kit"):wu("Icon & Text Color","theme-site-kit"),slug:"social_iconcolor",value:null===(U=je.social)||void 0===U?void 0:U.iconcolor,inputType:"colorpicker",defaultValue:"#AF2DBF",onChange:Le}),!pe&&React.createElement(Vc,{slug:"social_mini_pronote",desc:wu("Use original brand colors in Theme Site Kit Pro.","theme-site-kit"),inputType:"pronote",mini:!0})),!pe&&(null===(z=je.social)||void 0===z?void 0:z.icons.length)>=4&&React.createElement(Vc,{title:wu("Upgrade to Theme Site Kit Pro","theme-site-kit"),desc:wu("Unlock unlimited social icons and more features with Theme Site Kit Pro.","theme-site-kit"),upgradeUrl:ue,inputType:"pronote"}),React.createElement(Vc,{slug:"social_icons",value:null===(H=je.social)||void 0===H?void 0:H.icons,inputType:"socialicons",options:Et,onChange:Le,notitle:!0,isPro:pe}))))),React.createElement("div",{id:"kwtsk-content-mobile_menu",className:"kwtsk-content ".concat("mobile_menu"===Se?"active":"")},React.createElement(Yc,{title:wu("Custom Mobile Menu","theme-site-kit"),description:wu("Upgrade your site's mobile experience with an enhanced core Navigation Block extension. This feature creates a smooth, modern slide-out menu that looks great and works even better on mobile devices.","theme-site-kit"),isPro:!0,isPremium:pe}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Vc,{title:wu("Enable Custom Mobile Menu","theme-site-kit"),slug:"mobilemenu_enabled",value:null===(W=je.mobilemenu)||void 0===W?void 0:W.enabled,inputType:"toggle",onChange:Le}),(null===($=je.mobilemenu)||void 0===$?void 0:$.enabled)&&React.createElement(React.Fragment,null,pe?React.createElement(React.Fragment,null,React.createElement(Vc,{title:wu("Mobile Menu Colors","linkt"),slug:"mobilemenu_style",value:null===(G=je.mobilemenu)||void 0===G?void 0:G.style,inputType:"select",options:{dark:wu("Dark","theme-site-kit"),light:wu("Light","theme-site-kit"),custom:wu("Custom","theme-site-kit")},onChange:Le}),"custom"===(null===(X=je.mobilemenu)||void 0===X?void 0:X.style)&&React.createElement(React.Fragment,null,React.createElement(Vc,{title:wu("Background Color","theme-site-kit"),slug:"mobilemenu_bgcolor",value:null===(V=je.social)||void 0===V?void 0:V.bgcolor,inputType:"colorpicker",defaultValue:"#1d2327",onChange:Le}),React.createElement(Vc,{title:wu("Text Color","theme-site-kit"),slug:"mobilemenu_textcolor",value:null===(q=je.social)||void 0===q?void 0:q.textcolor,inputType:"colorpicker",defaultValue:"#b4b4b4",onChange:Le}),React.createElement(Vc,{title:wu("Selected Text Color","theme-site-kit"),slug:"mobilemenu_selectedcolor",value:null===(Y=je.social)||void 0===Y?void 0:Y.selectedcolor,inputType:"colorpicker",defaultValue:"#FFF",onChange:Le}))):React.createElement(Vc,{title:wu("Upgrade to Theme Site Kit Pro","theme-site-kit"),desc:wu("Theme Site Kit Pro introduces a refined slide-out mobile navigation design for the core editor's Navigation block, offering a cleaner and more intuitive user experience.","theme-site-kit"),inputType:"pronote",upgradeUrl:ue}))))),React.createElement("div",{id:"kwtsk-content-cpts",className:"kwtsk-content ".concat("cpts"===Se?"active":"")},React.createElement(Yc,{title:wu("Custom Post Types","theme-site-kit"),description:wu("Create and Manage custom Post Types on your WordPress site.","theme-site-kit"),isPro:!0,isPremium:pe}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Vc,{title:wu("Enable Custom Post Types","theme-site-kit"),slug:"cpts_enabled",value:null===(K=je.cpts)||void 0===K?void 0:K.enabled,inputType:"toggle",onChange:Le,note:(null===(J=je.cpts)||void 0===J?void 0:J.enabled)&&wu("Once you've added your custom Post Type(s), you will need to refresh the page to view them in your WordPress admin.","theme-site-kit")}),(null===(Z=je.cpts)||void 0===Z?void 0:Z.enabled)&&React.createElement(React.Fragment,null,pe?React.createElement(React.Fragment,null,React.createElement(Vc,{title:wu("Custom Post Types","theme-site-kit"),slug:"cpts_post_types",value:null===(Q=je.cpts)||void 0===Q?void 0:Q.post_types,inputType:"cptsoptions",onChange:Le,apiUrl:ie,adminUrl:se})):React.createElement(Vc,{title:"Upgrade to Theme Site Kit Pro",desc:"Theme Site Kit Pro lets you add custom post types - special content formats beyond standard posts - to your WordPress dashboard, ideal for case studies, services, portfolios, etc.",upgradeUrl:ue,inputType:"pronote"}))))),React.createElement("div",{id:"kwtsk-content-extras",className:"kwtsk-content ".concat("extras"===Se?"active":"")},React.createElement(Yc,{title:wu("Extra Useful Features","theme-site-kit"),description:wu("A few thoughtful Extra's to improve your workflow and enhance your frontend experience - small details that make a big difference.","theme-site-kit")}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Vc,{title:wu("Enable SVG Uploads","theme-site-kit"),slug:"svgupload_enabled",value:null===(ee=je.svgupload)||void 0===ee?void 0:ee.enabled,inputType:"toggle",onChange:Le,note:null!==(te=je.svgupload)&&void 0!==te&&te.enabled?wu("You can now safely upload SVG files.","theme-site-kit"):wu("Allow SVG uploads in the Media Library. SVG files are XML-based vector images that can be scaled to any size without losing quality. They are often used for logos, icons, and other graphics on the web.","theme-site-kit")}),React.createElement(Vc,{title:wu("Code Snippets","theme-site-kit"),slug:"code_enabled",value:null===(ne=je.code)||void 0===ne?void 0:ne.enabled,inputType:"toggle",onChange:Le,note:null!==(re=je.code)&&void 0!==re&&re.enabled?wu("You can now add custom code snippets to your site.","theme-site-kit"):wu("Once enabled, refresh the page to see Code Snippets in your Dashboard sidebar.","theme-site-kit")}),React.createElement(Vc,{title:wu("Duplicate Posts","theme-site-kit"),slug:"duplicate_comingsoon",value:null===(oe=je.duplicate)||void 0===oe?void 0:oe.comingsoon,inputType:"toggle",onChange:Le,comingSoon:!0}))))),React.createElement("div",{className:"kwtskSettingBar bottom"},React.createElement("div",{className:"kwtskSettingBarMain"},React.createElement("button",{type:"submit",className:"button kwtskSaveBtn button-primary"},wu("Save Settings","theme-site-kit")),React.createElement("div",{className:"kwtskSaveBtnLoader"},(Ee||ye)&&React.createElement(nu,null))),React.createElement("div",{className:"kwtskSettingBarOptions"},React.createElement("div",{className:"kwtsk-delete",title:wu("Reset Settings","theme-site-kit"),onClick:function(e){var t=document.getElementsByClassName("kwtsk-delete");t[0].classList.add("show-confirm"),setTimeout((function(){t[0].classList.remove("show-confirm")}),2500)}},React.createElement("div",{className:"kwtsk-confirm-delete"},React.createElement("a",{onClick:function(e){e.preventDefault(),window.confirm(wu("Are you sure you want to delete all settings?","theme-site-kit"))&&(we(!0),ke(!0),yt.delete(ie+"/delete",{headers:{"X-WP-NONCE":le}}).then((function(e){we(!1),location.reload()})))}},wu("Confirm... Reset All Settings!","theme-site-kit")))))))))),Pe&&React.createElement(iu,{options:je.social,isPro:pe})))};var Eu=wp.element.render;document.addEventListener("DOMContentLoaded",(function(){var e=kwtskSObj,t=document.getElementById("kwtsk-root");t&&Eu(React.createElement(xu,{kwtskObj:e}),t)}))})(),(this["theme-site-kit"]=this["theme-site-kit"]||{})["settings.min"]={}})();13 */!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 l in n)r.call(n,l)&&n[l]&&e.push(l);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)}()},1769:(e,t,n)=>{var r=n(6449),o=n(8586),a=n(1802),i=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},1791:(e,t,n)=>{var r=n(6547),o=n(3360);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var l=-1,s=t.length;++l<s;){var c=t[l],u=a?a(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),i?o(n,c,u):r(n,c,u)}return n}},1799:(e,t,n)=>{var r=n(7217),o=n(270);e.exports=function(e,t,n,a){var i=n.length,l=i,s=!a;if(null==e)return!l;for(e=Object(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<l;){var u=(c=n[i])[0],p=e[u],f=c[1];if(s&&c[2]){if(void 0===p&&!(u in e))return!1}else{var d=new r;if(a)var h=a(p,f,u,e,t,d);if(!(void 0===h?o(f,p,3,a,d):h))return!1}}return!0}},1802:(e,t,n)=>{var r=n(2224),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},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},1882:(e,t,n)=>{var r=n(2552),o=n(3805);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}},1961:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},1986:(e,t,n)=>{var r=n(1873),o=n(7828),a=n(5288),i=n(5911),l=n(317),s=n(4247),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,p,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||!p(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 d=l;case"[object Set]":var h=1&r;if(d||(d=s),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var b=i(d(e),d(t),r,c,p,f);return f.delete(e),b;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2199:(e,t,n)=>{var r=n(4528),o=n(6449);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},2271:(e,t,n)=>{var r=n(1791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},2428:(e,t,n)=>{var r=n(7534),o=n(346),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},2552:(e,t,n)=>{var r=n(1873),o=n(659),a=n(9350),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)}},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},2693:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,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,bigint: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:a,resetWarningCache:o};return n.PropTypes=n,n}},2749:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},2804:(e,t,n)=>{var r=n(6110)(n(9325),"Promise");e.exports=r},2903:(e,t,n)=>{var r=n(3805),o=n(5527),a=n(181),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var l in e)("constructor"!=l||!t&&i.call(e,l))&&n.push(l);return n}},2949:(e,t,n)=>{var r=n(2651);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}},3007: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}},3040:(e,t,n)=>{var r=n(1549),o=n(79),a=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},3201:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},3215:(e,t,n)=>{var r=n(641),o=n(4066);e.exports=function(e,t){return e&&r(e,o(t))}},3221:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),l=i.length;l--;){var s=i[e?l:++o];if(!1===n(a[s],s,a))break}return t}}},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},3243:(e,t,n)=>{var r=n(6110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},3290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,l=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}},3345:e=>{e.exports=function(){return[]}},3349:(e,t,n)=>{var r=n(2199),o=n(6375),a=n(7241);e.exports=function(e){return r(e,a,o)}},3360:(e,t,n)=>{var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3488:e=>{e.exports=function(e){return e}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},3650:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=n(9935),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s},3661:(e,t,n)=>{var r=n(3040),o=n(7670),a=n(289),i=n(4509),l=n(2949);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},3663:(e,t,n)=>{var r=n(1799),o=n(776),a=n(7197);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)}}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3729: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}},3736:(e,t,n)=>{var r=n(1873),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3838:(e,t,n)=>{var r=n(1791),o=n(7241);e.exports=function(e,t){return e&&r(t,o(t),e)}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},4066:(e,t,n)=>{var r=n(3488);e.exports=function(e){return"function"==typeof e?e:r}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},4248: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}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4394:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},4528: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}},4657:(e,t,n)=>{"use strict";var r,o=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},a=n(677),i=(r=a)&&r.__esModule?r:{default:r};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,l=e.height,s=void 0===l?24:l,c=e.style,u=void 0===c?{}:c,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:s},u)},p),i.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},4664:(e,t,n)=>{var r=n(9770),o=n(3345),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=l},4733:(e,t,n)=>{var r=n(1791),o=n(5950);e.exports=function(e,t){return e&&r(t,o(t),e)}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},4894:(e,t,n)=>{var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4901:(e,t,n)=>{var r=n(2552),o=n(294),a=n(346),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)]}},4932: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}},5015:(e,t,n)=>{var r=n(2552),o=n(6449),a=n(346);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},5083:(e,t,n)=>{var r=n(1882),o=n(7296),a=n(3805),i=n(7473),l=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,u=s.toString,p=c.hasOwnProperty,f=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?f:l).test(i(e))}},5128:(e,t,n)=>{var r=n(909),o=n(4894);e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},5268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,o=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},a=n(677),i=(r=a)&&r.__esModule?r:{default:r};function l(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 s=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return a=s=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(u))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return i.default.createElement(t,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},i.default.createElement(e,o({},s.props,s.state)))},l(s,a)}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)}(r,n),r}(i.default.Component)};t.default=s},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5378:(e,t,n)=>{var r=n(4932),o=n(5389),a=n(5128),i=n(6449);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},5389:(e,t,n)=>{var r=n(3663),o=n(7978),a=n(3488),i=n(6449),l=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):l(e)}},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5529:(e,t,n)=>{var r=n(9344),o=n(8879),a=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},5556:(e,t,n)=>{e.exports=n(2694)()},5580:(e,t,n)=>{var r=n(6110)(n(9325),"DataView");e.exports=r},5749:(e,t,n)=>{var r=n(1042);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}},5861:(e,t,n)=>{var r=n(5580),o=n(8223),a=n(2804),i=n(6545),l=n(8303),s=n(2552),c=n(7473),u="[object Map]",p="[object Promise]",f="[object Set]",d="[object WeakMap]",h="[object DataView]",m=c(r),b=c(o),g=c(a),v=c(i),y=c(l),w=s;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||a&&w(a.resolve())!=p||i&&w(new i)!=f||l&&w(new l)!=d)&&(w=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case b:return u;case g:return p;case v:return f;case y:return d}return t}),e.exports=w},5901:(e,t,n)=>{var r=n(246),o=n(1720),a=n(677),i=n(8997);function l(e){return e&&e.__esModule?e.default:e}function s(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e){e.forEach((e=>c(e.element)))}function p(e){e.forEach((e=>{!function(e,t,n){const r=e.children[n]||null;e.insertBefore(t,r)}(e.parentElement,e.element,e.oldIndex)}))}function f(e,t){const n=b(e),r={parentElement:e.from};let o=[];switch(n){case"normal":o=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":o=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...r},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...r}];break;case"multidrag":o=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...r})))}const a=function(e,t){const n=e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex));return n}(o,t);return a}function d(e,t){return m(e,h(e,t))}function h(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function m(e,t,n,r){const o=[...t];return e.forEach((e=>{const t=r&&n&&r(e.item,n);o.splice(e.newIndex,0,t||e.item)})),o}function b(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}function g(e){const{list:t,setList:n,children:r,tag:o,style:a,className:i,clone:l,onAdd:s,onChange:c,onChoose:u,onClone:p,onEnd:f,onFilter:d,onRemove:h,onSort:m,onStart:b,onUnchoose:g,onUpdate:v,onMove:y,onSpill:w,onSelect:x,onDeselect:E,...k}=e;return k}s(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),s(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),s(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),s(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),s(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),s(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),s(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),s(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),s(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),s(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),s(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),s(e.exports,"ReactSortable",(()=>y));const v={dragging:null};class y extends a.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,a.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,v),l(i)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();l(r).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:r}=this.props,o={style:t,className:n,id:r},i=e&&null!==e?e:"div";return(0,a.createElement)(i,{ref:this.ref,...o},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:r="sortable-chosen",dragClass:i="sortable-drag",fallbackClass:s="sortable-falback",ghostClass:c="sortable-ghost",swapClass:u="sortable-swap-highlight",filter:p="sortable-filter",list:f}=this.props;if(!e||null==e)return null;const d=t||"data-id";return a.Children.map(e,((e,t)=>{if(void 0===e)return;const i=f[t]||{},{className:s}=e.props,c="string"==typeof p&&{[p.replace(".","")]:!!i.filtered},u=l(o)(s,{[n]:i.selected,[r]:i.chosen,...c});return(0,a.cloneElement)(e,{[d]:e.key,className:u})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=g(this.props);["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t)));return{...e,onMove:(e,t)=>{const{onMove:n}=this.props,r=e.willInsertAfter||-1;if(!n)return r;const o=n(e,t,this.sortable,v);return void 0!==o&&o}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,v)}onAdd(e){const{list:t,setList:n,clone:r}=this.props,o=f(e,[...v.dragging.props.list]);u(o);n(m(o,t,e,r).map((e=>Object.assign(e,{selected:!1}))),this.sortable,v)}onRemove(e){const{list:t,setList:n}=this.props,r=b(e),o=f(e,t);p(o);let a=[...t];if("clone"!==e.pullMode)a=h(o,a);else{let t=o;switch(r){case"multidrag":t=o.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=o.map((t=>({...t,element:e.clone})));break;default:l(i)(!0,`mode "${r}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${r}" plugin`)}u(t),o.forEach((t=>{const n=t.oldIndex,r=this.props.clone(t.item,e);a.splice(n,1,r)}))}a=a.map((e=>Object.assign(e,{selected:!1}))),n(a,this.sortable,v)}onUpdate(e){const{list:t,setList:n}=this.props,r=f(e,t);u(r),p(r);return n(d(r,t),this.sortable,v)}onStart(){v.dragging=this}onEnd(){v.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(t,{chosen:!0})),r})),this.sortable,v)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(r,{chosen:!1})),r})),this.sortable,v)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&c(e.item)}onSelect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);r[n].selected=!0})),n(r,this.sortable,v)}onDeselect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(r[t].selected=!0)})),n(r,this.sortable,v)}}var w,x;w=e.exports,x={},Object.keys(x).forEach((function(e){"default"===e||"__esModule"===e||w.hasOwnProperty(e)||Object.defineProperty(w,e,{enumerable:!0,get:function(){return x[e]}})}))},5911:(e,t,n)=>{var r=n(8859),o=n(4248),a=n(9219);e.exports=function(e,t,n,i,l,s){var c=1&n,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var f=s.get(e),d=s.get(t);if(f&&d)return f==t&&d==e;var h=-1,m=!0,b=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h<u;){var g=e[h],v=t[h];if(i)var y=c?i(v,g,h,t,e,s):i(g,v,h,e,t,s);if(void 0!==y){if(y)continue;m=!1;break}if(b){if(!o(t,(function(e,t){if(!a(b,t)&&(g===e||l(g,e,n,i,s)))return b.push(t)}))){m=!1;break}}else if(g!==v&&!l(g,v,n,i,s)){m=!1;break}}return s.delete(e),s.delete(t),m}},5950:(e,t,n)=>{var r=n(695),o=n(8984),a=n(4894);e.exports=function(e){return a(e)?r(e):o(e)}},6009:(e,t,n)=>{e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},6038:(e,t,n)=>{var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},6110:(e,t,n)=>{var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},6169:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},6189: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}},6203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=i(n(3215)),o=i(n(8055)),a=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};function i(e){return e&&e.__esModule?e:{default:e}}var l=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=a({},n[t],o[t])})),t})),n};t.default=l},6375:(e,t,n)=>{var r=n(4528),o=n(8879),a=n(4664),i=n(3345),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=l},6449:e=>{var t=Array.isArray;e.exports=t},6545:(e,t,n)=>{var r=n(6110)(n(9325),"Set");e.exports=r},6547:(e,t,n)=>{var r=n(3360),o=n(5288),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)}},6649:(e,t,n)=>{var r=n(3221)();e.exports=r},6686:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,o=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},a=n(677),i=(r=a)&&r.__esModule?r:{default:r};function l(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 s=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return a=s=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(u))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return i.default.createElement(t,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},i.default.createElement(e,o({},s.props,s.state)))},l(s,a)}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)}(r,n),r}(i.default.Component)};t.default=s},6721:(e,t,n)=>{var r=n(1042),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}},6892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(3215),a=(r=o)&&r.__esModule?r:{default:r},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};var l={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},s=t.autoprefix=function(e){var t={};return(0,a.default)(e,(function(e,n){var r={};(0,a.default)(e,(function(e,t){var n=l[t];n?r=i({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=s},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7068:(e,t,n)=>{var r=n(7217),o=n(5911),a=n(1986),i=n(689),l=n(5861),s=n(6449),c=n(3656),u=n(7167),p="[object Arguments]",f="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,b,g){var v=s(e),y=s(t),w=v?f:l(e),x=y?f:l(t),E=(w=w==p?d:w)==d,k=(x=x==p?d:x)==d,_=w==x;if(_&&c(e)){if(!c(t))return!1;v=!0,E=!1}if(_&&!E)return g||(g=new r),v||u(e)?o(e,t,n,m,b,g):a(e,t,w,n,m,b,g);if(!(1&n)){var S=E&&h.call(e,"__wrapped__"),R=k&&h.call(t,"__wrapped__");if(S||R){var O=S?e.value():e,C=R?t.value():t;return g||(g=new r),b(O,C,n,m,g)}}return!!_&&(g||(g=new r),i(e,t,n,m,b,g))}},7167:(e,t,n)=>{var r=n(4901),o=n(7301),a=n(6009),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},7197:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},7199:(e,t,n)=>{var r=n(9653),o=n(6169),a=n(3201),i=n(3736),l=n(1961);e.exports=function(e,t,n){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new s(+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 l(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},7217:(e,t,n)=>{var r=n(79),o=n(1420),a=n(938),i=n(3605),l=n(9817),s=n(945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=l,c.prototype.set=s,e.exports=c},7237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7241:(e,t,n)=>{var r=n(695),o=n(2903),a=n(4894);e.exports=function(e){return a(e)?r(e,!0):o(e)}},7255:(e,t,n)=>{var r=n(7422);e.exports=function(e){return function(t){return r(t,e)}}},7296:(e,t,n)=>{var r,o=n(5481),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},7422:(e,t,n)=>{var r=n(1769),o=n(7797);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}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7534:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},7556:(e,t,n)=>{var r=n(1873),o=n(4932),a=n(6449),i=n(4394),l=r?r.prototype:void 0,s=l?l.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 s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},7730:(e,t,n)=>{var r=n(9172),o=n(7301),a=n(6009),i=a&&a.isMap,l=i?o(i):r;e.exports=l},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},7978:(e,t,n)=>{var r=n(270),o=n(8156),a=n(631),i=n(8586),l=n(756),s=n(7197),c=n(7797);e.exports=function(e,t){return i(e)&&l(t)?s(c(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},8055:(e,t,n)=>{var r=n(9999);e.exports=function(e){return r(e,5)}},8077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},8096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},8156:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},8303:(e,t,n)=>{var r=n(6110)(n(9325),"WeakMap");e.exports=r},8329:(e,t,n)=>{var r=n(4894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i<a)&&!1!==o(l[i],i,l););return n}}},8440:(e,t,n)=>{var r=n(6038),o=n(7301),a=n(6009),i=a&&a.isSet,l=i?o(i):r;e.exports=l},8527:(e,t,n)=>{"use strict";t.H8=void 0;var r=c(n(9265)),o=c(n(6203)),a=c(n(6892)),i=c(n(6686)),l=c(n(5268)),s=c(n(2693));function c(e){return e&&e.__esModule?e:{default:e}}i.default,t.H8=i.default,l.default,s.default;var u=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var l=(0,r.default)(n),s=(0,o.default)(e,l);return(0,a.default)(s)};t.Ay=u},8586:(e,t,n)=>{var r=n(6449),o=n(4394),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))}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},8859:(e,t,n)=>{var r=n(3661),o=n(1380),a=n(1459);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},8879:(e,t,n)=>{var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},8948:(e,t,n)=>{var r=n(1791),o=n(6375);e.exports=function(e,t){return r(e,o(e),t)}},8984:(e,t,n)=>{var r=n(5527),o=n(3650),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}},8997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=!0,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t;throw new Error(n?o+": "+n:o)}}},9172:(e,t,n)=>{var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},9219:e=>{e.exports=function(e,t){return e.has(t)}},9265:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=l(n(5015)),o=l(n(3215)),a=l(n(1331)),i=l(n(5378));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,i.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,a.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=s},9325:(e,t,n)=>{var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},9326:(e,t,n)=>{var r=n(1769),o=n(2428),a=n(6449),i=n(361),l=n(294),s=n(7797);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,p=!1;++c<u;){var f=s(t[c]);if(!(p=null!=e&&n(e,f)))break;e=e[f]}return p||++c!=u?p:!!(u=null==e?0:e.length)&&l(u)&&i(f,u)&&(a(e)||o(e))}},9344:(e,t,n)=>{var r=n(3805),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},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9653:(e,t,n)=>{var r=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},9770: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}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},9935:e=>{e.exports=function(){return!1}},9999:(e,t,n)=>{var r=n(7217),o=n(3729),a=n(6547),i=n(4733),l=n(3838),s=n(3290),c=n(3007),u=n(2271),p=n(8948),f=n(2),d=n(3349),h=n(5861),m=n(6189),b=n(7199),g=n(5529),v=n(6449),y=n(3656),w=n(7730),x=n(3805),E=n(8440),k=n(5950),_=n(7241),S="[object Arguments]",R="[object Function]",O="[object Object]",C={};C[S]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[O]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[R]=C["[object WeakMap]"]=!1,e.exports=function e(t,n,j,A,T,P){var N,D=1&n,M=2&n,F=4&n;if(j&&(N=T?j(t,A,T,P):j(t)),void 0!==N)return N;if(!x(t))return t;var B=v(t);if(B){if(N=m(t),!D)return c(t,N)}else{var L=h(t),I=L==R||"[object GeneratorFunction]"==L;if(y(t))return s(t,D);if(L==O||L==S||I&&!T){if(N=M||I?{}:g(t),!D)return M?p(t,l(N,t)):u(t,i(N,t))}else{if(!C[L])return T?t:{};N=b(t,L,D)}}P||(P=new r);var U=P.get(t);if(U)return U;P.set(t,N),E(t)?t.forEach((function(r){N.add(e(r,n,j,r,t,P))})):w(t)&&t.forEach((function(r,o){N.set(o,e(r,n,j,o,t,P))}));var z=B?void 0:(F?M?d:f:M?_:k)(t);return o(z||t,(function(r,o){z&&(r=t[o=r]),a(N,o,e(r,n,j,o,t,P))})),N}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r](a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);(()=>{"use strict";var e={};function t(e,t){return function(){return e.apply(t,arguments)}}n.r(e),n.d(e,{hasBrowserEnv:()=>pe,hasStandardBrowserEnv:()=>de,hasStandardBrowserWebWorkerEnv:()=>he,navigator:()=>fe,origin:()=>me});const{toString:r}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:a,toStringTag:i}=Symbol,l=(s=Object.create(null),e=>{const t=r.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const c=e=>(e=e.toLowerCase(),t=>l(t)===e),u=e=>t=>typeof t===e,{isArray:p}=Array,f=u("undefined");function d(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const h=c("ArrayBuffer");const m=u("string"),b=u("function"),g=u("number"),v=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==l(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||i in e||a in e)},w=c("Date"),x=c("File"),E=c("Blob"),k=c("FileList"),_=c("URLSearchParams"),[S,R,O,C]=["ReadableStream","Request","Response","Headers"].map(c);function j(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(d(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function A(e,t){if(d(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,P=e=>!f(e)&&e!==T;const N=(D="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>D&&e instanceof D);var D;const M=c("HTMLFormElement"),F=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),B=c("RegExp"),L=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};j(n,((n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)})),Object.defineProperties(e,r)};const I=c("AsyncFunction"),U=(z="function"==typeof setImmediate,H=b(T.postMessage),z?setImmediate:H?(W=`axios@${Math.random()}`,$=[],T.addEventListener("message",(({source:e,data:t})=>{e===T&&t===W&&$.length&&$.shift()()}),!1),e=>{$.push(e),T.postMessage(W,"*")}):e=>setTimeout(e));var z,H,W,$;const X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||U,G={isArray:p,isArrayBuffer:h,isBuffer:d,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||b(e.append)&&("formdata"===(t=l(e))||"object"===t&&b(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:m,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:y,isEmptyObject:e=>{if(!v(e)||d(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:S,isRequest:R,isResponse:O,isHeaders:C,isUndefined:f,isDate:w,isFile:x,isBlob:E,isRegExp:B,isFunction:b,isStream:e=>v(e)&&b(e.pipe),isURLSearchParams:_,isTypedArray:N,isFileList:k,forEach:j,merge:function e(){const{caseless:t}=P(this)&&this||{},n={},r=(r,o)=>{const a=t&&A(n,o)||o;y(n[a])&&y(r)?n[a]=e(n[a],r):y(r)?n[a]=e({},r):p(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&j(arguments[e],r);return n},extend:(e,n,r,{allOwnKeys:o}={})=>(j(n,((n,o)=>{r&&b(n)?e[o]=t(n,r):e[o]=n}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,i,l;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],r&&!r(l,e,t)||s[l]||(t[l]=e[l],s[l]=!0);e=!1!==n&&o(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:c,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[a]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:L,freezeMethods:e=>{L(e,((t,n)=>{if(b(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];b(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:A,global:T,isContextDefined:P,isSpecCompliantForm:function(e){return!!(e&&b(e.append)&&"FormData"===e[i]&&e[a])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(d(e))return e;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return j(e,((e,t)=>{const a=n(e,r+1);!f(a)&&(o[t]=a)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:I,isThenable:e=>e&&(v(e)||b(e))&&b(e.then)&&b(e.catch),setImmediate:U,asap:X,isIterable:e=>null!=e&&b(e[a])};function V(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const q=V.prototype,Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Y[e]={value:e}})),Object.defineProperties(V,Y),Object.defineProperty(q,"isAxiosError",{value:!0}),V.from=(e,t,n,r,o,a)=>{const i=Object.create(q);return G.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),V.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const K=V;function J(e){return G.isPlainObject(e)||G.isArray(e)}function Z(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,n){return e?e.concat(t).map((function(e,t){return e=Z(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ee=G.toFlatObject(G,{},null,(function(e){return/^is[A-Z]/.test(e)}));const te=function(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!G.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(G.isBoolean(e))return e.toString();if(!l&&G.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(J)}(e)||(G.isFileList(e)||G.endsWith(n,"[]"))&&(l=G.toArray(e)))return n=Z(n),l.forEach((function(e,r){!G.isUndefined(e)&&null!==e&&t.append(!0===i?Q([n],r,a):null===i?n:n+"[]",s(e))})),!1;return!!J(e)||(t.append(Q(o,n,a),s(e)),!1)}const u=[],p=Object.assign(ee,{defaultVisitor:c,convertValue:s,isVisitable:J});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!G.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),G.forEach(n,(function(n,a){!0===(!(G.isUndefined(n)||null===n)&&o.call(t,n,G.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a])})),u.pop()}}(e),t};function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const oe=re.prototype;oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ae=re;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function le(e,t,n){if(!t)return e;const r=n&&n.encode||ie;G.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(a=o?o(t,n):G.isURLSearchParams(t)?t.toString():new ae(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const se=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},pe="undefined"!=typeof window&&"undefined"!=typeof document,fe="object"==typeof navigator&&navigator||void 0,de=pe&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,me=pe&&window.location.href||"http://localhost",be={...e,...ue};const ge=function(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),l=o>=e.length;if(a=!a&&G.isArray(r)?r.length:a,l)return G.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&G.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&G.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,((e,r)=>{t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ve={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=G.isObject(e);o&&G.isHTMLForm(e)&&(e=new FormData(e));if(G.isFormData(e))return r?JSON.stringify(ge(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new be.classes.URLSearchParams,{visitor:function(e,t,n,r){return be.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ve.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw K.from(e,K.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],(e=>{ve.headers[e]={}}));const ye=ve,we=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xe=Symbol("internals");function Ee(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:G.isArray(e)?e.map(ke):String(e)}function _e(e,t,n,r,o){return G.isFunction(r)?r.call(this,t,n):(o&&(t=n),G.isString(t)?G.isString(r)?-1!==t.indexOf(r):G.isRegExp(r)?r.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ee(t);if(!o)throw new Error("header name must be a non-empty string");const a=G.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=ke(e))}const a=(e,t)=>G.forEach(e,((e,n)=>o(e,n,t)));if(G.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(G.isObject(e)&&G.isIterable(e)){let n,r,o={};for(const t of e){if(!G.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?G.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ee(e)){const n=G.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(G.isFunction(t))return t.call(this,e,n);if(G.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ee(e)){const n=G.findKey(this,e);return!(!n||void 0===this[n]||t&&!_e(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ee(e)){const o=G.findKey(n,e);!o||t&&!_e(0,n[o],o,t)||(delete n[o],r=!0)}}return G.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!_e(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return G.forEach(this,((r,o)=>{const a=G.findKey(n,o);if(a)return t[a]=ke(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=ke(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return G.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[xe]=this[xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ee(e);t[r]||(!function(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Se.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),G.freezeMethods(Se);const Re=Se;function Oe(e,t){const n=this||ye,r=t||n,o=Re.from(r.headers);let a=r.data;return G.forEach(e,(function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function Ce(e){return!(!e||!e.__CANCEL__)}function je(e,t,n){K.call(this,null==e?"canceled":e,K.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(je,K,{__CANCEL__:!0});const Ae=je;function Te(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Pe=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(l){const s=Date.now(),c=r[i];o||(o=s),n[a]=l,r[a]=s;let u=i,p=0;for(;u!==a;)p+=n[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),s-o<t)return;const f=c&&s-c;return f?Math.round(1e3*p/f):void 0}};const Ne=function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),l=t-o;l>=a?i(e,t):(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),a-l)))},()=>n&&i(n)]},De=(e,t,n=3)=>{let r=0;const o=Pe(50,250);return Ne((n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,l=a-r,s=o(l);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:s||void 0,estimated:s&&i&&a<=i?(i-a)/s:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Me=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Fe=e=>(...t)=>G.asap((()=>e(...t))),Be=be.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,be.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(be.origin),be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent)):()=>!0,Le=be.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),G.isString(r)&&i.push("path="+r),G.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ie(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ue=e=>e instanceof Re?{...e}:e;function ze(e,t){t=t||{};const n={};function r(e,t,n,r){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:r},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function o(e,t,n,o){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!G.isUndefined(t))return r(void 0,t)}function i(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const s={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(e,t,n)=>o(Ue(e),Ue(t),0,!0)};return G.forEach(Object.keys({...e,...t}),(function(r){const a=s[r]||o,i=a(e[r],t[r],r);G.isUndefined(i)&&a!==l||(n[r]=i)})),n}const He=e=>{const t=ze({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:l,auth:s}=t;if(t.headers=l=Re.from(l),t.url=le(Ie(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),G.isFormData(r))if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(!1!==(n=l.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];l.setContentType([e||"multipart/form-data",...t].join("; "))}if(be.hasStandardBrowserEnv&&(o&&G.isFunction(o)&&(o=o(t)),o||!1!==o&&Be(t.url))){const e=a&&i&&Le.read(i);e&&l.set(a,e)}return t},We="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=He(e);let o=r.data;const a=Re.from(r.headers).normalize();let i,l,s,c,u,{responseType:p,onUploadProgress:f,onDownloadProgress:d}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function b(){if(!m)return;const r=Re.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Te((function(e){t(e),h()}),(function(e){n(e),h()}),{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(b)},m.onabort=function(){m&&(n(new K("Request aborted",K.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new K("Network Error",K.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new K(t,o.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,m)),m=null},void 0===o&&a.setContentType(null),"setRequestHeader"in m&&G.forEach(a.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),G.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),d&&([s,u]=De(d,!0),m.addEventListener("progress",s)),f&&m.upload&&([l,c]=De(f),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ae(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===be.protocols.indexOf(g)?n(new K("Unsupported protocol "+g+":",K.ERR_BAD_REQUEST,e)):m.send(o||null)}))},$e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof K?t:new Ae(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,o(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))}),t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:l}=r;return l.unsubscribe=()=>G.asap(i),l}},Xe=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ge=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ve=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ge(e))yield*Xe(n,t)}(e,t);let a,i=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return l(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw l(e),e}},cancel:e=>(l(e),o.return())},{highWaterMark:2})},qe="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ye=qe&&"function"==typeof ReadableStream,Ke=qe&&("function"==typeof TextEncoder?(Je=new TextEncoder,e=>Je.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Je;const Ze=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Qe=Ye&&Ze((()=>{let e=!1;const t=new Request(be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),et=Ye&&Ze((()=>G.isReadableStream(new Response("").body))),tt={stream:et&&(e=>e.body)};var nt;qe&&(nt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!tt[e]&&(tt[e]=G.isFunction(nt[e])?t=>t[e]():(t,n)=>{throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,n)})})));const rt=async(e,t)=>{const n=G.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){const t=new Request(be.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e)?(await Ke(e)).byteLength:void 0)})(t):n},ot={http:null,xhr:We,fetch:qe&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:s,responseType:c,headers:u,withCredentials:p="same-origin",fetchOptions:f}=He(e);c=c?(c+"").toLowerCase():"text";let d,h=$e([o,a&&a.toAbortSignal()],i);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(s&&Qe&&"get"!==n&&"head"!==n&&0!==(b=await rt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(G.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Me(b,De(Fe(s)));r=Ve(n.body,65536,e,t)}}G.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;d=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?p:void 0});let a=await fetch(d,f);const i=et&&("stream"===c||"response"===c);if(et&&(l||i&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=G.toFiniteNumber(a.headers.get("content-length")),[n,r]=l&&Me(t,De(Fe(l),!0))||[];a=new Response(Ve(a.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let g=await tt[G.findKey(tt,c)||"text"](a,e);return!i&&m&&m(),await new Promise(((t,n)=>{Te(t,n,{data:g,headers:Re.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:d})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,d),{cause:t.cause||t});throw K.from(t,t&&t.code,e,d)}})};G.forEach(ot,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const at=e=>`- ${e}`,it=e=>G.isFunction(e)||null===e||!1===e,lt=e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){let t;if(n=e[a],r=n,!it(n)&&(r=ot[(t=String(n)).toLowerCase()],void 0===r))throw new K(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+a]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(at).join("\n"):" "+at(e[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function st(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function ct(e){st(e),e.headers=Re.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return lt(e.adapter||ye.adapter)(e).then((function(t){return st(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=Re.from(t.headers),t}),(function(t){return Ce(t)||(st(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=Re.from(t.response.headers))),Promise.reject(t)}))}const ut="1.11.0",pt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{pt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ft={};pt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ut+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new K(r(o," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!ft[o]&&(ft[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},pt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const dt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new K("option "+a+" must be "+n,K.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new K("Unknown option "+a,K.ERR_BAD_OPTION)}},validators:pt},ht=dt.validators;class mt{constructor(e){this.defaults=e||{},this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ze(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&dt.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),null!=r&&(G.isFunction(r)?t.paramsSerializer={serialize:r}:dt.assertOptions(r,{encode:ht.function,serialize:ht.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),dt.assertOptions(t,{baseUrl:ht.spelling("baseURL"),withXsrfToken:ht.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&G.merge(o.common,o[t.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Re.concat(a,o);const i=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const s=[];let c;this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)}));let u,p=0;if(!l){const e=[ct.bind(this),void 0];for(e.unshift(...i),e.push(...s),u=e.length,c=Promise.resolve(t);p<u;)c=c.then(e[p++],e[p++]);return c}u=i.length;let f=t;for(p=0;p<u;){const e=i[p++],t=i[p++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=ct.call(this,f)}catch(e){return Promise.reject(e)}for(p=0,u=s.length;p<u;)c=c.then(s[p++],s[p++]);return c}getUri(e){return le(Ie((e=ze(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],(function(e){mt.prototype[e]=function(t,n){return this.request(ze(n||{},{method:e,url:t,data:(n||{}).data}))}})),G.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(ze(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}mt.prototype[e]=t(),mt.prototype[e+"Form"]=t(!0)}));const bt=mt;class gt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ae(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new gt((function(t){e=t})),cancel:e}}}const vt=gt;const yt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yt).forEach((([e,t])=>{yt[t]=e}));const wt=yt;const xt=function e(n){const r=new bt(n),o=t(bt.prototype.request,r);return G.extend(o,bt.prototype,r,{allOwnKeys:!0}),G.extend(o,r,null,{allOwnKeys:!0}),o.create=function(t){return e(ze(n,t))},o}(ye);xt.Axios=bt,xt.CanceledError=Ae,xt.CancelToken=vt,xt.isCancel=Ce,xt.VERSION=ut,xt.toFormData=te,xt.AxiosError=K,xt.Cancel=xt.CanceledError,xt.all=function(e){return Promise.all(e)},xt.spread=function(e){return function(t){return e.apply(null,t)}},xt.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},xt.mergeConfig=ze,xt.AxiosHeaders=Re,xt.formToJSON=e=>ge(G.isHTMLForm(e)?new FormData(e):e),xt.getAdapter=lt,xt.HttpStatusCode=wt,xt.default=xt;const Et=xt;var kt=wp.i18n.__,_t=function(e){var t="-"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_")?"-":"_";return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,t).replace(new RegExp("".concat(t,"{2,}"),"g"),t).replace(new RegExp("^".concat(t,"|").concat(t,"$"),"g"),"")},St=[{value:"email",label:kt("Email","theme-site-kit")},{value:"phone",label:kt("Phone","theme-site-kit")},{value:"whatsapp",label:kt("WhatsApp","theme-site-kit")},{value:"telegram",label:kt("Telegram","theme-site-kit")},{value:"line",label:kt("Line","theme-site-kit")},{value:"facebook",label:kt("Facebook","theme-site-kit")},{value:"x-twitter",label:kt("X","theme-site-kit")},{value:"instagram",label:kt("Instagram","theme-site-kit")},{value:"linkedin",label:kt("LinkedIn","theme-site-kit")},{value:"pinterest",label:kt("Pinterest","theme-site-kit")},{value:"tiktok",label:kt("TikTok","theme-site-kit")},{value:"bluesky",label:kt("Bluesky","theme-site-kit")},{value:"youtube",label:kt("YouTube","theme-site-kit")},{value:"vimeo",label:kt("Vimeo","theme-site-kit")},{value:"wordpress",label:kt("WordPress","theme-site-kit")},{value:"tumblr",label:kt("Tumblr","theme-site-kit")},{value:"dribbble",label:kt("Dribbble","theme-site-kit")},{value:"airbnb",label:kt("Airbnb","theme-site-kit")},{value:"behance",label:kt("Behance","theme-site-kit")},{value:"product-hunt",label:kt("Product Hunt","theme-site-kit")},{value:"twitch",label:kt("Twitch","theme-site-kit")},{value:"snapchat",label:kt("SnapChat","theme-site-kit")},{value:"figma",label:kt("Figma","theme-site-kit")},{value:"spotify",label:kt("Spotify","theme-site-kit")},{value:"soundcloud",label:kt("SoundCloud","theme-site-kit")},{value:"deezer",label:kt("Deezer","theme-site-kit")},{value:"meetup",label:kt("Meetup","theme-site-kit")},{value:"etsy",label:kt("Etsy","theme-site-kit")},{value:"paypal",label:kt("PayPal","theme-site-kit")},{value:"skype",label:kt("Skype","theme-site-kit")},{value:"reddit-alien",label:kt("TikTok","theme-site-kit")},{value:"mix",label:kt("Mix","theme-site-kit")},{value:"hubspot",label:kt("HubSpot","theme-site-kit")},{value:"strava",label:kt("Strava","theme-site-kit")},{value:"foursquare",label:kt("Foursquare","theme-site-kit")},{value:"github-alt",label:kt("Github","theme-site-kit")},{value:"audible",label:kt("Audible","theme-site-kit")},{value:"aws",label:kt("AWS","theme-site-kit")},{value:"kickstarter-k",label:kt("Kickstarter","theme-site-kit")},{value:"flickr",label:kt("Flickr","theme-site-kit")},{value:"deviantart",label:kt("DeviantArt","theme-site-kit")},{value:"500px",label:kt("500px","theme-site-kit")},{value:"btc",label:kt("Bitcoin","theme-site-kit")},{value:"ethereum",label:kt("Ethereum","theme-site-kit")}],Rt=wp.i18n.__;const Ot=function(e){var t=e.slug,n=e.title,r=e.value,o=e.onChange,a=e.comingSoon,i=_t(t)?_t(t):_t(n),l=!!r;return a?React.createElement("p",{className:"setting-note"},n," ",Rt("coming soon...","theme-site-kit")):React.createElement("label",{className:"toggle-switch"},React.createElement("input",{id:i,name:i,type:"checkbox",onChange:o,checked:l,className:"toggle-switch-checkbox"}),React.createElement("span",{className:"toggle-switch-slider"}))};function Ct(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jt(e,t);var n={}.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)?jt(e,t):void 0}}(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 jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const At=function(e){var t=_t(e.slug)?_t(e.slug):_t(e.title),n=e.options;return React.createElement(React.Fragment,null,React.createElement("select",{id:t,name:t,onChange:e.onChange,value:e.value||e.defaultValue,className:"snSelect"},e.emptyOption&&React.createElement("option",{value:"",key:"empty"},e.emptyLabel||"Select an option..."),Object.entries(n).map((function(e){var t=Ct(e,2),n=t[0],r=t[1];return React.createElement("option",{value:n,key:n},r)}))))};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(null,arguments)}const Pt=function(e){var t=_t(e.slug)?_t(e.slug):_t(e.title),n=e.prefix?e.prefix:"",r=e.suffix?e.suffix:"";return React.createElement(React.Fragment,null,n&&React.createElement("span",{className:"prefix"},n),"text"===e.inputType?React.createElement("input",Tt({type:"text",id:t,name:t,placeholder:e.placeholder,value:e.value||"",onChange:e.onChange,className:"regular-text ".concat(e.className||"")},e.disabled&&{disabled:!0})):"number"===e.inputType?React.createElement("input",{type:"number",id:t,name:t,placeholder:e.placeholder,value:e.value||"",onChange:e.onChange,className:"small-text"}):React.createElement("textarea",{id:t,name:t,value:e.value||"",placeholder:e.placeholder,onChange:e.onChange,className:"regular-text",rows:"5"}),r&&React.createElement("span",{className:"suffix"},r))};function Nt(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Dt(e,t);var n={}.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)?Dt(e,t):void 0}}(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 Dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Mt=wp.element,Ft=Mt.useState,Bt=Mt.useEffect;const Lt=function(e){var t=_t(e.slug)?_t(e.slug):_t(e.title),n=Nt(Ft(0),2),r=n[0],o=n[1],a=e.defaultValue?e.defaultValue:e.min;return Bt((function(){e.value?o(e.value):o(a)}),[e.value]),React.createElement("div",{className:"kwtskRange"},React.createElement("div",{className:"kwtskRangeInput"},React.createElement("span",null,e.min),React.createElement("input",{type:"range",id:t,name:t,onChange:e.onChange,value:r,min:e.min?e.min:0,max:e.max?e.max:500,step:e.step?e.step:1}),React.createElement("span",null,e.max?e.max:500)),React.createElement("div",{className:"kwtskRangeInputVal"},React.createElement("input",{type:"text",value:r,readOnly:!0}),e.suffix?e.suffix:""))};function It(e){return function(e){if(Array.isArray(e))return Ht(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zt(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 Ut(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||zt(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 zt(e,t){if(e){if("string"==typeof e)return Ht(e,t);var n={}.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)?Ht(e,t):void 0}}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Wt=wp.element.useState;wp.i18n.__;const $t=function(e){var t=e.slug,n=e.value,r=e.onChange,o=e.options,a=void 0===o?[]:o,i=t,l=Ut(Wt(Array.isArray(n)?n:[]),2),s=l[0],c=l[1],u=Array.isArray(a)?a:Object.entries(a).map((function(e){var t=Ut(e,2);return{value:t[0],label:t[1]}})),p=function(e,t){var n;n=t?[].concat(It(s),[e]):s.filter((function(t){return t!==e})),c(n),r({target:{type:"checkbox",name:i,value:n,checked:t,className:"checkbox-input"}})};return React.createElement(React.Fragment,null,u.map((function(e){var t=_t("".concat(i,"-").concat(e.value)),n=s.includes(e.value);return React.createElement("div",{key:e.value,className:"kwtsk-checkboxes-block"},React.createElement("label",{className:"kwtsk-checkboxes-label ".concat(n?"selected":""),htmlFor:t},React.createElement("input",{id:t,name:i,type:"checkbox",value:e.value,checked:n,onChange:function(t){return p(e.value,t.target.checked)},className:"checkboxes-input"}),React.createElement("span",{className:"checkboxes-label"},e.label)))})))};var Xt=n(677),Gt=n.n(Xt),Vt=n(8527),qt={},Yt=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(qt[o])return qt[o];var a=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var a=o.getContext("2d");return a?(a.fillStyle=e,a.fillRect(0,0,o.width,o.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return qt[o]=a,a},Kt=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},Jt=function(e){var t=e.white,n=e.grey,r=e.size,o=e.renderers,a=e.borderRadius,i=e.boxShadow,l=e.children,s=(0,Vt.Ay)({default:{grid:{borderRadius:a,boxShadow:i,absolute:"0px 0px 0px 0px",background:"url("+Yt(t,n,r,o.canvas)+") center left"}}});return(0,Xt.isValidElement)(l)?Gt().cloneElement(l,Kt({},l.props,{style:Kt({},l.props.style,s.grid)})):Gt().createElement("div",{style:s.grid})};Jt.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};const Zt=Jt;var Qt=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},en=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}}();function tn(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}const nn=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=tn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=function(e,t,n,r,o){var a=o.clientWidth,i=o.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=l-(o.getBoundingClientRect().left+window.pageXOffset),u=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var p=void 0;if(p=u<0?0:u>i?1:Math.round(100*u/i)/100,t.a!==p)return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}else{var f=void 0;if(r!==(f=c<0?0:c>a?1:Math.round(100*c/a)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},tn(r,n)}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),en(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,Vt.Ay)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:Qt({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return Gt().createElement("div",{style:n.alpha},Gt().createElement("div",{style:n.checkboard},Gt().createElement(Zt,{renderers:this.props.renderers})),Gt().createElement("div",{style:n.gradient}),Gt().createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Gt().createElement("div",{style:n.pointer},this.props.pointer?Gt().createElement(this.props.pointer,this.props):Gt().createElement("div",{style:n.slider}))))}}]),t}(Xt.PureComponent||Xt.Component);var rn=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}}();var on=[38,40],an=1;const ln=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,on.indexOf(t)>-1)){var o=n.getArrowOffset(),a=38===e.keyCode?r+o:r-o;n.setUpdatedValue(a,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+an++,n}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),rn(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,Vt.Ay)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return Gt().createElement("div",{style:t.wrap},Gt().createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?Gt().createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(Xt.PureComponent||Xt.Component);var sn=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}}();function cn(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}const un=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=cn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=function(e,t,n,r){var o=r.clientWidth,a=r.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(r.getBoundingClientRect().left+window.pageXOffset),c=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var u=void 0;if(u=c<0?359:c>a?0:360*(-100*c/a+100)/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var p=void 0;if(p=s<0?0:s>o?359:100*s/o*360/100,n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},cn(r,n)}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),sn(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,Vt.Ay)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return Gt().createElement("div",{style:r.hue},Gt().createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Gt().createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),Gt().createElement("div",{style:r.pointer},this.props.pointer?Gt().createElement(this.props.pointer,this.props):Gt().createElement("div",{style:r.slider}))))}}]),t}(Xt.PureComponent||Xt.Component);var pn=n(5556),fn=n.n(pn);const dn=function(){this.__data__=[],this.size=0};const hn=function(e,t){return e===t||e!=e&&t!=t};const mn=function(e,t){for(var n=e.length;n--;)if(hn(e[n][0],t))return n;return-1};var bn=Array.prototype.splice;const gn=function(e){var t=this.__data__,n=mn(t,e);return!(n<0)&&(n==t.length-1?t.pop():bn.call(t,n,1),--this.size,!0)};const vn=function(e){var t=this.__data__,n=mn(t,e);return n<0?void 0:t[n][1]};const yn=function(e){return mn(this.__data__,e)>-1};const wn=function(e,t){var n=this.__data__,r=mn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function xn(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])}}xn.prototype.clear=dn,xn.prototype.delete=gn,xn.prototype.get=vn,xn.prototype.has=yn,xn.prototype.set=wn;const En=xn;const kn=function(){this.__data__=new En,this.size=0};const _n=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Sn=function(e){return this.__data__.get(e)};const Rn=function(e){return this.__data__.has(e)};const On="object"==typeof global&&global&&global.Object===Object&&global;var Cn="object"==typeof self&&self&&self.Object===Object&&self;const jn=On||Cn||Function("return this")();const An=jn.Symbol;var Tn=Object.prototype,Pn=Tn.hasOwnProperty,Nn=Tn.toString,Dn=An?An.toStringTag:void 0;const Mn=function(e){var t=Pn.call(e,Dn),n=e[Dn];try{e[Dn]=void 0;var r=!0}catch(e){}var o=Nn.call(e);return r&&(t?e[Dn]=n:delete e[Dn]),o};var Fn=Object.prototype.toString;const Bn=function(e){return Fn.call(e)};var Ln=An?An.toStringTag:void 0;const In=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ln&&Ln in Object(e)?Mn(e):Bn(e)};const Un=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const zn=function(e){if(!Un(e))return!1;var t=In(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Hn=jn["__core-js_shared__"];var Wn,$n=(Wn=/[^.]+$/.exec(Hn&&Hn.keys&&Hn.keys.IE_PROTO||""))?"Symbol(src)_1."+Wn:"";const Xn=function(e){return!!$n&&$n in e};var Gn=Function.prototype.toString;const Vn=function(e){if(null!=e){try{return Gn.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var qn=/^\[object .+?Constructor\]$/,Yn=Function.prototype,Kn=Object.prototype,Jn=Yn.toString,Zn=Kn.hasOwnProperty,Qn=RegExp("^"+Jn.call(Zn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const er=function(e){return!(!Un(e)||Xn(e))&&(zn(e)?Qn:qn).test(Vn(e))};const tr=function(e,t){return null==e?void 0:e[t]};const nr=function(e,t){var n=tr(e,t);return er(n)?n:void 0};const rr=nr(jn,"Map");const or=nr(Object,"create");const ar=function(){this.__data__=or?or(null):{},this.size=0};const ir=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var lr=Object.prototype.hasOwnProperty;const sr=function(e){var t=this.__data__;if(or){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return lr.call(t,e)?t[e]:void 0};var cr=Object.prototype.hasOwnProperty;const ur=function(e){var t=this.__data__;return or?void 0!==t[e]:cr.call(t,e)};const pr=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=or&&void 0===t?"__lodash_hash_undefined__":t,this};function fr(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])}}fr.prototype.clear=ar,fr.prototype.delete=ir,fr.prototype.get=sr,fr.prototype.has=ur,fr.prototype.set=pr;const dr=fr;const hr=function(){this.size=0,this.__data__={hash:new dr,map:new(rr||En),string:new dr}};const mr=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const br=function(e,t){var n=e.__data__;return mr(t)?n["string"==typeof t?"string":"hash"]:n.map};const gr=function(e){var t=br(this,e).delete(e);return this.size-=t?1:0,t};const vr=function(e){return br(this,e).get(e)};const yr=function(e){return br(this,e).has(e)};const wr=function(e,t){var n=br(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function xr(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])}}xr.prototype.clear=hr,xr.prototype.delete=gr,xr.prototype.get=vr,xr.prototype.has=yr,xr.prototype.set=wr;const Er=xr;const kr=function(e,t){var n=this.__data__;if(n instanceof En){var r=n.__data__;if(!rr||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Er(r)}return n.set(e,t),this.size=n.size,this};function _r(e){var t=this.__data__=new En(e);this.size=t.size}_r.prototype.clear=kn,_r.prototype.delete=_n,_r.prototype.get=Sn,_r.prototype.has=Rn,_r.prototype.set=kr;const Sr=_r;const Rr=function(){try{var e=nr(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const Or=function(e,t,n){"__proto__"==t&&Rr?Rr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};const Cr=function(e,t,n){(void 0!==n&&!hn(e[t],n)||void 0===n&&!(t in e))&&Or(e,t,n)};const jr=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),l=i.length;l--;){var s=i[e?l:++o];if(!1===n(a[s],s,a))break}return t}}();var Ar="object"==typeof exports&&exports&&!exports.nodeType&&exports,Tr=Ar&&"object"==typeof module&&module&&!module.nodeType&&module,Pr=Tr&&Tr.exports===Ar?jn.Buffer:void 0,Nr=Pr?Pr.allocUnsafe:void 0;const Dr=function(e,t){if(t)return e.slice();var n=e.length,r=Nr?Nr(n):new e.constructor(n);return e.copy(r),r};const Mr=jn.Uint8Array;const Fr=function(e){var t=new e.constructor(e.byteLength);return new Mr(t).set(new Mr(e)),t};const Br=function(e,t){var n=t?Fr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const Lr=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Ir=Object.create;const Ur=function(){function e(){}return function(t){if(!Un(t))return{};if(Ir)return Ir(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const zr=function(e,t){return function(n){return e(t(n))}};const Hr=zr(Object.getPrototypeOf,Object);var Wr=Object.prototype;const $r=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Wr)};const Xr=function(e){return"function"!=typeof e.constructor||$r(e)?{}:Ur(Hr(e))};const Gr=function(e){return null!=e&&"object"==typeof e};const Vr=function(e){return Gr(e)&&"[object Arguments]"==In(e)};var qr=Object.prototype,Yr=qr.hasOwnProperty,Kr=qr.propertyIsEnumerable;const Jr=Vr(function(){return arguments}())?Vr:function(e){return Gr(e)&&Yr.call(e,"callee")&&!Kr.call(e,"callee")};const Zr=Array.isArray;const Qr=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};const eo=function(e){return null!=e&&Qr(e.length)&&!zn(e)};const to=function(e){return Gr(e)&&eo(e)};const no=function(){return!1};var ro="object"==typeof exports&&exports&&!exports.nodeType&&exports,oo=ro&&"object"==typeof module&&module&&!module.nodeType&&module,ao=oo&&oo.exports===ro?jn.Buffer:void 0;const io=(ao?ao.isBuffer:void 0)||no;var lo=Function.prototype,so=Object.prototype,co=lo.toString,uo=so.hasOwnProperty,po=co.call(Object);const fo=function(e){if(!Gr(e)||"[object Object]"!=In(e))return!1;var t=Hr(e);if(null===t)return!0;var n=uo.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&co.call(n)==po};var ho={};ho["[object Float32Array]"]=ho["[object Float64Array]"]=ho["[object Int8Array]"]=ho["[object Int16Array]"]=ho["[object Int32Array]"]=ho["[object Uint8Array]"]=ho["[object Uint8ClampedArray]"]=ho["[object Uint16Array]"]=ho["[object Uint32Array]"]=!0,ho["[object Arguments]"]=ho["[object Array]"]=ho["[object ArrayBuffer]"]=ho["[object Boolean]"]=ho["[object DataView]"]=ho["[object Date]"]=ho["[object Error]"]=ho["[object Function]"]=ho["[object Map]"]=ho["[object Number]"]=ho["[object Object]"]=ho["[object RegExp]"]=ho["[object Set]"]=ho["[object String]"]=ho["[object WeakMap]"]=!1;const mo=function(e){return Gr(e)&&Qr(e.length)&&!!ho[In(e)]};const bo=function(e){return function(t){return e(t)}};var go="object"==typeof exports&&exports&&!exports.nodeType&&exports,vo=go&&"object"==typeof module&&module&&!module.nodeType&&module,yo=vo&&vo.exports===go&&On.process,wo=function(){try{var e=vo&&vo.require&&vo.require("util").types;return e||yo&&yo.binding&&yo.binding("util")}catch(e){}}();var xo=wo&&wo.isTypedArray;const Eo=xo?bo(xo):mo;const ko=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var _o=Object.prototype.hasOwnProperty;const So=function(e,t,n){var r=e[t];_o.call(e,t)&&hn(r,n)&&(void 0!==n||t in e)||Or(e,t,n)};const Ro=function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var l=t[a],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),o?Or(n,l,s):So(n,l,s)}return n};const Oo=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Co=/^(?:0|[1-9]\d*)$/;const jo=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Co.test(e))&&e>-1&&e%1==0&&e<t};var Ao=Object.prototype.hasOwnProperty;const To=function(e,t){var n=Zr(e),r=!n&&Jr(e),o=!n&&!r&&io(e),a=!n&&!r&&!o&&Eo(e),i=n||r||o||a,l=i?Oo(e.length,String):[],s=l.length;for(var c in e)!t&&!Ao.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||jo(c,s))||l.push(c);return l};const Po=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var No=Object.prototype.hasOwnProperty;const Do=function(e){if(!Un(e))return Po(e);var t=$r(e),n=[];for(var r in e)("constructor"!=r||!t&&No.call(e,r))&&n.push(r);return n};const Mo=function(e){return eo(e)?To(e,!0):Do(e)};const Fo=function(e){return Ro(e,Mo(e))};const Bo=function(e,t,n,r,o,a,i){var l=ko(e,n),s=ko(t,n),c=i.get(s);if(c)Cr(e,n,c);else{var u=a?a(l,s,n+"",e,t,i):void 0,p=void 0===u;if(p){var f=Zr(s),d=!f&&io(s),h=!f&&!d&&Eo(s);u=s,f||d||h?Zr(l)?u=l:to(l)?u=Lr(l):d?(p=!1,u=Dr(s,!0)):h?(p=!1,u=Br(s,!0)):u=[]:fo(s)||Jr(s)?(u=l,Jr(l)?u=Fo(l):Un(l)&&!zn(l)||(u=Xr(s))):p=!1}p&&(i.set(s,u),o(u,s,r,a,i),i.delete(s)),Cr(e,n,u)}};const Lo=function e(t,n,r,o,a){t!==n&&jr(n,(function(i,l){if(a||(a=new Sr),Un(i))Bo(t,n,l,r,e,o,a);else{var s=o?o(ko(t,l),i,l+"",t,n,a):void 0;void 0===s&&(s=i),Cr(t,l,s)}}),Mo)};const Io=function(e){return e};const Uo=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)};var zo=Math.max;const Ho=function(e,t,n){return t=zo(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=zo(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(i),Uo(e,this,l)}};const Wo=function(e){return function(){return e}};const $o=Rr?function(e,t){return Rr(e,"toString",{configurable:!0,enumerable:!1,value:Wo(t),writable:!0})}:Io;var Xo=Date.now;const Go=function(e){var t=0,n=0;return function(){var r=Xo(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}($o);const Vo=function(e,t){return Go(Ho(e,t,Io),e+"")};const qo=function(e,t,n){if(!Un(n))return!1;var r=typeof t;return!!("number"==r?eo(n)&&jo(t,n.length):"string"==r&&t in n)&&hn(n[t],e)};const Yo=function(e){return Vo((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&qo(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}((function(e,t,n){Lo(e,t,n)}));var Ko=function(e){var t=e.zDepth,n=e.radius,r=e.background,o=e.children,a=e.styles,i=void 0===a?{}:a,l=(0,Vt.Ay)(Yo({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},i),{"zDepth-1":1===t});return Gt().createElement("div",{style:l.wrap},Gt().createElement("div",{style:l.bg}),Gt().createElement("div",{style:l.content},o))};Ko.propTypes={background:fn().string,zDepth:fn().oneOf([0,1,2,3,4,5]),radius:fn().number,styles:fn().object},Ko.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};const Jo=Ko;const Zo=function(){return jn.Date.now()};var Qo=/\s/;const ea=function(e){for(var t=e.length;t--&&Qo.test(e.charAt(t)););return t};var ta=/^\s+/;const na=function(e){return e?e.slice(0,ea(e)+1).replace(ta,""):e};const ra=function(e){return"symbol"==typeof e||Gr(e)&&"[object Symbol]"==In(e)};var oa=/^[-+]0x[0-9a-f]+$/i,aa=/^0b[01]+$/i,ia=/^0o[0-7]+$/i,la=parseInt;const sa=function(e){if("number"==typeof e)return e;if(ra(e))return NaN;if(Un(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Un(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=na(e);var n=aa.test(e);return n||ia.test(e)?la(e.slice(2),n?2:8):oa.test(e)?NaN:+e};var ca=Math.max,ua=Math.min;const pa=function(e,t,n){var r,o,a,i,l,s,c=0,u=!1,p=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||p&&e-c>=a}function m(){var e=Zo();if(h(e))return b(e);l=setTimeout(m,function(e){var n=t-(e-s);return p?ua(n,a-(e-c)):n}(e))}function b(e){return l=void 0,f&&r?d(e):(r=o=void 0,i)}function g(){var e=Zo(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(m,t),u?d(e):i}(s);if(p)return clearTimeout(l),l=setTimeout(m,t),d(s)}return void 0===l&&(l=setTimeout(m,t)),i}return t=sa(t)||0,Un(n)&&(u=!!n.leading,a=(p="maxWait"in n)?ca(sa(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},g.flush=function(){return void 0===l?i:b(Zo())},g};const fa=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Un(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),pa(e,t,{leading:r,maxWait:t,trailing:o})};var da=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}}();var ha=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,a=r.height,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(n.getBoundingClientRect().left+window.pageXOffset),c=l-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>a&&(c=a);var u=s/o,p=1-c/a;return{h:t.h,s:u,v:p,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=fa((function(e,t,n){e(t,n)}),50),n}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),da(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,o=t.black,a=t.pointer,i=t.circle,l=(0,Vt.Ay)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:o,pointer:a,circle:i}},{custom:!!this.props.style});return Gt().createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Gt().createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),Gt().createElement("div",{style:l.white,className:"saturation-white"},Gt().createElement("div",{style:l.black,className:"saturation-black"}),Gt().createElement("div",{style:l.pointer},this.props.pointer?Gt().createElement(this.props.pointer,this.props):Gt().createElement("div",{style:l.circle}))))}}]),t}(Xt.PureComponent||Xt.Component);const ma=ha;const ba=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};const ga=zr(Object.keys,Object);var va=Object.prototype.hasOwnProperty;const ya=function(e){if(!$r(e))return ga(e);var t=[];for(var n in Object(e))va.call(e,n)&&"constructor"!=n&&t.push(n);return t};const wa=function(e){return eo(e)?To(e):ya(e)};const xa=function(e,t){return function(n,r){if(null==n)return n;if(!eo(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Object(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}((function(e,t){return e&&jr(e,t,wa)}));const Ea=function(e){return"function"==typeof e?e:Io};const ka=function(e,t){return(Zr(e)?ba:xa)(e,Ea(t))};function _a(e){return _a="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},_a(e)}var Sa=/^\s+/,Ra=/\s+$/;function Oa(e,t){if(t=t||{},(e=e||"")instanceof Oa)return e;if(!(this instanceof Oa))return new Oa(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;"string"==typeof e&&(e=function(e){e=e.replace(Sa,"").replace(Ra,"").toLowerCase();var t,n=!1;if($a[e])e=$a[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=ri.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=ri.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=ri.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=ri.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=ri.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=ri.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=ri.hex8.exec(e))return{r:Ya(t[1]),g:Ya(t[2]),b:Ya(t[3]),a:Qa(t[4]),format:n?"name":"hex8"};if(t=ri.hex6.exec(e))return{r:Ya(t[1]),g:Ya(t[2]),b:Ya(t[3]),format:n?"name":"hex"};if(t=ri.hex4.exec(e))return{r:Ya(t[1]+""+t[1]),g:Ya(t[2]+""+t[2]),b:Ya(t[3]+""+t[3]),a:Qa(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=ri.hex3.exec(e))return{r:Ya(t[1]+""+t[1]),g:Ya(t[2]+""+t[2]),b:Ya(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==_a(e)&&(oi(e.r)&&oi(e.g)&&oi(e.b)?(s=e.r,c=e.g,u=e.b,t={r:255*Va(s,255),g:255*Va(c,255),b:255*Va(u,255)},i=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):oi(e.h)&&oi(e.s)&&oi(e.v)?(r=Ja(e.s),o=Ja(e.v),t=function(e,t,n){e=6*Va(e,360),t=Va(t,100),n=Va(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,c=[n,i,a,a,l,n][s],u=[l,n,n,i,a,a][s],p=[a,a,l,n,n,i][s];return{r:255*c,g:255*u,b:255*p}}(e.h,r,o),i=!0,l="hsv"):oi(e.h)&&oi(e.s)&&oi(e.l)&&(r=Ja(e.s),a=Ja(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=Va(e,360),t=Va(t,100),n=Va(n,100),0===t)r=o=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=i(s,l,e+1/3),o=i(s,l,e),a=i(s,l,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,a),i=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a));var s,c,u;return n=Ga(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.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._ok=n.ok}function Ca(e,t,n){e=Va(e,255),t=Va(t,255),n=Va(n,255);var r,o,a=Math.max(e,t,n),i=Math.min(e,t,n),l=(a+i)/2;if(a==i)r=o=0;else{var s=a-i;switch(o=l>.5?s/(2-a-i):s/(a+i),a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,l}}function ja(e,t,n){e=Va(e,255),t=Va(t,255),n=Va(n,255);var r,o,a=Math.max(e,t,n),i=Math.min(e,t,n),l=a,s=a-i;if(o=0===a?0:s/a,a==i)r=0;else{switch(a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,v:l}}function Aa(e,t,n,r){var o=[Ka(Math.round(e).toString(16)),Ka(Math.round(t).toString(16)),Ka(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Ta(e,t,n,r){return[Ka(Za(r)),Ka(Math.round(e).toString(16)),Ka(Math.round(t).toString(16)),Ka(Math.round(n).toString(16))].join("")}function Pa(e,t){t=0===t?0:t||10;var n=Oa(e).toHsl();return n.s-=t/100,n.s=qa(n.s),Oa(n)}function Na(e,t){t=0===t?0:t||10;var n=Oa(e).toHsl();return n.s+=t/100,n.s=qa(n.s),Oa(n)}function Da(e){return Oa(e).desaturate(100)}function Ma(e,t){t=0===t?0:t||10;var n=Oa(e).toHsl();return n.l+=t/100,n.l=qa(n.l),Oa(n)}function Fa(e,t){t=0===t?0:t||10;var n=Oa(e).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))),Oa(n)}function Ba(e,t){t=0===t?0:t||10;var n=Oa(e).toHsl();return n.l-=t/100,n.l=qa(n.l),Oa(n)}function La(e,t){var n=Oa(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,Oa(n)}function Ia(e){var t=Oa(e).toHsl();return t.h=(t.h+180)%360,Oa(t)}function Ua(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Oa(e).toHsl(),r=[Oa(e)],o=360/t,a=1;a<t;a++)r.push(Oa({h:(n.h+a*o)%360,s:n.s,l:n.l}));return r}function za(e){var t=Oa(e).toHsl(),n=t.h;return[Oa(e),Oa({h:(n+72)%360,s:t.s,l:t.l}),Oa({h:(n+216)%360,s:t.s,l:t.l})]}function Ha(e,t,n){t=t||6,n=n||30;var r=Oa(e).toHsl(),o=360/n,a=[Oa(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(Oa(r));return a}function Wa(e,t){t=t||6;for(var n=Oa(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(Oa({h:r,s:o,v:a})),a=(a+l)%1;return i}Oa.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=Ga(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=ja(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=ja(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+")"},toHsl:function(){var e=Ca(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Ca(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+")"},toHex:function(e){return Aa(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[Ka(Math.round(e).toString(16)),Ka(Math.round(t).toString(16)),Ka(Math.round(n).toString(16)),Ka(Za(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Va(this._r,255))+"%",g:Math.round(100*Va(this._g,255))+"%",b:Math.round(100*Va(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Va(this._r,255))+"%, "+Math.round(100*Va(this._g,255))+"%, "+Math.round(100*Va(this._b,255))+"%)":"rgba("+Math.round(100*Va(this._r,255))+"%, "+Math.round(100*Va(this._g,255))+"%, "+Math.round(100*Va(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Xa[Aa(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Ta(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=Oa(e);n="#"+Ta(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"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()},clone:function(){return Oa(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Ma,arguments)},brighten:function(){return this._applyModification(Fa,arguments)},darken:function(){return this._applyModification(Ba,arguments)},desaturate:function(){return this._applyModification(Pa,arguments)},saturate:function(){return this._applyModification(Na,arguments)},greyscale:function(){return this._applyModification(Da,arguments)},spin:function(){return this._applyModification(La,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Ha,arguments)},complement:function(){return this._applyCombination(Ia,arguments)},monochromatic:function(){return this._applyCombination(Wa,arguments)},splitcomplement:function(){return this._applyCombination(za,arguments)},triad:function(){return this._applyCombination(Ua,[3])},tetrad:function(){return this._applyCombination(Ua,[4])}},Oa.fromRatio=function(e,t){if("object"==_a(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:Ja(e[r]));e=n}return Oa(e,t)},Oa.equals=function(e,t){return!(!e||!t)&&Oa(e).toRgbString()==Oa(t).toRgbString()},Oa.random=function(){return Oa.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Oa.mix=function(e,t,n){n=0===n?0:n||50;var r=Oa(e).toRgb(),o=Oa(t).toRgb(),a=n/100;return Oa({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})},Oa.readability=function(e,t){var n=Oa(e),r=Oa(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Oa.isReadable=function(e,t,n){var r,o,a=Oa.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},Oa.mostReadable=function(e,t,n){var r,o,a,i,l=null,s=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var c=0;c<t.length;c++)(r=Oa.readability(e,t[c]))>s&&(s=r,l=Oa(t[c]));return Oa.isReadable(e,l,{level:a,size:i})||!o?l:(n.includeFallbackColors=!1,Oa.mostReadable(e,["#fff","#000"],n))};var $a=Oa.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Xa=Oa.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}($a);function Ga(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Va(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=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function qa(e){return Math.min(1,Math.max(0,e))}function Ya(e){return parseInt(e,16)}function Ka(e){return 1==e.length?"0"+e:""+e}function Ja(e){return e<=1&&(e=100*e+"%"),e}function Za(e){return Math.round(255*parseFloat(e)).toString(16)}function Qa(e){return Ya(e)/255}var ei,ti,ni,ri=(ti="[\\s|\\(]+("+(ei="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+ei+")[,|\\s]+("+ei+")\\s*\\)?",ni="[\\s|\\(]+("+ei+")[,|\\s]+("+ei+")[,|\\s]+("+ei+")[,|\\s]+("+ei+")\\s*\\)?",{CSS_UNIT:new RegExp(ei),rgb:new RegExp("rgb"+ti),rgba:new RegExp("rgba"+ni),hsl:new RegExp("hsl"+ti),hsla:new RegExp("hsla"+ni),hsv:new RegExp("hsv"+ti),hsva:new RegExp("hsva"+ni),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 oi(e){return!!ri.CSS_UNIT.exec(e)}var ai=function(e){var t=0,n=0;return ka(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},ii=function(e,t){var n=e.hex?Oa(e.hex):Oa(e),r=n.toHsl(),o=n.toHsv(),a=n.toRgb(),i=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===i&&0===a.a?"transparent":"#"+i,rgb:a,hsv:o,oldHue:e.h||t||r.h,source:e.source}},li=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Oa(e).isValid()},si=function(e){if(!e)return"#fff";var t=ii(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},ci=function(e,t){return Oa(t+" ("+e.replace("°","")+")")._ok},ui=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},pi=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}}();const fi=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=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,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(ai(e)){var r=ii(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(ai(e)){var r=ii(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=ui({},ii(e.color,0)),t.debounce=pa((function(e,t,n){e(t,n)}),100),t}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)}(n,t),pi(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),Gt().createElement(e,ui({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return ui({},ii(e.color,t.oldHue))}}]),n}(Xt.PureComponent||Xt.Component);return t.propTypes=ui({},e.propTypes),t.defaultProps=ui({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};var di=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},hi=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}}();function mi(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 bi=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};const gi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=n=mi(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(a))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},mi(n,t)}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)}(r,n),hi(r,[{key:"render",value:function(){return Gt().createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},Gt().createElement(e,di({},this.props,this.state)))}}]),r}(Gt().Component)}((function(e){var t=e.color,n=e.style,r=e.onClick,o=void 0===r?function(){}:r,a=e.onHover,i=e.title,l=void 0===i?t:i,s=e.children,c=e.focus,u=e.focusStyle,p=void 0===u?{}:u,f="transparent"===t,d=(0,Vt.Ay)({default:{swatch:bi({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?p:{})}}),h={};return a&&(h.onMouseOver=function(e){return a(t,e)}),Gt().createElement("div",bi({style:d.swatch,onClick:function(e){return o(t,e)},title:l,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&o(t,e)}},h),s,f&&Gt().createElement(Zt,{borderRadius:d.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))}));const vi=function(e){var t=e.direction,n=(0,Vt.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return Gt().createElement("div",{style:n.picker})};var yi=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},wi=function(e){var t=e.rgb,n=e.hsl,r=e.width,o=e.height,a=e.onChange,i=e.direction,l=e.style,s=e.renderers,c=e.pointer,u=e.className,p=void 0===u?"":u,f=(0,Vt.Ay)({default:{picker:{position:"relative",width:r,height:o},alpha:{radius:"2px",style:l}}});return Gt().createElement("div",{style:f.picker,className:"alpha-picker "+p},Gt().createElement(nn,yi({},f.alpha,{rgb:t,hsl:n,pointer:c,renderers:s,onChange:a,direction:i})))};wi.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:vi};fi(wi);const xi=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};const Ei=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const ki=function(e){return this.__data__.has(e)};function _i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Er;++t<n;)this.add(e[t])}_i.prototype.add=_i.prototype.push=Ei,_i.prototype.has=ki;const Si=_i;const Ri=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};const Oi=function(e,t){return e.has(t)};const Ci=function(e,t,n,r,o,a){var i=1&n,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var p=-1,f=!0,d=2&n?new Si:void 0;for(a.set(e,t),a.set(t,e);++p<l;){var h=e[p],m=t[p];if(r)var b=i?r(m,h,p,t,e,a):r(h,m,p,e,t,a);if(void 0!==b){if(b)continue;f=!1;break}if(d){if(!Ri(t,(function(e,t){if(!Oi(d,t)&&(h===e||o(h,e,n,r,a)))return d.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f};const ji=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};const Ai=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Ti=An?An.prototype:void 0,Pi=Ti?Ti.valueOf:void 0;const Ni=function(e,t,n,r,o,a,i){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||!a(new Mr(e),new Mr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return hn(+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 l=ji;case"[object Set]":var s=1&r;if(l||(l=Ai),e.size!=t.size&&!s)return!1;var c=i.get(e);if(c)return c==t;r|=2,i.set(e,t);var u=Ci(l(e),l(t),r,o,a,i);return i.delete(e),u;case"[object Symbol]":if(Pi)return Pi.call(e)==Pi.call(t)}return!1};const Di=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};const Mi=function(e,t,n){var r=t(e);return Zr(e)?r:Di(r,n(e))};const Fi=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};const Bi=function(){return[]};var Li=Object.prototype.propertyIsEnumerable,Ii=Object.getOwnPropertySymbols;const Ui=Ii?function(e){return null==e?[]:(e=Object(e),Fi(Ii(e),(function(t){return Li.call(e,t)})))}:Bi;const zi=function(e){return Mi(e,wa,Ui)};var Hi=Object.prototype.hasOwnProperty;const Wi=function(e,t,n,r,o,a){var i=1&n,l=zi(e),s=l.length;if(s!=zi(t).length&&!i)return!1;for(var c=s;c--;){var u=l[c];if(!(i?u in t:Hi.call(t,u)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var h=i;++c<s;){var m=e[u=l[c]],b=t[u];if(r)var g=i?r(b,m,u,t,e,a):r(m,b,u,e,t,a);if(!(void 0===g?m===b||o(m,b,n,r,a):g)){d=!1;break}h||(h="constructor"==u)}if(d&&!h){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(d=!1)}return a.delete(e),a.delete(t),d};const $i=nr(jn,"DataView");const Xi=nr(jn,"Promise");const Gi=nr(jn,"Set");const Vi=nr(jn,"WeakMap");var qi="[object Map]",Yi="[object Promise]",Ki="[object Set]",Ji="[object WeakMap]",Zi="[object DataView]",Qi=Vn($i),el=Vn(rr),tl=Vn(Xi),nl=Vn(Gi),rl=Vn(Vi),ol=In;($i&&ol(new $i(new ArrayBuffer(1)))!=Zi||rr&&ol(new rr)!=qi||Xi&&ol(Xi.resolve())!=Yi||Gi&&ol(new Gi)!=Ki||Vi&&ol(new Vi)!=Ji)&&(ol=function(e){var t=In(e),n="[object Object]"==t?e.constructor:void 0,r=n?Vn(n):"";if(r)switch(r){case Qi:return Zi;case el:return qi;case tl:return Yi;case nl:return Ki;case rl:return Ji}return t});const al=ol;var il="[object Arguments]",ll="[object Array]",sl="[object Object]",cl=Object.prototype.hasOwnProperty;const ul=function(e,t,n,r,o,a){var i=Zr(e),l=Zr(t),s=i?ll:al(e),c=l?ll:al(t),u=(s=s==il?sl:s)==sl,p=(c=c==il?sl:c)==sl,f=s==c;if(f&&io(e)){if(!io(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new Sr),i||Eo(e)?Ci(e,t,n,r,o,a):Ni(e,t,s,n,r,o,a);if(!(1&n)){var d=u&&cl.call(e,"__wrapped__"),h=p&&cl.call(t,"__wrapped__");if(d||h){var m=d?e.value():e,b=h?t.value():t;return a||(a=new Sr),o(m,b,n,r,a)}}return!!f&&(a||(a=new Sr),Wi(e,t,n,r,o,a))};const pl=function e(t,n,r,o,a){return t===n||(null==t||null==n||!Gr(t)&&!Gr(n)?t!=t&&n!=n:ul(t,n,r,o,e,a))};const fl=function(e,t,n,r){var o=n.length,a=o,i=!r;if(null==e)return!a;for(e=Object(e);o--;){var l=n[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var s=(l=n[o])[0],c=e[s],u=l[1];if(i&&l[2]){if(void 0===c&&!(s in e))return!1}else{var p=new Sr;if(r)var f=r(c,u,s,e,t,p);if(!(void 0===f?pl(u,c,3,r,p):f))return!1}}return!0};const dl=function(e){return e==e&&!Un(e)};const hl=function(e){for(var t=wa(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,dl(o)]}return t};const ml=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};const bl=function(e){var t=hl(e);return 1==t.length&&t[0][2]?ml(t[0][0],t[0][1]):function(n){return n===e||fl(n,e,t)}};var gl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vl=/^\w*$/;const yl=function(e,t){if(Zr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ra(e))||(vl.test(e)||!gl.test(e)||null!=t&&e in Object(t))};function wl(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(wl.Cache||Er),n}wl.Cache=Er;const xl=wl;const El=function(e){var t=xl(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t};var kl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_l=/\\(\\)?/g;const Sl=El((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(kl,(function(e,n,r,o){t.push(r?o.replace(_l,"$1"):n||e)})),t}));var Rl=An?An.prototype:void 0,Ol=Rl?Rl.toString:void 0;const Cl=function e(t){if("string"==typeof t)return t;if(Zr(t))return xi(t,e)+"";if(ra(t))return Ol?Ol.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const jl=function(e){return null==e?"":Cl(e)};const Al=function(e,t){return Zr(e)?e:yl(e,t)?[e]:Sl(jl(e))};const Tl=function(e){if("string"==typeof e||ra(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};const Pl=function(e,t){for(var n=0,r=(t=Al(t,e)).length;null!=e&&n<r;)e=e[Tl(t[n++])];return n&&n==r?e:void 0};const Nl=function(e,t,n){var r=null==e?void 0:Pl(e,t);return void 0===r?n:r};const Dl=function(e,t){return null!=e&&t in Object(e)};const Ml=function(e,t,n){for(var r=-1,o=(t=Al(t,e)).length,a=!1;++r<o;){var i=Tl(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&Qr(o)&&jo(i,o)&&(Zr(e)||Jr(e))};const Fl=function(e,t){return null!=e&&Ml(e,t,Dl)};const Bl=function(e,t){return yl(e)&&dl(t)?ml(Tl(e),t):function(n){var r=Nl(n,e);return void 0===r&&r===t?Fl(n,e):pl(t,r,3)}};const Ll=function(e){return function(t){return null==t?void 0:t[e]}};const Il=function(e){return function(t){return Pl(t,e)}};const Ul=function(e){return yl(e)?Ll(Tl(e)):Il(e)};const zl=function(e){return"function"==typeof e?e:null==e?Io:"object"==typeof e?Zr(e)?Bl(e[0],e[1]):bl(e):Ul(e)};const Hl=function(e,t){var n=-1,r=eo(e)?Array(e.length):[];return xa(e,(function(e,o,a){r[++n]=t(e,o,a)})),r};const Wl=function(e,t){return(Zr(e)?xi:Hl)(e,zl(t,3))};const $l=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,o=(0,Vt.Ay)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return Gt().createElement("div",{style:o.swatches},Wl(t,(function(e){return Gt().createElement(gi,{key:e,color:e,style:o.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})})),Gt().createElement("div",{style:o.clear}))};var Xl=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,o=e.colors,a=e.width,i=e.triangle,l=e.styles,s=void 0===l?{}:l,c=e.className,u=void 0===c?"":c,p="transparent"===r,f=function(e,n){li(e)&&t({hex:e,source:"hex"},n)},d=(0,Vt.Ay)(Yo({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:si(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},s),{"hide-triangle":"hide"===i});return Gt().createElement("div",{style:d.card,className:"block-picker "+u},Gt().createElement("div",{style:d.triangle}),Gt().createElement("div",{style:d.head},p&&Gt().createElement(Zt,{borderRadius:"6px 6px 0 0"}),Gt().createElement("div",{style:d.label},r)),Gt().createElement("div",{style:d.body},Gt().createElement($l,{colors:o,onClick:f,onSwatchHover:n}),Gt().createElement(ln,{style:{input:d.input},value:r,onChange:f})))};Xl.propTypes={width:fn().oneOfType([fn().string,fn().number]),colors:fn().arrayOf(fn().string),triangle:fn().oneOf(["top","hide"]),styles:fn().object},Xl.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};fi(Xl);var Gl={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"},Vl={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"},ql={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"},Yl={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Kl={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"},Jl={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"},Zl={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"},Ql={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},es={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},ts={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"},ns={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},rs={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},os={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},as={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},is={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"},ls={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},ss={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},cs={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"};var us=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,o=e.hover,a=e.active,i=e.circleSize,l=e.circleSpacing,s=(0,Vt.Ay)({default:{swatch:{width:i,height:i,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(i/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:o,active:a});return Gt().createElement("div",{style:s.swatch},Gt().createElement(gi,{style:s.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:s.Swatch.boxShadow+", 0 0 5px "+t}}))};us.defaultProps={circleSize:28,circleSpacing:14};const ps=(0,Vt.H8)(us);var fs=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,o=e.colors,a=e.hex,i=e.circleSize,l=e.styles,s=void 0===l?{}:l,c=e.circleSpacing,u=e.className,p=void 0===u?"":u,f=(0,Vt.Ay)(Yo({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},s)),d=function(e,t){return n({hex:e,source:"hex"},t)};return Gt().createElement("div",{style:f.card,className:"circle-picker "+p},Wl(o,(function(e){return Gt().createElement(ps,{key:e,color:e,onClick:d,onSwatchHover:r,active:a===e.toLowerCase(),circleSize:i,circleSpacing:c})})))};fs.propTypes={width:fn().oneOfType([fn().string,fn().number]),circleSize:fn().number,circleSpacing:fn().number,styles:fn().object},fs.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Gl[500],Vl[500],ql[500],Yl[500],Kl[500],Jl[500],Zl[500],Ql[500],es[500],ts[500],ns[500],rs[500],os[500],as[500],is[500],ls[500],ss[500],cs[500]],styles:{}};fi(fs);const ds=function(e){return void 0===e};var hs=n(4657),ms=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}}();var bs=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?li(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(ds(e.s)?n.props.hsl.s:e.s),l:Number(ds(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}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),ms(t,[{key:"render",value:function(){var e=this,t=(0,Vt.Ay)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=Gt().createElement("div",{style:t.fields,className:"flexbox-fix"},Gt().createElement("div",{style:t.field},Gt().createElement(ln,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=Gt().createElement("div",{style:t.fields,className:"flexbox-fix"},Gt().createElement("div",{style:t.field},Gt().createElement(ln,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),Gt().createElement("div",{style:t.field},Gt().createElement(ln,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),Gt().createElement("div",{style:t.field},Gt().createElement(ln,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),Gt().createElement("div",{style:t.alpha},Gt().createElement(ln,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=Gt().createElement("div",{style:t.fields,className:"flexbox-fix"},Gt().createElement("div",{style:t.field},Gt().createElement(ln,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),Gt().createElement("div",{style:t.field},Gt().createElement(ln,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),Gt().createElement("div",{style:t.field},Gt().createElement(ln,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),Gt().createElement("div",{style:t.alpha},Gt().createElement(ln,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),Gt().createElement("div",{style:t.wrap,className:"flexbox-fix"},n,Gt().createElement("div",{style:t.toggle},Gt().createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},Gt().createElement(hs.A,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(Gt().Component);bs.defaultProps={view:"hex"};const gs=bs;const vs=function(){var e=(0,Vt.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return Gt().createElement("div",{style:e.picker})};const ys=function(){var e=(0,Vt.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return Gt().createElement("div",{style:e.picker})};var ws=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,o=e.rgb,a=e.hsl,i=e.hsv,l=e.hex,s=e.renderers,c=e.styles,u=void 0===c?{}:c,p=e.className,f=void 0===p?"":p,d=e.defaultView,h=(0,Vt.Ay)(Yo({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},u),{disableAlpha:r});return Gt().createElement("div",{style:h.picker,className:"chrome-picker "+f},Gt().createElement("div",{style:h.saturation},Gt().createElement(ma,{style:h.Saturation,hsl:a,hsv:i,pointer:ys,onChange:n})),Gt().createElement("div",{style:h.body},Gt().createElement("div",{style:h.controls,className:"flexbox-fix"},Gt().createElement("div",{style:h.color},Gt().createElement("div",{style:h.swatch},Gt().createElement("div",{style:h.active}),Gt().createElement(Zt,{renderers:s}))),Gt().createElement("div",{style:h.toggles},Gt().createElement("div",{style:h.hue},Gt().createElement(un,{style:h.Hue,hsl:a,pointer:vs,onChange:n})),Gt().createElement("div",{style:h.alpha},Gt().createElement(nn,{style:h.Alpha,rgb:o,hsl:a,pointer:vs,renderers:s,onChange:n})))),Gt().createElement(gs,{rgb:o,hsl:a,hex:l,view:d,onChange:n,disableAlpha:r})))};ws.propTypes={width:fn().oneOfType([fn().string,fn().number]),disableAlpha:fn().bool,styles:fn().object,defaultView:fn().oneOf(["hex","rgb","hsl"])},ws.defaultProps={width:225,disableAlpha:!1,styles:{}};const xs=fi(ws);const Es=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,a=e.active,i=(0,Vt.Ay)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:si(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return Gt().createElement(gi,{style:i.color,color:t,onClick:r,onHover:o,focusStyle:{boxShadow:"0 0 4px "+t}},Gt().createElement("div",{style:i.dot}))};const ks=function(e){var t=e.hex,n=e.rgb,r=e.onChange,o=(0,Vt.Ay)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return Gt().createElement("div",{style:o.fields,className:"flexbox-fix"},Gt().createElement("div",{style:o.active}),Gt().createElement(ln,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:t,onChange:a}),Gt().createElement(ln,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:a}),Gt().createElement(ln,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:a}),Gt().createElement(ln,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:a}))};var _s=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,o=e.hex,a=e.rgb,i=e.styles,l=void 0===i?{}:i,s=e.className,c=void 0===s?"":s,u=(0,Vt.Ay)(Yo({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),p=function(e,n){e.hex?li(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return Gt().createElement(Jo,{style:u.Compact,styles:l},Gt().createElement("div",{style:u.compact,className:"compact-picker "+c},Gt().createElement("div",null,Wl(r,(function(e){return Gt().createElement(Es,{key:e,color:e,active:e.toLowerCase()===o,onClick:p,onSwatchHover:n})})),Gt().createElement("div",{style:u.clear})),Gt().createElement(ks,{hex:o,rgb:a,onChange:p})))};_s.propTypes={colors:fn().arrayOf(fn().string),styles:fn().object},_s.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};fi(_s);const Ss=(0,Vt.H8)((function(e){var t=e.hover,n=e.color,r=e.onClick,o=e.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},i=(0,Vt.Ay)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:t});return Gt().createElement("div",{style:i.swatch},Gt().createElement(gi,{color:n,onClick:r,onHover:o,focusStyle:a}))}));var Rs=function(e){var t=e.width,n=e.colors,r=e.onChange,o=e.onSwatchHover,a=e.triangle,i=e.styles,l=void 0===i?{}:i,s=e.className,c=void 0===s?"":s,u=(0,Vt.Ay)(Yo({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":"hide"===a,"top-left-triangle":"top-left"===a,"top-right-triangle":"top-right"===a,"bottom-left-triangle":"bottom-left"===a,"bottom-right-triangle":"bottom-right"===a}),p=function(e,t){return r({hex:e,source:"hex"},t)};return Gt().createElement("div",{style:u.card,className:"github-picker "+c},Gt().createElement("div",{style:u.triangleShadow}),Gt().createElement("div",{style:u.triangle}),Wl(n,(function(e){return Gt().createElement(Ss,{color:e,key:e,onClick:p,onSwatchHover:o})})))};Rs.propTypes={width:fn().oneOfType([fn().string,fn().number]),colors:fn().arrayOf(fn().string),triangle:fn().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:fn().object},Rs.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};fi(Rs);const Os=function(e){var t=e.direction,n=(0,Vt.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return Gt().createElement("div",{style:n.picker})};var Cs=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},js=function(e){var t=e.width,n=e.height,r=e.onChange,o=e.hsl,a=e.direction,i=e.pointer,l=e.styles,s=void 0===l?{}:l,c=e.className,u=void 0===c?"":c,p=(0,Vt.Ay)(Yo({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},s));return Gt().createElement("div",{style:p.picker,className:"hue-picker "+u},Gt().createElement(un,Cs({},p.hue,{hsl:o,pointer:i,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:a})))};js.propTypes={styles:fn().object},js.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:Os,styles:{}};fi(js);fi((function(e){var t=e.onChange,n=e.hex,r=e.rgb,o=e.styles,a=void 0===o?{}:o,i=e.className,l=void 0===i?"":i,s=(0,Vt.Ay)(Yo({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),c=function(e,n){e.hex?li(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n)};return Gt().createElement(Jo,{styles:a},Gt().createElement("div",{style:s.material,className:"material-picker "+l},Gt().createElement(ln,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"hex",value:n,onChange:c}),Gt().createElement("div",{style:s.split,className:"flexbox-fix"},Gt().createElement("div",{style:s.third},Gt().createElement(ln,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:r.r,onChange:c})),Gt().createElement("div",{style:s.third},Gt().createElement(ln,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:r.g,onChange:c})),Gt().createElement("div",{style:s.third},Gt().createElement(ln,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:r.b,onChange:c})))))}));const As=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,o=e.hex,a=(0,Vt.Ay)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),i=function(e,o){e["#"]?li(e["#"])&&t({hex:e["#"],source:"hex"},o):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},o):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"},o)};return Gt().createElement("div",{style:a.fields},Gt().createElement(ln,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(r.h),onChange:i}),Gt().createElement(ln,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(100*r.s),onChange:i}),Gt().createElement(ln,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(100*r.v),onChange:i}),Gt().createElement("div",{style:a.divider}),Gt().createElement(ln,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:i}),Gt().createElement(ln,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:i}),Gt().createElement(ln,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:i}),Gt().createElement("div",{style:a.divider}),Gt().createElement(ln,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:o.replace("#",""),onChange:i}),Gt().createElement("div",{style:a.fieldSymbols},Gt().createElement("div",{style:a.symbol},"°"),Gt().createElement("div",{style:a.symbol},"%"),Gt().createElement("div",{style:a.symbol},"%")))};const Ts=function(e){var t=e.hsl,n=(0,Vt.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return Gt().createElement("div",{style:n.picker})};const Ps=function(){var e=(0,Vt.Ay)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return Gt().createElement("div",{style:e.pointer},Gt().createElement("div",{style:e.left},Gt().createElement("div",{style:e.leftInside})),Gt().createElement("div",{style:e.right},Gt().createElement("div",{style:e.rightInside})))};const Ns=function(e){var t=e.onClick,n=e.label,r=e.children,o=e.active,a=(0,Vt.Ay)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return Gt().createElement("div",{style:a.button,onClick:t},n||r)};const Ds=function(e){var t=e.rgb,n=e.currentColor,r=(0,Vt.Ay)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return Gt().createElement("div",null,Gt().createElement("div",{style:r.label},"new"),Gt().createElement("div",{style:r.swatches},Gt().createElement("div",{style:r.new}),Gt().createElement("div",{style:r.current})),Gt().createElement("div",{style:r.label},"current"))};var Ms=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}}();var Fs=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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));return n.state={currentColor:e.hex},n}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),Ms(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,o=void 0===r?"":r,a=(0,Vt.Ay)(Yo({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return Gt().createElement("div",{style:a.picker,className:"photoshop-picker "+o},Gt().createElement("div",{style:a.head},this.props.header),Gt().createElement("div",{style:a.body,className:"flexbox-fix"},Gt().createElement("div",{style:a.saturation},Gt().createElement(ma,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:Ts,onChange:this.props.onChange})),Gt().createElement("div",{style:a.hue},Gt().createElement(un,{direction:"vertical",hsl:this.props.hsl,pointer:Ps,onChange:this.props.onChange})),Gt().createElement("div",{style:a.controls},Gt().createElement("div",{style:a.top,className:"flexbox-fix"},Gt().createElement("div",{style:a.previews},Gt().createElement(Ds,{rgb:this.props.rgb,currentColor:this.state.currentColor})),Gt().createElement("div",{style:a.actions},Gt().createElement(Ns,{label:"OK",onClick:this.props.onAccept,active:!0}),Gt().createElement(Ns,{label:"Cancel",onClick:this.props.onCancel}),Gt().createElement(As,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(Gt().Component);Fs.propTypes={header:fn().string,styles:fn().object},Fs.defaultProps={header:"Color Picker",styles:{}};fi(Fs);const Bs=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,o=e.hex,a=e.disableAlpha,i=(0,Vt.Ay)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),l=function(e,o){e.hex?li(e.hex)&&t({hex:e.hex,source:"hex"},o):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},o):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},o))};return Gt().createElement("div",{style:i.fields,className:"flexbox-fix"},Gt().createElement("div",{style:i.double},Gt().createElement(ln,{style:{input:i.input,label:i.label},label:"hex",value:o.replace("#",""),onChange:l})),Gt().createElement("div",{style:i.single},Gt().createElement(ln,{style:{input:i.input,label:i.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),Gt().createElement("div",{style:i.single},Gt().createElement(ln,{style:{input:i.input,label:i.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),Gt().createElement("div",{style:i.single},Gt().createElement(ln,{style:{input:i.input,label:i.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),Gt().createElement("div",{style:i.alpha},Gt().createElement(ln,{style:{input:i.input,label:i.label},label:"a",value:Math.round(100*n.a),onChange:l,dragLabel:"true",dragMax:"100"})))};var Ls=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},Is=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,a=(0,Vt.Ay)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),i=function(e,t){r({hex:e,source:"hex"},t)};return Gt().createElement("div",{style:a.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return Gt().createElement("div",{key:n,style:a.swatchWrap},Gt().createElement(gi,Ls({},t,{style:a.swatch,onClick:i,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};Is.propTypes={colors:fn().arrayOf(fn().oneOfType([fn().string,fn().shape({color:fn().string,title:fn().string})])).isRequired};const Us=Is;var zs=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},Hs=function(e){var t=e.width,n=e.rgb,r=e.hex,o=e.hsv,a=e.hsl,i=e.onChange,l=e.onSwatchHover,s=e.disableAlpha,c=e.presetColors,u=e.renderers,p=e.styles,f=void 0===p?{}:p,d=e.className,h=void 0===d?"":d,m=(0,Vt.Ay)(Yo({default:zs({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},f),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},f),{disableAlpha:s});return Gt().createElement("div",{style:m.picker,className:"sketch-picker "+h},Gt().createElement("div",{style:m.saturation},Gt().createElement(ma,{style:m.Saturation,hsl:a,hsv:o,onChange:i})),Gt().createElement("div",{style:m.controls,className:"flexbox-fix"},Gt().createElement("div",{style:m.sliders},Gt().createElement("div",{style:m.hue},Gt().createElement(un,{style:m.Hue,hsl:a,onChange:i})),Gt().createElement("div",{style:m.alpha},Gt().createElement(nn,{style:m.Alpha,rgb:n,hsl:a,renderers:u,onChange:i}))),Gt().createElement("div",{style:m.color},Gt().createElement(Zt,null),Gt().createElement("div",{style:m.activeColor}))),Gt().createElement(Bs,{rgb:n,hsl:a,hex:r,onChange:i,disableAlpha:s}),Gt().createElement(Us,{colors:c,onClick:i,onSwatchHover:l}))};Hs.propTypes={disableAlpha:fn().bool,width:fn().oneOfType([fn().string,fn().number]),styles:fn().object},Hs.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};fi(Hs);const Ws=function(e){var t=e.hsl,n=e.offset,r=e.onClick,o=void 0===r?function(){}:r,a=e.active,i=e.first,l=e.last,s=(0,Vt.Ay)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:i,last:l});return Gt().createElement("div",{style:s.swatch,onClick:function(e){return o({h:t.h,s:.5,l:n,source:"hsl"},e)}})};const $s=function(e){var t=e.onClick,n=e.hsl,r=(0,Vt.Ay)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),o=.1;return Gt().createElement("div",{style:r.swatches},Gt().createElement("div",{style:r.swatch},Gt().createElement(Ws,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<o&&Math.abs(n.s-.5)<o,onClick:t,first:!0})),Gt().createElement("div",{style:r.swatch},Gt().createElement(Ws,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<o&&Math.abs(n.s-.5)<o,onClick:t})),Gt().createElement("div",{style:r.swatch},Gt().createElement(Ws,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<o&&Math.abs(n.s-.5)<o,onClick:t})),Gt().createElement("div",{style:r.swatch},Gt().createElement(Ws,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<o&&Math.abs(n.s-.5)<o,onClick:t})),Gt().createElement("div",{style:r.swatch},Gt().createElement(Ws,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<o&&Math.abs(n.s-.5)<o,onClick:t,last:!0})),Gt().createElement("div",{style:r.clear}))};const Xs=function(){var e=(0,Vt.Ay)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return Gt().createElement("div",{style:e.picker})};var Gs=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,o=e.styles,a=void 0===o?{}:o,i=e.className,l=void 0===i?"":i,s=(0,Vt.Ay)(Yo({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return Gt().createElement("div",{style:s.wrap||{},className:"slider-picker "+l},Gt().createElement("div",{style:s.hue},Gt().createElement(un,{style:s.Hue,hsl:t,pointer:r,onChange:n})),Gt().createElement("div",{style:s.swatches},Gt().createElement($s,{hsl:t,onClick:n})))};Gs.propTypes={styles:fn().object},Gs.defaultProps={pointer:Xs,styles:{}};fi(Gs);var Vs=n(748);const qs=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,a=e.first,i=e.last,l=e.active,s=(0,Vt.Ay)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:si(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:i,active:l,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return Gt().createElement(gi,{color:t,style:s.color,onClick:r,onHover:o,focusStyle:{boxShadow:"0 0 4px "+t}},Gt().createElement("div",{style:s.check},Gt().createElement(Vs.A,null)))};const Ys=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,o=e.active,a=(0,Vt.Ay)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return Gt().createElement("div",{style:a.group},Wl(r,(function(e,a){return Gt().createElement(qs,{key:e,color:e,active:e.toLowerCase()===o,first:0===a,last:a===r.length-1,onClick:t,onSwatchHover:n})})))};var Ks=function(e){var t=e.width,n=e.height,r=e.onChange,o=e.onSwatchHover,a=e.colors,i=e.hex,l=e.styles,s=void 0===l?{}:l,c=e.className,u=void 0===c?"":c,p=(0,Vt.Ay)(Yo({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},s)),f=function(e,t){return r({hex:e,source:"hex"},t)};return Gt().createElement("div",{style:p.picker,className:"swatches-picker "+u},Gt().createElement(Jo,null,Gt().createElement("div",{style:p.overflow},Gt().createElement("div",{style:p.body},Wl(a,(function(e){return Gt().createElement(Ys,{key:e.toString(),group:e,active:i,onClick:f,onSwatchHover:o})})),Gt().createElement("div",{style:p.clear})))))};Ks.propTypes={width:fn().oneOfType([fn().string,fn().number]),height:fn().oneOfType([fn().string,fn().number]),colors:fn().arrayOf(fn().arrayOf(fn().string)),styles:fn().object},Ks.defaultProps={width:320,height:240,colors:[[Gl[900],Gl[700],Gl[500],Gl[300],Gl[100]],[Vl[900],Vl[700],Vl[500],Vl[300],Vl[100]],[ql[900],ql[700],ql[500],ql[300],ql[100]],[Yl[900],Yl[700],Yl[500],Yl[300],Yl[100]],[Kl[900],Kl[700],Kl[500],Kl[300],Kl[100]],[Jl[900],Jl[700],Jl[500],Jl[300],Jl[100]],[Zl[900],Zl[700],Zl[500],Zl[300],Zl[100]],[Ql[900],Ql[700],Ql[500],Ql[300],Ql[100]],[es[900],es[700],es[500],es[300],es[100]],["#194D33",ts[700],ts[500],ts[300],ts[100]],[ns[900],ns[700],ns[500],ns[300],ns[100]],[rs[900],rs[700],rs[500],rs[300],rs[100]],[os[900],os[700],os[500],os[300],os[100]],[as[900],as[700],as[500],as[300],as[100]],[is[900],is[700],is[500],is[300],is[100]],[ls[900],ls[700],ls[500],ls[300],ls[100]],[ss[900],ss[700],ss[500],ss[300],ss[100]],[cs[900],cs[700],cs[500],cs[300],cs[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};fi(Ks);var Js=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,o=e.colors,a=e.width,i=e.triangle,l=e.styles,s=void 0===l?{}:l,c=e.className,u=void 0===c?"":c,p=(0,Vt.Ay)(Yo({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},s),{"hide-triangle":"hide"===i,"top-left-triangle":"top-left"===i,"top-right-triangle":"top-right"===i}),f=function(e,n){li(e)&&t({hex:e,source:"hex"},n)};return Gt().createElement("div",{style:p.card,className:"twitter-picker "+u},Gt().createElement("div",{style:p.triangleShadow}),Gt().createElement("div",{style:p.triangle}),Gt().createElement("div",{style:p.body},Wl(o,(function(e,t){return Gt().createElement(gi,{key:t,color:e,hex:e,style:p.swatch,onClick:f,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),Gt().createElement("div",{style:p.hash},"#"),Gt().createElement(ln,{label:null,style:{input:p.input},value:r.replace("#",""),onChange:f}),Gt().createElement("div",{style:p.clear})))};Js.propTypes={width:fn().oneOfType([fn().string,fn().number]),triangle:fn().oneOf(["hide","top-left","top-right"]),colors:fn().arrayOf(fn().string),styles:fn().object},Js.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};fi(Js);var Zs=function(e){var t=(0,Vt.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return Gt().createElement("div",{style:t.picker})};Zs.propTypes={hsl:fn().shape({h:fn().number,s:fn().number,l:fn().number,a:fn().number})},Zs.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Qs=Zs;var ec=function(e){var t=(0,Vt.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return Gt().createElement("div",{style:t.picker})};ec.propTypes={hsl:fn().shape({h:fn().number,s:fn().number,l:fn().number,a:fn().number})},ec.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const tc=ec;const nc=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,o=e.hex,a=e.hsv,i=function(e,n){if(e.hex)li(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var r=e.rgb.split(",");ci(e.rgb,"rgb")&&t({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},n)}else if(e.hsv){var o=e.hsv.split(",");ci(e.hsv,"hsv")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("°",""),1==o[1]?o[1]=.01:1==o[2]&&(o[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsv"},n))}else if(e.hsl){var a=e.hsl.split(",");ci(e.hsl,"hsl")&&(a[2]=a[2].replace("%",""),a[1]=a[1].replace("%",""),a[0]=a[0].replace("°",""),1==u[1]?u[1]=.01:1==u[2]&&(u[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:"hsl"},n))}},l=(0,Vt.Ay)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),s=n.r+", "+n.g+", "+n.b,c=Math.round(r.h)+"°, "+Math.round(100*r.s)+"%, "+Math.round(100*r.l)+"%",u=Math.round(a.h)+"°, "+Math.round(100*a.s)+"%, "+Math.round(100*a.v)+"%";return Gt().createElement("div",{style:l.wrap,className:"flexbox-fix"},Gt().createElement("div",{style:l.fields},Gt().createElement("div",{style:l.double},Gt().createElement(ln,{style:{input:l.input,label:l.label},label:"hex",value:o,onChange:i})),Gt().createElement("div",{style:l.column},Gt().createElement("div",{style:l.single},Gt().createElement(ln,{style:{input:l.input2,label:l.label2},label:"rgb",value:s,onChange:i})),Gt().createElement("div",{style:l.single},Gt().createElement(ln,{style:{input:l.input2,label:l.label2},label:"hsv",value:u,onChange:i})),Gt().createElement("div",{style:l.single},Gt().createElement(ln,{style:{input:l.input2,label:l.label2},label:"hsl",value:c,onChange:i})))))};var rc=function(e){var t=e.width,n=e.onChange,r=e.rgb,o=e.hsl,a=e.hsv,i=e.hex,l=e.header,s=e.styles,c=void 0===s?{}:s,u=e.className,p=void 0===u?"":u,f=(0,Vt.Ay)(Yo({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+r.r+", "+r.g+", "+r.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return Gt().createElement("div",{style:f.picker,className:"google-picker "+p},Gt().createElement("div",{style:f.head},l),Gt().createElement("div",{style:f.swatch}),Gt().createElement("div",{style:f.saturation},Gt().createElement(ma,{hsl:o,hsv:a,pointer:Qs,onChange:n})),Gt().createElement("div",{style:f.body},Gt().createElement("div",{style:f.controls,className:"flexbox-fix"},Gt().createElement("div",{style:f.hue},Gt().createElement(un,{style:f.Hue,hsl:o,radius:"4px",pointer:tc,onChange:n}))),Gt().createElement(nc,{rgb:r,hsl:o,hex:i,hsv:a,onChange:n})))};rc.propTypes={width:fn().oneOfType([fn().string,fn().number]),styles:fn().object,header:fn().string},rc.defaultProps={width:652,styles:{},header:"Color picker"};fi(rc);function oc(e){return oc="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},oc(e)}function ac(e){return function(e){if(Array.isArray(e))return sc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lc(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 ic(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||lc(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 lc(e,t){if(e){if("string"==typeof e)return sc(e,t);var n={}.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)?sc(e,t):void 0}}function sc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var cc=wp.element,uc=cc.useState,pc=cc.useEffect,fc=wp.i18n.__;const dc=function(e){var t=_t(e.slug)?_t(e.slug):_t(e.title),n=e.defaultValue?e.defaultValue:"#BBB",r=ic(uc(n),2),o=r[0],a=r[1],i=document.getElementsByClassName("kwtskColorPicker");pc((function(){e.value&&a(e.value)}),[e.value]);window.addEventListener("click",(function(e){var t=document.getElementById("openColorPicker");t&&(!e.target!=t&&t.contains(e.target)||(t.removeAttribute("id"),t.closest(".kwtskColorPicker").classList.remove("kwtskButton-active")))}));return React.createElement("div",{className:"kwtskColorPicker"},React.createElement("div",{className:"kwtskColorDisplay"},React.createElement("button",{className:"kwtskColorBtn",style:{backgroundColor:o},onClick:function(e){return e.preventDefault()},onFocus:function(e){return function(e){e.preventDefault(),ac(i).forEach((function(e){e.classList.remove("kwtskButton-active"),e.removeAttribute("id")})),e.target.closest(".kwtskColorPicker").setAttribute("id","openColorPicker"),e.target.closest(".kwtskColorPicker").classList.add("kwtskButton-active")}(e)}},React.createElement("span",{className:"kwtskColorBtnTxt"},fc("Select Color","theme-site-kit"))),React.createElement("input",{type:"text",id:t,value:o||"",className:"kwtskColorInput",disabled:!0,onChange:e.onChange})),React.createElement("div",{className:"kwtskPickColor"},React.createElement(xs,{color:o,onChange:function(e){return function(e){"object"===oc(e)&&null!==e?a(e.hex):a(e)}(e)},disableAlpha:!0,onChangeComplete:function(n){return function(n){var r="object"===oc(n)&&null!==n?n.hex:n;e.onChange&&e.onChange({target:{name:t,value:r}})}(n)}})))};function hc(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mc(e,t);var n={}.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)?mc(e,t):void 0}}(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 mc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var bc=wp.element.useState,gc=wp.i18n.__;const vc=function(e){var t=e.slug,n=e.value,r=e.onChange,o=e.options,a=void 0===o?[]:o,i=t,l=hc(bc(n),2),s=l[0],c=l[1];return React.createElement(React.Fragment,null,a.map((function(e){var t=_t("".concat(i,"-").concat(e.value)),o=n===e.value;return React.createElement("div",{key:e.value,className:"kwtsk-radio-block"},React.createElement("label",{className:"kwtsk-radio-select ".concat(o?"selected":""),htmlFor:t},React.createElement("input",{id:t,name:i,type:"radio",value:e.value,checked:o,onChange:function(t){var n=t.target.checked,o={target:{type:"radio",name:i,value:e.value,checked:n,className:"radio-input"}};c(e.value),r(o)},className:"radio-input"}),React.createElement("span",{className:"radio-label"},e.label)))})),s&&React.createElement("div",{className:"clear-selection",onClick:function(){var e={target:{type:"radio",name:i,value:!1,checked:!1,className:"radio-input"}};c(null),r(e)}},gc("Clear Selection","theme-site-kit")))};var yc=n(5901);function wc(e){return wc="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},wc(e)}function xc(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 Ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xc(Object(n),!0).forEach((function(t){kc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kc(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=wc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _c(e){return function(e){if(Array.isArray(e))return Oc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rc(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 Sc(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||Rc(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 Rc(e,t){if(e){if("string"==typeof e)return Oc(e,t);var n={}.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)?Oc(e,t):void 0}}function Oc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Cc=wp.element,jc=Cc.useState,Ac=Cc.useEffect,Tc=Cc.useRef,Pc=wp.i18n.__;const Nc=function(e){var t,n,r,o,a,i,l,s,c,u,p,f,d,h,m=_t(e.slug)||_t(e.title),b=Array.isArray(e.value)?e.value:(null===(t=e.value)||void 0===t?void 0:t.icons)||[],g=Sc(jc(b),2),v=g[0],y=g[1],w=Sc(jc(""),2),x=w[0],E=w[1],k=Sc(jc(null),2),_=k[0],S=k[1],R=Sc(jc(null),2),O=R[0],C=R[1],j=Tc(null);Ac((function(){var t,n=Array.isArray(e.value)?e.value:(null===(t=e.value)||void 0===t?void 0:t.icons)||[];n.length>0&&0===v.length&&y(n)}),[e.value]),Ac((function(){if(j.current){j.current.value=JSON.stringify(v);var t=new Event("change",{bubbles:!0});j.current.dispatchEvent(t)}e.onChange&&e.onChange({target:{name:m,value:v}})}),[v,m]);var A=function(e){return/^(fas|fab|fa-solid|fa-brands)\s+fa-[\w-]+$/.test(e)},T=function(e){var t=e.split(" ");return t[1]?t[1].replace("fa-",""):""},P=function(e){if(e.preventDefault(),A(x)){var t=x.trim();v.find((function(e){return e.value===t}))||y([].concat(_c(v),[{value:t,label:T(t)}])),E("")}},N=function(e){var t="email"===e.value||"phone"===e.value?"fa-solid":"fa-brands",n=e.value;return"phone"===n&&(n="phone-alt"),"email"===n&&(n="envelope"),"".concat(t," fa-").concat(n)};return React.createElement(React.Fragment,null,v.length>0&&React.createElement(React.Fragment,null,React.createElement(yc.ReactSortable,{tag:"div",className:"kwtsk-selected-icons",list:v,setList:y,options:{animation:300,onStart:function(e){e.item.classList.add("dragging")},onEnd:function(e){e.item.classList.remove("dragging")}}},v.map((function(e,t){return React.createElement("div",{key:"".concat(e.value,"-").concat(t),"data-id":e.value,className:"kwtsk-checkbox-block"},React.createElement("div",{className:"kwtsk-checkbox-select selected",onClick:function(){S(t),C(t)}},React.createElement("span",{className:"social-link-icon ".concat(e.value)}),_===t?React.createElement("input",{type:"text",value:e.label,onChange:function(e){return function(e,t){var n=t.target.value;y(v.map((function(t,r){return r===e?Ec(Ec({},t),{},{label:n}):t})))}(t,e)},onBlur:function(){return S(null)},onKeyDown:function(e){"Enter"===e.key&&S(null)},className:"icon-txt",autoFocus:!0}):React.createElement("span",{className:"checkbox-label"},e.label)),React.createElement("button",{className:"kwtsk-remove fas fa-xmark",onClick:function(e){return function(e,t){t.preventDefault(),t.stopPropagation();var n=_c(v);n.splice(e,1),y(n),_===e&&S(null),O===e&&C(null)}(t,e)}}))})))),null!==O&&React.createElement("div",{className:"kwtsk-icon-input kwtsk-social-url-input"},React.createElement("h4",null,"".concat(null===(n=v[O])||void 0===n?void 0:n.label,": ")+Pc("Add Your Link:","theme-site-kit")),React.createElement("p",null,Pc("Need help on adding the correct links for the different icons?","theme-site-kit")," ",React.createElement("a",{href:"",target:"_blank"},Pc("Read our documentation"))),React.createElement("input",{type:"text",className:"kwtsk-social-icon-url",placeholder:"".concat((null===(r=v[O])||void 0===r?void 0:r.label)||""," ")+Pc("URL or Link","theme-site-kit"),value:(null===(o=v[O])||void 0===o?void 0:o.url)||"",onChange:function(e){return t=O,n=e.target.value,void y(v.map((function(e,r){return r===t?Ec(Ec({},e),{},{url:n}):e})));var t,n}}),("fa-solid fa-envelope"===(null===(a=v[O])||void 0===a?void 0:a.value)||"fa-solid fa-phone-alt"===(null===(i=v[O])||void 0===i?void 0:i.value)||"fa-brands fa-whatsapp"===(null===(l=v[O])||void 0===l?void 0:l.value)||"fa-brands fa-line"===(null===(s=v[O])||void 0===s?void 0:s.value)||"fa-brands fa-telegram"===(null===(c=v[O])||void 0===c?void 0:c.value))&&React.createElement("p",{className:"kwtsk-input-note"},"fa-solid fa-envelope"===(null===(u=v[O])||void 0===u?void 0:u.value)&&Pc('For email link add - "mailto:name@youremail.com"',"theme-site-kit"),"fa-solid fa-phone-alt"===(null===(p=v[O])||void 0===p?void 0:p.value)&&Pc('For phone link add - "tel:+1234567890"',"theme-site-kit"),"fa-brands fa-whatsapp"===(null===(f=v[O])||void 0===f?void 0:f.value)&&Pc('For whatsapp link add - "https://wa.me/27824532805"',"theme-site-kit"),"fa-brands fa-line"===(null===(d=v[O])||void 0===d?void 0:d.value)&&Pc('For line link add - "https://line.me/ti/p/~username"',"theme-site-kit"),"fa-brands fa-telegram"===(null===(h=v[O])||void 0===h?void 0:h.value)&&Pc('For telegram link add - "https://t.me/username"',"theme-site-kit"))),e.options&&e.options.length>0&&React.createElement(React.Fragment,null,React.createElement("h4",null,Pc("Select Icons:","theme-site-kit")),React.createElement("p",null,Pc("Select the icons you'd like to display on your website frontend.","theme-site-kit")),React.createElement("div",{className:"kwtsk-checkbox-selects"},e.options.map((function(t){var n=e.slug,r=_t("".concat(n,"-").concat(t.value)),o=N(t),a=function(e){var t=N(e);return!!v.find((function(e){return e.value===t}))}(t);return React.createElement("div",{key:t.value,className:"kwtsk-checkbox-options"},React.createElement("label",{className:"kwtsk-checkbox-select ".concat(a?"selected":""),htmlFor:r},React.createElement("span",{className:"social-link-icon ".concat(o)}),React.createElement("input",{id:r,name:"".concat(n,"_").concat(t.value),type:"checkbox",checked:a,onChange:function(e){return function(e,t){var n=N(e);if(t)v.find((function(e){return e.value===n}))||y((function(t){var r={value:n,label:e.label||T(n)},o=[].concat(_c(t),[r]);return C(o.length-1),o}));else{var r=v.findIndex((function(e){return e.value===n}));y(v.filter((function(e){return e.value!==n}))),r===O&&C(null)}}(t,e.target.checked)},className:"checkbox-single"}),React.createElement("span",{className:"checkbox-label"},t.label)))})))),React.createElement("h4",null,Pc("Or add your own Custom Icons:","theme-site-kit")),React.createElement("p",null,Pc("Haven't found the icon you're looking for? Add your own custom icons.","theme-site-kit")," ",React.createElement("a",{href:"",target:"_blank"},Pc("Add Font Awesome icons"))),React.createElement("div",{className:"kwtsk-icon-input ".concat(x?A(x)?"valid":"invalid":"")},React.createElement("input",{type:"text",placeholder:Pc("fa-brands fa-brave","theme-site-kit"),value:x,onChange:function(e){return E(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),A(x)&&P(e))}}),React.createElement("button",{className:"kwtsk-add",onClick:P},Pc("Add Icon","theme-site-kit"))),React.createElement("input",{type:"hidden",id:m,name:m,ref:j}))};function Dc(e){return Dc="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},Dc(e)}function Mc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Fc(c,"_invoke",function(n,r,o){var a,l,s,c=0,u=o||[],p=!1,f={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return a=t,l=0,s=e,f.n=n,i}};function d(n,r){for(l=n,s=r,t=0;!p&&c&&!o&&t<u.length;t++){var o,a=u[t],d=f.p,h=a[2];n>3?(o=h===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=d&&((o=n<2&&d<a[1])?(l=0,f.v=r,f.n=a[1]):d<h&&(o=n<3||a[0]>r||r>h)&&(a[4]=n,a[5]=r,f.n=h,l=0))}if(o||n>1)return i;throw p=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&d(u,h),l=u,s=h;(t=l<2?e:s)||!p;){a||(l?l<3?(l>1&&(f.n=-1),d(l,s)):f.n=s:f.v=s);try{if(c=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(p=f.n<0)?s:n.call(r,f))!==i)break}catch(t){a=e,l=1,s=t}finally{c=1}}return{value:t,done:p}}}(n,o,a),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Fc(t={},r,(function(){return this})),t),p=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Fc(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=c,Fc(p,"constructor",c),Fc(c,"constructor",s),s.displayName="GeneratorFunction",Fc(c,o,"GeneratorFunction"),Fc(p),Fc(p,o,"Generator"),Fc(p,r,(function(){return this})),Fc(p,"toString",(function(){return"[object Generator]"})),(Mc=function(){return{w:a,m:f}})()}function Fc(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Fc=function(e,t,n,r){function a(t,n){Fc(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Fc(e,t,n,r)}function Bc(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 Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bc(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ic(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Dc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Dc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Dc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uc(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function zc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Uc(a,r,o,i,l,"next",e)}function l(e){Uc(a,r,o,i,l,"throw",e)}i(void 0)}))}}function Hc(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wc(e,t);var n={}.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)?Wc(e,t):void 0}}(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 Wc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $c=wp.element.useState,Xc=wp.i18n.__;const Gc=function(e){var t=e.title,n=e.slug,r=e.value,o=e.onChange,a=e.apiUrl,i=e.adminUrl,l=(_t(n||t),Hc($c(""),2)),s=l[0],c=l[1],u=Hc($c(""),2),p=u[0],f=u[1],d=Hc($c({name:"",singular:""}),2),h=d[0],m=d[1],b=Hc($c({}),2),g=b[0],v=b[1],y=Hc($c({}),2),w=y[0],x=y[1],E=Hc($c({}),2),k=E[0],_=E[1],S=r||{},R=function(){var e=zc(Mc().m((function e(t,n){var r,o;return Mc().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Et.get("".concat(a,"/check-template?post_type=").concat(n.slug),{headers:{"X-WP-Nonce":window.kwtskSObj.nonce}});case 1:r=e.v,_((function(e){return Lc(Lc({},e),{},Ic({},t,r.data.exists))})),e.n=3;break;case 2:e.p=2,o=e.v,console.error("Error checking template:",o);case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(t,n){return e.apply(this,arguments)}}();React.useEffect((function(){Object.entries(S).forEach((function(e){var t=Hc(e,2),n=t[0],r=t[1];R(n,r)}))}),[S]);var O=function(e){return/^[a-zA-Z ]+$/.test(e)},C=function(){var e=zc(Mc().m((function e(t,n){var r,o;return Mc().w((function(e){for(;;)switch(e.p=e.n){case 0:return x((function(e){return Lc(Lc({},e),{},Ic({},t,!0))})),e.p=1,e.n=2,Et.post("".concat(a,"/create-cpt-template"),{post_type:n.slug,label:n.label},{headers:{"X-WP-Nonce":window.kwtskSObj.nonce}});case 2:if(!(r=e.v).data.success){e.n=3;break}alert(Xc("Template created successfully!","theme-site-kit")),_((function(e){return Lc(Lc({},e),{},Ic({},t,!0))})),e.n=4;break;case 3:throw new Error(r.data.message||"Failed to create template");case 4:e.n=6;break;case 5:e.p=5,o=e.v,console.error("Error creating template:",o),alert(Xc("Failed to create template. Please try again.","theme-site-kit"));case 6:return e.p=6,x((function(e){var n=Lc({},e);return delete n[t],n})),e.f(6);case 7:return e.a(2)}}),e,null,[[1,5,6,7]])})));return function(t,n){return e.apply(this,arguments)}}(),j=function(e){var t=e.target,n=t.name,r=t.checked,a=n.match(/^cpts_post_types_(.+?)_(enable_categories|enable_tags|has_archive)$/);if(a){var i=a[1],l=a[2];if(S[i]){var s=Lc(Lc({},S),{},Ic({},i,Lc(Lc({},S[i]),{},Ic({},l,r))));o({target:{name:"cpts_post_types",value:s}})}}},A=function(e,t,n){var r=Lc(Lc({},S),{},Ic({},e,Lc(Lc({},S[e]),{},Ic({},t,"template"===t?n.replace(/^wp-custom-template-/,""):n))));o({target:{name:"cpts_post_types",value:r}})},T=function(){var e=zc(Mc().m((function e(t){var n,r,i,l,s,c;return Mc().w((function(e){for(;;)switch(e.p=e.n){case 0:if(n=S[t]){e.n=1;break}return e.a(2);case 1:return v((function(e){return Lc(Lc({},e),{},Ic({},t,!0))})),e.p=2,e.n=3,fetch("".concat(a,"/check-post-type?type=").concat(n.slug));case 3:if((r=e.v).ok){e.n=4;break}throw new Error("Post type not found or fetch failed");case 4:return e.n=5,r.json();case 5:if(i=e.v,!((l=i.count)>0)){e.n=7;break}if(window.confirm(Xc("This post type has posts or meta data still saved. Would you like to delete the post type and all its posts? This cannot be undone.","theme-site-kit"))){e.n=6;break}return e.a(2);case 6:e.n=8;break;case 7:if(window.confirm(Xc("Are you sure you want to delete this post type?","theme-site-kit"))){e.n=8;break}return e.a(2);case 8:return e.n=9,fetch("".concat(a,"/delete-post-type"),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":window.kwtskSObj.nonce},body:JSON.stringify({post_type:n.slug,force_delete:l>0})});case 9:if(e.v.ok){e.n=10;break}throw new Error("Failed to delete post type");case 10:delete(s=Lc({},S))[t],o({target:{name:"cpts_post_types",value:s}}),e.n=12;break;case 11:e.p=11,c=e.v,console.error("Error checking post count:",c),alert(Xc("An error occurred while checking posts.","theme-site-kit"));case 12:return e.p=12,v((function(e){var n=Lc({},e);return delete n[t],n})),e.f(12);case 13:return e.a(2)}}),e,null,[[2,11,12,13]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement("div",{className:"cpts-select"},React.createElement("h4",null,Xc(t||"Custom Post Types","theme-site-kit")),React.createElement("div",{className:"cpts-add-new"},React.createElement("input",{type:"text",placeholder:Xc("Post Type Name (e.g. Case Studies)","theme-site-kit"),value:s,className:h.name,onChange:function(e){return c(e.target.value)}}),React.createElement("input",{type:"text",placeholder:Xc("Singular Name (e.g. Case Study)","theme-site-kit"),value:p,className:h.singular,onChange:function(e){return f(e.target.value)}}),React.createElement("button",{type:"button",className:"button",onClick:function(){var e=s.trim(),t=p.trim(),n=_t(e,"_"),r=_t(e,"-"),a=!0,i={name:"valid",singular:"valid"};if(e&&O(e)||(i.name="invalid",a=!1),t&&O(t)||(i.singular="invalid",a=!1),S[n]&&(i.name="invalid",a=!1),m(i),a){var l,u=Lc(Lc({},S),{},Ic({},n,{key:n,label:(l=e,l.replace(/\b\w/g,(function(e){return e.toUpperCase()}))),slug:r,singular:t,enable_categories:!1,enable_tags:!1,has_archive:!0,category_slug:"",tag_slug:"",template:"default"}));o({target:{name:"cpts_post_types",value:u}}),c(""),f(""),m({name:"",singular:""})}}},Xc("Add Post Type","theme-site-kit"))),0===Object.keys(S).length?React.createElement("p",{className:"no-cpts"},Xc("No custom post types added yet.","theme-site-kit")):React.createElement(React.Fragment,null,Object.entries(S).map((function(e,t){var n=Hc(e,2),r=n[0],o=n[1];return React.createElement("table",{key:r,className:"form-table cpts-table ".concat(t%2==0?"even":""),role:"presentation"},React.createElement("tbody",null,React.createElement("tr",null,React.createElement("th",{className:"cpts-label"},o.label),React.createElement("td",null,React.createElement("div",{className:"cpts-single-sets"},React.createElement("div",{className:"cpts-single-slug"},React.createElement("div",{className:"cpts-single"},o.singular," ",React.createElement("span",null,"("+Xc("Singular","theme-site-kit")+")")),React.createElement("div",{className:"cpts-slug"},React.createElement("code",null,o.slug))),React.createElement("div",{className:"cpts-cats"},React.createElement(Zc,{slug:"cpts_post_types_".concat(r,"_enable_categories"),value:!!o.enable_categories,inputType:"onlytoggle",onChange:j})," ",React.createElement("span",null,"- ",Xc("Has Categories","theme-site-kit")),o.enable_categories&&React.createElement("div",{className:"cpts-permalink-input"},React.createElement("span",null,Xc("URL:","theme-site-kit")," "),React.createElement("input",{type:"text",placeholder:"".concat(o.slug,"-category"),value:o.category_slug||"",onChange:function(e){return A(r,"category_slug",e.target.value)}}))),React.createElement("div",{className:"cpts-tags"},React.createElement(Zc,{slug:"cpts_post_types_".concat(r,"_enable_tags"),value:!!o.enable_tags,inputType:"onlytoggle",onChange:j})," ",React.createElement("span",null,"- ",Xc("Has Tags","theme-site-kit")),o.enable_tags&&React.createElement("div",{className:"cpts-permalink-input"},React.createElement("span",null,Xc("URL:","theme-site-kit")," "),React.createElement("input",{type:"text",placeholder:"".concat(o.slug,"-tag"),value:o.tag_slug||"",onChange:function(e){return A(r,"tag_slug",e.target.value)}}))),React.createElement("div",{className:"cpts-archive"},React.createElement(Zc,{slug:"cpts_post_types_".concat(r,"_has_archive"),value:!!o.has_archive,inputType:"onlytoggle",onChange:j})," ",React.createElement("span",null,"- ",Xc("Has Archives Page","theme-site-kit"))),React.createElement("div",{className:"cpts-template"},React.createElement("button",{type:"button",className:"button ".concat(k[r]?"has-template":""),onClick:function(){return C(r,o)},disabled:w[r]},w[r]?Xc("Creating Template...","theme-site-kit"):k[r]?Xc("Recreate Template","theme-site-kit"):Xc("Create Template","theme-site-kit")),k[r]&&React.createElement("span",{className:"template-exists"},React.createElement("i",{className:"fa-solid fa-check"}),Xc("Template exists","theme-site-kit"))),React.createElement("span",{className:"fa-solid fa-xmark cpts-del ".concat(g[r]?"checking":""),onClick:function(){return T(r)},title:Xc("Delete this post type","theme-site-kit")}))))))}))),React.createElement("p",{className:"cpts-note"},Xc("Remember to Save Settings below, and then Save Permalinks after editing your Custom Post Types.","theme-site-kit")," ",React.createElement("a",{href:"".concat(i,"options-permalink.php"),target:"_blank"},Xc("Update Permalinks","theme-site-kit"))))};const Vc=function(e){return React.createElement("div",{className:"kwtsk-tooltip"},React.createElement("span",{className:"kwtsk-tooltiptxt"},e.tooltip))};var qc=wp.i18n.__;const Yc=function(e){return React.createElement("div",{className:"kwtsk-pronote ".concat(e.nomargin?"nomargin":""," ").concat(e.mini?"mini":"")},e.title&&React.createElement("h6",null,e.title,":"),e.desc&&React.createElement("p",null,e.desc),e.upgradeUrl&&React.createElement("div",{className:"kwtsk-pronote-a"},React.createElement("a",{href:e.upgradeUrl,className:"pronote-btn"},qc("Purchase Pro","theme-site-kit"))))};const Kc=function(e){var t=e.title,n=e.description,r=e.nomargin;return React.createElement("div",{className:"kwtskheading ".concat(r?"nomargin":"")},t&&React.createElement("h4",{className:"kwtskheading-title"},t),n&&React.createElement("p",{className:"kwtskheading-desc"},n))};var Jc=wp.i18n.__;const Zc=function(e){var t,n=e.slug?_t(e.slug):_t(e.title);if("toggle"===e.inputType)t=React.createElement(Ot,e);else{if("onlytoggle"===e.inputType)return React.createElement(Ot,e);if("select"===e.inputType)t=React.createElement(At,e);else if("radio"===e.inputType)t=React.createElement(vc,e);else if("multicheckbox"===e.inputType)t=React.createElement($t,e);else{if("socialicons"===e.inputType)return React.createElement("tr",null,React.createElement("td",{colSpan:2},React.createElement("div",{className:e.customClass},React.createElement(Nc,e))));if("cptsoptions"===e.inputType)return React.createElement("tr",null,React.createElement("td",{colSpan:2},React.createElement("div",null,React.createElement(Gc,e))));if("range"===e.inputType)t=React.createElement(Lt,e);else if("colorpicker"===e.inputType)t=React.createElement(dc,e);else{if("heading"===e.inputType)return React.createElement("tr",{className:"kwtsk-row heading"},React.createElement("td",{colSpan:2},React.createElement(Kc,e)));if("pronote"===e.inputType)return React.createElement("tr",{className:"kwtsk-row pronote"},React.createElement("td",{colSpan:2},React.createElement(Yc,e)));t=React.createElement(Pt,e)}}}return React.createElement("tr",{className:"kwtsk-row"},!e.notitle&&React.createElement("th",{scope:"row"},React.createElement("label",{htmlFor:""!=e.parent?n:e.value},e.title||" ")),React.createElement("td",e.notitle?{colSpan:2}:{},React.createElement("div",{className:"kwtsk-row-cols"},React.createElement("div",{className:"kwtsk-row-col-left ".concat(e.customClass||"")},t,e.note?React.createElement("p",{className:"setting-note"},e.note):"",e.standOutNote&&React.createElement(React.Fragment,null,React.createElement("p",{className:"stand-out-note"},e.standOutNote,React.createElement("a",{href:"options-permalink.php",className:"stand-out-note-link",target:"_blank"},Jc("Update the Permalinks","theme-site-kit"))))),React.createElement("div",{className:"kwtsk-row-col-right"},e.tooltip&&React.createElement(Vc,{tooltip:e.tooltip}),e.documentation&&React.createElement("a",{href:e.documentation,target:"_blank",className:"kwtskdoclink",title:Jc("Documentation","theme-site-kit")})))))};var Qc=wp.i18n.__;const eu=function(e){var t=e.title,n=e.description,r=e.link,o=e.linkText,a=e.isPro,i=e.isPremium;return React.createElement("div",{className:"kwtsk-header"},t&&React.createElement("h3",{className:"kwtsk-title"},t," ",a&&!i&&React.createElement("span",{className:"probanner"},Qc("Premium Feature","theme-site-kit"))),n&&React.createElement("p",null,n),r&&o&&React.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer"},o))};const tu=function(e){var t=e.label,n=e.children;return React.createElement("tr",{className:"kwtsk-row kwtsk-group-row"},React.createElement("th",null,t),React.createElement("td",null,React.createElement("div",{className:"kwtsk-group"},React.createElement("a",{className:"kwtsk-group-btn"},React.createElement("span",{className:"dashicons dashicons-edit"})),React.createElement("div",{className:"kwtsk-group-container"},React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,n))))))};function nu(e){return nu="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},nu(e)}function ru(){return ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ru.apply(null,arguments)}function ou(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 au(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ou(Object(n),!0).forEach((function(t){iu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=nu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lu=function(e){var t=e.height,n=e.width,r=t||!1,o=n||!1;return React.createElement("div",{className:"kwtsk-loader-wrap"},React.createElement("div",ru({className:"kwtsk-loader"},r||o?{style:au(au({},r?{height:r}:{}),o?{width:o}:{})}:{}),React.createElement("div",{className:"kwtsk-spinner-text"}),React.createElement("div",{className:"kwtsk-loader-sector kwtsk-loader-sector-blue"}),React.createElement("div",{className:"kwtsk-loader-sector kwtsk-loader-sector-pink"}),React.createElement("div",{className:"kwtsk-loader-sector kwtsk-loader-sector-purple"})))};function su(e){return su="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},su(e)}function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cu.apply(null,arguments)}function uu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=su(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=su(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.i18n.__;const pu=function(e){var t=e.options,n=e.isPro,r=t.enabled,o=t.icons,a=t.offset,i=t.position,l=t.style,s=t.spacing,c=t.iconbgcolor,u=t.iconcolor,p=t.iconsize,f=t.showbg,d=t.showtext,h=t.iconorigcolor;if(r&&!(o.length<1)){var m={"right-bottom":"bottom","left-bottom":"bottom","bottom-center":"bottom","bottom-left":"left","bottom-right":"right"}[i]||"top",b=n?o:o.slice(0,4);return React.createElement("div",{className:"kwtsk-social-icons ".concat(f?"hasbg":"nobg"," kwtsk-si-").concat(i," kwtsk-si-").concat(l," kwtsk-si-").concat(p," ").concat(n&&h?"kwtsk-colorig":""),style:uu(uu({},m,"".concat("bottom-center"===i?"10px":"".concat(a,"px"))),"gap","".concat(s,"px"))},b.map((function(e,t){var n=e.value,r=e.label,o=e.url;return React.createElement("div",{className:"kwtsk-social-icon",key:t},React.createElement("a",cu({href:"email"===n?"mailto:".concat(o):o},"email"!==n||"phone"!==n?{target:"_blank"}:{},{rel:"noopener noreferrer",className:"kwtsk-social-icon-a",style:{backgroundColor:c,color:u}},d?{}:{title:r}),React.createElement("i",{className:"kwtsk-icon ".concat(n)})),d&&React.createElement("div",{className:"kwtsk-social-icon-label",style:{backgroundColor:c,color:u}},React.createElement("div",{className:"corner",style:{borderColor:c}}),r))})))}};var fu=wp.i18n.__;const du=function(e){var t=e.adminUrl,n=e.changeTab;document.querySelector(".ask-feedback");return React.createElement("div",{className:"kwtsk-general-page"},React.createElement("h2",null,fu("Welcome to Theme Site Kit","theme-site-kit")),React.createElement("p",null,fu("Your new secret weapon for cleaner, smoother, and just better working WordPress websites.","theme-site-kit")),React.createElement("p",null,fu("Offering a range of useful features, Theme Site Kit is designed to help you take your WordPress site to the next level.","theme-site-kit")),React.createElement("p",null,fu("And the best part? You can pick and choose which features you want to use, so you can keep your site as light and fast as possible.","theme-site-kit")),React.createElement("div",{className:"kwtsk-gp-features"},React.createElement("div",{className:"kwtsk-gp-feature"},React.createElement("div",{className:"kwtsk-gp-feature-img settings"}),React.createElement("h3",null,fu("Site Kit Settings","theme-site-kit")),React.createElement("p",null,fu("This plugin includes a range of helpful tools to improve your site, like disabling comments, maintenance mode while building, safely upload SVG formats, floating contact and social links, and more. Head to the top tabs in the plugin settings to explore each feature and adjust the options to suit your website.","theme-site-kit")),React.createElement("span",{className:"kwtsk-gp-a",onClick:function(){return n("disable_comments")}},fu("Go to next tab(s)","theme-site-kit"))),React.createElement("div",{className:"kwtsk-gp-feature"},React.createElement("div",{className:"kwtsk-gp-feature-img layouts"}),React.createElement("h3",null,fu("Import Page Layouts","theme-site-kit")),React.createElement("p",null,fu("Get a head start on your design with a set of pre-built page layouts you can import in one click. Whether you're building a homepage, about page, or contact section and more, browse through the page layouts to preview and import the layouts that best match your site's structure and branding.","theme-site-kit")),React.createElement("a",{className:"kwtsk-gp-a",target:"_blank",href:"".concat(t,"themes.php?page=theme-site-kit-layouts")},fu("View Page Layouts","theme-site-kit"))),React.createElement("div",{className:"kwtsk-gp-feature"},React.createElement("div",{className:"kwtsk-gp-feature-img patterns"}),React.createElement("h3",null,fu("Block Patterns","theme-site-kit")),React.createElement("p",null,fu("Quickly build stylish sections using custom WordPress patterns designed for speed and simplicity. You'll find them in the core editor under the Patterns tab, just browse through them or search by name, then insert them directly into your page to create beautiful, consistent content a matter of minutes.","theme-site-kit")),React.createElement("a",{className:"kwtsk-gp-a",target:"_blank",href:"https://kairaweb.com/wordpress-plugin/theme-site-kit/"},fu("View Block Patterns","theme-site-kit")))),React.createElement("p",null,fu("Whether you're a seasoned pro or just starting out, Theme Site Kit is designed to be easy to use.","theme-site-kit")),React.createElement("p",null,fu("So go ahead, take a look around and see what you can do with Theme Site Kit.","theme-site-kit")),React.createElement("br",null),React.createElement("br",null),React.createElement("h2",null,fu("Discover Our Other Plugins","theme-site-kit")),React.createElement("p",null,fu("Explore our other plugins to further enhance your WordPress experience.","theme-site-kit")),React.createElement("div",{className:"kwtsk-gp-plugins"},React.createElement("a",{className:"kwtsk-gp-plugin",href:"https://kairaweb.com/wordpress-plugin/storecustomizer/",target:"_blank"},React.createElement("div",{className:"kwtsk-gp-plugin-img storcustomizer"}),React.createElement("h3",null,fu("StoreCustomizer","theme-site-kit")),React.createElement("p",null,fu("Customize your WooCommerce store pages with ease.","theme-site-kit")),React.createElement("span",{className:"kwtsk-gp-plugin-a"},fu("View Plugin","theme-site-kit"))),React.createElement("a",{className:"kwtsk-gp-plugin",href:"https://kairaweb.com/wordpress-plugin/blockons/",target:"_blank"},React.createElement("div",{className:"kwtsk-gp-plugin-img blockons"}),React.createElement("h3",null,fu("Blockons","theme-site-kit")),React.createElement("p",null,fu("Advanced blocks and Site Addons for your website.","theme-site-kit")),React.createElement("span",{className:"kwtsk-gp-plugin-a"},fu("View Plugin","theme-site-kit"))),React.createElement("a",{className:"kwtsk-gp-plugin",href:"https://kairaweb.com/wordpress-plugin/linkt/",target:"_blank"},React.createElement("div",{className:"kwtsk-gp-plugin-img linkt"}),React.createElement("h3",null,fu("Linkt","theme-site-kit")),React.createElement("p",null,fu("Affiliate Links and Custom Link Tracking & Management.","theme-site-kit")),React.createElement("span",{className:"kwtsk-gp-plugin-a"},fu("View Plugin","theme-site-kit")))))};function hu(e){return hu="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},hu(e)}function mu(e){return function(e){if(Array.isArray(e))return xu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wu(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 bu(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 gu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(n),!0).forEach((function(t){vu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=hu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yu(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){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||wu(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 wu(e,t){if(e){if("string"==typeof e)return xu(e,t);var n={}.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)?xu(e,t):void 0}}function xu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Eu=wp.element,ku=Eu.useState,_u=Eu.useEffect,Su=wp.i18n.__;const Ru=function(e){var t,n,r,o,a,i,l,s,c,u,p,f,d,h,m,b,g,v,y,w,x,E,k,_,S,R,O,C,j,A,T,P,N,D,M,F,B,L,I,U,z,H,W,$,X,G,V,q,Y,K,J,Z,Q,ee,te,ne,re,oe,ae,ie=e.kwtskObj,le="".concat(ie.apiUrl,"kwtsk/v1"),se=ie.nonce,ce=ie.adminUrl,ue=ie.accountUrl,pe=ie.upgradeUrl,fe=Boolean(ie.isPremium),de=ie.post_types,he=ie.publishedPages,me=yu(ku(he),2),be=me[0],ge=me[1],ve=ie.userRoles,ye=yu(ku(!1),2),we=ye[0],xe=ye[1],Ee=yu(ku(!0),2),ke=Ee[0],_e=Ee[1],Se=yu(ku(new URLSearchParams(window.location.search).get("tab")||"general"),2),Re=Se[0],Oe=Se[1],Ce=ie.kwtskDefaults,je=yu(ku({}),2),Ae=je[0],Te=je[1],Pe=yu(ku(!1),2),Ne=Pe[0],De=Pe[1],Me=yu(ku(!1),2),Fe=Me[0],Be=Me[1],Le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"general";Oe(e);var t=new URLSearchParams(window.location.search);t.set("tab",e),window.history.replaceState(null,"","?"+t.toString())};console.log(Ae);var Ie=function(e){var t=e.target,n=t.type,r=t.checked,o=t.name,a=t.value,i=t.className;"checkbox"!==n||"checkbox-single"!==i&&"toggle-switch-checkbox"!==i||(a=r);var l=o.match(/^cpts_post_types_(.+)_(enable_categories|enable_tags)$/);if(l){var s=l[1],c=l[2];Te((function(e){var t,n;return gu(gu({},e),{},{cpts:gu(gu({},e.cpts),{},{post_types:gu(gu({},(null===(t=e.cpts)||void 0===t?void 0:t.post_types)||{}),{},vu({},s,gu(gu({},(null===(n=e.cpts)||void 0===n||null===(n=n.post_types)||void 0===n?void 0:n[s])||{}),{},vu({},c,a))))})})}))}else{var u=o.indexOf("_");if(u>-1){var p=o.substring(0,u),f=o.substring(u+1);Te(gu(gu({},Ae),{},vu({},p,gu(gu({},Ae[p]||{}),{},vu({},f,a)))))}else Te(gu(gu({},Ae),{},vu({},o,a)))}};_u((function(){var e;(e=document.querySelectorAll(".kwtsk-group-btn"))&&e.forEach((function(t){t.addEventListener("click",(function(){var n=t.parentElement;e.forEach((function(e){e.parentElement.removeAttribute("id","openGroup"),e.parentElement.classList.remove("kwtsk-show")})),n.classList.contains("kwtsk-show")?(n.removeAttribute("id","openGroup"),n.classList.remove("kwtsk-show")):(n.setAttribute("id","openGroup"),n.classList.add("kwtsk-show"))}))})),window.addEventListener("click",(function(e){var t=document.getElementById("openGroup");t&&(!e.target!=t&&t.contains(e.target)||(t.removeAttribute("id"),t.classList.remove("kwtsk-show")))}))}),[Ae]);_u((function(){Et.get(le+"/settings").then((function(e){var t=null!=e&&e.data?JSON.parse(e.data):console.log("Theme Site Kit Options Empty");if(t){var n=function(e){Te((function(n){return gu(gu({},n),{},vu({},e,t[e]?t[e]:""))}))};for(var r in t)n(r)}else Te(Ce)})).then((function(){_e(!1)}))}),[]);return React.createElement(React.Fragment,null,React.createElement("div",{className:"kwtsk-settings"},React.createElement("div",{className:"kwtskSettingBar"},React.createElement("h2",null,Su("Theme Site Kit Settings","theme-site-kit")),React.createElement("div",{className:"kwtskSettingBarOptions"},fe&&React.createElement("a",{href:ue,className:"fa-solid fa-user kwtsk-account",title:Su("My Account","theme-site-kit")}),React.createElement("a",{href:"https://kairaweb.com/documentation/",className:"fa-solid fa-life-ring kwtsk-docs",title:Su("Documentation","theme-site-kit"),target:"_blank"}))),React.createElement("div",{className:"kwtsk-settings-content ".concat("general"===Re?"hide-save":"")},React.createElement("form",{id:"kwtsk-settings-form",onSubmit:function(e){return function(e){e.preventDefault(),xe(!0),Et.post(le+"/settings",{kwtskOptions:Ae},{headers:{"content-type":"application/json","X-WP-NONCE":se}}).then((function(e){xe(!1)}))}(e)}},React.createElement("div",{className:"kwtsk-tabs"},React.createElement("ul",null,React.createElement("li",null,React.createElement("a",{id:"kwtsktab-general",className:"kwtsk-tab ".concat("general"===Re?"active":""),onClick:function(){return Le("general")}},Su("General","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-disable_comments",className:"kwtsk-tab ".concat("disable_comments"===Re?"active":""),onClick:function(){return Le("disable_comments")}},Su("Disable Comments","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-maintenance_mode",className:"kwtsk-tab ".concat("maintenance_mode"===Re?"active":""),onClick:function(){return Le("maintenance_mode")}},Su("Maintenance Mode","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-social_links",className:"kwtsk-tab ".concat("social_links"===Re?"active":""),onClick:function(){return Le("social_links")}},Su("Social Links","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-mobile_menu",className:"kwtsk-tab ".concat("mobile_menu"===Re?"active":""),onClick:function(){return Le("mobile_menu")}},Su("Mobile Menu","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-cpts",className:"kwtsk-tab ".concat("cpts"===Re?"active":""),onClick:function(){return Le("cpts")}},Su("Custom Post Types","theme-site-kit"))),React.createElement("li",null,React.createElement("a",{id:"kwtsktab-extras",className:"kwtsk-tab ".concat("extras"===Re?"active":""),onClick:function(){return Le("extras")}},Su("Extras","theme-site-kit")))),React.createElement("div",{className:"kwtsk-content-wrap"},React.createElement("div",{className:"kwtsk-content-wrap-inner"},(ke||we)&&React.createElement(lu,null),React.createElement("div",{id:"kwtsk-content-general",className:"kwtsk-content ".concat("general"===Re?"active":"")},React.createElement(du,{adminUrl:ce,changeTab:function(){return Le("disable_comments")}})),React.createElement("div",{id:"kwtsk-content-disable_comments",className:"kwtsk-content ".concat("disable_comments"===Re?"active":"")},React.createElement(eu,{title:Su("Disable Comments","theme-site-kit"),description:Su("Easily turn off comments across your entire site or selectively disable them per post or page. Keep your content clean and focused, without unnecessary clutter or spam.","theme-site-kit")}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Zc,{title:Su("Disable Comments","theme-site-kit"),slug:"disablecomments_disable",value:null===(t=Ae.disablecomments)||void 0===t?void 0:t.disable,inputType:"radio",options:[{value:"everywhere",label:Su("Everywhere","theme-site-kit")},{value:"post_types",label:Su("Post Types Only","theme-site-kit")}],onChange:Ie,customClass:"kwtsk-disable-comments",notitle:!0}),"post_types"===(null===(n=Ae.disablecomments)||void 0===n?void 0:n.disable)&&React.createElement(React.Fragment,null,de&&React.createElement("tr",null,React.createElement("th",{scope:"row"},React.createElement("h4",null,Su("Disable Comments on:","theme-site-kit"))),React.createElement("td",null,React.createElement("table",{className:"form-table inner-setting-table",role:"presentation"},React.createElement("tbody",null,Object.entries(de).map((function(e){var t,n=yu(e,2),r=(n[0],n[1]);return React.createElement(Zc,{key:r.name,title:r.label,slug:"disablecomments_post_types",value:(null===(t=Ae.disablecomments)||void 0===t||null===(t=t.post_types)||void 0===t?void 0:t.includes(r.name))||!1,inputType:"toggle",onChange:function(e){var t,n=(null===(t=Ae.disablecomments)||void 0===t?void 0:t.post_types)||[];n=e.target.checked?[].concat(mu(n),[r.name]):n.filter((function(e){return e!==r.name})),Ie({target:{name:"disablecomments_post_types",value:n}})}})})))))))))),React.createElement("div",{id:"kwtsk-content-maintenance_mode",className:"kwtsk-content ".concat("maintenance_mode"===Re?"active":"")},React.createElement(eu,{title:Su("Maintenance Mode","theme-site-kit"),description:Su("Enable maintenance mode to temporarily hide your site from visitors while you build your website or make needed updates.","theme-site-kit")}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Zc,{title:Su("Enable Maintenance Mode","theme-site-kit"),slug:"maintenance_enabled",value:null===(r=Ae.maintenance)||void 0===r?void 0:r.enabled,inputType:"toggle",onChange:Ie}),(null===(o=Ae.maintenance)||void 0===o?void 0:o.enabled)&&React.createElement(React.Fragment,null,React.createElement(Zc,{title:Su("Choose Mode","linkt"),slug:"maintenance_mode",value:null===(a=Ae.maintenance)||void 0===a?void 0:a.mode,inputType:"select",emptyOption:!0,emptyLabel:Su("Disabled","theme-site-kit"),options:{maintenance:Su("Maintenance Mode","theme-site-kit"),coming_soon:Su("Coming Soon","theme-site-kit")},onChange:Ie,note:null!==(i=Ae.maintenance)&&void 0!==i&&i.mode?"maintenance"===(null===(l=Ae.maintenance)||void 0===l?void 0:l.mode)?Su("Maintenance Mode (returning HTTP 503 code)","theme-site-kit"):Su("Coming Soon mode (returning HTTP 200 code)","theme-site-kit"):Su("Choose between Coming Soon mode (returning HTTP 200 code) or Maintenance Mode (returning HTTP 503 code).","theme-site-kit")}),("maintenance"===(null===(s=Ae.maintenance)||void 0===s?void 0:s.mode)||"coming_soon"===(null===(c=Ae.maintenance)||void 0===c?void 0:c.mode))&&React.createElement(React.Fragment,null,fe&&React.createElement(Zc,{title:Su("Choose Template","theme-site-kit"),slug:"maintenance_template",value:null===(u=Ae.maintenance)||void 0===u?void 0:u.template,inputType:"select",emptyOption:!0,emptyLabel:Su("Default Basic Template","theme-site-kit"),options:be,onChange:Ie,note:null!==(p=Ae.maintenance)&&void 0!==p&&p.template?React.createElement(React.Fragment,null,React.createElement("a",{href:"".concat(ce,"post.php?post=").concat(Ae.maintenance.template,"&action=edit"),target:"_blank",rel:"noopener noreferrer"},Su("Edit Template Page","theme-site-kit"))," ",React.createElement("div",null,Su("This page will be hidden, you can only edit it from here.","theme-site-kit"))):React.createElement(React.Fragment,null,Fe?Su("Creating page...","theme-site-kit"):React.createElement(React.Fragment,null,React.createElement("a",{href:"#",onClick:function(e){e.preventDefault(),function(e){e.preventDefault(),Be(!0),Et.post(le+"/create-template-page",{},{headers:{"X-WP-NONCE":se}}).then((function(e){var t=e.data,n=t.page_id,r=t.page_title;Te((function(e){return gu(gu({},e),{},{maintenance:gu(gu({},e.maintenance),{},{template:n})})})),ge((function(e){return gu(gu({},e),{},vu({},n,r))}))})).catch((function(e){console.error(e),alert("Could not create template page.")})).finally((function(){return Be(!1)}))}(e)}},Su("Create a New Template Page","theme-site-kit"))," ",React.createElement("div",null,Su("Remember to save your settings afterwards!","theme-site-kit"))))}),!(null!==(f=Ae.maintenance)&&void 0!==f&&f.template)&&React.createElement(tu,{label:Su("Edit Template Page","theme-site-kit")},fe&&React.createElement(Zc,{title:Su("Background Color","theme-site-kit"),slug:"maintenance_bgcolor",value:null===(d=Ae.maintenance)||void 0===d?void 0:d.bgcolor,inputType:"colorpicker",defaultValue:"#f5f5f5",onChange:Ie}),React.createElement(Zc,{title:Su("Title","theme-site-kit"),slug:"maintenance_title",value:null===(h=Ae.maintenance)||void 0===h?void 0:h.title,inputType:"text",onChange:Ie,placeholder:"coming_soon"===(null===(m=Ae.maintenance)||void 0===m?void 0:m.mode)?Su("Coming Soon","theme-site-kit"):Su("Maintenance Mode","theme-site-kit")}),fe&&React.createElement(Zc,{title:Su("Title Color","theme-site-kit"),slug:"maintenance_titlecolor",value:null===(b=Ae.maintenance)||void 0===b?void 0:b.titlecolor,inputType:"colorpicker",defaultValue:"#333",onChange:Ie}),React.createElement(Zc,{title:Su("Text","theme-site-kit"),slug:"maintenance_text",value:null===(g=Ae.maintenance)||void 0===g?void 0:g.text,inputType:"text",onChange:Ie,placeholder:"coming_soon"===(null===(v=Ae.maintenance)||void 0===v?void 0:v.mode)?Su("Our website is launching soon. Stay tuned!","theme-site-kit"):Su("We are currently performing scheduled maintenance. Please check back soon.","theme-site-kit")}),fe&&React.createElement(Zc,{title:Su("Text Color","theme-site-kit"),slug:"maintenance_textcolor",value:null===(y=Ae.maintenance)||void 0===y?void 0:y.textcolor,inputType:"colorpicker",defaultValue:"#666",onChange:Ie})),React.createElement(Zc,{title:Su("Who Can Access the Site","linkt"),slug:"maintenance_access",value:null===(w=Ae.maintenance)||void 0===w?void 0:w.access,inputType:"select",options:{loggedin:Su("Logged In Users","theme-site-kit"),custom:Su("Custom","theme-site-kit")},onChange:Ie}),"custom"===(null===(x=Ae.maintenance)||void 0===x?void 0:x.access)&&React.createElement(React.Fragment,null,React.createElement(Zc,{title:Su("Select User Roles","theme-site-kit"),slug:"maintenance_userroles",value:null===(E=Ae.maintenance)||void 0===E?void 0:E.userroles,inputType:"multicheckbox",options:ve,onChange:Ie}))),!fe&&React.createElement(React.Fragment,null,React.createElement("br",null),React.createElement("br",null),React.createElement(Zc,{slug:"maintenance_pronote",desc:Su("Unlock full design control with Theme Site Kit Pro - customize default template colors, build your own Maintenance Mode page using the intuitive WordPress block editor, or instantly import our pre-designed page layouts to use for your 'Maintenance Mode' template.","theme-site-kit"),inputType:"pronote",upgradeUrl:pe})))))),React.createElement("div",{id:"kwtsk-content-social_links",className:"kwtsk-content ".concat("social_links"===Re?"active":"")},React.createElement(eu,{title:Su("Social Links","theme-site-kit"),description:Su("Add slick, always-visible floating icons for your social media profiles and contact options. Positioned neatly along the side of your site, they make it easy for visitors to connect with you anytime.","theme-site-kit")}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Zc,{title:Su("Enable Social Links","theme-site-kit"),slug:"social_enabled",value:null===(k=Ae.social)||void 0===k?void 0:k.enabled,inputType:"toggle",onChange:Ie}),(null===(_=Ae.social)||void 0===_?void 0:_.enabled)&&React.createElement(React.Fragment,null,React.createElement(Zc,{title:Su("Show Preview","theme-site-kit"),slug:"social_preview",value:Ne,inputType:"toggle",onChange:function(){return De((function(e){return!e}))}}),React.createElement(Zc,{title:Su("Position","linkt"),slug:"social_position",value:null===(S=Ae.social)||void 0===S?void 0:S.position,inputType:"select",options:{"right-top":Su("Right Top","theme-site-kit"),"right-bottom":Su("Right Bottom","theme-site-kit"),"left-top":Su("Left Top","theme-site-kit"),"left-bottom":Su("Left Bottom","theme-site-kit"),"bottom-left":Su("Bottom Left","theme-site-kit"),"bottom-center":Su("Bottom Center","theme-site-kit"),"bottom-right":Su("Bottom Right","theme-site-kit")},onChange:Ie}),"bottom-center"!==(null===(R=Ae.social)||void 0===R?void 0:R.position)&&React.createElement(Zc,{title:Su("Offset","theme-site-kit"),slug:"social_offset",value:null===(O=Ae.social)||void 0===O?void 0:O.offset,placeholder:"150",inputType:"number",onChange:Ie,suffix:"px"}),React.createElement(tu,{label:Su("Edit Social Icons","theme-site-kit")},React.createElement(Zc,{title:Su("Icon Size","linkt"),slug:"social_iconsize",value:null===(C=Ae.social)||void 0===C?void 0:C.iconsize,inputType:"select",options:{xsmall:Su("Extra Small","theme-site-kit"),small:Su("Small","theme-site-kit"),medium:Su("Medium","theme-site-kit"),large:Su("Large","theme-site-kit"),xlarge:Su("Extra Large","theme-site-kit")},onChange:Ie}),React.createElement(Zc,{title:Su("Icon Spacing","theme-site-kit"),slug:"social_spacing",value:null===(j=Ae.social)||void 0===j?void 0:j.spacing,inputType:"range",defaultValue:8,min:1,max:40,suffix:"px",onChange:Ie}),React.createElement(Zc,{title:Su("Icon Style","linkt"),slug:"social_style",value:null===(A=Ae.social)||void 0===A?void 0:A.style,inputType:"select",options:{square:Su("Square","theme-site-kit"),rounded:Su("Rounded","theme-site-kit"),rounder:Su("More Rounded","theme-site-kit"),round:Su("Round","theme-site-kit")},onChange:Ie}),React.createElement(Zc,{title:Su("Show Background","theme-site-kit"),slug:"social_showbg",value:null===(T=Ae.social)||void 0===T?void 0:T.showbg,inputType:"toggle",onChange:Ie}),(null===(P=Ae.social)||void 0===P?void 0:P.showbg)&&React.createElement(Zc,{title:Su("Background Color","theme-site-kit"),slug:"social_iconbgcolor",value:null===(N=Ae.social)||void 0===N?void 0:N.iconbgcolor,inputType:"colorpicker",defaultValue:"#FFF",onChange:Ie}),React.createElement(Zc,{title:Su("Label on Hover","theme-site-kit"),slug:"social_showtext",value:null===(D=Ae.social)||void 0===D?void 0:D.showtext,inputType:"toggle",onChange:Ie}),fe&&React.createElement(Zc,{title:Su("Icon Original Color","theme-site-kit"),slug:"social_iconorigcolor",value:null===(M=Ae.social)||void 0===M?void 0:M.iconorigcolor,inputType:"toggle",onChange:Ie}),(!(null!==(F=Ae.social)&&void 0!==F&&F.iconorigcolor)||(null===(B=Ae.social)||void 0===B?void 0:B.showtext))&&React.createElement(Zc,{title:null!==(L=Ae.social)&&void 0!==L&&L.iconorigcolor&&null!==(I=Ae.social)&&void 0!==I&&I.showtext?Su("Text Color","theme-site-kit"):Su("Icon & Text Color","theme-site-kit"),slug:"social_iconcolor",value:null===(U=Ae.social)||void 0===U?void 0:U.iconcolor,inputType:"colorpicker",defaultValue:"#AF2DBF",onChange:Ie}),!fe&&React.createElement(Zc,{slug:"social_mini_pronote",desc:Su("Use original brand colors in Theme Site Kit Pro.","theme-site-kit"),inputType:"pronote",mini:!0})),!fe&&(null===(z=Ae.social)||void 0===z?void 0:z.icons.length)>=4&&React.createElement(Zc,{title:Su("Upgrade to Theme Site Kit Pro","theme-site-kit"),desc:Su("Unlock unlimited social icons and more features with Theme Site Kit Pro.","theme-site-kit"),upgradeUrl:pe,inputType:"pronote"}),React.createElement(Zc,{slug:"social_icons",value:null===(H=Ae.social)||void 0===H?void 0:H.icons,inputType:"socialicons",options:St,onChange:Ie,notitle:!0,isPro:fe}))))),React.createElement("div",{id:"kwtsk-content-mobile_menu",className:"kwtsk-content ".concat("mobile_menu"===Re?"active":"")},React.createElement(eu,{title:Su("Custom Mobile Menu","theme-site-kit"),description:Su("Upgrade your site's mobile experience with an enhanced core Navigation Block extension. This feature creates a smooth, modern slide-out menu that looks great and works even better on mobile devices.","theme-site-kit"),isPro:!0,isPremium:fe}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Zc,{title:Su("Enable Custom Mobile Menu","theme-site-kit"),slug:"mobilemenu_enabled",value:null===(W=Ae.mobilemenu)||void 0===W?void 0:W.enabled,inputType:"toggle",onChange:Ie}),(null===($=Ae.mobilemenu)||void 0===$?void 0:$.enabled)&&React.createElement(React.Fragment,null,fe?React.createElement(React.Fragment,null,React.createElement(Zc,{title:Su("Mobile Menu Colors","linkt"),slug:"mobilemenu_style",value:null===(X=Ae.mobilemenu)||void 0===X?void 0:X.style,inputType:"select",options:{dark:Su("Dark","theme-site-kit"),light:Su("Light","theme-site-kit"),custom:Su("Custom","theme-site-kit")},onChange:Ie}),"custom"===(null===(G=Ae.mobilemenu)||void 0===G?void 0:G.style)&&React.createElement(React.Fragment,null,React.createElement(Zc,{title:Su("Background Color","theme-site-kit"),slug:"mobilemenu_bgcolor",value:null===(V=Ae.mobilemenu)||void 0===V?void 0:V.bgcolor,inputType:"colorpicker",defaultValue:"#1d2327",onChange:Ie}),React.createElement(Zc,{title:Su("Text Color","theme-site-kit"),slug:"mobilemenu_textcolor",value:null===(q=Ae.mobilemenu)||void 0===q?void 0:q.textcolor,inputType:"colorpicker",defaultValue:"#b4b4b4",onChange:Ie}),React.createElement(Zc,{title:Su("Selected Text Color","theme-site-kit"),slug:"mobilemenu_selectedcolor",value:null===(Y=Ae.mobilemenu)||void 0===Y?void 0:Y.selectedcolor,inputType:"colorpicker",defaultValue:"#FFF",onChange:Ie})),React.createElement(Zc,{title:Su("Menu Width","theme-site-kit"),slug:"mobilemenu_width",value:null===(K=Ae.mobilemenu)||void 0===K?void 0:K.width,inputType:"text",onChange:Ie,placeholder:"250px"})):React.createElement(Zc,{title:Su("Upgrade to Theme Site Kit Pro","theme-site-kit"),desc:Su("Theme Site Kit Pro introduces a refined slide-out mobile navigation design for the core editor's Navigation block, offering a cleaner and more intuitive user experience.","theme-site-kit"),inputType:"pronote",upgradeUrl:pe}))))),React.createElement("div",{id:"kwtsk-content-cpts",className:"kwtsk-content ".concat("cpts"===Re?"active":"")},React.createElement(eu,{title:Su("Custom Post Types","theme-site-kit"),description:Su("Create and Manage custom Post Types on your WordPress site.","theme-site-kit"),isPro:!0,isPremium:fe}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Zc,{title:Su("Enable Custom Post Types","theme-site-kit"),slug:"cpts_enabled",value:null===(J=Ae.cpts)||void 0===J?void 0:J.enabled,inputType:"toggle",onChange:Ie,note:(null===(Z=Ae.cpts)||void 0===Z?void 0:Z.enabled)&&Su("Once you've added your custom Post Type(s), you will need to refresh the page to view them in your WordPress admin.","theme-site-kit")}),(null===(Q=Ae.cpts)||void 0===Q?void 0:Q.enabled)&&React.createElement(React.Fragment,null,fe?React.createElement(React.Fragment,null,React.createElement(Zc,{title:Su("Custom Post Types","theme-site-kit"),slug:"cpts_post_types",value:null===(ee=Ae.cpts)||void 0===ee?void 0:ee.post_types,inputType:"cptsoptions",onChange:Ie,apiUrl:le,adminUrl:ce})):React.createElement(Zc,{title:"Upgrade to Theme Site Kit Pro",desc:"Theme Site Kit Pro lets you add custom post types - special content formats beyond standard posts - to your WordPress dashboard, ideal for case studies, services, portfolios, etc.",upgradeUrl:pe,inputType:"pronote"}))))),React.createElement("div",{id:"kwtsk-content-extras",className:"kwtsk-content ".concat("extras"===Re?"active":"")},React.createElement(eu,{title:Su("Extra Useful Features","theme-site-kit"),description:Su("A few thoughtful Extra's to improve your workflow and enhance your frontend experience - small details that make a big difference.","theme-site-kit")}),React.createElement("table",{className:"form-table",role:"presentation"},React.createElement("tbody",null,React.createElement(Zc,{title:Su("Enable SVG Uploads","theme-site-kit"),slug:"svgupload_enabled",value:null===(te=Ae.svgupload)||void 0===te?void 0:te.enabled,inputType:"toggle",onChange:Ie,note:null!==(ne=Ae.svgupload)&&void 0!==ne&&ne.enabled?Su("You can now safely upload SVG files.","theme-site-kit"):Su("Allow SVG uploads in the Media Library. SVG files are XML-based vector images that can be scaled to any size without losing quality. They are often used for logos, icons, and other graphics on the web.","theme-site-kit")}),React.createElement(Zc,{title:Su("Code Snippets","theme-site-kit"),slug:"code_enabled",value:null===(re=Ae.code)||void 0===re?void 0:re.enabled,inputType:"toggle",onChange:Ie,note:null!==(oe=Ae.code)&&void 0!==oe&&oe.enabled?Su("You can now add custom code snippets to your site.","theme-site-kit"):Su("Once enabled, refresh the page to see Code Snippets in your Dashboard sidebar.","theme-site-kit")}),React.createElement(Zc,{title:Su("Duplicate Posts","theme-site-kit"),slug:"duplicate_comingsoon",value:null===(ae=Ae.duplicate)||void 0===ae?void 0:ae.comingsoon,inputType:"toggle",onChange:Ie,comingSoon:!0}))))),React.createElement("div",{className:"kwtskSettingBar bottom"},React.createElement("div",{className:"kwtskSettingBarMain"},React.createElement("button",{type:"submit",className:"button kwtskSaveBtn button-primary"},Su("Save Settings","theme-site-kit")),React.createElement("div",{className:"kwtskSaveBtnLoader"},(ke||we)&&React.createElement(lu,null))),React.createElement("div",{className:"kwtskSettingBarOptions"},React.createElement("div",{className:"kwtsk-delete",title:Su("Reset Settings","theme-site-kit"),onClick:function(e){var t=document.getElementsByClassName("kwtsk-delete");t[0].classList.add("show-confirm"),setTimeout((function(){t[0].classList.remove("show-confirm")}),2500)}},React.createElement("div",{className:"kwtsk-confirm-delete"},React.createElement("a",{onClick:function(e){e.preventDefault(),window.confirm(Su("Are you sure you want to delete all settings?","theme-site-kit"))&&(xe(!0),_e(!0),Et.delete(le+"/delete",{headers:{"X-WP-NONCE":se}}).then((function(e){xe(!1),location.reload()})))}},Su("Confirm... Reset All Settings!","theme-site-kit")))))))))),Ne&&React.createElement(pu,{options:Ae.social,isPro:fe})))};var Ou=wp.element.render;document.addEventListener("DOMContentLoaded",(function(){var e=kwtskSObj,t=document.getElementById("kwtsk-root");t&&Ou(React.createElement(Ru,{kwtskObj:e}),t)}))})(),(this["theme-site-kit"]=this["theme-site-kit"]||{})["settings.min"]={}})(); -
theme-site-kit/trunk/includes/class-kwtsk-frontend.php
r3298008 r3351118 152 152 color: " . esc_attr( $textcolor ) . " !important; 153 153 fill: " . esc_attr( $textcolor ) . " !important; 154 box-shadow:155 inset 1px 0 0 rgb(0 0 0 / 14%),156 inset 2px 0 15px rgb(0 0 0 / 10%);157 154 } 158 155 body.kwtsk-mmenu 159 156 header.wp-block-template-part 160 nav.wp-block-navigation.kwtsk-custom 157 nav.wp-block-navigation.kwtsk-custom.mobile-on 161 158 .wp-block-navigation__container 162 159 li:hover > a, 163 160 body.kwtsk-mmenu 164 161 header.wp-block-template-part 165 nav.wp-block-navigation.kwtsk-custom 162 nav.wp-block-navigation.kwtsk-custom.mobile-on 166 163 .wp-block-navigation__container 167 164 li a.current-menu-ancestor, 168 165 body.kwtsk-mmenu 169 166 header.wp-block-template-part 170 nav.wp-block-navigation.kwtsk-custom 167 nav.wp-block-navigation.kwtsk-custom.mobile-on 171 168 .wp-block-navigation__container 172 169 li.current-menu-item > a { -
theme-site-kit/trunk/includes/class-kwtsk-post-types.php
r3326191 r3351118 35 35 add_action( 'init', [$this, 'kwtsk_register_custom_post_types'] ); 36 36 add_filter( 'post_updated_messages', [$this, 'kwtsk_custom_post_type_messages'] ); 37 add_filter( 'get_block_template', [$this, 'kwtsk_ensure_cpt_template'], 10, 3 ); 38 add_filter( 'default_template_types', [$this, 'kwtsk_register_cpt_template_types'], 10, 1 ); 39 } 40 41 /** 42 * Register template types for our CPTs 43 * 44 * @param array $default_template_types The default template types. 45 * @return array Modified template types. 46 */ 47 public function kwtsk_register_cpt_template_types( $default_template_types ) { 48 $kwtskSavedOptions = get_option( 'kwtsk_options' ); 49 $kwtskOptions = $kwtskSavedOptions ? json_decode( $kwtskSavedOptions ) : null; 50 51 if ( empty( $kwtskOptions->cpts->post_types ) || ! is_object( $kwtskOptions->cpts->post_types ) ) { 52 return $default_template_types; 53 } 54 55 foreach ( $kwtskOptions->cpts->post_types as $settings ) { 56 $post_type = sanitize_title( $settings->slug ); 57 $label = sanitize_text_field( $settings->label ); 58 $singular = ! empty( $settings->singular ) ? sanitize_text_field( $settings->singular ) : $label; 59 60 $default_template_types["single-{$post_type}"] = array( 61 // translators: %s: Post type singular name. 62 'title' => sprintf( __( 'Single %s', 'theme-site-kit' ), $singular ), 63 // translators: %s: Post type singular name. 64 'description' => sprintf( __( 'Displays a single %s.', 'theme-site-kit' ), strtolower( $singular ) ), 65 ); 66 } 67 68 return $default_template_types; 69 } 70 71 /** 72 * Ensure WordPress uses our custom template for CPTs 73 * 74 * @param WP_Block_Template|null $template The found block template. 75 * @param string $id Template unique identifier (example: theme_slug//template_slug). 76 * @param string $template_type wp_template or wp_template_part. 77 * @return WP_Block_Template|null Block template. 78 */ 79 public function kwtsk_ensure_cpt_template( $template, $id, $template_type ) { 80 if ( ! is_singular() || 'wp_template' !== $template_type ) { 81 return $template; 82 } 83 84 $post_type = get_post_type(); 85 if ( ! $post_type ) { 86 return $template; 87 } 88 89 // Check if this is one of our CPTs 90 $kwtskSavedOptions = get_option( 'kwtsk_options' ); 91 $kwtskOptions = $kwtskSavedOptions ? json_decode( $kwtskSavedOptions ) : null; 92 93 if ( empty( $kwtskOptions->cpts->post_types ) || ! is_object( $kwtskOptions->cpts->post_types ) ) { 94 return $template; 95 } 96 97 $is_our_cpt = false; 98 foreach ( $kwtskOptions->cpts->post_types as $settings ) { 99 if ( sanitize_title( $settings->slug ) === $post_type ) { 100 $is_our_cpt = true; 101 break; 102 } 103 } 104 105 if ( ! $is_our_cpt ) { 106 return $template; 107 } 108 109 // Try to find our custom template 110 $theme_slug = wp_get_theme()->get_stylesheet(); 111 $template_slug = "single-{$post_type}"; 112 $template_path = "{$theme_slug}//{$template_slug}"; 113 114 $found = get_block_template( $template_path, 'wp_template' ); 115 if ( ! $found ) { 116 $found = get_page_by_path( $template_path, OBJECT, 'wp_template' ); 117 } 118 119 return $found ? ( $found instanceof WP_Block_Template ? $found : _build_block_template_result_from_post( $found ) ) : $template; 37 120 } 38 121 … … 84 167 'hierarchical' => false, 85 168 'rewrite' => [ 'slug' => $slug ], 86 'supports' => [ 'title', 'editor', 'thumbnail', 'excerpt', 'revisions' ],169 'supports' => [ 'title', 'editor', 'thumbnail', 'excerpt', 'revisions', 'page-attributes', 'custom-fields' ], 87 170 'menu_icon' => 'dashicons-admin-post', 171 'template' => array( 172 array( 'core/paragraph', array( 173 'content' => __( 'Start building your page!', 'theme-site-kit' ), 174 ) ), 175 ), 88 176 ] ); 89 177 90 178 if ( isset( $settings->enable_categories ) && $settings->enable_categories ) { 179 $category_slug = isset( $settings->category_slug ) && ! empty( $settings->category_slug ) 180 ? sanitize_title( $settings->category_slug ) 181 : "{$slug}-category"; 182 91 183 register_taxonomy( "{$slug}-category", $slug, [ 92 184 'labels' => [ … … 98 190 'show_ui' => true, 99 191 'show_in_rest' => true, 100 'rewrite' => [ 'slug' => "{$slug}-category"],192 'rewrite' => [ 'slug' => $category_slug ], 101 193 ] ); 102 194 } 103 195 104 196 if ( isset( $settings->enable_tags ) && $settings->enable_tags ) { 197 $tag_slug = isset( $settings->tag_slug ) && ! empty( $settings->tag_slug ) 198 ? sanitize_title( $settings->tag_slug ) 199 : "{$slug}-tag"; 200 105 201 register_taxonomy( "{$slug}-tag", $slug, [ 106 202 'labels' => [ … … 112 208 'show_ui' => true, 113 209 'show_in_rest' => true, 114 'rewrite' => [ 'slug' => "{$slug}-tag"],210 'rewrite' => [ 'slug' => $tag_slug ], 115 211 ] ); 116 212 } -
theme-site-kit/trunk/includes/class-kwtsk-rest-api.php
r3298008 r3351118 66 66 'methods' => 'GET', 67 67 'callback' => [$this, 'kwtsk_check_post_type_post_count'], 68 'permission_callback' => [$this, 'kwtsk_get_settings_permission'], 69 ]); 70 71 register_rest_route('kwtsk/v1', '/delete-post-type', [ 72 'methods' => 'POST', 73 'callback' => [$this, 'kwtsk_delete_post_type'], 74 'permission_callback' => [$this, 'kwtsk_save_settings_permission'], 75 ]); 76 77 register_rest_route('kwtsk/v1', '/create-cpt-template', [ 78 'methods' => 'POST', 79 'callback' => [$this, 'kwtsk_create_cpt_template'], 80 'permission_callback' => [$this, 'kwtsk_save_settings_permission'], 81 ]); 82 83 register_rest_route('kwtsk/v1', '/check-template', [ 84 'methods' => 'GET', 85 'callback' => [$this, 'kwtsk_check_template_exists'], 68 86 'permission_callback' => [$this, 'kwtsk_get_settings_permission'], 69 87 ]); … … 506 524 return rest_ensure_response( [ 'count' => $total ] ); 507 525 } 526 527 /** 528 * Delete a post type and optionally all its posts 529 * 530 * @param WP_REST_Request $request The request object. 531 * @return WP_REST_Response|WP_Error Response object or WP_Error. 532 */ 533 public function kwtsk_delete_post_type( WP_REST_Request $request ) { 534 $params = $request->get_json_params(); 535 $post_type = sanitize_key( $params['post_type'] ); 536 $force_delete = isset( $params['force_delete'] ) ? (bool) $params['force_delete'] : false; 537 538 if ( ! post_type_exists( $post_type ) ) { 539 return new WP_Error( 'invalid_post_type', 'Post type not found', [ 'status' => 404 ] ); 540 } 541 542 if ( $force_delete ) { 543 // Delete all posts of this type first 544 $posts = get_posts( array( 545 'post_type' => $post_type, 546 'posts_per_page' => -1, 547 'post_status' => 'any', 548 'fields' => 'ids', 549 ) ); 550 551 foreach ( $posts as $post_id ) { 552 wp_delete_post( $post_id, true ); 553 } 554 555 // Delete the template if it exists 556 $theme_slug = wp_get_theme()->get_stylesheet(); 557 $template_slug = "single-{$post_type}"; 558 $template_path = "{$theme_slug}//{$template_slug}"; 559 $existing_template = get_page_by_path( $template_path, OBJECT, 'wp_template' ); 560 if ( $existing_template ) { 561 wp_delete_post( $existing_template->ID, true ); 562 } 563 } 564 565 // Unregister the post type 566 unregister_post_type( $post_type ); 567 568 return rest_ensure_response( array( 569 'success' => true, 570 'message' => __( 'Post type deleted successfully.', 'theme-site-kit' ), 571 ) ); 572 } 573 574 /** 575 * Create a block template for a custom post type 576 * 577 * @param WP_REST_Request $request The request object. 578 * @return WP_REST_Response|WP_Error Response object or WP_Error. 579 */ 580 public function kwtsk_create_cpt_template( WP_REST_Request $request ) { 581 if ( ! current_user_can( 'manage_options' ) ) { 582 return new WP_Error( 'rest_forbidden', __( 'You do not have permissions to create templates.', 'theme-site-kit' ), array( 'status' => 401 ) ); 583 } 584 585 $params = $request->get_json_params(); 586 if ( ! $params ) { 587 return new WP_Error( 'invalid_params', __( 'Invalid request parameters.', 'theme-site-kit' ), array( 'status' => 400 ) ); 588 } 589 590 $post_type = isset( $params['post_type'] ) ? sanitize_text_field( $params['post_type'] ) : ''; 591 $label = isset( $params['label'] ) ? sanitize_text_field( $params['label'] ) : ''; 592 593 if ( empty( $post_type ) || empty( $label ) ) { 594 return new WP_Error( 'missing_params', __( 'Missing required parameters.', 'theme-site-kit' ), array( 'status' => 400 ) ); 595 } 596 597 $theme_slug = wp_get_theme()->get_stylesheet(); 598 $template_slug = "single-{$post_type}"; 599 $template_title = sprintf( __( 'Single %s', 'theme-site-kit' ), $label ); 600 601 // Delete existing template if it exists 602 $existing_template = get_page_by_path( $template_slug, OBJECT, 'wp_template' ); 603 if ( $existing_template ) { 604 wp_delete_post( $existing_template->ID, true ); 605 } 606 607 // Create new block template content 608 $post_content = serialize_blocks( array( 609 array( 610 'blockName' => 'core/template-part', 611 'attrs' => array( 612 'slug' => 'header', 613 'theme' => $theme_slug, 614 'className' => 'nomargin', 615 ), 616 'innerBlocks' => array(), 617 'innerHTML' => '', 618 'innerContent' => array(), 619 ), 620 array( 621 'blockName' => 'core/post-content', 622 'attrs' => array( 623 'style' => array( 624 'spacing' => array( 625 'margin' => array( 626 'top' => '0', 627 'bottom' => '0', 628 ), 629 ), 630 ), 631 ), 632 'innerBlocks' => array(), 633 'innerHTML' => '', 634 'innerContent' => array(), 635 ), 636 array( 637 'blockName' => 'core/template-part', 638 'attrs' => array( 639 'slug' => 'footer', 640 'theme' => $theme_slug, 641 'className' => 'nomargin', 642 ), 643 'innerBlocks' => array(), 644 'innerHTML' => '', 645 'innerContent' => array(), 646 ), 647 ) ); 648 649 // Create the template post 650 $template_id = wp_insert_post( array( 651 'post_name' => $template_slug, 652 'post_title' => $template_title, 653 'post_type' => 'wp_template', 654 'post_status' => 'publish', 655 'post_content' => $post_content, 656 ), true ); 657 658 if ( is_wp_error( $template_id ) ) { 659 error_log( 'Theme Site Kit - Template Creation Error: ' . $template_id->get_error_message() ); 660 return new WP_Error( 661 'template_creation_failed', 662 $template_id->get_error_message(), 663 array( 'status' => 500 ) 664 ); 665 } 666 667 try { 668 // Assign theme taxonomy 669 wp_set_object_terms( $template_id, $theme_slug, 'wp_theme' ); 670 671 // Set template meta 672 update_post_meta( $template_id, 'origin', $theme_slug ); 673 update_post_meta( $template_id, 'theme', $theme_slug ); 674 update_post_meta( $template_id, 'is_custom', true ); 675 update_post_meta( $template_id, 'template_type', 'wp_template' ); 676 update_post_meta( $template_id, 'area', 'uncategorized' ); 677 678 // Assign the template to existing posts 679 $existing_posts = get_posts( array( 680 'post_type' => $post_type, 681 'posts_per_page' => -1, 682 'fields' => 'ids', 683 ) ); 684 685 foreach ( $existing_posts as $post_id ) { 686 update_post_meta( $post_id, '_wp_page_template', $template_slug ); 687 } 688 689 // Clear caches 690 wp_cache_delete( 'wp_template_' . $template_slug, 'theme_templates' ); 691 wp_cache_delete( $post_type, 'post_templates' ); 692 693 return rest_ensure_response( array( 694 'success' => true, 695 'message' => __( 'Template created successfully.', 'theme-site-kit' ), 696 'template_id' => $template_id, 697 ) ); 698 699 } catch ( Exception $e ) { 700 error_log( 'Theme Site Kit - Template Creation Error: ' . $e->getMessage() ); 701 return new WP_Error( 702 'template_creation_failed', 703 __( 'Error creating template: ', 'theme-site-kit' ) . $e->getMessage(), 704 array( 'status' => 500 ) 705 ); 706 } 707 } 708 709 /** 710 * Check if a template exists for a post type 711 * 712 * @param WP_REST_Request $request The request object. 713 * @return WP_REST_Response|WP_Error Response object or WP_Error. 714 */ 715 public function kwtsk_check_template_exists( WP_REST_Request $request ) { 716 $post_type = sanitize_key( $request->get_param( 'post_type' ) ); 717 if ( empty( $post_type ) ) { 718 return new WP_Error( 'missing_post_type', __( 'Post type parameter is required.', 'theme-site-kit' ), array( 'status' => 400 ) ); 719 } 720 721 $template_slug = "single-{$post_type}"; 722 $existing_template = get_page_by_path( $template_slug, OBJECT, 'wp_template' ); 723 724 return rest_ensure_response( array( 725 'exists' => $existing_template !== null, 726 ) ); 727 } 508 728 } 509 729 new KWTSK_API_Rest_Routes(); -
theme-site-kit/trunk/includes/class-kwtsk-scripts.php
r3326191 r3351118 121 121 wp_localize_script('kwtsk-mobile-menu-script', 'kwtskMMObj', array( 122 122 'isPremium' => $isPro, 123 'menuWidth' => isset($kwtskOptions->mobilemenu->width) ? $kwtskOptions->mobilemenu->width : '250px', 123 124 )); 124 125 } … … 157 158 wp_enqueue_style('kwtsk-admin-settings-style'); 158 159 160 // Get all post types 159 161 $all_post_types = get_post_types(array('public' => true), 'objects'); 160 162 $excluded_types = array('product', 'attachment', 'media', 'revision', 'nav_menu_item', 'linkt', 'elementor_library'); … … 163 165 return ! in_array($post_type_name, $excluded_types); 164 166 }, ARRAY_FILTER_USE_BOTH); 165 167 168 // Get all page templates 169 // $templates = get_page_templates(); 170 // Filter out unwanted templates 171 // $templates = array_filter($templates, function($template_file, $template_name) { 172 // $excluded_terms = ['elementor', 'archive', 'order-confirmation', 'single-product']; 173 // foreach ($excluded_terms as $term) { 174 // if (stripos($template_file, $term) !== false || stripos($template_name, $term) !== false) { 175 // return false; 176 // } 177 // } 178 // return true; 179 // }, ARRAY_FILTER_USE_BOTH); 180 166 181 $pages_for_maintenance_mode = $this->kwtsk_get_maintenance_mode_page(); 167 182 … … 278 293 "textcolor" => "#b4b4b4", 279 294 "selectedcolor" => "#ffffff", 295 "width" => "250px", 280 296 ), 281 297 "svgupload" => array( -
theme-site-kit/trunk/lang/theme-site-kit.pot
r3298008 r3351118 1 1 # Copyright (C) 2025 Kaira 2 # This file is distributed under the same license as the Theme Site Kit plugin.2 # This file is distributed under the GPLv2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Theme Site Kit 1.0. 0\n"5 "Project-Id-Version: Theme Site Kit 1.0.5\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/theme-site-kit\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 5-06T10:23:56+00:00\n"12 "POT-Creation-Date: 2025-08-26T09:12:28+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 8.1\n"14 "X-Generator: WP-CLI 2.12.0\n" 15 15 "X-Domain: theme-site-kit\n" 16 16 17 17 #. Plugin Name of the plugin 18 #: theme-site-kit.php 18 19 #: includes/class-kwtsk-admin.php:56 19 20 #: includes/class-kwtsk-admin.php:57 … … 22 23 23 24 #. Plugin URI of the plugin 24 msgid "https://kairaweb.com/wordpress-plugins/theme-pro/" 25 #: theme-site-kit.php 26 msgid "https://kairaweb.com/wordpress-plugin/theme-site-kit/" 25 27 msgstr "" 26 28 27 29 #. Description of the plugin 30 #: theme-site-kit.php 28 31 msgid "Easily manage essential site customizations with Theme Site Kit - the Swiss-Army-Knife WordPress plugin for disabling comments, maintenance mode, enabling SVG uploads, adding social links, and more." 29 32 msgstr "" 30 33 31 34 #. Author of the plugin 35 #: theme-site-kit.php 32 36 msgid "Kaira" 33 37 msgstr "" 34 38 35 39 #. Author URI of the plugin 40 #: theme-site-kit.php 36 41 msgid "https://kairaweb.com/" 37 42 msgstr "" … … 168 173 #: includes/class-kwtsk-block-patterns.php:1028 169 174 #: includes/class-kwtsk-block-patterns.php:1074 170 #: includes/class-kwtsk-maintenance-mode.php:2 06175 #: includes/class-kwtsk-maintenance-mode.php:260 171 176 #: src/backend/SettingsPage.js:278 172 177 #: src/backend/SettingsPage.js:444 … … 184 189 msgstr "" 185 190 186 #: includes/class-kwtsk-disable-comments.php:188 191 #: includes/class-kwtsk-custom-code.php:46 192 #: includes/class-kwtsk-custom-code.php:84 193 #: includes/class-kwtsk-custom-code.php:85 194 #: src/backend/SettingsPage.js:1173 195 msgid "Code Snippets" 196 msgstr "" 197 198 #: includes/class-kwtsk-custom-code.php:47 199 #: includes/class-kwtsk-custom-code.php:112 200 msgid "Code Snippet" 201 msgstr "" 202 203 #: includes/class-kwtsk-custom-code.php:48 204 #: includes/class-kwtsk-post-types.php:144 205 msgid "Add New" 206 msgstr "" 207 208 #: includes/class-kwtsk-custom-code.php:49 209 msgid "Add New Code Snippet" 210 msgstr "" 211 212 #: includes/class-kwtsk-custom-code.php:50 213 msgid "Edit Code Snippet" 214 msgstr "" 215 216 #: includes/class-kwtsk-custom-code.php:51 217 msgid "New Code Snippet" 218 msgstr "" 219 220 #: includes/class-kwtsk-custom-code.php:52 221 msgid "View Code Snippet" 222 msgstr "" 223 224 #: includes/class-kwtsk-custom-code.php:53 225 msgid "Search Code Snippets" 226 msgstr "" 227 228 #: includes/class-kwtsk-custom-code.php:54 229 msgid "No Code Snippets found" 230 msgstr "" 231 232 #: includes/class-kwtsk-custom-code.php:95 233 #: includes/class-kwtsk-custom-code.php:96 234 msgid "Import Snippets" 235 msgstr "" 236 237 #: includes/class-kwtsk-custom-code.php:104 238 msgid "Import Code Snippets" 239 msgstr "" 240 241 #: includes/class-kwtsk-custom-code.php:105 242 msgid "Upload or paste your code snippets here to import." 243 msgstr "" 244 245 #: includes/class-kwtsk-custom-code.php:146 246 msgid "Shop Page" 247 msgstr "" 248 249 #: includes/class-kwtsk-custom-code.php:147 250 msgid "Cart Page" 251 msgstr "" 252 253 #: includes/class-kwtsk-custom-code.php:148 254 msgid "Checkout Page" 255 msgstr "" 256 257 #: includes/class-kwtsk-custom-code.php:149 258 msgid "My Account Page" 259 msgstr "" 260 261 #: includes/class-kwtsk-custom-code.php:163 262 msgid "Everywhere (Admin & Frontend)" 263 msgstr "" 264 265 #: includes/class-kwtsk-custom-code.php:164 266 msgid "Admin" 267 msgstr "" 268 269 #: includes/class-kwtsk-custom-code.php:165 270 msgid "Frontend" 271 msgstr "" 272 273 #: includes/class-kwtsk-custom-code.php:166 274 msgid "Select Pages" 275 msgstr "" 276 277 #: includes/class-kwtsk-custom-code.php:167 278 msgid "Select Posts" 279 msgstr "" 280 281 #: includes/class-kwtsk-custom-code.php:172 282 msgid "Select WooCommerce Pages" 283 msgstr "" 284 285 #: includes/class-kwtsk-custom-code.php:173 286 msgid "Select WooCommerce Products" 287 msgstr "" 288 289 #: includes/class-kwtsk-custom-code.php:180 290 msgid "Code Language:" 291 msgstr "" 292 293 #: includes/class-kwtsk-custom-code.php:191 294 msgid "Priority:" 295 msgstr "" 296 297 #: includes/class-kwtsk-custom-code.php:197 298 msgid "Enable Snippet:" 299 msgstr "" 300 301 #: includes/class-kwtsk-custom-code.php:216 302 msgid "Where to add this code:" 303 msgstr "" 304 305 #: includes/class-kwtsk-custom-code.php:218 306 msgid "Select where to add this code" 307 msgstr "" 308 309 #: includes/class-kwtsk-custom-code.php:232 310 msgid "Minify code when placed:" 311 msgstr "" 312 313 #: includes/class-kwtsk-custom-code.php:244 314 msgid "Select Pages:" 315 msgstr "" 316 317 #: includes/class-kwtsk-custom-code.php:245 318 msgid "If no pages selected, the code will be added to all pages." 319 msgstr "" 320 321 #: includes/class-kwtsk-custom-code.php:257 322 msgid "Select Posts:" 323 msgstr "" 324 325 #: includes/class-kwtsk-custom-code.php:258 326 msgid "If no posts selected, the code will be added to all posts." 327 msgstr "" 328 329 #: includes/class-kwtsk-custom-code.php:272 330 msgid "Select WooCommerce Pages:" 331 msgstr "" 332 333 #: includes/class-kwtsk-custom-code.php:273 334 msgid "If no pages selected, the code will be added to all WooCommerce pages." 335 msgstr "" 336 337 #: includes/class-kwtsk-custom-code.php:285 338 msgid "Select WooCommerce Products:" 339 msgstr "" 340 341 #: includes/class-kwtsk-custom-code.php:286 342 msgid "If no products selected, the code will be added to all WooCommerce products." 343 msgstr "" 344 345 #: includes/class-kwtsk-custom-code.php:300 346 msgid "Upgrade to Theme Site Kit Pro to unlock more advanced features!" 347 msgstr "" 348 349 #: includes/class-kwtsk-custom-code.php:301 350 msgid "Load your custom code only on the pages you choose!, Select posts, pages, or specificWooCommerce screens, and optimize your site even more with the added feature of minifying CSS and JavaScript file on the page." 351 msgstr "" 352 353 #: includes/class-kwtsk-custom-code.php:302 354 #: src/backend/layouts/LayoutItem.js:49 355 #: src/backend/layouts/LayoutsPage.js:486 356 msgid "Upgrade to Pro" 357 msgstr "" 358 359 #: includes/class-kwtsk-disable-comments.php:223 187 360 msgid "Comments are disabled on this site." 188 361 msgstr "" 189 362 190 #: includes/class-kwtsk-disable-comments.php:2 47363 #: includes/class-kwtsk-disable-comments.php:282 191 364 msgid "Comments have been disabled." 192 365 msgstr "" 193 366 194 #: includes/class-kwtsk-disable-comments.php:2 48367 #: includes/class-kwtsk-disable-comments.php:283 195 368 msgid "Back to Dashboard" 196 369 msgstr "" 197 370 198 #: includes/class-kwtsk-maintenance-mode.php:205 371 #: includes/class-kwtsk-duplicate-posts.php:59 372 msgid "Duplicate this item" 373 msgstr "" 374 375 #: includes/class-kwtsk-duplicate-posts.php:59 376 msgid "Duplicate" 377 msgstr "" 378 379 #: includes/class-kwtsk-duplicate-posts.php:71 380 msgid "Invalid request." 381 msgstr "" 382 383 #: includes/class-kwtsk-duplicate-posts.php:76 384 msgid "You are not allowed to duplicate this item." 385 msgstr "" 386 387 #: includes/class-kwtsk-maintenance-mode.php:259 199 388 #: src/backend/SettingsPage.js:478 200 389 #: src/backend/SettingsPage.js:611 … … 202 391 msgstr "" 203 392 204 #: includes/class-kwtsk-maintenance-mode.php:2 12393 #: includes/class-kwtsk-maintenance-mode.php:263 205 394 #: src/backend/SettingsPage.js:643 206 395 msgid "Our website is launching soon. Stay tuned!" 207 396 msgstr "" 208 397 209 #: includes/class-kwtsk-maintenance-mode.php:2 13398 #: includes/class-kwtsk-maintenance-mode.php:264 210 399 #: src/backend/SettingsPage.js:647 211 400 msgid "We are currently performing scheduled maintenance. Please check back soon." 212 401 msgstr "" 213 402 214 #: includes/class-kwtsk-maintenance-mode.php: 279403 #: includes/class-kwtsk-maintenance-mode.php:301 215 404 msgid "Maintenance Mode: ON" 216 405 msgstr "" 217 406 218 #: includes/class-kwtsk-maintenance-mode.php: 282407 #: includes/class-kwtsk-maintenance-mode.php:304 219 408 msgid "Maintenance Mode: OFF" 220 409 msgstr "" 221 410 222 #: includes/class-kwtsk-maintenance-mode.php:3 05411 #: includes/class-kwtsk-maintenance-mode.php:327 223 412 msgid "Coming Soon Page" 224 413 msgstr "" 225 414 226 #: includes/class-kwtsk-maintenance-mode.php:3 07415 #: includes/class-kwtsk-maintenance-mode.php:329 227 416 msgid "Maintenance Mode Page" 228 417 msgstr "" 229 418 230 #: includes/class-kwtsk-post-types.php:60 231 msgid "Add New" 419 #: includes/class-kwtsk-notices.php:103 420 msgid "Thank you for trying out Theme Site Kit!" 421 msgstr "" 422 423 #: includes/class-kwtsk-notices.php:104 424 msgid "Get started by selecting which Site Kit features you want to enable on your website:" 425 msgstr "" 426 427 #: includes/class-kwtsk-notices.php:106 428 msgid "View Theme Site Kit Settings" 232 429 msgstr "" 233 430 234 431 #. translators: %s: Post type singular name. 235 432 #: includes/class-kwtsk-post-types.php:62 236 msgid "Add New %s" 433 #: includes/class-kwtsk-rest-api.php:599 434 #, php-format 435 msgid "Single %s" 237 436 msgstr "" 238 437 239 438 #. translators: %s: Post type singular name. 240 439 #: includes/class-kwtsk-post-types.php:64 440 #, php-format 441 msgid "Displays a single %s." 442 msgstr "" 443 444 #. translators: %s: Post type singular name. 445 #: includes/class-kwtsk-post-types.php:146 446 #, php-format 447 msgid "Add New %s" 448 msgstr "" 449 450 #. translators: %s: Post type singular name. 451 #: includes/class-kwtsk-post-types.php:148 452 #, php-format 241 453 msgid "Edit %s" 242 454 msgstr "" 243 455 244 456 #. translators: %s: Post type singular name. 245 #: includes/class-kwtsk-post-types.php:66 457 #: includes/class-kwtsk-post-types.php:150 458 #, php-format 246 459 msgid "New %s" 247 460 msgstr "" 248 461 249 462 #. translators: %s: Post type singular name. 250 #: includes/class-kwtsk-post-types.php:68 463 #: includes/class-kwtsk-post-types.php:152 464 #, php-format 251 465 msgid "View %s" 252 466 msgstr "" 253 467 254 468 #. translators: %s: Post type label. 255 #: includes/class-kwtsk-post-types.php:70 469 #: includes/class-kwtsk-post-types.php:154 470 #, php-format 256 471 msgid "View All %s" 257 472 msgstr "" 258 473 259 474 #. translators: %s: Post type label. 260 #: includes/class-kwtsk-post-types.php:72 475 #: includes/class-kwtsk-post-types.php:156 476 #, php-format 261 477 msgid "Search %s" 262 478 msgstr "" 263 479 264 480 #. translators: %s: Post type label. 265 #: includes/class-kwtsk-post-types.php:74 481 #: includes/class-kwtsk-post-types.php:158 482 #, php-format 266 483 msgid "No %s found" 267 484 msgstr "" 268 485 269 486 #. translators: %s: Post type label. 270 #: includes/class-kwtsk-post-types.php:76 487 #: includes/class-kwtsk-post-types.php:160 488 #, php-format 271 489 msgid "No %s found in Trash" 272 490 msgstr "" 273 491 274 #: includes/class-kwtsk-post-types.php:92 492 #: includes/class-kwtsk-post-types.php:173 493 msgid "Start building your page!" 494 msgstr "" 495 496 #: includes/class-kwtsk-post-types.php:185 275 497 msgctxt "taxonomy general name" 276 498 msgid "Categories" 277 499 msgstr "" 278 500 279 #: includes/class-kwtsk-post-types.php: 93501 #: includes/class-kwtsk-post-types.php:186 280 502 msgctxt "taxonomy singular name" 281 503 msgid "Category" 282 504 msgstr "" 283 505 284 #: includes/class-kwtsk-post-types.php: 106506 #: includes/class-kwtsk-post-types.php:203 285 507 msgctxt "taxonomy general name" 286 508 msgid "Tags" 287 509 msgstr "" 288 510 289 #: includes/class-kwtsk-post-types.php: 107511 #: includes/class-kwtsk-post-types.php:204 290 512 msgctxt "taxonomy singular name" 291 513 msgid "Tag" … … 293 515 294 516 #. translators: %s: Post type singular name. 295 #: includes/class-kwtsk-post-types.php:135 296 #: includes/class-kwtsk-post-types.php:139 517 #: includes/class-kwtsk-post-types.php:232 518 #: includes/class-kwtsk-post-types.php:236 519 #, php-format 297 520 msgid "%s updated." 298 521 msgstr "" 299 522 300 #: includes/class-kwtsk-post-types.php: 136523 #: includes/class-kwtsk-post-types.php:233 301 524 msgid "Custom field updated." 302 525 msgstr "" 303 526 304 #: includes/class-kwtsk-post-types.php: 137527 #: includes/class-kwtsk-post-types.php:234 305 528 msgid "Custom field deleted." 306 529 msgstr "" 307 530 308 #. translators: %1$s: Post type singular name, %2$s: Revision date.309 #: includes/class-kwtsk-post-types.php:142310 msgid "%1$s restored to revision from %2$s"311 msgstr ""312 313 531 #. translators: %s: Post type singular name. 314 #: includes/class-kwtsk-post-types.php:145 532 #: includes/class-kwtsk-post-types.php:238 533 #, php-format 534 msgid "%s restored to revision" 535 msgstr "" 536 537 #. translators: %s: Post type singular name. 538 #: includes/class-kwtsk-post-types.php:240 539 #, php-format 315 540 msgid "%s published." 316 541 msgstr "" 317 542 318 543 #. translators: %s: Post type singular name. 319 #: includes/class-kwtsk-post-types.php:147 544 #: includes/class-kwtsk-post-types.php:242 545 #, php-format 320 546 msgid "%s saved." 321 547 msgstr "" 322 548 323 549 #. translators: %s: Post type singular name. 324 #: includes/class-kwtsk-post-types.php:149 550 #: includes/class-kwtsk-post-types.php:244 551 #, php-format 325 552 msgid "%s submitted." 326 553 msgstr "" 327 554 328 555 #. translators: %1$s: Post type singular name, %2$s: Date and time. 329 #: includes/class-kwtsk-post-types.php:152 330 msgid "%s scheduled for: <strong>%1$s</strong>." 331 msgstr "" 332 333 #: includes/class-kwtsk-post-types.php:154 556 #: includes/class-kwtsk-post-types.php:247 557 #, php-format 558 msgid "%1$s scheduled for: <strong>%2$s</strong>." 559 msgstr "" 560 561 #: includes/class-kwtsk-post-types.php:249 334 562 msgid "M j, Y @ G:i" 335 563 msgstr "" 336 564 337 565 #. translators: %s: Post type singular name. 338 #: includes/class-kwtsk-post-types.php:157 566 #: includes/class-kwtsk-post-types.php:252 567 #, php-format 339 568 msgid "%s draft updated." 340 569 msgstr "" 341 570 342 #: includes/class-kwtsk-svg-handler.php:122 571 #: includes/class-kwtsk-rest-api.php:117 572 msgid "Invalid or missing REST nonce." 573 msgstr "" 574 575 #: includes/class-kwtsk-rest-api.php:570 576 msgid "Post type deleted successfully." 577 msgstr "" 578 579 #: includes/class-kwtsk-rest-api.php:582 580 msgid "You do not have permissions to create templates." 581 msgstr "" 582 583 #: includes/class-kwtsk-rest-api.php:587 584 msgid "Invalid request parameters." 585 msgstr "" 586 587 #: includes/class-kwtsk-rest-api.php:594 588 msgid "Missing required parameters." 589 msgstr "" 590 591 #: includes/class-kwtsk-rest-api.php:695 592 msgid "Template created successfully." 593 msgstr "" 594 595 #: includes/class-kwtsk-rest-api.php:703 596 msgid "Error creating template: " 597 msgstr "" 598 599 #: includes/class-kwtsk-rest-api.php:718 600 msgid "Post type parameter is required." 601 msgstr "" 602 603 #: includes/class-kwtsk-svg-handler.php:128 343 604 msgid "Sorry, this file could not be uploaded for security reasons." 344 605 msgstr "" … … 366 627 #: blocks/disclosure/edit.js:92 367 628 msgid "Horizontal Padding" 629 msgstr "" 630 631 #: src/backend/admin/code-snippets.js:18 632 #: src/backend/admin/code-snippets.js:20 633 msgid "Search..." 634 msgstr "" 635 636 #: src/backend/admin/code-snippets.js:150 637 msgid "Changing the language will clear the code editor. Click OK to continue, or Cancel to keep the current language." 368 638 msgstr "" 369 639 … … 471 741 msgstr "" 472 742 473 #: src/backend/components/inputs/CptsSelect.js:149 743 #: src/backend/components/inputs/CptsSelect.js:64 744 msgid "Template created successfully!" 745 msgstr "" 746 747 #: src/backend/components/inputs/CptsSelect.js:75 748 msgid "Failed to create template. Please try again." 749 msgstr "" 750 751 #: src/backend/components/inputs/CptsSelect.js:208 752 msgid "This post type has posts or meta data still saved. Would you like to delete the post type and all its posts? This cannot be undone." 753 msgstr "" 754 755 #: src/backend/components/inputs/CptsSelect.js:221 474 756 msgid "Are you sure you want to delete this post type?" 475 757 msgstr "" 476 758 477 #: src/backend/components/inputs/CptsSelect.js: 168759 #: src/backend/components/inputs/CptsSelect.js:261 478 760 msgid "An error occurred while checking posts." 479 761 msgstr "" 480 762 481 #: src/backend/components/inputs/CptsSelect.js: 186763 #: src/backend/components/inputs/CptsSelect.js:278 482 764 msgid "Post Type Name (e.g. Case Studies)" 483 765 msgstr "" 484 766 485 #: src/backend/components/inputs/CptsSelect.js: 196767 #: src/backend/components/inputs/CptsSelect.js:288 486 768 msgid "Singular Name (e.g. Case Study)" 487 769 msgstr "" 488 770 489 #: src/backend/components/inputs/CptsSelect.js:2 02771 #: src/backend/components/inputs/CptsSelect.js:294 490 772 msgid "Add Post Type" 491 773 msgstr "" 492 774 493 #: src/backend/components/inputs/CptsSelect.js: 208775 #: src/backend/components/inputs/CptsSelect.js:300 494 776 msgid "No custom post types added yet." 495 777 msgstr "" 496 778 497 #: src/backend/components/inputs/CptsSelect.js: 227779 #: src/backend/components/inputs/CptsSelect.js:319 498 780 msgid "Singular" 499 781 msgstr "" 500 782 501 #: src/backend/components/inputs/CptsSelect.js: 241783 #: src/backend/components/inputs/CptsSelect.js:333 502 784 msgid "Has Categories" 503 785 msgstr "" 504 786 505 #: src/backend/components/inputs/CptsSelect.js:250 787 #: src/backend/components/inputs/CptsSelect.js:337 788 #: src/backend/components/inputs/CptsSelect.js:358 789 msgid "URL:" 790 msgstr "" 791 792 #: src/backend/components/inputs/CptsSelect.js:354 506 793 msgid "Has Tags" 507 794 msgstr "" 508 795 509 #: src/backend/components/inputs/CptsSelect.js: 260796 #: src/backend/components/inputs/CptsSelect.js:376 510 797 msgid "Has Archives Page" 511 798 msgstr "" 512 799 513 #: src/backend/components/inputs/CptsSelect.js:310 800 #: src/backend/components/inputs/CptsSelect.js:387 801 msgid "Creating Template..." 802 msgstr "" 803 804 #: src/backend/components/inputs/CptsSelect.js:389 805 msgid "Recreate Template" 806 msgstr "" 807 808 #: src/backend/components/inputs/CptsSelect.js:390 809 msgid "Create Template" 810 msgstr "" 811 812 #: src/backend/components/inputs/CptsSelect.js:395 813 msgid "Template exists" 814 msgstr "" 815 816 #: src/backend/components/inputs/CptsSelect.js:403 514 817 msgid "Delete this post type" 515 818 msgstr "" 516 819 517 #: src/backend/components/inputs/CptsSelect.js: 322518 msgid "Remember to Save Permalinks after adding or making changes toCustom Post Types."519 msgstr "" 520 521 #: src/backend/components/inputs/CptsSelect.js: 327522 msgid " Go toPermalinks"820 #: src/backend/components/inputs/CptsSelect.js:415 821 msgid "Remember to Save Settings below, and then Save Permalinks after editing your Custom Post Types." 822 msgstr "" 823 824 #: src/backend/components/inputs/CptsSelect.js:420 825 msgid "Update Permalinks" 523 826 msgstr "" 524 827 … … 804 1107 #: src/backend/layouts/LayoutsPage.js:482 805 1108 msgid "Import Layout" 806 msgstr ""807 808 #: src/backend/layouts/LayoutItem.js:49809 #: src/backend/layouts/LayoutsPage.js:486810 msgid "Upgrade to Pro"811 1109 msgstr "" 812 1110 … … 911 1209 912 1210 #: src/backend/SettingsPage.js:305 913 #: src/backend/SettingsPage.js:10 65914 #: src/backend/SettingsPage.js:1 0981211 #: src/backend/SettingsPage.js:1077 1212 #: src/backend/SettingsPage.js:1110 915 1213 msgid "Custom Post Types" 916 1214 msgstr "" … … 991 1289 #: src/backend/SettingsPage.js:588 992 1290 #: src/backend/SettingsPage.js:860 993 #: src/backend/SettingsPage.js:100 51291 #: src/backend/SettingsPage.js:1008 994 1292 msgid "Background Color" 995 1293 msgstr "" … … 1009 1307 #: src/backend/SettingsPage.js:655 1010 1308 #: src/backend/SettingsPage.js:898 1011 #: src/backend/SettingsPage.js:101 61309 #: src/backend/SettingsPage.js:1019 1012 1310 msgid "Text Color" 1013 1311 msgstr "" … … 1018 1316 1019 1317 #: src/backend/SettingsPage.js:681 1020 #: src/backend/SettingsPage.js:99 61318 #: src/backend/SettingsPage.js:999 1021 1319 msgid "Custom" 1022 1320 msgstr "" … … 1139 1437 1140 1438 #: src/backend/SettingsPage.js:928 1141 #: src/backend/SettingsPage.js:10 401439 #: src/backend/SettingsPage.js:1052 1142 1440 msgid "Upgrade to Theme Site Kit Pro" 1143 1441 msgstr "" … … 1147 1445 msgstr "" 1148 1446 1149 #: src/backend/SettingsPage.js:96 21447 #: src/backend/SettingsPage.js:963 1150 1448 msgid "Custom Mobile Menu" 1151 1449 msgstr "" 1152 1450 1153 #: src/backend/SettingsPage.js:96 31451 #: src/backend/SettingsPage.js:964 1154 1452 msgid "Upgrade your site's mobile experience with an enhanced core Navigation Block extension. This feature creates a smooth, modern slide-out menu that looks great and works even better on mobile devices." 1155 1453 msgstr "" 1156 1454 1157 #: src/backend/SettingsPage.js:97 41455 #: src/backend/SettingsPage.js:977 1158 1456 msgid "Enable Custom Mobile Menu" 1159 1457 msgstr "" 1160 1458 1161 #: src/backend/SettingsPage.js:99 41459 #: src/backend/SettingsPage.js:997 1162 1460 msgid "Dark" 1163 1461 msgstr "" 1164 1462 1165 #: src/backend/SettingsPage.js:99 51463 #: src/backend/SettingsPage.js:998 1166 1464 msgid "Light" 1167 1465 msgstr "" 1168 1466 1169 #: src/backend/SettingsPage.js:102 51467 #: src/backend/SettingsPage.js:1028 1170 1468 msgid "Selected Text Color" 1171 1469 msgstr "" 1172 1470 1173 #: src/backend/SettingsPage.js:1044 1471 #: src/backend/SettingsPage.js:1042 1472 msgid "Menu Width" 1473 msgstr "" 1474 1475 #: src/backend/SettingsPage.js:1056 1174 1476 msgid "Theme Site Kit Pro introduces a refined slide-out mobile navigation design for the core editor's Navigation block, offering a cleaner and more intuitive user experience." 1175 1477 msgstr "" 1176 1478 1177 #: src/backend/SettingsPage.js:10 661479 #: src/backend/SettingsPage.js:1078 1178 1480 msgid "Create and Manage custom Post Types on your WordPress site." 1179 1481 msgstr "" 1180 1482 1181 #: src/backend/SettingsPage.js:10 771483 #: src/backend/SettingsPage.js:1089 1182 1484 msgid "Enable Custom Post Types" 1183 1485 msgstr "" 1184 1486 1185 #: src/backend/SettingsPage.js:10 871487 #: src/backend/SettingsPage.js:1099 1186 1488 msgid "Once you've added your custom Post Type(s), you will need to refresh the page to view them in your WordPress admin." 1187 1489 msgstr "" 1188 1490 1189 #: src/backend/SettingsPage.js:11 311491 #: src/backend/SettingsPage.js:1144 1190 1492 msgid "Extra Useful Features" 1191 1493 msgstr "" 1192 1494 1193 #: src/backend/SettingsPage.js:11 321495 #: src/backend/SettingsPage.js:1145 1194 1496 msgid "A few thoughtful Extra's to improve your workflow and enhance your frontend experience - small details that make a big difference." 1195 1497 msgstr "" 1196 1498 1197 #: src/backend/SettingsPage.js:11 411499 #: src/backend/SettingsPage.js:1154 1198 1500 msgid "Enable SVG Uploads" 1199 1501 msgstr "" 1200 1502 1201 #: src/backend/SettingsPage.js:11 481503 #: src/backend/SettingsPage.js:1161 1202 1504 msgid "You can now safely upload SVG files." 1203 1505 msgstr "" 1204 1506 1205 #: src/backend/SettingsPage.js:11 521507 #: src/backend/SettingsPage.js:1165 1206 1508 msgid "Allow SVG uploads in the Media Library. SVG files are XML-based vector images that can be scaled to any size without losing quality. They are often used for logos, icons, and other graphics on the web." 1207 1509 msgstr "" 1208 1510 1209 #: src/backend/SettingsPage.js:1160 1210 msgid "Code Snippets" 1211 msgstr "" 1212 1213 #: src/backend/SettingsPage.js:1182 1511 #: src/backend/SettingsPage.js:1180 1512 msgid "You can now add custom code snippets to your site." 1513 msgstr "" 1514 1515 #: src/backend/SettingsPage.js:1184 1516 msgid "Once enabled, refresh the page to see Code Snippets in your Dashboard sidebar." 1517 msgstr "" 1518 1519 #: src/backend/SettingsPage.js:1192 1520 msgid "Duplicate Posts" 1521 msgstr "" 1522 1523 #: src/backend/SettingsPage.js:1214 1214 1524 msgid "Save Settings" 1215 1525 msgstr "" 1216 1526 1217 #: src/backend/SettingsPage.js:1 1911527 #: src/backend/SettingsPage.js:1223 1218 1528 msgid "Reset Settings" 1219 1529 msgstr "" 1220 1530 1221 #: src/backend/SettingsPage.js:1 1961531 #: src/backend/SettingsPage.js:1228 1222 1532 msgid "Confirm... Reset All Settings!" 1223 1533 msgstr "" -
theme-site-kit/trunk/readme.txt
r3326191 r3351118 6 6 Requires PHP: 7.4 7 7 Tested up to: 6.8 8 Stable tag: 1.0. 48 Stable tag: 1.0.5 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 136 136 2. **Disable Comments** - Remove website comments everywhere or by post type 137 137 3. **Maintenance Mode** - Hide your website behind a maintenance page while building 138 4. **Social & Contact Links** - Add neat floating social profile and contact links to your site 138 4. **Social & Contact Links** - Add neat floating social profile and contact links to your site 139 139 5. **Safe SVG Uploads** - Enable SVG image upload on your WordPress website 140 140 6. **Block Patterns** - Import pre-built header and footer block patterns (content patterns coming soon) … … 159 159 == Changelog == 160 160 161 = 1.0.5 = 162 * Styling tweaks/fixes 163 * Fixed Color setting bug in Plugin Settings page 164 * Added missing translator comments for strings with placeholders 165 * PRO: Slide-Out Mobile Menu adjust li elements styling 166 * PRO: Set custom width to Slide-Out Mobile Menu 167 * PRO: Added Custom Post Type page (auto-generate) templates 168 * PRO: Added ability to customize CPT Permalink URLS 169 * Updated the language .pot file 170 161 171 = 1.0.4 = 162 172 * Styling tweaks/fixes -
theme-site-kit/trunk/theme-site-kit.php
r3326191 r3351118 3 3 /** 4 4 * Plugin Name: Theme Site Kit 5 * Version: 1.0. 45 * Version: 1.0.5 6 6 * Plugin URI: https://kairaweb.com/wordpress-plugin/theme-site-kit/ 7 7 * Description: Easily manage essential site customizations with Theme Site Kit - the Swiss-Army-Knife WordPress plugin for disabling comments, maintenance mode, enabling SVG uploads, adding social links, and more. … … 20 20 defined( 'ABSPATH' ) || exit; 21 21 if ( !defined( 'KWTSK_PLUGIN_VERSION' ) ) { 22 define( 'KWTSK_PLUGIN_VERSION', '1.0. 4' );22 define( 'KWTSK_PLUGIN_VERSION', '1.0.5' ); 23 23 } 24 24 if ( !defined( 'KWTSK_PLUGIN_URL' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.