@foxy.io/elements 1.16.0-beta.1 → 1.16.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +2 -2
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-copy-to-clipboard.js +1 -0
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-coupon-codes-form.js +1 -1
- package/dist/cdn/foxy-coupon-detail-card.js +1 -0
- package/dist/cdn/foxy-coupon-form.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-api.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +15 -15
- package/dist/cdn/foxy-customer.js +6 -6
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -0
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -0
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -0
- package/dist/cdn/foxy-item-form.js +1 -0
- package/dist/cdn/foxy-item-option-card.js +1 -0
- package/dist/cdn/foxy-item-option-form.js +1 -0
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-nucleon-element.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-report-form.js +15 -15
- package/dist/cdn/foxy-reports-table.js +2 -2
- package/dist/cdn/foxy-shipment-card.js +17 -0
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +4 -4
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-swipe-actions.js +1 -0
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +64 -0
- package/dist/cdn/foxy-transactions-table.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/shared-007660a6.js +12 -0
- package/dist/cdn/{shared-9221e6b2.js → shared-0479553e.js} +1 -1
- package/dist/cdn/shared-06014421.js +1 -0
- package/dist/cdn/shared-072abf87.js +1 -0
- package/dist/cdn/{shared-b0f0e8b5.js → shared-11c2efc8.js} +1 -1
- package/dist/cdn/shared-1b064836.js +1 -0
- package/dist/cdn/shared-1ddccf4d.js +1 -0
- package/dist/cdn/{shared-15f2aeb5.js → shared-22103348.js} +1 -1
- package/dist/cdn/{shared-cb71ddbc.js → shared-25e9c276.js} +3 -3
- package/dist/cdn/{shared-448781f9.js → shared-2bb49907.js} +1 -1
- package/dist/cdn/shared-2eee69db.js +1 -0
- package/dist/cdn/shared-3026cee0.js +15 -0
- package/dist/cdn/shared-34998df6.js +1 -0
- package/dist/cdn/{shared-278a8b9d.js → shared-35de1004.js} +10 -10
- package/dist/cdn/{shared-31166bdc.js → shared-368a2f85.js} +1 -1
- package/dist/cdn/{shared-7f463a38.js → shared-38f8a319.js} +7 -7
- package/dist/cdn/{shared-e5937698.js → shared-3ffd77da.js} +14 -19
- package/dist/cdn/shared-4e63d6e0.js +1 -0
- package/dist/cdn/{shared-b20f463a.js → shared-5097c880.js} +2 -11
- package/dist/cdn/shared-518902c8.js +1 -0
- package/dist/cdn/shared-5e75308a.js +1 -0
- package/dist/cdn/{shared-d9aed64e.js → shared-60e98fbf.js} +1 -1
- package/dist/cdn/shared-64657919.js +1 -0
- package/dist/cdn/{shared-666e8a90.js → shared-757bb517.js} +1 -1
- package/dist/cdn/{shared-bf6c685e.js → shared-7819b0b0.js} +1 -1
- package/dist/cdn/shared-7f33a83a.js +159 -0
- package/dist/cdn/{shared-e8abe6c6.js → shared-7f3ca8e7.js} +5 -5
- package/dist/cdn/shared-874bbae5.js +1 -0
- package/dist/cdn/shared-92d6f937.js +1 -0
- package/dist/cdn/shared-935ba2fc.js +1 -0
- package/dist/cdn/shared-96df3c85.js +1 -0
- package/dist/cdn/{shared-218ba06e.js → shared-99065f2a.js} +1 -1
- package/dist/cdn/shared-9a089d49.js +1 -0
- package/dist/cdn/shared-9d4835ed.js +1 -0
- package/dist/cdn/{shared-24064bd3.js → shared-9d7aaf7a.js} +1 -1
- package/dist/cdn/shared-a8e21a41.js +1 -0
- package/dist/cdn/shared-b4a4a92b.js +1 -0
- package/dist/cdn/{shared-5d169043.js → shared-b8f492a4.js} +1 -1
- package/dist/cdn/{shared-ee53f7e5.js → shared-bbfdfee2.js} +10 -10
- package/dist/cdn/{shared-3821923d.js → shared-bc94606b.js} +1 -1
- package/dist/cdn/shared-c3c424cd.js +1 -0
- package/dist/cdn/shared-c4f0a219.js +1 -0
- package/dist/cdn/{shared-6d45a07b.js → shared-d3bf9ac0.js} +2 -2
- package/dist/cdn/shared-d3ffe0ef.js +1 -0
- package/dist/cdn/{shared-b710881a.js → shared-d519a301.js} +2 -2
- package/dist/cdn/shared-e090608c.js +201 -0
- package/dist/cdn/{shared-a81a95e8.js → shared-e59c65e3.js} +1 -1
- package/dist/cdn/shared-e6f3e9f0.js +6 -0
- package/dist/cdn/shared-ea9af4b0.js +29 -0
- package/dist/cdn/{shared-59e44f29.js → shared-f0ba30e8.js} +1 -1
- package/dist/cdn/{shared-756034e4.js → shared-f3655f42.js} +1 -1
- package/dist/cdn/{shared-07134f93.js → shared-f3b35364.js} +1 -1
- package/dist/cdn/{shared-e367b5fc.js → shared-f3f9f752.js} +9 -9
- package/dist/cdn/shared-f7bddf72.js +9 -0
- package/dist/cdn/shared-fe8ec1f9.js +1 -0
- package/dist/cdn/translations/copy-to-clipboard/en.json +6 -0
- package/dist/cdn/translations/coupon-form/en.json +21 -2
- package/dist/cdn/translations/gift-card-form/en.json +21 -0
- package/dist/cdn/translations/item-card/en.json +9 -0
- package/dist/cdn/translations/item-form/en.json +387 -0
- package/dist/cdn/translations/item-option-form/en.json +43 -0
- package/dist/cdn/translations/report-form/en.json +14 -2
- package/dist/cdn/translations/shipment-card/en.json +470 -0
- package/dist/cdn/translations/transaction/en.json +941 -0
- package/dist/elements/index.d.ts +1 -0
- package/dist/elements/index.js +2 -0
- package/dist/elements/index.js.map +1 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/InternalAsyncComboBoxControl.d.ts +12 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/InternalAsyncComboBoxControl.js +65 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/InternalAsyncComboBoxControl.js.map +1 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/index.js +6 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/index.js.map +1 -0
- package/dist/elements/internal/InternalCard/InternalCard.d.ts +13 -0
- package/dist/elements/internal/InternalCard/InternalCard.js +43 -0
- package/dist/elements/internal/InternalCard/InternalCard.js.map +1 -0
- package/dist/elements/internal/InternalCard/index.d.ts +6 -0
- package/dist/elements/internal/InternalCard/index.js +8 -0
- package/dist/elements/internal/InternalCard/index.js.map +1 -0
- package/dist/elements/internal/InternalCollapsibleCard/InternalCollapsibleCard.d.ts +16 -0
- package/dist/elements/internal/InternalCollapsibleCard/InternalCollapsibleCard.js +63 -0
- package/dist/elements/internal/InternalCollapsibleCard/InternalCollapsibleCard.js.map +1 -0
- package/dist/elements/internal/InternalCollapsibleCard/index.d.ts +5 -0
- package/dist/elements/internal/InternalCollapsibleCard/index.js +7 -0
- package/dist/elements/internal/InternalCollapsibleCard/index.js.map +1 -0
- package/dist/elements/internal/InternalCollectionCard/InternalCollectionCard.d.ts +13 -0
- package/dist/elements/internal/InternalCollectionCard/InternalCollectionCard.js +119 -0
- package/dist/elements/internal/InternalCollectionCard/InternalCollectionCard.js.map +1 -0
- package/dist/elements/internal/InternalCollectionCard/index.d.ts +7 -0
- package/dist/elements/internal/InternalCollectionCard/index.js +9 -0
- package/dist/elements/internal/InternalCollectionCard/index.js.map +1 -0
- package/dist/elements/internal/InternalControl/InternalControl.d.ts +21 -0
- package/dist/elements/internal/InternalControl/InternalControl.js +53 -0
- package/dist/elements/internal/InternalControl/InternalControl.js.map +1 -0
- package/dist/elements/internal/InternalControl/index.d.ts +2 -0
- package/dist/elements/internal/InternalControl/index.js +4 -0
- package/dist/elements/internal/InternalControl/index.js.map +1 -0
- package/dist/elements/internal/InternalCreateControl/InternalCreateControl.d.ts +13 -0
- package/dist/elements/internal/InternalCreateControl/InternalCreateControl.js +47 -0
- package/dist/elements/internal/InternalCreateControl/InternalCreateControl.js.map +1 -0
- package/dist/elements/internal/InternalCreateControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalCreateControl/index.js +6 -0
- package/dist/elements/internal/InternalCreateControl/index.js.map +1 -0
- package/dist/elements/internal/InternalDateControl/InternalDateControl.d.ts +7 -0
- package/dist/elements/internal/InternalDateControl/InternalDateControl.js +48 -0
- package/dist/elements/internal/InternalDateControl/InternalDateControl.js.map +1 -0
- package/dist/elements/internal/InternalDateControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalDateControl/index.js +6 -0
- package/dist/elements/internal/InternalDateControl/index.js.map +1 -0
- package/dist/elements/internal/InternalDeleteControl/InternalDeleteControl.d.ts +6 -0
- package/dist/elements/internal/InternalDeleteControl/InternalDeleteControl.js +39 -0
- package/dist/elements/internal/InternalDeleteControl/InternalDeleteControl.js.map +1 -0
- package/dist/elements/internal/InternalDeleteControl/index.d.ts +5 -0
- package/dist/elements/internal/InternalDeleteControl/index.js +7 -0
- package/dist/elements/internal/InternalDeleteControl/index.js.map +1 -0
- package/dist/elements/internal/InternalEditableControl/InternalEditableControl.d.ts +25 -0
- package/dist/elements/internal/InternalEditableControl/InternalEditableControl.js +78 -0
- package/dist/elements/internal/InternalEditableControl/InternalEditableControl.js.map +1 -0
- package/dist/elements/internal/InternalEditableControl/index.d.ts +3 -0
- package/dist/elements/internal/InternalEditableControl/index.js +5 -0
- package/dist/elements/internal/InternalEditableControl/index.js.map +1 -0
- package/dist/elements/internal/InternalForm/InternalForm.d.ts +13 -0
- package/dist/elements/internal/InternalForm/InternalForm.js +49 -0
- package/dist/elements/internal/InternalForm/InternalForm.js.map +1 -0
- package/dist/elements/internal/InternalForm/index.d.ts +6 -0
- package/dist/elements/internal/InternalForm/index.js +8 -0
- package/dist/elements/internal/InternalForm/index.js.map +1 -0
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.d.ts +9 -0
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.js +115 -0
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.js.map +1 -0
- package/dist/elements/internal/InternalFrequencyControl/index.d.ts +7 -0
- package/dist/elements/internal/InternalFrequencyControl/index.js +9 -0
- package/dist/elements/internal/InternalFrequencyControl/index.js.map +1 -0
- package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.d.ts +5 -0
- package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.js +28 -0
- package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.js.map +1 -0
- package/dist/elements/internal/InternalIntegerControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalIntegerControl/index.js +6 -0
- package/dist/elements/internal/InternalIntegerControl/index.js.map +1 -0
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.d.ts +5 -0
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js +28 -0
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js.map +1 -0
- package/dist/elements/internal/InternalNumberControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalNumberControl/index.js +6 -0
- package/dist/elements/internal/InternalNumberControl/index.js.map +1 -0
- package/dist/elements/internal/InternalTextControl/InternalTextControl.d.ts +5 -0
- package/dist/elements/internal/InternalTextControl/InternalTextControl.js +27 -0
- package/dist/elements/internal/InternalTextControl/InternalTextControl.js.map +1 -0
- package/dist/elements/internal/InternalTextControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalTextControl/index.js +6 -0
- package/dist/elements/internal/InternalTextControl/index.js.map +1 -0
- package/dist/elements/internal/InternalTimestampsControl/InternalTimestampsControl.d.ts +8 -0
- package/dist/elements/internal/InternalTimestampsControl/InternalTimestampsControl.js +56 -0
- package/dist/elements/internal/InternalTimestampsControl/InternalTimestampsControl.js.map +1 -0
- package/dist/elements/internal/InternalTimestampsControl/index.d.ts +2 -0
- package/dist/elements/internal/InternalTimestampsControl/index.js +4 -0
- package/dist/elements/internal/InternalTimestampsControl/index.js.map +1 -0
- package/dist/elements/private/Dialog/Dialog.d.ts +4 -2
- package/dist/elements/private/Dialog/Dialog.js +3 -1
- package/dist/elements/private/Dialog/Dialog.js.map +1 -1
- package/dist/elements/private/EditableList/EditableList.d.ts +4 -2
- package/dist/elements/private/EditableList/EditableList.js +3 -1
- package/dist/elements/private/EditableList/EditableList.js.map +1 -1
- package/dist/elements/private/FrequencyInput/FrequencyInput.d.ts +3 -1
- package/dist/elements/private/FrequencyInput/FrequencyInput.js +2 -1
- package/dist/elements/private/FrequencyInput/FrequencyInput.js.map +1 -1
- package/dist/elements/public/CollectionPage/CollectionPage.d.ts +4 -3
- package/dist/elements/public/CollectionPage/CollectionPage.js +5 -3
- package/dist/elements/public/CollectionPage/CollectionPage.js.map +1 -1
- package/dist/elements/public/CollectionPage/types.d.ts +1 -0
- package/dist/elements/public/CollectionPage/types.js.map +1 -1
- package/dist/elements/public/CollectionPages/CollectionPages.d.ts +4 -2
- package/dist/elements/public/CollectionPages/CollectionPages.js +3 -1
- package/dist/elements/public/CollectionPages/CollectionPages.js.map +1 -1
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.d.ts +14 -0
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.js +112 -0
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.js.map +1 -0
- package/dist/elements/public/CopyToClipboard/index.d.ts +4 -0
- package/dist/elements/public/CopyToClipboard/index.js +6 -0
- package/dist/elements/public/CopyToClipboard/index.js.map +1 -0
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.d.ts +25 -0
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.js +58 -0
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.js.map +1 -0
- package/dist/elements/public/CouponDetailCard/index.d.ts +5 -0
- package/dist/elements/public/CouponDetailCard/index.js +7 -0
- package/dist/elements/public/CouponDetailCard/index.js.map +1 -0
- package/dist/elements/public/CouponDetailCard/types.d.ts +3 -0
- package/dist/elements/public/CouponDetailCard/types.js +2 -0
- package/dist/elements/public/CouponDetailCard/types.js.map +1 -0
- package/dist/elements/public/CouponForm/CouponForm.js +36 -35
- package/dist/elements/public/CouponForm/CouponForm.js.map +1 -1
- package/dist/elements/public/CouponForm/index.d.ts +1 -0
- package/dist/elements/public/CouponForm/index.js +1 -0
- package/dist/elements/public/CouponForm/index.js.map +1 -1
- package/dist/elements/public/CustomerApi/CustomerApi.d.ts +3 -1
- package/dist/elements/public/CustomerApi/CustomerApi.js +2 -1
- package/dist/elements/public/CustomerApi/CustomerApi.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.d.ts +3 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.js +2 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.d.ts +3 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js +2 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.d.ts +3 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js +2 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalTransactions.d.ts +3 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalTransactions.js +2 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalTransactions.js.map +1 -1
- package/dist/elements/public/DiscountBuilder/DiscountBuilder.d.ts +28 -0
- package/dist/elements/public/DiscountBuilder/DiscountBuilder.js +339 -0
- package/dist/elements/public/DiscountBuilder/DiscountBuilder.js.map +1 -0
- package/dist/elements/public/DiscountBuilder/index.d.ts +2 -0
- package/dist/elements/public/DiscountBuilder/index.js +4 -0
- package/dist/elements/public/DiscountBuilder/index.js.map +1 -0
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.d.ts +25 -0
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.js +58 -0
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.js.map +1 -0
- package/dist/elements/public/DiscountDetailCard/index.d.ts +5 -0
- package/dist/elements/public/DiscountDetailCard/index.js +7 -0
- package/dist/elements/public/DiscountDetailCard/index.js.map +1 -0
- package/dist/elements/public/DiscountDetailCard/types.d.ts +3 -0
- package/dist/elements/public/DiscountDetailCard/types.js +2 -0
- package/dist/elements/public/DiscountDetailCard/types.js.map +1 -0
- package/dist/elements/public/GiftCardForm/GiftCardForm.js +28 -15
- package/dist/elements/public/GiftCardForm/GiftCardForm.js.map +1 -1
- package/dist/elements/public/GiftCardForm/index.d.ts +1 -0
- package/dist/elements/public/GiftCardForm/index.js +1 -0
- package/dist/elements/public/GiftCardForm/index.js.map +1 -1
- package/dist/elements/public/I18n/I18n.d.ts +3 -1
- package/dist/elements/public/I18n/I18n.js +2 -1
- package/dist/elements/public/I18n/I18n.js.map +1 -1
- package/dist/elements/public/ItemCard/ItemCard.d.ts +16 -0
- package/dist/elements/public/ItemCard/ItemCard.js +139 -0
- package/dist/elements/public/ItemCard/ItemCard.js.map +1 -0
- package/dist/elements/public/ItemCard/index.d.ts +4 -0
- package/dist/elements/public/ItemCard/index.js +6 -0
- package/dist/elements/public/ItemCard/index.js.map +1 -0
- package/dist/elements/public/ItemCard/types.d.ts +5 -0
- package/dist/elements/public/ItemCard/types.js +2 -0
- package/dist/elements/public/ItemCard/types.js.map +1 -0
- package/dist/elements/public/ItemForm/ItemForm.d.ts +19 -0
- package/dist/elements/public/ItemForm/ItemForm.js +96 -0
- package/dist/elements/public/ItemForm/ItemForm.js.map +1 -0
- package/dist/elements/public/ItemForm/index.d.ts +19 -0
- package/dist/elements/public/ItemForm/index.js +21 -0
- package/dist/elements/public/ItemForm/index.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/InternalItemFormCartControl.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/InternalItemFormCartControl.js +23 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/InternalItemFormCartControl.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.js +8 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/InternalItemFormInventoryControl.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/InternalItemFormInventoryControl.js +31 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/InternalItemFormInventoryControl.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.d.ts +5 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.js +7 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/InternalItemFormLineItemDiscountControl.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/InternalItemFormLineItemDiscountControl.js +48 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/InternalItemFormLineItemDiscountControl.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/index.d.ts +7 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/index.js +9 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/index.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/InternalItemFormShippingControl.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/InternalItemFormShippingControl.js +32 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/InternalItemFormShippingControl.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.d.ts +5 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.js +7 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/InternalItemFormSubscriptionControl.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/InternalItemFormSubscriptionControl.js +75 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/InternalItemFormSubscriptionControl.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.d.ts +8 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.js +10 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.js.map +1 -0
- package/dist/elements/public/ItemForm/types.d.ts +3 -0
- package/dist/elements/public/ItemForm/types.js +2 -0
- package/dist/elements/public/ItemForm/types.js.map +1 -0
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.d.ts +25 -0
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.js +56 -0
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.js.map +1 -0
- package/dist/elements/public/ItemOptionCard/index.d.ts +6 -0
- package/dist/elements/public/ItemOptionCard/index.js +8 -0
- package/dist/elements/public/ItemOptionCard/index.js.map +1 -0
- package/dist/elements/public/ItemOptionCard/types.d.ts +11 -0
- package/dist/elements/public/ItemOptionCard/types.js +2 -0
- package/dist/elements/public/ItemOptionCard/types.js.map +1 -0
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.d.ts +12 -0
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.js +23 -0
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.js.map +1 -0
- package/dist/elements/public/ItemOptionForm/index.d.ts +5 -0
- package/dist/elements/public/ItemOptionForm/index.js +7 -0
- package/dist/elements/public/ItemOptionForm/index.js.map +1 -0
- package/dist/elements/public/ItemOptionForm/types.d.ts +3 -0
- package/dist/elements/public/ItemOptionForm/types.js +2 -0
- package/dist/elements/public/ItemOptionForm/types.js.map +1 -0
- package/dist/elements/public/NucleonElement/NucleonElement.d.ts +7 -1
- package/dist/elements/public/NucleonElement/NucleonElement.js +13 -1
- package/dist/elements/public/NucleonElement/NucleonElement.js.map +1 -1
- package/dist/elements/public/Pagination/Pagination.d.ts +3 -1
- package/dist/elements/public/Pagination/Pagination.js +3 -2
- package/dist/elements/public/Pagination/Pagination.js.map +1 -1
- package/dist/elements/public/PaymentCard/PaymentCard.js +1 -1
- package/dist/elements/public/PaymentCard/PaymentCard.js.map +1 -1
- package/dist/elements/public/QueryBuilder/QueryBuilder.d.ts +3 -1
- package/dist/elements/public/QueryBuilder/QueryBuilder.js +2 -1
- package/dist/elements/public/QueryBuilder/QueryBuilder.js.map +1 -1
- package/dist/elements/public/ReportForm/ReportForm.d.ts +9 -9
- package/dist/elements/public/ReportForm/ReportForm.js +159 -73
- package/dist/elements/public/ReportForm/ReportForm.js.map +1 -1
- package/dist/elements/public/ReportForm/index.d.ts +4 -1
- package/dist/elements/public/ReportForm/index.js +4 -1
- package/dist/elements/public/ReportForm/index.js.map +1 -1
- package/dist/elements/public/ReportForm/types.d.ts +2 -4
- package/dist/elements/public/ReportForm/types.js.map +1 -1
- package/dist/elements/public/ReportForm/utils.d.ts +16 -0
- package/dist/elements/public/ReportForm/utils.js +73 -0
- package/dist/elements/public/ReportForm/utils.js.map +1 -0
- package/dist/elements/public/ShipmentCard/ShipmentCard.d.ts +22 -0
- package/dist/elements/public/ShipmentCard/ShipmentCard.js +114 -0
- package/dist/elements/public/ShipmentCard/ShipmentCard.js.map +1 -0
- package/dist/elements/public/ShipmentCard/index.d.ts +7 -0
- package/dist/elements/public/ShipmentCard/index.js +9 -0
- package/dist/elements/public/ShipmentCard/index.js.map +1 -0
- package/dist/elements/public/ShipmentCard/types.d.ts +18 -0
- package/dist/elements/public/ShipmentCard/types.js +2 -0
- package/dist/elements/public/ShipmentCard/types.js.map +1 -0
- package/dist/elements/public/Spinner/Spinner.d.ts +4 -2
- package/dist/elements/public/Spinner/Spinner.js +3 -1
- package/dist/elements/public/Spinner/Spinner.js.map +1 -1
- package/dist/elements/public/SwipeActions/SwipeActions.d.ts +13 -0
- package/dist/elements/public/SwipeActions/SwipeActions.js +116 -0
- package/dist/elements/public/SwipeActions/SwipeActions.js.map +1 -0
- package/dist/elements/public/SwipeActions/index.d.ts +2 -0
- package/dist/elements/public/SwipeActions/index.js +4 -0
- package/dist/elements/public/SwipeActions/index.js.map +1 -0
- package/dist/elements/public/Transaction/Transaction.d.ts +13 -0
- package/dist/elements/public/Transaction/Transaction.js +101 -0
- package/dist/elements/public/Transaction/Transaction.js.map +1 -0
- package/dist/elements/public/Transaction/index.d.ts +19 -0
- package/dist/elements/public/Transaction/index.js +21 -0
- package/dist/elements/public/Transaction/index.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.d.ts +9 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js +69 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.d.ts +4 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.js +6 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/InternalTransactionCustomerControl.d.ts +5 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/InternalTransactionCustomerControl.js +36 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/InternalTransactionCustomerControl.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/index.d.ts +7 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/index.js +9 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/index.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.d.ts +11 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.js +50 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/index.d.ts +5 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/index.js +7 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/index.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.d.ts +8 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.js +77 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/index.d.ts +4 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/index.js +6 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/index.js.map +1 -0
- package/dist/elements/public/Transaction/types.d.ts +3 -0
- package/dist/elements/public/Transaction/types.js +2 -0
- package/dist/elements/public/Transaction/types.js.map +1 -0
- package/dist/elements/public/index.d.ts +11 -0
- package/dist/elements/public/index.defined.d.ts +11 -0
- package/dist/elements/public/index.defined.js +11 -0
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +11 -0
- package/dist/elements/public/index.js.map +1 -1
- package/dist/mixins/configurable.d.ts +5 -3
- package/dist/mixins/configurable.js +39 -4
- package/dist/mixins/configurable.js.map +1 -1
- package/dist/mixins/inferrable.d.ts +15 -0
- package/dist/mixins/inferrable.js +66 -0
- package/dist/mixins/inferrable.js.map +1 -0
- package/dist/mixins/themeable.js +6637 -4
- package/dist/mixins/themeable.js.map +1 -1
- package/dist/mixins/translatable.d.ts +3 -1
- package/dist/mixins/translatable.js +13 -1
- package/dist/mixins/translatable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-061f64fc.js +0 -1
- package/dist/cdn/shared-21419f10.js +0 -1
- package/dist/cdn/shared-29db2caa.js +0 -230
- package/dist/cdn/shared-2a89f737.js +0 -1
- package/dist/cdn/shared-312fdfb6.js +0 -1
- package/dist/cdn/shared-385ab830.js +0 -1
- package/dist/cdn/shared-39e3ae67.js +0 -1
- package/dist/cdn/shared-4190da71.js +0 -1
- package/dist/cdn/shared-4792a0b8.js +0 -1
- package/dist/cdn/shared-5535f38f.js +0 -15
- package/dist/cdn/shared-56646cd3.js +0 -1
- package/dist/cdn/shared-63eaded9.js +0 -159
- package/dist/cdn/shared-7f0a9790.js +0 -1
- package/dist/cdn/shared-9783e5ce.js +0 -1
- package/dist/cdn/shared-9da4822a.js +0 -12
- package/dist/cdn/shared-b07ef791.js +0 -1
- package/dist/cdn/shared-da709e9d.js +0 -1
- package/dist/cdn/shared-db4aacb2.js +0 -1
- package/dist/cdn/shared-dd4971b5.js +0 -1
- package/dist/cdn/shared-df730f90.js +0 -1
- package/dist/cdn/shared-e94c2670.js +0 -1
- package/dist/cdn/shared-edfe5274.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{L as t,_ as e,j as i,h as s}from"./shared-63eaded9.js";import"./shared-666e8a90.js";import{p as r}from"./shared-b07ef791.js";import"./shared-278a8b9d.js";import"./shared-9da4822a.js";import"./shared-bf6c685e.js";import{b as a,S as n,c as o}from"./shared-385ab830.js";import"./shared-7f463a38.js";import"./shared-9783e5ce.js";import{I as l,D as c}from"./shared-ee53f7e5.js";import{E as h}from"./shared-56646cd3.js";import"./shared-b20f463a.js";import"./shared-d9aed64e.js";import"./shared-e367b5fc.js";import"./shared-3821923d.js";import{s as d}from"./shared-b0f0e8b5.js";class u extends CustomEvent{constructor(t){super("change",{detail:t})}}class m extends CustomEvent{constructor(t){super("submit",{detail:t,cancelable:!0})}}let _,p,g=t=>t;var y;!function(t){t[t.Excluded=0]="Excluded",t[t.BeforeEnter=1]="BeforeEnter",t[t.Default=2]="Default",t[t.Previous=3]="Previous",t[t.BeforeExit=4]="BeforeExit"}(y||(y={}));class f extends t{constructor(){super(...arguments),this.quantity=0,this.image=""}static get properties(){return e(e({},super.properties),{},{quantity:{attribute:!1},image:{attribute:!1}})}static get styles(){return[a.styles,i(_||(_=g`.ease-out-back{transition-timing-function:cubic-bezier(.34,1.56,.64,1)}.blur-1{filter:blur(1px)}.blur-2{filter:blur(2px)}.grayscale{filter:grayscale()}.rotate-12{--tw-rotate:12deg}.-rotate-12{--tw-rotate:-12deg}.-rotate-24{--tw-rotate:-24deg}.translate-y-half{--tw-translate-y:50%}`))]}set empty(t){this.updateComplete.then((()=>{if(t){const[,...t]=this.__stack;t.forEach((t=>t.remove()))}else this.quantity>1&&this.__stack.length<2&&this.__insertImage(y.Previous,this.__stack[0])}))}set data({quantity:t,image:e}){this.quantity=t,this.image=e}render(){return s(p||(p=g`<div id="image" class="w-full h-full relative"></div>`))}firstUpdated(){const t=this.__insertImage(y.Default);this.quantity>1&&this.__insertImage(y.Previous,t)}updated(t){if(t.has("quantity")){const e=t.get("quantity");void 0!==e&&(this.quantity>e?this.__add():this.__remove())}t.has("image")&&this.__stack.forEach((t=>t.src=this.image))}get __container(){return this.shadowRoot.getElementById("image")}get __stack(){var t,e;return[...null!==(e=null===(t=this.__container)||void 0===t?void 0:t.querySelectorAll(":not(.opacity-0)"))&&void 0!==e?e:[]].reverse()}__add(){const[t,e]=this.__stack;this.quantity>1?(t&&this.__setImageState(t,y.Previous),e&&(this.__setImageState(e,y.BeforeExit),e.ontransitionend=()=>e.remove()),this.__setImageState(this.__insertImage(y.BeforeEnter),y.Default)):t&&this.__setImageState(t,y.Default)}__remove(){const[t,e]=this.__stack;let i;if(this.quantity>0?(e&&this.__setImageState(e,y.Default),i=t):(t&&this.__setImageState(t,y.Excluded),i=e),i&&(this.__setImageState(i,y.BeforeEnter),i.ontransitionend=()=>i.remove()),this.quantity>1){const t=this.__insertImage(y.BeforeExit,this.__container.firstElementChild);this.__setImageState(t,y.Previous)}}__insertImage(t,e=null){const i=new Image;return i.src=this.image,i.setAttribute("part","picture"),i.addEventListener("error",(()=>i.src=f.placeholder)),this.__setImageState(i,t),this.__container.insertBefore(i,e),i}__setImageState(t,e){t.offsetHeight,t.className=["absolute inset-0 w-full h-full object-cover rounded transform transition duration-700 ease-out-back",["grayscale","shadow-m translate-y-half scale-110 rotate-12 opacity-0","shadow-m","blur-1 -rotate-12 opacity-25","blur-2 -rotate-24 opacity-0"][e]].join(" ")}}f.placeholder='data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="40" height="40" fill="%23E8E8E8"/%3E%3Cpath d="M31.5143 0H24.5476L0 24.5476V31.5143L11.7046 19.8097L11.9841 17.0782C12.0983 15.9624 13.0131 15.1154 14.1038 15.1154H15.7373V12.1923C15.7373 10.9815 16.6915 10 17.8687 10H21.5143L31.5143 0Z" fill="white"/%3E%3Cpath d="M11.5434 21.3852L0 32.9285V39.8953L11.5822 28.3131C11.172 27.8663 10.9438 27.2444 11.012 26.5782L11.5434 21.3852Z" fill="white"/%3E%3Cpath d="M12.4305 28.879L1.30951 40H8.27631L19.2763 29H13.1316C12.8853 29 12.6495 28.9573 12.4305 28.879Z" fill="white"/%3E%3Cpath d="M28.3113 19.965L28.0159 17.0782C27.9116 16.0591 27.1395 15.2642 26.1754 15.1341L40 1.3095V8.27627L28.3113 19.965Z" fill="white"/%3E%3Cpath d="M20.6905 29L9.69049 40H16.6572L27.9755 28.6817C27.6541 28.8832 27.2756 29 26.8684 29H20.6905Z" fill="white"/%3E%3Cpath d="M28.6572 28C28.9128 27.5952 29.0415 27.1003 28.988 26.5782L28.4426 21.2479L40 9.69053V16.6572L28.6572 28Z" fill="white"/%3E%3Cpath d="M25.0381 40H18.0715L40 18.0715V25.0381L25.0381 40Z" fill="white"/%3E%3Cpath d="M26.4524 40H33.4191L40 33.4191V26.4524L26.4524 40Z" fill="white"/%3E%3Cpath d="M40 40H34.8333L40 34.8333V40Z" fill="white"/%3E%3Cpath d="M16.1666 0H23.1334L0 23.1334V16.1666L16.1666 0Z" fill="white"/%3E%3Cpath d="M14.7524 0H7.78571L0 7.78573V14.7524L14.7524 0Z" fill="white"/%3E%3Cpath d="M0 0H6.37152L0 6.37151V0Z" fill="white"/%3E%3Cpath d="M21.467 11.4615H17.8687C17.4763 11.4615 17.1582 11.7887 17.1582 12.1923V15.1154H22.8418V12.1923C22.8418 11.7887 22.5237 11.4615 22.1313 11.4615H21.467Z" fill="white"/%3E%3Cpath d="M24.7798 15.1154H24.2627V12.1923C24.2627 11.227 23.6562 10.4075 22.8138 10.1148L32.9286 0H39.89L24.7798 15.1154Z" fill="white"/%3E%3C/svg%3E';let v,b,w,x,q,I,E,$,C=t=>t;class S extends(n(t)){constructor(){super(...arguments),this.empty=!1,this.data=[]}static get properties(){return e(e({},super.properties),{},{empty:{attribute:!1},data:{attribute:!1}})}static get styles(){return[a.styles,i(v||(v=C`.w-preview{width:5.5rem}.h-preview{height:5.5rem}.ease-out-back{transition-timing-function:cubic-bezier(.34,1.56,.64,1)}.grayscale{filter:grayscale()}.grid-2>:nth-child(1),.grid-3>:nth-child(1),.grid-4-plus>:nth-child(1),.grid-4>:nth-child(1){--tw-scale-x:calc(2.5 / 5.5);--tw-scale-y:var(--tw-scale-x)}.grid-1>:nth-child(2){opacity:0;--tw-translate-x:100%;--tw-translate-y:var(--tw-translate-x)}.grid-2>:nth-child(2),.grid-3>:nth-child(2),.grid-4-plus>:nth-child(2),.grid-4>:nth-child(2){--tw-scale-x:calc(2.5 / 5.5);--tw-scale-y:var(--tw-scale-x)}.grid-3>:nth-child(2),.grid-4-plus>:nth-child(2),.grid-4>:nth-child(2){transform-origin:top right}.grid-1>:nth-child(3),.grid-2>:nth-child(3),.grid-3>:nth-child(3),.grid-4-plus>:nth-child(3),.grid-4>:nth-child(3){--tw-scale-x:calc(2.5 / 5.5);--tw-scale-y:var(--tw-scale-x)}.grid-1>:nth-child(3),.grid-2>:nth-child(3){opacity:0;--tw-translate-y:100%}.grid-3>:nth-child(3){transform-origin:bottom right}.grid-4-plus>:nth-child(3),.grid-4>:nth-child(3){transform-origin:bottom left}.grid-1>:nth-child(4),.grid-2>:nth-child(4),.grid-3>:nth-child(4),.grid-4-plus>:nth-child(4),.grid-4>:nth-child(4){--tw-scale-x:calc(2.5 / 5.5);--tw-scale-y:var(--tw-scale-x)}.grid-1>:nth-child(4),.grid-2>:nth-child(4),.grid-3>:nth-child(4){opacity:0;transform-origin:bottom left;--tw-translate-x:100%}.grid-1>:nth-child(4)>:first-child,.grid-2>:nth-child(4)>:first-child,.grid-3>:nth-child(4)>:first-child,.grid-4>:nth-child(4)>:first-child{transform:perspective(250px) rotateX(-90deg)}.grid-4-plus>:nth-child(4)>:first-child,.grid-4>:nth-child(4)>:last-child{transition-delay:.15s;transition-timing-function:ease-out}.grid-4-plus>:nth-child(4)>:last-child,.grid-4>:nth-child(4)>:first-child{transition-timing-function:ease-in}.grid-4-plus>:nth-child(4)>:last-child{transform:perspective(250px) rotateX(90deg)}.grid-1>:nth-child(5),.grid-3>:nth-child(5),.grid-4-plus>:nth-child(5),.grid-4>:nth-child(5){opacity:0}.grid-1>:nth-child(5){--tw-translate-x:100%}.grid-2>:nth-child(5),.grid-3>:nth-child(5),.grid-4-plus>:nth-child(5),.grid-4>:nth-child(5){--tw-scale-x:calc(2.5 / 5.5);--tw-scale-y:var(--tw-scale-x)}.grid-3>:nth-child(5),.grid-4-plus>:nth-child(5),.grid-4>:nth-child(5){--tw-translate-y:-100%}.grid-1>:nth-child(6),.grid-4-plus>:nth-child(6),.grid-4>:nth-child(6){opacity:0}.grid-1>:nth-child(6){--tw-translate-y:100%}.grid-2>:nth-child(6),.grid-3>:nth-child(6),.grid-4-plus>:nth-child(6),.grid-4>:nth-child(6){--tw-scale-x:calc(2.5 / 5.5);--tw-scale-y:var(--tw-scale-x)}.grid-4-plus>:nth-child(6),.grid-4>:nth-child(6){--tw-translate-x:-100%}`))]}render(){const t=this.data.length,e="rounded bg-contrast-10",i="transition-all duration-700 ease-out-back transform absolute inset-0",r=this.empty?"grayscale":"",a=t>4?"grid-4-plus":`grid-${Math.max(1,t)}`,n=d({exportparts:"picture",class:"w-full h-full",".empty":this.empty}),[o,l,c,h]=this.data;return s(b||(b=C` <div class="${0} w-preview h-preview relative font-lumo"> <div class="${0} ${0} origin-top-left"> ${0} </div> <div class="${0} ${0} origin-bottom-right"> ${0} </div> <div class="${0} ${0} origin-top-right"> ${0} </div> <div class="${0} ${0} origin-bottom-right"> <div class="${0} flex text-body transition duration-150 absolute inset-0"> ${0} </div> <div class="transition duration-150 absolute inset-0"> ${0} </div> </div> <div class="${0} ${0} origin-top-right"></div> <div class="${0} ${0} origin-bottom-left"></div> </div> `),a,i,r,o?s(w||(w=C`<x-pic ...="${0}" .data="${0}"></x-pic>`),n,o):"",i,r,l?s(x||(x=C`<x-pic ...="${0}" .data="${0}"></x-pic>`),n,l):"",i,r,c?s(q||(q=C`<x-pic ...="${0}" .data="${0}"></x-pic>`),n,c):"",i,r,e,t>102?s(I||(I=C`<iron-icon icon="icons:more-horiz" class="m-auto w-xl h-xl"></iron-icon>`)):s(E||(E=C`<div class="m-auto text-xxxl">+${0}</div>`),t-3),h?s($||($=C`<x-pic ...="${0}" .data="${0}"></x-pic>`),n,h):"",i,e,i,e)}}let D,k,L=t=>t;class A extends S{static get scopedElements(){return{"x-pic":f}}}class N extends S{static get scopedElements(){return{"x-pic":A}}}class P extends(n(t)){constructor(){super(...arguments),this.quantity=0,this.items=[]}static get scopedElements(){return{"x-picture":f,"x-bundle-grid":N}}static get properties(){return{quantity:{attribute:!1},image:{attribute:!1},items:{attribute:!1}}}static get styles(){return a.styles}render(){const{quantity:t,image:e=""}=this,i=0===t,r=d({class:"w-full h-full",exportparts:"picture"});if(0===this.items.length)return s(D||(D=L`<x-picture ...="${0}" .data="${0}"></x-picture>`),r,{quantity:t,image:e});{const e=new Array(Math.max(1,t)).fill(this.items);return s(k||(k=L`<x-bundle-grid ...="${0}" .empty="${0}" .data="${0}"></x-bundle-grid>`),r,i,e)}}}class j extends o{static get properties(){return e(e({},super.properties),{},{open:{type:Object},signatures:{type:Object,converter:t=>{const e=JSON.parse(t);for(const t of Object.keys(e))64!=e[t].length&&console.error("There is something wrong with the signature. It should have 64 characters.");return e}}})}signedName(t){return this.signatures&&this.signatures[t]?`${t}||${this.signatures[t]}${this.isOpen(t)?"||open":""}`:t}isOpen(t){return!(!this.open||!this.open[t])}}let F,T,O,V,M,H,B,Z=t=>t;class R extends j{constructor(){super("items-form"),this.rel="product_item",this.readonly=!1,this.quantity=0,this.total=this.__computeTotalPrice(),this.currency="",this.isItem=!0,this.isChildItem=!1,this.pid=R.__newId(),this.__modified=!1,this.__childPrices=[],this.__images=[],this.__childrenCount=0,this.__itemDescription="",this.__handleQuantity={handleEvent:t=>{const e=Number(t.target.value);this.quantity=e,this.__modified=!0,this.__images=[this.getImageDescription()].concat(this.__images.slice(1,this.__images.length))}},this.__childItemsObserver=new MutationObserver(this.__observeItems.bind(this)),this.__childItemsObserver.observe(this,{childList:!0,attributes:!1,subtree:!0}),this.updateComplete.then((()=>{this.__setCode(),this.__acknowledgeChildItems(),this.__changedChildItem(),this.__isValid()||console.error("Invalid item",this.value)}))}static get styles(){return[super.styles,i(F||(F=Z`:host{--quantity-width:6.5rem;--preview-size:5.5rem;--threshold:20rem}.min-w-description::before{content:'';width:var(--threshold);display:block;overflow:hidden}.ml-description{--min-width:calc(var(--threshold) + var(--preview-size) + var(--lumo-space-l));--free-space:calc(100% - var(--min-width));--max-margin-left:calc(var(--preview-size) + var(--lumo-space-l));--final-margin-left:clamp(0rem, var(--free-space) * 999999999, var(--max-margin-left));margin-left:var(--final-margin-left)}.mr-quantity{--min-width:var(--threshold);--free-space:calc(100% - var(--min-width));--max-margin-right:calc(var(--quantity-width) + var(--lumo-space-l));--final-margin-right:clamp(0rem, var(--free-space) * 999999999, var(--max-margin-right));margin-right:var(--final-margin-right)}:host([data-bundled]:not(:last-of-type)) .separator::after{content:' ';display:block;position:absolute;width:100vw;border-bottom:solid thin var(--lumo-shade-10pct);left:0;bottom:0}.w-quantity{width:var(--quantity-width)}.w-preview{width:var(--preview-size)}.h-preview{height:var(--preview-size)}`))]}static get scopedElements(){return{"vaadin-integer-field":customElements.get("vaadin-integer-field"),"x-error-screen":h,"x-preview":P,"x-i18n":l}}static get properties(){return e(e({},super.properties),{},{__modified:{},readonly:{type:Boolean,reflect:!0},currency:{type:String},category:{type:String},code:{type:String,reflect:!0},expires:{type:String},height:{type:Number},image:{type:String},length:{type:Number},name:{type:String},parent_code:{type:String},price:{type:Number},quantity:{type:Number,reflect:!0},quantity_max:{type:Number},quantity_min:{type:String},shipto:{type:String},total:{type:Number,reflect:!0,attribute:"total"},url:{type:String},value:{type:Object},weight:{type:Number},width:{type:Number},__childPrices:{},__childrenCount:{},__images:{},alt:{type:String},isChildItem:{type:Boolean,reflect:!0,attribute:"data-bundled"},isItem:{type:Boolean,reflect:!0,attribute:"data-item"},open:{type:Object},pid:{type:Number,reflect:!0},items:{type:Array}})}get items(){const t=[];return this.__onEachChildItem([e=>t.push(e.value)]),t}set items(t){this.__createItems(t)}get value(){const t={};for(let e=0;e<this.attributes.length;e++)t[this.attributes[e].name]=this.attributes[e].value;return t.items=this.items,t}set value(t){this.__itemDescription="";for(const e in t){let i="";if("description"!=e){if("object"==typeof t[e])i=JSON.stringify(t[e]);else{const s=e;(t[s]&&"undefined"!==t[s]||0===t[s])&&(i=t[e].toString())}this.setAttribute(e,t[e]?i:"")}else this.__itemDescription=t[e]}}updated(t){t.forEach(((t,e)=>{"__itemDescription"!=e&&"isChildItem"!=e||this.__updateDescriptionEl()})),this.__setTotalPrice(),this.dispatchEvent(new Event("change"))}render(){var t;if(!this.__isValid())return s(T||(T=Z`<x-error-screen type="setup_needed" class="relative"></x-error-screen>`));const e=`font-lumo text-body text-s leading-m transition duration-100 ${this.quantity?"":"removed opacity-50"}`;if(this.isChildItem)return s(O||(O=Z` <article part="item" class="py-s w-full relative separator item-summary flex justify-between ${0}"> <div class="description flex-1"> <h1 class="text-header font-medium">${0}</h1> <section class="description text-secondary"> <slot></slot> </section> </div> ${0} </article> `),e,this.name,this.quantity<2?"":s(V||(V=Z` <section class="quantity font-medium text-tertiary whitespace-nowrap"> ${0} </section> `),this._t("item.items",{quantity:this.quantity})));{const i=(null!==(t=this.price)&&void 0!==t?t:0)+this.__childPrices.reduce(((t,e)=>t+e),0),r=this.__translateAmount(i*this.quantity),a=this.__translateAmount(i);return s(M||(M=Z` <article part="item" class="p-l relative item ${0} ${0}"> <x-preview class="preview float-left w-preview h-preview mr-l mb-l" exportparts="picture" .image="${0}" .quantity="${0}" .items="${0}"> </x-preview> <section class="description min-w-description ml-description"> <h1 class="text-header font-medium text-l leading-none mr-quantity mb-s"> ${0} </h1> <div class="item-description text-secondary mr-quantity mb-s"> <slot></slot> </div> <div class="child-items mb-s"> <slot name="items"></slot> </div> ${0} </section> <section class="quantity w-quantity absolute top-0 right-0 m-l"> <vaadin-integer-field class="w-full p-0" name="quantity" @change="${0}" value="${0}" min="0" has-controls ?readonly="${0}"> </vaadin-integer-field> ${0} </section> </article> `),e,this.__modified?"modified":"",this.image,this.quantity,[...this.querySelectorAll("[data-bundled]")].map((t=>{var e;return{quantity:t.quantity,image:null!==(e=t.image)&&void 0!==e?e:""}})),this.name,a?s(H||(H=Z`<div class="font-medium price text-l">${0}</div>`),a):"",this.__handleQuantity,this.quantity,this.readonly,this.quantity>1?s(B||(B=Z` <x-i18n .ns="${0}" .lang="${0}" .opts="${0}" class="price-total text-secondary text-xs text-center block mt-xs" key="price.total"> </x-i18n> `),this.ns,this.lang,{amount:r}):"")}}getImageDescription(){return{src:this.image,alt:this.alt,quantity:this.quantity}}signedName(t){const e=super.signedName(t);return`${this.pid.toString()}:${e}`}static __newId(){const t=R.__existingIds.reduce(((t,e)=>e>t?e:t),0)+1;return R.__existingIds.push(t),t}__updateDescriptionEl(){if(this.__itemDescription){let t=this.shadowRoot.querySelector("data-item-description");t||(t=document.createElement("p"),t.dataset.itemDescription="true",this.__addSlottedEl(t)),t.innerText=this.__itemDescription}else{const t=this.shadowRoot.querySelector("data-item-description");t&&t.remove()}}__addSlottedEl(t){const e=this.shadowRoot.querySelector("article");e&&e.appendChild(t)}__setCode(){this.code||(this.code=`RAND${Math.random()}`)}__createItems(t){t.forEach((t=>{const e=document.createElement(this.tagName);e.value=t,e.currency=this.currency,e.__computeTotalPrice(),this.__acknowledgeItem(e),this.appendChild(e)}))}__setTotalPrice(){this.total=this.__computeTotalPrice()}__computeTotalPrice(){if(!this.__childPrices)return this.price?this.price*this.quantity:0;let t=0;return this.__childPrices.forEach((e=>{t+=e})),t+=this.price,t*=this.quantity,t}__isValid(){const t=[];return this.name&&this.name.length||t.push("The name attribute of an item is required."),this.price||0===this.price||t.push("The price attribute of an item is required."),this.price&&this.price<0&&t.push("Item added with negative price."),this.quantity_min&&this.quantity&&this.quantity<this.quantity_min&&t.push("Quantity amount is less than minimum quantity."),this.quantity_max&&this.quantity&&this.quantity>this.quantity_max&&t.push("Quantity amount is more than maximum quantity."),console.error(...t),!t.length}__translateAmount(t){return this.currency?t.toLocaleString(this.lang,{minimumFractionDigits:2,currency:this.currency,style:"currency"}):""}__observeItems(t){t.forEach((t=>{"childList"==t.type&&t.addedNodes.forEach((t=>{t.nodeType===Node.DOCUMENT_NODE&&this.__acknowledgeItem(t)}))})),this.__setTotalPrice()}__acknowledgeChildItems(){var t;null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("[data-item]").forEach((t=>this.__acknowledgeItem(t))),this.querySelectorAll("[data-item]").forEach((t=>this.__acknowledgeItem(t)))}__acknowledgeItem(t){t.addEventListener("change",this.__changedChildItem.bind(this)),t.currency=this.currency,t.isItem=!1,t.isChildItem=!0,this.code&&(t.parent_code=this.code)}__changedChildItem(){const t=[],e=[];let i=0;this.__onEachChildItem([e=>{void 0!==e.total&&t.push(e.total)},t=>{e.push(t.getImageDescription())},()=>i+=1]),this.image&&0===e.length&&e.push(this.getImageDescription()),this.__childPrices=t,this.__images=e,this.__childrenCount=i,this.__setTotalPrice()}__onEachChildItem(t){const e=this.querySelectorAll("[data-bundled]");for(const i of e)for(const e of t)e(i)}}R.__existingIds=[];let z,Q,W,J,U,X,G=t=>t;class K extends j{constructor(){super("items-form"),this.readonly=!1,this.target="_top",this.cart="checkout",this.sub_modify="replace",this.sub_restart="auto",this.frequencies=[],this.handleSubmit={handleEvent:()=>{null!==this.__data&&this.dispatchEvent(new m(this.__data))&&this.shadowRoot.querySelector("form").submit()}},this.__hasValidItems=!1,this.__total=0,this.__handleFrequency={handleEvent:t=>{const e=t.detail.replace(/([wydm])\w*/,"$1").replace(/ /g,"").replace(/^0/,"");K.__validFrequency(e)?this.sub_frequency=e:this.sub_frequency="",this.__updateData()}},this.__data=new FormData,this.__childItemsObserver=new MutationObserver(this.__observeChildren.bind(this)),this.__childItemsObserver.observe(this,{childList:!0,attributes:!1,subtree:!0}),this.updateComplete.then((()=>{this.__acknowledgeItemElements(),this.__computeTotalPrice(),this.__updateData()}))}static get scopedElements(){return{"x-error-screen":h,"vaadin-button":customElements.get("vaadin-button"),"x-dropdown":c,"x-item":R}}static get properties(){return e(e({},super.properties),{},{currency:{type:String},readonly:{type:Boolean},cart:{type:String,converter:t=>t&&!["checkout","add"].includes(t)?null:t},target:{type:String},store:{type:String,attribute:"store"},sub_frequency:{type:String},sub_startdate:{type:String,converter:t=>K.__validDate(t)?t:(console.error("Invalid start date",t),"")},sub_enddate:{type:String,converter:t=>K.__validDateFuture(t)?t:(console.error("Invalid end date",t),"")},sub_token:{type:String},sub_modify:{type:String,converter:t=>""===t||"append"===t?"":"replace"},sub_restart:{type:String,converter:t=>"true"===t?t:"auto"},frequencies:{converter:t=>{if(!t)return[];const e=JSON.parse(t);if(!Array.isArray(e))return console.error("Invalid frequency","Frequency options must be an array."),[];for(const t of e)if(!K.__validFrequency(t))return console.error("Invalid frequency","Invalid frequency option.\n Please, check https://wiki.foxycart.com/v/2.0/products#subscription_product_options for possible values.\n Each frequency must be a in the format:\n - 1d (a number followed by d, for day)\n - 1w (a number followed by w, for week)\n - 1m (a number followed by m, for month)\n - 1y (a number followed by y, for year)\n or .5m (no other decimals are allowed, and this is only for months)\n ",t),[];return e.filter(K.__validFrequency)}},items:{type:Array},__hasValidItems:{attribute:!1},__total:{attribute:!1},__data:{attribute:!1}})}get items(){const t=[];return this.__itemElements.forEach((e=>{const i=new Proxy(e,{set:function(t,e,i){const s=Object.keys(t.value);return!("string"!=typeof e||!s.includes(e))&&(t[e]=i,!0)},get:function(t,e){return t.value[e]}});t.push(i)})),t}set items(t){this.__removeItems(),this.__createItemsFromItemArray(t)}get total(){return this.__total}render(){var t;return this.store&&this.currency?s(Q||(Q=G` <div> <form class="overflow-hidden" method="POST" target="${0}" action="https://${0}/cart" data-testid="form" class="hidden" hidden> ${0} </form> <section class="items"> <slot></slot> </section> ${0} </div> `),this.target,this.store,this.__data?s(W||(W=G` ${0}`),[...this.__data.entries()].map((([t,e])=>s(J||(J=G`<input type="hidden" name="${0}" value="${0}">`),t,e)))):"",this.readonly?"":s(U||(U=G` <section class="actions flex flex-wrap justify-end m-m"> ${0} <vaadin-button class="m-s w-full sm-w-auto" theme="primary" data-testid="submit" ?disabled="${0}" @click="${0}"> <span class="total"> ${0} </span> </vaadin-button> </section> `),this.frequencies&&this.frequencies.length?s(X||(X=G` <x-dropdown type="text" name="frequency" class="subscription m-s w-full sm-w-auto" lang="${0}" .value="${0}" .items="${0}" .getText="${0}" @change="${0}"> </x-dropdown> `),this.lang,null!==(t=this.sub_frequency)&&void 0!==t?t:"0",this.frequencies.concat(["0"]),this.__translateFrequency.bind(this),this.__handleFrequency):"",!this.__hasValidItems,this.handleSubmit,this.__submitBtnText(this.__translateAmount(this.total)))):s(z||(z=G`<x-error-screen type="setup_needed" class="relative"></x-error-screen>`))}addItems(t){for(const e of t){const t=this.createItem(e);this.appendChild(t),this.__acknowledgeItemElement(t)}}removeItems(t){this.__removeItems((e=>t.includes(e.pid)))}updated(){this.dispatchEvent(new u(this.__data))}createItem(t){const e=this.constructor.getScopedTagName("x-item"),i=document.createElement(e);return i.value=t,i.currency=this.currency,i.readonly=this.readonly,i}__submitBtnText(t){if(this.sub_frequency&&"0"!=this.sub_frequency){const e=r(this.sub_frequency);return 1===e.count?this._t("checkout.subscribe_single_unit",{value:t,period:this._t(e.units).toLowerCase()}):this._t("checkout.subscribe_muiltiple_units",{value:t,period:this.__translateFrequency(this.sub_frequency).toLowerCase()})}return this._t("checkout.buy",{value:t})}get __itemElements(){return this.querySelectorAll("[data-item]")}__createItemsFromItemArray(t){this.addItems(t)}__removeItems(t=(()=>!0)){this.__itemElements.forEach((e=>{t(e)&&e.remove()}))}__addSignature(t,e,i){return`${t}||${e}${i?"||open":""}`}__formDataFill(t){let e=0;return this.__itemElements.forEach((i=>{e+=this.__formDataAddItem(t,i)})),this.__formDataAddCartWideSubscriptionFields(t),e}__formDataCustomInputs(t){this.querySelectorAll("[name]").forEach((e=>{const i=e;"INPUT"==i.tagName&&["checkbox","radio"].includes(i.type)&&!i.checked||"OPTION"!=i.tagName&&i.value&&["number","string"].includes(typeof i.value)&&t.set(i.name,i.value)}))}__isAttributeReserved(t){return["alt","currency","description","isChildren","isItem","items","open","pid","signatures","slot","total"].includes(t)}__formDataAddItem(t,e,i=null){let s=0;if(this.__validItem(e)){if(!e.value.pid)throw new Error("Attempt to convert a item without a propper ID");i&&i.getAttribute("code")&&e.setAttribute("parent_code",i.getAttribute("code"));for(let s=0;s<e.attributes.length;s++){const r=e.attributes[s];if(!this.__isAttributeReserved(r.name)&&!r.name.startsWith("data-")){let s=e[r.name];e.code&&["string","number"].includes(typeof s)&&(i&&"quantity"==r.name&&(s=Number(r.value)*i.quantity),t.set(e.signedName(r.name),s.toString()))}}s+=1,this.__formDataAddSubscriptionFields(t,e)}const r=e.querySelectorAll("[data-bundled]");if(r&&e.quantity>0)for(const i of r)s+=this.__formDataAddItem(t,i,e);return s}__formDataAddSubscriptionFields(t,e){if(this.sub_frequency)for(const i of["sub_frequency","sub_startdate","sub_enddate"])this[i]&&t.set(e.signedName(i),this[i])}__formDataAddCartWideSubscriptionFields(t){this.sub_frequency&&(this.sub_token&&t.set(this.signedName("sub_token"),this.sub_token),t.set(this.signedName("sub_modify"),this.sub_modify),t.set(this.signedName("sub_restart"),this.sub_restart))}__formDataAddCartFields(t){this.cart?t.set("cart",this.cart):t.delete("cart")}static __validDate(t){return null!=t&&(t.match(/^(\d{1,2}|\d{8})$/)?!(t.match(/^\d{2}$/)&&Number(t)>31):!(t.match(/^\.5m/)||!K.__validFrequency(t)))}static __validDateFuture(t){let e=!1;if(K.__validDate(t))if(t.match(/^\d{8}/)){e=(new Date).toISOString().replace(/(-|T.*)/g,"")<=t}else e=!0;return e}static __validFrequency(t){return!!t&&!!t.match(/^(\.5m|\d+[dwmy])$/)}__observeChildren(t){t.forEach((t=>{"childList"==t.type&&t.addedNodes.forEach((t=>{t.addEventListener("change",this.__itemChange.bind(this))}))})),this.__acknowledgeItemElements(),this.__computeTotalPrice(),this.__updateData()}__itemChange(){this.__computeTotalPrice(),this.__updateData()}__computeTotalPrice(){let t=0;this.__itemElements.forEach((e=>{const i=e;i.total&&(t+=Number(i.total))})),this.__total=Number(t.toFixed(2))}__acknowledgeItemElements(){this.__itemElements.forEach((t=>{const e=t;this.__acknowledgeItemElement(e)}))}__acknowledgeItemElement(t){t.addEventListener("change",this.__itemChange.bind(this)),t.currency=this.currency}__validItem(t){const e=t.getAttribute("pid"),i=Number(t.getAttribute("quantity")),s=Number(t.getAttribute("price"));return!!(e&&i>0&&s>=0)}__translateFrequency(t){if(t.startsWith("0"))return this._t("frequency_once");if(".5m"===t)return this._t("frequency_0_5m");const{count:e,units:i}=r(t);return this._t("frequency",{units:this._t(i,{count:e}),count:e})}__translateAmount(t){return t.toLocaleString(this.lang,{minimumFractionDigits:2,currency:this.currency,style:"currency"})}__updateData(){this.__data=null;if(!this.shadowRoot.querySelector("form"))return;const t=new FormData,e=this.__formDataFill(t);this.__hasValidItems=!!e,this.__formDataAddCartFields(t),this.__formDataCustomInputs(t),this.__data=t}}customElements.define("foxy-items-form",K),customElements.define("foxy-item",R);export{K as I,P,R as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,g as t,a as r,b as o,d as a,r as n,i,e as s,t as l,m as c,T as u,f as p,j as d,L as m,_ as f}from"./shared-63eaded9.js";function g(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}function h(e){return h="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},h(e)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach((function(t){v(e,t,r[t])}))}return e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function x(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var k=e((function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),S=t(k);function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function R(e,t){return R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},R(e,t)}function C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&R(e,t)}var E={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},_=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y(this,e),this.init(t,r)}return x(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||E,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,b({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),N=function(){function e(){y(this,e),this.observers={}}return x(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach((function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(this.observers[e]){var a=[].concat(this.observers[e]);a.forEach((function(e){e.apply(void 0,r)}))}if(this.observers["*"]){var n=[].concat(this.observers["*"]);n.forEach((function(t){t.apply(t,[e].concat(r))}))}}}]),e}();function P(){var e,t,r=new Promise((function(r,o){e=r,t=o}));return r.resolve=e,r.reject=t,r}function z(e){return null==e?"":""+e}function T(e,t,r){e.forEach((function(e){t[e]&&(r[e]=t[e])}))}function M(e,t,r){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var n="string"!=typeof t?[].concat(t):t.split(".");n.length>1;){if(a())return{};var i=o(n.shift());!e[i]&&r&&(e[i]=new r),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return a()?{}:{obj:e,k:o(n.shift())}}function A(e,t,r){var o=M(e,t,Object);o.obj[o.k]=r}function F(e,t){var r=M(e,t),o=r.obj,a=r.k;if(o)return o[a]}function I(e,t,r){var o=F(e,r);return void 0!==o?o:F(t,r)}function U(e,t,r){for(var o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?"string"==typeof e[o]||e[o]instanceof String||"string"==typeof t[o]||t[o]instanceof String?r&&(e[o]=t[o]):U(e[o],t[o],r):e[o]=t[o]);return e}function H(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var q={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function V(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return q[e]})):e}var D="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$=function(e){function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return y(this,t),r=L(this,j(t).call(this)),D&&N.call(O(r)),r.data=e||{},r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return C(t,N),x(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,n=[e,t];return r&&"string"!=typeof r&&(n=n.concat(r)),r&&"string"==typeof r&&(n=n.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(n=e.split(".")),F(this.data,n)}},{key:"addResource",value:function(e,t,r,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},n=this.options.keySeparator;void 0===n&&(n=".");var i=[e,t];r&&(i=i.concat(n?r.split(n):r)),e.indexOf(".")>-1&&(o=t,t=(i=e.split("."))[1]),this.addNamespaces(t),A(this.data,i,o),a.silent||this.emit("added",e,t,r,o)}},{key:"addResources",value:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in r)"string"!=typeof r[a]&&"[object Array]"!==Object.prototype.toString.apply(r[a])||this.addResource(e,t,a,r[a],{silent:!0});o.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,o,a){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(".")>-1&&(o=r,r=t,t=(i=e.split("."))[1]),this.addNamespaces(t);var s=F(this.data,i)||{};o?U(s,r,a):s=b({},s,r),A(this.data,i,s),n.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?b({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),B={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,o,a){var n=this;return e.forEach((function(e){n.processors[e]&&(t=n.processors[e].process(t,r,o,a))})),t}},K={},W=function(e){function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y(this,t),r=L(this,j(t).call(this)),D&&N.call(O(r)),T(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,O(r)),r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=_.create("translator"),r}return C(t,N),x(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS;if(r&&e.indexOf(r)>-1){var n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:a};var i=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(i[0])>-1)&&(a=i.shift()),e=i.join(o)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,r,o){var a=this;if("object"!==h(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=this.extractFromKey(e[e.length-1],r),s=i.key,l=i.namespaces,c=l[l.length-1],u=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var m=this.resolve(e,r),f=m&&m.res,g=m&&m.usedKey||s,v=m&&m.exactUsedKey||s,y=Object.prototype.toString.apply(f),w=["[object Number]","[object Function]","[object RegExp]"],x=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(k&&f&&S&&w.indexOf(y)<0&&("string"!=typeof x||"[object Array]"!==y)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,f,r):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(n){var O="[object Array]"===y,L=O?[]:{},j=O?v:g;for(var R in f)if(Object.prototype.hasOwnProperty.call(f,R)){var C="".concat(j).concat(n).concat(R);L[R]=this.translate(C,b({},r,{joinArrays:!1,ns:l})),L[R]===C&&(L[R]=f[R])}f=L}}else if(k&&"string"==typeof x&&"[object Array]"===y)(f=f.join(x))&&(f=this.extendTranslation(f,e,r,o));else{var E=!1,_=!1,N=void 0!==r.count&&"string"!=typeof r.count,P=t.hasDefaultValue(r),z=N?this.pluralResolver.getSuffix(u,r.count):"",T=r["defaultValue".concat(z)]||r.defaultValue;!this.isValidLookup(f)&&P&&(E=!0,f=T),this.isValidLookup(f)||(_=!0,f=s);var M=P&&T!==f&&this.options.updateMissing;if(_||E||M){if(this.logger.log(M?"updateKey":"missingKey",u,c,s,M?T:f),n){var A=this.resolve(s,b({},r,{keySeparator:!1}));A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var U=0;U<I.length;U++)F.push(I[U]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(r.lng||this.language):F.push(r.lng||this.language);var H=function(e,t,o){a.options.missingKeyHandler?a.options.missingKeyHandler(e,c,t,M?o:f,M,r):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,c,t,M?o:f,M,r),a.emit("missingKey",e,c,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?F.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){H([e],s+t,r["defaultValue".concat(t)]||T)}))})):H(F,s,T))}f=this.extendTranslation(f,e,r,m,o),_&&f===s&&this.options.appendNamespaceToMissingKey&&(f="".concat(c,":").concat(s)),_&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:"extendTranslation",value:function(e,t,r,o,a){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(b({},r,{interpolation:b({},this.options.interpolation,r.interpolation)}));var i,s=r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=e.match(this.interpolator.nestingRegexp);i=l&&l.length}var c=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(c=b({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,r.lng||this.language,r),s){var u=e.match(this.interpolator.nestingRegexp);i<(u&&u.length)&&(r.nest=!1)}!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return a&&a[0]===o[0]&&!r.context?(n.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(t[0])),null):n.translate.apply(n,o.concat([t]))}),r)),r.interpolation&&this.interpolator.reset()}var p=r.postProcess||this.options.postProcess,d="string"==typeof p?[p]:p;return null!=e&&d&&d.length&&!1!==r.applyPostProcessor&&(e=B.handle(d,e,t,this.options&&this.options.postProcessPassResolved?b({i18nResolved:o},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,o,a,n,i=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!i.isValidLookup(t)){var l=i.extractFromKey(e,s),c=l.key;r=c;var u=l.namespaces;i.options.fallbackNS&&(u=u.concat(i.options.fallbackNS));var p=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,m=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach((function(e){i.isValidLookup(t)||(n=e,!K["".concat(m[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(n)&&(K["".concat(m[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(r,'" for languages "').concat(m.join(", "),'" won\'t get resolved as namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach((function(r){if(!i.isValidLookup(t)){a=r;var n,l,u=c,m=[u];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(m,c,r,e,s);else p&&(n=i.pluralResolver.getSuffix(r,s.count)),p&&d&&m.push(u+n),d&&m.push(u+="".concat(i.options.contextSeparator).concat(s.context)),p&&m.push(u+=n);for(;l=m.pop();)i.isValidLookup(t)||(o=l,t=i.getResource(r,e,l,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:o,usedLng:a,usedNS:n}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,o):this.resourceStore.getResource(e,t,r,o)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}]),t}();function X(e){return e.charAt(0).toUpperCase()+e.slice(1)}var J=function(){function e(t){y(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_.create("languageUtils")}return x(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=X(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=X(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=X(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var o=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(o)||(t=o)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var o=r.getLanguagePartFromCode(e);if(r.isSupportedCode(o))return t=o;t=r.options.supportedLngs.find((function(e){if(0===e.indexOf(o))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],n=function(e){e&&(r.isSupportedCode(e)?a.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):"string"==typeof e&&n(this.formatLanguageCode(e)),o.forEach((function(e){a.indexOf(e)<0&&n(r.formatLanguageCode(e))})),a}}]),e}(),Y=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],G={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function Q(){var e={};return Y.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:G[t.fc]}}))})),e}var Z=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y(this,e),this.languageUtils=t,this.options=r,this.logger=_.create("pluralResolver"),this.rules=Q()}return x(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,r=this.getRule(e);return r?r.numbers.map((function(r){return t.getSuffix(e,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=this,o=this.getRule(e);if(o){var a=o.noAbs?o.plurals(t):o.plurals(Math.abs(t)),n=o.numbers[a];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]&&(2===n?n="plural":1===n&&(n=""));var i=function(){return r.options.prepend&&n.toString()?r.options.prepend+n.toString():n.toString()};return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?"_plural_".concat(n.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]?i():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),ee=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};y(this,e),this.logger=_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return x(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:V,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?H(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?H(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?H(t.nestingPrefix):t.nestingPrefixEscaped||H("$t("),this.nestingSuffix=t.nestingSuffix?H(t.nestingSuffix):t.nestingSuffixEscaped||H(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,o){var a,n,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var a=I(t,l,e);return s.alwaysFormat?s.format(a,void 0,r):a}var n=e.split(s.formatSeparator),i=n.shift().trim(),c=n.join(s.formatSeparator).trim();return s.format(I(t,l,i),c,r,o)};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(i=0;a=t.regex.exec(e);){if(void 0===(n=u(a[1].trim())))if("function"==typeof p){var r=p(e,a,o);n="string"==typeof r?r:""}else{if(d){n=a[0];continue}s.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(e)),n=""}else"string"==typeof n||s.useRawValueToEscape||(n=z(n));if(e=e.replace(a[0],t.safeValue(n)),t.regex.lastIndex=0,++i>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,o,a=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=b({},n);function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var o=e.split(new RegExp("".concat(r,"[ ]*{"))),a="{".concat(o[1]);e=o[0],a=(a=this.interpolate(a,i)).replace(/'/g,'"');try{i=JSON.parse(a),t&&(i=b({},t,i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(a)}return delete i.defaultValue,e}for(i.applyPostProcessor=!1,delete i.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].includes(this.formatSeparator)&&!/{.*}/.test(r[1])){var u=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=u.shift(),l=u,c=!0}if((o=t(s.call(this,r[1].trim(),i),i))&&r[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=z(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce((function(e,t){return a.format(e,t,n.lng,n)}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),e}();var te=function(e){function t(e,r,o){var a,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return y(this,t),a=L(this,j(t).call(this)),D&&N.call(O(a)),a.backend=e,a.store=r,a.services=o,a.languageUtils=o.languageUtils,a.options=n,a.logger=_.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,n.backend,n),a}return C(t,N),x(t,[{key:"queueLoad",value:function(e,t,r,o){var a=this,n=[],i=[],s=[],l=[];return e.forEach((function(e){var o=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&a.store.hasResourceBundle(e,t)?a.state[s]=2:a.state[s]<0||(1===a.state[s]?i.indexOf(s)<0&&i.push(s):(a.state[s]=1,o=!1,i.indexOf(s)<0&&i.push(s),n.indexOf(s)<0&&n.push(s),l.indexOf(t)<0&&l.push(t)))})),o||s.push(e)})),(n.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:o}),{toLoad:n,pending:i,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,r){var o=e.split("|"),a=o[0],n=o[1];t&&this.emit("failedLoading",a,n,t),r&&this.store.addResourceBundle(a,n,r),this.state[e]=t?-1:2;var i={};this.queue.forEach((function(r){var o,s,l,c,u,p;o=r.loaded,s=n,c=M(o,[a],Object),u=c.obj,p=c.k,u[p]=u[p]||[],l&&(u[p]=u[p].concat(s)),l||u[p].push(s),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(r.pending,e),t&&r.errors.push(t),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(e){i[e]||(i[e]=[]),r.loaded[e].length&&r.loaded[e].forEach((function(t){i[e].indexOf(t)<0&&i[e].push(t)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,i=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,t,(function(s,l){s&&l&&a<5?setTimeout((function(){o.read.call(o,e,t,r,a+1,2*n,i)}),n):i(s,l)})):i(null,{})}},{key:"prepareLoading",value:function(e,t){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var n=this.queueLoad(e,t,o,a);if(!n.toLoad.length)return n.pending.length||a(),null;n.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),a=o[0],n=o[1];this.read(a,n,"read",void 0,void 0,(function(o,i){o&&t.logger.warn("".concat(r,"loading namespace ").concat(n," for language ").concat(a," failed"),o),!o&&i&&t.logger.log("".concat(r,"loaded namespace ").concat(n," for language ").concat(a),i),t.loaded(e,o,i)}))}},{key:"saveMissing",value:function(e,t,r,o,a){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,o,null,b({},n,{isUpdate:a})),e&&e[0]&&this.store.addResource(e[0],t,r,o))}}]),t}();function re(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===h(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===h(e[2])||"object"===h(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function oe(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ae(){}var ne=new(function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(y(this,t),e=L(this,j(t).call(this)),D&&N.call(O(e)),e.options=oe(r),e.services={},e.logger=_,e.modules={external:[]},o&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,o),L(e,O(e));setTimeout((function(){e.init(r,o)}),0)}return e}return C(t,N),x(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(r=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=b({},re(),this.options,oe(t)),this.format=this.options.interpolation.format,r||(r=ae),!this.options.isClone){this.modules.logger?_.init(o(this.modules.logger),this.options):_.init(null,this.options);var a=new J(this.options);this.store=new $(this.options.resources,this.options);var n=this.services;n.logger=_,n.resourceStore=this.store,n.languageUtils=a,n.pluralResolver=new Z(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),n.interpolator=new ee(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new te(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];e.emit.apply(e,[t].concat(o))})),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new W(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];e.emit.apply(e,[t].concat(o))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var i=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);i.length>0&&"dev"!==i[0]&&(this.options.lng=i[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var c=P(),u=function(){var t=function(t,o){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(o),r(t,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae,o=r,a="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return o();var n=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){n.indexOf(e)<0&&n.push(e)}))};if(a)i(a);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return i(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(n,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(e,t,r){var o=P();return e||(e=this.languages),t||(t=this.options.ns),r||(r=ae),this.services.backendConnector.reload(e,t,(function(e){o.resolve(),r(e)})),o}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&B.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var o=P();this.emit("languageChanging",e);var a=function(e){var a="string"==typeof e?e:r.services.languageUtils.getBestMatchFromCodes(e);a&&(r.language||(r.language=a,r.languages=r.services.languageUtils.toResolveHierarchy(a)),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(e){!function(e,a){a?(r.language=a,r.languages=r.services.languageUtils.toResolveHierarchy(a),r.translator.changeLanguage(a),r.isLanguageChangingTo=void 0,r.emit("languageChanged",a),r.logger.log("languageChanged",a)):r.isLanguageChangingTo=void 0,o.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t){var r=this,o=function e(t,o){var a;if("object"!==h(o)){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];a=r.options.overloadTranslationOptionHandler([t,o].concat(i))}else a=b({},o);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,r.t(t,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.languages[0],a=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var i=function(e,r){var o=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===o||2===o};if(r.precheck){var s=r.precheck(this,i);if(void 0!==s)return s}return!!this.hasResourceBundle(o,e)||(!this.services.backendConnector.backend||!(!i(o,e)||a&&!i(n,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,o=P();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){o.resolve(),t&&t(e)})),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=P();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],a=e.filter((function(e){return o.indexOf(e)<0}));return a.length?(this.options.preload=o.concat(a),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(e,r)}},{key:"cloneInstance",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae,a=b({},this.options,r,{isClone:!0}),n=new t(a),i=["store","services","language"];return i.forEach((function(t){n[t]=e[t]})),n.services=b({},this.services),n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n.translator=new W(n.services,n.options),n.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n.emit.apply(n,[e].concat(r))})),n.init(a,o),n.translator.options=n.options,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}}]),t}());function ie(e){return ie="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},ie(e)}var se=[],le=se.forEach,ce=se.slice;function ue(e){return le.call(ce.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}function pe(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":ie(XMLHttpRequest))}var de,me,fe,ge=e((function(e,t){var n;if("function"==typeof fetch&&(void 0!==r&&r.fetch?n=r.fetch:"undefined"!=typeof window&&window.fetch&&(n=window.fetch)),void 0!==o&&("undefined"==typeof window||void 0===window.document)){var i=n||a;i.default&&(i=i.default),t.default=i,e.exports=t.default}})),he=Object.freeze(g({__proto__:null,default:ge},[ge]));function ve(e){return ve="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},ve(e)}"function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?de=global.fetch:"undefined"!=typeof window&&window.fetch&&(de=window.fetch)),pe&&("undefined"!=typeof global&&global.XMLHttpRequest?me=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(me=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?fe=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(fe=window.ActiveXObject)),de||!he||me||fe||(de=ge||he),"function"!=typeof de&&(de=void 0);var be=function(e,t){if(t&&"object"===ve(t)){var r="";for(var o in t)r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]);if(!r)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+r.slice(1)}return e},ye=function(e,t,r,o){return"function"==typeof r&&(o=r,r=void 0),o=o||function(){},de?function(e,t,r,o){e.queryStringParams&&(t=be(t,e.queryStringParams));var a=ue({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);r&&(a["Content-Type"]="application/json"),de(t,ue({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:a},"function"==typeof e.requestOptions?e.requestOptions(r):e.requestOptions)).then((function(e){if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then((function(t){o(null,{status:e.status,data:t})})).catch(o)})).catch(o)}(e,t,r,o):pe||"function"==typeof ActiveXObject?function(e,t,r,o){r&&"object"===ve(r)&&(r=be("",r).slice(1)),e.queryStringParams&&(t=be(t,e.queryStringParams));try{var a;(a=me?new me:new fe("MSXML2.XMLHTTP.3.0")).open(r?"POST":"GET",t,1),e.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!e.withCredentials,r&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var n=e.customHeaders;if(n="function"==typeof n?n():n)for(var i in n)a.setRequestHeader(i,n[i]);a.onreadystatechange=function(){a.readyState>3&&o(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(r)}catch(e){console&&console.log(e)}}(e,t,r,o):void 0};function we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var ke=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,r){return function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t,r||"")},request:ye,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Se=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};we(this,e),this.services=t,this.options=r,this.allOptions=o,this.type="backend",this.init(t,r,o)}var t,r,o;return t=e,r=[{key:"init",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=ue(r,this.options||{},ke()),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,r){this._readAny(e,e,t,t,r)}},{key:"read",value:function(e,t,r){this._readAny([e],e,[t],t,r)}},{key:"_readAny",value:function(e,t,r,o,a){var n,i=this,s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,r)),(s=function(e){return!!e&&"function"==typeof e.then}(n=s)?n:Promise.resolve(n)).then((function(n){var s=i.services.interpolator.interpolate(n,{lng:e.join("+"),ns:r.join("+")});i.loadUrl(s,a,t,o)}))}},{key:"loadUrl",value:function(e,t,r,o){var a=this;this.options.request(this.options,e,void 0,(function(n,i){if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+e+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+e+"; status code: "+i.status,!1);if(!i&&n&&n.message&&n.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+n.message,!0);if(n)return t(n,!1);var s,l;try{s="string"==typeof i.data?a.options.parse(i.data,r,o):i.data}catch(t){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,s)}))}},{key:"create",value:function(e,t,r,o,a){var n=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var i=this.options.parsePayload(t,r,o),s=0,l=[],c=[];e.forEach((function(r){var o=n.options.addPath;"function"==typeof n.options.addPath&&(o=n.options.addPath(r,t));var u=n.services.interpolator.interpolate(o,{lng:r,ns:t});n.options.request(n.options,u,i,(function(t,r){s+=1,l.push(t),c.push(r),s===e.length&&a&&a(l,c)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,r=t.backendConnector,o=t.languageUtils,a=t.logger,n=r.language;if(!n||"cimode"!==n.toLowerCase()){var i=[],s=function(e){o.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};s(n),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return s(e)})),i.forEach((function(t){e.allOptions.ns.forEach((function(e){r.read(t,e,"read",null,null,(function(o,n){o&&a.warn("loading namespace ".concat(e," for language ").concat(t," failed"),o),!o&&n&&a.log("loaded namespace ".concat(e," for language ").concat(t),n),r.loaded("".concat(t,"|").concat(e),o,n)}))}))}))}}}],r&&xe(t.prototype,r),o&&xe(t,o),e}();Se.type="backend";var Oe=function(){return n.Date.now()},Le=/\s/;var je=/^\s+/;function Re(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Le.test(e.charAt(t)););return t}(e)+1).replace(je,""):e}var Ce=/^[-+]0x[0-9a-f]+$/i,Ee=/^0b[01]+$/i,_e=/^0o[0-7]+$/i,Ne=parseInt;function Pe(e){if("number"==typeof e)return e;if(i(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Re(e);var r=Ee.test(e);return r||_e.test(e)?Ne(e.slice(2),r?2:8):Ce.test(e)?NaN:+e}var ze=Math.max,Te=Math.min;function Me(e,t,r){var o,a,n,i,l,c,u=0,p=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var r=o,n=a;return o=a=void 0,u=t,i=e.apply(n,r)}function g(e){return u=e,l=setTimeout(v,t),p?f(e):i}function h(e){var r=e-c;return void 0===c||r>=t||r<0||d&&e-u>=n}function v(){var e=Oe();if(h(e))return b(e);l=setTimeout(v,function(e){var r=t-(e-c);return d?Te(r,n-(e-u)):r}(e))}function b(e){return l=void 0,m&&o?f(e):(o=a=void 0,i)}function y(){var e=Oe(),r=h(e);if(o=arguments,a=this,c=e,r){if(void 0===l)return g(c);if(d)return clearTimeout(l),l=setTimeout(v,t),f(c)}return void 0===l&&(l=setTimeout(v,t)),i}return t=Pe(t)||0,s(r)&&(p=!!r.leading,n=(d="maxWait"in r)?ze(Pe(r.maxWait)||0,t):n,m="trailing"in r?!!r.trailing:m),y.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=a=l=void 0},y.flush=function(){return void 0===l?i:b(Oe())},y}const Ae=Object.entries({sm:640,md:768,lg:1024,xl:1280}),Fe=e=>class extends e{constructor(){super(...arguments),this.__handleResize=Me((e=>{e.forEach((({contentRect:e,target:t})=>{Ae.forEach((([r,o])=>{e.width>=o?t.hasAttribute(r)||t.setAttribute(r,""):t.hasAttribute(r)&&t.removeAttribute(r)}))}))}),16)}connectedCallback(){super.connectedCallback();const e=new ResizeObserver(this.__handleResize);e.observe(this),this.__removeBreakpoints=()=>e.disconnect()}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.__removeBreakpoints)||void 0===e||e.call(this),this.__handleResize.cancel()}},Ie=new WeakMap;let Ue=Math.round(1e5*Math.random());const He=new RegExp("[a-z](-|\\.|[0-9]|[a-z])*-(-|\\.|[0-9]|[a-z])*"),qe=(e,t)=>{const r=`${e}-${Ue+=1}`;return((e,t)=>!!t.get(e))(r,t)?qe(e,t):r};function Ve(e,t=customElements){if(r=e,null===He.exec(r))throw new Error("tagName is invalid");var r;return qe(e,t)}const De=new Map,$e=(e,t)=>De.set(t,e),Be=(e,t,r=customElements)=>{$e(e,t),r.define(e,class extends t{})},Ke=(e,t,r)=>{const o=customElements;if(!(e=>Object.prototype.isPrototypeOf.call(HTMLElement,e))(t))return((e,t,r)=>{const o=Ve(e,t);if(!r)throw new Error("Lazy scoped elements requires the use of tags cache");return r.set(e,o),o})(e,o,r);if(t===customElements.get(e))return $e(e,t),e;const a=Ve(e,o);return Be(a,t,o),a};function We(e,t,r){return(e=>De.get(e))(t)||r&&r.get(e)||Ke(e,t,r)}const Xe="-|\\.|[0-9]|[a-z]",Je=new RegExp(`<\\/?([a-z](${Xe})*-(${Xe})*)`,"g"),Ye=new Map,Ge=(e,t,r,o)=>{const a=e.map((e=>{let r=e;const a=(e=>{const t=[];let r;for(;null!==(r=Je.exec(e));)t.push(r);return t})(e);for(let e=a.length-1;e>=0;e-=1){const n=a[e],[i,s]=n,l=We(s,t[s],o),c=n.index+i.length-s.length,u=c+s.length,p=0===i.indexOf("</");r=r.slice(0,c)+(p?l:`${l} data-tag-name="${s}"`)+r.slice(u)}return r}));return r.set(e,a),a};let Qe=!0;const{ShadyCSS:Ze}=window;(void 0===Ze||void 0===Ze.prepareTemplateDom)&&(Qe=!1);const et=new WeakMap,tt=new WeakMap,rt=e=>(tt.has(e)||tt.set(e,new Map),tt.get(e)),ot=(e,t,r,o)=>e.map((e=>e instanceof p?at(e,t,r,o):Array.isArray(e)?ot(e,t,r,o):e)),at=(e,t,r,o)=>new p(function(e,t,r=Ye,o){return r.get(e)||Ge(e,t,r,o)}(e.strings,t,r,o),ot(e.values,t,r,o),e.type,e.processor),nt=(e,t,r,o)=>a=>{const n=at(a,t,r,o);return(e=>t=>{const r=((e,t)=>`${e}--${t}`)(t.type,e);let o=l.get(r);void 0===o&&(o={stringsArray:new WeakMap,keyString:new Map},l.set(r,o));let a=o.stringsArray.get(t.strings);if(void 0!==a)return a;const n=t.strings.join(c);if(a=o.keyString.get(n),void 0===a){const r=t.getTemplateElement();Qe&&Ze.prepareTemplateDom(r,e),a=new u(t,r),o.keyString.set(n,a)}return o.stringsArray.set(t.strings,a),a})(e)(n)},it=(st=e=>class extends e{static get scopedElements(){return{}}static render(e,t,r){if(!r||"object"!=typeof r||!r.scopeName)throw new Error("The `scopeName` option is required.");const{scopeName:o}=r,a=(n=this,et.has(n)||et.set(n,new Map),et.get(n));var n;const i=rt(this),{scopedElements:s}=this;return super.render(e,t,{...r,templateFactory:nt(o,s,a,i)})}defineScopedElement(e,t){return function(e,t,r){const o=r.get(e);o?void 0===customElements.get(o)&&Be(o,t,customElements):r.set(e,We(e,t,r))}(e,t,rt(this.constructor))}static getScopedTagName(e){const t=this.scopedElements[e];return t?We(e,t,rt(this)):rt(this).get(e)}},e=>{if(function(e,t){let r=t;for(;r;){if(Ie.get(r)===e)return!0;r=Object.getPrototypeOf(r)}return!1}(st,e))return e;const t=st(e);return Ie.set(t,st),t});var st;let lt,ct=e=>e;const ut=e=>class extends e{static get styles(){const e=super.styles;return[...e?Array.isArray(e)?e:[e]:[],d(lt||(lt=ct`/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,::after,::before{box-sizing:border-box}html{-moz-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji'}hr{height:0;color:inherit}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#a1a1aa}[role=button],button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::after,::before{border-color:currentColor}*{-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host{display:block}details>summary::-webkit-details-marker{display:none}details>summary{list-style:none}vaadin-select{margin-top:-4px;margin-bottom:-4px}vaadin-combo-box::part(text-field),vaadin-custom-field,vaadin-date-picker,vaadin-email-field,vaadin-integer-field,vaadin-number-field,vaadin-password-field,vaadin-text-area,vaadin-text-field{padding-top:0;padding-bottom:0}vaadin-date-picker::part(text-field){padding-top:0;padding-bottom:0}vaadin-time-picker{width:100%}vaadin-date-time-picker{width:100%}vaadin-button{margin:0}vaadin-checkbox::part(checkbox){margin:0}vaadin-checkbox::part(label){margin:.1875em var(--lumo-space-m)}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.appearance-none::-webkit-calendar-picker-indicator,.appearance-none::-webkit-inner-spin-button,.appearance-none::-webkit-list-button,.appearance-none::-webkit-outer-spin-button{opacity:0!important;width:0!important;margin:0!important;padding:0!important}input::-webkit-date-and-time-value{text-align:inherit!important}.container{width:100%}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([sm]) .sm-not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.top-0{top:0}.top{top:var(--lumo-space-m,1rem)}.right-0{right:0}.right{right:var(--lumo-space-m,1rem)}.bottom{bottom:var(--lumo-space-m,1rem)}.left{left:var(--lumo-space-m,1rem)}.isolate{isolation:isolate}.z-50{z-index:50}.order-1{order:1}:host([sm]) .sm-order-1{order:1}.col-span-2{grid-column:span 2/span 2}:host([md]) .md-col-span-2{grid-column:span 2/span 2}.float-left{float:left}.m-auto{margin:auto}.m-xs{margin:var(--lumo-space-xs,.25rem)}.m-s{margin:var(--lumo-space-s,.5rem)}.m-m{margin:var(--lumo-space-m,1rem)}.m-l{margin:var(--lumo-space-l,1.5rem)}.m{margin:var(--lumo-space-m,1rem)}.-m-s{margin:calc(var(--lumo-space-s,.5rem) * -1)}:host([sm]) .sm-m-xl{margin:var(--lumo-space-xl,2.5rem)}.mx-auto{margin-left:auto;margin-right:auto}.mx-xs{margin-left:var(--lumo-space-xs,.25rem);margin-right:var(--lumo-space-xs,.25rem)}.mx-s{margin-left:var(--lumo-space-s,.5rem);margin-right:var(--lumo-space-s,.5rem)}.mx-m{margin-left:var(--lumo-space-m,1rem);margin-right:var(--lumo-space-m,1rem)}.-mx-xs{margin-left:calc(var(--lumo-space-xs,.25rem) * -1);margin-right:calc(var(--lumo-space-xs,.25rem) * -1)}.-mx-s{margin-left:calc(var(--lumo-space-s,.5rem) * -1);margin-right:calc(var(--lumo-space-s,.5rem) * -1)}.my-auto{margin-top:auto;margin-bottom:auto}.my-xs{margin-top:var(--lumo-space-xs,.25rem);margin-bottom:var(--lumo-space-xs,.25rem)}.my-s{margin-top:var(--lumo-space-s,.5rem);margin-bottom:var(--lumo-space-s,.5rem)}.my-m{margin-top:var(--lumo-space-m,1rem);margin-bottom:var(--lumo-space-m,1rem)}.my{margin-top:var(--lumo-space-m,1rem);margin-bottom:var(--lumo-space-m,1rem)}.-my-xs{margin-top:calc(var(--lumo-space-xs,.25rem) * -1);margin-bottom:calc(var(--lumo-space-xs,.25rem) * -1)}.mt-0{margin-top:0}.mt-xs{margin-top:var(--lumo-space-xs,.25rem)}.mt-s{margin-top:var(--lumo-space-s,.5rem)}.mt-m{margin-top:var(--lumo-space-m,1rem)}.mt-xl{margin-top:var(--lumo-space-xl,2.5rem)}.-mt-m{margin-top:calc(var(--lumo-space-m,1rem) * -1)}.mr-auto{margin-right:auto}.mr-xs{margin-right:var(--lumo-space-xs,.25rem)}.mr-s{margin-right:var(--lumo-space-s,.5rem)}.mr-m{margin-right:var(--lumo-space-m,1rem)}.mr-l{margin-right:var(--lumo-space-l,1.5rem)}.mr-xl{margin-right:var(--lumo-space-xl,2.5rem)}.-mr-xs{margin-right:calc(var(--lumo-space-xs,.25rem) * -1)}.-mr-s{margin-right:calc(var(--lumo-space-s,.5rem) * -1)}.mb-xs{margin-bottom:var(--lumo-space-xs,.25rem)}.mb-s{margin-bottom:var(--lumo-space-s,.5rem)}.mb-m{margin-bottom:var(--lumo-space-m,1rem)}.mb-l{margin-bottom:var(--lumo-space-l,1.5rem)}.-mb-xs{margin-bottom:calc(var(--lumo-space-xs,.25rem) * -1)}.-mb-s{margin-bottom:calc(var(--lumo-space-s,.5rem) * -1)}.ml-auto{margin-left:auto}.ml-xs{margin-left:var(--lumo-space-xs,.25rem)}.ml-s{margin-left:var(--lumo-space-s,.5rem)}.ml-m{margin-left:var(--lumo-space-m,1rem)}:host([sm]) .sm-mt-0{margin-top:0}:host([sm]) .sm-mr-s{margin-right:var(--lumo-space-s,.5rem)}:host([sm]) .sm-mb-0{margin-bottom:0}:host([sm]) .sm-ml-s{margin-left:var(--lumo-space-s,.5rem)}:host([sm]) .sm-ml-m{margin-left:var(--lumo-space-m,1rem)}:host([md]) .md-mr-s{margin-right:var(--lumo-space-s,.5rem)}:host([md]) .md-mb-0{margin-bottom:0}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}:host([sm]) .sm-block{display:block}:host([sm]) .sm-flex{display:flex}:host([sm]) .sm-table-cell{display:table-cell}:host([md]) .md-block{display:block}:host([md]) .md-flex{display:flex}:host([md]) .md-table-cell{display:table-cell}:host([lg]) .lg-table-cell{display:table-cell}:host([xl]) .xl-table-cell{display:table-cell}.h-auto{height:auto}.h-xxs{height:var(--lumo-size-xxs,1.5rem)}.h-xs{height:var(--lumo-size-xs,1.625rem)}.h-s{height:var(--lumo-size-s,1.875rem)}.h-m{height:var(--lumo-size-m,2.25rem)}.h-l{height:var(--lumo-size-l,2.75rem)}.h-xl{height:var(--lumo-size-xl,3.5rem)}.h-full{height:100%}:host([sm]) .sm-h-m{height:var(--lumo-size-m,2.25rem)}.min-h-0{min-height:0}.w-auto{width:auto}.w-xxs{width:var(--lumo-size-xxs,1.5rem)}.w-xs{width:var(--lumo-size-xs,1.625rem)}.w-s{width:var(--lumo-size-s,1.875rem)}.w-m{width:var(--lumo-size-m,2.25rem)}.w-l{width:var(--lumo-size-l,2.75rem)}.w-xl{width:var(--lumo-size-xl,3.5rem)}.w-1-3{width:33.333333%}.w-2-3{width:66.666667%}.w-full{width:100%}:host([sm]) .sm-w-auto{width:auto}:host([sm]) .sm-w-l{width:var(--lumo-size-l,2.75rem)}:host([md]) .md-w-auto{width:auto}:host([md]) .md-w-1-2{width:50%}.min-w-0{min-width:0}.max-w-0{max-width:0}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.table-fixed{table-layout:fixed}.origin-top-right{transform-origin:top right}.origin-bottom-right{transform-origin:bottom right}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:bottom left}.origin-top-left{transform-origin:top left}:host([sm]) .sm-origin-center{transform-origin:center}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0}.translate-x-l{--tw-translate-x:var(--lumo-space-l, 1.5rem)}.translate-y-0{--tw-translate-y:0}.-translate-y-s{--tw-translate-y:calc(var(--lumo-space-s, 0.5rem) * -1)}.-translate-y-m{--tw-translate-y:calc(var(--lumo-space-m, 1rem) * -1)}.-translate-y-l{--tw-translate-y:calc(var(--lumo-space-l, 1.5rem) * -1)}.translate-y-full{--tw-translate-y:100%}:host([sm]) .sm-translate-x-full{--tw-translate-x:100%}:host([sm]) .sm-translate-y-0{--tw-translate-y:0}.rotate-12{--tw-rotate:12deg}.-rotate-12{--tw-rotate:-12deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}:host([sm]) .sm-scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}@media (hover:hover){.group:hover .group-hover-scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{100%,75%{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,100%{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}@media (hover:hover){.hover-cursor-pointer:hover{cursor:pointer}}.disabled-cursor-default:disabled{cursor:default}.select-none{user-select:none}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}:host([sm]) .sm-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}:host([sm]) .sm-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}:host([md]) .md-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}:host([md]) .md-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}:host([sm]) .sm-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}:host([sm]) .sm-flex-row{flex-direction:row}:host([md]) .md-flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}:host([sm]) .sm-items-start{align-items:flex-start}:host([sm]) .sm-items-end{align-items:flex-end}:host([sm]) .sm-items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-s{gap:var(--lumo-space-s,.5rem)}.gap-m{gap:var(--lumo-space-m,1rem)}.gap-l{gap:var(--lumo-space-l,1.5rem)}.gap{gap:var(--lumo-space-m,1rem)}.space-x-xs>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(var(--lumo-space-xs,.25rem) * var(--tw-space-x-reverse));margin-left:calc(var(--lumo-space-xs,.25rem) * calc(1 - var(--tw-space-x-reverse)))}.space-x-s>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(var(--lumo-space-s,.5rem) * var(--tw-space-x-reverse));margin-left:calc(var(--lumo-space-s,.5rem) * calc(1 - var(--tw-space-x-reverse)))}.space-x-m>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(var(--lumo-space-m,1rem) * var(--tw-space-x-reverse));margin-left:calc(var(--lumo-space-m,1rem) * calc(1 - var(--tw-space-x-reverse)))}.space-y-xs>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-xs,.25rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-xs,.25rem) * var(--tw-space-y-reverse))}.space-y-s>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-s,.5rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-s,.5rem) * var(--tw-space-y-reverse))}.space-y-m>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-m,1rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-m,1rem) * var(--tw-space-y-reverse))}.space-y-l>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-l,1.5rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-l,1.5rem) * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-transparent>:not([hidden])~:not([hidden]){border-color:transparent}.divide-contrast-10>:not([hidden])~:not([hidden]){border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded-s{border-radius:var(--lumo-border-radius-s,.25em)}.rounded-full{border-radius:100%}.rounded{border-radius:var(--lumo-border-radius-m,.5em)}.rounded-t-l{border-top-left-radius:var(--lumo-border-radius-l,.75em);border-top-right-radius:var(--lumo-border-radius-l,.75em)}.rounded-b-l{border-bottom-right-radius:var(--lumo-border-radius-l,.75em);border-bottom-left-radius:var(--lumo-border-radius-l,.75em)}:host([sm]) .sm-rounded-b-l{border-bottom-right-radius:var(--lumo-border-radius-l,.75em);border-bottom-left-radius:var(--lumo-border-radius-l,.75em)}.rounded-tl-l{border-top-left-radius:var(--lumo-border-radius-l,.75em)}.rounded-tr-s{border-top-right-radius:var(--lumo-border-radius-s,.25em)}.border{border-width:1px}.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}:host([md]) .md-border-r{border-right-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-transparent{border-color:transparent}.border-current{border-color:currentColor}.border-contrast-10{border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.border-contrast-20{border-color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}.border-contrast-30{border-color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}.border-contrast-50{border-color:var(--lumo-contrast-50pct,hsla(214,45%,20%,.5))}.border-contrast{border-color:var(--lumo-contrast,#182433)}.border-primary{border-color:var(--lumo-primary-color,#1675f2)}.border-error{border-color:var(--lumo-error-color,#fe4238)}:host([md]) .md-border-contrast-10{border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.focus-within-border-primary-50:focus-within{border-color:var(--lumo-primary-color-50pct,hsla(214,90%,52%,.5))}@media (hover:hover){.hover-border-contrast-30:hover{border-color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}.hover-border-contrast-40:hover{border-color:var(--lumo-contrast-40pct,hsla(214,47%,21%,.38))}.hover-border-primary-10:hover{border-color:var(--lumo-primary-color-10pct,hsla(214,90%,52%,.1))}.hover-border-primary:hover{border-color:var(--lumo-primary-color,#1675f2)}}.focus-border-primary:focus{border-color:var(--lumo-primary-color,#1675f2)}.bg-transparent{background-color:transparent}.bg-current{background-color:currentColor}.bg-base{background-color:var(--lumo-base-color,#fff)}.bg-tint{background-color:var(--lumo-tint,#fff)}.bg-shade-50{background-color:var(--lumo-shade-50pct,hsla(214,45%,20%,.5))}.bg-contrast-5{background-color:var(--lumo-contrast-5pct,hsla(214,61%,25%,.05))}.bg-contrast-10{background-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.bg-contrast-20{background-color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}.bg-contrast-70{background-color:var(--lumo-contrast-70pct,hsla(214,42%,18%,.72))}.bg-contrast{background-color:var(--lumo-contrast,#182433)}.bg-primary-10{background-color:var(--lumo-primary-color-10pct,hsla(214,90%,52%,.1))}.bg-primary-50{background-color:var(--lumo-primary-color-50pct,hsla(214,90%,52%,.5))}.bg-primary{background-color:var(--lumo-primary-color,#1675f2)}.bg-error-10{background-color:var(--lumo-error-color-10pct,hsla(3,100%,60%,.1))}.bg-error{background-color:var(--lumo-error-color,#fe4238)}.bg-success-10{background-color:var(--lumo-success-color-10pct,hsla(145,76%,44%,.12))}.bg-success{background-color:var(--lumo-success-color,#15c05c)}@media (hover:hover){.group:hover .group-hover-bg-contrast-5{background-color:var(--lumo-contrast-5pct,hsla(214,61%,25%,.05))}.group:hover .group-hover-bg-contrast-30{background-color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}}@media (hover:hover){.hover-bg-contrast-5:hover{background-color:var(--lumo-contrast-5pct,hsla(214,61%,25%,.05))}.hover-bg-contrast-10:hover{background-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.hover-bg-contrast-20:hover{background-color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}.hover-bg-primary-10:hover{background-color:var(--lumo-primary-color-10pct,hsla(214,90%,52%,.1))}.hover-bg-primary:hover{background-color:var(--lumo-primary-color,#1675f2)}.hover-bg-error-10:hover{background-color:var(--lumo-error-color-10pct,hsla(3,100%,60%,.1))}.hover-bg-success:hover{background-color:var(--lumo-success-color,#15c05c)}}.fill-current{fill:currentColor}.stroke-current{stroke:currentColor}.object-cover{object-fit:cover}.p-0{padding:0}.p-xs{padding:var(--lumo-space-xs,.25rem)}.p-s{padding:var(--lumo-space-s,.5rem)}.p-m{padding:var(--lumo-space-m,1rem)}.p-l{padding:var(--lumo-space-l,1.5rem)}.p{padding:var(--lumo-space-m,1rem)}:host([sm]) .sm-p-0{padding:0}.px-xs{padding-left:var(--lumo-space-xs,.25rem);padding-right:var(--lumo-space-xs,.25rem)}.px-s{padding-left:var(--lumo-space-s,.5rem);padding-right:var(--lumo-space-s,.5rem)}.px-m{padding-left:var(--lumo-space-m,1rem);padding-right:var(--lumo-space-m,1rem)}.py-xs{padding-top:var(--lumo-space-xs,.25rem);padding-bottom:var(--lumo-space-xs,.25rem)}.py-s{padding-top:var(--lumo-space-s,.5rem);padding-bottom:var(--lumo-space-s,.5rem)}.pt-s{padding-top:var(--lumo-space-s,.5rem)}.pt-m{padding-top:var(--lumo-space-m,1rem)}.pr-xs{padding-right:var(--lumo-space-xs,.25rem)}.pr-m{padding-right:var(--lumo-space-m,1rem)}.pb-s{padding-bottom:var(--lumo-space-s,.5rem)}.pb-m{padding-bottom:var(--lumo-space-m,1rem)}.pl-xs{padding-left:var(--lumo-space-xs,.25rem)}.pl-s{padding-left:var(--lumo-space-s,.5rem)}.pl-m{padding-left:var(--lumo-space-m,1rem)}.pl{padding-left:var(--lumo-space-m,1rem)}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}:host([sm]) .sm-text-left{text-align:left}:host([sm]) .sm-text-right{text-align:right}:host([md]) .md-text-left{text-align:left}.align-middle{vertical-align:middle}.font-lumo{font-family:var(--lumo-font-family, -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol")}.text-xxs{font-size:var(--lumo-font-size-xxs,.75rem)}.text-xs{font-size:var(--lumo-font-size-xs,.8125rem)}.text-s{font-size:var(--lumo-font-size-s,.875rem)}.text-m{font-size:var(--lumo-font-size-m,1rem)}.text-l{font-size:var(--lumo-font-size-l,1.125rem)}.text-xl{font-size:var(--lumo-font-size-xl,1.375rem)}.text-xxl{font-size:var(--lumo-font-size-xxl,1.75rem)}.text-xxxl{font-size:var(--lumo-font-size-xxxl,2.5rem)}:host([sm]) .sm-text-l{font-size:var(--lumo-font-size-l,1.125rem)}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}:host([sm]) .sm-normal-case{text-transform:none}.ordinal{--tw-ordinal:var(--tw-empty, );/*!*//*!*/--tw-slashed-zero:var(--tw-empty, );/*!*//*!*/--tw-numeric-figure:var(--tw-empty, );/*!*//*!*/--tw-numeric-spacing:var(--tw-empty, );/*!*//*!*/--tw-numeric-fraction:var(--tw-empty, );/*!*//*!*/font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.ordinal{--tw-ordinal:ordinal}.leading-none{line-height:1}.leading-xs{line-height:var(--lumo-line-height-xs,1.25)}.leading-s{line-height:var(--lumo-line-height-s,1.375)}.leading-m{line-height:var(--lumo-line-height-m,1.625)}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}:host([sm]) .sm-tracking-normal{letter-spacing:0}.text-transparent{color:transparent}.text-base{color:var(--lumo-base-color,#fff)}.text-tint{color:var(--lumo-tint,#fff)}.text-contrast-30{color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}.text-contrast-70{color:var(--lumo-contrast-70pct,hsla(214,42%,18%,.72))}.text-contrast{color:var(--lumo-contrast,#182433)}.text-primary{color:var(--lumo-primary-text-color,#1675f2)}.text-primary-contrast{color:var(--lumo-primary-contrast-color,#fff)}.text-error{color:var(--lumo-error-text-color,#f52318)}.text-success{color:var(--lumo-success-text-color,#00a344)}.text-success-contrast{color:var(--lumo-success-contrast-color,#fff)}.text-header{color:var(--lumo-header-text-color,#182433)}.text-body{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}.text-disabled{color:var(--lumo-disabled-text-color,hsla(214,50%,22%,.26))}.text-secondary{color:var(--lumo-secondary-text-color,hsla(214,42%,18%,.72))}.text-tertiary{color:var(--lumo-tertiary-text-color,hsla(214,45%,20%,.5))}:host([sm]) .sm-text-body{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}@media (hover:hover){.hover-text-primary:hover{color:var(--lumo-primary-text-color,#1675f2)}.hover-text-primary-contrast:hover{color:var(--lumo-primary-contrast-color,#fff)}.hover-text-error:hover{color:var(--lumo-error-text-color,#f52318)}.hover-text-success-contrast:hover{color:var(--lumo-success-contrast-color,#fff)}.hover-text-body:hover{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}.hover-text-secondary:hover{color:var(--lumo-secondary-text-color,hsla(214,42%,18%,.72))}}.focus-text-body:focus{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}.disabled-text-tertiary:disabled{color:var(--lumo-tertiary-text-color,hsla(214,45%,20%,.5))}@media (hover:hover){.hover-underline:hover{text-decoration:underline}}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-100{opacity:1}:host([sm]) .sm-opacity-0{opacity:0}@media (hover:hover){.hover-opacity-75:hover{opacity:.75}}.focus-opacity-100:focus{opacity:1}.disabled-opacity-50:disabled{opacity:.5}*,::after,::before{--tw-shadow:0 0 #0000}.shadow-xs{--tw-shadow:var(--lumo-box-shadow-xs, 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-m{--tw-shadow:var(--lumo-box-shadow-m, 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xxl{--tw-shadow:var(--lumo-box-shadow-xxl, 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}@media (hover:hover){.group:hover .group-hover-shadow-s{--tw-shadow:var(--lumo-box-shadow-s, 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}.focus-within-shadow-outline:focus-within{--tw-shadow:0 0 0 2px var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-within-shadow-outline-success:focus-within{--tw-shadow:0 0 0 2px var(--lumo-success-color-50pct, hsla(145, 76%, 44%, 0.55));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-within-shadow-outline-error:focus-within{--tw-shadow:0 0 0 2px var(--lumo-error-color-50pct, hsla(3, 100%, 60%, 0.1));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-shadow-outline:focus{--tw-shadow:0 0 0 2px var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-outline-none:focus{outline:2px solid transparent;outline-offset:2px}*,::after,::before{--tw-ring-inset:var(--tw-empty, );/*!*//*!*/--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000}.focus-within-ring-1:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within-ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.focus-ring-inset:focus{--tw-ring-inset:inset}.ring-primary-50{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}.ring-error-50{--tw-ring-color:var(--lumo-error-color-50pct, hsla(3, 100%, 60%, 0.5))}.ring-success-50{--tw-ring-color:var(--lumo-success-color-50pct, hsla(145, 76%, 44%, 0.55))}.focus-within-ring-primary-50:focus-within{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}.focus-ring-primary-50:focus{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}.ring-offset-2{--tw-ring-offset-width:2px}.ring-offset-4{--tw-ring-offset-width:4px}.ring-offset-base{--tw-ring-offset-color:var(--lumo-base-color, #fff)}.filter{--tw-blur:var(--tw-empty, );/*!*//*!*/--tw-brightness:var(--tw-empty, );/*!*//*!*/--tw-contrast:var(--tw-empty, );/*!*//*!*/--tw-grayscale:var(--tw-empty, );/*!*//*!*/--tw-hue-rotate:var(--tw-empty, );/*!*//*!*/--tw-invert:var(--tw-empty, );/*!*//*!*/--tw-saturate:var(--tw-empty, );/*!*//*!*/--tw-sepia:var(--tw-empty, );/*!*//*!*/--tw-drop-shadow:var(--tw-empty, );/*!*//*!*/filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur:blur(8px)}.grayscale{--tw-grayscale:grayscale(100%)}.backdrop-filter{--tw-backdrop-blur:var(--tw-empty, );/*!*//*!*/--tw-backdrop-brightness:var(--tw-empty, );/*!*//*!*/--tw-backdrop-contrast:var(--tw-empty, );/*!*//*!*/--tw-backdrop-grayscale:var(--tw-empty, );/*!*//*!*/--tw-backdrop-hue-rotate:var(--tw-empty, );/*!*//*!*/--tw-backdrop-invert:var(--tw-empty, );/*!*//*!*/--tw-backdrop-opacity:var(--tw-empty, );/*!*//*!*/--tw-backdrop-saturate:var(--tw-empty, );/*!*//*!*/--tw-backdrop-sepia:var(--tw-empty, );/*!*//*!*/backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.transition-colors{transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.duration-100{transition-duration:.1s}.duration-150{transition-duration:150ms}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.border-radius-overflow-fix{-webkit-mask-image:-webkit-radial-gradient(white,#000)}.grid-rows-auto{grid-auto-rows:1fr}.icon-inline{--iron-icon-height:1em;--iron-icon-width:1em}.bg-blurred{backdrop-filter:blur(25px);background:var(--lumo-tint-80pct)}.max-w-modal{max-width:28rem}.w-narrow-modal{width:18rem}.snap-x-mandatory{scroll-snap-type:x mandatory}.snap-start{scroll-snap-align:start}:host([sm]) .sm-max-w-modal{max-width:28rem}:host([sm]) .sm-w-narrow-modal{width:18rem}`))]}};class pt extends(it(Fe(ut(m)))){}let dt="";try{dt="https://static.www.foxycart.com/beta/foxy-elements/0.3.0"}catch(e){}class mt extends pt{constructor(e="global"){super(),this.__lang=this._i18n.options.fallbackLng[0],this.__ns=this._i18n.options.fallbackNS[0],this.ns=e,this._whenI18nReady.then((()=>this.requestUpdate()))}static get properties(){return f(f({},super.properties),{},{lang:{type:String,noAccessor:!0},ns:{type:String,noAccessor:!0}})}get lang(){return this.__lang}set lang(e){e&&"undefined"!==e&&(this.__lang=e,this._i18n.loadLanguages(e).then((()=>{this.__lang===e&&this.requestUpdate()})))}get ns(){return this.__ns}set ns(e){this.__ns=e,this._i18n.loadNamespaces(e).then((()=>{this.__ns===e&&this.requestUpdate()}))}static __initI18N(){return this.__i18n=ne.createInstance(),this.__i18n.use(Se),this.__whenI18NReady=this.__i18n.init({ns:["global"],supportedLngs:["nl","en","es","sv","fi","fr","de","zh","no","it","pl"],interpolation:{format:mt.__f},fallbackLng:"en",fallbackNS:"global",defaultNS:"global",detection:{order:["querystring","navigator","htmlTag","path","subdomain"],caches:[]},backend:{loadPath:`${dt}/translations/{{ns}}/{{lng}}.json`}}),this.__whenI18NReady.then((()=>this.__isI18NReady=!0)),this.__i18n}get _i18n(){var e;return null!==(e=mt.__i18n)&&void 0!==e?e:mt.__initI18N()}get _whenI18nReady(){return mt.__whenI18NReady}get _isI18nReady(){return mt.__isI18NReady}get _t(){const e=[this.__ns,this._i18n.options.fallbackNS];return this._i18n.getFixedT(this.__lang,e)}}mt.__fLowercase=e=>e.toLowerCase(),mt.__fList=e=>e.map(((e,t,r)=>{if(0===t)return e;return`${t===r.length-1?" $t(and) ":","} ${e}`})).join(""),mt.__f=(...e)=>{var t,r;const o=e[0];return(null!==(r=null===(t=e[1])||void 0===t?void 0:t.split(" "))&&void 0!==r?r:[]).reduce(((e,t)=>{switch(t){case"lowercase":return mt.__fLowercase(e);case"list":return mt.__fList(e);default:return e}}),o)},mt.__isI18NReady=!1;const ft=(e,t="")=>class extends e{constructor(){super(...arguments),this.lang="",this.ns=t,this.t=(e,r)=>{const o=customElements.get("foxy-i18n");if(!o)return e;const a=[...[t,...this.ns.split(" ").reverse()].map((e=>e.trim())).filter(((e,t,r)=>r.indexOf(e)===t&&e.length>0)).reverse().map(((t,r,o)=>`${t}:${[...o.slice(r+1),e].join(".")}`)),`shared:${e}`];return o.i18next.t(a,f({lng:this.lang},r)).toString()}}static get properties(){return f(f({},super.properties),{},{lang:{type:String},ns:{type:String}})}static get defaultNS(){return t}connectedCallback(){super.connectedCallback();const e=customElements.get("foxy-i18n");this.__untrackTranslations=null==e?void 0:e.onTranslationChange((()=>this.requestUpdate()))}updated(e){super.updated(e);const t=customElements.get("foxy-i18n");t&&(e.has("lang")&&t.i18next.loadLanguages(this.lang),e.has("ns")&&t.i18next.loadNamespaces(this.ns.split(" ")))}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.__untrackTranslations)||void 0===e||e.call(this)}};export{Fe as R,it as S,ut as T,ft as a,pt as b,mt as c,Me as d,ne as i,Pe as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{L as e,_ as t}from"./shared-63eaded9.js";import{t as s,m as r,a as i,b as n,R as h,F as o}from"./shared-5535f38f.js";import{A as a}from"./shared-7f0a9790.js";import{U as _}from"./shared-7684cb05.js";import{i as u}from"./shared-756034e4.js";function d(e,t){let r=null;return s(t).forEach((function(){var t,s,i,n,h,o,a,_,u,d,c;if(null===(i=null===(s=null===(t=this.node)||void 0===t?void 0:t._links)||void 0===s?void 0:s.self)||void 0===i?void 0:i.href){const t=null===(o=null===(h=null===(n=this.node)||void 0===n?void 0:n._links)||void 0===h?void 0:h.self)||void 0===o?void 0:o.href,s=new URL(null===(u=null===(_=null===(a=this.node)||void 0===a?void 0:a._links)||void 0===_?void 0:_.self)||void 0===u?void 0:u.href);if(s.searchParams.delete("zoom"),e===t||e===s.toString())return r=JSON.stringify(this.node),void this.stop()}Object.entries(null!==(c=null===(d=this.node)||void 0===d?void 0:d._links)&&void 0!==c?c:{}).some((([t,s])=>{var i,n;if(s.href!==e)return!1;const h=null===(n=null===(i=this.node)||void 0===i?void 0:i._embedded)||void 0===n?void 0:n[t];if(!h||!Array.isArray(h))return!1;const o=h.length<20?h.length:21,a=new URL(e),_=new URL(e);return a.searchParams.set("offset",h.length.toString()),_.searchParams.set("offset",o.toString()),r=JSON.stringify({returned_items:h.length,total_items:o,offset:0,limit:20,_embedded:{[t]:h},_links:{curies:this.node._links.curies,first:{href:e},last:{href:_.toString()},prev:{href:e},next:{href:a.toString()},self:{href:e}}}),this.stop(),!0}))})),new Response(r,{status:r?200:404})}class c extends e{constructor(){super(...arguments),this.lang="",this.parent="",this.related=[],this.__href="",this.__group="",this.__fetchEventQueue=[],this.__service=u(i.withConfig({services:{sendDelete:()=>this._sendDelete(),sendPatch:({edits:e})=>this._sendPatch(e),sendPost:({edits:e})=>this._sendPost(e),sendGet:()=>this._sendGet()},actions:{validate:n({errors:e=>{const s=this.constructor.v8n,r=t(t({},e.data),e.edits);return s.map((e=>e(r))).filter((e=>"string"==typeof e)).filter(((e,t,s)=>s.indexOf(e)===t))}})}}))}static get properties(){return{related:{type:Array},parent:{type:String},group:{type:String,noAccessor:!0},href:{type:String,noAccessor:!0},lang:{type:String}}}static get v8n(){return[]}get failure(){return this.__service.state.context.failure}get errors(){return this.__service.state.context.errors}get form(){const{data:e,edits:s}=this.__service.state.context;return t(t({},e),s)}get data(){return this.__service.state.context.data}set data(e){var t;this.__service.send({type:"SET_DATA",data:e}),this.__href=null!==(t=null==e?void 0:e._links.self.href)&&void 0!==t?t:""}get group(){return this.__group}set group(e){this.__group=e,this.__destroyRumour(),this.__createRumour()}get href(){return this.__href}set href(e){this.__href=e,e?this.__service.send({type:"FETCH"}):this.__service.send({type:"SET_DATA",data:null})}in(e){return this.__service.state.matches(e)}undo(){this.__service.send({type:"UNDO"})}edit(e){this.__service.send({type:"EDIT",data:e})}submit(){this.__service.send({type:"SUBMIT"})}delete(){this.__service.send({type:"DELETE"})}refresh(){this.__service.send({type:"REFRESH"})}connectedCallback(){super.connectedCallback(),this.__createService(),this.__createRumour(),this.__createServer(),this.__processFetchEventQueue()}disconnectedCallback(){super.disconnectedCallback(),this.__destroyService(),this.__destroyRumour(),this.__destroyServer(),this.__flushFetchEventQueue("parent element was disconnected")}async _fetch(...e){const t=await new a(this).fetch(...e);if(!t.ok)throw t;return t.json()}async _sendPost(e){this.__destroyRumour();const t=JSON.stringify(e),s=await this._fetch(this.parent,{body:t,method:"POST"}),r=c.Rumour(this.group),i=[...this.related,this.parent];return r.share({data:s,related:i,source:s._links.self.href}),this.__createRumour(),s}async _sendGet(){this.__destroyRumour();const e=await this._fetch(this.href);return c.Rumour(this.group).share({data:e,source:this.href}),this.__createRumour(),e}async _sendPatch(e){this.__destroyRumour();const t=JSON.stringify(e),s=await this._fetch(this.href,{body:t,method:"PATCH"});return c.Rumour(this.group).share({data:s,source:this.href,related:this.related}),this.__createRumour(),s}async _sendDelete(){this.__destroyRumour();const e=await this._fetch(this.href,{method:"DELETE"}),t=c.Rumour(this.group),s=[...this.related,this.parent];return t.share({data:null,source:this.href,related:s}),this.__createRumour(),e}__createService(){this.__service.onTransition((e=>{if(!e.changed)return;const t=e.toStrings().reduce(((e,t)=>[...e,...t.split(".")]),[]);this.setAttribute("state",[...new Set(t)].join(" ")),this.requestUpdate(),this.dispatchEvent(new _),e.matches("busy")||this.__processFetchEventQueue()})),this.__service.onChange((()=>{this.requestUpdate(),this.dispatchEvent(new _)})),this.__service.start()}__destroyService(){this.__service.stop()}__createRumour(){const e=c.Rumour(this.group);this.__unsubscribeFromRumour=e.track((e=>this.__handleRumourUpdate(e)))}__destroyRumour(){var e;null===(e=this.__unsubscribeFromRumour)||void 0===e||e.call(this)}__createServer(){this.__fetchEventHandler=this.__handleFetchEvent.bind(this),this.addEventListener("fetch",this.__fetchEventHandler)}__destroyServer(){this.removeEventListener("fetch",this.__fetchEventHandler)}__handleRumourUpdate(e){var t;try{const s=null===(t=this.__service.state)||void 0===t?void 0:t.context.data;if(!s)return;const r=e(s);r!==s&&this.__service.send({data:r,type:"SET_DATA"})}catch(e){if(!(e instanceof h.UpdateError))throw e;this.__service.send({type:"REFRESH"})}}__processFetchEventQueue(){const e=new c.API(this);this.__fetchEventQueue.forEach((t=>{const s=t.request,r=d(s.url,this.data),i=r.ok?r:e.fetch(s);t.respondWith(Promise.resolve(i)),r.ok&&console.debug(`%c@foxy.io/elements::${this.localName}\n%c200%c GET ${s.url}`,"color: gray","background: gray; padding: 0 .2em; border-radius: .2em; color: white;","")})),this.__fetchEventQueue=[]}__flushFetchEventQueue(e){this.__fetchEventQueue.forEach((t=>{t.respondWith(Promise.reject(new Error(e)))})),this.__fetchEventQueue=[]}__handleFetchEvent(e){e instanceof o&&(e.defaultPrevented||"GET"===e.request.method&&(e.request.url.startsWith("foxy://")||e.composedPath()[0]!==this&&(e.preventDefault(),this.__fetchEventQueue.push(e),this.in("busy")||this.__processFetchEventQueue())))}}c.UpdateEvent=_,c.Rumour=r((()=>new h)),c.API=a;export{c as N,d as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./shared-666e8a90.js";import"./shared-b07ef791.js";import{_ as t,h as e}from"./shared-63eaded9.js";import{D as s}from"./shared-9783e5ce.js";let i,n=t=>t;customElements.define("foxy-internal-confirm-dialog",class extends s{constructor(){super(...arguments),this.closable=!1,this.editable=!1,this.alert=!0,this.confirm="confirm",this.message="message",this.cancel="cancel",this.theme="primary"}static get properties(){return t(t({},super.properties),{},{confirm:{type:String},message:{type:String},cancel:{type:String},theme:{type:String}})}render(){return super.render((()=>e(i||(i=n` <foxy-i18n class="block font-lumo text-m text-body text-center mb-m" lang="${0}" key="${0}" ns="${0}"> </foxy-i18n> <div class="grid grid-cols-2 gap-m"> <vaadin-button data-testid="cancelButton" @click="${0}"> <foxy-i18n ns="${0}" lang="${0}" key="${0}"></foxy-i18n> </vaadin-button> <vaadin-button theme="${0}" data-testid="confirmButton" @click="${0}"> <foxy-i18n ns="${0}" lang="${0}" key="${0}"></foxy-i18n> </vaadin-button> </div> `),this.lang,this.message,this.ns,this.__handleCancel,this.ns,this.lang,this.cancel,this.theme,this.__handleConfirm,this.ns,this.lang,this.confirm)))}async __handleCancel(){await this.hide(!0)}async __handleConfirm(){await this.hide()}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{L as e,h as r}from"./shared-63eaded9.js";import{b as s}from"./shared-385ab830.js";let t,o=e=>e;class n extends e{static get styles(){return s.styles}render(){return r(t||(t=o` <p class="flex text-s border border-contrast-10 rounded-t-l rounded-b-l p-s text-body leading-s"> <iron-icon icon="lumo:error" class="text-error flex-shrink-0 mr-s"></iron-icon> <slot></slot> </p> `))}}function a(e){const[r,s,t]=e.split("-").map((e=>parseInt(e,10)));return[r,s,t].some((e=>"number"!=typeof e||isNaN(e)))?null:new Date(r,s-1,t)}export{n as W,a as p};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{S as t,i as e,e as n,l as r,r as i,n as o,o as a,c as s,a as c,g as u,d as l}from"./shared-63eaded9.js";class f extends Event{constructor(t,e){super(t,e),this.request=e.request,this.__reject=e.reject,this.__resolve=e.resolve}respondWith(t){this.preventDefault(),this.stopImmediatePropagation(),t.then(this.__resolve).catch(this.__reject)}}
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var h=function(){return h=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},h.apply(this,arguments)};function p(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}var g={};function _(t){return Object.keys(t)}function b(t,e,n){void 0===n&&(n=".");var r=j(t,n),i=j(e,n);return F(i)?!!F(r)&&i===r:F(r)?r in i:_(r).every((function(t){return t in i&&b(r[t],i[t])}))}function m(t){try{return F(t)||"number"==typeof t?""+t:t.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function w(t,e){try{return L(t)?t:t.toString().split(e)}catch(e){throw new Error("'"+t+"' is not a valid state path.")}}function j(t,e){return"object"==typeof(n=t)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?t.value:L(t)?S(t):"string"!=typeof t?t:S(w(t,e));var n}function S(t){if(1===t.length)return t[0];for(var e={},n=e,r=0;r<t.length-1;r++)r===t.length-2?n[t[r]]=t[r+1]:(n[t[r]]={},n=n[t[r]]);return e}function x(t,e){for(var n={},r=_(t),i=0;i<r.length;i++){var o=r[i];n[o]=e(t[o],o,t,i)}return n}function O(t,e,n){var r,i,o={};try{for(var a=d(_(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];n(u)&&(o[c]=e(u,c,t))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var E=function(t){return function(e){var n,r,i=e;try{for(var o=d(t),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function k(t){return t?F(t)?[[t]]:A(_(t).map((function(e){var n=t[e];return"string"==typeof n||n&&Object.keys(n).length?k(t[e]).map((function(t){return[e].concat(t)})):[[e]]}))):[[]]}function A(t){var e;return(e=[]).concat.apply(e,y(t))}function P(t){return L(t)?t:[t]}function T(t){return void 0===t?[]:P(t)}function R(t,e,n){var r,i;if(C(t))return t(e,n.data);var o={};try{for(var a=d(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];C(u)?o[c]=u(e,n.data):o[c]=u}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function N(t){return t instanceof Promise||!(null===t||!C(t)&&"object"!=typeof t||!C(t.then))}function D(t,e){var n,r,i=v([[],[]],2),o=i[0],a=i[1];try{for(var s=d(t),c=s.next();!c.done;c=s.next()){var u=c.value;e(u)?o.push(u):a.push(u)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[o,a]}function I(t,e){return x(t.states,(function(t,n){if(t){var r=(F(e)?void 0:e[n])||(t?t.current:void 0);if(r)return{current:r,states:I(t,r)}}}))}function L(t){return Array.isArray(t)}function C(t){return"function"==typeof t}function F(t){return"string"==typeof t}function $(t,e){if(t)return F(t)?{type:"xstate.guard",name:t,predicate:e?e[t]:void 0}:C(t)?{type:"xstate.guard",name:t.name,predicate:t}:t}function V(t){try{return"subscribe"in t&&C(t.subscribe)}catch(t){return!1}}var M,U,z=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function W(t){try{return"__xstatenode"in t}catch(t){return!1}}function B(t){return!!t&&"function"==typeof t.send}function q(t,e){return F(t)||"number"==typeof t?h({type:t},e):t}function H(t,e){if(!F(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=q(t);return h({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function J(t,e){return P(e).map((function(e){return void 0===e||"string"==typeof e||W(e)?{target:e,event:t}:h(h({},e),{event:t})}))}function G(t,e,n,r,i){var o=t.options.guards,a={state:i,cond:e,_event:r};if("xstate.guard"===e.type)return e.predicate(n,r.data,a);var s=o[e.type];if(!s)throw new Error("Guard '"+e.type+"' is not implemented on machine '"+t.id+"'.");return s(n,r.data,a)}function Z(t){return"string"==typeof t?{type:t}:t}function K(t,e,n){if("object"==typeof t)return t;var r=function(){};return{next:t,error:e||r,complete:n||r}}!function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(M||(M={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(U||(U={}));var Q=M.Start,X=M.Stop,Y=M.Raise,tt=M.Send,et=M.Cancel,nt=M.NullEvent,rt=M.Assign;M.After,M.DoneState;var it=M.Log,ot=M.Init,at=M.Invoke;M.ErrorExecution;var st=M.ErrorPlatform,ct=M.ErrorCustom,ut=M.Update,lt=M.Choose,ft=M.Pure,ht=H({type:ot});function pt(t,e){return e&&e[t]||void 0}function dt(t,e){var n;if(F(t)||"number"==typeof t){var r=pt(t,e);n=C(r)?{type:t,exec:r}:r||{type:t,exec:void 0}}else if(C(t))n={type:t.name||t.toString(),exec:t};else{if(C(r=pt(t.type,e)))n=h(h({},t),{exec:r});else if(r){var i=r.type||t.type;n=h(h(h({},r),t),{type:i})}else n=t}return Object.defineProperty(n,"toString",{value:function(){return n.type},enumerable:!1,configurable:!0}),n}var vt=function(t,e){return t?(L(t)?t:[t]).map((function(t){return dt(t,e)})):[]};function yt(t){var e=dt(t);return h(h({id:F(t)?t:e.id},e),{type:e.type})}function gt(t){return F(t)?{type:Y,event:t}:_t(t,{to:U.Internal})}function _t(t,e){return{to:e?e.to:void 0,type:tt,event:C(t)?t:q(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:C(t)?t.name:m(t)}}function bt(t,e){return _t(t,h(h({},e),{to:U.Parent}))}function mt(){return bt(ut)}function wt(t,e){return _t(t,h(h({},e),{to:function(t,e,n){return n._event.origin}}))}var jt=function(t,e){return{context:t,event:e}};function St(t,e){return void 0===t&&(t=jt),{type:it,label:e,expr:t}}var xt=function(t){return{type:et,sendId:t}};function Ot(t){var e=yt(t);return{type:M.Start,activity:e,exec:void 0}}function Et(t){var e=C(t)?t:yt(t);return{type:M.Stop,activity:e,exec:void 0}}var kt=function(t){return{type:rt,assignment:t}};function At(t,e){var n=e?"#"+e:"";return M.After+"("+t+")"+n}function Pt(t,e){var n=M.DoneState+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Tt(t,e){var n=M.DoneInvoke+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Rt(t,e){var n=M.ErrorPlatform+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Nt(t){return{type:M.Pure,get:t}}function Dt(t,e){return _t((function(t,e){return e}),h(h({},e),{to:t}))}function It(t,e){return bt((function(e,n,r){return{type:ct,data:C(t)?t(e,n,r):t}}),h(h({},e),{to:U.Parent}))}function Lt(t){return{type:M.Choose,conds:t}}function Ct(t,e,n,r,i){var o=v(D(i,(function(t){return t.type===rt})),2),a=o[0],s=o[1],c=a.length?function(t,e,n,r){return t?n.reduce((function(t,n){var i,o,a=n.assignment,s={state:r,action:n,_event:e},c={};if(C(a))c=a(t,e.data,s);else try{for(var u=d(_(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=a[f];c[f]=C(h)?h(t,e.data,s):h}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return Object.assign({},t,c)}),t):t}(n,r,a,e):n,u=A(s.map((function(n){var i;switch(n.type){case Y:return{type:Y,_event:H(n.event)};case tt:var o=function(t,e,n,r){var i,o={_event:n},a=H(C(t.event)?t.event(e,n.data,o):t.event);if(F(t.delay)){var s=r&&r[t.delay];i=C(s)?s(e,n.data,o):s}else i=C(t.delay)?t.delay(e,n.data,o):t.delay;var c=C(t.to)?t.to(e,n.data,o):t.to;return h(h({},t),{to:c,_event:a,event:a.data,delay:i})}(n,c,r,t.options.delays);return o;case it:return function(t,e,n){return h(h({},t),{value:F(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})}(n,c,r);case lt:if(!(s=null===(i=n.conds.find((function(n){var i=$(n.cond,t.options.guards);return!i||G(t,i,c,r,e)})))||void 0===i?void 0:i.actions))return[];var a=Ct(t,e,c,r,vt(T(s),t.options.actions));return c=a[1],a[0];case ft:var s;if(!(s=n.get(c,r.data)))return[];a=Ct(t,e,c,r,vt(T(s),t.options.actions));return c=a[1],a[0];case X:return function(t,e,n){var r=C(t.activity)?t.activity(e,n.data):t.activity,i="string"==typeof r?{id:r}:r;return{type:M.Stop,activity:i}}(n,c,r);default:return dt(n,t.options.actions)}})));return[u,c]}var Ft=function(t){return"atomic"===t.type||"final"===t.type};function $t(t){return _(t.states).map((function(e){return t.states[e]}))}function Vt(t){var e=[t];return Ft(t)?e:e.concat(A($t(t).map(Vt)))}function Mt(t,e){var n,r,i,o,a,s,c,u,l=zt(new Set(t)),f=new Set(e);try{for(var h=d(f),p=h.next();!p.done;p=h.next())for(var v=(x=p.value).parent;v&&!f.has(v);)f.add(v),v=v.parent}catch(t){n={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var y=zt(f);try{for(var g=d(f),_=g.next();!_.done;_=g.next()){if("compound"!==(x=_.value).type||y.get(x)&&y.get(x).length){if("parallel"===x.type)try{for(var b=(a=void 0,d($t(x))),m=b.next();!m.done;m=b.next()){var w=m.value;"history"!==w.type&&(f.has(w)||(f.add(w),l.get(w)?l.get(w).forEach((function(t){return f.add(t)})):w.initialStateNodes.forEach((function(t){return f.add(t)}))))}}catch(t){a={error:t}}finally{try{m&&!m.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}else l.get(x)?l.get(x).forEach((function(t){return f.add(t)})):x.initialStateNodes.forEach((function(t){return f.add(t)}))}}catch(t){i={error:t}}finally{try{_&&!_.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var j=d(f),S=j.next();!S.done;S=j.next()){var x;for(v=(x=S.value).parent;v&&!f.has(v);)f.add(v),v=v.parent}}catch(t){c={error:t}}finally{try{S&&!S.done&&(u=j.return)&&u.call(j)}finally{if(c)throw c.error}}return f}function Ut(t,e){var n=e.get(t);if(!n)return{};if("compound"===t.type){var r=n[0];if(!r)return{};if(Ft(r))return r.key}var i={};return n.forEach((function(t){i[t.key]=Ut(t,e)})),i}function zt(t){var e,n,r=new Map;try{for(var i=d(t),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function Wt(t,e){return Ut(t,zt(Mt([t],e)))}function Bt(t,e){return Array.isArray(t)?t.some((function(t){return t===e})):t instanceof Set&&t.has(e)}function qt(t,e){return"compound"===e.type?$t(e).some((function(e){return"final"===e.type&&Bt(t,e)})):"parallel"===e.type&&$t(e).every((function(e){return qt(t,e)}))}function Ht(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if(F(t)||F(e))return t===e;var n=_(t),r=_(e);return n.length===r.length&&n.every((function(n){return Ht(t[n],e[n])}))}function Jt(t){return!F(t)&&("value"in t&&"history"in t)}function Gt(t,e){var n=t.exec;return h(h({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var Zt=function(){function t(t){var e=this;this.actions=[],this.activities=g,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||g,this.meta=t.meta||{},this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,Object.defineProperty(this,"nextEvents",{get:function(){return t=e.configuration,A(y(new Set(t.map((function(t){return t.ownEvents})))));var t}})}return t.from=function(e,n){return e instanceof t?e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e:new t({value:e,context:n,_event:ht,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var r=ht;return new t({value:e.value,context:n,_event:r,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(t,e){var n=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),F(t))return[t];var r=_(t);return r.concat.apply(r,y(r.map((function(r){return n.toStrings(t[r],e).map((function(t){return r+e+t}))}))))},t.prototype.toJSON=function(){var t=this;return t.configuration,t.transitions,p(t,["configuration","transitions"])},t.prototype.matches=function(t){return b(t,this.value)},t}(),Kt=function(t,e){return e(t)};function Qt(t){return{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},toJSON:function(){return{id:t}}}}function Xt(t,e,n,r){var i,o=Z(t.src),a=null===(i=null==e?void 0:e.options.services)||void 0===i?void 0:i[o.type],s=t.data?R(t.data,n,r):void 0,c=a?function(t,e,n){var r=Qt(e);r.deferred=!0,W(t)&&(r.state=Kt(void 0,(function(){return(n?t.withContext(n):t).initialState})));return r}(a,t.id,s):Qt(t.id);return c.meta=t,c}function Yt(t){return function(t){try{return"function"==typeof t.send}catch(t){return!1}}(t)&&"id"in t}function te(t){if("string"==typeof t){var e={type:t,toString:function(){return t}};return e}return t}function ee(t){return h(h({type:at},t),{toJSON:function(){t.onDone,t.onError;var e=p(t,["onDone","onError"]);return h(h({},e),{type:at,src:te(t.src)})}})}var ne={},re=function(t){return"#"===t[0]},ie=function(){function t(e,n,r){var i=this;this.config=e,this.context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=this.options._parent,this.key=this.config.key||this.options._key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||y([this.machine.key],this.path).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&_(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.initial=this.config.initial,this.states=this.config.states?x(this.config.states,(function(e,n){var r,o=new t(e,{_parent:i,_key:n});return Object.assign(i.idMap,h(((r={})[o.id]=o,r),o.idMap)),o})):ne;var o=0;!function t(e){var n,r;e.order=o++;try{for(var i=d($t(e)),a=i.next();!a.done;a=i.next()){t(a.value)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(t){return""===t.event})):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=T(this.config.entry||this.config.onEntry).map((function(t){return dt(t)})),this.onExit=T(this.config.exit||this.config.onExit).map((function(t){return dt(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=T(this.config.invoke).map((function(t,e){var n,r;if(W(t))return i.machine.options.services=h(((n={})[t.id]=t,n),i.machine.options.services),ee({src:t.id,id:t.id});if(F(t.src))return ee(h(h({},t),{id:t.id||t.src,src:t.src}));if(W(t.src)||C(t.src)){var o=i.id+":invocation["+e+"]";return i.machine.options.services=h(((r={})[o]=t.src,r),i.machine.options.services),ee(h(h({id:o},t),{src:o}))}var a=t.src;return ee(h(h({id:a.type},t),{src:a}))})),this.activities=T(this.config.activities).concat(this.invoke).map((function(t){return yt(t)})),this.transition=this.transition.bind(this)}return t.prototype._init=function(){this.__cache.transitions||Vt(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(e,n){void 0===n&&(n=this.context);var r=this.options,i=r.actions,o=r.activities,a=r.guards,s=r.services,c=r.delays;return new t(this.config,{actions:h(h({},i),e.actions),activities:h(h({},o),e.activities),guards:h(h({},a),e.guards),services:h(h({},s),e.services),delays:h(h({},c),e.delays)},n)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:x(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce((function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=""===t,n=this.transitions.filter((function(n){var r=n.eventType===t;return e?r:r||"*"===n.eventType}));return this.__cache.candidates[t]=n,n},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var n=function(e,n){var r=At(C(e)?t.id+":delay["+n+"]":e,t.id);return t.onEntry.push(_t(r,{delay:e})),t.onExit.push(xt(r)),r};return(L(e)?e.map((function(t,e){var r=n(t.delay,e);return h(h({},t),{event:r})})):A(_(e).map((function(t,r){var i=e[t],o=F(i)?{target:i}:i,a=isNaN(+t)?t:+t,s=n(a,r);return T(o).map((function(t){return h(h({},t),{event:s,delay:a})}))})))).map((function(e){var n=e.delay;return h(h({},t.formatTransition(e)),{delay:n})}))},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var r=t instanceof Zt?t.value:j(t,this.delimiter);if(F(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((e={})[r]=i,e)):[this.states[r]]}var o=_(r);return o.map((function(t){return n.getStateNode(t)})).concat(o.reduce((function(t,e){var i=n.getStateNode(e).getStateNodes(r[e]);return t.concat(i)}),[]))},t.prototype.handles=function(t){var e=m(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=Array.from(Mt([],this.getStateNodes(t.value)));return new Zt(h(h({},t),{value:this.resolve(t.value),configuration:e,done:qt(e,this)}))},t.prototype.transitionLeafNode=function(t,e,n){var r=this.getStateNode(t).next(e,n);return r&&r.transitions.length?r:this.next(e,n)},t.prototype.transitionCompoundNode=function(t,e,n){var r=_(t),i=this.getStateNode(r[0])._transition(t[r[0]],e,n);return i&&i.transitions.length?i:this.next(e,n)},t.prototype.transitionParallelNode=function(t,e,n){var r,i,o={};try{for(var a=d(_(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];if(u){var l=this.getStateNode(c)._transition(u,e,n);l&&(o[c]=l)}}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var f=_(o).map((function(t){return o[t]})),h=A(f.map((function(t){return t.transitions})));if(!f.some((function(t){return t.transitions.length>0})))return this.next(e,n);var p=A(f.map((function(t){return t.entrySet}))),v=A(_(o).map((function(t){return o[t].configuration})));return{transitions:h,entrySet:p,exitSet:A(f.map((function(t){return t.exitSet}))),configuration:v,source:e,actions:A(_(o).map((function(t){return o[t].actions})))}},t.prototype._transition=function(t,e,n){return F(t)?this.transitionLeafNode(t,e,n):1===_(t).length?this.transitionCompoundNode(t,e,n):this.transitionParallelNode(t,e,n)},t.prototype.next=function(t,e){var n,r,i,o=this,a=e.name,s=[],c=[];try{for(var u=d(this.getCandidates(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=f.cond,p=f.in,v=t.context,g=!p||(F(p)&&re(p)?t.matches(j(this.getStateNodeById(p).path,this.delimiter)):b(j(p,this.delimiter),E(this.path.slice(0,-2))(t.value))),_=!1;try{_=!h||G(this.machine,h,v,e,t)}catch(t){throw new Error("Unable to evaluate guard '"+(h.name||h.type)+"' in transition for event '"+a+"' in state node '"+this.id+"':\n"+t.message)}if(_&&g){void 0!==f.target&&(c=f.target),s.push.apply(s,y(f.actions)),i=f;break}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(i){if(!c.length)return{transitions:[i],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var m=A(c.map((function(e){return o.getRelativeStateNodes(e,t.historyValue)}))),w=!!i.internal;return{transitions:[i],entrySet:w?[]:A(m.map((function(t){return o.nodesFromChild(t)}))),exitSet:w?[]:[this],configuration:m,source:t,actions:s}}},t.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var e=[],n=t;n&&n!==this;)e.push(n),n=n.parent;return e.push(this),e},t.prototype.escapes=function(t){if(this===t)return!1;for(var e=this.parent;e;){if(e===t)return!1;e=e.parent}return!0},t.prototype.getActions=function(t,e,n,r){var i,o,a,s,c=Mt([],r?this.getStateNodes(r.value):[this]),u=t.configuration.length?Mt(c,t.configuration):c;try{for(var l=d(u),f=l.next();!f.done;f=l.next()){Bt(c,g=f.value)||t.entrySet.push(g)}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}try{for(var h=d(c),p=h.next();!p.done;p=h.next()){var g;Bt(u,g=p.value)&&!Bt(t.exitSet,g.parent)||t.exitSet.push(g)}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var _=A(t.entrySet.map((function(r){var i=[];if("final"!==r.type)return i;var o=r.parent;if(!o.parent)return i;i.push(Pt(r.id,r.doneData),Pt(o.id,r.doneData?R(r.doneData,e,n):void 0));var a=o.parent;return"parallel"===a.type&&$t(a).every((function(e){return qt(t.configuration,e)}))&&i.push(Pt(a.id)),i})));t.exitSet.sort((function(t,e){return e.order-t.order})),t.entrySet.sort((function(t,e){return t.order-e.order}));var b=new Set(t.entrySet),m=new Set(t.exitSet),w=v([A(Array.from(b).map((function(t){return y(t.activities.map((function(t){return Ot(t)})),t.onEntry)}))).concat(_.map(gt)),A(Array.from(m).map((function(t){return y(t.onExit,t.activities.map((function(t){return Et(t)})))})))],2),j=w[0],S=w[1];return vt(S.concat(t.actions).concat(j),this.machine.options.actions)},t.prototype.transition=function(t,e,n){void 0===t&&(t=this.initialState);var r,i,o=H(e);if(t instanceof Zt)r=void 0===n?t:this.resolveState(Zt.from(t,n));else{var a=F(t)?this.resolve(S(this.getResolvedPath(t))):this.resolve(t),s=n||this.machine.context;r=this.resolveState(Zt.from(a,s))}if(this.strict&&!this.events.includes(o.name)&&(i=o.name,!/^(done|error)\./.test(i)))throw new Error("Machine '"+this.id+"' does not accept event '"+o.name+"'");var c=this._transition(r.value,r,o)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:r,actions:[]},u=Mt([],this.getStateNodes(r.value)),l=c.configuration.length?Mt(u,c.configuration):u;return c.configuration=y(l),this.resolveTransition(c,r,o)},t.prototype.resolveRaisedTransition=function(t,e,n){var r,i=t.actions;return(t=this.transition(t,e))._event=n,t.event=n.data,(r=t.actions).unshift.apply(r,y(i)),t},t.prototype.resolveTransition=function(t,e,n,r){var i,o,a=this;void 0===n&&(n=ht),void 0===r&&(r=this.machine.context);var s=t.configuration,c=!e||t.transitions.length>0?Wt(this.machine,s):void 0,u=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,l=e?e.context:r,f=this.getActions(t,l,n,e),p=e?h({},e.activities):{};try{for(var y=d(f),g=y.next();!g.done;g=y.next()){var _=g.value;_.type===Q?p[_.activity.id||_.activity.type]=_:_.type===X&&(p[_.activity.id||_.activity.type]=!1)}}catch(t){i={error:t}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}var b,m,w=v(Ct(this,e,l,n,f),2),j=w[0],S=w[1],x=v(D(j,(function(t){return t.type===Y||t.type===tt&&t.to===U.Internal})),2),O=x[0],E=x[1],k=j.filter((function(t){var e;return t.type===Q&&(null===(e=t.activity)||void 0===e?void 0:e.type)===at})),A=k.reduce((function(t,e){return t[e.activity.id]=Xt(e.activity,a.machine,S,n),t}),e?h({},e.children):{}),P=c?t.configuration:e?e.configuration:[],T=P.reduce((function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t}),{}),R=qt(P,this),N=new Zt({value:c||e.value,context:S,_event:n,_sessionid:e?e._sessionid:null,historyValue:c?u?(b=u,m=c,{current:m,states:I(b,m)}):void 0:e?e.historyValue:void 0,history:!c||t.source?e:void 0,actions:c?E:[],activities:c?p:e?e.activities:{},meta:c?T:e?e.meta:void 0,events:[],configuration:P,transitions:t.transitions,children:A,done:R}),L=l!==S;N.changed=n.name===ut||L;var C=N.history;if(C&&delete C.history,!c)return N;var F=N;if(!R)for((this._transient||s.some((function(t){return t._transient})))&&(F=this.resolveRaisedTransition(F,{type:nt},n));O.length;){var $=O.shift();F=this.resolveRaisedTransition(F,$._event,n)}var V=F.changed||(C?!!F.actions.length||L||typeof C.value!=typeof F.value||!Ht(F.value,C.value):void 0);return F.changed=V,F.history=C,F},t.prototype.getStateNode=function(t){if(re(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '"+t+"' from '"+this.id+"'; no child states exist.");var e=this.states[t];if(!e)throw new Error("Child state '"+t+"' does not exist on '"+this.id+"'");return e},t.prototype.getStateNodeById=function(t){var e=re(t)?t.slice("#".length):t;if(e===this.id)return this;var n=this.machine.idMap[e];if(!n)throw new Error("Child state node '#"+e+"' does not exist on machine '"+this.id+"'");return n},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&re(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var e=w(t,this.delimiter).slice(),n=this;e.length;){var r=e.shift();if(!r.length)break;n=n.getStateNode(r)}return n},t.prototype.resolve=function(t){var e,n=this;if(!t)return this.initialStateValue||ne;switch(this.type){case"parallel":return x(this.initialStateValue,(function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):ne}));case"compound":if(F(t)){var r=this.getStateNode(t);return"parallel"===r.type||"compound"===r.type?((e={})[t]=r.initialStateValue,e):t}return _(t).length?x(t,(function(t,e){return t?n.getStateNode(e).resolve(t):ne})):this.initialStateValue||{};default:return t||ne}},t.prototype.getResolvedPath=function(t){if(re(t)){var e=this.machine.idMap[t.slice("#".length)];if(!e)throw new Error("Unable to find state node '"+t+"'");return e.path}return w(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=O(this.states,(function(t){return t.initialStateValue||ne}),(function(t){return!("history"===t.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '"+this.initial+"' not found on '"+this.key+"'");e=Ft(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,entrySet:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,e)},Object.defineProperty(t.prototype,"initialState",{get:function(){this._init();var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '"+this.id+"'.");return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=F(e.target)&&re(e.target)?S(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,n){return void 0===n&&(n=!0),n?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;return Ft(this)?[this]:"compound"!==this.type||this.initial?A(k(this.initialStateValue).map((function(e){return t.getFromRelativePath(e)}))):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=v(t),n=e[0],r=e.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '"+n+"' from node with no states");var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '"+n+"' does not exist on '"+this.id+"'");return this.states[n].getFromRelativePath(r)},t.prototype.historyValue=function(t){if(_(this.states).length)return{current:t||this.initialStateValue,states:O(this.states,(function(e,n){if(!t)return e.historyValue();var r=F(t)?void 0:t[n];return e.historyValue(r||e.initialStateValue)}),(function(t){return!t.history}))}},t.prototype.resolveHistory=function(t){var e=this;if("history"!==this.type)return[this];var n=this.parent;if(!t){var r=this.target;return r?A(k(r).map((function(t){return n.getFromRelativePath(t)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(t){var e,n,r=t;try{for(var a=d(i),s=a.next();!s.done;s=a.next()){var c=s.value;r=r[o][c]}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return r})(t).current;return F(a)?[n.getStateNode(a)]:A(k(a).map((function(t){return"deep"===e.history?n.getFromRelativePath(t):[n.states[t[0]]]})))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,e=A(_(this.states).map((function(e){return t.states[e].stateIds})));return[this.id].concat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var t,e,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=d(_(i)),s=a.next();!s.done;s=a.next()){var c=i[s.value];if(c.states)try{for(var u=(n=void 0,d(c.events)),l=u.next();!l.done;l=u.next()){var f=l.value;o.add(""+f)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map((function(t){if(!F(t))return t;var n=t[0]===e.delimiter;if(n&&!e.parent)return e.getStateNodeByPath(t.slice(1));var r=n?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(r);try{return e.parent.getStateNodeByPath(r)}catch(t){throw new Error("Invalid transition definition for state node '"+e.id+"':\n"+t.message)}}))},t.prototype.formatTransition=function(t){var e=this,n=function(t){if(void 0!==t&&""!==t)return T(t)}(t.target),r="internal"in t?t.internal:!n||n.some((function(t){return F(t)&&t[0]===e.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=h(h({},t),{actions:vt(T(t.actions)),cond:$(t.cond,i),target:o,source:this,internal:r,eventType:t.event,toJSON:function(){return h(h({},a),{target:a.target?a.target.map((function(t){return"#"+t.id})):void 0,source:"#"+e.id})}});return a},t.prototype.formatTransitions=function(){var t,e,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o="*",a=i[o],s=void 0===a?[]:a,c=p(i,["*"]);n=A(_(c).map((function(t){var e=J(t,c[t]);return e})).concat(J("*",s)))}else n=[];var u=this.config.always?J("",this.config.always):[],l=this.config.onDone?J(String(Pt(this.id)),this.config.onDone):[];var f=A(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,y(J(String(Tt(t.id)),t.onDone))),t.onError&&e.push.apply(e,y(J(String(Rt(t.id)),t.onError))),e}))),h=this.after,v=A(y(l,f,n,u).map((function(t){return T(t).map((function(t){return r.formatTransition(t)}))})));try{for(var g=d(h),b=g.next();!b.done;b=g.next()){var m=b.value;v.push(m)}}catch(e){t={error:e}}finally{try{b&&!b.done&&(e=g.return)&&e.call(g)}finally{if(t)throw t.error}}return v},t}();function oe(t,e,n){void 0===n&&(n=t.context);var r="function"==typeof n?n():n;return new ie(t,e,r)}function ae(t,e){var n="function"==typeof t.context?t.context():t.context;return new ie(t,e,n)}const se=kt({failure:null}),ce=kt({errors:[]}),ue=kt({edits:null}),le=kt({data:null}),fe=ce,he=kt({failure:(t,e)=>e.data}),pe=kt({errors:(t,e)=>e.data}),de=kt({data:(t,e)=>e.data}),ve=kt({edits:(t,e)=>Object.assign(Object.assign({},t.edits),e.data)});const ye=ae({context:{data:null,edits:null,errors:[],failure:null},entry:["validate"],id:"nucleon",initial:"init",on:{DELETE:{actions:["clearData","clearEdits","clearErrors"],target:"#nucleon.busy.deleting"},FETCH:{actions:["clearData","clearEdits","clearErrors"],target:"#nucleon.busy.fetching"},REFRESH:{target:"#nucleon.busy.fetching"},SET_DATA:{actions:["setData","clearEdits","clearErrors"],target:"#nucleon.init"}},states:{busy:{states:{creating:{invoke:{onDone:{actions:["setData","clearEdits","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendPost"}},deleting:{invoke:{onDone:{actions:["clearData","clearEdits","validate"],target:"#nucleon.idle.template"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendDelete"}},fetching:{invoke:{onDone:{actions:["setData","clearErrors","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendGet"}},updating:{invoke:{onDone:{actions:["setData","clearEdits","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendPatch"}}}},fail:{exit:"clearFailure"},idle:{initial:"unknown",on:{EDIT:{actions:["applyEdit","validate"],target:".unknown"}},states:{snapshot:{initial:"unknown",states:{clean:{initial:"unknown",states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{}}},dirty:{initial:"unknown",on:{UNDO:{actions:["clearEdits","clearErrors","validate"],target:"#nucleon.idle.snapshot.clean"}},states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{on:{SUBMIT:{target:"#nucleon.busy.updating"}}}}},unknown:{always:[{cond:"hasEdits",target:"dirty"},{target:"clean"}]}}},template:{initial:"unknown",states:{clean:{initial:"unknown",states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{}}},dirty:{initial:"unknown",on:{UNDO:{actions:["clearEdits","clearErrors","validate"],target:"#nucleon.idle.template.clean"}},states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{on:{SUBMIT:{target:"#nucleon.busy.creating"}}}}},unknown:{always:[{cond:"hasEdits",target:"dirty"},{target:"clean"}]}}},unknown:{always:[{cond:"hasData",target:"snapshot"},{target:"template"}]}}},init:{always:[{cond:"hasData",target:"idle.snapshot"},{target:"idle.template"}]}}},{actions:Object.freeze({__proto__:null,clearFailure:se,clearErrors:ce,clearEdits:ue,clearData:le,validate:fe,setFailure:he,setErrors:pe,setData:de,applyEdit:ve}),guards:Object.freeze({__proto__:null,hasData:t=>null!==t.data,hasEdits:t=>null!==t.edits,hasErrors:t=>t.errors.length>0,isV8nErrorEvent:(t,e)=>Array.isArray(e.data)})});var ge;!function(t){t[t.List=0]="List",t[t.Set=1]="Set"}(ge||(ge={}));class _e{constructor(t){this.__value=t,this.__tree=_e.__parse(t)}static get True(){return me}static get False(){return be}static fromAttribute(t,e){return null===t?_e.False:""===t||t===e?_e.True:new _e(t)}matches(t,e=!1){const n=this.zoom(t).toString();return e?"not=*"===n:""!==n}zoom(t){const[e,...n]=t.split(":"),{only:r,not:i}=this.__tree;if(null==r?void 0:r[e]){const t=new _e(_e.__stringify(r[e]));return 0===n.length?t:t.zoom(n.join(":"))}return!i||i.includes(e)?_e.False:_e.True}toString(){return this.__value}toAttribute(t=""){var e;return"*"===(null===(e=this.__tree.not)||void 0===e?void 0:e[0])?t:0===this.__value.trim().length?null:this.toString()}static __stringify(t,e=""){return t.only?Object.entries(t.only).reduce(((t,[n,r])=>{const i=_e.__stringify(r,0===e.length?n:`${e}:${n}`);return 0===t.length?i:`${t} ${i}`}),""):t.not?`${0===e.length?"":`${e}:`}not=${t.not.join(",")}`:e}static __parse(t){const e={},n={branch:e,buffer:"",entity:ge.List,tree:e};return Array.from(`${t} `).forEach(((e,r)=>{try{_e.__processors[n.entity](n,e)}catch(e){const n="This error occured at: ",i=t=>t.substring(Math.max(0,r-30),r+30),o=i(t),a=" ".repeat(n.length)+i("^".padStart(r+1," "));throw new SyntaxError([e.message,`${n}${o}`,a].join("\n"))}})),e}}_e.__processors={[ge.List](t,e){var n,r,i,o;if(Array.isArray(t.branch))throw new SyntaxError("Paths are not allowed in sets.");if("="===e){if("not"===t.buffer){const e=null!==(n=t.branch.not)&&void 0!==n?n:[];return delete t.branch.only,t.branch.not=e,t.entity=ge.Set,t.branch=e,void(t.buffer="")}throw new SyntaxError(`Unknown modifier "${t.buffer}".`)}if(/^\s$/.test(e)||":"===e){if(t.buffer.length>0){const n=t.buffer,a=null!==(i=null===(r=t.branch.only)||void 0===r?void 0:r[n])&&void 0!==i?i:{};":"!==e&&(a.not=["*"]),!0!==(null===(o=t.branch.not)||void 0===o?void 0:o.includes("*"))&&(t.branch.only=Object.assign(Object.assign({},t.branch.only),{[n]:a}),delete t.branch.not),t.branch=":"===e?a:t.tree,t.buffer=""}}else{if(!/^[a-z]|-$/.test(e))throw new SyntaxError(`Expected [a-z], "-", ":" or a whitespace, but got "${e}" instead.`);t.buffer+=e}},[ge.Set](t,e){if(!Array.isArray(t.branch))throw new SyntaxError("Unexpected set item.");if(0!==t.buffer.length||!/^\s$/.test(e)){if(","===e||"*"===e||/^\s$/.test(e)){const n="*"===e?"*":t.buffer,r=new Set([...t.branch,n]),i=r.has("*")?new Set(["*"]):r;return t.branch.splice(0,t.branch.length,...i),t.entity=","===e?ge.Set:ge.List,t.branch=","===e?t.branch:t.tree,void(t.buffer="")}if(!/^[a-z]|-$/.test(e))throw new SyntaxError(`Expected [a-z], "-", "," or a whitespace, but got "${e}" instead.`);t.buffer+=e}}};const be=new _e(""),me=new _e("not=*");var we=Array.isArray,je=t?t.prototype:void 0,Se=je?je.toString:void 0;function xe(t){if("string"==typeof t)return t;if(we(t))return function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}(t,xe)+"";if(e(t))return Se?Se.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}function Oe(t){if(!n(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var Ee,ke=i["__core-js_shared__"],Ae=(Ee=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+Ee:"";var Pe=Function.prototype.toString;function Te(t){if(null!=t){try{return Pe.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Re=/^\[object .+?Constructor\]$/,Ne=Function.prototype,De=Object.prototype,Ie=Ne.toString,Le=De.hasOwnProperty,Ce=RegExp("^"+Ie.call(Le).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fe(t){return!(!n(t)||(e=t,Ae&&Ae in e))&&(Oe(t)?Ce:Re).test(Te(t));var e}function $e(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Fe(n)?n:void 0}var Ve=$e(i,"WeakMap"),Me=/^(?:0|[1-9]\d*)$/;function Ue(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Me.test(t))&&t>-1&&t%1==0&&t<e}function ze(t,e){return t===e||t!=t&&e!=e}function We(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Be(t){return null!=t&&We(t.length)&&!Oe(t)}var qe=Object.prototype;function He(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||qe)}function Je(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ge(t){return o(t)&&"[object Arguments]"==r(t)}var Ze=Object.prototype,Ke=Ze.hasOwnProperty,Qe=Ze.propertyIsEnumerable,Xe=Ge(function(){return arguments}())?Ge:function(t){return o(t)&&Ke.call(t,"callee")&&!Qe.call(t,"callee")};var Ye="object"==typeof exports&&exports&&!exports.nodeType&&exports,tn=Ye&&"object"==typeof module&&module&&!module.nodeType&&module,en=tn&&tn.exports===Ye?i.Buffer:void 0,nn=(en?en.isBuffer:void 0)||function(){return!1},rn={};function on(t){return function(e){return t(e)}}rn["[object Float32Array]"]=rn["[object Float64Array]"]=rn["[object Int8Array]"]=rn["[object Int16Array]"]=rn["[object Int32Array]"]=rn["[object Uint8Array]"]=rn["[object Uint8ClampedArray]"]=rn["[object Uint16Array]"]=rn["[object Uint32Array]"]=!0,rn["[object Arguments]"]=rn["[object Array]"]=rn["[object ArrayBuffer]"]=rn["[object Boolean]"]=rn["[object DataView]"]=rn["[object Date]"]=rn["[object Error]"]=rn["[object Function]"]=rn["[object Map]"]=rn["[object Number]"]=rn["[object Object]"]=rn["[object RegExp]"]=rn["[object Set]"]=rn["[object String]"]=rn["[object WeakMap]"]=!1;var an="object"==typeof exports&&exports&&!exports.nodeType&&exports,sn=an&&"object"==typeof module&&module&&!module.nodeType&&module,cn=sn&&sn.exports===an&&a.process,un=function(){try{var t=sn&&sn.require&&sn.require("util").types;return t||cn&&cn.binding&&cn.binding("util")}catch(t){}}(),ln=un&&un.isTypedArray,fn=ln?on(ln):function(t){return o(t)&&We(t.length)&&!!rn[r(t)]},hn=Object.prototype.hasOwnProperty;function pn(t,e){var n=we(t),r=!n&&Xe(t),i=!n&&!r&&nn(t),o=!n&&!r&&!i&&fn(t),a=n||r||i||o,s=a?Je(t.length,String):[],c=s.length;for(var u in t)!e&&!hn.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ue(u,c))||s.push(u);return s}function dn(t,e){return function(n){return t(e(n))}}var vn=dn(Object.keys,Object),yn=Object.prototype.hasOwnProperty;function gn(t){return Be(t)?pn(t):function(t){if(!He(t))return vn(t);var e=[];for(var n in Object(t))yn.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var _n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bn=/^\w*$/;var mn=$e(Object,"create");var wn=Object.prototype.hasOwnProperty;var jn=Object.prototype.hasOwnProperty;function Sn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function xn(t,e){for(var n=t.length;n--;)if(ze(t[n][0],e))return n;return-1}Sn.prototype.clear=function(){this.__data__=mn?mn(null):{},this.size=0},Sn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Sn.prototype.get=function(t){var e=this.__data__;if(mn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return wn.call(e,t)?e[t]:void 0},Sn.prototype.has=function(t){var e=this.__data__;return mn?void 0!==e[t]:jn.call(e,t)},Sn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=mn&&void 0===e?"__lodash_hash_undefined__":e,this};var On=Array.prototype.splice;function En(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}En.prototype.clear=function(){this.__data__=[],this.size=0},En.prototype.delete=function(t){var e=this.__data__,n=xn(e,t);return!(n<0)&&(n==e.length-1?e.pop():On.call(e,n,1),--this.size,!0)},En.prototype.get=function(t){var e=this.__data__,n=xn(e,t);return n<0?void 0:e[n][1]},En.prototype.has=function(t){return xn(this.__data__,t)>-1},En.prototype.set=function(t,e){var n=this.__data__,r=xn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var kn=$e(i,"Map");function An(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Pn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Pn.prototype.clear=function(){this.size=0,this.__data__={hash:new Sn,map:new(kn||En),string:new Sn}},Pn.prototype.delete=function(t){var e=An(this,t).delete(t);return this.size-=e?1:0,e},Pn.prototype.get=function(t){return An(this,t).get(t)},Pn.prototype.has=function(t){return An(this,t).has(t)},Pn.prototype.set=function(t,e){var n=An(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Tn(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Tn.Cache||Pn),n}Tn.Cache=Pn;var Rn,Nn,Dn,In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ln=/\\(\\)?/g,Cn=(Rn=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(In,(function(t,n,r,i){e.push(r?i.replace(Ln,"$1"):n||t)})),e},Nn=Tn(Rn,(function(t){return 500===Dn.size&&Dn.clear(),t})),Dn=Nn.cache,Nn),Fn=Cn;function $n(t,n){return we(t)?t:function(t,n){if(we(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!e(t))||bn.test(t)||!_n.test(t)||null!=n&&t in Object(n)}(t,n)?[t]:Fn(function(t){return null==t?"":xe(t)}(t))}function Vn(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}function Mn(t,e,n){var r=null==t?void 0:function(t,e){for(var n=0,r=(e=$n(e,t)).length;null!=t&&n<r;)t=t[Vn(e[n++])];return n&&n==r?t:void 0}(t,e);return void 0===r?n:r}function Un(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function zn(t){var e=this.__data__=new En(t);this.size=e.size}function Wn(){return[]}zn.prototype.clear=function(){this.__data__=new En,this.size=0},zn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},zn.prototype.get=function(t){return this.__data__.get(t)},zn.prototype.has=function(t){return this.__data__.has(t)},zn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof En){var r=n.__data__;if(!kn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Pn(r)}return n.set(t,e),this.size=n.size,this};var Bn=Object.prototype.propertyIsEnumerable,qn=Object.getOwnPropertySymbols,Hn=qn?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}(qn(t),(function(e){return Bn.call(t,e)})))}:Wn,Jn=Hn;function Gn(t,e,n){var r=e(t);return we(t)?r:Un(r,n(t))}function Zn(t){return Gn(t,gn,Jn)}var Kn=$e(i,"DataView"),Qn=$e(i,"Promise"),Xn=$e(i,"Set"),Yn=Te(Kn),tr=Te(kn),er=Te(Qn),nr=Te(Xn),rr=Te(Ve),ir=r;(Kn&&"[object DataView]"!=ir(new Kn(new ArrayBuffer(1)))||kn&&"[object Map]"!=ir(new kn)||Qn&&"[object Promise]"!=ir(Qn.resolve())||Xn&&"[object Set]"!=ir(new Xn)||Ve&&"[object WeakMap]"!=ir(new Ve))&&(ir=function(t){var e=r(t),n="[object Object]"==e?t.constructor:void 0,i=n?Te(n):"";if(i)switch(i){case Yn:return"[object DataView]";case tr:return"[object Map]";case er:return"[object Promise]";case nr:return"[object Set]";case rr:return"[object WeakMap]"}return e});var or=ir,ar=i.Uint8Array;function sr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Pn;++e<n;)this.add(t[e])}function cr(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function ur(t,e){return t.has(e)}sr.prototype.add=sr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},sr.prototype.has=function(t){return this.__data__.has(t)};function lr(t,e,n,r,i,o){var a=1&n,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(t),l=o.get(e);if(u&&l)return u==e&&l==t;var f=-1,h=!0,p=2&n?new sr:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var d=t[f],v=e[f];if(r)var y=a?r(v,d,f,e,t,o):r(d,v,f,t,e,o);if(void 0!==y){if(y)continue;h=!1;break}if(p){if(!cr(e,(function(t,e){if(!ur(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){h=!1;break}}else if(d!==v&&!i(d,v,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function fr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function hr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var pr=t?t.prototype:void 0,dr=pr?pr.valueOf:void 0;var vr=Object.prototype.hasOwnProperty;var yr="[object Object]",gr=Object.prototype.hasOwnProperty;function _r(t,e,n,r,i,o){var a=we(t),s=we(e),c=a?"[object Array]":or(t),u=s?"[object Array]":or(e),l=(c="[object Arguments]"==c?yr:c)==yr,f=(u="[object Arguments]"==u?yr:u)==yr,h=c==u;if(h&&nn(t)){if(!nn(e))return!1;a=!0,l=!1}if(h&&!l)return o||(o=new zn),a||fn(t)?lr(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new ar(t),new ar(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ze(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=fr;case"[object Set]":var c=1&r;if(s||(s=hr),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var l=lr(s(t),s(e),r,i,o,a);return a.delete(t),l;case"[object Symbol]":if(dr)return dr.call(t)==dr.call(e)}return!1}(t,e,c,n,r,i,o);if(!(1&n)){var p=l&&gr.call(t,"__wrapped__"),d=f&&gr.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,y=d?e.value():e;return o||(o=new zn),i(v,y,n,r,o)}}return!!h&&(o||(o=new zn),function(t,e,n,r,i,o){var a=1&n,s=Zn(t),c=s.length;if(c!=Zn(e).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in e:vr.call(e,l)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var d=a;++u<c;){var v=t[l=s[u]],y=e[l];if(r)var g=a?r(y,v,l,e,t,o):r(v,y,l,t,e,o);if(!(void 0===g?v===y||i(v,y,n,r,o):g)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var _=t.constructor,b=e.constructor;_==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,i,o))}function br(t,e,n,r,i){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!=t&&e!=e:_r(t,e,n,r,br,i))}function mr(t,e){return br(t,e)}class wr extends Error{constructor(){super("not enough info to update; please reload resource instead")}}var jr=s((function(t){var e=t.exports=function(t){return new n(t)};function n(t){this.value=t}function r(t,e,n){var r=[],a=[],l=!0;return function t(f){var h=n?i(f):f,p={},d=!0,v={node:h,node_:f,path:[].concat(r),parent:a[a.length-1],parents:a,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(t,e){v.isRoot||(v.parent.node[v.key]=t),v.node=t,e&&(d=!1)},delete:function(t){delete v.parent.node[v.key],t&&(d=!1)},remove:function(t){s(v.parent.node)?v.parent.node.splice(v.key,1):delete v.parent.node[v.key],t&&(d=!1)},keys:null,before:function(t){p.before=t},after:function(t){p.after=t},pre:function(t){p.pre=t},post:function(t){p.post=t},stop:function(){l=!1},block:function(){d=!1}};if(!l)return v;function y(){if("object"==typeof v.node&&null!==v.node){v.keys&&v.node_===v.node||(v.keys=o(v.node)),v.isLeaf=0==v.keys.length;for(var t=0;t<a.length;t++)if(a[t].node_===f){v.circular=a[t];break}}else v.isLeaf=!0,v.keys=null;v.notLeaf=!v.isLeaf,v.notRoot=!v.isRoot}y();var g=e.call(v,v.node);return void 0!==g&&v.update&&v.update(g),p.before&&p.before.call(v,v.node),d?("object"!=typeof v.node||null===v.node||v.circular||(a.push(v),y(),c(v.keys,(function(e,i){r.push(e),p.pre&&p.pre.call(v,v.node[e],e);var o=t(v.node[e]);n&&u.call(v.node,e)&&(v.node[e]=o.node),o.isLast=i==v.keys.length-1,o.isFirst=0==i,p.post&&p.post.call(v,o),r.pop()})),a.pop()),p.after&&p.after.call(v,v.node),v):v}(t).node}function i(t){if("object"==typeof t&&null!==t){var e;if(s(t))e=[];else if("[object Date]"===a(t))e=new Date(t.getTime?t.getTime():t);else if(function(t){return"[object RegExp]"===a(t)}(t))e=new RegExp(t);else if(function(t){return"[object Error]"===a(t)}(t))e={message:t.message};else if(function(t){return"[object Boolean]"===a(t)}(t))e=new Boolean(t);else if(function(t){return"[object Number]"===a(t)}(t))e=new Number(t);else if(function(t){return"[object String]"===a(t)}(t))e=new String(t);else if(Object.create&&Object.getPrototypeOf)e=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)e={};else{var n=t.constructor&&t.constructor.prototype||t.__proto__||{},r=function(){};r.prototype=n,e=new r}return c(o(t),(function(n){e[n]=t[n]})),e}return t}n.prototype.get=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!u.call(e,r)){e=void 0;break}e=e[r]}return e},n.prototype.has=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!u.call(e,r))return!1;e=e[r]}return!0},n.prototype.set=function(t,e){for(var n=this.value,r=0;r<t.length-1;r++){var i=t[r];u.call(n,i)||(n[i]={}),n=n[i]}return n[t[r]]=e,e},n.prototype.map=function(t){return r(this.value,t,!0)},n.prototype.forEach=function(t){return this.value=r(this.value,t,!1),this.value},n.prototype.reduce=function(t,e){var n=1===arguments.length,r=n?this.value:e;return this.forEach((function(e){this.isRoot&&n||(r=t.call(this,r,e))})),r},n.prototype.paths=function(){var t=[];return this.forEach((function(e){t.push(this.path)})),t},n.prototype.nodes=function(){var t=[];return this.forEach((function(e){t.push(this.node)})),t},n.prototype.clone=function(){var t=[],e=[];return function n(r){for(var a=0;a<t.length;a++)if(t[a]===r)return e[a];if("object"==typeof r&&null!==r){var s=i(r);return t.push(r),e.push(s),c(o(r),(function(t){s[t]=n(r[t])})),t.pop(),e.pop(),s}return r}(this.value)};var o=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};function a(t){return Object.prototype.toString.call(t)}var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},c=function(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)};c(o(n.prototype),(function(t){e[t]=function(e){var r=[].slice.call(arguments,1),i=new n(e);return i[t].apply(i,r)}}));var u=Object.hasOwnProperty||function(t,e){return e in t}}));class Sr{constructor(){this.__callbacks=[]}share(t){const{related:e,source:n,data:r}=t,i=null===r?new Map([[n,null]]):Sr.__createPatch(r);[...this.__callbacks].forEach((t=>{t((t=>{const n=Sr.__applyPatch(i,t,e);return mr(t,n)?t:n}))}))}track(t){return this.__callbacks.push(t),()=>{this.__callbacks.splice(this.__callbacks.indexOf(t),1)}}cease(){this.__callbacks.length=0}static __isCollection(t){return"string"==typeof Mn(t,"_links.first.href")}static __isResource(t){return"string"==typeof Mn(t,"_links.self.href")}static __approximateURI(t){try{const e=new URL(t);return e.search="",e.hash="",e.toString()}catch(e){return t}}static __createPatch(t){return jr(t).reduce((function(t,e){if(!Sr.__isResource(e)||Sr.__isCollection(e))return t;const n=jr(e).map((function(){var t;(null===(t=this.key)||void 0===t?void 0:t.startsWith("_"))&&this.delete(!0)}));return t.set(e._links.self.href,n),t}),new Map)}static __applyPatch(t,e,n){var r,i;const o=null!==(r=null==n?void 0:n.map((t=>Sr.__approximateURI(t))))&&void 0!==r?r:[];return null!==(i=jr({data:e}).map((function(e){if(!Sr.__isResource(e))return;const n=e._links.self.href,r=Sr.__approximateURI(n);if(o.includes(r))throw new Sr.UpdateError;if(t.has(n)){const r=t.get(n);if(r)return this.update(Object.assign(Object.assign({},e),r),!0);if(!this.parent.parent)return this.delete(!0);throw new Sr.UpdateError}})).data)&&void 0!==i?i:null}}Sr.UpdateError=wr;var xr=s((function(t,e){t.exports=function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||s(t)||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 s(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=s(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}var l={};l[l.Fatal=0]="Fatal",l[l.Error=0]="Error",l[l.Warn=1]="Warn",l[l.Log=2]="Log",l[l.Info=3]="Info",l[l.Success=3]="Success",l[l.Debug=4]="Debug",l[l.Trace=5]="Trace",l[l.Silent=-1/0]="Silent",l[l.Verbose=1/0]="Verbose";var f={silent:{level:-1},fatal:{level:l.Fatal},error:{level:l.Error},warn:{level:l.Warn},log:{level:l.Log},info:{level:l.Info},success:{level:l.Success},debug:{level:l.Debug},trace:{level:l.Trace},verbose:{level:l.Trace},ready:{level:l.Info},start:{level:l.Info}};function h(t){return e=t,!("[object Object]"!==Object.prototype.toString.call(e)||!t.message&&!t.args||t.stack);var e}var p=!1,d=[],v=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in t(this,e),this._reporters=n.reporters||[],this._types=n.types||f,this.level=void 0!==n.level?n.level:3,this._defaults=n.defaults||{},this._async=void 0!==n.async?n.async:void 0,this._stdout=n.stdout,this._stderr=n.stderr,this._mockFn=n.mockFn,this._throttle=n.throttle||1e3,this._throttleMin=n.throttleMin||5,this._types){var i=o(o({type:r},this._types[r]),this._defaults);this[r]=this._wrapLogFn(i),this[r].raw=this._wrapLogFn(i,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}return n(e,[{key:"create",value:function(t){return new e(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},t))}},{key:"withDefaults",value:function(t){return this.create({defaults:Object.assign({},this._defaults,t)})}},{key:"withTag",value:function(t){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+t:t})}},{key:"addReporter",value:function(t){return this._reporters.push(t),this}},{key:"removeReporter",value:function(t){if(t){var e=this._reporters.indexOf(t);if(e>=0)return this._reporters.splice(e,1)}else this._reporters.splice(0);return this}},{key:"setReporters",value:function(t){return this._reporters=Array.isArray(t)?t:[t],this}},{key:"wrapAll",value:function(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function(){for(var t in this._types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}},{key:"restoreConsole",value:function(){for(var t in this._types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}},{key:"wrapStd",value:function(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}},{key:"_wrapStream",value:function(t,e){var n=this;t&&(t.__write||(t.__write=t.write),t.write=function(t){n[e].raw(String(t).trim())})}},{key:"restoreStd",value:function(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}},{key:"_restoreStream",value:function(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}},{key:"pauseLogs",value:function(){p=!0}},{key:"resumeLogs",value:function(){p=!1;var t,e=u(d.splice(0));try{for(e.s();!(t=e.n()).done;){var n=t.value;n[0]._logFn(n[1],n[2])}}catch(t){e.e(t)}finally{e.f()}}},{key:"mockTypes",value:function(t){if(this._mockFn=t||this._mockFn,"function"==typeof this._mockFn)for(var e in this._types)this[e]=this._mockFn(e,this._types[e])||this[e],this[e].raw=this[e]}},{key:"_wrapLogFn",value:function(t,e){var n=this;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(!p)return n._logFn(t,i,e);d.push([n,t,i,e])}}},{key:"_logFn",value:function(t,e,n){var r=this;if(t.level>this.level)return!!this._async&&Promise.resolve(!1);var i=Object.assign({date:new Date,args:[]},t);!n&&1===e.length&&h(e[0])?Object.assign(i,e[0]):i.args=Array.from(e),i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split("\n")),i.args.push("\n"+i.additional.join("\n")),delete i.additional),i.type="string"==typeof i.type?i.type.toLowerCase():"",i.tag="string"==typeof i.tag?i.tag.toLowerCase():"";var s=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=r._lastLogCount-r._throttleMin;if(r._lastLog&&e>0){var n=a(r._lastLog.args);e>1&&n.push("(repeated ".concat(e," times)")),r._log(o(o({},r._lastLog),{},{args:n})),r._lastLogCount=1}if(t){if(r._lastLog=i,r._async)return r._logAsync(i);r._log(i)}};clearTimeout(this._throttleTimeout);var c=this._lastLogTime?i.date-this._lastLogTime:0;if(this._lastLogTime=i.date,c<this._throttle)try{var u=JSON.stringify([i.type,i.tag,i.args]),l=this._lastLogSerialized===u;if(this._lastLogSerialized=u,l&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(s,this._throttle))}catch(t){}s(!0)}},{key:"_log",value:function(t){var e,n=u(this._reporters);try{for(n.s();!(e=n.n()).done;)e.value.log(t,{async:!1,stdout:this.stdout,stderr:this.stderr})}catch(t){n.e(t)}finally{n.f()}}},{key:"_logAsync",value:function(t){var e=this;return Promise.all(this._reporters.map((function(n){return n.log(t,{async:!0,stdout:e.stdout,stderr:e.stderr})})))}},{key:"stdout",get:function(){return this._stdout||console._stdout}},{key:"stderr",get:function(){return this._stderr||console._stderr}}]),e}();v.prototype.add=v.prototype.addReporter,v.prototype.remove=v.prototype.removeReporter,v.prototype.clear=v.prototype.removeReporter,v.prototype.withScope=v.prototype.withTag,v.prototype.mock=v.prototype.mockTypes,v.prototype.pause=v.prototype.pauseLogs,v.prototype.resume=v.prototype.resumeLogs;var y,g=function(){function e(n){t(this,e),this.options=Object.assign({},n),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}return n(e,[{key:"log",value:function(t){var e=t.level<1?console.__error||console.error:1===t.level&&console.warn?console.__warn||console.warn:console.__log||console.log,n="log"!==t.type?t.type:"",r=t.tag?t.tag:"",i=this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor,o="\n background: ".concat(i,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n "),s="%c".concat([r,n].filter(Boolean).join(":"));"string"==typeof t.args[0]?e.apply(void 0,["".concat(s,"%c ").concat(t.args[0]),o,""].concat(a(t.args.slice(1)))):e.apply(void 0,[s,o].concat(a(t.args)))}}]),e}();return"undefined"!=typeof window&&window.consola||((y=new v({reporters:[new g]})).Consola=v,y.LogLevel=l,y.BrowserReporter=g,y)}()})),Or=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Er=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),kr=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Ar=function(){function t(e,n,r,i){Or(this,t),this.name=e,this.fn=n,this.args=r,this.modifiers=i}return Er(t,[{key:"_test",value:function(t){var e=this.fn;try{Tr(this.modifiers.slice(),e)(t)}catch(t){e=function(){return!1}}try{return Tr(this.modifiers.slice(),e)(t)}catch(t){return!1}}},{key:"_check",value:function(t){try{Tr(this.modifiers.slice(),this.fn)(t)}catch(t){if(Tr(this.modifiers.slice(),(function(t){return t}))(!1))return}if(!Tr(this.modifiers.slice(),this.fn)(t))throw null}},{key:"_testAsync",value:function(t){var e=this;return new Promise((function(n,r){Rr(e.modifiers.slice(),e.fn)(t).then((function(e){e?n(t):r(null)})).catch((function(t){return r(t)}))}))}}]),t}();function Pr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"simple";return"object"==typeof t?t[e]:t}function Tr(t,e){if(t.length){var n=t.shift(),r=Tr(t,e);return n.perform(r)}return Pr(e)}function Rr(t,e){if(t.length){var n=t.shift(),r=Rr(t,e);return n.performAsync(r)}return function(t){return Promise.resolve(Pr(e,"async")(t))}}var Nr=function t(e,n,r){Or(this,t),this.name=e,this.perform=n,this.performAsync=r},Dr=function(t){function e(t,n,r,i){Or(this,e);for(var o=arguments.length,a=Array(o>4?o-4:0),s=4;s<o;s++)a[s-4]=arguments[s];var c=kr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a));return Error.captureStackTrace&&Error.captureStackTrace(c,e),c.rule=t,c.value=n,c.cause=r,c.target=i,c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,Error),e}(),Ir=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Or(this,t),this.chain=e,this.nextRuleModifiers=n}return Er(t,[{key:"_applyRule",value:function(t,e){var n=this;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.chain.push(new Ar(e,t.apply(n,i),i,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}}},{key:"_applyModifier",value:function(t,e){return this.nextRuleModifiers.push(new Nr(e,t.simple,t.async)),this}},{key:"_clone",value:function(){return new t(this.chain.slice(),this.nextRuleModifiers.slice())}},{key:"test",value:function(t){return this.chain.every((function(e){return e._test(t)}))}},{key:"testAll",value:function(t){var e=[];return this.chain.forEach((function(n){try{n._check(t)}catch(r){e.push(new Dr(n,t,r))}})),e}},{key:"check",value:function(t){this.chain.forEach((function(e){try{e._check(t)}catch(n){throw new Dr(e,t,n)}}))}},{key:"testAsync",value:function(t){var e=this;return new Promise((function(n,r){Lr(t,e.chain.slice(),n,r)}))}}]),t}();function Lr(t,e,n,r){if(e.length){var i=e.shift();i._testAsync(t).then((function(){Lr(t,e,n,r)}),(function(e){r(new Dr(i,t,e))}))}else n(t)}function Cr(){return $r(new Ir)}var Fr={};function $r(t){return new Proxy(t,{get:function(e,n){if(n in e)return e[n];var r=$r(t._clone());return n in Vr?r._applyModifier(Vr[n],n):n in Fr?r._applyRule(Fr[n],n):n in Ur?r._applyRule(Ur[n],n):void 0}})}Cr.extend=function(t){Object.assign(Fr,t)},Cr.clearCustomRules=function(){Fr={}};var Vr={not:{simple:function(t){return function(e){return!t(e)}},async:function(t){return function(e){return Promise.resolve(t(e)).then((function(t){return!t})).catch((function(t){return!0}))}}},some:{simple:function(t){return function(e){return Mr(e).some((function(e){try{return t(e)}catch(t){return!1}}))}},async:function(t){return function(e){return Promise.all(Mr(e).map((function(e){try{return t(e).catch((function(t){return!1}))}catch(t){return!1}}))).then((function(t){return t.some(Boolean)}))}}},every:{simple:function(t){return function(e){return Mr(e).every(t)}},async:function(t){return function(e){return Promise.all(Mr(e).map(t)).then((function(t){return t.every(Boolean)}))}}}};function Mr(t){return"string"==typeof t?t.split(""):t}var Ur={equal:function(t){return function(e){return e==t}},exact:function(t){return function(e){return e===t}},number:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(e){return"number"==typeof e&&(t||isFinite(e))}},integer:function(){return function(t){return(Number.isInteger||Wr)(t)}},numeric:function(){return function(t){return!isNaN(parseFloat(t))&&isFinite(t)}},string:function(){return zr("string")},boolean:function(){return zr("boolean")},undefined:function(){return zr("undefined")},null:function(){return zr("null")},array:function(){return zr("array")},object:function(){return zr("object")},instanceOf:function(t){return function(e){return e instanceof t}},pattern:function(t){return function(e){return t.test(e)}},lowercase:function(){return function(t){return/^([a-z]+\s*)+$/.test(t)}},uppercase:function(){return function(t){return/^([A-Z]+\s*)+$/.test(t)}},vowel:function(){return function(t){return/^[aeiou]+$/i.test(t)}},consonant:function(){return function(t){return/^(?=[^aeiou])([a-z]+)$/i.test(t)}},first:function(t){return function(e){return e[0]==t}},last:function(t){return function(e){return e[e.length-1]==t}},empty:function(){return function(t){return 0===t.length}},length:function(t,e){return function(n){return n.length>=t&&n.length<=(e||t)}},minLength:function(t){return function(e){return e.length>=t}},maxLength:function(t){return function(e){return e.length<=t}},negative:function(){return function(t){return t<0}},positive:function(){return function(t){return t>=0}},between:function(t,e){return function(n){return n>=t&&n<=e}},range:function(t,e){return function(n){return n>=t&&n<=e}},lessThan:function(t){return function(e){return e<t}},lessThanOrEqual:function(t){return function(e){return e<=t}},greaterThan:function(t){return function(e){return e>t}},greaterThanOrEqual:function(t){return function(e){return e>=t}},even:function(){return function(t){return t%2==0}},odd:function(){return function(t){return t%2!=0}},includes:function(t){return function(e){return~e.indexOf(t)}},schema:function(t){return function(t){return{simple:function(e){var n=[];if(Object.keys(t).forEach((function(r){var i=t[r];try{i.check((e||{})[r])}catch(t){t.target=r,n.push(t)}})),n.length>0)throw n;return!0},async:function(e){var n=[],r=Object.keys(t).map((function(r){return t[r].testAsync((e||{})[r]).catch((function(t){t.target=r,n.push(t)}))}));return Promise.all(r).then((function(t){if(n.length>0)throw n;return!0}))}}}(t)},passesAnyOf:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.some((function(e){return e.test(t)}))}},optional:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return e&&"string"==typeof n&&""===n.trim()||null!=n&&t.check(n),!0}}};function zr(t){return function(e){return Array.isArray(e)&&"array"===t||null===e&&"null"===t||typeof e===t}}function Wr(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}Cr.extend({curieChain:()=>t=>Array.isArray(t)&&t[0]instanceof URL&&t.slice(1).every((t=>"string"==typeof t)),typeOf:t=>e=>typeof e===t});const Br=Cr().schema({clear:Cr().typeOf("function"),getItem:Cr().typeOf("function"),key:Cr().typeOf("function"),length:Cr().number(),removeItem:Cr().typeOf("function"),setItem:Cr().typeOf("function")});class qr extends Error{constructor(t){qr.v8n.constructor.check(t),super(`authentication failed with code ${t.code}`),this.originalError=t.originalError,this.code=t.code}}qr.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",qr.INVALID_NEW_PASSWORD="INVALID_NEW_PASSWORD",qr.UNAUTHORIZED="UNAUTHORIZED",qr.UNKNOWN="UNKNOWN",qr.v8n={constructor:Cr().schema({code:Cr().passesAnyOf(Cr().exact(qr.NEW_PASSWORD_REQUIRED),Cr().exact(qr.INVALID_NEW_PASSWORD),Cr().exact(qr.UNAUTHORIZED),Cr().exact(qr.UNKNOWN))})};var Hr=u(s((function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}))),Jr=s((function(t){t.exports=function(t,e){return e.get?e.get.call(t):e.value},t.exports.__esModule=!0,t.exports.default=t.exports})),Gr=s((function(t){t.exports=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),Zr=u(s((function(t){t.exports=function(t,e){var n=Gr(t,e,"get");return Jr(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}))),Kr=new WeakMap,Qr=function(){function t(){Kr.set(this,{writable:!0,value:new Map})}var e=t.prototype;return e.key=function(t){t=Number.parseInt(t,10);for(var e=Zr(this,Kr).keys(),n=0,r=e.next();!r.done;){if(n===t)return r.value;n+=1,r=e.next()}return null},e.getItem=function(t){var e;return null!=(e=Zr(this,Kr).get(""+t))?e:null},e.setItem=function(t,e){Zr(this,Kr).set(""+t,""+e)},e.removeItem=function(t){Zr(this,Kr).delete(""+t)},e.clear=function(){Zr(this,Kr).clear()},Hr(t,[{key:"length",get:function(){return Zr(this,Kr).size}}]),t}(),Xr=Qr;class Yr extends Error{constructor(t){super(),Yr.v8n.constructor.check(t),this.response=t}}Yr.v8n={constructor:Cr().instanceOf(l.Response)};var ti=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},ei=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function ni(t){const{json:e}=t,n=ei(t,["json"]);if("_links"in e){const t=e._links;e._links=Object.entries(t).reduce(((t,[e,r])=>{if(Array.isArray(r))return Object.assign(Object.assign({},t),{[e]:r});const i=new si(Object.assign(Object.assign({},n),{path:[new URL(r.href)]})),o={delete:i.delete.bind(i),follow:i.follow.bind(i),get:i.get.bind(i),patch:i.patch.bind(i),post:i.post.bind(i),put:i.put.bind(i)};return Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),o)})}),{})}if("_embedded"in e){const t=e._embedded;e._embedded=Object.entries(t).reduce(((t,[e,r])=>Object.assign(t,{[e]:Array.isArray(r)?r.map((t=>ni(Object.assign(Object.assign({},n),{json:t})))):ni(Object.assign(Object.assign({},n),{json:r}))})),{})}return e}class ri extends l.Response{constructor(t){ri.v8n.constructor.check(t),super(t.body,t),this._console=t.console,this._fetch=t.fetch,this._cache=t.cache}json(){const t=Object.create(null,{json:{get:()=>super.json}});return ti(this,void 0,void 0,(function*(){const e=yield t.json.call(this),n={cache:this._cache,console:this._console,fetch:this._fetch};return ni(Object.assign({json:e},n))}))}}ri.v8n={constructor:Cr().schema({cache:Br,console:Cr().instanceOf(xr.constructor),fetch:Cr().typeOf("function")})};var ii=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};function oi(t,e){const n=""===t?"":t+":";return"string"==typeof e?n+e:Array.isArray(e)?e.map((e=>oi(t,e))).join():Object.entries(e).map((([t,e])=>oi(n+t,e))).join()}function ai(t){return"string"==typeof t?t:Array.isArray(t)?t.map((t=>ai(t))).join():Object.entries(t).map((([t,e])=>`${t} ${e}`)).join()}class si{constructor(t){si.v8n.classConstructor.check(t),this._path=t.path,this._fetch=t.fetch,this._cache=t.cache,this._console=t.console}get(t){return ii(this,void 0,void 0,(function*(){si.v8n.get.check(t);const e=yield this._resolve(),{filters:n,fields:r,offset:i,limit:o,order:a,zoom:s}=null!=t?t:{};void 0!==n&&n.forEach((t=>{[...new URLSearchParams(t).entries()].forEach((([t,n])=>e.searchParams.append(t,n)))})),void 0!==r&&e.searchParams.set("fields",r.join(",")),void 0!==i&&e.searchParams.set("offset",String(i)),void 0!==o&&e.searchParams.set("limit",String(o)),void 0!==a&&e.searchParams.set("order",ai(a)),void 0!==s&&e.searchParams.set("zoom",oi("",s));const c=yield this._fetch(new l.Request(e.toString())),u={cache:this._cache,console:this._console,fetch:this._fetch};return new ri(Object.assign(Object.assign(Object.assign({},u),c),{body:yield c.text()}))}))}put(t){return ii(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new l.Request(e.toString(),{body:JSON.stringify(t),method:"PUT"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new ri(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}post(t){return ii(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new l.Request(e.toString(),{body:JSON.stringify(t),method:"POST"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new ri(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}patch(t){return ii(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new l.Request(e.toString(),{body:JSON.stringify(t),method:"PATCH"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new ri(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}delete(){return ii(this,void 0,void 0,(function*(){const t=yield this._resolve(),e=new l.Request(t.toString(),{method:"DELETE"}),n=yield this._fetch(e),r={cache:this._cache,console:this._console,fetch:this._fetch};return new ri(Object.assign(Object.assign(Object.assign({},r),n),{body:yield n.text()}))}))}follow(t){si.v8n.follow.check(t);const e={cache:this._cache,console:this._console,fetch:this._fetch},n=this._path.concat(t);return new si(Object.assign(Object.assign({},e),{path:n}))}_resolve(){return ii(this,void 0,void 0,(function*(){if(1===this._path.length)return new URL(this._path[0].toString());const[t,e]=this._path,n=`${t.toString()} > ${e}`,r={cache:this._cache,console:this._console,fetch:this._fetch};this._console.trace(`Trying to resolve ${n}...`);const i=this._cache.getItem(n);if(i){this._console.success(`Resolved ${n} to ${i.toString()} using cache.`);const t=[new URL(i),...this._path.slice(2)];return new si(Object.assign(Object.assign({},r),{path:t}))._resolve()}const o=yield this._fetch(t.toString());if(o.ok){const t=yield o.clone().json();if(t._links[e]){const i=new URL(t._links[e].href),o=[i,...this._path.slice(2)];return this._cache.setItem(n,i.toString()),this._console.trace(`Cached ${i.toString()} for ${n}.`),this._console.success(`Resolved ${n} to ${i.toString()} online.`),new si(Object.assign(Object.assign({},r),{path:o}))._resolve()}}throw this._console.error(`Failed to resolve ${n}.`),new Yr(o)}))}}si.v8n={classConstructor:Cr().schema({cache:Br,console:Cr().instanceOf(xr.constructor),fetch:Cr().typeOf("function"),path:Cr().curieChain()}),follow:Cr().string(),get:Cr().optional(Cr().schema({fields:Cr().optional(Cr().array().every.string()),filters:Cr().optional(Cr().array().every.string()),limit:Cr().optional(Cr().number()),offset:Cr().optional(Cr().number()),order:Cr().optional(Cr().passesAnyOf(Cr().string(),Cr().object(),Cr().array())),zoom:Cr().optional(Cr().passesAnyOf(Cr().string(),Cr().object(),Cr().array()))}))},si.ResolutionError=Yr,si.Response=ri;var ci=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};class ui extends si{constructor(t){var e,n,r;ui.v8n.classConstructor.check(t),super({cache:null!==(e=t.cache)&&void 0!==e?e:new Xr,console:xr.create({level:t.level}).withTag("@foxy.io/sdk"),fetch:null!==(n=t.fetch)&&void 0!==n?n:l.fetch,path:[t.base]}),this.console=this._console,this.storage=null!==(r=t.storage)&&void 0!==r?r:new Xr,this.cache=this._cache,this.base=t.base}fetch(...t){return ci(this,void 0,void 0,(function*(){return this._fetch(...t)}))}}ui.WHATWGResponse=l.Response,ui.WHATWGRequest=l.Request,ui.WHATWGHeaders=l.Headers,ui.whatwgFetch=l.fetch,ui.AuthError=qr,ui.Node=si,ui.v8n={classConstructor:Cr().schema({base:Cr().instanceOf(URL),cache:Cr().optional(Br),fetch:Cr().optional(Cr().typeOf("function")),level:Cr().optional(Cr().integer()),storage:Cr().optional(Br)})};export{At as $,ui as A,_e as B,Yt as C,ut as D,Rt as E,f as F,z as G,L as H,q as I,U as J,F as K,B as L,ct as M,y as N,Gt as O,K as P,gt as Q,Sr as R,Zt as S,_t as T,bt as U,mt as V,St as W,xt as X,Ot as Y,Et as Z,h as _,ye as a,Pt as a0,wt as a1,Dt as a2,It as a3,Lt as a4,Nt as a5,ae as a6,Mn as a7,Cr as a8,$e as a9,ze as aa,Be as ab,Ue as ac,He as ad,pn as ae,dn as af,gn as ag,Jn as ah,Wn as ai,Un as aj,Gn as ak,ar as al,or as am,un as an,on as ao,we as ap,nn as aq,zn as ar,Zn as as,Je as at,oe as au,mr as av,kt as b,d as c,R as d,Tt as e,Jt as f,ht as g,C as h,qt as i,H as j,_ as k,st as l,Tn as m,pt as n,it as o,Kt as p,Q as q,M as r,X as s,jr as t,Z as u,N as v,V as w,W as x,et as y,tt as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,_ as t,h as r}from"./shared-63eaded9.js";import{B as s}from"./shared-666e8a90.js";import{c as n}from"./shared-385ab830.js";import{I as o}from"./shared-ee53f7e5.js";let i,a,l,c=e=>e;class d{constructor(e="unknown"){this.type=e}}class h extends CustomEvent{constructor(){super("reload")}}class p extends n{constructor(){super(...arguments),this.type="unknown",this.reload=!1}static get scopedElements(){return{"vaadin-button":s,"iron-icon":customElements.get("iron-icon"),"x-i18n":o}}static get styles(){return[super.styles,e(i||(i=c`:host{position:absolute;top:0;right:0;bottom:0;left:0}.container-narrow{max-width:400px}`))]}static get properties(){return t(t({},super.properties),{},{reload:{type:Boolean,reflect:!0},type:{type:String}})}render(){return r(a||(a=c` <article class="bg-base font-lumo text-center leading-m p-m h-full flex flex-col items-center justify-center"> <iron-icon icon="lumo:error" class="text-error w-l h-l mb-m"></iron-icon> <header class="text-xl text-header container-narrow font-medium"> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.title"></x-i18n> </header> <p class="text-m text-secondary container-narrow mb-l"> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.message"></x-i18n> </p> <div class="flex space-x-s"> <a rel="nofollow noreferrer noopener" href="${0}" target="_blank" class="px-m py-xs text-primary font-medium tracking-wide border border-contrast-10 rounded transition-colors duration-200 hover-bg-primary-10 hover-border-primary-10 focus-outline-none focus-shadow-outline" router-ignore> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.action"></x-i18n> </a> ${0} </div> </article> `),this.ns,this.lang,this.type,this.ns,this.lang,this.type,this._i18n.t(`errors.${this.type}.href`).toString(),this.ns,this.lang,this.type,this.reload?r(l||(l=c` <vaadin-button data-testid="reload" theme="primary" @click="${0}"> <x-i18n ns="${0}" lang="${0}" key="reload"></x-i18n> <iron-icon icon="icons:refresh" slot="suffix"></iron-icon> </vaadin-button> `),(()=>this.dispatchEvent(new h)),this.ns,this.lang):"")}}export{p as E,d as F};
|