@vc-shell/framework 1.0.54 → 1.0.56
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/core/types/index.ts +4 -4
- package/dist/framework.mjs +105222 -0
- package/dist/index.css +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/core/api/index.d.ts.map +1 -0
- package/dist/types/core/api/platform.d.ts.map +1 -0
- package/dist/types/core/composables/index.d.ts.map +1 -0
- package/dist/types/core/composables/useApiClient/index.d.ts.map +1 -0
- package/dist/types/core/composables/useAsync/index.d.ts.map +1 -0
- package/dist/types/core/composables/useAutosave/index.d.ts.map +1 -0
- package/dist/types/core/composables/useFunctions/debounce.d.ts.map +1 -0
- package/dist/types/core/composables/useFunctions/delay.d.ts.map +1 -0
- package/dist/types/core/composables/useFunctions/index.d.ts.map +1 -0
- package/dist/types/core/composables/useFunctions/once.d.ts.map +1 -0
- package/dist/types/core/composables/useFunctions/sleep.d.ts.map +1 -0
- package/dist/types/core/composables/useFunctions/throttle.d.ts.map +1 -0
- package/dist/types/core/composables/useI18n/index.d.ts.map +1 -0
- package/dist/types/core/composables/useLoading/index.d.ts.map +1 -0
- package/dist/types/core/composables/useNotifications/index.d.ts.map +1 -0
- package/dist/types/core/composables/usePermissions/index.d.ts.map +1 -0
- package/dist/types/core/composables/useSettings/index.d.ts.map +1 -0
- package/dist/types/core/composables/useUser/index.d.ts.map +1 -0
- package/dist/types/core/directives/autofocus/index.d.ts.map +1 -0
- package/dist/types/core/directives/click-outside/index.d.ts.map +1 -0
- package/dist/types/core/directives/index.d.ts.map +1 -0
- package/dist/types/core/directives/loading/index.d.ts.map +1 -0
- package/dist/types/core/directives/permissions/index.d.ts.map +1 -0
- package/dist/types/core/plugins/i18n/index.d.ts.map +1 -0
- package/dist/types/core/plugins/index.d.ts.map +1 -0
- package/dist/types/core/plugins/modularity/index.d.ts.map +1 -0
- package/dist/types/core/plugins/moment/humanize.d.ts.map +1 -0
- package/dist/types/core/plugins/moment/index.d.ts.map +1 -0
- package/dist/types/core/plugins/moment/moment.d.ts.map +1 -0
- package/dist/types/core/plugins/validation/index.d.ts.map +1 -0
- package/dist/{core → types/core}/plugins/validation/rules.d.ts +1 -1
- package/dist/types/core/plugins/validation/rules.d.ts.map +1 -0
- package/dist/{core → types/core}/types/index.d.ts +4 -4
- package/dist/types/core/types/index.d.ts.map +1 -0
- package/dist/types/core/utilities/camelToSnake.d.ts.map +1 -0
- package/dist/types/core/utilities/index.d.ts.map +1 -0
- package/dist/{index.d.ts → types/index.d.ts} +1 -1
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/shared/app-switcher/components/index.d.ts.map +1 -0
- package/dist/types/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +31 -0
- package/dist/types/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -0
- package/dist/types/shared/app-switcher/composables/index.d.ts.map +1 -0
- package/dist/types/shared/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -0
- package/dist/types/shared/app-switcher/index.d.ts.map +1 -0
- package/dist/types/shared/assets/components/assets-details/assets-details.vue.d.ts +52 -0
- package/dist/types/shared/assets/components/assets-details/assets-details.vue.d.ts.map +1 -0
- package/dist/types/shared/assets/components/index.d.ts.map +1 -0
- package/dist/types/shared/assets/index.d.ts.map +1 -0
- package/dist/types/shared/assets/locales/index.d.ts.map +1 -0
- package/dist/types/shared/blade-navigation/components/index.d.ts.map +1 -0
- package/dist/types/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts +70 -0
- package/dist/types/shared/blade-navigation/components/vc-blade-navigation/vc-blade-navigation.vue.d.ts.map +1 -0
- package/dist/types/shared/blade-navigation/composables/index.d.ts.map +1 -0
- package/dist/types/shared/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -0
- package/dist/types/shared/blade-navigation/index.d.ts.map +1 -0
- package/dist/types/shared/blade-navigation/types/index.d.ts.map +1 -0
- package/dist/types/shared/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/dist/types/ui/components/atoms/vc-badge/index.d.ts +11 -0
- package/dist/types/ui/components/atoms/vc-badge/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-badge/vc-badge.stories.d.ts +105 -0
- package/dist/types/ui/components/atoms/vc-badge/vc-badge.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +31 -0
- package/dist/types/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-button/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-button/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-button/vc-button.stories.d.ts +163 -0
- package/dist/types/ui/components/atoms/vc-button/vc-button.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-button/vc-button.vue.d.ts +48 -0
- package/dist/types/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-card/index.d.ts +9 -0
- package/dist/types/ui/components/atoms/vc-card/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-card/vc-card.vue.d.ts +50 -0
- package/dist/types/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-checkbox/index.d.ts +9 -0
- package/dist/types/ui/components/atoms/vc-checkbox/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts +144 -0
- package/dist/types/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts +45 -0
- package/dist/types/ui/components/atoms/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-col/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-col/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-col/vc-col.vue.d.ts +33 -0
- package/dist/types/ui/components/atoms/vc-col/vc-col.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-container/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-container/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-container/vc-container.stories.d.ts +114 -0
- package/dist/types/ui/components/atoms/vc-container/vc-container.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-container/vc-container.vue.d.ts +34 -0
- package/dist/types/ui/components/atoms/vc-container/vc-container.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-hint/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-hint/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-hint/vc-hint.stories.d.ts +53 -0
- package/dist/types/ui/components/atoms/vc-hint/vc-hint.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-hint/vc-hint.vue.d.ts +10 -0
- package/dist/types/ui/components/atoms/vc-hint/vc-hint.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-icon/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-icon/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-icon/vc-icon.stories.d.ts +40 -0
- package/dist/types/ui/components/atoms/vc-icon/vc-icon.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +30 -0
- package/dist/types/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-image/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-image/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-image/vc-image.stories.d.ts +87 -0
- package/dist/types/ui/components/atoms/vc-image/vc-image.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-image/vc-image.vue.d.ts +45 -0
- package/dist/types/ui/components/atoms/vc-image/vc-image.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-info-row/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-info-row/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts +29 -0
- package/dist/types/ui/components/atoms/vc-info-row/vc-info-row.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-label/index.d.ts +9 -0
- package/dist/types/ui/components/atoms/vc-label/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-label/vc-label.stories.d.ts +96 -0
- package/dist/types/ui/components/atoms/vc-label/vc-label.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-label/vc-label.vue.d.ts +35 -0
- package/dist/types/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-link/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-link/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-link/vc-link.stories.d.ts +111 -0
- package/dist/types/ui/components/atoms/vc-link/vc-link.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-link/vc-link.vue.d.ts +31 -0
- package/dist/types/ui/components/atoms/vc-link/vc-link.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-loading/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-loading/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-loading/vc-loading.vue.d.ts +15 -0
- package/dist/types/ui/components/atoms/vc-loading/vc-loading.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-progress/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-progress/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-progress/vc-progress.stories.d.ts +32 -0
- package/dist/types/ui/components/atoms/vc-progress/vc-progress.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +30 -0
- package/dist/types/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-row/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-row/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-row/vc-row.vue.d.ts +10 -0
- package/dist/types/ui/components/atoms/vc-row/vc-row.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-status/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-status/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-status/vc-status.stories.d.ts +118 -0
- package/dist/types/ui/components/atoms/vc-status/vc-status.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-status/vc-status.vue.d.ts +38 -0
- package/dist/types/ui/components/atoms/vc-status/vc-status.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-status-icon/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-status-icon/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts +15 -0
- package/dist/types/ui/components/atoms/vc-status-icon/vc-status-icon.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-switch/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-switch/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-switch/vc-switch.stories.d.ts +45 -0
- package/dist/types/ui/components/atoms/vc-switch/vc-switch.stories.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +26 -0
- package/dist/types/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-widget/index.d.ts +8 -0
- package/dist/types/ui/components/atoms/vc-widget/index.d.ts.map +1 -0
- package/dist/types/ui/components/atoms/vc-widget/vc-widget.vue.d.ts +25 -0
- package/dist/types/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -0
- package/dist/types/ui/components/index.d.ts +40 -0
- package/dist/types/ui/components/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +53 -0
- package/dist/types/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-breadcrumbs/index.d.ts +8 -0
- package/dist/types/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts +39 -0
- package/dist/types/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +38 -0
- package/dist/types/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-code-editor/index.d.ts +8 -0
- package/dist/types/ui/components/molecules/vc-code-editor/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +52 -0
- package/dist/types/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-editor/index.d.ts +8 -0
- package/dist/types/ui/components/molecules/vc-editor/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +52 -0
- package/dist/types/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-file-upload/index.d.ts +8 -0
- package/dist/types/ui/components/molecules/vc-file-upload/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +51 -0
- package/dist/types/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-form/index.d.ts +8 -0
- package/dist/types/ui/components/molecules/vc-form/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-form/vc-form.stories.d.ts +53 -0
- package/dist/types/ui/components/molecules/vc-form/vc-form.stories.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-form/vc-form.vue.d.ts +10 -0
- package/dist/types/ui/components/molecules/vc-form/vc-form.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-input/index.d.ts +58 -0
- package/dist/types/ui/components/molecules/vc-input/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-input/vc-input.vue.d.ts +135 -0
- package/dist/types/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-input-currency/index.d.ts +16 -0
- package/dist/types/ui/components/molecules/vc-input-currency/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +144 -0
- package/dist/types/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-notification/index.d.ts +8 -0
- package/dist/types/ui/components/molecules/vc-notification/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-notification/vc-notification.vue.d.ts +44 -0
- package/dist/types/ui/components/molecules/vc-notification/vc-notification.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-pagination/index.d.ts +8 -0
- package/dist/types/ui/components/molecules/vc-pagination/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts +42 -0
- package/dist/types/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +38 -0
- package/dist/types/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-rating/index.d.ts +8 -0
- package/dist/types/ui/components/molecules/vc-rating/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-rating/vc-rating.stories.d.ts +158 -0
- package/dist/types/ui/components/molecules/vc-rating/vc-rating.stories.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +41 -0
- package/dist/types/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-select/index.d.ts +87 -0
- package/dist/types/ui/components/molecules/vc-select/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-select/vc-select.vue.d.ts +216 -0
- package/dist/types/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-slider/index.d.ts +12 -0
- package/dist/types/ui/components/molecules/vc-slider/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-slider/vc-slider.vue.d.ts +50 -0
- package/dist/types/ui/components/molecules/vc-slider/vc-slider.vue.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-textarea/index.d.ts +8 -0
- package/dist/types/ui/components/molecules/vc-textarea/index.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts +206 -0
- package/dist/types/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts.map +1 -0
- package/dist/types/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +51 -0
- package/dist/types/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +49 -0
- package/dist/types/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +50 -0
- package/dist/types/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +75 -0
- package/dist/types/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +49 -0
- package/dist/types/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-app/index.d.ts +11 -0
- package/dist/types/ui/components/organisms/vc-app/index.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-app/vc-app.stories.d.ts +310 -0
- package/dist/types/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-app/vc-app.vue.d.ts +82 -0
- package/dist/types/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts +48 -0
- package/dist/types/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +64 -0
- package/dist/types/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts +27 -0
- package/dist/types/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-blade/index.d.ts +9 -0
- package/dist/types/ui/components/organisms/vc-blade/index.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-blade/vc-blade.stories.d.ts +212 -0
- package/dist/types/ui/components/organisms/vc-blade/vc-blade.stories.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +55 -0
- package/dist/types/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-dynamic-property/index.d.ts +8 -0
- package/dist/types/ui/components/organisms/vc-dynamic-property/index.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +35 -0
- package/dist/types/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +78 -0
- package/dist/types/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +31 -0
- package/dist/types/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-gallery/index.d.ts +8 -0
- package/dist/types/ui/components/organisms/vc-gallery/index.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +96 -0
- package/dist/types/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-login-form/index.d.ts +8 -0
- package/dist/types/ui/components/organisms/vc-login-form/index.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-login-form/vc-login-form.stories.d.ts +115 -0
- package/dist/types/ui/components/organisms/vc-login-form/vc-login-form.stories.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +35 -0
- package/dist/types/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-popup/index.d.ts +8 -0
- package/dist/types/ui/components/organisms/vc-popup/index.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-popup/vc-popup.stories.d.ts +131 -0
- package/dist/types/ui/components/organisms/vc-popup/vc-popup.stories.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +46 -0
- package/dist/types/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +31 -0
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts +28 -0
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +30 -0
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts +43 -0
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-filter/vc-table-filter.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts +55 -0
- package/dist/types/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-table/index.d.ts +29 -0
- package/dist/types/ui/components/organisms/vc-table/index.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-table/vc-table.stories.d.ts +631 -0
- package/dist/types/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -0
- package/dist/types/ui/components/organisms/vc-table/vc-table.vue.d.ts +165 -0
- package/dist/types/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -0
- package/dist/types/ui/services/components.d.ts +2 -0
- package/dist/types/ui/services/components.d.ts.map +1 -0
- package/dist/types/ui/services/types/components.d.ts +14 -0
- package/dist/types/ui/services/types/components.d.ts.map +1 -0
- package/dist/types/ui/services/types/index.d.ts +7 -0
- package/dist/types/ui/services/types/index.d.ts.map +1 -0
- package/dist/types/ui/services/types/ts-helpers.d.ts +8 -0
- package/dist/types/ui/services/types/ts-helpers.d.ts.map +1 -0
- package/dist/{vite.config.d.ts.map → types/vite.config.d.ts.map} +1 -1
- package/package.json +17 -14
- package/shared/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +1 -1
- package/ui/components/atoms/vc-badge/index.ts +11 -6
- package/ui/components/atoms/vc-badge/vc-badge.vue +11 -3
- package/ui/components/atoms/vc-button/index.ts +8 -6
- package/ui/components/atoms/vc-button/vc-button.vue +23 -5
- package/ui/components/atoms/vc-card/index.ts +9 -5
- package/ui/components/atoms/vc-card/vc-card.vue +19 -3
- package/ui/components/atoms/vc-checkbox/index.ts +9 -7
- package/ui/components/atoms/vc-checkbox/vc-checkbox.vue +15 -4
- package/ui/components/atoms/vc-col/index.ts +8 -4
- package/ui/components/atoms/vc-col/vc-col.vue +6 -2
- package/ui/components/atoms/vc-container/index.ts +8 -7
- package/ui/components/atoms/vc-container/vc-container.vue +12 -3
- package/ui/components/atoms/vc-hint/index.ts +8 -1
- package/ui/components/atoms/vc-icon/index.ts +8 -4
- package/ui/components/atoms/vc-icon/vc-icon.vue +8 -2
- package/ui/components/atoms/vc-image/index.ts +8 -6
- package/ui/components/atoms/vc-image/vc-image.vue +20 -3
- package/ui/components/atoms/vc-info-row/index.ts +8 -4
- package/ui/components/atoms/vc-info-row/vc-info-row.vue +10 -2
- package/ui/components/atoms/vc-label/index.ts +9 -4
- package/ui/components/atoms/vc-label/vc-label.vue +8 -2
- package/ui/components/atoms/vc-link/index.ts +8 -5
- package/ui/components/atoms/vc-link/vc-link.vue +11 -3
- package/ui/components/atoms/vc-loading/index.ts +8 -4
- package/ui/components/atoms/vc-loading/vc-loading.vue +4 -2
- package/ui/components/atoms/vc-progress/index.ts +8 -4
- package/ui/components/atoms/vc-progress/vc-progress.vue +9 -3
- package/ui/components/atoms/vc-row/index.ts +8 -1
- package/ui/components/atoms/vc-status/index.ts +8 -4
- package/ui/components/atoms/vc-status/vc-status.vue +9 -2
- package/ui/components/atoms/vc-status-icon/index.ts +8 -4
- package/ui/components/atoms/vc-status-icon/vc-status-icon.vue +4 -2
- package/ui/components/atoms/vc-switch/index.ts +8 -6
- package/ui/components/atoms/vc-switch/vc-switch.vue +14 -4
- package/ui/components/atoms/vc-widget/index.ts +8 -6
- package/ui/components/atoms/vc-widget/vc-widget.vue +12 -3
- package/ui/components/index.ts +39 -38
- package/ui/components/molecules/vc-breadcrumbs/index.ts +8 -4
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue +13 -2
- package/ui/components/molecules/vc-code-editor/index.ts +9 -0
- package/ui/components/molecules/vc-code-editor/vc-code-editor.vue +103 -0
- package/ui/components/molecules/vc-editor/index.ts +8 -6
- package/ui/components/molecules/vc-editor/vc-editor.vue +94 -23
- package/ui/components/molecules/vc-file-upload/index.ts +8 -7
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +20 -4
- package/ui/components/molecules/vc-form/index.ts +8 -1
- package/ui/components/molecules/vc-input/index.ts +58 -6
- package/ui/components/molecules/vc-input/vc-input.vue +92 -4
- package/ui/components/molecules/vc-input-currency/index.ts +15 -7
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +110 -4
- package/ui/components/molecules/vc-notification/index.ts +8 -7
- package/ui/components/molecules/vc-notification/vc-notification.vue +13 -3
- package/ui/components/molecules/vc-pagination/index.ts +8 -7
- package/ui/components/molecules/vc-pagination/vc-pagination.vue +15 -3
- package/ui/components/molecules/vc-rating/index.ts +8 -4
- package/ui/components/molecules/vc-rating/vc-rating.vue +10 -2
- package/ui/components/molecules/vc-select/index.ts +85 -5
- package/ui/components/molecules/vc-select/vc-select.vue +282 -125
- package/ui/components/molecules/vc-slider/index.ts +11 -4
- package/ui/components/molecules/vc-slider/vc-slider.vue +15 -3
- package/ui/components/molecules/vc-textarea/index.ts +8 -7
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +22 -4
- package/ui/components/organisms/vc-app/index.ts +11 -5
- package/ui/components/organisms/vc-app/vc-app.vue +32 -5
- package/ui/components/organisms/vc-blade/index.ts +9 -6
- package/ui/components/organisms/vc-blade/vc-blade.vue +22 -3
- package/ui/components/organisms/vc-dynamic-property/index.ts +9 -4
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +107 -84
- package/ui/components/organisms/vc-gallery/index.ts +8 -7
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +44 -3
- package/ui/components/organisms/vc-login-form/index.ts +8 -4
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +8 -2
- package/ui/components/organisms/vc-popup/index.ts +8 -6
- package/ui/components/organisms/vc-popup/vc-popup.vue +14 -3
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +94 -0
- package/ui/components/organisms/vc-table/index.ts +16 -6
- package/ui/components/organisms/vc-table/vc-table.vue +492 -66
- package/ui/services/components.ts +40 -0
- package/ui/services/types/components.ts +14 -0
- package/ui/services/types/index.ts +9 -0
- package/ui/services/types/ts-helpers.ts +18 -0
- package/dist/core/api/index.d.ts.map +0 -1
- package/dist/core/api/platform.d.ts.map +0 -1
- package/dist/core/composables/index.d.ts.map +0 -1
- package/dist/core/composables/useApiClient/index.d.ts.map +0 -1
- package/dist/core/composables/useAsync/index.d.ts.map +0 -1
- package/dist/core/composables/useAutosave/index.d.ts.map +0 -1
- package/dist/core/composables/useFunctions/debounce.d.ts.map +0 -1
- package/dist/core/composables/useFunctions/delay.d.ts.map +0 -1
- package/dist/core/composables/useFunctions/index.d.ts.map +0 -1
- package/dist/core/composables/useFunctions/once.d.ts.map +0 -1
- package/dist/core/composables/useFunctions/sleep.d.ts.map +0 -1
- package/dist/core/composables/useFunctions/throttle.d.ts.map +0 -1
- package/dist/core/composables/useI18n/index.d.ts.map +0 -1
- package/dist/core/composables/useLoading/index.d.ts.map +0 -1
- package/dist/core/composables/useNotifications/index.d.ts.map +0 -1
- package/dist/core/composables/usePermissions/index.d.ts.map +0 -1
- package/dist/core/composables/useSettings/index.d.ts.map +0 -1
- package/dist/core/composables/useUser/index.d.ts.map +0 -1
- package/dist/core/directives/autofocus/index.d.ts.map +0 -1
- package/dist/core/directives/click-outside/index.d.ts.map +0 -1
- package/dist/core/directives/index.d.ts.map +0 -1
- package/dist/core/directives/loading/index.d.ts.map +0 -1
- package/dist/core/directives/permissions/index.d.ts.map +0 -1
- package/dist/core/plugins/i18n/index.d.ts.map +0 -1
- package/dist/core/plugins/index.d.ts.map +0 -1
- package/dist/core/plugins/modularity/index.d.ts.map +0 -1
- package/dist/core/plugins/moment/humanize.d.ts.map +0 -1
- package/dist/core/plugins/moment/index.d.ts.map +0 -1
- package/dist/core/plugins/moment/moment.d.ts.map +0 -1
- package/dist/core/plugins/validation/index.d.ts.map +0 -1
- package/dist/core/plugins/validation/rules.d.ts.map +0 -1
- package/dist/core/types/index.d.ts.map +0 -1
- package/dist/core/utilities/camelToSnake.d.ts.map +0 -1
- package/dist/core/utilities/index.d.ts.map +0 -1
- package/dist/framework.esm.js +0 -42553
- package/dist/framework.js +0 -1137
- package/dist/index.d.ts.map +0 -1
- package/dist/shared/app-switcher/components/index.d.ts.map +0 -1
- package/dist/shared/app-switcher/composables/index.d.ts.map +0 -1
- package/dist/shared/app-switcher/composables/useAppSwitcher/index.d.ts.map +0 -1
- package/dist/shared/app-switcher/index.d.ts.map +0 -1
- package/dist/shared/assets/components/index.d.ts.map +0 -1
- package/dist/shared/assets/index.d.ts.map +0 -1
- package/dist/shared/assets/locales/index.d.ts.map +0 -1
- package/dist/shared/blade-navigation/components/index.d.ts.map +0 -1
- package/dist/shared/blade-navigation/composables/index.d.ts.map +0 -1
- package/dist/shared/blade-navigation/composables/useBladeNavigation/index.d.ts.map +0 -1
- package/dist/shared/blade-navigation/index.d.ts.map +0 -1
- package/dist/shared/blade-navigation/types/index.d.ts.map +0 -1
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/style.css +0 -1
- package/dist/ui/components/atoms/vc-badge/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-badge/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts +0 -28
- package/dist/ui/components/atoms/vc-badge/vc-badge-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.stories.d.ts +0 -7
- package/dist/ui/components/atoms/vc-badge/vc-badge.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-button/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-button/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts +0 -34
- package/dist/ui/components/atoms/vc-button/vc-button-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts +0 -15
- package/dist/ui/components/atoms/vc-button/vc-button.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-card/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-card/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts +0 -33
- package/dist/ui/components/atoms/vc-card/vc-card-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts +0 -31
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts +0 -7
- package/dist/ui/components/atoms/vc-checkbox/vc-checkbox.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-col/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-col/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts +0 -13
- package/dist/ui/components/atoms/vc-col/vc-col-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-container/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-container/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts +0 -25
- package/dist/ui/components/atoms/vc-container/vc-container-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-container/vc-container.stories.d.ts +0 -7
- package/dist/ui/components/atoms/vc-container/vc-container.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-hint/index.d.ts +0 -2
- package/dist/ui/components/atoms/vc-hint/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-hint/vc-hint-model.d.ts +0 -5
- package/dist/ui/components/atoms/vc-hint/vc-hint-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-hint/vc-hint.stories.d.ts +0 -7
- package/dist/ui/components/atoms/vc-hint/vc-hint.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-icon/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-icon/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts +0 -17
- package/dist/ui/components/atoms/vc-icon/vc-icon-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.stories.d.ts +0 -15
- package/dist/ui/components/atoms/vc-icon/vc-icon.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-image/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-image/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts +0 -38
- package/dist/ui/components/atoms/vc-image/vc-image-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts +0 -21
- package/dist/ui/components/atoms/vc-image/vc-image.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-info-row/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-info-row/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts +0 -25
- package/dist/ui/components/atoms/vc-info-row/vc-info-row-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-label/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-label/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts +0 -18
- package/dist/ui/components/atoms/vc-label/vc-label-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-label/vc-label.stories.d.ts +0 -7
- package/dist/ui/components/atoms/vc-label/vc-label.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-link/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-link/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts +0 -21
- package/dist/ui/components/atoms/vc-link/vc-link-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-link/vc-link.stories.d.ts +0 -13
- package/dist/ui/components/atoms/vc-link/vc-link.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-loading/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-loading/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts +0 -13
- package/dist/ui/components/atoms/vc-loading/vc-loading-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-progress/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-progress/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts +0 -17
- package/dist/ui/components/atoms/vc-progress/vc-progress-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.stories.d.ts +0 -7
- package/dist/ui/components/atoms/vc-progress/vc-progress.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-row/index.d.ts +0 -2
- package/dist/ui/components/atoms/vc-row/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts +0 -5
- package/dist/ui/components/atoms/vc-row/vc-row-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-status/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts +0 -21
- package/dist/ui/components/atoms/vc-status/vc-status-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts +0 -7
- package/dist/ui/components/atoms/vc-status/vc-status.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-status-icon/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts +0 -13
- package/dist/ui/components/atoms/vc-status-icon/vc-status-icon-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-switch/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-switch/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts +0 -30
- package/dist/ui/components/atoms/vc-switch/vc-switch-model.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts +0 -7
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-widget/index.d.ts +0 -5
- package/dist/ui/components/atoms/vc-widget/index.d.ts.map +0 -1
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts +0 -20
- package/dist/ui/components/atoms/vc-widget/vc-widget-model.d.ts.map +0 -1
- package/dist/ui/components/index.d.ts +0 -39
- package/dist/ui/components/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-breadcrumbs/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts +0 -19
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts +0 -7
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts +0 -33
- package/dist/ui/components/molecules/vc-editor/vc-editor-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-file-upload/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts +0 -34
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-form/index.d.ts +0 -2
- package/dist/ui/components/molecules/vc-form/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-form/vc-form-model.d.ts +0 -5
- package/dist/ui/components/molecules/vc-form/vc-form-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-form/vc-form.stories.d.ts +0 -7
- package/dist/ui/components/molecules/vc-form/vc-form.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-input/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts +0 -159
- package/dist/ui/components/molecules/vc-input/vc-input-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts +0 -126
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-notification/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-notification/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts +0 -18
- package/dist/ui/components/molecules/vc-notification/vc-notification-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-pagination/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts +0 -25
- package/dist/ui/components/molecules/vc-pagination/vc-pagination-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts +0 -7
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-rating/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-rating/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts +0 -21
- package/dist/ui/components/molecules/vc-rating/vc-rating-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.stories.d.ts +0 -7
- package/dist/ui/components/molecules/vc-rating/vc-rating.stories.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-select/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-select/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts +0 -235
- package/dist/ui/components/molecules/vc-select/vc-select-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts +0 -33
- package/dist/ui/components/molecules/vc-slider/vc-slider-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +0 -5
- package/dist/ui/components/molecules/vc-textarea/index.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts +0 -37
- package/dist/ui/components/molecules/vc-textarea/vc-textarea-model.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts +0 -7
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-app/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts +0 -61
- package/dist/ui/components/organisms/vc-app/vc-app-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts +0 -16
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-blade/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts +0 -34
- package/dist/ui/components/organisms/vc-blade/vc-blade-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts +0 -17
- package/dist/ui/components/organisms/vc-blade/vc-blade.stories.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-dynamic-property/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts +0 -43
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-gallery/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts +0 -74
- package/dist/ui/components/organisms/vc-gallery/vc-gallery-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-login-form/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-login-form/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts +0 -15
- package/dist/ui/components/organisms/vc-login-form/vc-login-form-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.stories.d.ts +0 -7
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.stories.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-popup/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-popup/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts +0 -22
- package/dist/ui/components/organisms/vc-popup/vc-popup-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.stories.d.ts +0 -7
- package/dist/ui/components/organisms/vc-popup/vc-popup.stories.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/index.d.ts +0 -5
- package/dist/ui/components/organisms/vc-table/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts +0 -135
- package/dist/ui/components/organisms/vc-table/vc-table-model.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts +0 -7
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +0 -1
- package/dist/ui/types/index.d.ts +0 -83
- package/dist/ui/types/index.d.ts.map +0 -1
- package/dist/ui/types/ts-helpers.d.ts +0 -22
- package/dist/ui/types/ts-helpers.d.ts.map +0 -1
- package/dist/ui/utils/index.d.ts +0 -2
- package/dist/ui/utils/index.d.ts.map +0 -1
- package/dist/ui/utils/types.d.ts +0 -3
- package/dist/ui/utils/types.d.ts.map +0 -1
- package/ui/components/atoms/vc-badge/vc-badge-model.ts +0 -31
- package/ui/components/atoms/vc-button/vc-button-model.ts +0 -37
- package/ui/components/atoms/vc-card/vc-card-model.ts +0 -37
- package/ui/components/atoms/vc-checkbox/vc-checkbox-model.ts +0 -35
- package/ui/components/atoms/vc-col/vc-col-model.ts +0 -15
- package/ui/components/atoms/vc-container/vc-container-model.ts +0 -28
- package/ui/components/atoms/vc-hint/vc-hint-model.ts +0 -5
- package/ui/components/atoms/vc-icon/vc-icon-model.ts +0 -19
- package/ui/components/atoms/vc-image/vc-image-model.ts +0 -41
- package/ui/components/atoms/vc-info-row/vc-info-row-model.ts +0 -27
- package/ui/components/atoms/vc-label/vc-label-model.ts +0 -20
- package/ui/components/atoms/vc-link/vc-link-model.ts +0 -24
- package/ui/components/atoms/vc-loading/vc-loading-model.ts +0 -15
- package/ui/components/atoms/vc-progress/vc-progress-model.ts +0 -19
- package/ui/components/atoms/vc-row/vc-row-model.ts +0 -5
- package/ui/components/atoms/vc-status/vc-status-model.ts +0 -23
- package/ui/components/atoms/vc-status-icon/vc-status-icon-model.ts +0 -15
- package/ui/components/atoms/vc-switch/vc-switch-model.ts +0 -34
- package/ui/components/atoms/vc-widget/vc-widget-model.ts +0 -23
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs-model.ts +0 -23
- package/ui/components/molecules/vc-editor/vc-editor-model.ts +0 -37
- package/ui/components/molecules/vc-file-upload/vc-file-upload-model.ts +0 -37
- package/ui/components/molecules/vc-form/vc-form-model.ts +0 -5
- package/ui/components/molecules/vc-input/vc-input-model.ts +0 -165
- package/ui/components/molecules/vc-input-currency/vc-input-currency-model.ts +0 -132
- package/ui/components/molecules/vc-notification/vc-notification-model.ts +0 -21
- package/ui/components/molecules/vc-pagination/vc-pagination-model.ts +0 -29
- package/ui/components/molecules/vc-rating/vc-rating-model.ts +0 -23
- package/ui/components/molecules/vc-select/vc-select-model.ts +0 -240
- package/ui/components/molecules/vc-slider/vc-slider-model.ts +0 -34
- package/ui/components/molecules/vc-textarea/vc-textarea-model.ts +0 -41
- package/ui/components/organisms/vc-app/vc-app-model.ts +0 -65
- package/ui/components/organisms/vc-blade/vc-blade-model.ts +0 -37
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property-model.ts +0 -58
- package/ui/components/organisms/vc-gallery/vc-gallery-model.ts +0 -78
- package/ui/components/organisms/vc-login-form/vc-login-form-model.ts +0 -16
- package/ui/components/organisms/vc-popup/vc-popup-model.ts +0 -25
- package/ui/components/organisms/vc-table/vc-table-model.ts +0 -116
- package/ui/types/index.ts +0 -117
- package/ui/types/ts-helpers.ts +0 -52
- package/ui/utils/index.ts +0 -1
- package/ui/utils/types.ts +0 -2
- /package/dist/{core → types/core}/api/index.d.ts +0 -0
- /package/dist/{core → types/core}/api/platform.d.ts +0 -0
- /package/dist/{core → types/core}/composables/index.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useApiClient/index.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useAsync/index.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useAutosave/index.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useFunctions/debounce.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useFunctions/delay.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useFunctions/index.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useFunctions/once.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useFunctions/sleep.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useFunctions/throttle.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useI18n/index.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useLoading/index.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useNotifications/index.d.ts +0 -0
- /package/dist/{core → types/core}/composables/usePermissions/index.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useSettings/index.d.ts +0 -0
- /package/dist/{core → types/core}/composables/useUser/index.d.ts +0 -0
- /package/dist/{core → types/core}/directives/autofocus/index.d.ts +0 -0
- /package/dist/{core → types/core}/directives/click-outside/index.d.ts +0 -0
- /package/dist/{core → types/core}/directives/index.d.ts +0 -0
- /package/dist/{core → types/core}/directives/loading/index.d.ts +0 -0
- /package/dist/{core → types/core}/directives/permissions/index.d.ts +0 -0
- /package/dist/{core → types/core}/plugins/i18n/index.d.ts +0 -0
- /package/dist/{core → types/core}/plugins/index.d.ts +0 -0
- /package/dist/{core → types/core}/plugins/modularity/index.d.ts +0 -0
- /package/dist/{core → types/core}/plugins/moment/humanize.d.ts +0 -0
- /package/dist/{core → types/core}/plugins/moment/index.d.ts +0 -0
- /package/dist/{core → types/core}/plugins/moment/moment.d.ts +0 -0
- /package/dist/{core → types/core}/plugins/validation/index.d.ts +0 -0
- /package/dist/{core → types/core}/utilities/camelToSnake.d.ts +0 -0
- /package/dist/{core → types/core}/utilities/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/app-switcher/components/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/app-switcher/composables/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/app-switcher/composables/useAppSwitcher/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/app-switcher/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/assets/components/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/assets/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/assets/locales/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/blade-navigation/components/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/blade-navigation/composables/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/blade-navigation/composables/useBladeNavigation/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/blade-navigation/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/blade-navigation/types/index.d.ts +0 -0
- /package/dist/{shared → types/shared}/index.d.ts +0 -0
- /package/dist/{vite.config.d.ts → types/vite.config.d.ts} +0 -0
package/dist/framework.js
DELETED
|
@@ -1,1137 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("vue"),Zt=require("vee-validate"),Zo=require("vue-router");function UT(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Ly=UT(Zt),WT={active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}},HT={click:()=>!0},zT=c.defineComponent({__name:"vc-badge",props:WT,emits:HT,setup(n,{emit:e}){const t=n;function r(){t.clickable&&!t.disabled&&e("click")}return(i,s)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["tw-inline-block tw-rounded-[var(--badge-border-radius)] tw-py-1 tw-px-2 tw-text-base tw-font-normal tw-bg-[color:var(--badge-background-color)] tw-text-[color:var(--badge-text-color)] tw-border tw-border-solid tw-border-[color:var(--badge-border-color)] tw-transition tw-duration-200",{"tw-bg-[color:var(--badge-background-color-active)] tw-text-[color:var(--badge-text-color-active)] tw-border-[color:var(--badge-border-color-active)]":i.active,"tw-cursor-pointer hover:tw-bg-[color:var(--badge-background-color-active)] hover:tw-text-[color:var(--badge-text-color-hover)] hover:tw-border-[color:var(--badge-border-color-hover)]":i.clickable,"cursor-not-allowed tw-bg-[color:var(--badge-background-color-disabled)] tw-text-[color:var(--badge-text-color-disabled)] tw-border-[color:var(--badge-border-color-disabled)] hover:tw-bg-[color:var(--badge-background-color-disabled)] hover:tw-text-[color:var(--badge-text-color-disabled)] hover:tw-border-[color:var(--badge-border-color-disabled)]":i.disabled}]),onClick:r},[c.renderSlot(i.$slots,"default")],2))}});const My=zT,jT={icon:String,variant:{type:String,default:"primary"},disabled:{type:Boolean,default:!1},small:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},selected:{type:Boolean,default:!1}},GT={click:()=>!0},YT=["disabled"],JT={key:1,class:"vc-button__title"},KT=c.defineComponent({__name:"vc-button",props:jT,emits:GT,setup(n,{emit:e}){const t=n;function r(i){t.disabled||(i.preventDefault(),e("click"))}return(i,s)=>(c.openBlock(),c.createElementBlock("button",{class:c.normalizeClass(["vc-button",[`vc-button_${i.variant}`,{"vc-button_small":i.small,"vc-button_outline":i.outline,"vc-button_selected":i.selected}]]),onClick:r,disabled:i.disabled},[i.icon?(c.openBlock(),c.createBlock(c.unref(Ye),{key:0,class:"vc-button__icon",icon:i.icon,size:i.small?"xs":"s"},null,8,["icon","size"])):c.createCommentVNode("",!0),i.$slots.default?(c.openBlock(),c.createElementBlock("span",JT,[c.renderSlot(i.$slots,"default")])):c.createCommentVNode("",!0)],10,YT))}});const Ry=KT;process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const XT=Array.isArray,Ny=n=>ZT(n)==="[object Date]",rs=n=>typeof n=="string",es=n=>n!==null&&typeof n=="object",qT=Object.prototype.toString,ZT=n=>qT.call(n);var Cv;const Iy=typeof window<"u",wd=n=>typeof n=="boolean",Li=n=>typeof n=="number",Kh=()=>{};Iy&&((Cv=window?.navigator)!=null&&Cv.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function QT(n){return typeof n=="function"?n():c.unref(n)}function e$(n){return n}function t$(n,e){var t;if(typeof n=="number")return n+e;const r=((t=n.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:t[0])||"",i=n.slice(r.length),s=parseFloat(r)+e;return Number.isNaN(s)?n:s+i}function Dy(n){return c.getCurrentScope()?(c.onScopeDispose(n),!0):!1}function n$(n){return typeof n=="function"?c.computed(n):c.ref(n)}function r$(n,e=!0){c.getCurrentInstance()?c.onMounted(n):e?n():c.nextTick(n)}function Ev(n){var e;const t=QT(n);return(e=t?.$el)!=null?e:t}const yd=Iy?window:void 0;function Py(n,e=!1){const t=c.ref(),r=()=>t.value=Boolean(n());return r(),r$(r,e),t}function ko(n,e={}){const{window:t=yd}=e,r=Py(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let i;const s=c.ref(!1),d=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",f):i.removeListener(f))},f=()=>{r.value&&(d(),i=t.matchMedia(n$(n).value),s.value=i.matches,"addEventListener"in i?i.addEventListener("change",f):i.addListener(f))};return c.watchEffect(f),Dy(()=>d()),s}var i$=Object.defineProperty,kv=Object.getOwnPropertySymbols,s$=Object.prototype.hasOwnProperty,o$=Object.prototype.propertyIsEnumerable,xv=(n,e,t)=>e in n?i$(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,a$=(n,e)=>{for(var t in e||(e={}))s$.call(e,t)&&xv(n,t,e[t]);if(kv)for(var t of kv(e))o$.call(e,t)&&xv(n,t,e[t]);return n};function l$(n,e={}){function t(f,l){let m=n[f];return l!=null&&(m=t$(m,l)),typeof m=="number"&&(m=`${m}px`),m}const{window:r=yd}=e;function i(f){return r?r.matchMedia(f).matches:!1}const s=f=>ko(`(min-width: ${t(f)})`,e),d=Object.keys(n).reduce((f,l)=>(Object.defineProperty(f,l,{get:()=>s(l),enumerable:!0,configurable:!0}),f),{});return a$({greater(f){return ko(`(min-width: ${t(f,.1)})`,e)},greaterOrEqual:s,smaller(f){return ko(`(max-width: ${t(f,-.1)})`,e)},smallerOrEqual(f){return ko(`(max-width: ${t(f)})`,e)},between(f,l){return ko(`(min-width: ${t(f)}) and (max-width: ${t(l,-.1)})`,e)},isGreater(f){return i(`(min-width: ${t(f,.1)})`)},isGreaterOrEqual(f){return i(`(min-width: ${t(f)})`)},isSmaller(f){return i(`(max-width: ${t(f,-.1)})`)},isSmallerOrEqual(f){return i(`(max-width: ${t(f)})`)},isInBetween(f,l){return i(`(min-width: ${t(f)}) and (max-width: ${t(l,-.1)})`)}},d)}const Av=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Tv="__vueuse_ssr_handlers__";Av[Tv]=Av[Tv]||{};function u$(n,e,t={}){const{root:r,rootMargin:i="0px",threshold:s=.1,window:d=yd}=t,f=Py(()=>d&&"IntersectionObserver"in d);let l=Kh;const m=f.value?c.watch(()=>({el:Ev(n),root:Ev(r)}),({el:o,root:u})=>{if(l(),!o)return;const p=new IntersectionObserver(e,{root:u,rootMargin:i,threshold:s});p.observe(o),l=()=>{p.disconnect(),l=Kh}},{immediate:!0,flush:"post"}):Kh,a=()=>{l(),m()};return Dy(a),{isSupported:f,stop:a}}var $v;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})($v||($v={}));var c$=Object.defineProperty,Ov=Object.getOwnPropertySymbols,h$=Object.prototype.hasOwnProperty,f$=Object.prototype.propertyIsEnumerable,Lv=(n,e,t)=>e in n?c$(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,d$=(n,e)=>{for(var t in e||(e={}))h$.call(e,t)&&Lv(n,t,e[t]);if(Ov)for(var t of Ov(e))f$.call(e,t)&&Lv(n,t,e[t]);return n};const p$={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};d$({linear:e$},p$);const m$={header:String,icon:String,isCollapsable:{type:Boolean,default:!1},isCollapsed:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},variant:{type:String,default:"default"}},g$={"header:click":()=>!0,"state:collapsed":n=>wd(n)},v$={class:"vc-card__title"},w$={key:1,class:"vc-card__actions"},y$=c.defineComponent({__name:"vc-card",props:m$,emits:g$,setup(n,{emit:e}){const t=n,r=c.ref(t.isCollapsed);function i(){t.isCollapsable&&(r.value=!r.value,e("state:collapsed",r.value)),e("header:click")}return(s,d)=>{const f=c.resolveComponent("VcIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-card",[{"vc-card_collapsable":s.isCollapsable},`vc-card_${s.variant}`]])},[s.header?(c.openBlock(),c.createElementBlock("div",{key:0,class:"vc-card__header",onClick:i},[s.icon?(c.openBlock(),c.createBlock(f,{key:0,class:"vc-card__icon",icon:s.icon,size:"xl"},null,8,["icon"])):c.createCommentVNode("",!0),c.createElementVNode("div",v$,c.toDisplayString(s.header),1),s.$slots.actions?(c.openBlock(),c.createElementBlock("div",w$,[c.renderSlot(s.$slots,"actions")])):c.createCommentVNode("",!0),s.isCollapsable?(c.openBlock(),c.createBlock(f,{key:2,class:"vc-card__collapse",icon:`fas fa-chevron-${r.value?"down":"up"}`,size:"s"},null,8,["icon"])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),c.createVNode(c.Transition,{name:"fade"},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{class:c.normalizeClass([{"vc-flex":s.fill},"vc-card__body"])},[c.renderSlot(s.$slots,"default")],2),[[c.vShow,!r.value]])]),_:3})],2)}}});const By=y$,b$={modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},name:{type:String,default:"Field"},errorMessage:String},S$={"update:modelValue":n=>wd(n)},_$={class:"vc-checkbox__label"},C$=["checked","disabled"],E$=c.createElementVNode("span",{class:"vc-checkbox__checkmark"},null,-1),k$={key:0,class:"tw-ml-2"},x$={key:1,class:"tw-text-[color:var(--checkbox-required-color)] tw-ml-1"},A$=c.defineComponent({__name:"vc-checkbox",props:b$,emits:S$,setup(n,{emit:e}){const t=n;c.watch(()=>t.modelValue,i=>{e("update:modelValue",i)});function r(i){const s=i.target.checked;e("update:modelValue",s)}return(i,s)=>{const d=c.resolveComponent("VcHint");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-checkbox",{"vc-checkbox_disabled":i.disabled}])},[c.createElementVNode("label",_$,[c.createElementVNode("input",{type:"checkbox",class:"vc-checkbox__input",checked:i.modelValue,disabled:i.disabled,onChange:r},null,40,C$),E$,i.$slots.default?(c.openBlock(),c.createElementBlock("span",k$,[c.renderSlot(i.$slots,"default")])):c.createCommentVNode("",!0),i.required?(c.openBlock(),c.createElementBlock("span",x$,"*")):c.createCommentVNode("",!0)]),i.errorMessage?c.renderSlot(i.$slots,"error",{key:0},()=>[c.createVNode(d,{class:"vc-checkbox__error tw-mt-1"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(i.errorMessage),1)]),_:1})]):c.createCommentVNode("",!0)],2)}}});const iu=A$,T$={size:{type:String,default:"1"}},$$=c.defineComponent({__name:"vc-col",props:T$,setup(n){return(e,t)=>(c.openBlock(),c.createElementBlock("div",{class:"vc-col tw-flex tw-flex-col tw-min-w-0 tw-basis-0",style:c.normalizeStyle({flexGrow:parseInt(e.size)})},[c.renderSlot(e.$slots,"default")],4))}});const su=$$,O$={shadow:{type:Boolean,default:!1},noPadding:{type:Boolean,default:!1},usePtr:{type:Boolean,default:!1}},L$={"scroll:ptr":()=>!0},M$=c.defineComponent({__name:"vc-container",props:O$,emits:L$,setup(n,{expose:e,emit:t}){const r=n,i=c.ref(),s=c.ref(!1),d=c.ref(0),f=c.ref(),l=c.ref(60),m=c.ref(0),a=c.ref("normal"),o=c.ref(0);c.onMounted(()=>{const S=new ResizeObserver(()=>{s.value=i.value&&i.value.clientHeight<i.value.scrollHeight});i.value&&S.observe(i.value)});const u=c.computed(()=>a.value!=="refresh"&&a.value!=="success"),p=()=>{i.value&&i.value.scroll(0,0)};function v(S){u.value&&E(S)}function w(S){if(r.usePtr){const T=S.touches[0];if(!u.value)return;f.value||E(S),o.value=T.clientY-d.value,f.value&&o.value>=0&&o.value<80&&(S.preventDefault(),$(x(o.value)))}}function b(){o.value&&u.value&&(a.value==="loosing"&&c.nextTick(()=>t("scroll:ptr")),$(0))}function _(S){const T=S.scrollTop;return Math.max(T,0)}function E(S){f.value=_(i.value)===0,f.value&&(d.value=S.touches[0].clientY)}function $(S){let T;S===0?T="normal":T=S<l.value?"pulling":"loosing",m.value=S,T!==a.value&&(a.value=T)}function x(S){const T=+l.value;return S>T&&(S<T*2?S=T+(S-T)/2:S=T*1.5+(S-T*2)/4),Math.round(S)}return e({scrollTop:p,component:i}),(S,T)=>{const M=c.resolveComponent("VcIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-container",{"vc-container_shadow":S.shadow&&s.value,"vc-container_nopadding":S.noPadding}]),onTouchstart:v,onTouchmove:w,onTouchend:b},[c.createElementVNode("div",{ref_key:"component",ref:i,class:"vc-container__inner",style:c.normalizeStyle({transform:m.value?`translate3d(0, ${m.value}px, 0)`:""})},[c.createElementVNode("div",{class:c.normalizeClass(["vc-container__overscroll",{"vc-container__overscroll_passed":a.value==="loosing"}]),style:c.normalizeStyle({height:m.value?`${m.value}px`:"0px"})},[c.createVNode(M,{icon:"fas fa-spinner",style:c.normalizeStyle({"tw-font-size":`${m.value/2}px`}),class:"vc-container__overscroll-icon"},null,8,["style"])],6),c.renderSlot(S.$slots,"default")],4)],34)}}});const io=M$;const ku=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},R$={},N$={class:"tw-text-[color:var(--hint-color)] tw-text-xs"};function I$(n,e){return c.openBlock(),c.createElementBlock("div",N$,[c.renderSlot(n.$slots,"default")])}const D$=ku(R$,[["render",I$]]),Fy=D$,P$={icon:{type:String,default:"fas fa-square-full"},size:{type:String,default:"m"}},B$=c.defineComponent({__name:"vc-icon",props:P$,setup(n){return(e,t)=>(c.openBlock(),c.createElementBlock("i",{class:c.normalizeClass(`vc-icon vc-icon_${e.size} ${e.icon.toLowerCase()}`)},null,2))}});const Ye=B$,F$={label:{type:String,default:""},value:{type:String,default:""},tooltip:{type:String,default:""},type:{type:String,default:""}},V$={class:"tw-mb-[11px] last-of-type:tw-mb-0"},U$={key:0,class:"tw-m-0"},W$=c.defineComponent({__name:"vc-info-row",props:F$,setup(n){return(e,t)=>{const r=c.resolveComponent("VcLink");return c.openBlock(),c.createElementBlock("div",V$,[c.createVNode(c.unref(_d),null,{default:c.withCtx(()=>[c.createVNode(c.unref(su),null,{default:c.withCtx(()=>[c.createVNode(c.unref(fs),null,c.createSlots({default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(e.label),1)]),_:2},[e.tooltip?{name:"tooltip",fn:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(e.tooltip),1)]),key:"0"}:void 0]),1024)]),_:1}),c.createVNode(c.unref(su),{size:"2"},{default:c.withCtx(()=>[e.type==="default"?(c.openBlock(),c.createElementBlock("p",U$,c.toDisplayString(e.value),1)):e.type==="email"?(c.openBlock(),c.createBlock(r,{key:1},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(e.value),1)]),_:1})):c.createCommentVNode("",!0)]),_:1})]),_:1})])}}}),Vy=W$,H$={aspect:{type:String,default:"1x1"},rounded:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},src:String,size:{type:String,default:"auto"},background:{type:String,default:"cover"}},z$={click:()=>!0},j$={key:0,class:"tw-absolute tw-w-full tw-h-full tw-flex tw-items-center tw-justify-center tw-text-[#83a3be]"},G$=c.defineComponent({__name:"vc-image",props:H$,emits:z$,setup(n,{emit:e}){const t=n,r=c.computed(()=>{if(t.src)return`background: url(${encodeURI(t.src)}) center / ${t.background} no-repeat`});function i(){t.clickable&&e("click")}return(s,d)=>{const f=c.resolveComponent("VcIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-image",[`vc-image_${s.size}`]])},[c.createElementVNode("div",{class:c.normalizeClass([`vc-image_${s.aspect}`,{"tw-rounded-full tw-pb-[var(--image-padding-bottom-1x1)]":s.rounded,"tw-rounded-[3px] tw-border tw-border-solid tw-border-[color:#efefef]":s.bordered,"tw-cursor-pointer":s.clickable},"tw-relative"]),style:c.normalizeStyle(c.unref(r)),onClick:i},[s.src?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",j$,[c.createVNode(f,{icon:"fas fa-image",size:"xl"})]))],6)],2)}}});const xu=G$,Y$={required:{type:Boolean,default:!1},tooltipIcon:{type:String,default:"fas fa-info-circle"}},J$={class:"tw-flex tw-flex-nowrap tw-font-bold"},K$={key:0,class:"tw-text-[color:var(--label-required-color)] tw-ml-1"},X$={key:1,class:"tw-grow tw-basis-0 tw-ml-1"},q$={key:0,class:"tw-absolute tw-z-10 tw-bg-white tw-border tw-border-solid tw-border-[color:#eef0f2] tw-shadow-[1px_1px_8px_rgba(126,142,157,0.25)] tw-rounded-[3px] tw-text-[color:#8e9daa] tw-font-normal tw-py-1 tw-px-2 tw-ml-4"},Z$=c.defineComponent({__name:"vc-label",props:Y$,setup(n){const e=c.ref(!1);return(t,r)=>(c.openBlock(),c.createElementBlock("div",J$,[c.createElementVNode("span",null,[c.renderSlot(t.$slots,"default")]),t.required?(c.openBlock(),c.createElementBlock("span",K$,"*")):c.createCommentVNode("",!0),t.$slots.tooltip?(c.openBlock(),c.createElementBlock("span",X$,[c.createVNode(c.unref(Ye),{class:"tw-text-[color:var(--label-tooltip-color)]",icon:t.tooltipIcon,size:"s",onMouseenter:r[0]||(r[0]=i=>e.value=!0),onMouseleave:r[1]||(r[1]=i=>e.value=!1)},null,8,["icon"]),e.value?(c.openBlock(),c.createElementBlock("span",q$,[c.renderSlot(t.$slots,"tooltip")])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]))}});const fs=Z$,Q$={active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},eO={click:()=>!0},tO=c.defineComponent({__name:"vc-link",props:Q$,emits:eO,setup(n,{emit:e}){const t=n;function r(){t.disabled||e("click")}return(i,s)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-link",{"tw-text-[color:var(--link-text-color-active)] tw-no-underline":i.active,"tw-cursor-not-allowed tw-text-[color:var(--link-text-color-disabled)] hover:tw-text-[color:var(--link-text-color-disabled)] tw-no-underline":i.disabled}]),onClick:r},[c.renderSlot(i.$slots,"default")],2))}});const bd=tO,nO={active:{type:Boolean,default:!1}},rO={class:"tw-relative tw-w-[142px] tw-h-[40px] tw-z-[1]"},iO=c.createElementVNode("span",{class:"tw-absolute tw-w-4 tw-h-4 tw-top-[12px] tw-left-[15px] tw-bg-[#319ed4] tw-rounded-full tw-translate-x-0 tw-animate-loadingMarker"},null,-1),sO={class:"tw-translate-x-0 tw-mt-3 tw-ml-[31px] tw-animate-loadingMarkers"},oO=c.defineComponent({__name:"vc-loading",props:nO,setup(n){return(e,t)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["tw-absolute tw-items-center tw-justify-center tw-flex-col tw-z-[9998] tw-hidden tw-w-full tw-h-full tw-box-border",{"!tw-flex tw-backdrop-blur-[3px] tw-bg-[rgba(255, 255, 255, 0.5)]":e.active}])},[c.createElementVNode("div",rO,[iO,c.createElementVNode("div",sO,[(c.openBlock(),c.createElementBlock(c.Fragment,null,c.renderList(3,r=>c.createElementVNode("span",{class:"tw-block tw-float-left tw-w-4 tw-h-4 tw-bg-[#319ed4] tw-rounded-full tw-ml-4",key:`marker_${r}`})),64))])])],2))}}),Sd=oO,aO={value:{type:Number,default:0},variant:{type:String,default:"default"}},lO=c.defineComponent({__name:"vc-progress",props:aO,setup(n){return(e,t)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-progress tw-border tw-border-[length:var(--progressbar-border-width)] tw-border-[color:var(--progressbar-border-color)] tw-rounded-[var(--progressbar-border-radius)] tw-h-[var(--progressbar-height)] tw-transition tw-duration-200 tw-box-border tw-bg-[color:var(--progressbar-background-color)]",e.variant])},[c.createElementVNode("div",{class:"vc-progress__value tw-bg-[color:var(--progressbar-foreground-color)] tw-transition tw-duration-200 tw-h-full",style:c.normalizeStyle(`width: ${e.value}%`)},null,4)],2))}});const Uy=lO;const uO={},cO={class:"vc-row tw-flex-nowrap tw-flex tw-items-stretch"};function hO(n,e){return c.openBlock(),c.createElementBlock("div",cO,[c.renderSlot(n.$slots,"default")])}const fO=ku(uO,[["render",hO]]),_d=fO,dO={variant:{type:String,default:"info"},outline:{type:Boolean,default:!0},extend:{type:Boolean,default:!1}},pO=c.defineComponent({__name:"vc-status",props:dO,setup(n){return(e,t)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-status",[`vc-status_${e.variant}`,{"vc-status_outline":e.outline},{"vc-status_extended":e.extend}]])},[c.renderSlot(e.$slots,"default")],2))}});const Cd=pO,mO={status:{type:Boolean,default:!1}},gO=c.defineComponent({__name:"vc-status-icon",props:mO,setup(n){return(e,t)=>(c.openBlock(),c.createElementBlock("div",null,[e.status?(c.openBlock(),c.createBlock(c.unref(Ye),{key:0,icon:"fas fa-check-circle",class:"tw-text-[color:#87b563]"})):(c.openBlock(),c.createBlock(c.unref(Ye),{key:1,icon:"fas fa-times-circle",class:"tw-text-[color:#bdd1df]"}))]))}}),Ed=gO,vO={modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tooltip:{type:String,default:""},required:{type:Boolean,default:!1},label:String},wO={"update:modelValue":n=>wd(n)},yO={class:"tw-relative tw-inline-block tw-w-[54px] tw-h-[18px]"},bO=["checked","disabled"],SO=c.createElementVNode("span",{class:"vc-switch__slider"},null,-1),_O=c.defineComponent({__name:"vc-switch",props:vO,emits:wO,setup(n,{emit:e}){function t(r){const i=r.target.checked;e("update:modelValue",i)}return(r,i)=>{const s=c.resolveComponent("VcLabel"),d=c.resolveComponent("VcHint");return c.openBlock(),c.createElementBlock("div",null,[r.label?(c.openBlock(),c.createBlock(s,{key:0,class:"tw-mb-2",required:r.required},{default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(r.label),1)]),_:1},8,["required"])):c.createCommentVNode("",!0),c.createElementVNode("div",yO,[c.createElementVNode("label",null,[c.createElementVNode("input",{type:"checkbox",class:"vc-switch__input",checked:r.modelValue,disabled:r.disabled,onInput:t},null,40,bO),SO]),r.tooltip?(c.openBlock(),c.createBlock(d,{key:0,class:"tw-mt-2 tw-w-max"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(r.tooltip),1)]),_:1})):c.createCommentVNode("",!0)])])}}});const Wy=_O,CO={icon:String,title:String,value:[String,Number],disabled:{type:Boolean,default:!1}},EO={click:()=>!0},kO={key:1,class:"vc-widget__title"},xO={key:2,class:"vc-widget__value"},AO=c.defineComponent({__name:"vc-widget",props:CO,emits:EO,setup(n,{emit:e}){const t=n;function r(){t.disabled||e("click")}return(i,s)=>{const d=c.resolveComponent("VcIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-widget",{"vc-widget_disabled":i.disabled}]),onClick:r},[i.icon?(c.openBlock(),c.createBlock(d,{key:0,class:"vc-widget__icon",icon:i.icon,size:"xxl"},null,8,["icon"])):c.createCommentVNode("",!0),i.title?(c.openBlock(),c.createElementBlock("div",kO,c.toDisplayString(i.title),1)):c.createCommentVNode("",!0),i.value!==void 0?(c.openBlock(),c.createElementBlock("div",xO,c.toDisplayString(i.value),1)):c.createCommentVNode("",!0)],2)}}});const Hy=AO,TO={class:"vc-breadcrumbs-item__title"},$O=c.defineComponent({__name:"vc-breadcrumbs-item",props:{current:{type:Boolean,default:!1},icon:{type:String,default:void 0},title:{type:String,default:void 0},clickHandler:{type:Function,default:void 0},id:{type:String,default:void 0}},emits:["click"],setup(n,{emit:e}){const t=n;function r(){t.current||(t.clickHandler&&typeof t.clickHandler=="function"?t.clickHandler(t.id):e("click"))}return(i,s)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-breadcrumbs-item",{"vc-breadcrumbs-item_current":n.current}]),onClick:r},[n.icon?(c.openBlock(),c.createBlock(c.unref(Ye),{key:0,class:"vc-breadcrumbs-item__icon",icon:n.icon,size:"s"},null,8,["icon"])):c.createCommentVNode("",!0),c.createElementVNode("div",TO,c.toDisplayString(n.title),1)],2))}});const OO={items:{type:Array,default:()=>[]}},LO={key:0,class:"tw-flex tw-items-center tw-flex-nowrap"},MO=c.defineComponent({__name:"vc-breadcrumbs",props:OO,setup(n){return(e,t)=>e.items?(c.openBlock(),c.createElementBlock("div",LO,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.items,(r,i)=>(c.openBlock(),c.createBlock($O,c.mergeProps({key:r.id},r,{current:i===e.items.length-1}),null,16,["current"]))),128))])):c.createCommentVNode("",!0)}}),zy=MO;var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function RO(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(e,i);return new s}return e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var Tf={},NO={get exports(){return Tf},set exports(n){Tf=n}};(function(n,e){(function(){var t="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var i=function(a,o,u){if(typeof a!="string"){i.original?i.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=o),i.modules[a]||(i.payloads[a]=u,i.modules[a]=null)};i.modules={},i.payloads={};var s=function(a,o,u){if(typeof o=="string"){var p=l(a,o);if(p!=null)return u&&u(),p}else if(Object.prototype.toString.call(o)==="[object Array]"){for(var v=[],w=0,b=o.length;w<b;++w){var _=l(a,o[w]);if(_==null&&d.original)return;v.push(_)}return u&&u.apply(null,v)||!0}},d=function(a,o){var u=s("",a,o);return u==null&&d.original?d.original.apply(this,arguments):u},f=function(a,o){if(o.indexOf("!")!==-1){var u=o.split("!");return f(a,u[0])+"!"+f(a,u[1])}if(o.charAt(0)=="."){var p=a.split("/").slice(0,-1).join("/");for(o=p+"/"+o;o.indexOf(".")!==-1&&v!=o;){var v=o;o=o.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return o},l=function(a,o){o=f(a,o);var u=i.modules[o];if(!u){if(u=i.payloads[o],typeof u=="function"){var p={},v={id:o,uri:"",exports:p,packaged:!0},w=function(_,E){return s(o,_,E)},b=u(w,p,v);p=b||v.exports,i.modules[o]=p,delete i.payloads[o]}u=i.modules[o]=p||u}return u};function m(a){var o=r;a&&(r[a]||(r[a]={}),o=r[a]),(!o.define||!o.define.packaged)&&(i.original=o.define,o.define=i,o.define.packaged=!0),(!o.require||!o.require.packaged)&&(d.original=o.require,o.require=d,o.require.packaged=!0)}m(t)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(t,r,i){function s(d,f,l){Object.defineProperty(d,f,{value:l,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||s(String.prototype,"startsWith",function(d,f){return f=f||0,this.lastIndexOf(d,f)===f}),String.prototype.endsWith||s(String.prototype,"endsWith",function(d,f){var l=this;(f===void 0||f>l.length)&&(f=l.length),f-=d.length;var m=l.indexOf(d,f);return m!==-1&&m===f}),String.prototype.repeat||s(String.prototype,"repeat",function(d){for(var f="",l=this;d>0;)d&1&&(f+=l),(d>>=1)&&(l+=l);return f}),String.prototype.includes||s(String.prototype,"includes",function(d,f){return this.indexOf(d,f)!=-1}),Object.assign||(Object.assign=function(d){if(d==null)throw new TypeError("Cannot convert undefined or null to object");for(var f=Object(d),l=1;l<arguments.length;l++){var m=arguments[l];m!=null&&Object.keys(m).forEach(function(a){f[a]=m[a]})}return f}),Object.values||(Object.values=function(d){return Object.keys(d).map(function(f){return d[f]})}),Array.prototype.find||s(Array.prototype,"find",function(d){for(var f=this.length,l=arguments[1],m=0;m<f;m++){var a=this[m];if(d.call(l,a,m,this))return a}}),Array.prototype.findIndex||s(Array.prototype,"findIndex",function(d){for(var f=this.length,l=arguments[1],m=0;m<f;m++){var a=this[m];if(d.call(l,a,m,this))return m}}),Array.prototype.includes||s(Array.prototype,"includes",function(d,f){return this.indexOf(d,f)!=-1}),Array.prototype.fill||s(Array.prototype,"fill",function(d){for(var f=this,l=f.length>>>0,m=arguments[1],a=m>>0,o=a<0?Math.max(l+a,0):Math.min(a,l),u=arguments[2],p=u===void 0?l:u>>0,v=p<0?Math.max(l+p,0):Math.min(p,l);o<v;)f[o]=d,o++;return f}),Array.of||s(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(t,r,i){t("./es6-shim")}),ace.define("ace/lib/lang",["require","exports","module"],function(t,r,i){r.last=function(f){return f[f.length-1]},r.stringReverse=function(f){return f.split("").reverse().join("")},r.stringRepeat=function(f,l){for(var m="";l>0;)l&1&&(m+=f),(l>>=1)&&(f+=f);return m};var s=/^\s\s*/,d=/\s\s*$/;r.stringTrimLeft=function(f){return f.replace(s,"")},r.stringTrimRight=function(f){return f.replace(d,"")},r.copyObject=function(f){var l={};for(var m in f)l[m]=f[m];return l},r.copyArray=function(f){for(var l=[],m=0,a=f.length;m<a;m++)f[m]&&typeof f[m]=="object"?l[m]=this.copyObject(f[m]):l[m]=f[m];return l},r.deepCopy=function f(l){if(typeof l!="object"||!l)return l;var m;if(Array.isArray(l)){m=[];for(var a=0;a<l.length;a++)m[a]=f(l[a]);return m}if(Object.prototype.toString.call(l)!=="[object Object]")return l;m={};for(var a in l)m[a]=f(l[a]);return m},r.arrayToMap=function(f){for(var l={},m=0;m<f.length;m++)l[f[m]]=1;return l},r.createMap=function(f){var l=Object.create(null);for(var m in f)l[m]=f[m];return l},r.arrayRemove=function(f,l){for(var m=0;m<=f.length;m++)l===f[m]&&f.splice(m,1)},r.escapeRegExp=function(f){return f.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(f){return(""+f).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(f,l){var m=[];return f.replace(l,function(a){m.push({offset:arguments[arguments.length-2],length:a.length})}),m},r.deferredCall=function(f){var l=null,m=function(){l=null,f()},a=function(o){return a.cancel(),l=setTimeout(m,o||0),a};return a.schedule=a,a.call=function(){return this.cancel(),f(),a},a.cancel=function(){return clearTimeout(l),l=null,a},a.isPending=function(){return l},a},r.delayedCall=function(f,l){var m=null,a=function(){m=null,f()},o=function(u){m==null&&(m=setTimeout(a,u||l))};return o.delay=function(u){m&&clearTimeout(m),m=setTimeout(a,u||l)},o.schedule=o,o.call=function(){this.cancel(),f()},o.cancel=function(){m&&clearTimeout(m),m=null},o.isPending=function(){return m},o}}),ace.define("ace/lib/oop",["require","exports","module"],function(t,r,i){r.inherits=function(s,d){s.super_=d,s.prototype=Object.create(d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(s,d){for(var f in d)s[f]=d[f];return s},r.implement=function(s,d){r.mixin(s,d)}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,r,i){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var s=typeof navigator=="object"?navigator:{},d=(/mac|win|linux/i.exec(s.platform)||["other"])[0].toLowerCase(),f=s.userAgent||"",l=s.appName||"";r.isWin=d=="win",r.isMac=d=="mac",r.isLinux=d=="linux",r.isIE=l=="Microsoft Internet Explorer"||l.indexOf("MSAppHost")>=0?parseFloat((f.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((f.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=f.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(f.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(f.split(" Chrome/")[1])||void 0,r.isEdge=parseFloat(f.split(" Edge/")[1])||void 0,r.isAIR=f.indexOf("AdobeAIR")>=0,r.isAndroid=f.indexOf("Android")>=0,r.isChromeOS=f.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(f)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,r,i){var s=t("./useragent"),d="http://www.w3.org/1999/xhtml";r.buildDom=function u(p,v,w){if(typeof p=="string"&&p){var b=document.createTextNode(p);return v&&v.appendChild(b),b}if(!Array.isArray(p))return p&&p.appendChild&&v&&v.appendChild(p),p;if(typeof p[0]!="string"||!p[0]){for(var _=[],E=0;E<p.length;E++){var $=u(p[E],v,w);$&&_.push($)}return _}var x=document.createElement(p[0]),S=p[1],T=1;S&&typeof S=="object"&&!Array.isArray(S)&&(T=2);for(var E=T;E<p.length;E++)u(p[E],x,w);return T==2&&Object.keys(S).forEach(function(M){var A=S[M];M==="class"?x.className=Array.isArray(A)?A.join(" "):A:typeof A=="function"||M=="value"||M[0]=="$"?x[M]=A:M==="ref"?w&&(w[A]=x):M==="style"?typeof A=="string"&&(x.style.cssText=A):A!=null&&x.setAttribute(M,A)}),v&&v.appendChild(x),x},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,p){return document.createElementNS?document.createElementNS(p||d,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,p){var v=p?p.ownerDocument:document;return v.createTextNode(u)},r.createFragment=function(u){var p=u?u.ownerDocument:document;return p.createDocumentFragment()},r.hasCssClass=function(u,p){var v=(u.className+"").split(/\s+/g);return v.indexOf(p)!==-1},r.addCssClass=function(u,p){r.hasCssClass(u,p)||(u.className+=" "+p)},r.removeCssClass=function(u,p){for(var v=u.className.split(/\s+/g);;){var w=v.indexOf(p);if(w==-1)break;v.splice(w,1)}u.className=v.join(" ")},r.toggleCssClass=function(u,p){for(var v=u.className.split(/\s+/g),w=!0;;){var b=v.indexOf(p);if(b==-1)break;w=!1,v.splice(b,1)}return w&&v.push(p),u.className=v.join(" "),w},r.setCssClass=function(u,p,v){v?r.addCssClass(u,p):r.removeCssClass(u,p)},r.hasCssString=function(u,p){var v=0,w;if(p=p||document,w=p.querySelectorAll("style")){for(;v<w.length;)if(w[v++].id===u)return!0}},r.removeElementById=function(u,p){p=p||document,p.getElementById(u)&&p.getElementById(u).remove()};var f,l=[];r.useStrictCSP=function(u){f=u,u==!1?m():l||(l=[])};function m(){var u=l;l=null,u&&u.forEach(function(p){a(p[0],p[1])})}function a(u,p,v){if(!(typeof document>"u")){if(l){if(v)m();else if(v===!1)return l.push([u,p])}if(!f){var w=v;!v||!v.getRootNode?w=document:(w=v.getRootNode(),(!w||w==v)&&(w=document));var b=w.ownerDocument||w;if(p&&r.hasCssString(p,w))return null;p&&(u+=`
|
|
2
|
-
/*# sourceURL=ace/css/`+p+" */");var _=r.createElement("style");_.appendChild(b.createTextNode(u)),p&&(_.id=p),w==b&&(w=r.getDocumentHead(b)),w.insertBefore(_,w.firstChild)}}}if(r.importCssString=a,r.importCssStylsheet=function(u,p){r.buildDom(["link",{rel:"stylesheet",href:u}],r.getDocumentHead(p))},r.scrollbarWidth=function(u){var p=r.createElement("ace_inner");p.style.width="100%",p.style.minWidth="0px",p.style.height="200px",p.style.display="block";var v=r.createElement("ace_outer"),w=v.style;w.position="absolute",w.left="-10000px",w.overflow="hidden",w.width="200px",w.minWidth="0px",w.height="150px",w.display="block",v.appendChild(p);var b=u&&u.documentElement||document&&document.documentElement;if(!b)return 0;b.appendChild(v);var _=p.offsetWidth;w.overflow="scroll";var E=p.offsetWidth;return _===E&&(E=v.clientWidth),b.removeChild(v),_-E},r.computedStyle=function(u,p){return window.getComputedStyle(u,"")||{}},r.setStyle=function(u,p,v){u[p]!==v&&(u[p]=v)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=s.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,s.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var o=document.createElement("div");r.HI_DPI&&o.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!s.isEdge&&typeof o.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),o=null}r.HAS_CSS_TRANSFORMS?r.translate=function(u,p,v){u.style.transform="translate("+Math.round(p)+"px, "+Math.round(v)+"px)"}:r.translate=function(u,p,v){u.style.top=Math.round(v)+"px",u.style.left=Math.round(p)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(t,r,i){/*
|
|
3
|
-
* based on code from:
|
|
4
|
-
*
|
|
5
|
-
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
|
6
|
-
* Available via the MIT or new BSD license.
|
|
7
|
-
* see: http://github.com/jrburke/requirejs for details
|
|
8
|
-
*/var s=t("./dom");r.get=function(d,f){var l=new XMLHttpRequest;l.open("GET",d,!0),l.onreadystatechange=function(){l.readyState===4&&f(l.responseText)},l.send(null)},r.loadScript=function(d,f){var l=s.getDocumentHead(),m=document.createElement("script");m.src=d,l.appendChild(m),m.onload=m.onreadystatechange=function(a,o){(o||!m.readyState||m.readyState=="loaded"||m.readyState=="complete")&&(m=m.onload=m.onreadystatechange=null,o||f())}},r.qualifyURL=function(d){var f=document.createElement("a");return f.href=d,f.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(t,r,i){var s={},d=function(){this.propagationStopped=!0},f=function(){this.defaultPrevented=!0};s._emit=s._dispatchEvent=function(l,m){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var a=this._eventRegistry[l]||[],o=this._defaultHandlers[l];if(!(!a.length&&!o)){(typeof m!="object"||!m)&&(m={}),m.type||(m.type=l),m.stopPropagation||(m.stopPropagation=d),m.preventDefault||(m.preventDefault=f),a=a.slice();for(var u=0;u<a.length&&(a[u](m,this),!m.propagationStopped);u++);if(o&&!m.defaultPrevented)return o(m,this)}},s._signal=function(l,m){var a=(this._eventRegistry||{})[l];if(a){a=a.slice();for(var o=0;o<a.length;o++)a[o](m,this)}},s.once=function(l,m){var a=this;if(this.on(l,function o(){a.off(l,o),m.apply(null,arguments)}),!m)return new Promise(function(o){m=o})},s.setDefaultHandler=function(l,m){var a=this._defaultHandlers;if(a||(a=this._defaultHandlers={_disabled_:{}}),a[l]){var o=a[l],u=a._disabled_[l];u||(a._disabled_[l]=u=[]),u.push(o);var p=u.indexOf(m);p!=-1&&u.splice(p,1)}a[l]=m},s.removeDefaultHandler=function(l,m){var a=this._defaultHandlers;if(a){var o=a._disabled_[l];if(a[l]==m)o&&this.setDefaultHandler(l,o.pop());else if(o){var u=o.indexOf(m);u!=-1&&o.splice(u,1)}}},s.on=s.addEventListener=function(l,m,a){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[l];return o||(o=this._eventRegistry[l]=[]),o.indexOf(m)==-1&&o[a?"unshift":"push"](m),m},s.off=s.removeListener=s.removeEventListener=function(l,m){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[l];if(a){var o=a.indexOf(m);o!==-1&&a.splice(o,1)}},s.removeAllListeners=function(l){l||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[l]=void 0),this._defaultHandlers&&(this._defaultHandlers[l]=void 0)},r.EventEmitter=s}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,r,i){var s=t("./oop"),d=t("./event_emitter").EventEmitter,f={setOptions:function(o){Object.keys(o).forEach(function(u){this.setOption(u,o[u])},this)},getOptions:function(o){var u={};if(o)Array.isArray(o)||(u=o,o=Object.keys(u));else{var p=this.$options;o=Object.keys(p).filter(function(v){return!p[v].hidden})}return o.forEach(function(v){u[v]=this.getOption(v)},this),u},setOption:function(o,u){if(this["$"+o]!==u){var p=this.$options[o];if(!p)return l('misspelled option "'+o+'"');if(p.forwardTo)return this[p.forwardTo]&&this[p.forwardTo].setOption(o,u);p.handlesSet||(this["$"+o]=u),p&&p.set&&p.set.call(this,u)}},getOption:function(o){var u=this.$options[o];return u?u.forwardTo?this[u.forwardTo]&&this[u.forwardTo].getOption(o):u&&u.get?u.get.call(this):this["$"+o]:l('misspelled option "'+o+'"')}};function l(o){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}function m(o,u){var p=new Error(o);p.data=u,typeof console=="object"&&console.error&&console.error(p),setTimeout(function(){throw p})}var a=function(){this.$defaultOptions={}};(function(){s.implement(this,d),this.defineOptions=function(o,u,p){return o.$options||(this.$defaultOptions[u]=o.$options={}),Object.keys(p).forEach(function(v){var w=p[v];typeof w=="string"&&(w={forwardTo:w}),w.name||(w.name=v),o.$options[w.name]=w,"initialValue"in w&&(o["$"+w.name]=w.initialValue)}),s.implement(o,f),this},this.resetOptions=function(o){Object.keys(o.$options).forEach(function(u){var p=o.$options[u];"value"in p&&o.setOption(u,p.value)})},this.setDefaultValue=function(o,u,p){if(!o){for(o in this.$defaultOptions)if(this.$defaultOptions[o][u])break;if(!this.$defaultOptions[o][u])return!1}var v=this.$defaultOptions[o]||(this.$defaultOptions[o]={});v[u]&&(v.forwardTo?this.setDefaultValue(v.forwardTo,u,p):v[u].value=p)},this.setDefaultValues=function(o,u){Object.keys(u).forEach(function(p){this.setDefaultValue(o,p,u[p])},this)},this.warn=l,this.reportError=m}).call(a.prototype),r.AppConfig=a}),ace.define("ace/theme/textmate.css",["require","exports","module"],function(t,r,i){i.exports=`.ace-tm .ace_gutter {
|
|
9
|
-
background: #f0f0f0;
|
|
10
|
-
color: #333;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ace-tm .ace_print-margin {
|
|
14
|
-
width: 1px;
|
|
15
|
-
background: #e8e8e8;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.ace-tm .ace_fold {
|
|
19
|
-
background-color: #6B72E6;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ace-tm {
|
|
23
|
-
background-color: #FFFFFF;
|
|
24
|
-
color: black;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.ace-tm .ace_cursor {
|
|
28
|
-
color: black;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ace-tm .ace_invisible {
|
|
32
|
-
color: rgb(191, 191, 191);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ace-tm .ace_storage,
|
|
36
|
-
.ace-tm .ace_keyword {
|
|
37
|
-
color: blue;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ace-tm .ace_constant {
|
|
41
|
-
color: rgb(197, 6, 11);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ace-tm .ace_constant.ace_buildin {
|
|
45
|
-
color: rgb(88, 72, 246);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.ace-tm .ace_constant.ace_language {
|
|
49
|
-
color: rgb(88, 92, 246);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ace-tm .ace_constant.ace_library {
|
|
53
|
-
color: rgb(6, 150, 14);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ace-tm .ace_invalid {
|
|
57
|
-
background-color: rgba(255, 0, 0, 0.1);
|
|
58
|
-
color: red;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.ace-tm .ace_support.ace_function {
|
|
62
|
-
color: rgb(60, 76, 114);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ace-tm .ace_support.ace_constant {
|
|
66
|
-
color: rgb(6, 150, 14);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.ace-tm .ace_support.ace_type,
|
|
70
|
-
.ace-tm .ace_support.ace_class {
|
|
71
|
-
color: rgb(109, 121, 222);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ace-tm .ace_keyword.ace_operator {
|
|
75
|
-
color: rgb(104, 118, 135);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.ace-tm .ace_string {
|
|
79
|
-
color: rgb(3, 106, 7);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.ace-tm .ace_comment {
|
|
83
|
-
color: rgb(76, 136, 107);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.ace-tm .ace_comment.ace_doc {
|
|
87
|
-
color: rgb(0, 102, 255);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.ace-tm .ace_comment.ace_doc.ace_tag {
|
|
91
|
-
color: rgb(128, 159, 191);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.ace-tm .ace_constant.ace_numeric {
|
|
95
|
-
color: rgb(0, 0, 205);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.ace-tm .ace_variable {
|
|
99
|
-
color: rgb(49, 132, 149);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.ace-tm .ace_xml-pe {
|
|
103
|
-
color: rgb(104, 104, 91);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.ace-tm .ace_entity.ace_name.ace_function {
|
|
107
|
-
color: #0000A2;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
.ace-tm .ace_heading {
|
|
112
|
-
color: rgb(12, 7, 255);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.ace-tm .ace_list {
|
|
116
|
-
color:rgb(185, 6, 144);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.ace-tm .ace_meta.ace_tag {
|
|
120
|
-
color:rgb(0, 22, 142);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.ace-tm .ace_string.ace_regex {
|
|
124
|
-
color: rgb(255, 0, 0)
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.ace-tm .ace_marker-layer .ace_selection {
|
|
128
|
-
background: rgb(181, 213, 255);
|
|
129
|
-
}
|
|
130
|
-
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
|
131
|
-
box-shadow: 0 0 3px 0px white;
|
|
132
|
-
}
|
|
133
|
-
.ace-tm .ace_marker-layer .ace_step {
|
|
134
|
-
background: rgb(252, 255, 0);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.ace-tm .ace_marker-layer .ace_stack {
|
|
138
|
-
background: rgb(164, 229, 101);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.ace-tm .ace_marker-layer .ace_bracket {
|
|
142
|
-
margin: -1px 0 0 -1px;
|
|
143
|
-
border: 1px solid rgb(192, 192, 192);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ace-tm .ace_marker-layer .ace_active-line {
|
|
147
|
-
background: rgba(0, 0, 0, 0.07);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.ace-tm .ace_gutter-active-line {
|
|
151
|
-
background-color : #dcdcdc;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.ace-tm .ace_marker-layer .ace_selected-word {
|
|
155
|
-
background: rgb(250, 250, 255);
|
|
156
|
-
border: 1px solid rgb(200, 200, 250);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.ace-tm .ace_indent-guide {
|
|
160
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.ace-tm .ace_indent-guide-active {
|
|
164
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
165
|
-
}
|
|
166
|
-
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate.css","ace/lib/dom"],function(t,r,i){r.isDark=!1,r.cssClass="ace-tm",r.cssText=t("./textmate.css"),r.$id="ace/theme/textmate";var s=t("../lib/dom");s.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(t,r,i){var s=t("./lib/lang");t("./lib/oop");var d=t("./lib/net"),f=t("./lib/dom"),l=t("./lib/app_config").AppConfig;i.exports=r=new l;var m={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(u){if(!m.hasOwnProperty(u))throw new Error("Unknown config key: "+u);return m[u]},r.set=function(u,p){if(m.hasOwnProperty(u))m[u]=p;else if(this.setDefaultValue("",u,p)==!1)throw new Error("Unknown config key: "+u);u=="useStrictCSP"&&f.useStrictCSP(p)},r.all=function(){return s.copyObject(m)},r.$modes={},r.moduleUrl=function(u,p){if(m.$moduleUrls[u])return m.$moduleUrls[u];var v=u.split("/");p=p||v[v.length-2]||"";var w=p=="snippets"?"/":"-",b=v[v.length-1];if(p=="worker"&&w=="-"){var _=new RegExp("^"+p+"[\\-_]|[\\-_]"+p+"$","g");b=b.replace(_,"")}(!b||b==p)&&v.length>1&&(b=v[v.length-2]);var E=m[p+"Path"];return E==null?E=m.basePath:w=="/"&&(p=w=""),E&&E.slice(-1)!="/"&&(E+="/"),E+p+w+b+this.get("suffix")},r.setModuleUrl=function(u,p){return m.$moduleUrls[u]=p};var a=function(u,p){return u==="ace/theme/textmate"||u==="./theme/textmate"?p(null,t("./theme/textmate")):console.error("loader is not configured")};r.setLoader=function(u){a=u},r.dynamicModules=Object.create(null),r.$loading={},r.loadModule=function(u,p){var v,w;Array.isArray(u)&&(w=u[0],u=u[1]);var b=function(_){if(_&&!r.$loading[u])return p&&p(_);if(r.$loading[u]||(r.$loading[u]=[]),r.$loading[u].push(p),!(r.$loading[u].length>1)){var E=function(){a(u,function($,x){r._emit("load.module",{name:u,module:x});var S=r.$loading[u];r.$loading[u]=null,S.forEach(function(T){T&&T(x)})})};if(!r.get("packaged"))return E();d.loadScript(r.moduleUrl(u,w),E),o()}};if(r.dynamicModules[u])r.dynamicModules[u]().then(function(_){_.default?b(_.default):b(_)});else{try{v=t(u)}catch{}b(v)}},r.setModuleLoader=function(u,p){r.dynamicModules[u]=p};var o=function(){!m.basePath&&!m.workerPath&&!m.modePath&&!m.themePath&&!Object.keys(m.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),o=function(){})};r.version="1.15.3"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,r,i){t("./lib/fixoldbrowsers");var s=t("./config");s.setLoader(function(m,a){t([m],function(o){a(null,o)})});var d=function(){return this||typeof window<"u"&&window}();i.exports=function(m){s.init=f,m.require=t},f(!0);function f(m){if(!(!d||!d.document)){s.set("packaged",m||t.packaged||i.packaged||d.define&&(void 0).packaged);var a={},o="",u=document.currentScript||document._currentScript,p=u&&u.ownerDocument||document;u&&u.src&&(o=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var v=p.getElementsByTagName("script"),w=0;w<v.length;w++){var b=v[w],_=b.src||b.getAttribute("src");if(_){for(var E=b.attributes,$=0,x=E.length;$<x;$++){var S=E[$];S.name.indexOf("data-ace-")===0&&(a[l(S.name.replace(/^data-ace-/,""))]=S.value)}var T=_.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);T&&(o=T[1])}}o&&(a.base=a.base||o,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base;for(var M in a)typeof a[M]<"u"&&s.set(M,a[M])}}function l(m){return m.replace(/-(.)/g,function(a,o){return o.toUpperCase()})}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(t,r,i){/*! @license
|
|
167
|
-
==========================================================================
|
|
168
|
-
SproutCore -- JavaScript Application Framework
|
|
169
|
-
copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
|
|
170
|
-
|
|
171
|
-
Permission is hereby granted, free of charge, to any person obtaining a
|
|
172
|
-
copy of this software and associated documentation files (the "Software"),
|
|
173
|
-
to deal in the Software without restriction, including without limitation
|
|
174
|
-
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
175
|
-
and/or sell copies of the Software, and to permit persons to whom the
|
|
176
|
-
Software is furnished to do so, subject to the following conditions:
|
|
177
|
-
|
|
178
|
-
The above copyright notice and this permission notice shall be included in
|
|
179
|
-
all copies or substantial portions of the Software.
|
|
180
|
-
|
|
181
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
182
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
183
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
184
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
185
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
186
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
187
|
-
DEALINGS IN THE SOFTWARE.
|
|
188
|
-
|
|
189
|
-
SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
|
|
190
|
-
|
|
191
|
-
For more information about SproutCore, visit http://www.sproutcore.com
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
==========================================================================
|
|
195
|
-
@license */var s=t("./oop"),d=function(){var f={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};f.PRINTABLE_KEYS[173]="-";var l,m;for(m in f.FUNCTION_KEYS)l=f.FUNCTION_KEYS[m].toLowerCase(),f[l]=parseInt(m,10);for(m in f.PRINTABLE_KEYS)l=f.PRINTABLE_KEYS[m].toLowerCase(),f[l]=parseInt(m,10);return s.mixin(f,f.MODIFIER_KEYS),s.mixin(f,f.PRINTABLE_KEYS),s.mixin(f,f.FUNCTION_KEYS),f.enter=f.return,f.escape=f.esc,f.del=f.delete,function(){for(var a=["cmd","ctrl","alt","shift"],o=Math.pow(2,a.length);o--;)f.KEY_MODS[o]=a.filter(function(u){return o&f.KEY_MODS[u]}).join("-")+"-"}(),f.KEY_MODS[0]="",f.KEY_MODS[-1]="input-",f}();s.mixin(r,d),r.keyCodeToString=function(f){var l=d[f];return typeof l!="string"&&(l=String.fromCharCode(f)),l.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,i){var s=t("./keys"),d=t("./useragent"),f=null,l=0,m;function a(){m=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){m={passive:!1}}})}catch{}}function o(){return m==null&&a(),m}function u($,x,S){this.elem=$,this.type=x,this.callback=S}u.prototype.destroy=function(){v(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var p=r.addListener=function($,x,S,T){$.addEventListener(x,S,o()),T&&T.$toDestroy.push(new u($,x,S))},v=r.removeListener=function($,x,S){$.removeEventListener(x,S,o())};r.stopEvent=function($){return r.stopPropagation($),r.preventDefault($),!1},r.stopPropagation=function($){$.stopPropagation&&$.stopPropagation()},r.preventDefault=function($){$.preventDefault&&$.preventDefault()},r.getButton=function($){return $.type=="dblclick"?0:$.type=="contextmenu"||d.isMac&&$.ctrlKey&&!$.altKey&&!$.shiftKey?2:$.button},r.capture=function($,x,S){var T=$&&$.ownerDocument||document;function M(A){x&&x(A),S&&S(A),v(T,"mousemove",x),v(T,"mouseup",M),v(T,"dragstart",M)}return p(T,"mousemove",x),p(T,"mouseup",M),p(T,"dragstart",M),M},r.addMouseWheelListener=function($,x,S){p($,"wheel",function(T){var M=.15,A=T.deltaX||0,R=T.deltaY||0;switch(T.deltaMode){case T.DOM_DELTA_PIXEL:T.wheelX=A*M,T.wheelY=R*M;break;case T.DOM_DELTA_LINE:var y=15;T.wheelX=A*y,T.wheelY=R*y;break;case T.DOM_DELTA_PAGE:var k=150;T.wheelX=A*k,T.wheelY=R*k;break}x(T)},S)},r.addMultiMouseDownListener=function($,x,S,T,M){var A=0,R,y,k,O={2:"dblclick",3:"tripleclick",4:"quadclick"};function N(I){if(r.getButton(I)!==0?A=0:I.detail>1?(A++,A>4&&(A=1)):A=1,d.isIE){var P=Math.abs(I.clientX-R)>5||Math.abs(I.clientY-y)>5;(!k||P)&&(A=1),k&&clearTimeout(k),k=setTimeout(function(){k=null},x[A-1]||600),A==1&&(R=I.clientX,y=I.clientY)}if(I._clicks=A,S[T]("mousedown",I),A>4)A=0;else if(A>1)return S[T](O[A],I)}Array.isArray($)||($=[$]),$.forEach(function(I){p(I,"mousedown",N,M)})};var w=function($){return 0|($.ctrlKey?1:0)|($.altKey?2:0)|($.shiftKey?4:0)|($.metaKey?8:0)};r.getModifierString=function($){return s.KEY_MODS[w($)]};function b($,x,S){var T=w(x);if(!d.isMac&&f){if(x.getModifierState&&(x.getModifierState("OS")||x.getModifierState("Win"))&&(T|=8),f.altGr)if((3&T)!=3)f.altGr=0;else return;if(S===18||S===17){var M="location"in x?x.location:x.keyLocation;if(S===17&&M===1)f[S]==1&&(l=x.timeStamp);else if(S===18&&T===3&&M===2){var A=x.timeStamp-l;A<50&&(f.altGr=!0)}}}if(S in s.MODIFIER_KEYS&&(S=-1),!T&&S===13){var M="location"in x?x.location:x.keyLocation;if(M===3&&($(x,T,-S),x.defaultPrevented))return}if(d.isChromeOS&&T&8){if($(x,T,S),x.defaultPrevented)return;T&=-9}return!T&&!(S in s.FUNCTION_KEYS)&&!(S in s.PRINTABLE_KEYS)?!1:$(x,T,S)}r.addCommandKeyListener=function($,x,S){if(d.isOldGecko||d.isOpera&&!("KeyboardEvent"in window)){var T=null;p($,"keydown",function(A){T=A.keyCode},S),p($,"keypress",function(A){return b(x,A,T)},S)}else{var M=null;p($,"keydown",function(A){f[A.keyCode]=(f[A.keyCode]||0)+1;var R=b(x,A,A.keyCode);return M=A.defaultPrevented,R},S),p($,"keypress",function(A){M&&(A.ctrlKey||A.altKey||A.shiftKey||A.metaKey)&&(r.stopEvent(A),M=null)},S),p($,"keyup",function(A){f[A.keyCode]=null},S),f||(_(),p(window,"focus",_))}};function _(){f=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!d.isOldIE){var E=1;r.nextTick=function($,x){x=x||window;var S="zero-timeout-message-"+E++,T=function(M){M.data==S&&(r.stopPropagation(M),v(x,"message",T),$())};p(x,"message",T),x.postMessage(S,"*")}}r.$idleBlocked=!1,r.onIdle=function($,x){return setTimeout(function S(){r.$idleBlocked?setTimeout(S,100):$()},x)},r.$idleBlockId=null,r.blockIdle=function($){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},$||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function($){setTimeout($,17)}}),ace.define("ace/range",["require","exports","module"],function(t,r,i){var s=function(f,l){return f.row-l.row||f.column-l.column},d=function(f,l,m,a){this.start={row:f,column:l},this.end={row:m,column:a}};(function(){this.isEqual=function(f){return this.start.row===f.start.row&&this.end.row===f.end.row&&this.start.column===f.start.column&&this.end.column===f.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(f,l){return this.compare(f,l)==0},this.compareRange=function(f){var l,m=f.end,a=f.start;return l=this.compare(m.row,m.column),l==1?(l=this.compare(a.row,a.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(a.row,a.column),l==-1?-1:l==1?42:0)},this.comparePoint=function(f){return this.compare(f.row,f.column)},this.containsRange=function(f){return this.comparePoint(f.start)==0&&this.comparePoint(f.end)==0},this.intersects=function(f){var l=this.compareRange(f);return l==-1||l==0||l==1},this.isEnd=function(f,l){return this.end.row==f&&this.end.column==l},this.isStart=function(f,l){return this.start.row==f&&this.start.column==l},this.setStart=function(f,l){typeof f=="object"?(this.start.column=f.column,this.start.row=f.row):(this.start.row=f,this.start.column=l)},this.setEnd=function(f,l){typeof f=="object"?(this.end.column=f.column,this.end.row=f.row):(this.end.row=f,this.end.column=l)},this.inside=function(f,l){return this.compare(f,l)==0?!(this.isEnd(f,l)||this.isStart(f,l)):!1},this.insideStart=function(f,l){return this.compare(f,l)==0?!this.isEnd(f,l):!1},this.insideEnd=function(f,l){return this.compare(f,l)==0?!this.isStart(f,l):!1},this.compare=function(f,l){return!this.isMultiLine()&&f===this.start.row?l<this.start.column?-1:l>this.end.column?1:0:f<this.start.row?-1:f>this.end.row?1:this.start.row===f?l>=this.start.column?0:-1:this.end.row===f?l<=this.end.column?0:1:0},this.compareStart=function(f,l){return this.start.row==f&&this.start.column==l?-1:this.compare(f,l)},this.compareEnd=function(f,l){return this.end.row==f&&this.end.column==l?1:this.compare(f,l)},this.compareInside=function(f,l){return this.end.row==f&&this.end.column==l?1:this.start.row==f&&this.start.column==l?-1:this.compare(f,l)},this.clipRows=function(f,l){if(this.end.row>l)var m={row:l+1,column:0};else if(this.end.row<f)var m={row:f,column:0};if(this.start.row>l)var a={row:l+1,column:0};else if(this.start.row<f)var a={row:f,column:0};return d.fromPoints(a||this.start,m||this.end)},this.extend=function(f,l){var m=this.compare(f,l);if(m==0)return this;if(m==-1)var a={row:f,column:l};else var o={row:f,column:l};return d.fromPoints(a||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return d.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new d(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new d(this.start.row,0,this.end.row,0)},this.toScreenRange=function(f){var l=f.documentToScreenPosition(this.start),m=f.documentToScreenPosition(this.end);return new d(l.row,l.column,m.row,m.column)},this.moveBy=function(f,l){this.start.row+=f,this.start.column+=l,this.end.row+=f,this.end.column+=l}}).call(d.prototype),d.fromPoints=function(f,l){return new d(f.row,f.column,l.row,l.column)},d.comparePoints=s,d.comparePoints=function(f,l){return f.row-l.row||f.column-l.column},r.Range=d}),ace.define("ace/clipboard",["require","exports","module"],function(t,r,i){var s;i.exports={lineMode:!1,pasteCancelled:function(){return s&&s>Date.now()-50?!0:s=!1},cancel:function(){s=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(t,r,i){var s=t("../lib/event"),d=t("../lib/useragent"),f=t("../lib/dom"),l=t("../lib/lang"),m=t("../clipboard"),a=d.isChrome<18,o=d.isIE,u=d.isChrome>63,p=400,v=t("../lib/keys"),w=v.KEY_MODS,b=d.isIOS,_=b?/\s/:/\n/,E=d.isMobile,$=function(x,S){var T=f.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck",!1),T.style.opacity="0",x.insertBefore(T,x.firstChild);var M=!1,A=!1,R=!1,y=!1,k="";E||(T.style.fontSize="1px");var O=!1,N=!1,I="",P=0,B=0,z=0;try{var j=document.activeElement===T}catch{}this.setAriaOptions=function(ae){ae.activeDescendant?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete","list"),T.setAttribute("aria-activedescendant",ae.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),ae.role&&T.setAttribute("role",ae.role)},this.setAriaOptions({role:"textbox"}),s.addListener(T,"blur",function(ae){N||(S.onBlur(ae),j=!1)},S),s.addListener(T,"focus",function(ae){if(!N){if(j=!0,d.isEdge)try{if(!document.hasFocus())return}catch{}S.onFocus(ae),d.isEdge?setTimeout(J):J()}},S),this.$focusScroll=!1,this.focus=function(){if(k||u||this.$focusScroll=="browser")return T.focus({preventScroll:!0});var ae=T.style.top;T.style.position="fixed",T.style.top="0px";try{var ye=T.getBoundingClientRect().top!=0}catch{return}var ee=[];if(ye)for(var le=T.parentElement;le&&le.nodeType==1;)ee.push(le),le.setAttribute("ace_nocontext",!0),!le.parentElement&&le.getRootNode?le=le.getRootNode().host:le=le.parentElement;T.focus({preventScroll:!0}),ye&&ee.forEach(function(xe){xe.removeAttribute("ace_nocontext")}),setTimeout(function(){T.style.position="",T.style.top=="0px"&&(T.style.top=ae)},0)},this.blur=function(){T.blur()},this.isFocused=function(){return j},S.on("beforeEndOperation",function(){var ae=S.curOp,ye=ae&&ae.command&&ae.command.name;if(ye!="insertstring"){var ee=ye&&(ae.docChanged||ae.selectionChanged);R&&ee&&(I=T.value="",H()),J()}});var J=b?function(ae){if(!(!j||M&&!ae||y)){ae||(ae="");var ye=`
|
|
196
|
-
ab`+ae+`cde fg
|
|
197
|
-
`;ye!=T.value&&(T.value=I=ye);var ee=4,le=4+(ae.length||(S.selection.isEmpty()?0:1));(P!=ee||B!=le)&&T.setSelectionRange(ee,le),P=ee,B=le}}:function(){if(!(R||y)&&!(!j&&!Y)){R=!0;var ae=0,ye=0,ee="";if(S.session){var le=S.selection,xe=le.getRange(),Ie=le.cursor.row;if(ae=xe.start.column,ye=xe.end.column,ee=S.session.getLine(Ie),xe.start.row!=Ie){var ot=S.session.getLine(Ie-1);ae=xe.start.row<Ie-1?0:ae,ye+=ot.length+1,ee=ot+`
|
|
198
|
-
`+ee}else if(xe.end.row!=Ie){var et=S.session.getLine(Ie+1);ye=xe.end.row>Ie+1?et.length:ye,ye+=ee.length+1,ee=ee+`
|
|
199
|
-
`+et}else E&&Ie>0&&(ee=`
|
|
200
|
-
`+ee,ye+=1,ae+=1);ee.length>p&&(ae<p&&ye<p?ee=ee.slice(0,p):(ee=`
|
|
201
|
-
`,ae==ye?ae=ye=0:(ae=0,ye=1)))}var tt=ee+`
|
|
202
|
-
|
|
203
|
-
`;if(tt!=I&&(T.value=I=tt,P=B=tt.length),Y&&(P=T.selectionStart,B=T.selectionEnd),B!=ye||P!=ae||T.selectionEnd!=B)try{T.setSelectionRange(ae,ye),P=ae,B=ye}catch{}R=!1}};this.resetSelection=J,j&&S.onFocus();var q=function(ae){return ae.selectionStart===0&&ae.selectionEnd>=I.length&&ae.value===I&&I&&ae.selectionEnd!==B},re=function(ae){R||(M?M=!1:q(T)?(S.selectAll(),J()):E&&T.selectionStart!=P&&J())},ie=null;this.setInputHandler=function(ae){ie=ae},this.getInputHandler=function(){return ie};var Y=!1,ne=function(ae,ye){if(Y&&(Y=!1),A)return J(),ae&&S.onPaste(ae),A=!1,"";for(var ee=T.selectionStart,le=T.selectionEnd,xe=P,Ie=I.length-B,ot=ae,et=ae.length-ee,tt=ae.length-le,Ke=0;xe>0&&I[Ke]==ae[Ke];)Ke++,xe--;for(ot=ot.slice(Ke),Ke=1;Ie>0&&I.length-Ke>P-1&&I[I.length-Ke]==ae[ae.length-Ke];)Ke++,Ie--;et-=Ke-1,tt-=Ke-1;var Qt=ot.length-Ke+1;if(Qt<0&&(xe=-Qt,Qt=0),ot=ot.slice(0,Qt),!ye&&!ot&&!et&&!xe&&!Ie&&!tt)return"";y=!0;var rr=!1;return d.isAndroid&&ot==". "&&(ot=" ",rr=!0),ot&&!xe&&!Ie&&!et&&!tt||O?S.onTextInput(ot):S.onTextInput(ot,{extendLeft:xe,extendRight:Ie,restoreStart:et,restoreEnd:tt}),y=!1,I=ae,P=ee,B=le,z=tt,rr?`
|
|
204
|
-
`:ot},oe=function(ae){if(R)return $e();if(ae&&ae.inputType){if(ae.inputType=="historyUndo")return S.execCommand("undo");if(ae.inputType=="historyRedo")return S.execCommand("redo")}var ye=T.value,ee=ne(ye,!0);(ye.length>p+100||_.test(ee)||E&&P<1&&P==B)&&J()},fe=function(ae,ye,ee){var le=ae.clipboardData||window.clipboardData;if(!(!le||a)){var xe=o||ee?"Text":"text/plain";try{return ye?le.setData(xe,ye)!==!1:le.getData(xe)}catch(Ie){if(!ee)return fe(Ie,ye,!0)}}},we=function(ae,ye){var ee=S.getCopyText();if(!ee)return s.preventDefault(ae);fe(ae,ee)?(b&&(J(ee),M=ee,setTimeout(function(){M=!1},10)),ye?S.onCut():S.onCopy(),s.preventDefault(ae)):(M=!0,T.value=ee,T.select(),setTimeout(function(){M=!1,J(),ye?S.onCut():S.onCopy()}))},G=function(ae){we(ae,!0)},pe=function(ae){we(ae,!1)},me=function(ae){var ye=fe(ae);m.pasteCancelled()||(typeof ye=="string"?(ye&&S.onPaste(ye,ae),d.isIE&&setTimeout(J),s.preventDefault(ae)):(T.value="",A=!0))};s.addCommandKeyListener(T,S.onCommandKey.bind(S),S),s.addListener(T,"select",re,S),s.addListener(T,"input",oe,S),s.addListener(T,"cut",G,S),s.addListener(T,"copy",pe,S),s.addListener(T,"paste",me,S),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&s.addListener(x,"keydown",function(ae){if(!(d.isMac&&!ae.metaKey||!ae.ctrlKey))switch(ae.keyCode){case 67:pe(ae);break;case 86:me(ae);break;case 88:G(ae);break}},S);var be=function(ae){if(!(R||!S.onCompositionStart||S.$readOnly)&&(R={},!O)){ae.data&&(R.useTextareaForIME=!1),setTimeout($e,0),S._signal("compositionStart"),S.on("mousedown",U);var ye=S.getSelectionRange();ye.end.row=ye.start.row,ye.end.column=ye.start.column,R.markerRange=ye,R.selectionStart=P,S.onCompositionStart(R),R.useTextareaForIME?(I=T.value="",P=0,B=0):(T.msGetInputContext&&(R.context=T.msGetInputContext()),T.getInputContext&&(R.context=T.getInputContext()))}},$e=function(){if(!(!R||!S.onCompositionUpdate||S.$readOnly)){if(O)return U();if(R.useTextareaForIME)S.onCompositionUpdate(T.value);else{var ae=T.value;ne(ae),R.markerRange&&(R.context&&(R.markerRange.start.column=R.selectionStart=R.context.compositionStartOffset),R.markerRange.end.column=R.markerRange.start.column+B-R.selectionStart+z)}}},H=function(ae){!S.onCompositionEnd||S.$readOnly||(R=!1,S.onCompositionEnd(),S.off("mousedown",U),ae&&oe())};function U(){N=!0,T.blur(),T.focus(),N=!1}var te=l.delayedCall($e,50).schedule.bind(null,null);function ve(ae){ae.keyCode==27&&T.value.length<T.selectionStart&&(R||(I=T.value),P=B=-1,J()),te()}s.addListener(T,"compositionstart",be,S),s.addListener(T,"compositionupdate",$e,S),s.addListener(T,"keyup",ve,S),s.addListener(T,"keydown",te,S),s.addListener(T,"compositionend",H,S),this.getElement=function(){return T},this.setCommandMode=function(ae){O=ae,T.readOnly=!1},this.setReadOnly=function(ae){O||(T.readOnly=ae)},this.setCopyWithEmptySelection=function(ae){},this.onContextMenu=function(ae){Y=!0,J(),S._emit("nativecontextmenu",{target:S,domEvent:ae}),this.moveToMouse(ae,!0)},this.moveToMouse=function(ae,ye){k||(k=T.style.cssText),T.style.cssText=(ye?"z-index:100000;":"")+(d.isIE?"opacity:0.1;":"")+"text-indent: -"+(P+B)*S.renderer.characterWidth*.5+"px;";var ee=S.container.getBoundingClientRect(),le=f.computedStyle(S.container),xe=ee.top+(parseInt(le.borderTopWidth)||0),Ie=ee.left+(parseInt(ee.borderLeftWidth)||0),ot=ee.bottom-xe-T.clientHeight-2,et=function(tt){f.translate(T,tt.clientX-Ie-2,Math.min(tt.clientY-xe-2,ot))};et(ae),ae.type=="mousedown"&&(S.renderer.$isMousePressed=!0,clearTimeout(ke),d.isWin&&s.capture(S.container,et,Ne))},this.onContextMenuClose=Ne;var ke;function Ne(){clearTimeout(ke),ke=setTimeout(function(){k&&(T.style.cssText=k,k=""),S.renderer.$isMousePressed=!1,S.renderer.$keepTextAreaAtCursor&&S.renderer.$moveTextAreaToCursor()},0)}var Tt=function(ae){S.textInput.onContextMenu(ae),Ne()};s.addListener(T,"mouseup",Tt,S),s.addListener(T,"mousedown",function(ae){ae.preventDefault(),Ne()},S),s.addListener(S.renderer.scroller,"contextmenu",Tt,S),s.addListener(T,"contextmenu",Tt,S),b&>(x,S,T);function gt(ae,ye,ee){var le=null,xe=!1;ee.addEventListener("keydown",function(ot){le&&clearTimeout(le),xe=!0},!0),ee.addEventListener("keyup",function(ot){le=setTimeout(function(){xe=!1},100)},!0);var Ie=function(ot){if(document.activeElement===ee&&!(xe||R||ye.$mouseHandler.isMousePressed)&&!M){var et=ee.selectionStart,tt=ee.selectionEnd,Ke=null,Qt=0;if(et==0?Ke=v.up:et==1?Ke=v.home:tt>B&&I[tt]==`
|
|
205
|
-
`?Ke=v.end:et<P&&I[et-1]==" "?(Ke=v.left,Qt=w.option):et<P||et==P&&B!=P&&et==tt?Ke=v.left:tt>B&&I.slice(0,tt).split(`
|
|
206
|
-
`).length>2?Ke=v.down:tt>B&&I[tt-1]==" "?(Ke=v.right,Qt=w.option):(tt>B||tt==B&&B!=P&&et==tt)&&(Ke=v.right),et!==tt&&(Qt|=w.shift),Ke){var rr=ye.onCommandKey({},Qt,Ke);if(!rr&&ye.commands){Ke=v.keyCodeToString(Ke);var gs=ye.commands.findKeyCommand(Qt,Ke);gs&&ye.execCommand(gs)}P=et,B=tt,J("")}}};document.addEventListener("selectionchange",Ie),ye.on("destroy",function(){document.removeEventListener("selectionchange",Ie)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}};r.TextInput=$,r.$setUserAgentForTests=function(x,S){E=x,b=S}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,r,i){var s=t("../lib/useragent"),d=0,f=550;function l(o){o.$clickSelection=null;var u=o.editor;u.setDefaultHandler("mousedown",this.onMouseDown.bind(o)),u.setDefaultHandler("dblclick",this.onDoubleClick.bind(o)),u.setDefaultHandler("tripleclick",this.onTripleClick.bind(o)),u.setDefaultHandler("quadclick",this.onQuadClick.bind(o)),u.setDefaultHandler("mousewheel",this.onMouseWheel.bind(o));var p=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];p.forEach(function(v){o[v]=this[v]},this),o.selectByLines=this.extendSelectionBy.bind(o,"getLineRange"),o.selectByWords=this.extendSelectionBy.bind(o,"getWordRange")}(function(){this.onMouseDown=function(o){var u=o.inSelection(),p=o.getDocumentPosition();this.mousedownEvent=o;var v=this.editor,w=o.getButton();if(w!==0){var b=v.getSelectionRange(),_=b.isEmpty();(_||w==1)&&v.selection.moveToPosition(p),w==2&&(v.textInput.onContextMenu(o.domEvent),s.isMozilla||o.preventDefault());return}if(this.mousedownEvent.time=Date.now(),u&&!v.isFocused()&&(v.focus(),this.$focusTimeout&&!this.$clickSelection&&!v.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(o);return}return this.captureMouse(o),this.startSelect(p,o.domEvent._clicks>1),o.preventDefault()},this.startSelect=function(o,u){o=o||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var p=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?p.selection.selectToPosition(o):u||p.selection.moveToPosition(o),u||this.select(),p.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var o,u=this.editor,p=u.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(p);if(v==-1)o=this.$clickSelection.end;else if(v==1)o=this.$clickSelection.start;else{var w=a(this.$clickSelection,p);p=w.cursor,o=w.anchor}u.selection.setSelectionAnchor(o.row,o.column)}u.selection.selectToPosition(p),u.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(o){var u,p=this.editor,v=p.renderer.screenToTextCoordinates(this.x,this.y),w=p.selection[o](v.row,v.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(w.start),_=this.$clickSelection.comparePoint(w.end);if(b==-1&&_<=0)u=this.$clickSelection.end,(w.end.row!=v.row||w.end.column!=v.column)&&(v=w.start);else if(_==1&&b>=0)u=this.$clickSelection.start,(w.start.row!=v.row||w.start.column!=v.column)&&(v=w.end);else if(b==-1&&_==1)v=w.end,u=w.start;else{var E=a(this.$clickSelection,v);v=E.cursor,u=E.anchor}p.selection.setSelectionAnchor(u.row,u.column)}p.selection.selectToPosition(v),p.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},this.focusWait=function(){var o=m(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),u=Date.now();(o>d||u-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(o){var u=o.getDocumentPosition(),p=this.editor,v=p.session,w=v.getBracketRange(u);w?(w.isEmpty()&&(w.start.column--,w.end.column++),this.setState("select")):(w=p.selection.getWordRange(u.row,u.column),this.setState("selectByWords")),this.$clickSelection=w,this.select()},this.onTripleClick=function(o){var u=o.getDocumentPosition(),p=this.editor;this.setState("selectByLines");var v=p.getSelectionRange();v.isMultiLine()&&v.contains(u.row,u.column)?(this.$clickSelection=p.selection.getLineRange(v.start.row),this.$clickSelection.end=p.selection.getLineRange(v.end.row).end):this.$clickSelection=p.selection.getLineRange(u.row),this.select()},this.onQuadClick=function(o){var u=this.editor;u.selectAll(),this.$clickSelection=u.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(o){if(!o.getAccelKey()){o.getShiftKey()&&o.wheelY&&!o.wheelX&&(o.wheelX=o.wheelY,o.wheelY=0);var u=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var p=this.$lastScroll,v=o.domEvent.timeStamp,w=v-p.t,b=w?o.wheelX/w:p.vx,_=w?o.wheelY/w:p.vy;w<f&&(b=(b+p.vx)/2,_=(_+p.vy)/2);var E=Math.abs(b/_),$=!1;if(E>=1&&u.renderer.isScrollableBy(o.wheelX*o.speed,0)&&($=!0),E<=1&&u.renderer.isScrollableBy(0,o.wheelY*o.speed)&&($=!0),$)p.allowed=v;else if(v-p.allowed<f){var x=Math.abs(b)<=1.5*Math.abs(p.vx)&&Math.abs(_)<=1.5*Math.abs(p.vy);x?($=!0,p.allowed=v):p.allowed=0}if(p.t=v,p.vx=b,p.vy=_,$)return u.renderer.scrollBy(o.wheelX*o.speed,o.wheelY*o.speed),o.stop()}}}).call(l.prototype),r.DefaultHandlers=l;function m(o,u,p,v){return Math.sqrt(Math.pow(p-o,2)+Math.pow(v-u,2))}function a(o,u){if(o.start.row==o.end.row)var p=2*u.column-o.start.column-o.end.column;else if(o.start.row==o.end.row-1&&!o.start.column&&!o.end.column)var p=u.column-4;else var p=2*u.row-o.start.row-o.end.row;return p<0?{cursor:o.start,anchor:o.end}:{cursor:o.end,anchor:o.start}}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(t,r,i){t("./lib/oop");var s=t("./lib/dom"),d="ace_tooltip";function f(l){this.isOpen=!1,this.$element=null,this.$parentNode=l}(function(){this.$init=function(){return this.$element=s.createElement("div"),this.$element.className=d,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(l){this.getElement().textContent=l},this.setHtml=function(l){this.getElement().innerHTML=l},this.setPosition=function(l,m){this.getElement().style.left=l+"px",this.getElement().style.top=m+"px"},this.setClassName=function(l){s.addCssClass(this.getElement(),l)},this.show=function(l,m,a){l!=null&&this.setText(l),m!=null&&a!=null&&this.setPosition(m,a),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=d,this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(f.prototype),r.Tooltip=f}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(t,r,i){var s=t("../lib/dom"),d=t("../lib/oop"),f=t("../lib/event"),l=t("../tooltip").Tooltip;function m(o){var u=o.editor,p=u.renderer.$gutterLayer,v=new a(u.container);o.editor.setDefaultHandler("guttermousedown",function(S){if(!(!u.isFocused()||S.getButton()!=0)){var T=p.getRegion(S);if(T!="foldWidgets"){var M=S.getDocumentPosition().row,A=u.session.selection;if(S.getShiftKey())A.selectTo(M,0);else{if(S.domEvent.detail==2)return u.selectAll(),S.preventDefault();o.$clickSelection=u.selection.getLineRange(M)}return o.setState("selectByLines"),o.captureMouse(S),S.preventDefault()}}});var w,b,_;function E(){var S=b.getDocumentPosition().row,T=p.$annotations[S];if(!T)return $();var M=u.session.getLength();if(S==M){var A=u.renderer.pixelToScreenCoordinates(0,b.y).row,R=b.$pos;if(A>u.session.documentToScreenRow(R.row,R.column))return $()}if(_!=T){_=T.text.join("<br/>"),v.setHtml(_);var y=T.className;if(y&&v.setClassName(y.trim()),v.show(),u._signal("showGutterTooltip",v),u.on("mousewheel",$),o.$tooltipFollowsMouse)x(b);else{var k=b.domEvent.target,O=k.getBoundingClientRect(),N=v.getElement().style;N.left=O.right+"px",N.top=O.bottom+"px"}}}function $(){w&&(w=clearTimeout(w)),_&&(v.hide(),_=null,u._signal("hideGutterTooltip",v),u.off("mousewheel",$))}function x(S){v.setPosition(S.x,S.y)}o.editor.setDefaultHandler("guttermousemove",function(S){var T=S.domEvent.target||S.domEvent.srcElement;if(s.hasCssClass(T,"ace_fold-widget"))return $();_&&o.$tooltipFollowsMouse&&x(S),b=S,!w&&(w=setTimeout(function(){w=null,b&&!o.isMousePressed?E():$()},50))}),f.addListener(u.renderer.$gutter,"mouseout",function(S){b=null,!(!_||w)&&(w=setTimeout(function(){w=null,$()},50))},u),u.on("changeSession",$)}function a(o){l.call(this,o)}d.inherits(a,l),function(){this.setPosition=function(o,u){var p=window.innerWidth||document.documentElement.clientWidth,v=window.innerHeight||document.documentElement.clientHeight,w=this.getWidth(),b=this.getHeight();o+=15,u+=15,o+w>p&&(o-=o+w-p),u+b>v&&(u-=20+b),l.prototype.setPosition.call(this,o,u)}}.call(a.prototype),r.GutterHandler=m}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,i){var s=t("../lib/event"),d=t("../lib/useragent"),f=r.MouseEvent=function(l,m){this.domEvent=l,this.editor=m,this.x=this.clientX=l.clientX,this.y=this.clientY=l.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){s.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){s.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var l=this.editor,m=l.getSelectionRange();if(m.isEmpty())this.$inSelection=!1;else{var a=this.getDocumentPosition();this.$inSelection=m.contains(a.row,a.column)}return this.$inSelection},this.getButton=function(){return s.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=d.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(f.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(t,r,i){var s=t("../lib/dom"),d=t("../lib/event"),f=t("../lib/useragent"),l=200,m=200,a=5;function o(p){var v=p.editor,w=s.createElement("div");w.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",w.textContent=" ";var b=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];b.forEach(function(Y){p[Y]=this[Y]},this),v.on("mousedown",this.onMouseDown.bind(p));var _=v.container,E,$,x,S,T,M,A=0,R,y,k,O,N;this.onDragStart=function(Y){if(this.cancelDrag||!_.draggable){var ne=this;return setTimeout(function(){ne.startSelect(),ne.captureMouse(Y)},0),Y.preventDefault()}T=v.getSelectionRange();var oe=Y.dataTransfer;oe.effectAllowed=v.getReadOnly()?"copy":"copyMove",v.container.appendChild(w),oe.setDragImage&&oe.setDragImage(w,0,0),setTimeout(function(){v.container.removeChild(w)}),oe.clearData(),oe.setData("Text",v.session.getTextRange()),y=!0,this.setState("drag")},this.onDragEnd=function(Y){if(_.draggable=!1,y=!1,this.setState(null),!v.getReadOnly()){var ne=Y.dataTransfer.dropEffect;!R&&ne=="move"&&v.session.remove(v.getSelectionRange()),v.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(Y){if(!(v.getReadOnly()||!re(Y.dataTransfer)))return $=Y.clientX,x=Y.clientY,E||z(),A++,Y.dataTransfer.dropEffect=R=ie(Y),d.preventDefault(Y)},this.onDragOver=function(Y){if(!(v.getReadOnly()||!re(Y.dataTransfer)))return $=Y.clientX,x=Y.clientY,E||(z(),A++),J!==null&&(J=null),Y.dataTransfer.dropEffect=R=ie(Y),d.preventDefault(Y)},this.onDragLeave=function(Y){if(A--,A<=0&&E)return j(),R=null,d.preventDefault(Y)},this.onDrop=function(Y){if(M){var ne=Y.dataTransfer;if(y)switch(R){case"move":T.contains(M.row,M.column)?T={start:M,end:M}:T=v.moveText(T,M);break;case"copy":T=v.moveText(T,M,!0);break}else{var oe=ne.getData("Text");T={start:M,end:v.session.insert(M,oe)},v.focus(),R=null}return j(),d.preventDefault(Y)}},d.addListener(_,"dragstart",this.onDragStart.bind(p),v),d.addListener(_,"dragend",this.onDragEnd.bind(p),v),d.addListener(_,"dragenter",this.onDragEnter.bind(p),v),d.addListener(_,"dragover",this.onDragOver.bind(p),v),d.addListener(_,"dragleave",this.onDragLeave.bind(p),v),d.addListener(_,"drop",this.onDrop.bind(p),v);function I(Y,ne){var oe=Date.now(),fe=!ne||Y.row!=ne.row,we=!ne||Y.column!=ne.column;if(!O||fe||we)v.moveCursorToPosition(Y),O=oe,N={x:$,y:x};else{var G=u(N.x,N.y,$,x);G>a?O=null:oe-O>=m&&(v.renderer.scrollCursorIntoView(),O=null)}}function P(Y,ne){var oe=Date.now(),fe=v.renderer.layerConfig.lineHeight,we=v.renderer.layerConfig.characterWidth,G=v.renderer.scroller.getBoundingClientRect(),pe={x:{left:$-G.left,right:G.right-$},y:{top:x-G.top,bottom:G.bottom-x}},me=Math.min(pe.x.left,pe.x.right),be=Math.min(pe.y.top,pe.y.bottom),$e={row:Y.row,column:Y.column};me/we<=2&&($e.column+=pe.x.left<pe.x.right?-3:2),be/fe<=1&&($e.row+=pe.y.top<pe.y.bottom?-1:1);var H=Y.row!=$e.row,U=Y.column!=$e.column,te=!ne||Y.row!=ne.row;H||U&&!te?k?oe-k>=l&&v.renderer.scrollCursorIntoView($e):k=oe:k=null}function B(){var Y=M;M=v.renderer.screenToTextCoordinates($,x),I(M,Y),P(M,Y)}function z(){T=v.selection.toOrientedRange(),E=v.session.addMarker(T,"ace_selection",v.getSelectionStyle()),v.clearSelection(),v.isFocused()&&v.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),B(),S=setInterval(B,20),A=0,d.addListener(document,"mousemove",q)}function j(){clearInterval(S),v.session.removeMarker(E),E=null,v.selection.fromOrientedRange(T),v.isFocused()&&!y&&v.$resetCursorStyle(),T=null,M=null,A=0,k=null,O=null,d.removeListener(document,"mousemove",q)}var J=null;function q(){J==null&&(J=setTimeout(function(){J!=null&&E&&j()},20))}function re(Y){var ne=Y.types;return!ne||Array.prototype.some.call(ne,function(oe){return oe=="text/plain"||oe=="Text"})}function ie(Y){var ne=["copy","copymove","all","uninitialized"],oe=["move","copymove","linkmove","all","uninitialized"],fe=f.isMac?Y.altKey:Y.ctrlKey,we="uninitialized";try{we=Y.dataTransfer.effectAllowed.toLowerCase()}catch{}var G="none";return fe&&ne.indexOf(we)>=0?G="copy":oe.indexOf(we)>=0?G="move":ne.indexOf(we)>=0&&(G="copy"),G}}(function(){this.dragWait=function(){var p=Date.now()-this.mousedownEvent.time;p>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var p=this.editor.container;p.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(p){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var p=this.editor,v=p.container;v.draggable=!0,p.renderer.$cursorLayer.setBlinking(!1),p.setStyle("ace_dragging");var w=f.isWin?"default":"move";p.renderer.setCursorStyle(w),this.setState("dragReady")},this.onMouseDrag=function(p){var v=this.editor.container;if(f.isIE&&this.state=="dragReady"){var w=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);w>3&&v.dragDrop()}if(this.state==="dragWait"){var w=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);w>0&&(v.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(p){if(this.$dragEnabled){this.mousedownEvent=p;var v=this.editor,w=p.inSelection(),b=p.getButton(),_=p.domEvent.detail||1;if(_===1&&b===0&&w){if(p.editor.inMultiSelectMode&&(p.getAccelKey()||p.getShiftKey()))return;this.mousedownEvent.time=Date.now();var E=p.domEvent.target||p.domEvent.srcElement;if("unselectable"in E&&(E.unselectable="on"),v.getDragDelay()){if(f.isWebKit){this.cancelDrag=!0;var $=v.container;$.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(p,this.onMouseDrag.bind(this)),p.defaultPrevented=!0}}}}).call(o.prototype);function u(p,v,w,b){return Math.sqrt(Math.pow(w-p,2)+Math.pow(b-v,2))}r.DragdropHandler=o}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(t,r,i){var s=t("./mouse_event").MouseEvent,d=t("../lib/event"),f=t("../lib/dom");r.addTouchListeners=function(l,m){var a="scroll",o,u,p,v,w,b,_=0,E,$=0,x=0,S=0,T,M;function A(){var I=window.navigator&&window.navigator.clipboard,P=!1,B=function(){var j=m.getCopyText(),J=m.session.getUndoManager().hasUndo();M.replaceChild(f.buildDom(P?["span",!j&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],j&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],j&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],I&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],J&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),M.firstChild)},z=function(j){var J=j.target.getAttribute("action");if(J=="more"||!P)return P=!P,B();J=="paste"?I.readText().then(function(q){m.execCommand(J,q)}):J&&((J=="cut"||J=="copy")&&(I?I.writeText(m.getCopyText()):document.execCommand("copy")),m.execCommand(J)),M.firstChild.style.display="none",P=!1,J!="openCommandPallete"&&m.focus()};M=f.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(j){a="menu",j.stopPropagation(),j.preventDefault(),m.textInput.focus()},ontouchend:function(j){j.stopPropagation(),j.preventDefault(),z(j)},onclick:z},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],m.container)}function R(){M||A();var I=m.selection.cursor,P=m.renderer.textToScreenCoordinates(I.row,I.column),B=m.renderer.textToScreenCoordinates(0,0).pageX,z=m.renderer.scrollLeft,j=m.container.getBoundingClientRect();M.style.top=P.pageY-j.top-3+"px",P.pageX-j.left<j.width-70?(M.style.left="",M.style.right="10px"):(M.style.right="",M.style.left=B+z-j.left+"px"),M.style.display="",M.firstChild.style.display="none",m.on("input",y)}function y(I){M&&(M.style.display="none"),m.off("input",y)}function k(){w=null,clearTimeout(w);var I=m.selection.getRange(),P=I.contains(E.row,E.column);(I.isEmpty()||!P)&&(m.selection.moveToPosition(E),m.selection.selectWord()),a="wait",R()}function O(){w=null,clearTimeout(w),m.selection.moveToPosition(E);var I=$>=2?m.selection.getLineRange(E.row):m.session.getBracketRange(E);I&&!I.isEmpty()?m.selection.setRange(I):m.selection.selectWord(),a="wait"}d.addListener(l,"contextmenu",function(I){if(T){var P=m.textInput.getElement();P.focus()}},m),d.addListener(l,"touchstart",function(I){var P=I.touches;if(w||P.length>1){clearTimeout(w),w=null,p=-1,a="zoom";return}T=m.$mouseHandler.isMousePressed=!0;var B=m.renderer.layerConfig.lineHeight,z=m.renderer.layerConfig.lineHeight,j=I.timeStamp;v=j;var J=P[0],q=J.clientX,re=J.clientY;Math.abs(o-q)+Math.abs(u-re)>B&&(p=-1),o=I.clientX=q,u=I.clientY=re,x=S=0;var ie=new s(I,m);if(E=ie.getDocumentPosition(),j-p<500&&P.length==1&&!_)$++,I.preventDefault(),I.button=0,O();else{$=0;var Y=m.selection.cursor,ne=m.selection.isEmpty()?Y:m.selection.anchor,oe=m.renderer.$cursorLayer.getPixelPosition(Y,!0),fe=m.renderer.$cursorLayer.getPixelPosition(ne,!0),we=m.renderer.scroller.getBoundingClientRect(),G=m.renderer.layerConfig.offset,pe=m.renderer.scrollLeft,me=function(H,U){return H=H/z,U=U/B-.75,H*H+U*U};if(I.clientX<we.left){a="zoom";return}var be=me(I.clientX-we.left-oe.left+pe,I.clientY-we.top-oe.top+G),$e=me(I.clientX-we.left-fe.left+pe,I.clientY-we.top-fe.top+G);be<3.5&&$e<3.5&&(a=be>$e?"cursor":"anchor"),$e<3.5?a="anchor":be<3.5?a="cursor":a="scroll",w=setTimeout(k,450)}p=j},m),d.addListener(l,"touchend",function(I){T=m.$mouseHandler.isMousePressed=!1,b&&clearInterval(b),a=="zoom"?(a="",_=0):w?(m.selection.moveToPosition(E),_=0,R()):a=="scroll"?(N(),y()):R(),clearTimeout(w),w=null},m),d.addListener(l,"touchmove",function(I){w&&(clearTimeout(w),w=null);var P=I.touches;if(!(P.length>1||a=="zoom")){var B=P[0],z=o-B.clientX,j=u-B.clientY;if(a=="wait")if(z*z+j*j>4)a="cursor";else return I.preventDefault();o=B.clientX,u=B.clientY,I.clientX=B.clientX,I.clientY=B.clientY;var J=I.timeStamp,q=J-v;if(v=J,a=="scroll"){var re=new s(I,m);re.speed=1,re.wheelX=z,re.wheelY=j,10*Math.abs(z)<Math.abs(j)&&(z=0),10*Math.abs(j)<Math.abs(z)&&(j=0),q!=0&&(x=z/q,S=j/q),m._emit("mousewheel",re),re.propagationStopped||(x=S=0)}else{var ie=new s(I,m),Y=ie.getDocumentPosition();a=="cursor"?m.selection.moveCursorToPosition(Y):a=="anchor"&&m.selection.setSelectionAnchor(Y.row,Y.column),m.renderer.scrollCursorIntoView(Y),I.preventDefault()}}},m);function N(){_+=60,b=setInterval(function(){_--<=0&&(clearInterval(b),b=null),Math.abs(x)<.01&&(x=0),Math.abs(S)<.01&&(S=0),_<20&&(x=.9*x),_<20&&(S=.9*S);var I=m.session.getScrollTop();m.renderer.scrollBy(10*x,10*S),I==m.session.getScrollTop()&&(_=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(t,r,i){var s=t("../lib/event"),d=t("../lib/useragent"),f=t("./default_handlers").DefaultHandlers,l=t("./default_gutter_handler").GutterHandler,m=t("./mouse_event").MouseEvent,a=t("./dragdrop_handler").DragdropHandler,o=t("./touch_handler").addTouchListeners,u=t("../config"),p=function(v){var w=this;this.editor=v,new f(this),new l(this),new a(this);var b=function($){var x=!document.hasFocus||!document.hasFocus()||!v.isFocused()&&document.activeElement==(v.textInput&&v.textInput.getElement());x&&window.focus(),v.focus(),setTimeout(function(){v.isFocused()||v.focus()})},_=v.renderer.getMouseEventTarget();s.addListener(_,"click",this.onMouseEvent.bind(this,"click"),v),s.addListener(_,"mousemove",this.onMouseMove.bind(this,"mousemove"),v),s.addMultiMouseDownListener([_,v.renderer.scrollBarV&&v.renderer.scrollBarV.inner,v.renderer.scrollBarH&&v.renderer.scrollBarH.inner,v.textInput&&v.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",v),s.addMouseWheelListener(v.container,this.onMouseWheel.bind(this,"mousewheel"),v),o(v.container,v);var E=v.renderer.$gutter;s.addListener(E,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),v),s.addListener(E,"click",this.onMouseEvent.bind(this,"gutterclick"),v),s.addListener(E,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),v),s.addListener(E,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),v),s.addListener(_,"mousedown",b,v),s.addListener(E,"mousedown",b,v),d.isIE&&v.renderer.scrollBarV&&(s.addListener(v.renderer.scrollBarV.element,"mousedown",b,v),s.addListener(v.renderer.scrollBarH.element,"mousedown",b,v)),v.on("mousemove",function($){if(!(w.state||w.$dragDelay||!w.$dragEnabled)){var x=v.renderer.screenToTextCoordinates($.x,$.y),S=v.session.selection.getRange(),T=v.renderer;!S.isEmpty()&&S.insideStart(x.row,x.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},v)};(function(){this.onMouseEvent=function(v,w){this.editor.session&&this.editor._emit(v,new m(w,this.editor))},this.onMouseMove=function(v,w){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(v,new m(w,this.editor))},this.onMouseWheel=function(v,w){var b=new m(w,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=w.wheelX,b.wheelY=w.wheelY,this.editor._emit(v,b)},this.setState=function(v){this.state=v},this.captureMouse=function(v,w){this.x=v.x,this.y=v.y,this.isMousePressed=!0;var b=this.editor,_=this.editor.renderer;_.$isMousePressed=!0;var E=this,$=function(A){if(A){if(d.isWebKit&&!A.which&&E.releaseMouse)return E.releaseMouse();E.x=A.clientX,E.y=A.clientY,w&&w(A),E.mouseEvent=new m(A,E.editor),E.$mouseMoved=!0}},x=function(A){b.off("beforeEndOperation",T),clearInterval(M),b.session&&S(),E[E.state+"End"]&&E[E.state+"End"](A),E.state="",E.isMousePressed=_.$isMousePressed=!1,_.$keepTextAreaAtCursor&&_.$moveTextAreaToCursor(),E.$onCaptureMouseMove=E.releaseMouse=null,A&&E.onMouseEvent("mouseup",A),b.endOperation()},S=function(){E[E.state]&&E[E.state](),E.$mouseMoved=!1};if(d.isOldIE&&v.domEvent.type=="dblclick")return setTimeout(function(){x(v)});var T=function(A){E.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(E[E.state+"End"]&&E[E.state+"End"](),E.state="",E.releaseMouse())};b.on("beforeEndOperation",T),b.startOperation({command:{name:"mouse"}}),E.$onCaptureMouseMove=$,E.releaseMouse=s.capture(this.editor.container,$,x);var M=setInterval(S,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var v=function(w){w&&w.domEvent&&w.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",v),w&&w.domEvent&&s.stopEvent(w.domEvent))}.bind(this);setTimeout(v,10),this.editor.on("nativecontextmenu",v)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(p.prototype),u.defineOptions(p.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:d.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=p}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(t,r,i){var s=t("../lib/dom");function d(f){f.on("click",function(l){var m=l.getDocumentPosition(),a=f.session,o=a.getFoldAt(m.row,m.column,1);o&&(l.getAccelKey()?a.removeFold(o):a.expandFold(o),l.stop());var u=l.domEvent&&l.domEvent.target;u&&s.hasCssClass(u,"ace_inline_button")&&s.hasCssClass(u,"ace_toggle_wrap")&&(a.setOption("wrap",!a.getUseWrapMode()),f.renderer.scrollCursorIntoView())}),f.on("gutterclick",function(l){var m=f.renderer.$gutterLayer.getRegion(l);if(m=="foldWidgets"){var a=l.getDocumentPosition().row,o=f.session;o.foldWidgets&&o.foldWidgets[a]&&f.session.onFoldWidgetClick(a,l),f.isFocused()||f.focus(),l.stop()}}),f.on("gutterdblclick",function(l){var m=f.renderer.$gutterLayer.getRegion(l);if(m=="foldWidgets"){var a=l.getDocumentPosition().row,o=f.session,u=o.getParentFoldRangeData(a,!0),p=u.range||u.firstRange;if(p){a=p.start.row;var v=o.getFoldAt(a,o.getLine(a).length,1);v?o.removeFold(v):(o.addFold("...",p),f.renderer.scrollCursorIntoView({row:p.start.row,column:0}))}l.stop()}})}r.FoldHandler=d}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(t,r,i){var s=t("../lib/keys"),d=t("../lib/event"),f=function(l){this.$editor=l,this.$data={editor:l},this.$handlers=[],this.setDefaultHandler(l.commands)};(function(){this.setDefaultHandler=function(l){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=l,this.addKeyboardHandler(l,0)},this.setKeyboardHandler=function(l){var m=this.$handlers;if(m[m.length-1]!=l){for(;m[m.length-1]&&m[m.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(m[m.length-1]);this.addKeyboardHandler(l,1)}},this.addKeyboardHandler=function(l,m){if(l){typeof l=="function"&&!l.handleKeyboard&&(l.handleKeyboard=l);var a=this.$handlers.indexOf(l);a!=-1&&this.$handlers.splice(a,1),m==null?this.$handlers.push(l):this.$handlers.splice(m,0,l),a==-1&&l.attach&&l.attach(this.$editor)}},this.removeKeyboardHandler=function(l){var m=this.$handlers.indexOf(l);return m==-1?!1:(this.$handlers.splice(m,1),l.detach&&l.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var l=this.$data,m=l.editor;return this.$handlers.map(function(a){return a.getStatusText&&a.getStatusText(m,l)||""}).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(l,m,a,o){for(var u,p=!1,v=this.$editor.commands,w=this.$handlers.length;w--&&(u=this.$handlers[w].handleKeyboard(this.$data,l,m,a,o),!(!(!u||!u.command)&&(u.command=="null"?p=!0:p=v.exec(u.command,this.$editor,u.args,o),p&&o&&l!=-1&&u.passEvent!=!0&&u.command.passEvent!=!0&&d.stopEvent(o),p))););return!p&&l==-1&&(u={command:"insertstring"},p=v.exec("insertstring",this.$editor,m)),p&&this.$editor._signal&&this.$editor._signal("keyboardActivity",u),p},this.onCommandKey=function(l,m,a){var o=s.keyCodeToString(a);return this.$callKeyboardHandlers(m,o,a,l)},this.onTextInput=function(l){return this.$callKeyboardHandlers(-1,l)}}).call(f.prototype),r.KeyBinding=f}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(t,r,i){var s=0,d=0,f=!1,l=!1,m=!1,a=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],o=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,p=1,v=0,w=1,b=2,_=3,E=4,$=5,x=6,S=7,T=8,M=9,A=10,R=11,y=12,k=13,O=14,N=15,I=16,P=17,B=18,z=[B,B,B,B,B,B,B,B,B,x,$,x,T,$,B,B,B,B,B,B,B,B,B,B,B,B,B,B,$,$,$,x,T,E,E,R,R,R,E,E,E,E,E,A,M,A,M,M,b,b,b,b,b,b,b,b,b,b,M,E,E,E,E,E,E,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,E,E,E,E,E,E,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,E,E,E,E,B,B,B,B,B,B,$,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,M,E,R,R,R,R,E,E,E,E,v,E,E,B,E,E,R,R,b,b,E,v,E,E,E,b,v,E,E,E,E,E],j=[T,T,T,T,T,T,T,T,T,T,T,B,B,B,v,w,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,T,$,k,O,N,I,P,M,R,R,R,R,R,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,M,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,T];function J(Y,ne,oe,fe){var we=s?o:a,G=null,pe=null,me=null,be=0,$e=null,H=null,U=-1,te=null,ve=null,ke=[];if(!fe)for(te=0,fe=[];te<oe;te++)fe[te]=ie(Y[te]);for(d=s,f=!1,l=!1,m=!1,ve=0;ve<oe;ve++){if(G=be,ke[ve]=pe=re(Y,fe,ke,ve),be=we[G][pe],$e=be&240,be&=15,ne[ve]=me=we[be][5],$e>0)if($e==16){for(te=U;te<ve;te++)ne[te]=1;U=-1}else U=-1;if(H=we[be][6],H)U==-1&&(U=ve);else if(U>-1){for(te=U;te<ve;te++)ne[te]=me;U=-1}fe[ve]==$&&(ne[ve]=0),d|=me}if(m){for(te=0;te<oe;te++)if(fe[te]==x){ne[te]=s;for(var Ne=te-1;Ne>=0&&fe[Ne]==T;Ne--)ne[Ne]=s}}}function q(Y,ne,oe){if(!(d<Y)){if(Y==1&&s==p&&!l){oe.reverse();return}for(var fe=oe.length,we=0,G,pe,me,be;we<fe;){if(ne[we]>=Y){for(G=we+1;G<fe&&ne[G]>=Y;)G++;for(pe=we,me=G-1;pe<me;pe++,me--)be=oe[pe],oe[pe]=oe[me],oe[me]=be;we=G}we++}}}function re(Y,ne,oe,fe){var we=ne[fe],G,pe,me,be;switch(we){case v:case w:f=!1;case E:case _:return we;case b:return f?_:b;case S:return f=!0,w;case T:return E;case M:return fe<1||fe+1>=ne.length||(G=oe[fe-1])!=b&&G!=_||(pe=ne[fe+1])!=b&&pe!=_?E:(f&&(pe=_),pe==G?pe:E);case A:return G=fe>0?oe[fe-1]:$,G==b&&fe+1<ne.length&&ne[fe+1]==b?b:E;case R:if(fe>0&&oe[fe-1]==b)return b;if(f)return E;for(be=fe+1,me=ne.length;be<me&&ne[be]==R;)be++;return be<me&&ne[be]==b?b:E;case y:for(me=ne.length,be=fe+1;be<me&&ne[be]==y;)be++;if(be<me){var $e=Y[fe],H=$e>=1425&&$e<=2303||$e==64286;if(G=ne[be],H&&(G==w||G==S))return w}return fe<1||(G=ne[fe-1])==$?E:oe[fe-1];case $:return f=!1,l=!0,s;case x:return m=!0,E;case k:case O:case I:case P:case N:f=!1;case B:return E}}function ie(Y){var ne=Y.charCodeAt(0),oe=ne>>8;return oe==0?ne>191?v:z[ne]:oe==5?/[\u0591-\u05f4]/.test(Y)?w:v:oe==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(Y)?y:/[\u0660-\u0669\u066b-\u066c]/.test(Y)?_:ne==1642?R:/[\u06f0-\u06f9]/.test(Y)?b:S:oe==32&&ne<=8287?j[ne&255]:oe==254&&ne>=65136?S:E}r.L=v,r.R=w,r.EN=b,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(Y,ne,oe){if(Y.length<2)return{};var fe=Y.split(""),we=new Array(fe.length),G=new Array(fe.length),pe=[];s=oe?p:u,J(fe,pe,fe.length,ne);for(var me=0;me<we.length;we[me]=me,me++);q(2,pe,we),q(1,pe,we);for(var me=0;me<we.length-1;me++)ne[me]===_?pe[me]=r.AN:pe[me]===w&&(ne[me]>S&&ne[me]<k||ne[me]===E||ne[me]===B)?pe[me]=r.ON_R:me>0&&fe[me-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(fe[me])&&(pe[me-1]=pe[me]=r.R_H,me++);fe[fe.length-1]===r.DOT&&(pe[fe.length-1]=r.B),fe[0]===""&&(pe[0]=r.RLE);for(var me=0;me<we.length;me++)G[me]=pe[we[me]];return{logicalFromVisual:we,bidiLevels:G}},r.hasBidiCharacters=function(Y,ne){for(var oe=!1,fe=0;fe<Y.length;fe++)ne[fe]=ie(Y.charAt(fe)),!oe&&(ne[fe]==w||ne[fe]==S||ne[fe]==_)&&(oe=!0);return oe},r.getVisualFromLogicalIdx=function(Y,ne){for(var oe=0;oe<ne.logicalFromVisual.length;oe++)if(ne.logicalFromVisual[oe]==Y)return oe;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(t,r,i){var s=t("./lib/bidiutil"),d=t("./lib/lang"),f=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,l=function(m){this.session=m,this.bidiMap={},this.currentRow=null,this.bidiUtil=s,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=f.test(m.getValue())};(function(){this.isBidiRow=function(m,a,o){return this.seenBidi?(m!==this.currentRow&&(this.currentRow=m,this.updateRowLine(a,o),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},this.onChange=function(m){this.seenBidi?this.currentRow=null:m.action=="insert"&&f.test(m.lines.join(`
|
|
207
|
-
`))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var m=0,a=this.session.$screenRowCache;if(a.length){var o=this.session.$getRowCacheIndex(a,this.currentRow);o>=0&&(m=this.session.$docRowCache[o])}return m},this.getSplitIndex=function(){var m=0,a=this.session.$screenRowCache;if(a.length)for(var o,u=this.session.$getRowCacheIndex(a,this.currentRow);this.currentRow-m>0&&(o=this.session.$getRowCacheIndex(a,this.currentRow-m-1),o===u);)u=o,m++;else m=this.currentRow;return m},this.updateRowLine=function(m,a){m===void 0&&(m=this.getDocumentRow());var o=m===this.session.getLength()-1,u=o?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(m),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var p=this.session.$wrapData[m];p&&(a===void 0&&(a=this.getSplitIndex()),a>0&&p.length?(this.wrapIndent=p.indent,this.wrapOffset=this.wrapIndent*this.charWidths[s.L],this.line=a<p.length?this.line.substring(p[a-1],p[a]):this.line.substring(p[p.length-1])):this.line=this.line.substring(0,p[a]),a==p.length&&(this.line+=this.showInvisibles?u:s.DOT))}else this.line+=this.showInvisibles?u:s.DOT;var v=this.session,w=0,b;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(_,E){return _===" "||v.isFullWidth(_.charCodeAt(0))?(b=_===" "?v.getScreenTabSize(E+w):2,w+=b-1,d.stringRepeat(s.DOT,b)):_}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==s.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var m=[];s.hasBidiCharacters(this.line,m)||this.isRtlDir?this.bidiMap=s.doBidiReorder(this.line,m,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(m){if(this.characterWidth!==m.$characterSize.width){this.fontMetrics=m;var a=this.characterWidth=m.$characterSize.width,o=m.$measureCharWidth("ה");this.charWidths[s.L]=this.charWidths[s.EN]=this.charWidths[s.ON_R]=a,this.charWidths[s.R]=this.charWidths[s.AN]=o,this.charWidths[s.R_H]=o*.45,this.charWidths[s.B]=this.charWidths[s.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(m){this.showInvisibles=m,this.currentRow=null},this.setEolChar=function(m){this.EOL=m},this.setContentWidth=function(m){this.contentWidth=m},this.isRtlLine=function(m){return this.$isRtl?!0:m!=null?this.session.getLine(m).charAt(0)==this.RLE:this.isRtlDir},this.setRtlDirection=function(m,a){for(var o=m.getCursorPosition(),u=m.selection.getSelectionAnchor().row;u<=o.row;u++)!a&&m.session.getLine(u).charAt(0)===m.session.$bidiHandler.RLE?m.session.doc.removeInLine(u,0,1):a&&m.session.getLine(u).charAt(0)!==m.session.$bidiHandler.RLE&&m.session.doc.insert({column:0,row:u},m.session.$bidiHandler.RLE)},this.getPosLeft=function(m){m-=this.wrapIndent;var a=this.line.charAt(0)===this.RLE?1:0,o=m>a?this.session.getOverwrite()?m:m-1:a,u=s.getVisualFromLogicalIdx(o,this.bidiMap),p=this.bidiMap.bidiLevels,v=0;!this.session.getOverwrite()&&m<=a&&p[u]%2!==0&&u++;for(var w=0;w<u;w++)v+=this.charWidths[p[w]];return!this.session.getOverwrite()&&m>a&&p[u]%2===0&&(v+=this.charWidths[p[u]]),this.wrapIndent&&(v+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(v+=this.rtlLineOffset),v},this.getSelections=function(m,a){var o=this.bidiMap,u=o.bidiLevels,p,v=[],w=0,b=Math.min(m,a)-this.wrapIndent,_=Math.max(m,a)-this.wrapIndent,E=!1,$=!1,x=0;this.wrapIndent&&(w+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var S,T=0;T<u.length;T++)S=o.logicalFromVisual[T],p=u[T],E=S>=b&&S<_,E&&!$?x=w:!E&&$&&v.push({left:x,width:w-x}),w+=this.charWidths[p],$=E;if(E&&T===u.length&&v.push({left:x,width:w-x}),this.isRtlDir)for(var M=0;M<v.length;M++)v[M].left+=this.rtlLineOffset;return v},this.offsetToCol=function(o){this.isRtlDir&&(o-=this.rtlLineOffset);var a=0,o=Math.max(o,0),u=0,p=0,v=this.bidiMap.bidiLevels,w=this.charWidths[v[p]];for(this.wrapIndent&&(o-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);o>u+w/2;){if(u+=w,p===v.length-1){w=0;break}w=this.charWidths[v[++p]]}return p>0&&v[p-1]%2!==0&&v[p]%2===0?(o<u&&p--,a=this.bidiMap.logicalFromVisual[p]):p>0&&v[p-1]%2===0&&v[p]%2!==0?a=1+(o>u?this.bidiMap.logicalFromVisual[p]:this.bidiMap.logicalFromVisual[p-1]):this.isRtlDir&&p===v.length-1&&w===0&&v[p-1]%2===0||!this.isRtlDir&&p===0&&v[p]%2!==0?a=1+this.bidiMap.logicalFromVisual[p]:(p>0&&v[p-1]%2!==0&&w!==0&&p--,a=this.bidiMap.logicalFromVisual[p]),a===0&&this.isRtlDir&&a++,a+this.wrapIndent}}).call(l.prototype),r.BidiHandler=l}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(t,r,i){var s=t("./lib/oop"),d=t("./lib/lang"),f=t("./lib/event_emitter").EventEmitter,l=t("./range").Range,m=function(a){this.session=a,this.doc=a.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var o=this;this.cursor.on("change",function(u){o.$cursorChanged=!0,o.$silent||o._emit("changeCursor"),!o.$isEmpty&&!o.$silent&&o._emit("changeSelection"),!o.$keepDesiredColumnOnChange&&u.old.column!=u.value.column&&(o.$desiredColumn=null)}),this.anchor.on("change",function(){o.$anchorChanged=!0,!o.$isEmpty&&!o.$silent&&o._emit("changeSelection")})};(function(){s.implement(this,f),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setAnchor=function(a,o){this.$isEmpty=!1,this.anchor.setPosition(a,o)},this.setSelectionAnchor=this.setAnchor,this.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionAnchor=this.getAnchor,this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var a=this.anchor,o=this.lead;return a.row>o.row||a.row==o.row&&a.column>o.column},this.getRange=function(){var a=this.anchor,o=this.lead;return this.$isEmpty?l.fromPoints(o,o):this.isBackwards()?l.fromPoints(o,a):l.fromPoints(a,o)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(a,o){var u=o?a.end:a.start,p=o?a.start:a.end;this.$setSelection(u.row,u.column,p.row,p.column)},this.$setSelection=function(a,o,u,p){if(!this.$silent){var v=this.$isEmpty,w=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(a,o),this.cursor.setPosition(u,p),this.$isEmpty=!l.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||v!=this.$isEmpty||w)&&this._emit("changeSelection")}},this.$moveSelection=function(a){var o=this.lead;this.$isEmpty&&this.setSelectionAnchor(o.row,o.column),a.call(this)},this.selectTo=function(a,o){this.$moveSelection(function(){this.moveCursorTo(a,o)})},this.selectToPosition=function(a){this.$moveSelection(function(){this.moveCursorToPosition(a)})},this.moveTo=function(a,o){this.clearSelection(),this.moveCursorTo(a,o)},this.moveToPosition=function(a){this.clearSelection(),this.moveCursorToPosition(a)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(a,o){if(typeof o>"u"){var u=a||this.lead;a=u.row,o=u.column}return this.session.getWordRange(a,o)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var a=this.getCursor(),o=this.session.getAWordRange(a.row,a.column);this.setSelectionRange(o)},this.getLineRange=function(a,o){var u=typeof a=="number"?a:this.lead.row,p,v=this.session.getFoldLine(u);return v?(u=v.start.row,p=v.end.row):p=u,o===!0?new l(u,0,p,this.session.getLine(p).length):new l(u,0,p+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(a,o,u){var p=a.column,v=a.column+o;return u<0&&(p=a.column-o,v=a.column),this.session.isTabStop(a)&&this.doc.getLine(a.row).slice(p,v).split(" ").length-1==o},this.moveCursorLeft=function(){var a=this.lead.getPosition(),o;if(o=this.session.getFoldAt(a.row,a.column,-1))this.moveCursorTo(o.start.row,o.start.column);else if(a.column===0)a.row>0&&this.moveCursorTo(a.row-1,this.doc.getLine(a.row-1).length);else{var u=this.session.getTabSize();this.wouldMoveIntoSoftTab(a,u,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-u):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var a=this.lead.getPosition(),o;if(o=this.session.getFoldAt(a.row,a.column,1))this.moveCursorTo(o.end.row,o.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var u=this.session.getTabSize(),a=this.lead;this.wouldMoveIntoSoftTab(a,u,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,u):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var a=this.lead.row,o=this.lead.column,u=this.session.documentToScreenRow(a,o),p=this.session.screenToDocumentPosition(u,0),v=this.session.getDisplayLine(a,null,p.row,p.column),w=v.match(/^\s*/);w[0].length!=o&&!this.session.$useEmacsStyleLineStart&&(p.column+=w[0].length),this.moveCursorToPosition(p)},this.moveCursorLineEnd=function(){var a=this.lead,o=this.session.getDocumentLastRowColumnPosition(a.row,a.column);if(this.lead.column==o.column){var u=this.session.getLine(o.row);if(o.column==u.length){var p=u.search(/\s+$/);p>0&&(o.column=p)}}this.moveCursorTo(o.row,o.column)},this.moveCursorFileEnd=function(){var a=this.doc.getLength()-1,o=this.doc.getLine(a).length;this.moveCursorTo(a,o)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var a=this.lead.row,o=this.lead.column,u=this.doc.getLine(a),p=u.substring(o);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var v=this.session.getFoldAt(a,o,1);if(v){this.moveCursorTo(v.end.row,v.end.column);return}if(this.session.nonTokenRe.exec(p)&&(o+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,p=u.substring(o)),o>=u.length){this.moveCursorTo(a,u.length),this.moveCursorRight(),a<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(p)&&(o+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,o)},this.moveCursorLongWordLeft=function(){var a=this.lead.row,o=this.lead.column,u;if(u=this.session.getFoldAt(a,o,-1)){this.moveCursorTo(u.start.row,u.start.column);return}var p=this.session.getFoldStringAt(a,o,-1);p==null&&(p=this.doc.getLine(a).substring(0,o));var v=d.stringReverse(p);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(v)&&(o-=this.session.nonTokenRe.lastIndex,v=v.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),o<=0){this.moveCursorTo(a,0),this.moveCursorLeft(),a>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(v)&&(o-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,o)},this.$shortWordEndIndex=function(a){var o=0,u,p=/\s/,v=this.session.tokenRe;if(v.lastIndex=0,this.session.tokenRe.exec(a))o=this.session.tokenRe.lastIndex;else{for(;(u=a[o])&&p.test(u);)o++;if(o<1){for(v.lastIndex=0;(u=a[o])&&!v.test(u);)if(v.lastIndex=0,o++,p.test(u))if(o>2){o--;break}else{for(;(u=a[o])&&p.test(u);)o++;if(o>2)break}}}return v.lastIndex=0,o},this.moveCursorShortWordRight=function(){var a=this.lead.row,o=this.lead.column,u=this.doc.getLine(a),p=u.substring(o),v=this.session.getFoldAt(a,o,1);if(v)return this.moveCursorTo(v.end.row,v.end.column);if(o==u.length){var w=this.doc.getLength();do a++,p=this.doc.getLine(a);while(a<w&&/^\s*$/.test(p));/^\s+/.test(p)||(p=""),o=0}var b=this.$shortWordEndIndex(p);this.moveCursorTo(a,o+b)},this.moveCursorShortWordLeft=function(){var a=this.lead.row,o=this.lead.column,u;if(u=this.session.getFoldAt(a,o,-1))return this.moveCursorTo(u.start.row,u.start.column);var p=this.session.getLine(a).substring(0,o);if(o===0){do a--,p=this.doc.getLine(a);while(a>0&&/^\s*$/.test(p));o=p.length,/\s+$/.test(p)||(p="")}var v=d.stringReverse(p),w=this.$shortWordEndIndex(v);return this.moveCursorTo(a,o-w)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(a,o){var u=this.session.documentToScreenPosition(this.lead.row,this.lead.column),p;if(o===0&&(a!==0&&(this.session.$bidiHandler.isBidiRow(u.row,this.lead.row)?(p=this.session.$bidiHandler.getPosLeft(u.column),u.column=Math.round(p/this.session.$bidiHandler.charWidths[0])):p=u.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?u.column=this.$desiredColumn:this.$desiredColumn=u.column),a!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var v=this.session.lineWidgets[this.lead.row];a<0?a-=v.rowsAbove||0:a>0&&(a+=v.rowCount-(v.rowsAbove||0))}var w=this.session.screenToDocumentPosition(u.row+a,u.column,p);a!==0&&o===0&&w.row===this.lead.row&&(w.column,this.lead.column),this.moveCursorTo(w.row,w.column+o,o===0)},this.moveCursorToPosition=function(a){this.moveCursorTo(a.row,a.column)},this.moveCursorTo=function(a,o,u){var p=this.session.getFoldAt(a,o,1);p&&(a=p.start.row,o=p.start.column),this.$keepDesiredColumnOnChange=!0;var v=this.session.getLine(a);/[\uDC00-\uDFFF]/.test(v.charAt(o))&&v.charAt(o-1)&&(this.lead.row==a&&this.lead.column==o+1?o=o-1:o=o+1),this.lead.setPosition(a,o),this.$keepDesiredColumnOnChange=!1,u||(this.$desiredColumn=null)},this.moveCursorToScreen=function(a,o,u){var p=this.session.screenToDocumentPosition(a,o);this.moveCursorTo(p.row,p.column,u)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(a){this.setSelectionRange(a,a.cursor==a.start),this.$desiredColumn=a.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(a){var o=this.getRange();return a?(a.start.column=o.start.column,a.start.row=o.start.row,a.end.column=o.end.column,a.end.row=o.end.row):a=o,a.cursor=this.isBackwards()?a.start:a.end,a.desiredColumn=this.$desiredColumn,a},this.getRangeOfMovements=function(a){var o=this.getCursor();try{a(this);var u=this.getCursor();return l.fromPoints(o,u)}catch{return l.fromPoints(o,o)}finally{this.moveCursorToPosition(o)}},this.toJSON=function(){if(this.rangeCount)var a=this.ranges.map(function(o){var u=o.clone();return u.isBackwards=o.cursor==o.start,u});else{var a=this.getRange();a.isBackwards=this.isBackwards()}return a},this.fromJSON=function(a){if(a.start==null)if(this.rangeList&&a.length>1){this.toSingleRange(a[0]);for(var o=a.length;o--;){var u=l.fromPoints(a[o].start,a[o].end);a[o].isBackwards&&(u.cursor=u.start),this.addRange(u,!0)}return}else a=a[0];this.rangeList&&this.toSingleRange(a),this.setSelectionRange(a,a.isBackwards)},this.isEqual=function(a){if((a.length||this.rangeCount)&&a.length!=this.rangeCount)return!1;if(!a.length||!this.ranges)return this.getRange().isEqual(a);for(var o=this.ranges.length;o--;)if(!this.ranges[o].isEqual(a[o]))return!1;return!0}}).call(m.prototype),r.Selection=m}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(t,r,i){var s=t("./config"),d=2e3,f=function(l){this.states=l,this.regExps={},this.matchMappings={};for(var m in this.states){for(var a=this.states[m],o=[],u=0,p=this.matchMappings[m]={defaultToken:"text"},v="g",w=[],b=0;b<a.length;b++){var _=a[b];if(_.defaultToken&&(p.defaultToken=_.defaultToken),_.caseInsensitive&&v.indexOf("i")===-1&&(v+="i"),_.unicode&&v.indexOf("u")===-1&&(v+="u"),_.regex!=null){_.regex instanceof RegExp&&(_.regex=_.regex.toString().slice(1,-1));var E=_.regex,$=new RegExp("(?:("+E+")|(.))").exec("a").length-2;Array.isArray(_.token)?_.token.length==1||$==1?_.token=_.token[0]:$-1!=_.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:_,groupCount:$-1}),_.token=_.token[0]):(_.tokenArray=_.token,_.token=null,_.onMatch=this.$arrayTokens):typeof _.token=="function"&&!_.onMatch&&($>1?_.onMatch=this.$applyToken:_.onMatch=_.token),$>1&&(/\\\d/.test(_.regex)?E=_.regex.replace(/\\([0-9]+)/g,function(x,S){return"\\"+(parseInt(S,10)+u+1)}):($=1,E=this.removeCapturingGroups(_.regex)),!_.splitRegex&&typeof _.token!="string"&&w.push(_)),p[u]=b,u+=$,o.push(E),_.onMatch||(_.onMatch=null)}}o.length||(p[0]=0,o.push("$")),w.forEach(function(x){x.splitRegex=this.createSplitterRegexp(x.regex,v)},this),this.regExps[m]=new RegExp("("+o.join(")|(")+")|($)",v)}};(function(){this.$setMaxTokenCount=function(l){d=l|0},this.$applyToken=function(l){var m=this.splitRegex.exec(l).slice(1),a=this.token.apply(this,m);if(typeof a=="string")return[{type:a,value:l}];for(var o=[],u=0,p=a.length;u<p;u++)m[u]&&(o[o.length]={type:a[u],value:m[u]});return o},this.$arrayTokens=function(l){if(!l)return[];var m=this.splitRegex.exec(l);if(!m)return"text";for(var a=[],o=this.tokenArray,u=0,p=o.length;u<p;u++)m[u+1]&&(a[a.length]={type:o[u],value:m[u+1]});return a},this.removeCapturingGroups=function(l){var m=l.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(a,o){return o?"(?:":a});return m},this.createSplitterRegexp=function(l,m){if(l.indexOf("(?=")!=-1){var a=0,o=!1,u={};l.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(p,v,w,b,_,E){return o?o=_!="]":_?o=!0:b?(a==u.stack&&(u.end=E+1,u.stack=-1),a--):w&&(a++,w.length!=1&&(u.stack=a,u.start=E)),p}),u.end!=null&&/^\)*$/.test(l.substr(u.end))&&(l=l.substring(0,u.start)+l.substr(u.end))}return l.charAt(0)!="^"&&(l="^"+l),l.charAt(l.length-1)!="$"&&(l+="$"),new RegExp(l,(m||"").replace("g",""))},this.getLineTokens=function(l,m){if(m&&typeof m!="string"){var a=m.slice(0);m=a[0],m==="#tmp"&&(a.shift(),m=a.shift())}else var a=[];var o=m||"start",u=this.states[o];u||(o="start",u=this.states[o]);var p=this.matchMappings[o],v=this.regExps[o];v.lastIndex=0;for(var w,b=[],_=0,E=0,$={type:null,value:""};w=v.exec(l);){var x=p.defaultToken,S=null,T=w[0],M=v.lastIndex;if(M-T.length>_){var A=l.substring(_,M-T.length);$.type==x?$.value+=A:($.type&&b.push($),$={type:x,value:A})}for(var R=0;R<w.length-2;R++)if(w[R+1]!==void 0){S=u[p[R]],S.onMatch?x=S.onMatch(T,o,a,l):x=S.token,S.next&&(typeof S.next=="string"?o=S.next:o=S.next(o,a),u=this.states[o],u||(this.reportError("state doesn't exist",o),o="start",u=this.states[o]),p=this.matchMappings[o],_=M,v=this.regExps[o],v.lastIndex=M),S.consumeLineEnd&&(_=M);break}if(T){if(typeof x=="string")(!S||S.merge!==!1)&&$.type===x?$.value+=T:($.type&&b.push($),$={type:x,value:T});else if(x){$.type&&b.push($),$={type:null,value:""};for(var R=0;R<x.length;R++)b.push(x[R])}}if(_==l.length)break;if(_=M,E++>d){for(E>2*l.length&&this.reportError("infinite loop with in ace tokenizer",{startState:m,line:l});_<l.length;)$.type&&b.push($),$={value:l.substring(_,_+=500),type:"overflow"};o="start",a=[];break}}return $.type&&b.push($),a.length>1&&a[0]!==o&&a.unshift("#tmp",o),{tokens:b,state:a.length?a:o}},this.reportError=s.reportError}).call(f.prototype),r.Tokenizer=f}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(t,r,i){var s=t("../lib/lang"),d=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(m,a){if(!a){for(var o in m)this.$rules[o]=m[o];return}for(var o in m){for(var u=m[o],p=0;p<u.length;p++){var v=u[p];(v.next||v.onMatch)&&(typeof v.next=="string"&&v.next.indexOf(a)!==0&&(v.next=a+v.next),v.nextState&&v.nextState.indexOf(a)!==0&&(v.nextState=a+v.nextState))}this.$rules[a+o]=u}},this.getRules=function(){return this.$rules},this.embedRules=function(m,a,o,u,p){var v=typeof m=="function"?new m().getRules():m;if(u)for(var w=0;w<u.length;w++)u[w]=a+u[w];else{u=[];for(var b in v)u.push(a+b)}if(this.addRules(v,a),o)for(var _=Array.prototype[p?"push":"unshift"],w=0;w<u.length;w++)_.apply(this.$rules[u[w]],s.deepCopy(o));this.$embeds||(this.$embeds=[]),this.$embeds.push(a)},this.getEmbeds=function(){return this.$embeds};var f=function(m,a){return(m!="start"||a.length)&&a.unshift(this.nextState,m),this.nextState},l=function(m,a){return a.shift(),a.shift()||"start"};this.normalizeRules=function(){var m=0,a=this.$rules;function o(u){var p=a[u];p.processed=!0;for(var v=0;v<p.length;v++){var w=p[v],b=null;Array.isArray(w)&&(b=w,w={}),!w.regex&&w.start&&(w.regex=w.start,w.next||(w.next=[]),w.next.push({defaultToken:w.token},{token:w.token+".end",regex:w.end||w.start,next:"pop"}),w.token=w.token+".start",w.push=!0);var _=w.next||w.push;if(_&&Array.isArray(_)){var E=w.stateName;E||(E=w.token,typeof E!="string"&&(E=E[0]||""),a[E]&&(E+=m++)),a[E]=_,w.next=E,o(E)}else _=="pop"&&(w.next=l);if(w.push&&(w.nextState=w.next||w.push,w.next=f,delete w.push),w.rules)for(var $ in w.rules)a[$]?a[$].push&&a[$].push.apply(a[$],w.rules[$]):a[$]=w.rules[$];var x=typeof w=="string"?w:w.include;if(x&&(Array.isArray(x)?b=x.map(function(T){return a[T]}):b=a[x]),b){var S=[v,1].concat(b);w.noEscape&&(S=S.filter(function(T){return!T.next})),p.splice.apply(p,S),v--}w.keywordMap&&(w.token=this.createKeywordMapper(w.keywordMap,w.defaultToken||"text",w.caseInsensitive),delete w.defaultToken)}}Object.keys(a).forEach(o,this)},this.createKeywordMapper=function(m,a,o,u){var p=Object.create(null);return this.$keywordList=[],Object.keys(m).forEach(function(v){for(var w=m[v],b=w.split(u||"|"),_=b.length;_--;){var E=b[_];this.$keywordList.push(E),o&&(E=E.toLowerCase()),p[E]=v}},this),m=null,o?function(v){return p[v.toLowerCase()]||a}:function(v){return p[v]||a}},this.getKeywords=function(){return this.$keywords}}).call(d.prototype),r.TextHighlightRules=d}),ace.define("ace/mode/behaviour",["require","exports","module"],function(t,r,i){var s=function(){this.$behaviours={}};(function(){this.add=function(d,f,l){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[d]:this.$behaviours[d]={}}this.$behaviours[d][f]=l},this.addBehaviours=function(d){for(var f in d)for(var l in d[f])this.add(f,l,d[f][l])},this.remove=function(d){this.$behaviours&&this.$behaviours[d]&&delete this.$behaviours[d]},this.inherit=function(d,f){if(typeof d=="function")var l=new d().getBehaviours(f);else var l=d.getBehaviours(f);this.addBehaviours(l)},this.getBehaviours=function(d){if(d){for(var f={},l=0;l<d.length;l++)this.$behaviours[d[l]]&&(f[d[l]]=this.$behaviours[d[l]]);return f}else return this.$behaviours}}).call(s.prototype),r.Behaviour=s}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(t,r,i){var s=t("./range").Range,d=function(f,l,m){this.$session=f,this.$row=l,this.$rowTokens=f.getTokens(l);var a=f.getTokenAt(l,m);this.$tokenIndex=a?a.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){this.$tokenIndex+=1;for(var f;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,f||(f=this.$session.getLength()),this.$row>=f)return this.$row=f-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var f=this.$rowTokens,l=this.$tokenIndex,m=f[l].start;if(m!==void 0)return m;for(m=0;l>0;)l-=1,m+=f[l].value.length;return m},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var f=this.$rowTokens[this.$tokenIndex],l=this.getCurrentTokenColumn();return new s(this.$row,l,this.$row,l+f.value.length)}}).call(d.prototype),r.TokenIterator=d}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(t,r,i){var s=t("../../lib/oop"),d=t("../behaviour").Behaviour,f=t("../../token_iterator").TokenIterator,l=t("../../lib/lang"),m=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],o,u={},p={'"':'"',"'":"'"},v=function(_){var E=-1;if(_.multiSelect&&(E=_.selection.index,u.rangeCount!=_.multiSelect.rangeCount&&(u={rangeCount:_.multiSelect.rangeCount})),u[E])return o=u[E];o=u[E]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},w=function(_,E,$,x){var S=_.end.row-_.start.row;return{text:$+E+x,selection:[0,_.start.column+1,S,_.end.column+(S?0:1)]}},b=function(_){this.add("braces","insertion",function(E,$,x,S,T){var M=x.getCursorPosition(),A=S.doc.getLine(M.row);if(T=="{"){v(x);var R=x.getSelectionRange(),y=S.doc.getTextRange(R);if(y!==""&&y!=="{"&&x.getWrapBehavioursEnabled())return w(R,y,"{","}");if(b.isSaneInsertion(x,S))return/[\]\}\)]/.test(A[M.column])||x.inMultiSelectMode||_&&_.braces?(b.recordAutoInsert(x,S,"}"),{text:"{}",selection:[1,1]}):(b.recordMaybeInsert(x,S,"{"),{text:"{",selection:[1,1]})}else if(T=="}"){v(x);var k=A.substring(M.column,M.column+1);if(k=="}"){var O=S.$findOpeningBracket("}",{column:M.column+1,row:M.row});if(O!==null&&b.isAutoInsertedClosing(M,A,T))return b.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(T==`
|
|
208
|
-
`||T==`\r
|
|
209
|
-
`){v(x);var N="";b.isMaybeInsertedClosing(M,A)&&(N=l.stringRepeat("}",o.maybeInsertedBrackets),b.clearMaybeInsertedClosing());var k=A.substring(M.column,M.column+1);if(k==="}"){var I=S.findMatchingBracket({row:M.row,column:M.column+1},"}");if(!I)return null;var P=this.$getIndent(S.getLine(I.row))}else if(N)var P=this.$getIndent(A);else{b.clearMaybeInsertedClosing();return}var B=P+S.getTabString();return{text:`
|
|
210
|
-
`+B+`
|
|
211
|
-
`+P+N,selection:[1,B.length,1,B.length]}}else b.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(E,$,x,S,T){var M=S.doc.getTextRange(T);if(!T.isMultiLine()&&M=="{"){v(x);var A=S.doc.getLine(T.start.row),R=A.substring(T.end.column,T.end.column+1);if(R=="}")return T.end.column++,T;o.maybeInsertedBrackets--}}),this.add("parens","insertion",function(E,$,x,S,T){if(T=="("){v(x);var M=x.getSelectionRange(),A=S.doc.getTextRange(M);if(A!==""&&x.getWrapBehavioursEnabled())return w(M,A,"(",")");if(b.isSaneInsertion(x,S))return b.recordAutoInsert(x,S,")"),{text:"()",selection:[1,1]}}else if(T==")"){v(x);var R=x.getCursorPosition(),y=S.doc.getLine(R.row),k=y.substring(R.column,R.column+1);if(k==")"){var O=S.$findOpeningBracket(")",{column:R.column+1,row:R.row});if(O!==null&&b.isAutoInsertedClosing(R,y,T))return b.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(E,$,x,S,T){var M=S.doc.getTextRange(T);if(!T.isMultiLine()&&M=="("){v(x);var A=S.doc.getLine(T.start.row),R=A.substring(T.start.column+1,T.start.column+2);if(R==")")return T.end.column++,T}}),this.add("brackets","insertion",function(E,$,x,S,T){if(T=="["){v(x);var M=x.getSelectionRange(),A=S.doc.getTextRange(M);if(A!==""&&x.getWrapBehavioursEnabled())return w(M,A,"[","]");if(b.isSaneInsertion(x,S))return b.recordAutoInsert(x,S,"]"),{text:"[]",selection:[1,1]}}else if(T=="]"){v(x);var R=x.getCursorPosition(),y=S.doc.getLine(R.row),k=y.substring(R.column,R.column+1);if(k=="]"){var O=S.$findOpeningBracket("]",{column:R.column+1,row:R.row});if(O!==null&&b.isAutoInsertedClosing(R,y,T))return b.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(E,$,x,S,T){var M=S.doc.getTextRange(T);if(!T.isMultiLine()&&M=="["){v(x);var A=S.doc.getLine(T.start.row),R=A.substring(T.start.column+1,T.start.column+2);if(R=="]")return T.end.column++,T}}),this.add("string_dquotes","insertion",function(E,$,x,S,T){var M=S.$mode.$quotes||p;if(T.length==1&&M[T]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(T)!=-1)return;v(x);var A=T,R=x.getSelectionRange(),y=S.doc.getTextRange(R);if(y!==""&&(y.length!=1||!M[y])&&x.getWrapBehavioursEnabled())return w(R,y,A,A);if(!y){var k=x.getCursorPosition(),O=S.doc.getLine(k.row),N=O.substring(k.column-1,k.column),I=O.substring(k.column,k.column+1),P=S.getTokenAt(k.row,k.column),B=S.getTokenAt(k.row,k.column+1);if(N=="\\"&&P&&/escape/.test(P.type))return null;var z=P&&/string|escape/.test(P.type),j=!B||/string|escape/.test(B.type),J;if(I==A)J=z!==j,J&&/string\.end/.test(B.type)&&(J=!1);else{if(z&&!j||z&&j)return null;var q=S.$mode.tokenRe;q.lastIndex=0;var re=q.test(N);q.lastIndex=0;var ie=q.test(N);if(re||ie||I&&!/[\s;,.})\]\\]/.test(I))return null;var Y=O[k.column-2];if(N==A&&(Y==A||q.test(Y)))return null;J=!0}return{text:J?A+A:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(E,$,x,S,T){var M=S.$mode.$quotes||p,A=S.doc.getTextRange(T);if(!T.isMultiLine()&&M.hasOwnProperty(A)){v(x);var R=S.doc.getLine(T.start.row),y=R.substring(T.start.column+1,T.start.column+2);if(y==A)return T.end.column++,T}})};b.isSaneInsertion=function(_,E){var $=_.getCursorPosition(),x=new f(E,$.row,$.column);if(!this.$matchTokenType(x.getCurrentToken()||"text",m)){if(/[)}\]]/.test(_.session.getLine($.row)[$.column]))return!0;var S=new f(E,$.row,$.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",m))return!1}return x.stepForward(),x.getCurrentTokenRow()!==$.row||this.$matchTokenType(x.getCurrentToken()||"text",a)},b.$matchTokenType=function(_,E){return E.indexOf(_.type||_)>-1},b.recordAutoInsert=function(_,E,$){var x=_.getCursorPosition(),S=E.doc.getLine(x.row);this.isAutoInsertedClosing(x,S,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=x.row,o.autoInsertedLineEnd=$+S.substr(x.column),o.autoInsertedBrackets++},b.recordMaybeInsert=function(_,E,$){var x=_.getCursorPosition(),S=E.doc.getLine(x.row);this.isMaybeInsertedClosing(x,S)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=x.row,o.maybeInsertedLineStart=S.substr(0,x.column)+$,o.maybeInsertedLineEnd=S.substr(x.column),o.maybeInsertedBrackets++},b.isAutoInsertedClosing=function(_,E,$){return o.autoInsertedBrackets>0&&_.row===o.autoInsertedRow&&$===o.autoInsertedLineEnd[0]&&E.substr(_.column)===o.autoInsertedLineEnd},b.isMaybeInsertedClosing=function(_,E){return o.maybeInsertedBrackets>0&&_.row===o.maybeInsertedRow&&E.substr(_.column)===o.maybeInsertedLineEnd&&E.substr(0,_.column)==o.maybeInsertedLineStart},b.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},b.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},s.inherits(b,d),r.CstyleBehaviour=b}),ace.define("ace/unicode",["require","exports","module"],function(t,r,i){for(var s=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],d=0,f=[],l=0;l<s.length;l+=2)f.push(d+=s[l]),s[l+1]&&f.push(45,d+=s[l+1]);r.wordChars=String.fromCharCode.apply(null,f)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(t,r,i){var s=t("../config"),d=t("../tokenizer").Tokenizer,f=t("./text_highlight_rules").TextHighlightRules,l=t("./behaviour/cstyle").CstyleBehaviour,m=t("../unicode"),a=t("../lib/lang"),o=t("../token_iterator").TokenIterator,u=t("../range").Range,p=function(){this.HighlightRules=f};(function(){this.$defaultBehaviour=new l,this.tokenRe=new RegExp("^["+m.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+m.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new d(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(v,w,b,_){var E=w.doc,$=!0,x=!0,S=1/0,T=w.getTabSize(),M=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var y=this.lineCommentStart.map(a.escapeRegExp).join("|"),A=this.lineCommentStart[0];else var y=a.escapeRegExp(this.lineCommentStart),A=this.lineCommentStart;y=new RegExp("^(\\s*)(?:"+y+") ?"),M=w.getUseSoftTabs();var N=function(ie,Y){var ne=ie.match(y);if(ne){var oe=ne[1].length,fe=ne[0].length;!B(ie,oe,fe)&&ne[0][fe-1]==" "&&fe--,E.removeInLine(Y,oe,fe)}},P=A+" ",O=function(ie,Y){(!$||/\S/.test(ie))&&(B(ie,S,S)?E.insertInLine({row:Y,column:S},P):E.insertInLine({row:Y,column:S},A))},I=function(ie,Y){return y.test(ie)},B=function(ie,Y,ne){for(var oe=0;Y--&&ie.charAt(Y)==" ";)oe++;if(oe%T!=0)return!1;for(var oe=0;ie.charAt(ne++)==" ";)oe++;return T>2?oe%T!=T-1:oe%T==0}}else{if(!this.blockComment)return!1;var A=this.blockComment.start,R=this.blockComment.end,y=new RegExp("^(\\s*)(?:"+a.escapeRegExp(A)+")"),k=new RegExp("(?:"+a.escapeRegExp(R)+")\\s*$"),O=function(J,q){I(J,q)||(!$||/\S/.test(J))&&(E.insertInLine({row:q,column:J.length},R),E.insertInLine({row:q,column:S},A))},N=function(J,q){var re;(re=J.match(k))&&E.removeInLine(q,J.length-re[0].length,J.length),(re=J.match(y))&&E.removeInLine(q,re[1].length,re[0].length)},I=function(J,q){if(y.test(J))return!0;for(var re=w.getTokens(q),ie=0;ie<re.length;ie++)if(re[ie].type==="comment")return!0}}function z(J){for(var q=b;q<=_;q++)J(E.getLine(q),q)}var j=1/0;z(function(J,q){var re=J.search(/\S/);re!==-1?(re<S&&(S=re),x&&!I(J,q)&&(x=!1)):j>J.length&&(j=J.length)}),S==1/0&&(S=j,$=!1,x=!1),M&&S%T!=0&&(S=Math.floor(S/T)*T),z(x?N:O)},this.toggleBlockComment=function(v,w,b,_){var E=this.blockComment;if(E){!E.start&&E[0]&&(E=E[0]);var $=new o(w,_.row,_.column),x=$.getCurrentToken();w.selection;var S=w.selection.toOrientedRange(),T,M;if(x&&/comment/.test(x.type)){for(var A,R;x&&/comment/.test(x.type);){var y=x.value.indexOf(E.start);if(y!=-1){var k=$.getCurrentTokenRow(),O=$.getCurrentTokenColumn()+y;A=new u(k,O,k,O+E.start.length);break}x=$.stepBackward()}for(var $=new o(w,_.row,_.column),x=$.getCurrentToken();x&&/comment/.test(x.type);){var y=x.value.indexOf(E.end);if(y!=-1){var k=$.getCurrentTokenRow(),O=$.getCurrentTokenColumn()+y;R=new u(k,O,k,O+E.end.length);break}x=$.stepForward()}R&&w.remove(R),A&&(w.remove(A),T=A.start.row,M=-E.start.length)}else M=E.start.length,T=b.start.row,w.insert(b.end,E.end),w.insert(b.start,E.start);S.start.row==T&&(S.start.column+=M),S.end.row==T&&(S.end.column+=M),w.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(v,w,b){return this.$getIndent(w)},this.checkOutdent=function(v,w,b){return!1},this.autoOutdent=function(v,w,b){},this.$getIndent=function(v){return v.match(/^\s*/)[0]},this.createWorker=function(v){return null},this.createModeDelegates=function(v){this.$embeds=[],this.$modes={};for(var w in v)if(v[w]){var b=v[w],_=b.prototype.$id,E=s.$modes[_];E||(s.$modes[_]=E=new b),s.$modes[w]||(s.$modes[w]=E),this.$embeds.push(w),this.$modes[w]=E}for(var $=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],w=0;w<$.length;w++)(function(S){var T=$[w],M=S[T];S[$[w]]=function(){return this.$delegator(T,arguments,M)}})(this)},this.$delegator=function(v,w,b){var _=w[0]||"start";if(typeof _!="string"){if(Array.isArray(_[2])){var E=_[2][_[2].length-1],$=this.$modes[E];if($)return $[v].apply($,[_[1]].concat([].slice.call(w,1)))}_=_[0]||"start"}for(var x=0;x<this.$embeds.length;x++)if(this.$modes[this.$embeds[x]]){var S=_.split(this.$embeds[x]);if(!S[0]&&S[1]){w[0]=S[1];var $=this.$modes[this.$embeds[x]];return $[v].apply($,w)}}var T=b.apply(this,w);return b?T:void 0},this.transformAction=function(v,w,b,_,E){if(this.$behaviour){var $=this.$behaviour.getBehaviours();for(var x in $)if($[x][w]){var S=$[x][w].apply(this,arguments);if(S)return S}}},this.getKeywords=function(v){if(!this.completionKeywords){var w=this.$tokenizer.rules,b=[];for(var _ in w)for(var E=w[_],$=0,x=E.length;$<x;$++)if(typeof E[$].token=="string")/keyword|support|storage/.test(E[$].token)&&b.push(E[$].regex);else if(typeof E[$].token=="object"){for(var S=0,T=E[$].token.length;S<T;S++)if(/keyword|support|storage/.test(E[$].token[S])){var _=E[$].regex.match(/\(.+?\)/g)[S];b.push(_.substr(1,_.length-2))}}this.completionKeywords=b}return v?b.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(v,w,b,_){var E=this.$keywordList||this.$createKeywordList();return E.map(function($){return{name:$,value:$,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(p.prototype),r.Mode=p}),ace.define("ace/apply_delta",["require","exports","module"],function(t,r,i){r.applyDelta=function(s,d,f){var l=d.start.row,m=d.start.column,a=s[l]||"";switch(d.action){case"insert":var o=d.lines;if(o.length===1)s[l]=a.substring(0,m)+d.lines[0]+a.substring(m);else{var u=[l,1].concat(d.lines);s.splice.apply(s,u),s[l]=a.substring(0,m)+s[l],s[l+d.lines.length-1]+=a.substring(m)}break;case"remove":var p=d.end.column,v=d.end.row;l===v?s[l]=a.substring(0,m)+a.substring(p):s.splice(l,v-l+1,a.substring(0,m)+s[v].substring(p));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,r,i){var s=t("./lib/oop"),d=t("./lib/event_emitter").EventEmitter,f=r.Anchor=function(l,m,a){this.$onChange=this.onChange.bind(this),this.attach(l),typeof a>"u"?this.setPosition(m.row,m.column):this.setPosition(m,a)};(function(){s.implement(this,d),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(a){if(!(a.start.row==a.end.row&&a.start.row!=this.row)&&!(a.start.row>this.row)){var o=m(a,{row:this.row,column:this.column},this.$insertRight);this.setPosition(o.row,o.column,!0)}};function l(a,o,u){var p=u?a.column<=o.column:a.column<o.column;return a.row<o.row||a.row==o.row&&p}function m(a,o,u){var p=a.action=="insert",v=(p?1:-1)*(a.end.row-a.start.row),w=(p?1:-1)*(a.end.column-a.start.column),b=a.start,_=p?b:a.end;return l(o,b,u)?{row:o.row,column:o.column}:l(_,o,!u)?{row:o.row+v,column:o.column+(o.row==_.row?w:0)}:{row:b.row,column:b.column}}this.setPosition=function(a,o,u){var p;if(u?p={row:a,column:o}:p=this.$clipPositionToDocument(a,o),!(this.row==p.row&&this.column==p.column)){var v={row:this.row,column:this.column};this.row=p.row,this.column=p.column,this._signal("change",{old:v,value:p})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(a){this.document=a||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(a,o){var u={};return a>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):a<0?(u.row=0,u.column=0):(u.row=a,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,o))),o<0&&(u.column=0),u}}).call(f.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(t,r,i){var s=t("./lib/oop"),d=t("./apply_delta").applyDelta,f=t("./lib/event_emitter").EventEmitter,l=t("./range").Range,m=t("./anchor").Anchor,a=function(o){this.$lines=[""],o.length===0?this.$lines=[""]:Array.isArray(o)?this.insertMergedLines({row:0,column:0},o):this.insert({row:0,column:0},o)};(function(){s.implement(this,f),this.setValue=function(o){var u=this.getLength()-1;this.remove(new l(0,0,u,this.getLine(u).length)),this.insert({row:0,column:0},o||"")},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(o,u){return new m(this,o,u)},"aaa".split(/a/).length===0?this.$split=function(o){return o.replace(/\r\n|\r/g,`
|
|
212
|
-
`).split(`
|
|
213
|
-
`)}:this.$split=function(o){return o.split(/\r\n|\r|\n/)},this.$detectNewLine=function(o){var u=o.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=u?u[1]:`
|
|
214
|
-
`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
215
|
-
`;case"unix":return`
|
|
216
|
-
`;default:return this.$autoNewLine||`
|
|
217
|
-
`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(o){this.$newLineMode!==o&&(this.$newLineMode=o,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(o){return o==`\r
|
|
218
|
-
`||o=="\r"||o==`
|
|
219
|
-
`},this.getLine=function(o){return this.$lines[o]||""},this.getLines=function(o,u){return this.$lines.slice(o,u+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(o){return this.getLinesForRange(o).join(this.getNewLineCharacter())},this.getLinesForRange=function(o){var u;if(o.start.row===o.end.row)u=[this.getLine(o.start.row).substring(o.start.column,o.end.column)];else{u=this.getLines(o.start.row,o.end.row),u[0]=(u[0]||"").substring(o.start.column);var p=u.length-1;o.end.row-o.start.row==p&&(u[p]=u[p].substring(0,o.end.column))}return u},this.insertLines=function(o,u){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(o,u)},this.removeLines=function(o,u){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(o,u)},this.insertNewLine=function(o){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(o,["",""])},this.insert=function(o,u){return this.getLength()<=1&&this.$detectNewLine(u),this.insertMergedLines(o,this.$split(u))},this.insertInLine=function(o,u){var p=this.clippedPos(o.row,o.column),v=this.pos(o.row,o.column+u.length);return this.applyDelta({start:p,end:v,action:"insert",lines:[u]},!0),this.clonePos(v)},this.clippedPos=function(o,u){var p=this.getLength();o===void 0?o=p:o<0?o=0:o>=p&&(o=p-1,u=void 0);var v=this.getLine(o);return u==null&&(u=v.length),u=Math.min(Math.max(u,0),v.length),{row:o,column:u}},this.clonePos=function(o){return{row:o.row,column:o.column}},this.pos=function(o,u){return{row:o,column:u}},this.$clipPosition=function(o){var u=this.getLength();return o.row>=u?(o.row=Math.max(0,u-1),o.column=this.getLine(u-1).length):(o.row=Math.max(0,o.row),o.column=Math.min(Math.max(o.column,0),this.getLine(o.row).length)),o},this.insertFullLines=function(o,u){o=Math.min(Math.max(o,0),this.getLength());var p=0;o<this.getLength()?(u=u.concat([""]),p=0):(u=[""].concat(u),o--,p=this.$lines[o].length),this.insertMergedLines({row:o,column:p},u)},this.insertMergedLines=function(o,u){var p=this.clippedPos(o.row,o.column),v={row:p.row+u.length-1,column:(u.length==1?p.column:0)+u[u.length-1].length};return this.applyDelta({start:p,end:v,action:"insert",lines:u}),this.clonePos(v)},this.remove=function(o){var u=this.clippedPos(o.start.row,o.start.column),p=this.clippedPos(o.end.row,o.end.column);return this.applyDelta({start:u,end:p,action:"remove",lines:this.getLinesForRange({start:u,end:p})}),this.clonePos(u)},this.removeInLine=function(o,u,p){var v=this.clippedPos(o,u),w=this.clippedPos(o,p);return this.applyDelta({start:v,end:w,action:"remove",lines:this.getLinesForRange({start:v,end:w})},!0),this.clonePos(v)},this.removeFullLines=function(o,u){o=Math.min(Math.max(0,o),this.getLength()-1),u=Math.min(Math.max(0,u),this.getLength()-1);var p=u==this.getLength()-1&&o>0,v=u<this.getLength()-1,w=p?o-1:o,b=p?this.getLine(w).length:0,_=v?u+1:u,E=v?0:this.getLine(_).length,$=new l(w,b,_,E),x=this.$lines.slice(o,u+1);return this.applyDelta({start:$.start,end:$.end,action:"remove",lines:this.getLinesForRange($)}),x},this.removeNewLine=function(o){o<this.getLength()-1&&o>=0&&this.applyDelta({start:this.pos(o,this.getLine(o).length),end:this.pos(o+1,0),action:"remove",lines:["",""]})},this.replace=function(o,u){if(o instanceof l||(o=l.fromPoints(o.start,o.end)),u.length===0&&o.isEmpty())return o.start;if(u==this.getTextRange(o))return o.end;this.remove(o);var p;return u?p=this.insert(o.start,u):p=o.start,p},this.applyDeltas=function(o){for(var u=0;u<o.length;u++)this.applyDelta(o[u])},this.revertDeltas=function(o){for(var u=o.length-1;u>=0;u--)this.revertDelta(o[u])},this.applyDelta=function(o,u){var p=o.action=="insert";(p?o.lines.length<=1&&!o.lines[0]:!l.comparePoints(o.start,o.end))||(p&&o.lines.length>2e4?this.$splitAndapplyLargeDelta(o,2e4):(d(this.$lines,o,u),this._signal("change",o)))},this.$safeApplyDelta=function(o){var u=this.$lines.length;(o.action=="remove"&&o.start.row<u&&o.end.row<u||o.action=="insert"&&o.start.row<=u)&&this.applyDelta(o)},this.$splitAndapplyLargeDelta=function(o,u){for(var p=o.lines,v=p.length-u+1,w=o.start.row,b=o.start.column,_=0,E=0;_<v;_=E){E+=u-1;var $=p.slice(_,E);$.push(""),this.applyDelta({start:this.pos(w+_,b),end:this.pos(w+E,b=0),action:o.action,lines:$},!0)}o.lines=p.slice(_),o.start.row=w+_,o.start.column=b,this.applyDelta(o,!0)},this.revertDelta=function(o){this.$safeApplyDelta({start:this.clonePos(o.start),end:this.clonePos(o.end),action:o.action=="insert"?"remove":"insert",lines:o.lines.slice()})},this.indexToPosition=function(o,u){for(var p=this.$lines||this.getAllLines(),v=this.getNewLineCharacter().length,w=u||0,b=p.length;w<b;w++)if(o-=p[w].length+v,o<0)return{row:w,column:o+p[w].length+v};return{row:b-1,column:o+p[b-1].length+v}},this.positionToIndex=function(o,u){for(var p=this.$lines||this.getAllLines(),v=this.getNewLineCharacter().length,w=0,b=Math.min(o.row,p.length),_=u||0;_<b;++_)w+=p[_].length+v;return w+o.column}}).call(a.prototype),r.Document=a}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,r,i){var s=t("./lib/oop"),d=t("./lib/event_emitter").EventEmitter,f=function(l,m){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=l;var a=this;this.$worker=function(){if(a.running){for(var o=new Date,u=a.currentLine,p=-1,v=a.doc,w=u;a.lines[u];)u++;var b=v.getLength(),_=0;for(a.running=!1;u<b;){a.$tokenizeRow(u),p=u;do u++;while(a.lines[u]);if(_++,_%5===0&&new Date-o>20){a.running=setTimeout(a.$worker,20);break}}a.currentLine=u,p==-1&&(p=u),w<=p&&a.fireUpdateEvent(w,p)}}};(function(){s.implement(this,d),this.setTokenizer=function(l){this.tokenizer=l,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(l){this.doc=l,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(l,m){var a={first:l,last:m};this._signal("update",{data:a})},this.start=function(l){this.currentLine=Math.min(l||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(l){var m=l.start.row,a=l.end.row-m;if(a===0)this.lines[m]=null;else if(l.action=="remove")this.lines.splice(m,a+1,null),this.states.splice(m,a+1,null);else{var o=Array(a+1);o.unshift(m,1),this.lines.splice.apply(this.lines,o),this.states.splice.apply(this.states,o)}this.currentLine=Math.min(m,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(l){return this.lines[l]||this.$tokenizeRow(l)},this.getState=function(l){return this.currentLine==l&&this.$tokenizeRow(l),this.states[l]||"start"},this.$tokenizeRow=function(l){var m=this.doc.getLine(l),a=this.states[l-1],o=this.tokenizer.getLineTokens(m,a,l);return this.states[l]+""!=o.state+""?(this.states[l]=o.state,this.lines[l+1]=null,this.currentLine>l+1&&(this.currentLine=l+1)):this.currentLine==l&&(this.currentLine=l+1),this.lines[l]=o.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(f.prototype),r.BackgroundTokenizer=f}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(t,r,i){var s=t("./lib/lang");t("./lib/oop");var d=t("./range").Range,f=function(l,m,a){this.setRegexp(l),this.clazz=m,this.type=a||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(l){this.regExp+""!=l+""&&(this.regExp=l,this.cache=[])},this.update=function(l,m,a,o){if(this.regExp)for(var u=o.firstRow,p=o.lastRow,v={},w=u;w<=p;w++){var b=this.cache[w];b==null&&(b=s.getMatchOffsets(a.getLine(w),this.regExp),b.length>this.MAX_RANGES&&(b=b.slice(0,this.MAX_RANGES)),b=b.map(function(x){return new d(w,x.offset,w,x.offset+x.length)}),this.cache[w]=b.length?b:"");for(var _=b.length;_--;){var E=b[_].toScreenRange(a),$=E.toString();v[$]||(v[$]=!0,m.drawSingleLineMarker(l,E,this.clazz,o))}}}}).call(f.prototype),r.SearchHighlight=f}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(t,r,i){var s=t("../range").Range;function d(f,l){this.foldData=f,Array.isArray(l)?this.folds=l:l=this.folds=[l];var m=l[l.length-1];this.range=new s(l[0].start.row,l[0].start.column,m.end.row,m.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(a){a.setFoldLine(this)},this)}(function(){this.shiftRow=function(f){this.start.row+=f,this.end.row+=f,this.folds.forEach(function(l){l.start.row+=f,l.end.row+=f})},this.addFold=function(f){if(f.sameRow){if(f.start.row<this.startRow||f.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(f),this.folds.sort(function(l,m){return-l.range.compareEnd(m.start.row,m.start.column)}),this.range.compareEnd(f.start.row,f.start.column)>0?(this.end.row=f.end.row,this.end.column=f.end.column):this.range.compareStart(f.end.row,f.end.column)<0&&(this.start.row=f.start.row,this.start.column=f.start.column)}else if(f.start.row==this.end.row)this.folds.push(f),this.end.row=f.end.row,this.end.column=f.end.column;else if(f.end.row==this.start.row)this.folds.unshift(f),this.start.row=f.start.row,this.start.column=f.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");f.foldLine=this},this.containsRow=function(f){return f>=this.start.row&&f<=this.end.row},this.walk=function(f,l,m){var a=0,o=this.folds,u,p,v,w=!0;l==null&&(l=this.end.row,m=this.end.column);for(var b=0;b<o.length;b++){if(u=o[b],p=u.range.compareStart(l,m),p==-1){f(null,l,m,a,w);return}if(v=f(null,u.start.row,u.start.column,a,w),v=!v&&f(u.placeholder,u.start.row,u.start.column,a),v||p===0)return;w=!u.sameRow,a=u.end.column}f(null,l,m,a,w)},this.getNextFoldTo=function(f,l){for(var m,a,o=0;o<this.folds.length;o++){if(m=this.folds[o],a=m.range.compareEnd(f,l),a==-1)return{fold:m,kind:"after"};if(a===0)return{fold:m,kind:"inside"}}return null},this.addRemoveChars=function(f,l,m){var a=this.getNextFoldTo(f,l),o,u;if(a){if(o=a.fold,a.kind=="inside"&&o.start.column!=l&&o.start.row!=f)window.console&&window.console.log(f,l,o);else if(o.start.row==f){u=this.folds;var p=u.indexOf(o);for(p===0&&(this.start.column+=m),p;p<u.length;p++){if(o=u[p],o.start.column+=m,!o.sameRow)return;o.end.column+=m}this.end.column+=m}}},this.split=function(f,l){var m=this.getNextFoldTo(f,l);if(!m||m.kind=="inside")return null;var a=m.fold,o=this.folds,u=this.foldData,p=o.indexOf(a),v=o[p-1];this.end.row=v.end.row,this.end.column=v.end.column,o=o.splice(p,o.length-p);var w=new d(u,o);return u.splice(u.indexOf(this)+1,0,w),w},this.merge=function(f){for(var l=f.folds,m=0;m<l.length;m++)this.addFold(l[m]);var a=this.foldData;a.splice(a.indexOf(f),1)},this.toString=function(){var f=[this.range.toString()+": ["];return this.folds.forEach(function(l){f.push(" "+l.toString())}),f.push("]"),f.join(`
|
|
220
|
-
`)},this.idxToPosition=function(f){for(var l=0,m=0;m<this.folds.length;m++){var a=this.folds[m];if(f-=a.start.column-l,f<0)return{row:a.start.row,column:a.start.column+f};if(f-=a.placeholder.length,f<0)return a.start;l=a.end.column}return{row:this.end.row,column:this.end.column+f}}}).call(d.prototype),r.FoldLine=d}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(t,r,i){var s=t("./range").Range,d=s.comparePoints,f=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=d,this.pointIndex=function(l,m,a){for(var o=this.ranges,u=a||0;u<o.length;u++){var p=o[u],v=d(l,p.end);if(!(v>0)){var w=d(l,p.start);return v===0?m&&w!==0?-u-2:u:w>0||w===0&&!m?u:-u-1}}return-u-1},this.add=function(l){var m=!l.isEmpty(),a=this.pointIndex(l.start,m);a<0&&(a=-a-1);var o=this.pointIndex(l.end,m,a);return o<0?o=-o-1:o++,this.ranges.splice(a,o-a,l)},this.addList=function(l){for(var m=[],a=l.length;a--;)m.push.apply(m,this.add(l[a]));return m},this.substractPoint=function(l){var m=this.pointIndex(l);if(m>=0)return this.ranges.splice(m,1)},this.merge=function(){var l=[],m=this.ranges;m=m.sort(function(v,w){return d(v.start,w.start)});for(var a=m[0],o,u=1;u<m.length;u++){o=a,a=m[u];var p=d(o.end,a.start);p<0||p==0&&!o.isEmpty()&&!a.isEmpty()||(d(o.end,a.end)<0&&(o.end.row=a.end.row,o.end.column=a.end.column),m.splice(u,1),l.push(a),a=o,u--)}return this.ranges=m,l},this.contains=function(l,m){return this.pointIndex({row:l,column:m})>=0},this.containsPoint=function(l){return this.pointIndex(l)>=0},this.rangeAtPoint=function(l){var m=this.pointIndex(l);if(m>=0)return this.ranges[m]},this.clipRows=function(l,m){var a=this.ranges;if(a[0].start.row>m||a[a.length-1].start.row<l)return[];var o=this.pointIndex({row:l,column:0});o<0&&(o=-o-1);var u=this.pointIndex({row:m,column:0},o);u<0&&(u=-u-1);for(var p=[],v=o;v<u;v++)p.push(a[v]);return p},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(l){this.session&&this.detach(),this.session=l,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(l){for(var m=l.start,a=l.end,o=m.row,u=a.row,p=this.ranges,v=0,w=p.length;v<w;v++){var b=p[v];if(b.end.row>=o)break}if(l.action=="insert")for(var _=u-o,E=-m.column+a.column;v<w;v++){var b=p[v];if(b.start.row>o)break;if(b.start.row==o&&b.start.column>=m.column&&(b.start.column==m.column&&this.$bias<=0||(b.start.column+=E,b.start.row+=_)),b.end.row==o&&b.end.column>=m.column){if(b.end.column==m.column&&this.$bias<0)continue;b.end.column==m.column&&E>0&&v<w-1&&b.end.column>b.start.column&&b.end.column==p[v+1].start.column&&(b.end.column-=E),b.end.column+=E,b.end.row+=_}}else for(var _=o-u,E=m.column-a.column;v<w;v++){var b=p[v];if(b.start.row>u)break;b.end.row<u&&(o<b.end.row||o==b.end.row&&m.column<b.end.column)?(b.end.row=o,b.end.column=m.column):b.end.row==u?b.end.column<=a.column?(_||b.end.column>m.column)&&(b.end.column=m.column,b.end.row=m.row):(b.end.column+=E,b.end.row+=_):b.end.row>u&&(b.end.row+=_),b.start.row<u&&(o<b.start.row||o==b.start.row&&m.column<b.start.column)?(b.start.row=o,b.start.column=m.column):b.start.row==u?b.start.column<=a.column?(_||b.start.column>m.column)&&(b.start.column=m.column,b.start.row=m.row):(b.start.column+=E,b.start.row+=_):b.start.row>u&&(b.start.row+=_)}if(_!=0&&v<w)for(;v<w;v++){var b=p[v];b.start.row+=_,b.end.row+=_}}}).call(f.prototype),r.RangeList=f}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],function(t,r,i){var s=t("../range_list").RangeList,d=t("../lib/oop"),f=r.Fold=function(u,p){this.foldLine=null,this.placeholder=p,this.range=u,this.start=u.start,this.end=u.end,this.sameRow=u.start.row==u.end.row,this.subFolds=this.ranges=[]};d.inherits(f,s),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(u){this.foldLine=u,this.subFolds.forEach(function(p){p.setFoldLine(u)})},this.clone=function(){var u=this.range.clone(),p=new f(u,this.placeholder);return this.subFolds.forEach(function(v){p.subFolds.push(v.clone())}),p.collapseChildren=this.collapseChildren,p},this.addSubFold=function(u){if(!this.range.isEqual(u)){m(u,this.start);for(var _=u.start.row,E=u.start.column,p=0,v=-1;p<this.subFolds.length&&(v=this.subFolds[p].range.compare(_,E),v==1);p++);var w=this.subFolds[p],b=0;if(v==0){if(w.range.containsRange(u))return w.addSubFold(u);b=1}for(var _=u.range.end.row,E=u.range.end.column,$=p,v=-1;$<this.subFolds.length&&(v=this.subFolds[$].range.compare(_,E),v==1);$++);v==0&&$++;for(var x=this.subFolds.splice(p,$-p,u),S=v==0?x.length-1:x.length,T=b;T<S;T++)u.addSubFold(x[T]);return u.setFoldLine(this.foldLine),u}},this.restoreRange=function(u){return o(u,this.start)}}.call(f.prototype);function l(u,p){u.row-=p.row,u.row==0&&(u.column-=p.column)}function m(u,p){l(u.start,p),l(u.end,p)}function a(u,p){u.row==0&&(u.column+=p.column),u.row+=p.row}function o(u,p){a(u.start,p),a(u.end,p)}}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],function(t,r,i){var s=t("../range").Range,d=t("./fold_line").FoldLine,f=t("./fold").Fold,l=t("../token_iterator").TokenIterator;function m(){this.getFoldAt=function(a,o,u){var p=this.getFoldLine(a);if(!p)return null;for(var v=p.folds,w=0;w<v.length;w++){var b=v[w].range;if(b.contains(a,o)){if(u==1&&b.isEnd(a,o)&&!b.isEmpty())continue;if(u==-1&&b.isStart(a,o)&&!b.isEmpty())continue;return v[w]}}},this.getFoldsInRange=function(a){var o=a.start,u=a.end,p=this.$foldData,v=[];o.column+=1,u.column-=1;for(var w=0;w<p.length;w++){var b=p[w].range.compareRange(a);if(b!=2){if(b==-2)break;for(var _=p[w].folds,E=0;E<_.length;E++){var $=_[E];if(b=$.range.compareRange(a),b==-2)break;if(b==2)continue;if(b==42)break;v.push($)}}}return o.column-=1,u.column+=1,v},this.getFoldsInRangeList=function(a){if(Array.isArray(a)){var o=[];a.forEach(function(u){o=o.concat(this.getFoldsInRange(u))},this)}else var o=this.getFoldsInRange(a);return o},this.getAllFolds=function(){for(var a=[],o=this.$foldData,u=0;u<o.length;u++)for(var p=0;p<o[u].folds.length;p++)a.push(o[u].folds[p]);return a},this.getFoldStringAt=function(a,o,u,p){if(p=p||this.getFoldLine(a),!p)return null;for(var v={end:{column:0}},w,b,_=0;_<p.folds.length;_++){b=p.folds[_];var E=b.range.compareEnd(a,o);if(E==-1){w=this.getLine(b.start.row).substring(v.end.column,b.start.column);break}else if(E===0)return null;v=b}return w||(w=this.getLine(b.start.row).substring(v.end.column)),u==-1?w.substring(0,o-v.end.column):u==1?w.substring(o-v.end.column):w},this.getFoldLine=function(a,o){var u=this.$foldData,p=0;for(o&&(p=u.indexOf(o)),p==-1&&(p=0),p;p<u.length;p++){var v=u[p];if(v.start.row<=a&&v.end.row>=a)return v;if(v.end.row>a)return null}return null},this.getNextFoldLine=function(a,o){var u=this.$foldData,p=0;for(o&&(p=u.indexOf(o)),p==-1&&(p=0),p;p<u.length;p++){var v=u[p];if(v.end.row>=a)return v}return null},this.getFoldedRowCount=function(a,o){for(var u=this.$foldData,p=o-a+1,v=0;v<u.length;v++){var w=u[v],b=w.end.row,_=w.start.row;if(b>=o){_<o&&(_>=a?p-=o-_:p=0);break}else b>=a&&(_>=a?p-=b-_:p-=b-a+1)}return p},this.$addFoldLine=function(a){return this.$foldData.push(a),this.$foldData.sort(function(o,u){return o.start.row-u.start.row}),a},this.addFold=function(a,o){var u=this.$foldData,p=!1,v;a instanceof f?v=a:(v=new f(o,a),v.collapseChildren=o.collapseChildren),this.$clipRangeToDocument(v.range);var w=v.start.row,b=v.start.column,_=v.end.row,E=v.end.column,$=this.getFoldAt(w,b,1),x=this.getFoldAt(_,E,-1);if($&&x==$)return $.addSubFold(v);$&&!$.range.isStart(w,b)&&this.removeFold($),x&&!x.range.isEnd(_,E)&&this.removeFold(x);var S=this.getFoldsInRange(v.range);S.length>0&&(this.removeFolds(S),v.collapseChildren||S.forEach(function(R){v.addSubFold(R)}));for(var T=0;T<u.length;T++){var M=u[T];if(_==M.start.row){M.addFold(v),p=!0;break}else if(w==M.end.row){if(M.addFold(v),p=!0,!v.sameRow){var A=u[T+1];if(A&&A.start.row==_){M.merge(A);break}}break}else if(_<=M.start.row)break}return p||(M=this.$addFoldLine(new d(this.$foldData,v))),this.$useWrapMode?this.$updateWrapData(M.start.row,M.start.row):this.$updateRowLengthCache(M.start.row,M.start.row),this.$modified=!0,this._signal("changeFold",{data:v,action:"add"}),v},this.addFolds=function(a){a.forEach(function(o){this.addFold(o)},this)},this.removeFold=function(a){var o=a.foldLine,u=o.start.row,p=o.end.row,v=this.$foldData,w=o.folds;if(w.length==1)v.splice(v.indexOf(o),1);else if(o.range.isEnd(a.end.row,a.end.column))w.pop(),o.end.row=w[w.length-1].end.row,o.end.column=w[w.length-1].end.column;else if(o.range.isStart(a.start.row,a.start.column))w.shift(),o.start.row=w[0].start.row,o.start.column=w[0].start.column;else if(a.sameRow)w.splice(w.indexOf(a),1);else{var b=o.split(a.start.row,a.start.column);w=b.folds,w.shift(),b.start.row=w[0].start.row,b.start.column=w[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(u,p):this.$updateRowLengthCache(u,p)),this.$modified=!0,this._signal("changeFold",{data:a,action:"remove"})},this.removeFolds=function(a){for(var o=[],u=0;u<a.length;u++)o.push(a[u]);o.forEach(function(p){this.removeFold(p)},this),this.$modified=!0},this.expandFold=function(a){this.removeFold(a),a.subFolds.forEach(function(o){a.restoreRange(o),this.addFold(o)},this),a.collapseChildren>0&&this.foldAll(a.start.row+1,a.end.row,a.collapseChildren-1),a.subFolds=[]},this.expandFolds=function(a){a.forEach(function(o){this.expandFold(o)},this)},this.unfold=function(a,o){var u,p;if(a==null)u=new s(0,0,this.getLength(),0),o==null&&(o=!0);else if(typeof a=="number")u=new s(a,0,a,this.getLine(a).length);else if("row"in a)u=s.fromPoints(a,a);else{if(Array.isArray(a))return p=[],a.forEach(function(w){p=p.concat(this.unfold(w))},this),p;u=a}p=this.getFoldsInRangeList(u);for(var v=p;p.length==1&&s.comparePoints(p[0].start,u.start)<0&&s.comparePoints(p[0].end,u.end)>0;)this.expandFolds(p),p=this.getFoldsInRangeList(u);if(o!=!1?this.removeFolds(p):this.expandFolds(p),v.length)return v},this.isRowFolded=function(a,o){return!!this.getFoldLine(a,o)},this.getRowFoldEnd=function(a,o){var u=this.getFoldLine(a,o);return u?u.end.row:a},this.getRowFoldStart=function(a,o){var u=this.getFoldLine(a,o);return u?u.start.row:a},this.getFoldDisplayLine=function(a,o,u,p,v){p==null&&(p=a.start.row),v==null&&(v=0),o==null&&(o=a.end.row),u==null&&(u=this.getLine(o).length);var w=this.doc,b="";return a.walk(function(_,E,$,x){if(!(E<p)){if(E==p){if($<v)return;x=Math.max(v,x)}_!=null?b+=_:b+=w.getLine(E).substring(x,$)}},o,u),b},this.getDisplayLine=function(a,o,u,p){var v=this.getFoldLine(a);if(v)return this.getFoldDisplayLine(v,a,o,u,p);var w;return w=this.doc.getLine(a),w.substring(p||0,o||w.length)},this.$cloneFoldData=function(){var a=[];return a=this.$foldData.map(function(o){var u=o.folds.map(function(p){return p.clone()});return new d(a,u)}),a},this.toggleFold=function(a){var o=this.selection,u=o.getRange(),p,v;if(u.isEmpty()){var w=u.start;if(p=this.getFoldAt(w.row,w.column),p){this.expandFold(p);return}else(v=this.findMatchingBracket(w))?u.comparePoint(v)==1?u.end=v:(u.start=v,u.start.column++,u.end.column--):(v=this.findMatchingBracket({row:w.row,column:w.column+1}))?(u.comparePoint(v)==1?u.end=v:u.start=v,u.start.column++):u=this.getCommentFoldRange(w.row,w.column)||u}else{var b=this.getFoldsInRange(u);if(a&&b.length){this.expandFolds(b);return}else b.length==1&&(p=b[0])}if(p||(p=this.getFoldAt(u.start.row,u.start.column)),p&&p.range.toString()==u.toString()){this.expandFold(p);return}var _="...";if(!u.isMultiLine()){if(_=this.getTextRange(u),_.length<4)return;_=_.trim().substring(0,2)+".."}this.addFold(_,u)},this.getCommentFoldRange=function(a,o,u){var p=new l(this,a,o),v=p.getCurrentToken(),w=v&&v.type;if(v&&/^comment|string/.test(w)){w=w.match(/comment|string/)[0],w=="comment"&&(w+="|doc-start");var b=new RegExp(w),_=new s;if(u!=1){do v=p.stepBackward();while(v&&b.test(v.type)&&!/^comment.end/.test(v.type));v=p.stepForward()}if(_.start.row=p.getCurrentTokenRow(),_.start.column=p.getCurrentTokenColumn()+(/^comment.start/.test(v.type)?v.value.length:2),p=new l(this,a,o),u!=-1){var E=-1;do if(v=p.stepForward(),E==-1){var $=this.getState(p.$row);b.test($)||(E=p.$row)}else if(p.$row>E)break;while(v&&b.test(v.type)&&!/^comment.start/.test(v.type));v=p.stepBackward()}else v=p.getCurrentToken();return _.end.row=p.getCurrentTokenRow(),_.end.column=p.getCurrentTokenColumn(),/^comment.end/.test(v.type)||(_.end.column+=v.value.length-2),_}},this.foldAll=function(a,o,u,p){u==null&&(u=1e5);var v=this.foldWidgets;if(v){o=o||this.getLength(),a=a||0;for(var w=a;w<o;w++)if(v[w]==null&&(v[w]=this.getFoldWidget(w)),v[w]=="start"&&!(p&&!p(w))){var b=this.getFoldWidgetRange(w);b&&b.isMultiLine()&&b.end.row<=o&&b.start.row>=a&&(w=b.end.row,b.collapseChildren=u,this.addFold("...",b))}}},this.foldToLevel=function(a){for(this.foldAll();a-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var a=this;this.foldAll(null,null,null,function(o){for(var u=a.getTokens(o),p=0;p<u.length;p++){var v=u[p];if(!(v.type=="text"&&/^\s+$/.test(v.value)))return!!/comment/.test(v.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(a){if(!this.$foldStyles[a])throw new Error("invalid fold style: "+a+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=a){this.$foldStyle=a,a=="manual"&&this.unfold();var o=this.$foldMode;this.$setFolding(null),this.$setFolding(o)}},this.$setFolding=function(a){if(this.$foldMode!=a){if(this.$foldMode=a,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!a||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=a.getFoldWidget.bind(a,this,this.$foldStyle),this.getFoldWidgetRange=a.getFoldWidgetRange.bind(a,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(a,o){var u=this.foldWidgets;if(!u||o&&u[a])return{};for(var p=a-1,v;p>=0;){var w=u[p];if(w==null&&(w=u[p]=this.getFoldWidget(p)),w=="start"){var b=this.getFoldWidgetRange(p);if(v||(v=b),b&&b.end.row>=a)break}p--}return{range:p!==-1&&b,firstRange:v}},this.onFoldWidgetClick=function(a,o){o=o.domEvent;var u={children:o.shiftKey,all:o.ctrlKey||o.metaKey,siblings:o.altKey},p=this.$toggleFoldWidget(a,u);if(!p){var v=o.target||o.srcElement;v&&/ace_fold-widget/.test(v.className)&&(v.className+=" ace_invalid")}},this.$toggleFoldWidget=function(a,o){if(this.getFoldWidget){var u=this.getFoldWidget(a),p=this.getLine(a),v=u==="end"?-1:1,w=this.getFoldAt(a,v===-1?0:p.length,v);if(w)return o.children||o.all?this.removeFold(w):this.expandFold(w),w;var b=this.getFoldWidgetRange(a,!0);if(b&&!b.isMultiLine()&&(w=this.getFoldAt(b.start.row,b.start.column,1),w&&b.isEqual(w.range)))return this.removeFold(w),w;if(o.siblings){var _=this.getParentFoldRangeData(a);if(_.range)var E=_.range.start.row+1,$=_.range.end.row;this.foldAll(E,$,o.all?1e4:0)}else o.children?($=b?b.end.row:this.getLength(),this.foldAll(a+1,$,o.all?1e4:0)):b&&(o.all&&(b.collapseChildren=1e4),this.addFold("...",b));return b}},this.toggleFoldWidget=function(a){var o=this.selection.getCursor().row;o=this.getRowFoldStart(o);var u=this.$toggleFoldWidget(o,{});if(!u){var p=this.getParentFoldRangeData(o,!0);if(u=p.range||p.firstRange,u){o=u.start.row;var v=this.getFoldAt(o,this.getLine(o).length,1);v?this.removeFold(v):this.addFold("...",u)}}},this.updateFoldWidgets=function(a){var o=a.start.row,u=a.end.row-o;if(u===0)this.foldWidgets[o]=null;else if(a.action=="remove")this.foldWidgets.splice(o,u+1,null);else{var p=Array(u+1);p.unshift(o,1),this.foldWidgets.splice.apply(this.foldWidgets,p)}},this.tokenizerUpdateFoldWidgets=function(a){var o=a.data;o.first!=o.last&&this.foldWidgets.length>o.first&&this.foldWidgets.splice(o.first,this.foldWidgets.length)}}r.Folding=m}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(t,r,i){var s=t("../token_iterator").TokenIterator,d=t("../range").Range;function f(){this.findMatchingBracket=function(l,m){if(l.column==0)return null;var a=m||this.getLine(l.row).charAt(l.column-1);if(a=="")return null;var o=a.match(/([\(\[\{])|([\)\]\}])/);return o?o[1]?this.$findClosingBracket(o[1],l):this.$findOpeningBracket(o[2],l):null},this.getBracketRange=function(l){var m=this.getLine(l.row),a=!0,o,u=m.charAt(l.column-1),p=u&&u.match(/([\(\[\{])|([\)\]\}])/);if(p||(u=m.charAt(l.column),l={row:l.row,column:l.column+1},p=u&&u.match(/([\(\[\{])|([\)\]\}])/),a=!1),!p)return null;if(p[1]){var v=this.$findClosingBracket(p[1],l);if(!v)return null;o=d.fromPoints(l,v),a||(o.end.column++,o.start.column--),o.cursor=o.end}else{var v=this.$findOpeningBracket(p[2],l);if(!v)return null;o=d.fromPoints(v,l),a||(o.start.column++,o.end.column--),o.cursor=o.start}return o},this.getMatchingBracketRanges=function(l,m){var a=this.getLine(l.row),o=/([\(\[\{])|([\)\]\}])/,u=!m&&a.charAt(l.column-1),p=u&&u.match(o);if(p||(u=(m===void 0||m)&&a.charAt(l.column),l={row:l.row,column:l.column+1},p=u&&u.match(o)),!p)return null;var v=new d(l.row,l.column-1,l.row,l.column),w=p[1]?this.$findClosingBracket(p[1],l):this.$findOpeningBracket(p[2],l);if(!w)return[v];var b=new d(w.row,w.column,w.row,w.column+1);return[v,b]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(l,m,a){var o=this.$brackets[l],u=1,p=new s(this,m.row,m.column),v=p.getCurrentToken();if(v||(v=p.stepForward()),!!v){a||(a=new RegExp("(\\.?"+v.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var w=m.column-p.getCurrentTokenColumn()-2,b=v.value;;){for(;w>=0;){var _=b.charAt(w);if(_==o){if(u-=1,u==0)return{row:p.getCurrentTokenRow(),column:w+p.getCurrentTokenColumn()}}else _==l&&(u+=1);w-=1}do v=p.stepBackward();while(v&&!a.test(v.type));if(v==null)break;b=v.value,w=b.length-1}return null}},this.$findClosingBracket=function(l,m,a){var o=this.$brackets[l],u=1,p=new s(this,m.row,m.column),v=p.getCurrentToken();if(v||(v=p.stepForward()),!!v){a||(a=new RegExp("(\\.?"+v.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var w=m.column-p.getCurrentTokenColumn();;){for(var b=v.value,_=b.length;w<_;){var E=b.charAt(w);if(E==o){if(u-=1,u==0)return{row:p.getCurrentTokenRow(),column:w+p.getCurrentTokenColumn()}}else E==l&&(u+=1);w+=1}do v=p.stepForward();while(v&&!a.test(v.type));if(v==null)break;w=0}return null}},this.getMatchingTags=function(l){var m=new s(this,l.row,l.column),a=this.$findTagName(m);if(a){var o=m.stepBackward();return o.value==="<"?this.$findClosingTag(m,a):this.$findOpeningTag(m,a)}},this.$findTagName=function(l){var m=l.getCurrentToken(),a=!1,o=!1;if(m&&m.type.indexOf("tag-name")===-1)do o?m=l.stepBackward():m=l.stepForward(),m&&(m.value==="/>"?o=!0:m.type.indexOf("tag-name")!==-1&&(a=!0));while(m&&!a);return m},this.$findClosingTag=function(l,m){var a,o=m.value,u=m.value,p=0,v=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);m=l.stepForward();var w=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+m.value.length),b=!1;do if(a=m,m=l.stepForward(),m){if(m.value===">"&&!b){var _=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);b=!0}if(m.type.indexOf("tag-name")!==-1){if(o=m.value,u===o){if(a.value==="<")p++;else if(a.value==="</"&&(p--,p<0)){l.stepBackward();var E=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2);m=l.stepForward();var $=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+m.value.length);if(m=l.stepForward(),m&&m.value===">")var x=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);else return}}}else if(u===o&&m.value==="/>"&&(p--,p<0))var E=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2),$=E,x=$,_=new d(w.end.row,w.end.column,w.end.row,w.end.column+1)}while(m&&p>=0);if(v&&_&&E&&x&&w&&$)return{openTag:new d(v.start.row,v.start.column,_.end.row,_.end.column),closeTag:new d(E.start.row,E.start.column,x.end.row,x.end.column),openTagName:w,closeTagName:$}},this.$findOpeningTag=function(l,m){var a=l.getCurrentToken(),o=m.value,u=0,p=l.getCurrentTokenRow(),v=l.getCurrentTokenColumn(),w=v+2,b=new d(p,v,p,w);l.stepForward();var _=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+m.value.length);if(m=l.stepForward(),!(!m||m.value!==">")){var E=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);l.stepBackward(),l.stepBackward();do if(m=a,p=l.getCurrentTokenRow(),v=l.getCurrentTokenColumn(),w=v+m.value.length,a=l.stepBackward(),m){if(m.type.indexOf("tag-name")!==-1){if(o===m.value)if(a.value==="<"){if(u++,u>0){var $=new d(p,v,p,w),x=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);do m=l.stepForward();while(m&&m.value!==">");var S=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1)}}else a.value==="</"&&u--}else if(m.value==="/>"){for(var T=0,M=a;M;){if(M.type.indexOf("tag-name")!==-1&&M.value===o){u--;break}else if(M.value==="<")break;M=l.stepBackward(),T++}for(var A=0;A<T;A++)l.stepForward()}}while(a&&u<=0);if(x&&S&&b&&E&&$&&_)return{openTag:new d(x.start.row,x.start.column,S.end.row,S.end.column),closeTag:new d(b.start.row,b.start.column,E.end.row,E.end.column),openTagName:$,closeTagName:_}}}}r.BracketMatch=f}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],function(t,r,i){var s=t("./lib/oop"),d=t("./lib/lang"),f=t("./bidihandler").BidiHandler,l=t("./config"),m=t("./lib/event_emitter").EventEmitter,a=t("./selection").Selection,o=t("./mode/text").Mode,u=t("./range").Range,p=t("./document").Document,v=t("./background_tokenizer").BackgroundTokenizer,w=t("./search_highlight").SearchHighlight,b=function(_,E){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++b.$uid,this.$foldData.toString=function(){return this.join(`
|
|
221
|
-
`)},this.bgTokenizer=new v(new o().getTokenizer(),this);var $=this;this.bgTokenizer.on("update",function(x){$._signal("tokenizerUpdate",x)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof _!="object"||!_.getLine)&&(_=new p(_)),this.setDocument(_),this.selection=new a(this),this.$bidiHandler=new f(this),l.resetOptions(this),this.setMode(E),l._signal("session",this),this.destroyed=!1};b.$uid=0,function(){s.implement(this,m),this.setDocument=function(y){this.doc&&this.doc.off("change",this.$onChange),this.doc=y,y.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(y){if(!y){this.$docRowCache=[],this.$screenRowCache=[];return}var k=this.$docRowCache.length,O=this.$getRowCacheIndex(this.$docRowCache,y)+1;k>O&&(this.$docRowCache.splice(O,k),this.$screenRowCache.splice(O,k))},this.$getRowCacheIndex=function(y,k){for(var O=0,N=y.length-1;O<=N;){var I=O+N>>1,P=y[I];if(k>P)O=I+1;else if(k<P)N=I-1;else return I}return O-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},this.onChangeFold=function(y){var k=y.data;this.$resetRowCache(k.start.row)},this.onChange=function(y){this.$modified=!0,this.$bidiHandler.onChange(y),this.$resetRowCache(y.start.row);var k=this.$updateInternalDataOnChange(y);!this.$fromUndo&&this.$undoManager&&(k&&k.length&&(this.$undoManager.add({action:"removeFolds",folds:k},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(y,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(y),this._signal("change",y)},this.setValue=function(y){this.doc.setValue(y),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(y){return this.bgTokenizer.getState(y)},this.getTokens=function(y){return this.bgTokenizer.getTokens(y)},this.getTokenAt=function(y,k){var O=this.bgTokenizer.getTokens(y),N,I=0;if(k==null){var P=O.length-1;I=this.getLine(y).length}else for(var P=0;P<O.length&&(I+=O[P].value.length,!(I>=k));P++);return N=O[P],N?(N.index=P,N.start=I-N.value.length,N):null},this.setUndoManager=function(y){if(this.$undoManager=y,this.$informUndoManager&&this.$informUndoManager.cancel(),y){var k=this;y.addSession(this),this.$syncInformUndoManager=function(){k.$informUndoManager.cancel(),k.mergeUndoDeltas=!1},this.$informUndoManager=d.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?d.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(y){this.setOption("useSoftTabs",y)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(y){this.setOption("tabSize",y)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(y){return this.$useSoftTabs&&y.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(y){this.setOption("navigateWithinSoftTabs",y)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(y){this.setOption("overwrite",y)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(y,k){this.$decorations[y]||(this.$decorations[y]=""),this.$decorations[y]+=" "+k,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(y,k){this.$decorations[y]=(this.$decorations[y]||"").replace(" "+k,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(y){this.$breakpoints=[];for(var k=0;k<y.length;k++)this.$breakpoints[y[k]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(y,k){k===void 0&&(k="ace_breakpoint"),k?this.$breakpoints[y]=k:delete this.$breakpoints[y],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(y){delete this.$breakpoints[y],this._signal("changeBreakpoint",{})},this.addMarker=function(y,k,O,N){var I=this.$markerId++,P={range:y,type:O||"line",renderer:typeof O=="function"?O:null,clazz:k,inFront:!!N,id:I};return N?(this.$frontMarkers[I]=P,this._signal("changeFrontMarker")):(this.$backMarkers[I]=P,this._signal("changeBackMarker")),I},this.addDynamicMarker=function(y,k){if(y.update){var O=this.$markerId++;return y.id=O,y.inFront=!!k,k?(this.$frontMarkers[O]=y,this._signal("changeFrontMarker")):(this.$backMarkers[O]=y,this._signal("changeBackMarker")),y}},this.removeMarker=function(y){var k=this.$frontMarkers[y]||this.$backMarkers[y];if(k){var O=k.inFront?this.$frontMarkers:this.$backMarkers;delete O[y],this._signal(k.inFront?"changeFrontMarker":"changeBackMarker")}},this.getMarkers=function(y){return y?this.$frontMarkers:this.$backMarkers},this.highlight=function(y){if(!this.$searchHighlight){var k=new w(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(k)}this.$searchHighlight.setRegexp(y)},this.highlightLines=function(y,k,O,N){typeof k!="number"&&(O=k,k=y),O||(O="ace_step");var I=new u(y,0,k,1/0);return I.id=this.addMarker(I,O,"fullLine",N),I},this.setAnnotations=function(y){this.$annotations=y,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(y){var k=y.match(/^.*?(\r?\n)/m);k?this.$autoNewLine=k[1]:this.$autoNewLine=`
|
|
222
|
-
`},this.getWordRange=function(y,k){var O=this.getLine(y),N=!1;if(k>0&&(N=!!O.charAt(k-1).match(this.tokenRe)),N||(N=!!O.charAt(k).match(this.tokenRe)),N)var I=this.tokenRe;else if(/^\s+$/.test(O.slice(k-1,k+1)))var I=/\s/;else var I=this.nonTokenRe;var P=k;if(P>0){do P--;while(P>=0&&O.charAt(P).match(I));P++}for(var B=k;B<O.length&&O.charAt(B).match(I);)B++;return new u(y,P,y,B)},this.getAWordRange=function(y,k){for(var O=this.getWordRange(y,k),N=this.getLine(O.end.row);N.charAt(O.end.column).match(/[ \t]/);)O.end.column+=1;return O},this.setNewLineMode=function(y){this.doc.setNewLineMode(y)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(y){this.setOption("useWorker",y)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(y){var k=y.data;this.bgTokenizer.start(k.first),this._signal("tokenizerUpdate",y)},this.$modes=l.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(y,k){if(y&&typeof y=="object"){if(y.getTokenizer)return this.$onChangeMode(y);var O=y,N=O.path}else N=y||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new o),this.$modes[N]&&!O){this.$onChangeMode(this.$modes[N]),k&&k();return}this.$modeId=N,l.loadModule(["mode",N],function(I){if(this.$modeId!==N)return k&&k();this.$modes[N]&&!O?this.$onChangeMode(this.$modes[N]):I&&I.Mode&&(I=new I.Mode(O),O||(this.$modes[N]=I,I.$id=N),this.$onChangeMode(I)),k&&k()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(y,k){if(k||(this.$modeId=y.$id),this.$mode!==y){var O=this.$mode;this.$mode=y,this.$stopWorker(),this.$useWorker&&this.$startWorker();var N=y.getTokenizer();if(N.on!==void 0){var I=this.onReloadTokenizer.bind(this);N.on("update",I)}this.bgTokenizer.setTokenizer(N),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=y.tokenRe,this.nonTokenRe=y.nonTokenRe,k||(y.attachToSession&&y.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(y.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:O,mode:y}))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(y){l.warn("Could not load worker",y),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(y){this.$scrollTop===y||isNaN(y)||(this.$scrollTop=y,this._signal("changeScrollTop",y))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(y){this.$scrollLeft===y||isNaN(y)||(this.$scrollLeft=y,this._signal("changeScrollLeft",y))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var y=0;return this.lineWidgets.forEach(function(k){k&&k.screenWidth>y&&(y=k.screenWidth)}),this.lineWidgetWidth=y},this.$computeWidth=function(y){if(this.$modified||y){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var k=this.doc.getAllLines(),O=this.$rowLengthCache,N=0,I=0,P=this.$foldData[I],B=P?P.start.row:1/0,z=k.length,j=0;j<z;j++){if(j>B){if(j=P.end.row+1,j>=z)break;P=this.$foldData[I++],B=P?P.start.row:1/0}O[j]==null&&(O[j]=this.$getStringScreenWidth(k[j])[0]),O[j]>N&&(N=O[j])}this.screenWidth=N}},this.getLine=function(y){return this.doc.getLine(y)},this.getLines=function(y,k){return this.doc.getLines(y,k)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(y){return this.doc.getTextRange(y||this.selection.getRange())},this.insert=function(y,k){return this.doc.insert(y,k)},this.remove=function(y){return this.doc.remove(y)},this.removeFullLines=function(y,k){return this.doc.removeFullLines(y,k)},this.undoChanges=function(y,k){if(y.length){this.$fromUndo=!0;for(var O=y.length-1;O!=-1;O--){var N=y[O];N.action=="insert"||N.action=="remove"?this.doc.revertDelta(N):N.folds&&this.addFolds(N.folds)}!k&&this.$undoSelect&&(y.selectionBefore?this.selection.fromJSON(y.selectionBefore):this.selection.setRange(this.$getUndoSelection(y,!0))),this.$fromUndo=!1}},this.redoChanges=function(y,k){if(y.length){this.$fromUndo=!0;for(var O=0;O<y.length;O++){var N=y[O];(N.action=="insert"||N.action=="remove")&&this.doc.$safeApplyDelta(N)}!k&&this.$undoSelect&&(y.selectionAfter?this.selection.fromJSON(y.selectionAfter):this.selection.setRange(this.$getUndoSelection(y,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(y){this.$undoSelect=y},this.$getUndoSelection=function(y,k){function O(z){return k?z.action!=="insert":z.action==="insert"}for(var N,I,P=0;P<y.length;P++){var B=y[P];if(B.start){if(!N){O(B)?N=u.fromPoints(B.start,B.end):N=u.fromPoints(B.start,B.start);continue}O(B)?(I=B.start,N.compare(I.row,I.column)==-1&&N.setStart(I),I=B.end,N.compare(I.row,I.column)==1&&N.setEnd(I)):(I=B.start,N.compare(I.row,I.column)==-1&&(N=u.fromPoints(B.start,B.start)))}}return N},this.replace=function(y,k){return this.doc.replace(y,k)},this.moveText=function(y,k,O){var N=this.getTextRange(y),I=this.getFoldsInRange(y),P=u.fromPoints(k,k);if(!O){this.remove(y);var B=y.start.row-y.end.row,z=B?-y.end.column:y.start.column-y.end.column;z&&(P.start.row==y.end.row&&P.start.column>y.end.column&&(P.start.column+=z),P.end.row==y.end.row&&P.end.column>y.end.column&&(P.end.column+=z)),B&&P.start.row>=y.end.row&&(P.start.row+=B,P.end.row+=B)}if(P.end=this.insert(P.start,N),I.length){var j=y.start,J=P.start,B=J.row-j.row,z=J.column-j.column;this.addFolds(I.map(function(ie){return ie=ie.clone(),ie.start.row==j.row&&(ie.start.column+=z),ie.end.row==j.row&&(ie.end.column+=z),ie.start.row+=B,ie.end.row+=B,ie}))}return P},this.indentRows=function(y,k,O){O=O.replace(/\t/g,this.getTabString());for(var N=y;N<=k;N++)this.doc.insertInLine({row:N,column:0},O)},this.outdentRows=function(y){for(var k=y.collapseRows(),O=new u(0,0,0,0),N=this.getTabSize(),I=k.start.row;I<=k.end.row;++I){var P=this.getLine(I);O.start.row=I,O.end.row=I;for(var B=0;B<N&&P.charAt(B)==" ";++B);B<N&&P.charAt(B)==" "?(O.start.column=B,O.end.column=B+1):(O.start.column=0,O.end.column=B),this.remove(O)}},this.$moveLines=function(y,k,O){if(y=this.getRowFoldStart(y),k=this.getRowFoldEnd(k),O<0){var N=this.getRowFoldStart(y+O);if(N<0)return 0;var I=N-y}else if(O>0){var N=this.getRowFoldEnd(k+O);if(N>this.doc.getLength()-1)return 0;var I=N-k}else{y=this.$clipRowToDocument(y),k=this.$clipRowToDocument(k);var I=k-y+1}var P=new u(y,0,k,Number.MAX_VALUE),B=this.getFoldsInRange(P).map(function(j){return j=j.clone(),j.start.row+=I,j.end.row+=I,j}),z=O==0?this.doc.getLines(y,k):this.doc.removeFullLines(y,k);return this.doc.insertFullLines(y+I,z),B.length&&this.addFolds(B),I},this.moveLinesUp=function(y,k){return this.$moveLines(y,k,-1)},this.moveLinesDown=function(y,k){return this.$moveLines(y,k,1)},this.duplicateLines=function(y,k){return this.$moveLines(y,k,0)},this.$clipRowToDocument=function(y){return Math.max(0,Math.min(y,this.doc.getLength()-1))},this.$clipColumnToRow=function(y,k){return k<0?0:Math.min(this.doc.getLine(y).length,k)},this.$clipPositionToDocument=function(y,k){if(k=Math.max(0,k),y<0)y=0,k=0;else{var O=this.doc.getLength();y>=O?(y=O-1,k=this.doc.getLine(O-1).length):k=Math.min(this.doc.getLine(y).length,k)}return{row:y,column:k}},this.$clipRangeToDocument=function(y){y.start.row<0?(y.start.row=0,y.start.column=0):y.start.column=this.$clipColumnToRow(y.start.row,y.start.column);var k=this.doc.getLength()-1;return y.end.row>k?(y.end.row=k,y.end.column=this.doc.getLine(k).length):y.end.column=this.$clipColumnToRow(y.end.row,y.end.column),y},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(y){if(y!=this.$useWrapMode){if(this.$useWrapMode=y,this.$modified=!0,this.$resetRowCache(0),y){var k=this.getLength();this.$wrapData=Array(k),this.$updateWrapData(0,k-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(y,k){(this.$wrapLimitRange.min!==y||this.$wrapLimitRange.max!==k)&&(this.$wrapLimitRange={min:y,max:k},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(y,k){var O=this.$wrapLimitRange;O.max<0&&(O={min:k,max:k});var N=this.$constrainWrapLimit(y,O.min,O.max);return N!=this.$wrapLimit&&N>1?(this.$wrapLimit=N,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(y,k,O){return k&&(y=Math.max(k,y)),O&&(y=Math.min(O,y)),y},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(y){this.setWrapLimitRange(y,y)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(y){var k=this.$useWrapMode,O=y.action,N=y.start,I=y.end,P=N.row,B=I.row,z=B-P,j=null;if(this.$updating=!0,z!=0)if(O==="remove"){this[k?"$wrapData":"$rowLengthCache"].splice(P,z);var J=this.$foldData;j=this.getFoldsInRange(y),this.removeFolds(j);var q=this.getFoldLine(I.row),re=0;if(q){q.addRemoveChars(I.row,I.column,N.column-I.column),q.shiftRow(-z);var ie=this.getFoldLine(P);ie&&ie!==q&&(ie.merge(q),q=ie),re=J.indexOf(q)+1}for(re;re<J.length;re++){var q=J[re];q.start.row>=I.row&&q.shiftRow(-z)}B=P}else{var Y=Array(z);Y.unshift(P,0);var ne=k?this.$wrapData:this.$rowLengthCache;ne.splice.apply(ne,Y);var J=this.$foldData,q=this.getFoldLine(P),re=0;if(q){var oe=q.range.compareInside(N.row,N.column);oe==0?(q=q.split(N.row,N.column),q&&(q.shiftRow(z),q.addRemoveChars(B,0,I.column-N.column))):oe==-1&&(q.addRemoveChars(P,0,I.column-N.column),q.shiftRow(z)),re=J.indexOf(q)+1}for(re;re<J.length;re++){var q=J[re];q.start.row>=P&&q.shiftRow(z)}}else{z=Math.abs(y.start.column-y.end.column),O==="remove"&&(j=this.getFoldsInRange(y),this.removeFolds(j),z=-z);var q=this.getFoldLine(P);q&&q.addRemoveChars(P,N.column,z)}return k&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,k?this.$updateWrapData(P,B):this.$updateRowLengthCache(P,B),j},this.$updateRowLengthCache=function(y,k,O){this.$rowLengthCache[y]=null,this.$rowLengthCache[k]=null},this.$updateWrapData=function(y,k){var O=this.doc.getAllLines(),N=this.getTabSize(),I=this.$wrapData,P=this.$wrapLimit,B,z,j=y;for(k=Math.min(k,O.length-1);j<=k;)z=this.getFoldLine(j,z),z?(B=[],z.walk(function(J,q,re,ie){var Y;if(J!=null){Y=this.$getDisplayTokens(J,B.length),Y[0]=$;for(var ne=1;ne<Y.length;ne++)Y[ne]=x}else Y=this.$getDisplayTokens(O[q].substring(ie,re),B.length);B=B.concat(Y)}.bind(this),z.end.row,O[z.end.row].length+1),I[z.start.row]=this.$computeWrapSplits(B,P,N),j=z.end.row+1):(B=this.$getDisplayTokens(O[j]),I[j]=this.$computeWrapSplits(B,P,N),j++)};var _=1,E=2,$=3,x=4,S=9,T=10,M=11,A=12;this.$computeWrapSplits=function(y,k,O){if(y.length==0)return[];var N=[],I=y.length,P=0,B=0,z=this.$wrapAsCode,j=this.$indentedSoftWrap,J=k<=Math.max(2*O,8)||j===!1?0:Math.floor(k/2);function q(){var oe=0;if(J===0)return oe;if(j)for(var fe=0;fe<y.length;fe++){var we=y[fe];if(we==T)oe+=1;else if(we==M)oe+=O;else{if(we==A)continue;break}}return z&&j!==!1&&(oe+=O),Math.min(oe,J)}function re(oe){for(var fe=oe-P,we=P;we<oe;we++){var G=y[we];(G===12||G===2)&&(fe-=1)}N.length||(ie=q(),N.indent=ie),B+=fe,N.push(B),P=oe}for(var ie=0;I-P>k-ie;){var Y=P+k-ie;if(y[Y-1]>=T&&y[Y]>=T){re(Y);continue}if(y[Y]==$||y[Y]==x){for(Y;Y!=P-1&&y[Y]!=$;Y--);if(Y>P){re(Y);continue}for(Y=P+k,Y;Y<y.length&&y[Y]==x;Y++);if(Y==y.length)break;re(Y);continue}for(var ne=Math.max(Y-(k-(k>>2)),P-1);Y>ne&&y[Y]<$;)Y--;if(z){for(;Y>ne&&y[Y]<$;)Y--;for(;Y>ne&&y[Y]==S;)Y--}else for(;Y>ne&&y[Y]<T;)Y--;if(Y>ne){re(++Y);continue}Y=P+k,y[Y]==E&&Y--,re(Y-ie)}return N},this.$getDisplayTokens=function(y,k){var O=[],N;k=k||0;for(var I=0;I<y.length;I++){var P=y.charCodeAt(I);if(P==9){N=this.getScreenTabSize(O.length+k),O.push(M);for(var B=1;B<N;B++)O.push(A)}else P==32?O.push(T):P>39&&P<48||P>57&&P<64?O.push(S):P>=4352&&R(P)?O.push(_,E):O.push(_)}return O},this.$getStringScreenWidth=function(y,k,O){if(k==0)return[0,0];k==null&&(k=1/0),O=O||0;var N,I;for(I=0;I<y.length&&(N=y.charCodeAt(I),N==9?O+=this.getScreenTabSize(O):N>=4352&&R(N)?O+=2:O+=1,!(O>k));I++);return[O,I]},this.lineWidgets=null,this.getRowLength=function(y){var k=1;return this.lineWidgets&&(k+=this.lineWidgets[y]&&this.lineWidgets[y].rowCount||0),!this.$useWrapMode||!this.$wrapData[y]?k:this.$wrapData[y].length+k},this.getRowLineCount=function(y){return!this.$useWrapMode||!this.$wrapData[y]?1:this.$wrapData[y].length+1},this.getRowWrapIndent=function(y){if(this.$useWrapMode){var k=this.screenToDocumentPosition(y,Number.MAX_VALUE),O=this.$wrapData[k.row];return O.length&&O[0]<k.column?O.indent:0}else return 0},this.getScreenLastRowColumn=function(y){var k=this.screenToDocumentPosition(y,Number.MAX_VALUE);return this.documentToScreenColumn(k.row,k.column)},this.getDocumentLastRowColumn=function(y,k){var O=this.documentToScreenRow(y,k);return this.getScreenLastRowColumn(O)},this.getDocumentLastRowColumnPosition=function(y,k){var O=this.documentToScreenRow(y,k);return this.screenToDocumentPosition(O,Number.MAX_VALUE/10)},this.getRowSplitData=function(y){if(this.$useWrapMode)return this.$wrapData[y]},this.getScreenTabSize=function(y){return this.$tabSize-(y%this.$tabSize|0)},this.screenToDocumentRow=function(y,k){return this.screenToDocumentPosition(y,k).row},this.screenToDocumentColumn=function(y,k){return this.screenToDocumentPosition(y,k).column},this.screenToDocumentPosition=function(y,k,O){if(y<0)return{row:0,column:0};var N,I=0,P=0,B,z=0,j=0,J=this.$screenRowCache,q=this.$getRowCacheIndex(J,y),re=J.length;if(re&&q>=0)var z=J[q],I=this.$docRowCache[q],ie=y>J[re-1];else var ie=!re;for(var Y=this.getLength()-1,ne=this.getNextFoldLine(I),oe=ne?ne.start.row:1/0;z<=y&&(j=this.getRowLength(I),!(z+j>y||I>=Y));)z+=j,I++,I>oe&&(I=ne.end.row+1,ne=this.getNextFoldLine(I,ne),oe=ne?ne.start.row:1/0),ie&&(this.$docRowCache.push(I),this.$screenRowCache.push(z));if(ne&&ne.start.row<=I)N=this.getFoldDisplayLine(ne),I=ne.start.row;else{if(z+j<=y||I>Y)return{row:Y,column:this.getLine(Y).length};N=this.getLine(I),ne=null}var fe=0,we=Math.floor(y-z);if(this.$useWrapMode){var G=this.$wrapData[I];G&&(B=G[we],we>0&&G.length&&(fe=G.indent,P=G[we-1]||G[G.length-1],N=N.substring(P)))}return O!==void 0&&this.$bidiHandler.isBidiRow(z+we,I,we)&&(k=this.$bidiHandler.offsetToCol(O)),P+=this.$getStringScreenWidth(N,k-fe)[1],this.$useWrapMode&&P>=B&&(P=B-1),ne?ne.idxToPosition(P):{row:I,column:P}},this.documentToScreenPosition=function(y,k){if(typeof k>"u")var O=this.$clipPositionToDocument(y.row,y.column);else O=this.$clipPositionToDocument(y,k);y=O.row,k=O.column;var N=0,I=null,P=null;P=this.getFoldAt(y,k,1),P&&(y=P.start.row,k=P.start.column);var B,z=0,j=this.$docRowCache,J=this.$getRowCacheIndex(j,y),q=j.length;if(q&&J>=0)var z=j[J],N=this.$screenRowCache[J],re=y>j[q-1];else var re=!q;for(var ie=this.getNextFoldLine(z),Y=ie?ie.start.row:1/0;z<y;){if(z>=Y){if(B=ie.end.row+1,B>y)break;ie=this.getNextFoldLine(B,ie),Y=ie?ie.start.row:1/0}else B=z+1;N+=this.getRowLength(z),z=B,re&&(this.$docRowCache.push(z),this.$screenRowCache.push(N))}var ne="";ie&&z>=Y?(ne=this.getFoldDisplayLine(ie,y,k),I=ie.start.row):(ne=this.getLine(y).substring(0,k),I=y);var oe=0;if(this.$useWrapMode){var fe=this.$wrapData[I];if(fe){for(var we=0;ne.length>=fe[we];)N++,we++;ne=ne.substring(fe[we-1]||0,ne.length),oe=we>0?fe.indent:0}}return this.lineWidgets&&this.lineWidgets[z]&&this.lineWidgets[z].rowsAbove&&(N+=this.lineWidgets[z].rowsAbove),{row:N,column:oe+this.$getStringScreenWidth(ne)[0]}},this.documentToScreenColumn=function(y,k){return this.documentToScreenPosition(y,k).column},this.documentToScreenRow=function(y,k){return this.documentToScreenPosition(y,k).row},this.getScreenLength=function(){var y=0,k=null;if(this.$useWrapMode)for(var I=this.$wrapData.length,P=0,N=0,k=this.$foldData[N++],B=k?k.start.row:1/0;P<I;){var z=this.$wrapData[P];y+=z?z.length+1:1,P++,P>B&&(P=k.end.row+1,k=this.$foldData[N++],B=k?k.start.row:1/0)}else{y=this.getLength();for(var O=this.$foldData,N=0;N<O.length;N++)k=O[N],y-=k.end.row-k.start.row}return this.lineWidgets&&(y+=this.$getWidgetScreenLength()),y},this.$setFontMetrics=function(y){this.$enableVarChar&&(this.$getStringScreenWidth=function(k,O,N){if(O===0)return[0,0];O||(O=1/0),N=N||0;var I,P;for(P=0;P<k.length&&(I=k.charAt(P),I===" "?N+=this.getScreenTabSize(N):N+=y.getCharacterWidth(I),!(N>O));P++);return[N,P]})},this.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=R;function R(y){return y<4352?!1:y>=4352&&y<=4447||y>=4515&&y<=4519||y>=4602&&y<=4607||y>=9001&&y<=9002||y>=11904&&y<=11929||y>=11931&&y<=12019||y>=12032&&y<=12245||y>=12272&&y<=12283||y>=12288&&y<=12350||y>=12353&&y<=12438||y>=12441&&y<=12543||y>=12549&&y<=12589||y>=12593&&y<=12686||y>=12688&&y<=12730||y>=12736&&y<=12771||y>=12784&&y<=12830||y>=12832&&y<=12871||y>=12880&&y<=13054||y>=13056&&y<=19903||y>=19968&&y<=42124||y>=42128&&y<=42182||y>=43360&&y<=43388||y>=44032&&y<=55203||y>=55216&&y<=55238||y>=55243&&y<=55291||y>=63744&&y<=64255||y>=65040&&y<=65049||y>=65072&&y<=65106||y>=65108&&y<=65126||y>=65128&&y<=65131||y>=65281&&y<=65376||y>=65504&&y<=65510}}.call(b.prototype),t("./edit_session/folding").Folding.call(b.prototype),t("./edit_session/bracket_match").BracketMatch.call(b.prototype),l.defineOptions(b.prototype,"session",{wrap:{set:function(_){if(!_||_=="off"?_=!1:_=="free"?_=!0:_=="printMargin"?_=-1:typeof _=="string"&&(_=parseInt(_,10)||!1),this.$wrap!=_)if(this.$wrap=_,!_)this.setUseWrapMode(!1);else{var E=typeof _=="number"?_:null;this.setWrapLimitRange(E,E),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(_){_=_=="auto"?this.$mode.type!="text":_!="text",_!=this.$wrapAsCode&&(this.$wrapAsCode=_,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(_){this.$useWorker=_,this.$stopWorker(),_&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(_){_=parseInt(_),_>0&&this.$tabSize!==_&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=_,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(_){this.setFoldStyle(_)},handlesSet:!0},overwrite:{set:function(_){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(_){this.doc.setNewLineMode(_)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(_){this.setMode(_)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=b}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(t,r,i){var s=t("./lib/lang"),d=t("./lib/oop"),f=t("./range").Range,l=function(){this.$options={}};(function(){this.set=function(a){return d.mixin(this.$options,a),this},this.getOptions=function(){return s.copyObject(this.$options)},this.setOptions=function(a){this.$options=a},this.find=function(a){var o=this.$options,u=this.$matchIterator(a,o);if(!u)return!1;var p=null;return u.forEach(function(v,w,b,_){return p=new f(v,w,b,_),w==_&&o.start&&o.start.start&&o.skipCurrent!=!1&&p.isEqual(o.start)?(p=null,!1):!0}),p},this.findAll=function(a){var o=this.$options;if(!o.needle)return[];this.$assembleRegExp(o);var u=o.range,p=u?a.getLines(u.start.row,u.end.row):a.doc.getAllLines(),v=[],w=o.re;if(o.$isMultiLine){var b=w.length,_=p.length-b,E;e:for(var $=w.offset||0;$<=_;$++){for(var x=0;x<b;x++)if(p[$+x].search(w[x])==-1)continue e;var S=p[$],T=p[$+b-1],M=S.length-S.match(w[0])[0].length,A=T.match(w[b-1])[0].length;E&&E.end.row===$&&E.end.column>M||(v.push(E=new f($,M,$+b-1,A)),b>2&&($=$+b-2))}}else for(var R=0;R<p.length;R++)for(var y=s.getMatchOffsets(p[R],w),x=0;x<y.length;x++){var k=y[x];v.push(new f(R,k.offset,R,k.offset+k.length))}if(u){for(var O=u.start.column,N=u.end.column,R=0,x=v.length-1;R<x&&v[R].start.column<O&&v[R].start.row==0;)R++;for(var I=u.end.row-u.start.row;R<x&&v[x].end.column>N&&v[x].end.row==I;)x--;for(v=v.slice(R,x+1),R=0,x=v.length;R<x;R++)v[R].start.row+=u.start.row,v[R].end.row+=u.start.row}return v},this.replace=function(a,o){var u=this.$options,p=this.$assembleRegExp(u);if(u.$isMultiLine)return o;if(p){var v=p.exec(a);if(!v||v[0].length!=a.length)return null;if(o=a.replace(p,o),u.preserveCase){o=o.split("");for(var w=Math.min(a.length,a.length);w--;){var b=a[w];b&&b.toLowerCase()!=b?o[w]=o[w].toUpperCase():o[w]=o[w].toLowerCase()}o=o.join("")}return o}},this.$assembleRegExp=function(a,o){if(a.needle instanceof RegExp)return a.re=a.needle;var u=a.needle;if(!a.needle)return a.re=!1;a.regExp||(u=s.escapeRegExp(u)),a.wholeWord&&(u=m(u,a));var p=a.caseSensitive?"gm":"gmi";if(a.$isMultiLine=!o&&/[\n\r]/.test(u),a.$isMultiLine)return a.re=this.$assembleMultilineRegExp(u,p);try{var v=new RegExp(u,p)}catch{v=!1}return a.re=v},this.$assembleMultilineRegExp=function(a,o){for(var u=a.replace(/\r\n|\r|\n/g,`$
|
|
223
|
-
^`).split(`
|
|
224
|
-
`),p=[],v=0;v<u.length;v++)try{p.push(new RegExp(u[v],o))}catch{return!1}return p},this.$matchIterator=function(a,o){var u=this.$assembleRegExp(o);if(!u)return!1;var p=o.backwards==!0,v=o.skipCurrent!=!1,w=o.range,b=o.start;b||(b=w?w[p?"end":"start"]:a.selection.getRange()),b.start&&(b=b[v!=p?"end":"start"]);var _=w?w.start.row:0,E=w?w.end.row:a.getLength()-1;if(p)var $=function(T){var M=b.row;if(!S(M,b.column,T)){for(M--;M>=_;M--)if(S(M,Number.MAX_VALUE,T))return;if(o.wrap!=!1){for(M=E,_=b.row;M>=_;M--)if(S(M,Number.MAX_VALUE,T))return}}};else var $=function(M){var A=b.row;if(!S(A,b.column,M)){for(A=A+1;A<=E;A++)if(S(A,0,M))return;if(o.wrap!=!1){for(A=_,E=b.row;A<=E;A++)if(S(A,0,M))return}}};if(o.$isMultiLine)var x=u.length,S=function(T,M,A){var R=p?T-x+1:T;if(!(R<0||R+x>a.getLength())){var y=a.getLine(R),k=y.search(u[0]);if(!(!p&&k<M||k===-1)){for(var O=1;O<x;O++)if(y=a.getLine(R+O),y.search(u[O])==-1)return;var N=y.match(u[x-1])[0].length;if(!(p&&N>M)&&A(R,k,R+x-1,N))return!0}}};else if(p)var S=function(M,A,R){var y=a.getLine(M),k=[],O,N=0;for(u.lastIndex=0;O=u.exec(y);){var I=O[0].length;if(N=O.index,!I){if(N>=y.length)break;u.lastIndex=N+=1}if(O.index+I>A)break;k.push(O.index,I)}for(var P=k.length-1;P>=0;P-=2){var B=k[P-1],I=k[P];if(R(M,B,M,B+I))return!0}};else var S=function(M,A,R){var y=a.getLine(M),k,O;for(u.lastIndex=A;O=u.exec(y);){var N=O[0].length;if(k=O.index,R(M,k,M,k+N))return!0;if(!N&&(u.lastIndex=k+=1,k>=y.length))return!1}};return{forEach:$}}}).call(l.prototype);function m(a,o){function u(p){return/\w/.test(p)||o.regExp?"\\b":""}return u(a[0])+a+u(a[a.length-1])}r.Search=l}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,i){var s=t("../lib/keys"),d=t("../lib/useragent"),f=s.KEY_MODS;function l(a,o){this.platform=o||(d.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(a),this.$singleCommand=!0}function m(a,o){l.call(this,a,o),this.$singleCommand=!1}m.prototype=l.prototype,function(){this.addCommand=function(o){this.commands[o.name]&&this.removeCommand(o),this.commands[o.name]=o,o.bindKey&&this._buildKeyHash(o)},this.removeCommand=function(o,u){var p=o&&(typeof o=="string"?o:o.name);o=this.commands[p],u||delete this.commands[p];var v=this.commandKeyBinding;for(var w in v){var b=v[w];if(b==o)delete v[w];else if(Array.isArray(b)){var _=b.indexOf(o);_!=-1&&(b.splice(_,1),b.length==1&&(v[w]=b[0]))}}},this.bindKey=function(o,u,p){if(typeof o=="object"&&o&&(p==null&&(p=o.position),o=o[this.platform]),!!o){if(typeof u=="function")return this.addCommand({exec:u,bindKey:o,name:u.name||o});o.split("|").forEach(function(v){var w="";if(v.indexOf(" ")!=-1){var b=v.split(/\s+/);v=b.pop(),b.forEach(function($){var x=this.parseKeys($),S=f[x.hashId]+x.key;w+=(w?" ":"")+S,this._addCommandToBinding(w,"chainKeys")},this),w+=" "}var _=this.parseKeys(v),E=f[_.hashId]+_.key;this._addCommandToBinding(w+E,u,p)},this)}};function a(o){return typeof o=="object"&&o.bindKey&&o.bindKey.position||(o.isDefault?-100:0)}this._addCommandToBinding=function(o,u,p){var v=this.commandKeyBinding,w;if(!u)delete v[o];else if(!v[o]||this.$singleCommand)v[o]=u;else{Array.isArray(v[o])?(w=v[o].indexOf(u))!=-1&&v[o].splice(w,1):v[o]=[v[o]],typeof p!="number"&&(p=a(u));var b=v[o];for(w=0;w<b.length;w++){var _=b[w],E=a(_);if(E>p)break}b.splice(w,0,u)}},this.addCommands=function(o){o&&Object.keys(o).forEach(function(u){var p=o[u];if(p){if(typeof p=="string")return this.bindKey(p,u);typeof p=="function"&&(p={exec:p}),typeof p=="object"&&(p.name||(p.name=u),this.addCommand(p))}},this)},this.removeCommands=function(o){Object.keys(o).forEach(function(u){this.removeCommand(o[u])},this)},this.bindKeys=function(o){Object.keys(o).forEach(function(u){this.bindKey(u,o[u])},this)},this._buildKeyHash=function(o){this.bindKey(o.bindKey,o)},this.parseKeys=function(o){var u=o.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(E){return E}),p=u.pop(),v=s[p];if(s.FUNCTION_KEYS[v])p=s.FUNCTION_KEYS[v].toLowerCase();else if(u.length){if(u.length==1&&u[0]=="shift")return{key:p.toUpperCase(),hashId:-1}}else return{key:p,hashId:-1};for(var w=0,b=u.length;b--;){var _=s.KEY_MODS[u[b]];if(_==null)return typeof console<"u"&&console.error("invalid modifier "+u[b]+" in "+o),!1;w|=_}return{key:p,hashId:w}},this.findKeyCommand=function(u,p){var v=f[u]+p;return this.commandKeyBinding[v]},this.handleKeyboard=function(o,u,p,v){if(!(v<0)){var w=f[u]+p,b=this.commandKeyBinding[w];return o.$keyChain&&(o.$keyChain+=" "+w,b=this.commandKeyBinding[o.$keyChain]||b),b&&(b=="chainKeys"||b[b.length-1]=="chainKeys")?(o.$keyChain=o.$keyChain||w,{command:"null"}):(o.$keyChain&&((!u||u==4)&&p.length==1?o.$keyChain=o.$keyChain.slice(0,-w.length-1):(u==-1||v>0)&&(o.$keyChain="")),{command:b})}},this.getStatusText=function(o,u){return u.$keyChain||""}}.call(l.prototype),r.HashHandler=l,r.MultiHashHandler=m}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(t,r,i){var s=t("../lib/oop"),d=t("../keyboard/hash_handler").MultiHashHandler,f=t("../lib/event_emitter").EventEmitter,l=function(m,a){d.call(this,a,m),this.byName=this.commands,this.setDefaultHandler("exec",function(o){return o.args?o.command.exec(o.editor,o.args,o.event,!1):o.command.exec(o.editor,{},o.event,!0)})};s.inherits(l,d),function(){s.implement(this,f),this.exec=function(m,a,o){if(Array.isArray(m)){for(var u=m.length;u--;)if(this.exec(m[u],a,o))return!0;return!1}if(typeof m=="string"&&(m=this.commands[m]),!m||a&&a.$readOnly&&!m.readOnly||this.$checkCommandState!=!1&&m.isAvailable&&!m.isAvailable(a))return!1;var p={editor:a,command:m,args:o};return p.returnValue=this._emit("exec",p),this._signal("afterExec",p),p.returnValue!==!1},this.toggleRecording=function(m){if(!this.$inReplay)return m&&m._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(a){this.macro.push([a.command,a.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(m){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(m);try{this.$inReplay=!0,this.macro.forEach(function(a){typeof a=="string"?this.exec(a,m):this.exec(a[0],m,a[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(m){return m.map(function(a){return typeof a[0]!="string"&&(a[0]=a[0].name),a[1]||(a=a[0]),a})}}.call(l.prototype),r.CommandManager=l}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(t,r,i){var s=t("../lib/lang"),d=t("../config"),f=t("../range").Range;function l(a,o){return{win:a,mac:o}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:l("Ctrl-,","Command-,"),exec:function(a){d.loadModule("ace/ext/settings_menu",function(o){o.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:l("Alt-E","F4"),exec:function(a){d.loadModule("ace/ext/error_marker",function(o){o.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:l("Alt-Shift-E","Shift-F4"),exec:function(a){d.loadModule("ace/ext/error_marker",function(o){o.showErrorMarker(a,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:l("Ctrl-A","Command-A"),exec:function(a){a.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:l(null,"Ctrl-L"),exec:function(a){a.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:l("Ctrl-L","Command-L"),exec:function(a,o){typeof o=="number"&&!isNaN(o)&&a.gotoLine(o),a.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:l("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(a){a.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:l("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(a){a.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:l("F2","F2"),exec:function(a){a.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:l("Alt-F2","Alt-F2"),exec:function(a){a.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:l("Alt-0","Command-Option-0"),exec:function(a){a.session.foldAll(),a.session.unfold(a.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:l("Alt-Shift-0","Command-Option-Shift-0"),exec:function(a){a.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:l("Ctrl-K","Command-G"),exec:function(a){a.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:l("Ctrl-Shift-K","Command-Shift-G"),exec:function(a){a.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:l("Alt-K","Ctrl-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:l("Alt-Shift-K","Ctrl-Shift-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:l("Ctrl-F","Command-F"),exec:function(a){d.loadModule("ace/ext/searchbox",function(o){o.Search(a)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(a){a.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:l("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(a){a.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:l("Ctrl-Home","Command-Home|Command-Up"),exec:function(a){a.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:l("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(a){a.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:l("Up","Up|Ctrl-P"),exec:function(a,o){a.navigateUp(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:l("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(a){a.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:l("Ctrl-End","Command-End|Command-Down"),exec:function(a){a.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:l("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(a){a.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:l("Down","Down|Ctrl-N"),exec:function(a,o){a.navigateDown(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:l("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(a){a.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:l("Ctrl-Left","Option-Left"),exec:function(a){a.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:l("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:l("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(a){a.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:l("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(a){a.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:l("Left","Left|Ctrl-B"),exec:function(a,o){a.navigateLeft(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:l("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(a){a.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:l("Ctrl-Right","Option-Right"),exec:function(a){a.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:l("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:l("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(a){a.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:l("Shift-Right","Shift-Right"),exec:function(a){a.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:l("Right","Right|Ctrl-F"),exec:function(a,o){a.navigateRight(o.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(a){a.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:l(null,"Option-PageDown"),exec:function(a){a.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:l("PageDown","PageDown|Ctrl-V"),exec:function(a){a.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(a){a.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:l(null,"Option-PageUp"),exec:function(a){a.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(a){a.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:l("Ctrl-Up",null),exec:function(a){a.renderer.scrollBy(0,-2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:l("Ctrl-Down",null),exec:function(a){a.renderer.scrollBy(0,2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:l("Ctrl-Alt-E","Command-Option-E"),exec:function(a){a.commands.toggleRecording(a)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:l("Ctrl-Shift-E","Command-Shift-E"),exec:function(a){a.commands.replay(a)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:l("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(a){a.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:l("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(a){a.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:l("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(a){a.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:l(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(a){},readOnly:!0},{name:"cut",description:"Cut",exec:function(a){var o=a.$copyWithEmptySelection&&a.selection.isEmpty(),u=o?a.selection.getLineRange():a.selection.getRange();a._emit("cut",u),u.isEmpty()||a.session.remove(u),a.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(a,o){a.$handlePaste(o)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:l("Ctrl-D","Command-D"),exec:function(a){a.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:l("Ctrl-Shift-D","Command-Shift-D"),exec:function(a){a.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:l("Ctrl-Alt-S","Command-Alt-S"),exec:function(a){a.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:l("Ctrl-/","Command-/"),exec:function(a){a.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:l("Ctrl-Shift-/","Command-Shift-/"),exec:function(a){a.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:l("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(a){a.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:l("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(a){a.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:l("Ctrl-H","Command-Option-F"),exec:function(a){d.loadModule("ace/ext/searchbox",function(o){o.Search(a,!0)})}},{name:"undo",description:"Undo",bindKey:l("Ctrl-Z","Command-Z"),exec:function(a){a.undo()}},{name:"redo",description:"Redo",bindKey:l("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(a){a.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:l("Alt-Shift-Up","Command-Option-Up"),exec:function(a){a.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:l("Alt-Up","Option-Up"),exec:function(a){a.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:l("Alt-Shift-Down","Command-Option-Down"),exec:function(a){a.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:l("Alt-Down","Option-Down"),exec:function(a){a.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:l("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(a){a.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:l("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(a){a.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:l("Shift-Delete",null),exec:function(a){if(a.selection.isEmpty())a.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:l("Alt-Backspace","Command-Backspace"),exec:function(a){a.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:l("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(a){a.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:l("Ctrl-Shift-Backspace",null),exec:function(a){var o=a.selection.getRange();o.start.column=0,a.session.remove(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:l("Ctrl-Shift-Delete",null),exec:function(a){var o=a.selection.getRange();o.end.column=Number.MAX_VALUE,a.session.remove(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:l("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(a){a.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:l("Ctrl-Delete","Alt-Delete"),exec:function(a){a.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:l("Shift-Tab","Shift-Tab"),exec:function(a){a.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:l("Tab","Tab"),exec:function(a){a.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:l("Ctrl-[","Ctrl-["),exec:function(a){a.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:l("Ctrl-]","Ctrl-]"),exec:function(a){a.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(a,o){a.insert(o)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(a,o){a.insert(s.stringRepeat(o.text||"",o.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:l(null,"Ctrl-O"),exec:function(a){a.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:l("Alt-Shift-X","Ctrl-T"),exec:function(a){a.transposeLetters()},multiSelectAction:function(a){a.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:l("Ctrl-U","Ctrl-U"),exec:function(a){a.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:l("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(a){a.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:l(null,null),exec:function(a){a.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:l("Ctrl-Shift-L","Command-Shift-L"),exec:function(a){var o=a.selection.getRange();o.start.column=o.end.column=0,o.end.row++,a.selection.setRange(o,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:l("Ctrl+F3","F3"),exec:function(a){a.openLink()}},{name:"joinlines",description:"Join lines",bindKey:l(null,null),exec:function(a){for(var o=a.selection.isBackwards(),u=o?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),p=o?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),v=a.session.doc.getLine(u.row).length,w=a.session.doc.getTextRange(a.selection.getRange()),b=w.replace(/\n\s*/," ").length,_=a.session.doc.getLine(u.row),E=u.row+1;E<=p.row+1;E++){var $=s.stringTrimLeft(s.stringTrimRight(a.session.doc.getLine(E)));$.length!==0&&($=" "+$),_+=$}p.row+1<a.session.doc.getLength()-1&&(_+=a.session.doc.getNewLineCharacter()),a.clearSelection(),a.session.doc.replace(new f(u.row,0,p.row+2,0),_),b>0?(a.selection.moveCursorTo(u.row,u.column),a.selection.selectTo(u.row,u.column+b)):(v=a.session.doc.getLine(u.row).length>v?v+1:v,a.selection.moveCursorTo(u.row,v))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:l(null,null),exec:function(a){var o=a.session.doc.getLength()-1,u=a.session.doc.getLine(o).length,p=a.selection.rangeList.ranges,v=[];p.length<1&&(p=[a.selection.getRange()]);for(var w=0;w<p.length;w++)w==p.length-1&&(p[w].end.row===o&&p[w].end.column===u||v.push(new f(p[w].end.row,p[w].end.column,o,u))),w===0?p[w].start.row===0&&p[w].start.column===0||v.push(new f(0,0,p[w].start.row,p[w].start.column)):v.push(new f(p[w-1].end.row,p[w-1].end.column,p[w].start.row,p[w].start.column));a.exitMultiSelectMode(),a.clearSelection();for(var w=0;w<v.length;w++)a.selection.addRange(v[w],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(a){a.selection.clearSelection(),a.navigateLineEnd(),a.insert(`
|
|
225
|
-
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(a){a.selection.clearSelection();var o=a.getCursorPosition();a.selection.moveTo(o.row-1,Number.MAX_VALUE),a.insert(`
|
|
226
|
-
`),o.row===0&&a.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command palette",bindKey:l("F1","F1"),exec:function(a){a.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:l(null,null),exec:function(a){a.prompt({$type:"modes"})},readOnly:!0}];for(var m=1;m<9;m++)r.commands.push({name:"foldToLevel"+m,description:"Fold To Level "+m,level:m,exec:function(a){a.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(t,r,i){var s=t("./lib/dom");function d(f){this.session=f,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(f){var l;return this.lineWidgets?l=this.lineWidgets[f]&&this.lineWidgets[f].rowCount||0:l=0,!this.$useWrapMode||!this.$wrapData[f]?1+l:this.$wrapData[f].length+1+l},this.$getWidgetScreenLength=function(){var f=0;return this.lineWidgets.forEach(function(l){l&&l.rowCount&&!l.hidden&&(f+=l.rowCount)}),f},this.$onChangeEditor=function(f){this.attach(f.editor)},this.attach=function(f){f&&f.widgetManager&&f.widgetManager!=this&&f.widgetManager.detach(),this.editor!=f&&(this.detach(),this.editor=f,f&&(f.widgetManager=this,f.renderer.on("beforeRender",this.measureWidgets),f.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(f){var l=this.editor;if(l){this.editor=null,l.widgetManager=null,l.renderer.off("beforeRender",this.measureWidgets),l.renderer.off("afterRender",this.renderWidgets);var m=this.session.lineWidgets;m&&m.forEach(function(a){a&&a.el&&a.el.parentNode&&(a._inDocument=!1,a.el.parentNode.removeChild(a.el))})}},this.updateOnFold=function(f,l){var m=l.lineWidgets;if(!(!m||!f.action)){for(var a=f.data,o=a.start.row,u=a.end.row,p=f.action=="add",v=o+1;v<u;v++)m[v]&&(m[v].hidden=p);m[u]&&(p?m[o]?m[u].hidden=p:m[o]=m[u]:(m[o]==m[u]&&(m[o]=void 0),m[u].hidden=p))}},this.updateOnChange=function(f){var l=this.session.lineWidgets;if(l){var m=f.start.row,a=f.end.row-m;if(a!==0)if(f.action=="remove"){var o=l.splice(m+1,a);!l[m]&&o[o.length-1]&&(l[m]=o.pop()),o.forEach(function(p){p&&this.removeLineWidget(p)},this),this.$updateRows()}else{var u=new Array(a);l[m]&&l[m].column!=null&&f.start.column>l[m].column&&m++,u.unshift(m,0),l.splice.apply(l,u),this.$updateRows()}}},this.$updateRows=function(){var f=this.session.lineWidgets;if(f){var l=!0;f.forEach(function(m,a){if(m)for(l=!1,m.row=a;m.$oldWidget;)m.$oldWidget.row=a,m=m.$oldWidget}),l&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(f){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var l=this.session.lineWidgets[f.row];return l&&(f.$oldWidget=l,l.el&&l.el.parentNode&&(l.el.parentNode.removeChild(l.el),l._inDocument=!1)),this.session.lineWidgets[f.row]=f,f},this.addLineWidget=function(f){if(this.$registerLineWidget(f),f.session=this.session,!this.editor)return f;var l=this.editor.renderer;f.html&&!f.el&&(f.el=s.createElement("div"),f.el.innerHTML=f.html),f.text&&!f.el&&(f.el=s.createElement("div"),f.el.textContent=f.text),f.el&&(s.addCssClass(f.el,"ace_lineWidgetContainer"),f.className&&s.addCssClass(f.el,f.className),f.el.style.position="absolute",f.el.style.zIndex=5,l.container.appendChild(f.el),f._inDocument=!0,f.coverGutter||(f.el.style.zIndex=3),f.pixelHeight==null&&(f.pixelHeight=f.el.offsetHeight)),f.rowCount==null&&(f.rowCount=f.pixelHeight/l.layerConfig.lineHeight);var m=this.session.getFoldAt(f.row,0);if(f.$fold=m,m){var a=this.session.lineWidgets;f.row==m.end.row&&!a[m.start.row]?a[m.start.row]=f:f.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:f.row}}}),this.$updateRows(),this.renderWidgets(null,l),this.onWidgetChanged(f),f},this.removeLineWidget=function(f){if(f._inDocument=!1,f.session=null,f.el&&f.el.parentNode&&f.el.parentNode.removeChild(f.el),f.editor&&f.editor.destroy)try{f.editor.destroy()}catch{}if(this.session.lineWidgets){var l=this.session.lineWidgets[f.row];if(l==f)this.session.lineWidgets[f.row]=f.$oldWidget,f.$oldWidget&&this.onWidgetChanged(f.$oldWidget);else for(;l;){if(l.$oldWidget==f){l.$oldWidget=f.$oldWidget;break}l=l.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:f.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(f){for(var l=this.session.lineWidgets,m=l&&l[f],a=[];m;)a.push(m),m=m.$oldWidget;return a},this.onWidgetChanged=function(f){this.session._changedWidgets.push(f),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(f,l){var m=this.session._changedWidgets,a=l.layerConfig;if(!(!m||!m.length)){for(var o=1/0,u=0;u<m.length;u++){var p=m[u];if(!(!p||!p.el)&&p.session==this.session){if(!p._inDocument){if(this.session.lineWidgets[p.row]!=p)continue;p._inDocument=!0,l.container.appendChild(p.el)}p.h=p.el.offsetHeight,p.fixedWidth||(p.w=p.el.offsetWidth,p.screenWidth=Math.ceil(p.w/a.characterWidth));var v=p.h/a.lineHeight;p.coverLine&&(v-=this.session.getRowLineCount(p.row),v<0&&(v=0)),p.rowCount!=v&&(p.rowCount=v,p.row<o&&(o=p.row))}}o!=1/0&&(this.session._emit("changeFold",{data:{start:{row:o}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(f,l){var m=l.layerConfig,a=this.session.lineWidgets;if(a){for(var o=Math.min(this.firstRow,m.firstRow),u=Math.max(this.lastRow,m.lastRow,a.length);o>0&&!a[o];)o--;this.firstRow=m.firstRow,this.lastRow=m.lastRow,l.$cursorLayer.config=m;for(var p=o;p<=u;p++){var v=a[p];if(!(!v||!v.el)){if(v.hidden){v.el.style.top=-100-(v.pixelHeight||0)+"px";continue}v._inDocument||(v._inDocument=!0,l.container.appendChild(v.el));var w=l.$cursorLayer.getPixelPosition({row:p,column:0},!0).top;v.coverLine||(w+=m.lineHeight*this.session.getRowLineCount(v.row)),v.el.style.top=w-m.offset+"px";var b=v.coverGutter?0:l.gutterWidth;v.fixedWidth||(b-=l.scrollLeft),v.el.style.left=b+"px",v.fullWidth&&v.screenWidth&&(v.el.style.minWidth=m.width+2*m.padding+"px"),v.fixedWidth?v.el.style.right=l.scrollBar.getWidth()+"px":v.el.style.right=""}}}}}).call(d.prototype),r.LineWidgets=d}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/clipboard"],function(t,r,i){var s=this&&this.__values||function(y){var k=typeof Symbol=="function"&&Symbol.iterator,O=k&&y[k],N=0;if(O)return O.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&N>=y.length&&(y=void 0),{value:y&&y[N++],done:!y}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")},d=t("./lib/oop"),f=t("./lib/dom"),l=t("./lib/lang"),m=t("./lib/useragent"),a=t("./keyboard/textinput").TextInput,o=t("./mouse/mouse_handler").MouseHandler,u=t("./mouse/fold_handler").FoldHandler,p=t("./keyboard/keybinding").KeyBinding,v=t("./edit_session").EditSession,w=t("./search").Search,b=t("./range").Range,_=t("./lib/event_emitter").EventEmitter,E=t("./commands/command_manager").CommandManager,$=t("./commands/default_commands").commands,x=t("./config"),S=t("./token_iterator").TokenIterator,T=t("./line_widgets").LineWidgets,M=t("./clipboard"),A=function(y,k,O){this.$toDestroy=[];var N=y.getContainerElement();this.container=N,this.renderer=y,this.id="editor"+ ++A.$uid,this.commands=new E(m.isMac?"mac":"win",$),typeof document=="object"&&(this.textInput=new a(y.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new o(this),new u(this)),this.keyBinding=new p(this),this.$search=new w().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=l.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(I,P){P._$emitInputEvent.schedule(31)}),this.setSession(k||O&&O.session||new v("")),x.resetOptions(this),O&&this.setOptions(O),x._signal("editor",this)};A.$uid=0,function(){d.implement(this,_),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=l.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(y){if(this.curOp){if(!y||this.curOp.command)return;this.prevOp=this.curOp}y||(this.previousCommand=null,y={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:y.command||{},args:y.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(y){if(this.curOp&&this.session){if(y&&y.returnValue===!1||!this.session)return this.curOp=null;if(y==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var k=this.curOp.command,O=k&&k.scrollIntoView;if(O){switch(O){case"center-animate":O="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var N=this.selection.getRange(),I=this.renderer.layerConfig;(N.start.row>=I.lastRow||N.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}O=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var P=this.selection.toJSON();this.curOp.selectionAfter=P,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(P),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(y){if(this.$mergeUndoDeltas){var k=this.prevOp,O=this.$mergeableCommands,N=k.command&&y.command.name==k.command.name;if(y.command.name=="insertstring"){var I=y.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),N=N&&this.mergeNextCommand&&(!/\s/.test(I)||/\s/.test(k.args)),this.mergeNextCommand=!0}else N=N&&O.indexOf(y.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(N=!1),N?this.session.mergeUndoDeltas=!0:O.indexOf(y.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(y,k){if(y&&typeof y=="string"&&y!="ace"){this.$keybindingId=y;var O=this;x.loadModule(["keybinding",y],function(N){O.$keybindingId==y&&O.keyBinding.setKeyboardHandler(N&&N.handler),k&&k()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(y),k&&k()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(y){if(this.session!=y){this.curOp&&this.endOperation(),this.curOp={};var k=this.session;if(k){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var O=this.session.getSelection();O.off("changeCursor",this.$onCursorChange),O.off("changeSelection",this.$onSelectionChange)}this.session=y,y?(this.$onDocumentChange=this.onDocumentChange.bind(this),y.on("change",this.$onDocumentChange),this.renderer.setSession(y),this.$onChangeMode=this.onChangeMode.bind(this),y.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),y.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),y.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),y.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),y.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),y.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=y.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(y)),this._signal("changeSession",{session:y,oldSession:k}),this.curOp=null,k&&k._signal("changeEditor",{oldEditor:this}),y&&y._signal("changeEditor",{editor:this}),y&&!y.destroyed&&y.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(y,k){return this.session.doc.setValue(y),k?k==1?this.navigateFileEnd():k==-1&&this.navigateFileStart():this.selectAll(),y},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(y){this.renderer.onResize(y)},this.setTheme=function(y,k){this.renderer.setTheme(y,k)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(y){this.renderer.setStyle(y)},this.unsetStyle=function(y){this.renderer.unsetStyle(y)},this.getFontSize=function(){return this.getOption("fontSize")||f.computedStyle(this.container).fontSize},this.setFontSize=function(y){this.setOption("fontSize",y)},this.$highlightBrackets=function(){if(!this.$highlightPending){var y=this;this.$highlightPending=!0,setTimeout(function(){y.$highlightPending=!1;var k=y.session;if(!(!k||k.destroyed)){k.$bracketHighlight&&(k.$bracketHighlight.markerIds.forEach(function(q){k.removeMarker(q)}),k.$bracketHighlight=null);var O=y.getCursorPosition(),N=y.getKeyboardHandler(),I=N&&N.$getDirectionForHighlight&&N.$getDirectionForHighlight(y),P=k.getMatchingBracketRanges(O,I);if(!P){var B=new S(k,O.row,O.column),z=B.getCurrentToken();if(z&&/\b(?:tag-open|tag-name)/.test(z.type)){var j=k.getMatchingTags(O);j&&(P=[j.openTagName,j.closeTagName])}}if(!P&&k.$mode.getMatching&&(P=k.$mode.getMatching(y.session)),!P){y.getHighlightIndentGuides()&&y.renderer.$textLayer.$highlightIndentGuide();return}var J="ace_bracket";Array.isArray(P)?P.length==1&&(J="ace_error_bracket"):P=[P],P.length==2&&(b.comparePoints(P[0].end,P[1].start)==0?P=[b.fromPoints(P[0].start,P[1].end)]:b.comparePoints(P[0].start,P[1].end)==0&&(P=[b.fromPoints(P[1].start,P[0].end)])),k.$bracketHighlight={ranges:P,markerIds:P.map(function(q){return k.addMarker(q,J,"text")})},y.getHighlightIndentGuides()&&y.renderer.$textLayer.$highlightIndentGuide()}},50)}},this.focus=function(){this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(y){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",y))},this.onBlur=function(y){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",y))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(y){var k=this.session.$useWrapMode,O=y.start.row==y.end.row?y.end.row:1/0;this.renderer.updateLines(y.start.row,O,k),this._signal("change",y),this.$cursorChange()},this.onTokenizerUpdate=function(y){var k=y.data;this.renderer.updateLines(k.first,k.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var y=this.getSession(),k;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(k=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(k=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(k=!1)),y.$highlightLineMarker&&!k)y.removeMarker(y.$highlightLineMarker.id),y.$highlightLineMarker=null;else if(!y.$highlightLineMarker&&k){var O=new b(k.row,k.column,k.row,1/0);O.id=y.addMarker(O,"ace_active-line","screenLine"),y.$highlightLineMarker=O}else k&&(y.$highlightLineMarker.start.row=k.row,y.$highlightLineMarker.end.row=k.row,y.$highlightLineMarker.start.column=k.column,y._signal("changeBackMarker"))},this.onSelectionChange=function(y){var k=this.session;if(k.$selectionMarker&&k.removeMarker(k.$selectionMarker),k.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var O=this.selection.getRange(),N=this.getSelectionStyle();k.$selectionMarker=k.addMarker(O,"ace_selection",N)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var y=this.session,k=this.getSelectionRange();if(!(k.isEmpty()||k.isMultiLine())){var O=k.start.column,N=k.end.column,I=y.getLine(k.start.row),P=I.substring(O,N);if(!(P.length>5e3||!/[\w\d]/.test(P))){var B=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:P}),z=I.substring(O-1,N+1);if(B.test(z))return B}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(y){this.renderer.updateText(),this._emit("changeMode",y)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var y=this.getSelectedText(),k=this.session.doc.getNewLineCharacter(),O=!1;if(!y&&this.$copyWithEmptySelection){O=!0;for(var N=this.selection.getAllRanges(),I=0;I<N.length;I++){var P=N[I];I&&N[I-1].start.row==P.start.row||(y+=this.session.getLine(P.start.row)+k)}}var B={text:y};return this._signal("copy",B),M.lineMode=O?B.text:!1,B.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(y,k){var O={text:y,event:k};this.commands.exec("paste",this,O)},this.$handlePaste=function(y){typeof y=="string"&&(y={text:y}),this._signal("paste",y);var k=y.text,O=k===M.lineMode,N=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)O?N.insert({row:this.selection.lead.row,column:0},k):this.insert(k);else if(O)this.selection.rangeList.ranges.forEach(function(J){N.insert({row:J.start.row,column:0},k)});else{var I=k.split(/\r\n|\r|\n/),P=this.selection.rangeList.ranges,B=I.length==2&&(!I[0]||!I[1]);if(I.length!=P.length||B)return this.commands.exec("insertstring",this,k);for(var z=P.length;z--;){var j=P[z];j.isEmpty()||N.remove(j),N.insert(j.start,I[z])}}},this.execCommand=function(y,k){return this.commands.exec(y,this,k)},this.insert=function(y,k){var O=this.session,N=O.getMode(),I=this.getCursorPosition();if(this.getBehavioursEnabled()&&!k){var P=N.transformAction(O.getState(I.row),"insertion",this,O,y);P&&(y!==P.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),y=P.text)}if(y==" "&&(y=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&y.indexOf(`
|
|
227
|
-
`)==-1){var B=new b.fromPoints(I,I);B.end.column+=y.length,this.session.remove(B)}}else{var B=this.getSelectionRange();I=this.session.remove(B),this.clearSelection()}if(y==`
|
|
228
|
-
`||y==`\r
|
|
229
|
-
`){var q=O.getLine(I.row);if(I.column>q.search(/\S|$/)){var z=q.substr(I.column).search(/\S|$/);O.doc.removeInLine(I.row,I.column,I.column+z)}}this.clearSelection();var j=I.column,J=O.getState(I.row),q=O.getLine(I.row),re=N.checkOutdent(J,q,y);if(O.insert(I,y),P&&P.selection&&(P.selection.length==2?this.selection.setSelectionRange(new b(I.row,j+P.selection[0],I.row,j+P.selection[1])):this.selection.setSelectionRange(new b(I.row+P.selection[0],P.selection[1],I.row+P.selection[2],P.selection[3]))),this.$enableAutoIndent){if(O.getDocument().isNewLine(y)){var ie=N.getNextLineIndent(J,q.slice(0,I.column),O.getTabString());O.insert({row:I.row+1,column:0},ie)}re&&N.autoOutdent(J,O,I.row)}},this.autoIndent=function(){var y=this.session,k=y.getMode(),O,N;if(this.selection.isEmpty())O=0,N=y.doc.getLength()-1;else{var I=this.getSelectionRange();O=I.start.row,N=I.end.row}for(var P="",B="",z="",j,J,q,re=y.getTabString(),ie=O;ie<=N;ie++)ie>0&&(P=y.getState(ie-1),B=y.getLine(ie-1),z=k.getNextLineIndent(P,B,re)),j=y.getLine(ie),J=k.$getIndent(j),z!==J&&(J.length>0&&(q=new b(ie,0,ie,J.length),y.remove(q)),z.length>0&&y.insert({row:ie,column:0},z)),k.autoOutdent(P,y,ie)},this.onTextInput=function(y,k){if(!k)return this.keyBinding.onTextInput(y);this.startOperation({command:{name:"insertstring"}});var O=this.applyComposition.bind(this,y,k);this.selection.rangeCount?this.forEachSelection(O):O(),this.endOperation()},this.applyComposition=function(y,k){if(k.extendLeft||k.extendRight){var O=this.selection.getRange();O.start.column-=k.extendLeft,O.end.column+=k.extendRight,O.start.column<0&&(O.start.row--,O.start.column+=this.session.getLine(O.start.row).length+1),this.selection.setRange(O),!y&&!O.isEmpty()&&this.remove()}if((y||!this.selection.isEmpty())&&this.insert(y,!0),k.restoreStart||k.restoreEnd){var O=this.selection.getRange();O.start.column-=k.restoreStart,O.end.column-=k.restoreEnd,this.selection.setRange(O)}},this.onCommandKey=function(y,k,O){return this.keyBinding.onCommandKey(y,k,O)},this.setOverwrite=function(y){this.session.setOverwrite(y)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(y){this.setOption("scrollSpeed",y)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(y){this.setOption("dragDelay",y)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(y){this.setOption("selectionStyle",y)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(y){this.setOption("highlightActiveLine",y)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(y){this.setOption("highlightGutterLine",y)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(y){this.setOption("highlightSelectedWord",y)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(y){this.renderer.setAnimatedScroll(y)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(y){this.renderer.setShowInvisibles(y)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(y){this.renderer.setDisplayIndentGuides(y)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setHighlightIndentGuides=function(y){this.renderer.setHighlightIndentGuides(y)},this.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},this.setShowPrintMargin=function(y){this.renderer.setShowPrintMargin(y)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(y){this.renderer.setPrintMarginColumn(y)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(y){this.setOption("readOnly",y)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(y){this.setOption("behavioursEnabled",y)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(y){this.setOption("wrapBehavioursEnabled",y)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(y){this.setOption("showFoldWidgets",y)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(y){this.setOption("fadeFoldWidgets",y)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(y){this.selection.isEmpty()&&(y=="left"?this.selection.selectLeft():this.selection.selectRight());var k=this.getSelectionRange();if(this.getBehavioursEnabled()){var O=this.session,N=O.getState(k.start.row),I=O.getMode().transformAction(N,"deletion",this,O,k);if(k.end.column===0){var P=O.getTextRange(k);if(P[P.length-1]==`
|
|
230
|
-
`){var B=O.getLine(k.end.row);/^\s+$/.test(B)&&(k.end.column=B.length)}}I&&(k=I)}this.session.remove(k),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var y=this.getSelectionRange();y.start.column==y.end.column&&y.start.row==y.end.row&&(y.end.column=0,y.end.row++),this.session.remove(y),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var y=this.getCursorPosition();this.insert(`
|
|
231
|
-
`),this.moveCursorToPosition(y)},this.setGhostText=function(y,k){this.session.widgetManager||(this.session.widgetManager=new T(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(y,k)},this.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},this.transposeLetters=function(){if(this.selection.isEmpty()){var y=this.getCursorPosition(),k=y.column;if(k!==0){var O=this.session.getLine(y.row),N,I;k<O.length?(N=O.charAt(k)+O.charAt(k-1),I=new b(y.row,k-1,y.row,k+1)):(N=O.charAt(k-1)+O.charAt(k-2),I=new b(y.row,k-2,y.row,k)),this.session.replace(I,N),this.session.selection.moveToPosition(I.end)}}},this.toLowerCase=function(){var y=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var k=this.getSelectionRange(),O=this.session.getTextRange(k);this.session.replace(k,O.toLowerCase()),this.selection.setSelectionRange(y)},this.toUpperCase=function(){var y=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var k=this.getSelectionRange(),O=this.session.getTextRange(k);this.session.replace(k,O.toUpperCase()),this.selection.setSelectionRange(y)},this.indent=function(){var y=this.session,k=this.getSelectionRange();if(k.start.row<k.end.row){var O=this.$getSelectedRows();y.indentRows(O.first,O.last," ");return}else if(k.start.column<k.end.column){var N=y.getTextRange(k);if(!/^\s+$/.test(N)){var O=this.$getSelectedRows();y.indentRows(O.first,O.last," ");return}}var I=y.getLine(k.start.row),P=k.start,B=y.getTabSize(),z=y.documentToScreenColumn(P.row,P.column);if(this.session.getUseSoftTabs())var j=B-z%B,J=l.stringRepeat(" ",j);else{for(var j=z%B;I[k.start.column-1]==" "&&j;)k.start.column--,j--;this.selection.setSelectionRange(k),J=" "}return this.insert(J)},this.blockIndent=function(){var y=this.$getSelectedRows();this.session.indentRows(y.first,y.last," ")},this.blockOutdent=function(){var y=this.session.getSelection();this.session.outdentRows(y.getRange())},this.sortLines=function(){for(var y=this.$getSelectedRows(),k=this.session,O=[],N=y.first;N<=y.last;N++)O.push(k.getLine(N));O.sort(function(B,z){return B.toLowerCase()<z.toLowerCase()?-1:B.toLowerCase()>z.toLowerCase()?1:0});for(var I=new b(0,0,0,0),N=y.first;N<=y.last;N++){var P=k.getLine(N);I.start.row=N,I.end.row=N,I.end.column=P.length,k.replace(I,O[N-y.first])}},this.toggleCommentLines=function(){var y=this.session.getState(this.getCursorPosition().row),k=this.$getSelectedRows();this.session.getMode().toggleCommentLines(y,this.session,k.first,k.last)},this.toggleBlockComment=function(){var y=this.getCursorPosition(),k=this.session.getState(y.row),O=this.getSelectionRange();this.session.getMode().toggleBlockComment(k,this.session,O,y)},this.getNumberAt=function(y,k){var O=/[\-]?[0-9]+(?:\.[0-9]+)?/g;O.lastIndex=0;for(var N=this.session.getLine(y);O.lastIndex<k;){var I=O.exec(N);if(I.index<=k&&I.index+I[0].length>=k){var P={value:I[0],start:I.index,end:I.index+I[0].length};return P}}return null},this.modifyNumber=function(y){var k=this.selection.getCursor().row,O=this.selection.getCursor().column,N=new b(k,O-1,k,O),I=this.session.getTextRange(N);if(!isNaN(parseFloat(I))&&isFinite(I)){var P=this.getNumberAt(k,O);if(P){var B=P.value.indexOf(".")>=0?P.start+P.value.indexOf(".")+1:P.end,z=P.start+P.value.length-B,j=parseFloat(P.value);j*=Math.pow(10,z),B!==P.end&&O<B?y*=Math.pow(10,P.end-O-1):y*=Math.pow(10,P.end-O),j+=y,j/=Math.pow(10,z);var J=j.toFixed(z),q=new b(k,P.start,k,P.end);this.session.replace(q,J),this.moveCursorTo(k,Math.max(P.start+1,O+J.length-P.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var y=this.selection.getCursor().row,k=this.selection.getCursor().column;this.selection.selectWord();var O=this.getSelectedText(),N=this.selection.getWordRange().start.column,I=O.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),P=k-N-1;P<0&&(P=0);var B=0,z=0,j=this;O.match(/[A-Za-z0-9_]+/)&&I.forEach(function(we,G){z=B+we.length,P>=B&&P<=z&&(O=we,j.selection.clearSelection(),j.moveCursorTo(y,B+N),j.selection.selectTo(y,z+N)),B=z});for(var J=this.$toggleWordPairs,q,re=0;re<J.length;re++)for(var ie=J[re],Y=0;Y<=1;Y++){var ne=+!Y,oe=O.match(new RegExp("^\\s?_?("+l.escapeRegExp(ie[Y])+")\\s?$","i"));if(oe){var fe=O.match(new RegExp("([_]|^|\\s)("+l.escapeRegExp(oe[1])+")($|\\s)","g"));fe&&(q=O.replace(new RegExp(l.escapeRegExp(ie[Y]),"i"),function(we){var G=ie[ne];return we.toUpperCase()==we?G=G.toUpperCase():we.charAt(0).toUpperCase()==we.charAt(0)&&(G=G.substr(0,0)+ie[ne].charAt(0).toUpperCase()+G.substr(1)),G}),this.insert(q),q="")}}},this.findLinkAt=function(y,k){var O,N,I=this.session.getLine(y),P=I.split(/((?:https?|ftp):\/\/[\S]+)/),B=k;B<0&&(B=0);var z=0,j=0,J;try{for(var q=s(P),re=q.next();!re.done;re=q.next()){var ie=re.value;if(j=z+ie.length,B>=z&&B<=j&&ie.match(/((?:https?|ftp):\/\/[\S]+)/)){J=ie.replace(/[\s:.,'";}\]]+$/,"");break}z=j}}catch(Y){O={error:Y}}finally{try{re&&!re.done&&(N=q.return)&&N.call(q)}finally{if(O)throw O.error}}return J},this.openLink=function(){var y=this.selection.getCursor(),k=this.findLinkAt(y.row,y.column);return k&&window.open(k,"_blank"),k!=null},this.removeLines=function(){var y=this.$getSelectedRows();this.session.removeFullLines(y.first,y.last),this.clearSelection()},this.duplicateSelection=function(){var y=this.selection,k=this.session,O=y.getRange(),N=y.isBackwards();if(O.isEmpty()){var I=O.start.row;k.duplicateLines(I,I)}else{var P=N?O.start:O.end,B=k.insert(P,k.getTextRange(O),!1);O.start=P,O.end=B,y.setSelectionRange(O,N)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(y,k,O){return this.session.moveText(y,k,O)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(y,k){var O,N,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var P=I.toOrientedRange();O=this.$getSelectedRows(P),N=this.session.$moveLines(O.first,O.last,k?0:y),k&&y==-1&&(N=0),P.moveBy(N,0),I.fromOrientedRange(P)}else{var B=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var z=0,j=0,J=B.length,q=0;q<J;q++){var re=q;B[q].moveBy(z,0),O=this.$getSelectedRows(B[q]);for(var ie=O.first,Y=O.last;++q<J;){j&&B[q].moveBy(j,0);var ne=this.$getSelectedRows(B[q]);if(k&&ne.first!=Y)break;if(!k&&ne.first>Y+1)break;Y=ne.last}for(q--,z=this.session.$moveLines(ie,Y,k?0:y),k&&y==-1&&(re=q+1);re<=q;)B[re].moveBy(z,0),re++;k||(z=0),j+=z}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(y){return y=(y||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(y.start.row),last:this.session.getRowFoldEnd(y.end.row)}},this.onCompositionStart=function(y){this.renderer.showComposition(y)},this.onCompositionUpdate=function(y){this.renderer.setCompositionText(y)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(y){return y>=this.getFirstVisibleRow()&&y<=this.getLastVisibleRow()},this.isRowFullyVisible=function(y){return y>=this.renderer.getFirstFullyVisibleRow()&&y<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(y,k){var O=this.renderer,N=this.renderer.layerConfig,I=y*Math.floor(N.height/N.lineHeight);k===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):k===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var P=O.scrollTop;O.scrollBy(0,I*N.lineHeight),k!=null&&O.scrollCursorIntoView(null,.5),O.animateScrolling(P)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(y){this.renderer.scrollToRow(y)},this.scrollToLine=function(y,k,O,N){this.renderer.scrollToLine(y,k,O,N)},this.centerSelection=function(){var y=this.getSelectionRange(),k={row:Math.floor(y.start.row+(y.end.row-y.start.row)/2),column:Math.floor(y.start.column+(y.end.column-y.start.column)/2)};this.renderer.alignCursor(k,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(y,k){this.selection.moveCursorTo(y,k)},this.moveCursorToPosition=function(y){this.selection.moveCursorToPosition(y)},this.jumpToMatching=function(y,k){var O=this.getCursorPosition(),N=new S(this.session,O.row,O.column),I=N.getCurrentToken(),P=0;I&&I.type.indexOf("tag-name")!==-1&&(I=N.stepBackward());var B=I||N.stepForward();if(B){var z,j=!1,J={},q=O.column-B.start,re,ie={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(B.value.match(/[{}()\[\]]/g)){for(;q<B.value.length&&!j;q++)if(ie[B.value[q]])switch(re=ie[B.value[q]]+"."+B.type.replace("rparen","lparen"),isNaN(J[re])&&(J[re]=0),B.value[q]){case"(":case"[":case"{":J[re]++;break;case")":case"]":case"}":J[re]--,J[re]===-1&&(z="bracket",j=!0);break}}else B.type.indexOf("tag-name")!==-1&&(isNaN(J[B.value])&&(J[B.value]=0),I.value==="<"&&P>1?J[B.value]++:I.value==="</"&&J[B.value]--,J[B.value]===-1&&(z="tag",j=!0));j||(I=B,P++,B=N.stepForward(),q=0)}while(B&&!j);if(z){var Y,ne;if(z==="bracket")Y=this.session.getBracketRange(O),Y||(Y=new b(N.getCurrentTokenRow(),N.getCurrentTokenColumn()+q-1,N.getCurrentTokenRow(),N.getCurrentTokenColumn()+q-1),ne=Y.start,(k||ne.row===O.row&&Math.abs(ne.column-O.column)<2)&&(Y=this.session.getBracketRange(ne)));else if(z==="tag"){if(!B||B.type.indexOf("tag-name")===-1)return;if(Y=new b(N.getCurrentTokenRow(),N.getCurrentTokenColumn()-2,N.getCurrentTokenRow(),N.getCurrentTokenColumn()-2),Y.compare(O.row,O.column)===0){var oe=this.session.getMatchingTags(O);oe&&(oe.openTag.contains(O.row,O.column)?(Y=oe.closeTag,ne=Y.start):(Y=oe.openTag,oe.closeTag.start.row===O.row&&oe.closeTag.start.column===O.column?ne=Y.end:ne=Y.start))}ne=ne||Y.start}ne=Y&&Y.cursor||ne,ne&&(y?Y&&k?this.selection.setRange(Y):Y&&Y.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ne.row,ne.column):this.selection.moveTo(ne.row,ne.column))}}},this.gotoLine=function(y,k,O){this.selection.clearSelection(),this.session.unfold({row:y-1,column:k||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(y-1,k||0),this.isRowFullyVisible(y-1)||this.scrollToLine(y-1,!0,O)},this.navigateTo=function(y,k){this.selection.moveTo(y,k)},this.navigateUp=function(y){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var k=this.selection.anchor.getPosition();return this.moveCursorToPosition(k)}this.selection.clearSelection(),this.selection.moveCursorBy(-y||-1,0)},this.navigateDown=function(y){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var k=this.selection.anchor.getPosition();return this.moveCursorToPosition(k)}this.selection.clearSelection(),this.selection.moveCursorBy(y||1,0)},this.navigateLeft=function(y){if(this.selection.isEmpty())for(y=y||1;y--;)this.selection.moveCursorLeft();else{var k=this.getSelectionRange().start;this.moveCursorToPosition(k)}this.clearSelection()},this.navigateRight=function(y){if(this.selection.isEmpty())for(y=y||1;y--;)this.selection.moveCursorRight();else{var k=this.getSelectionRange().end;this.moveCursorToPosition(k)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(y,k){k&&this.$search.set(k);var O=this.$search.find(this.session),N=0;return O&&(this.$tryReplace(O,y)&&(N=1),this.selection.setSelectionRange(O),this.renderer.scrollSelectionIntoView(O.start,O.end)),N},this.replaceAll=function(y,k){k&&this.$search.set(k);var O=this.$search.findAll(this.session),N=0;if(!O.length)return N;var I=this.getSelectionRange();this.selection.moveTo(0,0);for(var P=O.length-1;P>=0;--P)this.$tryReplace(O[P],y)&&N++;return this.selection.setSelectionRange(I),N},this.$tryReplace=function(y,k){var O=this.session.getTextRange(y);return k=this.$search.replace(O,k),k!==null?(y.end=this.session.replace(y,k),y):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(y,k,O){k||(k={}),typeof y=="string"||y instanceof RegExp?k.needle=y:typeof y=="object"&&d.mixin(k,y);var N=this.selection.getRange();k.needle==null&&(y=this.session.getTextRange(N)||this.$search.$options.needle,y||(N=this.session.getWordRange(N.start.row,N.start.column),y=this.session.getTextRange(N)),this.$search.set({needle:y})),this.$search.set(k),k.start||this.$search.set({start:N});var I=this.$search.find(this.session);if(k.preventScroll)return I;if(I)return this.revealRange(I,O),I;k.backwards?N.start=N.end:N.end=N.start,this.selection.setRange(N)},this.findNext=function(y,k){this.find({skipCurrent:!0,backwards:!1},y,k)},this.findPrevious=function(y,k){this.find(y,{skipCurrent:!0,backwards:!0},k)},this.revealRange=function(y,k){this.session.unfold(y),this.selection.setSelectionRange(y);var O=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(y.start,y.end,.5),k!==!1&&this.renderer.animateScrolling(O)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(y){y.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(y){if(y){var k,O=this,N=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var I=this.$scrollAnchor;I.style.cssText="position:absolute",this.container.insertBefore(I,this.container.firstChild);var P=this.on("changeSelection",function(){N=!0}),B=this.renderer.on("beforeRender",function(){N&&(k=O.renderer.container.getBoundingClientRect())}),z=this.renderer.on("afterRender",function(){if(N&&k&&(O.isFocused()||O.searchBox&&O.searchBox.isFocused())){var j=O.renderer,J=j.$cursorLayer.$pixelPos,q=j.layerConfig,re=J.top-q.offset;J.top>=0&&re+k.top<0?N=!0:J.top<q.height&&J.top+k.top+q.lineHeight>window.innerHeight?N=!1:N=null,N!=null&&(I.style.top=re+"px",I.style.left=J.left+"px",I.style.height=q.lineHeight+"px",I.scrollIntoView(N)),N=k=null}});this.setAutoScrollEditorIntoView=function(j){j||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",P),this.renderer.off("afterRender",z),this.renderer.off("beforeRender",B))}}},this.$resetCursorStyle=function(){var y=this.$cursorStyle||"ace",k=this.renderer.$cursorLayer;k&&(k.setSmoothBlinking(/smooth/.test(y)),k.isBlinking=!this.$readOnly&&y!="wide",f.setCssClass(k.element,"ace_slim-cursors",/slim/.test(y)))},this.prompt=function(y,k,O){var N=this;x.loadModule("ace/ext/prompt",function(I){I.prompt(N,y,k,O)})}}.call(A.prototype),x.defineOptions(A.prototype,"editor",{selectionStyle:{set:function(y){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:y})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(y){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(y){this.textInput.setReadOnly(y),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(y){this.textInput.setCopyWithEmptySelection(y)},initialValue:!1},cursorStyle:{set:function(y){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(y){this.setAutoScrollEditorIntoView(y)}},keyboardHandler:{set:function(y){this.setKeyboardHandler(y)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(y){this.session.setValue(y)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(y){this.setSession(y)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(y){this.renderer.$gutterLayer.setShowLineNumbers(y),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),y&&this.$relativeLineNumbers?R.attach(this):R.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(y){this.$showLineNumbers&&y?R.attach(this):R.detach(this)}},placeholder:{set:function(y){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var k=this.session&&(this.renderer.$composition||this.getValue());if(k&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),f.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!k&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),f.addCssClass(this.container,"ace_hasPlaceholder");var O=f.createElement("div");O.className="ace_placeholder",O.textContent=this.$placeholder||"",this.renderer.placeholderNode=O,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!k&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var R={getText:function(y,k){return(Math.abs(y.selection.lead.row-k)||k+1+(k<9?"·":""))+""},getWidth:function(y,k,O){return Math.max(k.toString().length,(O.lastRow+1).toString().length,2)*O.characterWidth},update:function(y,k){k.renderer.$loop.schedule(k.renderer.CHANGE_GUTTER)},attach:function(y){y.renderer.$gutterLayer.$renderer=this,y.on("changeSelection",this.update),this.update(null,y)},detach:function(y){y.renderer.$gutterLayer.$renderer==this&&(y.renderer.$gutterLayer.$renderer=null),y.off("changeSelection",this.update),this.update(null,y)}};r.Editor=A}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(t,r,i){var s=function(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()};(function(){this.addSession=function(S){this.$session=S},this.add=function(S,T,M){if(!this.$fromUndo&&S!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),T===!1||!this.lastDeltas){this.lastDeltas=[];var A=this.$undoStack.length;A>this.$undoDepth-1&&this.$undoStack.splice(0,A-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),S.id=this.$rev=++this.$maxRev}(S.action=="remove"||S.action=="insert")&&(this.$lastDelta=S),this.lastDeltas.push(S)}},this.addSelection=function(S,T){this.selections.push({value:S,rev:T||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(S,T){T==null&&(T=this.$rev+1);for(var M=this.$undoStack,A=M.length;A--;){var R=M[A][0];if(R.id<=S)break;R.id<T&&(R.ignore=!0)}this.lastDeltas=null},this.getSelection=function(S,T){for(var M=this.selections,A=M.length;A--;){var R=M[A];if(R.rev<S)return T&&(R=M[A+1]),R}},this.getRevision=function(){return this.$rev},this.getDeltas=function(S,T){T==null&&(T=this.$rev+1);for(var M=this.$undoStack,A=null,R=0,y=M.length;y--;){var k=M[y][0];if(k.id<T&&!A&&(A=y+1),k.id<=S){R=y+1;break}}return M.slice(R,A)},this.getChangedRanges=function(S,T){T==null&&(T=this.$rev+1)},this.getChangedLines=function(S,T){T==null&&(T=this.$rev+1)},this.undo=function(S,T){this.lastDeltas=null;var M=this.$undoStack;if(d(M,M.length)){S||(S=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var A=M.pop(),R=null;return A&&(R=S.undoChanges(A,T),this.$redoStack.push(A),this.$syncRev()),this.$fromUndo=!1,R}},this.redo=function(S,T){if(this.lastDeltas=null,S||(S=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var M=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);x(this.$redoStack,M),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(y){y[0].id=++this.$maxRev},this)}var A=this.$redoStack.pop(),R=null;return A&&(R=S.redoChanges(A,T),this.$undoStack.push(A),this.$syncRev()),this.$fromUndo=!1,R},this.$syncRev=function(){var S=this.$undoStack,T=S[S.length-1],M=T&&T[0].id||0;this.$redoStackBaseRev=M,this.$rev=M},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return this.$undoStack.length>0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(S){S==null&&(S=this.$rev),this.mark=S},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(S){return S?o(S):o(this.$undoStack)+`
|
|
232
|
-
---
|
|
233
|
-
`+o(this.$redoStack)}}).call(s.prototype);function d(S,T){for(var M=T;M--;){var A=S[M];if(A&&!A[0].ignore){for(;M<T-1;){var R=v(S[M],S[M+1]);S[M]=R[0],S[M+1]=R[1],M++}return!0}}}var f=t("./range").Range,l=f.comparePoints;f.comparePoints;function m(S){return{row:S.row,column:S.column}}function a(S){return{start:m(S.start),end:m(S.end),action:S.action,lines:S.lines.slice()}}function o(S){if(S=S||this,Array.isArray(S))return S.map(o).join(`
|
|
234
|
-
`);var T="";return S.action?(T=S.action=="insert"?"+":"-",T+="["+S.lines+"]"):S.value&&(Array.isArray(S.value)?T=S.value.map(u).join(`
|
|
235
|
-
`):T=u(S.value)),S.start&&(T+=u(S)),(S.id||S.rev)&&(T+=" ("+(S.id||S.rev)+")"),T}function u(S){return S.start.row+":"+S.start.column+"=>"+S.end.row+":"+S.end.column}function p(S,T){var M=S.action=="insert",A=T.action=="insert";if(M&&A)if(l(T.start,S.end)>=0)b(T,S,-1);else if(l(T.start,S.start)<=0)b(S,T,1);else return null;else if(M&&!A)if(l(T.start,S.end)>=0)b(T,S,-1);else if(l(T.end,S.start)<=0)b(S,T,-1);else return null;else if(!M&&A)if(l(T.start,S.start)>=0)b(T,S,1);else if(l(T.start,S.start)<=0)b(S,T,1);else return null;else if(!M&&!A)if(l(T.start,S.start)>=0)b(T,S,1);else if(l(T.end,S.start)<=0)b(S,T,-1);else return null;return[T,S]}function v(S,T){for(var M=S.length;M--;)for(var A=0;A<T.length;A++)if(!p(S[M],T[A])){for(;M<S.length;){for(;A--;)p(T[A],S[M]);A=T.length,M++}return[S,T]}return S.selectionBefore=T.selectionBefore=S.selectionAfter=T.selectionAfter=null,[T,S]}function w(S,T){var M=S.action=="insert",A=T.action=="insert";if(M&&A)l(S.start,T.start)<0?b(T,S,1):b(S,T,1);else if(M&&!A)l(S.start,T.end)>=0?b(S,T,-1):(l(S.start,T.start)<=0||b(S,f.fromPoints(T.start,S.start),-1),b(T,S,1));else if(!M&&A)l(T.start,S.end)>=0?b(T,S,-1):(l(T.start,S.start)<=0||b(T,f.fromPoints(S.start,T.start),-1),b(S,T,1));else if(!M&&!A)if(l(T.start,S.end)>=0)b(T,S,-1);else if(l(T.end,S.start)<=0)b(S,T,-1);else{var R,y;return l(S.start,T.start)<0&&(R=S,S=E(S,T.start)),l(S.end,T.end)>0&&(y=E(S,T.end)),_(T.end,S.start,S.end,-1),y&&!R&&(S.lines=y.lines,S.start=y.start,S.end=y.end,y=S),[T,R,y].filter(Boolean)}return[T,S]}function b(S,T,M){_(S.start,T.start,T.end,M),_(S.end,T.start,T.end,M)}function _(S,T,M,A){S.row==(A==1?T:M).row&&(S.column+=A*(M.column-T.column)),S.row+=A*(M.row-T.row)}function E(S,T){var M=S.lines,A=S.end;S.end=m(T);var R=S.end.row-S.start.row,y=M.splice(R,M.length),k=R?T.column:T.column-S.start.column;M.push(y[0].substring(0,k)),y[0]=y[0].substr(k);var O={start:m(T),end:A,lines:y,action:S.action};return O}function $(S,T){T=a(T);for(var M=S.length;M--;){for(var A=S[M],R=0;R<A.length;R++){var y=A[R],k=w(y,T);T=k[0],k.length!=2&&(k[2]?(A.splice(R+1,1,k[1],k[2]),R++):k[1]||(A.splice(R,1),R--))}A.length||S.splice(M,1)}return S}function x(S,T){for(var M=0;M<T.length;M++)for(var A=T[M],R=0;R<A.length;R++)$(S,A[R])}r.UndoManager=s}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(t,r,i){var s=t("../lib/dom"),d=function(f,l){this.element=f,this.canvasHeight=l||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(f){s.translate(this.element,0,-(f.firstRowScreen*f.lineHeight%this.canvasHeight)-f.offset*this.$offsetCoefficient)},this.pageChanged=function(f,l){return Math.floor(f.firstRowScreen*f.lineHeight/this.canvasHeight)!==Math.floor(l.firstRowScreen*l.lineHeight/this.canvasHeight)},this.computeLineTop=function(f,l,m){var a=l.firstRowScreen*l.lineHeight,o=Math.floor(a/this.canvasHeight),u=m.documentToScreenRow(f,0)*l.lineHeight;return u-o*this.canvasHeight},this.computeLineHeight=function(f,l,m){return l.lineHeight*m.getRowLineCount(f)},this.getLength=function(){return this.cells.length},this.get=function(f){return this.cells[f]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(f){if(Array.isArray(f)){this.cells.push.apply(this.cells,f);for(var l=s.createFragment(this.element),m=0;m<f.length;m++)l.appendChild(f[m].element);this.element.appendChild(l)}else this.cells.push(f),this.element.appendChild(f.element)},this.unshift=function(f){if(Array.isArray(f)){this.cells.unshift.apply(this.cells,f);for(var l=s.createFragment(this.element),m=0;m<f.length;m++)l.appendChild(f[m].element);this.element.firstChild?this.element.insertBefore(l,this.element.firstChild):this.element.appendChild(l)}else this.cells.unshift(f),this.element.insertAdjacentElement("afterbegin",f.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(f){f&&(f.element.remove(),this.cellCache.push(f))},this.createCell=function(f,l,m,a){var o=this.cellCache.pop();if(!o){var u=s.createElement("div");a&&a(u),this.element.appendChild(u),o={element:u,text:"",row:f}}return o.row=f,o}}).call(d.prototype),r.Lines=d}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],function(t,r,i){var s=t("../lib/dom"),d=t("../lib/oop"),f=t("../lib/lang"),l=t("../lib/event_emitter").EventEmitter,m=t("./lines").Lines,a=function(u){this.element=s.createElement("div"),this.element.className="ace_layer ace_gutter-layer",u.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new m(this.element),this.$lines.$offsetCoefficient=1};(function(){d.implement(this,l),this.setSession=function(u){this.session&&this.session.off("change",this.$updateAnnotations),this.session=u,u&&u.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(u,p){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(u,p)},this.removeGutterDecoration=function(u,p){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(u,p)},this.setAnnotations=function(u){this.$annotations=[];for(var p=0;p<u.length;p++){var v=u[p],w=v.row,b=this.$annotations[w];b||(b=this.$annotations[w]={text:[]});var _=v.text;_=_?f.escapeHTML(_):v.html||"",b.text.indexOf(_)===-1&&b.text.push(_);var E=v.type,$=v.className;$?b.className=$:E=="error"?b.className=" ace_error":E=="warning"&&b.className!=" ace_error"?b.className=" ace_warning":E=="info"&&!b.className&&(b.className=" ace_info")}},this.$updateAnnotations=function(u){if(this.$annotations.length){var p=u.start.row,v=u.end.row-p;if(v!==0)if(u.action=="remove")this.$annotations.splice(p,v+1,null);else{var w=new Array(v+1);w.unshift(p,1),this.$annotations.splice.apply(this.$annotations,w)}}},this.update=function(u){this.config=u;var p=this.session,v=u.firstRow,w=Math.min(u.lastRow+u.gutterOffset,p.getLength()-1);this.oldLastRow=w,this.config=u,this.$lines.moveContainer(u),this.$updateCursorRow();for(var b=p.getNextFoldLine(v),_=b?b.start.row:1/0,E=null,$=-1,x=v;;){if(x>_&&(x=b.end.row+1,b=p.getNextFoldLine(x,b),_=b?b.start.row:1/0),x>w){for(;this.$lines.getLength()>$+1;)this.$lines.pop();break}E=this.$lines.get(++$),E?E.row=x:(E=this.$lines.createCell(x,u,this.session,o),this.$lines.push(E)),this.$renderCell(E,u,b,x),x++}this._signal("afterRender"),this.$updateGutterWidth(u)},this.$updateGutterWidth=function(u){var p=this.session,v=p.gutterRenderer||this.$renderer,w=p.$firstLineNumber,b=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||p.$useWrapMode)&&(b=p.getLength()+w-1);var _=v?v.getWidth(p,b,u):b.toString().length*u.characterWidth,E=this.$padding||this.$computePadding();_+=E.left+E.right,_!==this.gutterWidth&&!isNaN(_)&&(this.gutterWidth=_,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",_))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var u=this.session.selection.getCursor();this.$cursorRow!==u.row&&(this.$cursorRow=u.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var u=this.session.selection.cursor.row;if(this.$cursorRow=u,!(this.$cursorCell&&this.$cursorCell.row==u)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var p=this.$lines.cells;this.$cursorCell=null;for(var v=0;v<p.length;v++){var w=p[v];if(w.row>=this.$cursorRow){if(w.row>this.$cursorRow){var b=this.session.getFoldLine(this.$cursorRow);if(v>0&&b&&b.start.row==p[v-1].row)w=p[v-1];else break}w.element.className="ace_gutter-active-line "+w.element.className,this.$cursorCell=w;break}}}}},this.scrollLines=function(u){var p=this.config;if(this.config=u,this.$updateCursorRow(),this.$lines.pageChanged(p,u))return this.update(u);this.$lines.moveContainer(u);var v=Math.min(u.lastRow+u.gutterOffset,this.session.getLength()-1),w=this.oldLastRow;if(this.oldLastRow=v,!p||w<u.firstRow)return this.update(u);if(v<p.firstRow)return this.update(u);if(p.firstRow<u.firstRow)for(var b=this.session.getFoldedRowCount(p.firstRow,u.firstRow-1);b>0;b--)this.$lines.shift();if(w>v)for(var b=this.session.getFoldedRowCount(v+1,w);b>0;b--)this.$lines.pop();u.firstRow<p.firstRow&&this.$lines.unshift(this.$renderLines(u,u.firstRow,p.firstRow-1)),v>w&&this.$lines.push(this.$renderLines(u,w+1,v)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(u)},this.$renderLines=function(u,p,v){for(var w=[],b=p,_=this.session.getNextFoldLine(b),E=_?_.start.row:1/0;b>E&&(b=_.end.row+1,_=this.session.getNextFoldLine(b,_),E=_?_.start.row:1/0),!(b>v);){var $=this.$lines.createCell(b,u,this.session,o);this.$renderCell($,u,_,b),w.push($),b++}return w},this.$renderCell=function(u,p,v,w){var b=u.element,_=this.session,E=b.childNodes[0],$=b.childNodes[1],x=_.$firstLineNumber,S=_.$breakpoints,T=_.$decorations,M=_.gutterRenderer||this.$renderer,A=this.$showFoldWidgets&&_.foldWidgets,R=v?v.start.row:Number.MAX_VALUE,y="ace_gutter-cell ";if(this.$highlightGutterLine&&(w==this.$cursorRow||v&&w<this.$cursorRow&&w>=R&&this.$cursorRow<=v.end.row)&&(y+="ace_gutter-active-line ",this.$cursorCell!=u&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=u)),S[w]&&(y+=S[w]),T[w]&&(y+=T[w]),this.$annotations[w]&&(y+=this.$annotations[w].className),b.className!=y&&(b.className=y),A){var k=A[w];k==null&&(k=A[w]=_.getFoldWidget(w))}if(k){var y="ace_fold-widget ace_"+k;k=="start"&&w==R&&w<v.end.row?y+=" ace_closed":y+=" ace_open",$.className!=y&&($.className=y);var O=p.lineHeight+"px";s.setStyle($.style,"height",O),s.setStyle($.style,"display","inline-block")}else $&&s.setStyle($.style,"display","none");var N=(M?M.getText(_,w):w+x).toString();return N!==E.data&&(E.data=N),s.setStyle(u.element.style,"height",this.$lines.computeLineHeight(w,p,_)+"px"),s.setStyle(u.element.style,"top",this.$lines.computeLineTop(w,p,_)+"px"),u.text=N,u},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(u){this.$highlightGutterLine=u},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(u){this.$renderer=!u&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(u){u?s.addCssClass(this.element,"ace_folding-enabled"):s.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=u,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var u=s.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(u.borderLeftWidth)||0)+(parseInt(u.paddingLeft)||0)+1,this.$padding.right=(parseInt(u.borderRightWidth)||0)+(parseInt(u.paddingRight)||0),this.$padding},this.getRegion=function(u){var p=this.$padding||this.$computePadding(),v=this.element.getBoundingClientRect();if(u.x<p.left+v.left)return"markers";if(this.$showFoldWidgets&&u.x>v.right-p.right)return"foldWidgets"}}).call(a.prototype);function o(u){var p=document.createTextNode("");u.appendChild(p);var v=s.createElement("span");return u.appendChild(v),u}r.Gutter=a}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(t,r,i){var s=t("../range").Range,d=t("../lib/dom"),f=function(l){this.element=d.createElement("div"),this.element.className="ace_layer ace_marker-layer",l.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(m){this.$padding=m},this.setSession=function(m){this.session=m},this.setMarkers=function(m){this.markers=m},this.elt=function(m,a){var o=this.i!=-1&&this.element.childNodes[this.i];o?this.i++:(o=document.createElement("div"),this.element.appendChild(o),this.i=-1),o.style.cssText=a,o.className=m},this.update=function(m){if(m){this.config=m,this.i=0;var a;for(var o in this.markers){var u=this.markers[o];if(!u.range){u.update(a,this,this.session,m);continue}var p=u.range.clipRows(m.firstRow,m.lastRow);if(!p.isEmpty())if(p=p.toScreenRange(this.session),u.renderer){var v=this.$getTop(p.start.row,m),w=this.$padding+p.start.column*m.characterWidth;u.renderer(a,p,w,v,m)}else u.type=="fullLine"?this.drawFullLineMarker(a,p,u.clazz,m):u.type=="screenLine"?this.drawScreenLineMarker(a,p,u.clazz,m):p.isMultiLine()?u.type=="text"?this.drawTextMarker(a,p,u.clazz,m):this.drawMultiLineMarker(a,p,u.clazz,m):this.drawSingleLineMarker(a,p,u.clazz+" ace_start ace_br15",m)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(m,a){return(m-a.firstRowScreen)*a.lineHeight};function l(m,a,o,u){return(m?1:0)|(a?2:0)|(o?4:0)|(u?8:0)}this.drawTextMarker=function(m,a,o,u,p){for(var v=this.session,w=a.start.row,b=a.end.row,_=w,E=0,$=0,x=v.getScreenLastRowColumn(_),S=new s(_,a.start.column,_,$);_<=b;_++)S.start.row=S.end.row=_,S.start.column=_==w?a.start.column:v.getRowWrapIndent(_),S.end.column=x,E=$,$=x,x=_+1<b?v.getScreenLastRowColumn(_+1):_==b?0:a.end.column,this.drawSingleLineMarker(m,S,o+(_==w?" ace_start":"")+" ace_br"+l(_==w||_==w+1&&a.start.column,E<$,$>x,_==b),u,_==b?0:1,p)},this.drawMultiLineMarker=function(m,a,o,u,p){var v=this.$padding,w=u.lineHeight,b=this.$getTop(a.start.row,u),_=v+a.start.column*u.characterWidth;if(p=p||"",this.session.$bidiHandler.isBidiRow(a.start.row)){var E=a.clone();E.end.row=E.start.row,E.end.column=this.session.getLine(E.start.row).length,this.drawBidiSingleLineMarker(m,E,o+" ace_br1 ace_start",u,null,p)}else this.elt(o+" ace_br1 ace_start","height:"+w+"px;right:0;top:"+b+"px;left:"+_+"px;"+(p||""));if(this.session.$bidiHandler.isBidiRow(a.end.row)){var E=a.clone();E.start.row=E.end.row,E.start.column=0,this.drawBidiSingleLineMarker(m,E,o+" ace_br12",u,null,p)}else{b=this.$getTop(a.end.row,u);var $=a.end.column*u.characterWidth;this.elt(o+" ace_br12","height:"+w+"px;width:"+$+"px;top:"+b+"px;left:"+v+"px;"+(p||""))}if(w=(a.end.row-a.start.row-1)*u.lineHeight,!(w<=0)){b=this.$getTop(a.start.row+1,u);var x=(a.start.column?1:0)|(a.end.column?0:8);this.elt(o+(x?" ace_br"+x:""),"height:"+w+"px;right:0;top:"+b+"px;left:"+v+"px;"+(p||""))}},this.drawSingleLineMarker=function(m,a,o,u,p,v){if(this.session.$bidiHandler.isBidiRow(a.start.row))return this.drawBidiSingleLineMarker(m,a,o,u,p,v);var w=u.lineHeight,b=(a.end.column+(p||0)-a.start.column)*u.characterWidth,_=this.$getTop(a.start.row,u),E=this.$padding+a.start.column*u.characterWidth;this.elt(o,"height:"+w+"px;width:"+b+"px;top:"+_+"px;left:"+E+"px;"+(v||""))},this.drawBidiSingleLineMarker=function(m,a,o,u,p,v){var w=u.lineHeight,b=this.$getTop(a.start.row,u),_=this.$padding,E=this.session.$bidiHandler.getSelections(a.start.column,a.end.column);E.forEach(function($){this.elt(o,"height:"+w+"px;width:"+($.width+(p||0))+"px;top:"+b+"px;left:"+(_+$.left)+"px;"+(v||""))},this)},this.drawFullLineMarker=function(m,a,o,u,p){var v=this.$getTop(a.start.row,u),w=u.lineHeight;a.start.row!=a.end.row&&(w+=this.$getTop(a.end.row,u)-v),this.elt(o,"height:"+w+"px;top:"+v+"px;left:0;right:0;"+(p||""))},this.drawScreenLineMarker=function(m,a,o,u,p){var v=this.$getTop(a.start.row,u),w=u.lineHeight;this.elt(o,"height:"+w+"px;top:"+v+"px;left:0;right:0;"+(p||""))}}).call(f.prototype),r.Marker=f}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(t,r,i){var s=t("../lib/oop"),d=t("../lib/dom"),f=t("../lib/lang"),l=t("./lines").Lines,m=t("../lib/event_emitter").EventEmitter,a=function(o){this.dom=d,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new l(this.element)};(function(){s.implement(this,m),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var o=this.session.doc,u=o.getNewLineCharacter()==`
|
|
236
|
-
`&&o.getNewLineMode()!="windows",p=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=p)return this.EOL_CHAR=p,!0},this.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",function(u){this._signal("changeCharacterSize",u)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(o){this.session=o,o&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},this.$highlightIndentGuides=!0,this.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var u=this.$tabStrings=[0],p=1;p<o+1;p++)if(this.showTabs){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_tab",v.textContent=f.stringRepeat(this.TAB_CHAR,p),u.push(v)}else u.push(this.dom.createTextNode(f.stringRepeat(" ",p),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var w="ace_indent-guide",b=this.showSpaces?" ace_invisible ace_invisible_space":"",_=this.showSpaces?f.stringRepeat(this.SPACE_CHAR,this.tabSize):f.stringRepeat(" ",this.tabSize),E=this.showTabs?" ace_invisible ace_invisible_tab":"",$=this.showTabs?f.stringRepeat(this.TAB_CHAR,this.tabSize):_,v=this.dom.createElement("span");v.className=w+b,v.textContent=_,this.$tabStrings[" "]=v;var v=this.dom.createElement("span");v.className=w+E,v.textContent=$,this.$tabStrings[" "]=v}},this.updateLines=function(o,u,p){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var v=Math.max(u,o.firstRow),w=Math.min(p,o.lastRow),b=this.element.childNodes,_=0,$=o.firstRow;$<v;$++){var x=this.session.getFoldLine($);if(x)if(x.containsRow(v)){v=x.start.row;break}else $=x.end.row;_++}for(var E=!1,$=v,x=this.session.getNextFoldLine($),S=x?x.start.row:1/0;$>S&&($=x.end.row+1,x=this.session.getNextFoldLine($,x),S=x?x.start.row:1/0),!($>w);){var T=b[_++];if(T){this.dom.removeChildren(T),this.$renderLine(T,$,$==S?x:!1),E&&(T.style.top=this.$lines.computeLineTop($,o,this.session)+"px");var M=o.lineHeight*this.session.getRowLength($)+"px";T.style.height!=M&&(E=!0,T.style.height=M)}$++}if(E)for(;_<this.$lines.cells.length;){var A=this.$lines.cells[_++];A.element.style.top=this.$lines.computeLineTop(A.row,o,this.session)+"px"}},this.scrollLines=function(o){var u=this.config;if(this.config=o,this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var p=o.lastRow,v=u?u.lastRow:-1;if(!u||v<o.firstRow)return this.update(o);if(p<u.firstRow)return this.update(o);if(!u||u.lastRow<o.firstRow)return this.update(o);if(o.lastRow<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var w=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);w>0;w--)this.$lines.shift();if(u.lastRow>o.lastRow)for(var w=this.session.getFoldedRowCount(o.lastRow+1,u.lastRow);w>0;w--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,u.firstRow-1)),o.lastRow>u.lastRow&&this.$lines.push(this.$renderLinesFragment(o,u.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},this.$renderLinesFragment=function(o,u,p){for(var v=[],w=u,b=this.session.getNextFoldLine(w),_=b?b.start.row:1/0;w>_&&(w=b.end.row+1,b=this.session.getNextFoldLine(w,b),_=b?b.start.row:1/0),!(w>p);){var E=this.$lines.createCell(w,o,this.session),$=E.element;this.dom.removeChildren($),d.setStyle($.style,"height",this.$lines.computeLineHeight(w,o,this.session)+"px"),d.setStyle($.style,"top",this.$lines.computeLineTop(w,o,this.session)+"px"),this.$renderLine($,w,w==_?b:!1),this.$useLineGroups()?$.className="ace_line_group":$.className="ace_line",v.push(E),w++}return v},this.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var u=o.firstRow,p=o.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(o,u,p))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(o,u,p,v){for(var w=this,b=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,_=this.dom.createFragment(this.element),E,$=0;E=b.exec(v);){var x=E[1],S=E[2],T=E[3],M=E[4],A=E[5];if(!(!w.showSpaces&&S)){var R=$!=E.index?v.slice($,E.index):"";if($=E.index+E[0].length,R&&_.appendChild(this.dom.createTextNode(R,this.element)),x){var y=w.session.getScreenTabSize(u+E.index);_.appendChild(w.$tabStrings[y].cloneNode(!0)),u+=y-1}else if(S)if(w.showSpaces){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space",k.textContent=f.stringRepeat(w.SPACE_CHAR,S.length),_.appendChild(k)}else _.appendChild(this.com.createTextNode(S,this.element));else if(T){var k=this.dom.createElement("span");k.className="ace_invisible ace_invisible_space ace_invalid",k.textContent=f.stringRepeat(w.SPACE_CHAR,T.length),_.appendChild(k)}else if(M){u+=1;var k=this.dom.createElement("span");k.style.width=w.config.characterWidth*2+"px",k.className=w.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",k.textContent=w.showSpaces?w.SPACE_CHAR:M,_.appendChild(k)}else if(A){u+=1;var k=this.dom.createElement("span");k.style.width=w.config.characterWidth*2+"px",k.className="ace_cjk",k.textContent=A,_.appendChild(k)}}}if(_.appendChild(this.dom.createTextNode($?v.slice($):v,this.element)),this.$textToken[p.type])o.appendChild(_);else{var O="ace_"+p.type.replace(/\./g," ace_"),k=this.dom.createElement("span");p.type=="fold"&&(k.style.width=p.value.length*this.config.characterWidth+"px"),k.className=O,k.appendChild(_),o.appendChild(k)}return u+v.length},this.renderIndentGuide=function(o,u,p){var v=u.search(this.$indentGuideRe);if(v<=0||v>=p)return u;if(u[0]==" "){v-=v%this.tabSize;for(var w=v/this.tabSize,b=0;b<w;b++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(v)}else if(u[0]==" "){for(var b=0;b<v;b++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(v)}return this.$highlightIndentGuide(),u},this.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var u=this.session.selection.getCursor(),p=/^\s*/.exec(this.session.doc.getLine(u.row))[0].length,v=Math.floor(p/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:v,start:u.row};var w=this.session.$bracketHighlight;if(w){for(var b=this.session.$bracketHighlight.ranges,_=0;_<b.length;_++)if(u.row!==b[_].start.row){this.$highlightIndentGuideMarker.end=b[_].start.row,u.row>b[_].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[u.row]!==""&&u.column===o[u.row].length){this.$highlightIndentGuideMarker.dir=1;for(var _=u.row+1;_<o.length;_++){var E=o[_],$=/^\s*/.exec(E)[0].length;if(E!==""&&(this.$highlightIndentGuideMarker.end=_,$<=p))break}}this.$renderHighlightIndentGuide()}}},this.$clearActiveIndentGuide=function(){for(var o=this.$lines.cells,u=0;u<o.length;u++){var p=o[u],v=p.element.childNodes;if(v.length>0){for(var w=0;w<v.length;w++)if(v[w].classList&&v[w].classList.contains("ace_indent-guide-active")){v[w].classList.remove("ace_indent-guide-active");break}}}},this.$setIndentGuideActive=function(o,u){var p=this.session.doc.getLine(o.row);if(p!==""){var v=o.element.childNodes;if(v){var w=v[u-1];w&&w.classList&&w.classList.contains("ace_indent-guide")&&w.classList.add("ace_indent-guide-active")}}},this.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var u=this.$highlightIndentGuideMarker.indentLevel;if(u!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var p=0;p<o.length;p++){var v=o[p];if(this.$highlightIndentGuideMarker.end&&v.row>=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,u)}}else for(var p=o.length-1;p>=0;p--){var v=o[p];if(this.$highlightIndentGuideMarker.end&&v.row<this.$highlightIndentGuideMarker.start){if(v.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,u)}}}},this.$createLineElement=function(o){var u=this.dom.createElement("div");return u.className="ace_line",u.style.height=this.config.lineHeight+"px",u},this.$renderWrappedLine=function(o,u,p){var v=0,w=0,b=p[0],_=0,E=this.$createLineElement();o.appendChild(E);for(var $=0;$<u.length;$++){var x=u[$],S=x.value;if($==0&&this.displayIndentGuides){if(v=S.length,S=this.renderIndentGuide(E,S,b),!S)continue;v-=S.length}if(v+S.length<b)_=this.$renderToken(E,_,x,S),v+=S.length;else{for(;v+S.length>=b;)_=this.$renderToken(E,_,x,S.substring(0,b-v)),S=S.substring(b-v),v=b,E=this.$createLineElement(),o.appendChild(E),E.appendChild(this.dom.createTextNode(f.stringRepeat(" ",p.indent),this.element)),w++,_=0,b=p[w]||Number.MAX_VALUE;S.length!=0&&(v+=S.length,_=this.$renderToken(E,_,x,S))}}p[p.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(E,_,null,"",!0)},this.$renderSimpleLine=function(o,u){for(var p=0,v=0;v<u.length;v++){var w=u[v],b=w.value;if(!(v==0&&this.displayIndentGuides&&(b=this.renderIndentGuide(o,b),!b))){if(p+b.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,p,w,b);p=this.$renderToken(o,p,w,b)}}},this.$renderOverflowMessage=function(o,u,p,v,w){p&&this.$renderToken(o,u,p,v.slice(0,this.MAX_LINE_LENGTH-u));var b=this.dom.createElement("span");b.className="ace_inline_button ace_keyword ace_toggle_wrap",b.textContent=w?"<hide>":"<click to see more...>",o.appendChild(b)},this.$renderLine=function(o,u,p){if(!p&&p!=!1&&(p=this.session.getFoldLine(u)),p)var v=this.$getFoldLineTokens(u,p);else var v=this.session.getTokens(u);var w=o;if(v.length){var b=this.session.getRowSplitData(u);if(b&&b.length){this.$renderWrappedLine(o,v,b);var w=o.lastChild}else{var w=o;this.$useLineGroups()&&(w=this.$createLineElement(),o.appendChild(w)),this.$renderSimpleLine(w,v)}}else this.$useLineGroups()&&(w=this.$createLineElement(),o.appendChild(w));if(this.showEOL&&w){p&&(u=p.end.row);var _=this.dom.createElement("span");_.className="ace_invisible ace_invisible_eol",_.textContent=u==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,w.appendChild(_)}},this.$getFoldLineTokens=function(o,u){var p=this.session,v=[];function w(_,E,$){for(var x=0,S=0;S+_[x].value.length<E;)if(S+=_[x].value.length,x++,x==_.length)return;if(S!=E){var T=_[x].value.substring(E-S);T.length>$-E&&(T=T.substring(0,$-E)),v.push({type:_[x].type,value:T}),S=E+T.length,x+=1}for(;S<$&&x<_.length;){var T=_[x].value;T.length+S>$?v.push({type:_[x].type,value:T.substring(0,$-S)}):v.push(_[x]),S+=T.length,x+=1}}var b=p.getTokens(o);return u.walk(function(_,E,$,x,S){_!=null?v.push({type:"fold",value:_}):(S&&(b=p.getTokens(E)),b.length&&w(b,x,$))},u.end.row,this.session.getLine(u.end.row).length),v},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(a.prototype),r.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(t,r,i){var s=t("../lib/dom"),d=function(f){this.element=s.createElement("div"),this.element.className="ace_layer ace_cursor-layer",f.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),s.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(f){for(var l=this.cursors,m=l.length;m--;)s.setStyle(l[m].style,"opacity",f?"":"0")},this.$startCssAnimation=function(){for(var f=this.cursors,l=f.length;l--;)f[l].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&s.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,s.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(f){this.$padding=f},this.setSession=function(f){this.session=f},this.setBlinking=function(f){f!=this.isBlinking&&(this.isBlinking=f,this.restartTimer())},this.setBlinkInterval=function(f){f!=this.blinkInterval&&(this.blinkInterval=f,this.restartTimer())},this.setSmoothBlinking=function(f){f!=this.smoothBlinking&&(this.smoothBlinking=f,s.setCssClass(this.element,"ace_smooth-blinking",f),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var f=s.createElement("div");return f.className="ace_cursor",this.element.appendChild(f),this.cursors.push(f),f},this.removeCursor=function(){if(this.cursors.length>1){var f=this.cursors.pop();return f.parentNode.removeChild(f),f}},this.hideCursor=function(){this.isVisible=!1,s.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,s.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var f=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,s.removeCssClass(this.element,"ace_smooth-blinking")),f(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&s.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),s.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var l=function(){this.timeoutId=setTimeout(function(){f(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){f(!0),l()},this.blinkInterval),l()}},this.getPixelPosition=function(f,l){if(!this.config||!this.session)return{left:0,top:0};f||(f=this.session.selection.getCursor());var m=this.session.documentToScreenPosition(f),a=this.$padding+(this.session.$bidiHandler.isBidiRow(m.row,f.row)?this.session.$bidiHandler.getPosLeft(m.column):m.column*this.config.characterWidth),o=(m.row-(l?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:a,top:o}},this.isCursorInView=function(f,l){return f.top>=0&&f.top<l.maxHeight},this.update=function(f){this.config=f;var l=this.session.$selectionMarkers,m=0,a=0;(l===void 0||l.length===0)&&(l=[{cursor:null}]);for(var m=0,o=l.length;m<o;m++){var u=this.getPixelPosition(l[m].cursor,!0);if(!((u.top>f.height+f.offset||u.top<0)&&m>1)){var p=this.cursors[a++]||this.addCursor(),v=p.style;this.drawCursor?this.drawCursor(p,u,f,l[m],this.session):this.isCursorInView(u,f)?(s.setStyle(v,"display","block"),s.translate(p,u.left,u.top),s.setStyle(v,"width",Math.round(f.characterWidth)+"px"),s.setStyle(v,"height",f.lineHeight+"px")):s.setStyle(v,"display","none")}}for(;this.cursors.length>a;)this.removeCursor();var w=this.session.getOverwrite();this.$setOverwrite(w),this.$pixelPos=u,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(f){f!=this.overwrite&&(this.overwrite=f,f?s.addCssClass(this.element,"ace_overwrite-cursors"):s.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(d.prototype),r.Cursor=d}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,r,i){var s=t("./lib/oop"),d=t("./lib/dom"),f=t("./lib/event"),l=t("./lib/event_emitter").EventEmitter,m=32768,a=function(p){this.element=d.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=d.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),p.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,f.addListener(this.element,"scroll",this.onScroll.bind(this)),f.addListener(this.element,"mousedown",f.preventDefault)};(function(){s.implement(this,l),this.setVisible=function(p){this.element.style.display=p?"":"none",this.isVisible=p,this.coeff=1}}).call(a.prototype);var o=function(p,v){a.call(this,p),this.scrollTop=0,this.scrollHeight=0,v.$scrollbarWidth=this.width=d.scrollbarWidth(p.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};s.inherits(o,a),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var p=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-p)/(this.coeff-p)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(p){this.element.style.height=p+"px"},this.setInnerHeight=this.setScrollHeight=function(p){this.scrollHeight=p,p>m?(this.coeff=m/p,p=m):this.coeff!=1&&(this.coeff=1),this.inner.style.height=p+"px"},this.setScrollTop=function(p){this.scrollTop!=p&&(this.skipEvent=!0,this.scrollTop=p,this.element.scrollTop=p*this.coeff)}}.call(o.prototype);var u=function(p,v){a.call(this,p),this.scrollLeft=0,this.height=v.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};s.inherits(u,a),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(p){this.element.style.width=p+"px"},this.setInnerWidth=function(p){this.inner.style.width=p+"px"},this.setScrollWidth=function(p){this.inner.style.width=p+"px"},this.setScrollLeft=function(p){this.scrollLeft!=p&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=p)}}.call(u.prototype),r.ScrollBar=o,r.ScrollBarV=o,r.ScrollBarH=u,r.VScrollBar=o,r.HScrollBar=u}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,r,i){var s=t("./lib/oop"),d=t("./lib/dom"),f=t("./lib/event"),l=t("./lib/event_emitter").EventEmitter;d.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
|
237
|
-
position: absolute;
|
|
238
|
-
background: rgba(128, 128, 128, 0.6);
|
|
239
|
-
-moz-box-sizing: border-box;
|
|
240
|
-
box-sizing: border-box;
|
|
241
|
-
border: 1px solid #bbb;
|
|
242
|
-
border-radius: 2px;
|
|
243
|
-
z-index: 8;
|
|
244
|
-
}
|
|
245
|
-
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
|
246
|
-
position: absolute;
|
|
247
|
-
z-index: 6;
|
|
248
|
-
background: none;
|
|
249
|
-
overflow: hidden!important;
|
|
250
|
-
}
|
|
251
|
-
.ace_editor>.ace_sb-v {
|
|
252
|
-
z-index: 6;
|
|
253
|
-
right: 0;
|
|
254
|
-
top: 0;
|
|
255
|
-
width: 12px;
|
|
256
|
-
}
|
|
257
|
-
.ace_editor>.ace_sb-v div {
|
|
258
|
-
z-index: 8;
|
|
259
|
-
right: 0;
|
|
260
|
-
width: 100%;
|
|
261
|
-
}
|
|
262
|
-
.ace_editor>.ace_sb-h {
|
|
263
|
-
bottom: 0;
|
|
264
|
-
left: 0;
|
|
265
|
-
height: 12px;
|
|
266
|
-
}
|
|
267
|
-
.ace_editor>.ace_sb-h div {
|
|
268
|
-
bottom: 0;
|
|
269
|
-
height: 100%;
|
|
270
|
-
}
|
|
271
|
-
.ace_editor>.ace_sb_grabbed {
|
|
272
|
-
z-index: 8;
|
|
273
|
-
background: #000;
|
|
274
|
-
}`,"ace_scrollbar.css",!1);var m=function(u){this.element=d.createElement("div"),this.element.className="ace_sb"+this.classSuffix,this.inner=d.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,f.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")};(function(){s.implement(this,l),this.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1}}).call(m.prototype);var a=function(u,p){m.call(this,u),this.scrollTop=0,this.scrollHeight=0,this.parent=u,this.width=this.VScrollWidth,this.renderer=p,this.inner.style.width=this.element.style.width=(this.width||15)+"px",this.$minWidth=0};s.inherits(a,m),function(){this.classSuffix="-v",s.implement(this,l),this.onMouseDown=function(u,p){if(u==="mousedown"&&!(f.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var v=this,w=p.clientY,b=function(M){w=M.clientY},_=function(){clearInterval(S)},E=p.clientY,$=this.thumbTop,x=function(){if(w!==void 0){var M=v.scrollTopFromThumbTop($+w-E);M!==v.scrollTop&&v._emit("scroll",{data:M})}};f.capture(this.inner,b,_);var S=setInterval(x,20);return f.preventDefault(p)}var T=p.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(T)}),f.preventDefault(p)}},this.getHeight=function(){return this.height},this.scrollTopFromThumbTop=function(u){var p=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return p=p>>0,p<0?p=0:p>this.pageHeight-this.viewHeight&&(p=this.pageHeight-this.viewHeight),p},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(u){this.height=Math.max(0,u),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},this.setInnerHeight=this.setScrollHeight=function(u,p){this.pageHeight===u&&!p||(this.pageHeight=u,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},this.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"}}.call(a.prototype);var o=function(u,p){m.call(this,u),this.scrollLeft=0,this.scrollWidth=0,this.height=this.HScrollHeight,this.inner.style.height=this.element.style.height=(this.height||12)+"px",this.renderer=p};s.inherits(o,m),function(){this.classSuffix="-h",s.implement(this,l),this.onMouseDown=function(u,p){if(u==="mousedown"&&!(f.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var v=this,w=p.clientX,b=function(M){w=M.clientX},_=function(){clearInterval(S)},E=p.clientX,$=this.thumbLeft,x=function(){if(w!==void 0){var M=v.scrollLeftFromThumbLeft($+w-E);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};f.capture(this.inner,b,_);var S=setInterval(x,20);return f.preventDefault(p)}var T=p.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(T)}),f.preventDefault(p)}},this.getHeight=function(){return this.isVisible?this.height:0},this.scrollLeftFromThumbLeft=function(u){var p=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return p=p>>0,p<0?p=0:p>this.pageWidth-this.viewWidth&&(p=this.pageWidth-this.viewWidth),p},this.setWidth=function(u){this.width=Math.max(0,u),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},this.setInnerWidth=this.setScrollWidth=function(u,p){this.pageWidth===u&&!p||(this.pageWidth=u,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},this.setScrollLeft=function(u){this.scrollLeft=u,u<0&&(u=0),this.thumbLeft=u*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"}}.call(o.prototype),r.ScrollBar=a,r.ScrollBarV=a,r.ScrollBarH=o,r.VScrollBar=a,r.HScrollBar=o}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(t,r,i){var s=t("./lib/event"),d=function(f,l){this.onRender=f,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=l||window;var m=this;this._flush=function(a){m.pending=!1;var o=m.changes;if(o&&(s.blockIdle(100),m.changes=0,m.onRender(o)),m.changes){if(m.$recursionLimit--<0)return;m.schedule()}else m.$recursionLimit=2}};(function(){this.schedule=function(f){this.changes=this.changes|f,this.changes&&!this.pending&&(s.nextFrame(this._flush),this.pending=!0)},this.clear=function(f){var l=this.changes;return this.changes=0,l}}).call(d.prototype),r.RenderLoop=d}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(t,r,i){var s=t("../lib/oop"),d=t("../lib/dom"),f=t("../lib/lang"),l=t("../lib/event"),m=t("../lib/useragent"),a=t("../lib/event_emitter").EventEmitter,o=512,u=typeof ResizeObserver=="function",p=200,v=r.FontMetrics=function(w){this.el=d.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=d.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=d.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),w.appendChild(this.el),this.$measureNode.textContent=f.stringRepeat("X",o),this.$characterSize={width:0,height:0},u?this.$addObserver():this.checkForSizeChanges()};(function(){s.implement(this,a),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(w,b){w.width=w.height="auto",w.left=w.top="0px",w.visibility="hidden",w.position="absolute",w.whiteSpace="pre",m.isIE<8?w["font-family"]="inherit":w.font="inherit",w.overflow=b?"hidden":"visible"},this.checkForSizeChanges=function(w){if(w===void 0&&(w=this.$measureSizes()),w&&(this.$characterSize.width!==w.width||this.$characterSize.height!==w.height)){this.$measureNode.style.fontWeight="bold";var b=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=w,this.charSizes=Object.create(null),this.allowBoldFonts=b&&b.width===w.width&&b.height===w.height,this._emit("changeCharacterSize",{data:w})}},this.$addObserver=function(){var w=this;this.$observer=new window.ResizeObserver(function(b){w.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var w=this;return this.$pollSizeChangesTimer=l.onIdle(function b(){w.checkForSizeChanges(),l.onIdle(b,500)},500)},this.setPolling=function(w){w?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(w){var b={height:(w||this.$measureNode).clientHeight,width:(w||this.$measureNode).clientWidth/o};return b.width===0||b.height===0?null:b},this.$measureCharWidth=function(w){this.$main.textContent=f.stringRepeat(w,o);var b=this.$main.getBoundingClientRect();return b.width/o},this.getCharacterWidth=function(w){var b=this.charSizes[w];return b===void 0&&(b=this.charSizes[w]=this.$measureCharWidth(w)/this.$characterSize.width),b},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function w(b){return!b||!b.parentElement?1:(window.getComputedStyle(b).zoom||1)*w(b.parentElement)},this.$initTransformMeasureNodes=function(){var w=function(b,_){return["div",{style:"position: absolute;top:"+b+"px;left:"+_+"px;"}]};this.els=d.buildDom([w(0,0),w(p,0),w(0,p),w(p,p)],this.el)},this.transformCoordinates=function(w,b){if(w){var _=this.$getZoom(this.el);w=S(1/_,w)}function E(J,q,re){var ie=J[1]*q[0]-J[0]*q[1];return[(-q[1]*re[0]+q[0]*re[1])/ie,(+J[1]*re[0]-J[0]*re[1])/ie]}function $(J,q){return[J[0]-q[0],J[1]-q[1]]}function x(J,q){return[J[0]+q[0],J[1]+q[1]]}function S(J,q){return[J*q[0],J*q[1]]}this.els||this.$initTransformMeasureNodes();function T(J){var q=J.getBoundingClientRect();return[q.left,q.top]}var M=T(this.els[0]),A=T(this.els[1]),R=T(this.els[2]),y=T(this.els[3]),k=E($(y,A),$(y,R),$(x(A,R),x(y,M))),O=S(1+k[0],$(A,M)),N=S(1+k[1],$(R,M));if(b){var I=b,P=k[0]*I[0]/p+k[1]*I[1]/p+1,B=x(S(I[0],O),S(I[1],N));return x(S(1/P/p,B),M)}var z=$(w,M),j=E($(O,S(k[0],z)),$(N,S(k[1],z)),z);return S(p,j)}}).call(v.prototype)}),ace.define("ace/css/editor.css",["require","exports","module"],function(t,r,i){i.exports=`
|
|
275
|
-
.ace_br1 {border-top-left-radius : 3px;}
|
|
276
|
-
.ace_br2 {border-top-right-radius : 3px;}
|
|
277
|
-
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
|
278
|
-
.ace_br4 {border-bottom-right-radius: 3px;}
|
|
279
|
-
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
|
280
|
-
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
|
281
|
-
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
|
282
|
-
.ace_br8 {border-bottom-left-radius : 3px;}
|
|
283
|
-
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
|
284
|
-
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
|
285
|
-
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
286
|
-
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
287
|
-
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
288
|
-
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
289
|
-
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
.ace_editor {
|
|
293
|
-
position: relative;
|
|
294
|
-
overflow: hidden;
|
|
295
|
-
padding: 0;
|
|
296
|
-
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
|
|
297
|
-
direction: ltr;
|
|
298
|
-
text-align: left;
|
|
299
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.ace_scroller {
|
|
303
|
-
position: absolute;
|
|
304
|
-
overflow: hidden;
|
|
305
|
-
top: 0;
|
|
306
|
-
bottom: 0;
|
|
307
|
-
background-color: inherit;
|
|
308
|
-
-ms-user-select: none;
|
|
309
|
-
-moz-user-select: none;
|
|
310
|
-
-webkit-user-select: none;
|
|
311
|
-
user-select: none;
|
|
312
|
-
cursor: text;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.ace_content {
|
|
316
|
-
position: absolute;
|
|
317
|
-
box-sizing: border-box;
|
|
318
|
-
min-width: 100%;
|
|
319
|
-
contain: style size layout;
|
|
320
|
-
font-variant-ligatures: no-common-ligatures;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.ace_dragging .ace_scroller:before{
|
|
324
|
-
position: absolute;
|
|
325
|
-
top: 0;
|
|
326
|
-
left: 0;
|
|
327
|
-
right: 0;
|
|
328
|
-
bottom: 0;
|
|
329
|
-
content: '';
|
|
330
|
-
background: rgba(250, 250, 250, 0.01);
|
|
331
|
-
z-index: 1000;
|
|
332
|
-
}
|
|
333
|
-
.ace_dragging.ace_dark .ace_scroller:before{
|
|
334
|
-
background: rgba(0, 0, 0, 0.01);
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
.ace_gutter {
|
|
338
|
-
position: absolute;
|
|
339
|
-
overflow : hidden;
|
|
340
|
-
width: auto;
|
|
341
|
-
top: 0;
|
|
342
|
-
bottom: 0;
|
|
343
|
-
left: 0;
|
|
344
|
-
cursor: default;
|
|
345
|
-
z-index: 4;
|
|
346
|
-
-ms-user-select: none;
|
|
347
|
-
-moz-user-select: none;
|
|
348
|
-
-webkit-user-select: none;
|
|
349
|
-
user-select: none;
|
|
350
|
-
contain: style size layout;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.ace_gutter-active-line {
|
|
354
|
-
position: absolute;
|
|
355
|
-
left: 0;
|
|
356
|
-
right: 0;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.ace_scroller.ace_scroll-left:after {
|
|
360
|
-
content: "";
|
|
361
|
-
position: absolute;
|
|
362
|
-
top: 0;
|
|
363
|
-
right: 0;
|
|
364
|
-
bottom: 0;
|
|
365
|
-
left: 0;
|
|
366
|
-
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
|
367
|
-
pointer-events: none;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.ace_gutter-cell {
|
|
371
|
-
position: absolute;
|
|
372
|
-
top: 0;
|
|
373
|
-
left: 0;
|
|
374
|
-
right: 0;
|
|
375
|
-
padding-left: 19px;
|
|
376
|
-
padding-right: 6px;
|
|
377
|
-
background-repeat: no-repeat;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
.ace_gutter-cell.ace_error {
|
|
381
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
|
382
|
-
background-repeat: no-repeat;
|
|
383
|
-
background-position: 2px center;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.ace_gutter-cell.ace_warning {
|
|
387
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
|
388
|
-
background-position: 2px center;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.ace_gutter-cell.ace_info {
|
|
392
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
|
393
|
-
background-position: 2px center;
|
|
394
|
-
}
|
|
395
|
-
.ace_dark .ace_gutter-cell.ace_info {
|
|
396
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.ace_scrollbar {
|
|
400
|
-
contain: strict;
|
|
401
|
-
position: absolute;
|
|
402
|
-
right: 0;
|
|
403
|
-
bottom: 0;
|
|
404
|
-
z-index: 6;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
.ace_scrollbar-inner {
|
|
408
|
-
position: absolute;
|
|
409
|
-
cursor: text;
|
|
410
|
-
left: 0;
|
|
411
|
-
top: 0;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.ace_scrollbar-v{
|
|
415
|
-
overflow-x: hidden;
|
|
416
|
-
overflow-y: scroll;
|
|
417
|
-
top: 0;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.ace_scrollbar-h {
|
|
421
|
-
overflow-x: scroll;
|
|
422
|
-
overflow-y: hidden;
|
|
423
|
-
left: 0;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.ace_print-margin {
|
|
427
|
-
position: absolute;
|
|
428
|
-
height: 100%;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
.ace_text-input {
|
|
432
|
-
position: absolute;
|
|
433
|
-
z-index: 0;
|
|
434
|
-
width: 0.5em;
|
|
435
|
-
height: 1em;
|
|
436
|
-
opacity: 0;
|
|
437
|
-
background: transparent;
|
|
438
|
-
-moz-appearance: none;
|
|
439
|
-
appearance: none;
|
|
440
|
-
border: none;
|
|
441
|
-
resize: none;
|
|
442
|
-
outline: none;
|
|
443
|
-
overflow: hidden;
|
|
444
|
-
font: inherit;
|
|
445
|
-
padding: 0 1px;
|
|
446
|
-
margin: 0 -1px;
|
|
447
|
-
contain: strict;
|
|
448
|
-
-ms-user-select: text;
|
|
449
|
-
-moz-user-select: text;
|
|
450
|
-
-webkit-user-select: text;
|
|
451
|
-
user-select: text;
|
|
452
|
-
/*with \`pre-line\` chrome inserts instead of space*/
|
|
453
|
-
white-space: pre!important;
|
|
454
|
-
}
|
|
455
|
-
.ace_text-input.ace_composition {
|
|
456
|
-
background: transparent;
|
|
457
|
-
color: inherit;
|
|
458
|
-
z-index: 1000;
|
|
459
|
-
opacity: 1;
|
|
460
|
-
}
|
|
461
|
-
.ace_composition_placeholder { color: transparent }
|
|
462
|
-
.ace_composition_marker {
|
|
463
|
-
border-bottom: 1px solid;
|
|
464
|
-
position: absolute;
|
|
465
|
-
border-radius: 0;
|
|
466
|
-
margin-top: 1px;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
[ace_nocontext=true] {
|
|
470
|
-
transform: none!important;
|
|
471
|
-
filter: none!important;
|
|
472
|
-
clip-path: none!important;
|
|
473
|
-
mask : none!important;
|
|
474
|
-
contain: none!important;
|
|
475
|
-
perspective: none!important;
|
|
476
|
-
mix-blend-mode: initial!important;
|
|
477
|
-
z-index: auto;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.ace_layer {
|
|
481
|
-
z-index: 1;
|
|
482
|
-
position: absolute;
|
|
483
|
-
overflow: hidden;
|
|
484
|
-
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
|
485
|
-
word-wrap: normal;
|
|
486
|
-
white-space: pre;
|
|
487
|
-
height: 100%;
|
|
488
|
-
width: 100%;
|
|
489
|
-
box-sizing: border-box;
|
|
490
|
-
/* setting pointer-events: auto; on node under the mouse, which changes
|
|
491
|
-
during scroll, will break mouse wheel scrolling in Safari */
|
|
492
|
-
pointer-events: none;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
.ace_gutter-layer {
|
|
496
|
-
position: relative;
|
|
497
|
-
width: auto;
|
|
498
|
-
text-align: right;
|
|
499
|
-
pointer-events: auto;
|
|
500
|
-
height: 1000000px;
|
|
501
|
-
contain: style size layout;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
.ace_text-layer {
|
|
505
|
-
font: inherit !important;
|
|
506
|
-
position: absolute;
|
|
507
|
-
height: 1000000px;
|
|
508
|
-
width: 1000000px;
|
|
509
|
-
contain: style size layout;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
|
513
|
-
contain: style size layout;
|
|
514
|
-
position: absolute;
|
|
515
|
-
top: 0;
|
|
516
|
-
left: 0;
|
|
517
|
-
right: 0;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
.ace_hidpi .ace_text-layer,
|
|
521
|
-
.ace_hidpi .ace_gutter-layer,
|
|
522
|
-
.ace_hidpi .ace_content,
|
|
523
|
-
.ace_hidpi .ace_gutter {
|
|
524
|
-
contain: strict;
|
|
525
|
-
will-change: transform;
|
|
526
|
-
}
|
|
527
|
-
.ace_hidpi .ace_text-layer > .ace_line,
|
|
528
|
-
.ace_hidpi .ace_text-layer > .ace_line_group {
|
|
529
|
-
contain: strict;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.ace_cjk {
|
|
533
|
-
display: inline-block;
|
|
534
|
-
text-align: center;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
.ace_cursor-layer {
|
|
538
|
-
z-index: 4;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
.ace_cursor {
|
|
542
|
-
z-index: 4;
|
|
543
|
-
position: absolute;
|
|
544
|
-
box-sizing: border-box;
|
|
545
|
-
border-left: 2px solid;
|
|
546
|
-
/* workaround for smooth cursor repaintng whole screen in chrome */
|
|
547
|
-
transform: translatez(0);
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
.ace_multiselect .ace_cursor {
|
|
551
|
-
border-left-width: 1px;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
.ace_slim-cursors .ace_cursor {
|
|
555
|
-
border-left-width: 1px;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
.ace_overwrite-cursors .ace_cursor {
|
|
559
|
-
border-left-width: 0;
|
|
560
|
-
border-bottom: 1px solid;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
.ace_hidden-cursors .ace_cursor {
|
|
564
|
-
opacity: 0.2;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
|
568
|
-
opacity: 0;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
.ace_smooth-blinking .ace_cursor {
|
|
572
|
-
transition: opacity 0.18s;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
.ace_animate-blinking .ace_cursor {
|
|
576
|
-
animation-duration: 1000ms;
|
|
577
|
-
animation-timing-function: step-end;
|
|
578
|
-
animation-name: blink-ace-animate;
|
|
579
|
-
animation-iteration-count: infinite;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
|
583
|
-
animation-duration: 1000ms;
|
|
584
|
-
animation-timing-function: ease-in-out;
|
|
585
|
-
animation-name: blink-ace-animate-smooth;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
@keyframes blink-ace-animate {
|
|
589
|
-
from, to { opacity: 1; }
|
|
590
|
-
60% { opacity: 0; }
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
@keyframes blink-ace-animate-smooth {
|
|
594
|
-
from, to { opacity: 1; }
|
|
595
|
-
45% { opacity: 1; }
|
|
596
|
-
60% { opacity: 0; }
|
|
597
|
-
85% { opacity: 0; }
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
|
601
|
-
position: absolute;
|
|
602
|
-
z-index: 3;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
.ace_marker-layer .ace_selection {
|
|
606
|
-
position: absolute;
|
|
607
|
-
z-index: 5;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
.ace_marker-layer .ace_bracket {
|
|
611
|
-
position: absolute;
|
|
612
|
-
z-index: 6;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
.ace_marker-layer .ace_error_bracket {
|
|
616
|
-
position: absolute;
|
|
617
|
-
border-bottom: 1px solid #DE5555;
|
|
618
|
-
border-radius: 0;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
.ace_marker-layer .ace_active-line {
|
|
622
|
-
position: absolute;
|
|
623
|
-
z-index: 2;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
.ace_marker-layer .ace_selected-word {
|
|
627
|
-
position: absolute;
|
|
628
|
-
z-index: 4;
|
|
629
|
-
box-sizing: border-box;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
.ace_line .ace_fold {
|
|
633
|
-
box-sizing: border-box;
|
|
634
|
-
|
|
635
|
-
display: inline-block;
|
|
636
|
-
height: 11px;
|
|
637
|
-
margin-top: -2px;
|
|
638
|
-
vertical-align: middle;
|
|
639
|
-
|
|
640
|
-
background-image:
|
|
641
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
642
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
|
643
|
-
background-repeat: no-repeat, repeat-x;
|
|
644
|
-
background-position: center center, top left;
|
|
645
|
-
color: transparent;
|
|
646
|
-
|
|
647
|
-
border: 1px solid black;
|
|
648
|
-
border-radius: 2px;
|
|
649
|
-
|
|
650
|
-
cursor: pointer;
|
|
651
|
-
pointer-events: auto;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
.ace_dark .ace_fold {
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
.ace_fold:hover{
|
|
658
|
-
background-image:
|
|
659
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
660
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
.ace_tooltip {
|
|
664
|
-
background-color: #FFF;
|
|
665
|
-
background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
|
|
666
|
-
border: 1px solid gray;
|
|
667
|
-
border-radius: 1px;
|
|
668
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
669
|
-
color: black;
|
|
670
|
-
max-width: 100%;
|
|
671
|
-
padding: 3px 4px;
|
|
672
|
-
position: fixed;
|
|
673
|
-
z-index: 999999;
|
|
674
|
-
box-sizing: border-box;
|
|
675
|
-
cursor: default;
|
|
676
|
-
white-space: pre;
|
|
677
|
-
word-wrap: break-word;
|
|
678
|
-
line-height: normal;
|
|
679
|
-
font-style: normal;
|
|
680
|
-
font-weight: normal;
|
|
681
|
-
letter-spacing: normal;
|
|
682
|
-
pointer-events: none;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
.ace_folding-enabled > .ace_gutter-cell {
|
|
686
|
-
padding-right: 13px;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
.ace_fold-widget {
|
|
690
|
-
box-sizing: border-box;
|
|
691
|
-
|
|
692
|
-
margin: 0 -12px 0 1px;
|
|
693
|
-
display: none;
|
|
694
|
-
width: 11px;
|
|
695
|
-
vertical-align: top;
|
|
696
|
-
|
|
697
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
|
698
|
-
background-repeat: no-repeat;
|
|
699
|
-
background-position: center;
|
|
700
|
-
|
|
701
|
-
border-radius: 3px;
|
|
702
|
-
|
|
703
|
-
border: 1px solid transparent;
|
|
704
|
-
cursor: pointer;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
.ace_folding-enabled .ace_fold-widget {
|
|
708
|
-
display: inline-block;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
.ace_fold-widget.ace_end {
|
|
712
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
.ace_fold-widget.ace_closed {
|
|
716
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
.ace_fold-widget:hover {
|
|
720
|
-
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
721
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
722
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
.ace_fold-widget:active {
|
|
726
|
-
border: 1px solid rgba(0, 0, 0, 0.4);
|
|
727
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
728
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
|
729
|
-
}
|
|
730
|
-
/**
|
|
731
|
-
* Dark version for fold widgets
|
|
732
|
-
*/
|
|
733
|
-
.ace_dark .ace_fold-widget {
|
|
734
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
|
735
|
-
}
|
|
736
|
-
.ace_dark .ace_fold-widget.ace_end {
|
|
737
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
|
738
|
-
}
|
|
739
|
-
.ace_dark .ace_fold-widget.ace_closed {
|
|
740
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
|
741
|
-
}
|
|
742
|
-
.ace_dark .ace_fold-widget:hover {
|
|
743
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
744
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
745
|
-
}
|
|
746
|
-
.ace_dark .ace_fold-widget:active {
|
|
747
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
.ace_inline_button {
|
|
751
|
-
border: 1px solid lightgray;
|
|
752
|
-
display: inline-block;
|
|
753
|
-
margin: -1px 8px;
|
|
754
|
-
padding: 0 5px;
|
|
755
|
-
pointer-events: auto;
|
|
756
|
-
cursor: pointer;
|
|
757
|
-
}
|
|
758
|
-
.ace_inline_button:hover {
|
|
759
|
-
border-color: gray;
|
|
760
|
-
background: rgba(200,200,200,0.2);
|
|
761
|
-
display: inline-block;
|
|
762
|
-
pointer-events: auto;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
.ace_fold-widget.ace_invalid {
|
|
766
|
-
background-color: #FFB4B4;
|
|
767
|
-
border-color: #DE5555;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
.ace_fade-fold-widgets .ace_fold-widget {
|
|
771
|
-
transition: opacity 0.4s ease 0.05s;
|
|
772
|
-
opacity: 0;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
|
776
|
-
transition: opacity 0.05s ease 0.05s;
|
|
777
|
-
opacity:1;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
.ace_underline {
|
|
781
|
-
text-decoration: underline;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
.ace_bold {
|
|
785
|
-
font-weight: bold;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
.ace_nobold .ace_bold {
|
|
789
|
-
font-weight: normal;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
.ace_italic {
|
|
793
|
-
font-style: italic;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
.ace_error-marker {
|
|
798
|
-
background-color: rgba(255, 0, 0,0.2);
|
|
799
|
-
position: absolute;
|
|
800
|
-
z-index: 9;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
.ace_highlight-marker {
|
|
804
|
-
background-color: rgba(255, 255, 0,0.2);
|
|
805
|
-
position: absolute;
|
|
806
|
-
z-index: 8;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
.ace_mobile-menu {
|
|
810
|
-
position: absolute;
|
|
811
|
-
line-height: 1.5;
|
|
812
|
-
border-radius: 4px;
|
|
813
|
-
-ms-user-select: none;
|
|
814
|
-
-moz-user-select: none;
|
|
815
|
-
-webkit-user-select: none;
|
|
816
|
-
user-select: none;
|
|
817
|
-
background: white;
|
|
818
|
-
box-shadow: 1px 3px 2px grey;
|
|
819
|
-
border: 1px solid #dcdcdc;
|
|
820
|
-
color: black;
|
|
821
|
-
}
|
|
822
|
-
.ace_dark > .ace_mobile-menu {
|
|
823
|
-
background: #333;
|
|
824
|
-
color: #ccc;
|
|
825
|
-
box-shadow: 1px 3px 2px grey;
|
|
826
|
-
border: 1px solid #444;
|
|
827
|
-
|
|
828
|
-
}
|
|
829
|
-
.ace_mobile-button {
|
|
830
|
-
padding: 2px;
|
|
831
|
-
cursor: pointer;
|
|
832
|
-
overflow: hidden;
|
|
833
|
-
}
|
|
834
|
-
.ace_mobile-button:hover {
|
|
835
|
-
background-color: #eee;
|
|
836
|
-
opacity:1;
|
|
837
|
-
}
|
|
838
|
-
.ace_mobile-button:active {
|
|
839
|
-
background-color: #ddd;
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
.ace_placeholder {
|
|
843
|
-
font-family: arial;
|
|
844
|
-
transform: scale(0.9);
|
|
845
|
-
transform-origin: left;
|
|
846
|
-
white-space: pre;
|
|
847
|
-
opacity: 0.7;
|
|
848
|
-
margin: 0 10px;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
.ace_ghost_text {
|
|
852
|
-
opacity: 0.5;
|
|
853
|
-
font-style: italic;
|
|
854
|
-
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(t,r,i){var s=t("../lib/dom"),d=t("../lib/oop"),f=t("../lib/event_emitter").EventEmitter,l=function(m,a){this.canvas=s.createElement("canvas"),this.renderer=a,this.pixelRatio=1,this.maxHeight=a.layerConfig.maxHeight,this.lineHeight=a.layerConfig.lineHeight,this.canvasHeight=m.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=m.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top=0+"px",this.canvas.style.right=0+"px",this.canvas.style.zIndex=7+"px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},m.element.appendChild(this.canvas)};(function(){d.implement(this,f),this.$updateDecorators=function(m){var a=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(m){this.maxHeight=m.maxHeight,this.lineHeight=m.lineHeight,this.canvasHeight=m.height;var o=(m.lastRow+1)*this.lineHeight;o<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var u=this.canvas.getContext("2d");function p(y,k){return y.priority<k.priority?-1:y.priority>k.priority?1:0}var v=this.renderer.session.$annotations;if(u.clearRect(0,0,this.canvas.width,this.canvas.height),v){var w={info:1,warning:2,error:3};v.forEach(function(y){y.priority=w[y.type]||null}),v=v.sort(p);for(var b=this.renderer.session.$foldData,_=0;_<v.length;_++){var E=v[_].row,$=this.compensateFoldRows(E,b),x=Math.round((E-$)*this.lineHeight*this.heightRatio),S=Math.round((E-$)*this.lineHeight*this.heightRatio),T=Math.round(((E-$)*this.lineHeight+this.lineHeight)*this.heightRatio),M=T-S;if(M<this.minDecorationHeight){var A=(S+T)/2|0;A<this.halfMinDecorationHeight?A=this.halfMinDecorationHeight:A+this.halfMinDecorationHeight>this.canvasHeight&&(A=this.canvasHeight-this.halfMinDecorationHeight),S=Math.round(A-this.halfMinDecorationHeight),T=Math.round(A+this.halfMinDecorationHeight)}u.fillStyle=a[v[_].type]||null,u.fillRect(0,x,this.canvasWidth,T-S)}}var R=this.renderer.session.selection.getCursor();if(R){var $=this.compensateFoldRows(R.row,b),x=Math.round((R.row-$)*this.lineHeight*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,x,this.canvasWidth,2)}},this.compensateFoldRows=function(m,a){var o=0;if(a&&a.length>0)for(var u=0;u<a.length;u++)m>a[u].start.row&&m<a[u].end.row?o+=m-a[u].start.row:m>=a[u].end.row&&(o+=a[u].end.row-a[u].start.row);return o}}).call(l.prototype),r.Decorator=l}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor.css","ace/layer/decorators","ace/lib/useragent"],function(t,r,i){var s=t("./lib/oop"),d=t("./lib/dom"),f=t("./config"),l=t("./layer/gutter").Gutter,m=t("./layer/marker").Marker,a=t("./layer/text").Text,o=t("./layer/cursor").Cursor,u=t("./scrollbar").HScrollBar,p=t("./scrollbar").VScrollBar,v=t("./scrollbar_custom").HScrollBar,w=t("./scrollbar_custom").VScrollBar,b=t("./renderloop").RenderLoop,_=t("./layer/font_metrics").FontMetrics,E=t("./lib/event_emitter").EventEmitter,$=t("./css/editor.css"),x=t("./layer/decorators").Decorator,S=t("./lib/useragent"),T=S.isIE;d.importCssString($,"ace_editor.css",!1);var M=function(A,R){var y=this;this.container=A||d.createElement("div"),d.addCssClass(this.container,"ace_editor"),d.HI_DPI&&d.addCssClass(this.container,"ace_hidpi"),this.setTheme(R),f.get("useStrictCSP")==null&&f.set("useStrictCSP",!1),this.$gutter=d.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=d.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=d.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new l(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new m(this.content);var k=this.$textLayer=new a(this.content);this.canvas=k.element,this.$markerFront=new m(this.content),this.$cursorLayer=new o(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new p(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function(O){y.$scrollAnimation||y.session.setScrollTop(O.data-y.scrollMargin.top)}),this.scrollBarH.on("scroll",function(O){y.$scrollAnimation||y.session.setScrollLeft(O.data-y.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new _(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(O){y.updateCharacterSize(),y.onResize(!0,y.gutterWidth,y.$size.width,y.$size.height),y._signal("changeCharacterSize",O)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!S.isIOS,this.$loop=new b(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),f.resetOptions(this),f._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,s.implement(this,E),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),d.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(A){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=A,A&&this.scrollMargin.top&&A.getScrollTop()<=0&&A.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(A),this.$markerBack.setSession(A),this.$markerFront.setSession(A),this.$gutterLayer.setSession(A),this.$textLayer.setSession(A),A&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(A,R,y){if(R===void 0&&(R=1/0),this.$changedLines?(this.$changedLines.firstRow>A&&(this.$changedLines.firstRow=A),this.$changedLines.lastRow<R&&(this.$changedLines.lastRow=R)):this.$changedLines={firstRow:A,lastRow:R},this.$changedLines.lastRow<this.layerConfig.firstRow)if(y)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(A){A?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(A,R,y,k){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=A?1:0;var O=this.container;k||(k=O.clientHeight||O.scrollHeight),y||(y=O.clientWidth||O.scrollWidth);var N=this.$updateCachedSize(A,R,y,k);if(!this.$size.scrollerHeight||!y&&!k)return this.resizing=0;A&&(this.$gutterLayer.$padding=null),A?this.$renderChanges(N|this.$changes,!0):this.$loop.schedule(N|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},this.$updateCachedSize=function(A,R,y,k){k-=this.$extraHeight||0;var O=0,N=this.$size,I={width:N.width,height:N.height,scrollerHeight:N.scrollerHeight,scrollerWidth:N.scrollerWidth};if(k&&(A||N.height!=k)&&(N.height=k,O|=this.CHANGE_SIZE,N.scrollerHeight=N.height,this.$horizScroll&&(N.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(N.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",O=O|this.CHANGE_SCROLL),y&&(A||N.width!=y)){O|=this.CHANGE_SIZE,N.width=y,R==null&&(R=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=R,d.setStyle(this.scrollBarH.element.style,"left",R+"px"),d.setStyle(this.scroller.style,"left",R+this.margin.left+"px"),N.scrollerWidth=Math.max(0,y-R-this.scrollBarV.getWidth()-this.margin.h),d.setStyle(this.$gutter.style,"left",this.margin.left+"px");var P=this.scrollBarV.getWidth()+"px";d.setStyle(this.scrollBarH.element.style,"right",P),d.setStyle(this.scroller.style,"right",P),d.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(N.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||A)&&(O|=this.CHANGE_FULL)}return N.$dirty=!y||!k,O&&this._signal("resize",I),O},this.onGutterResize=function(A){var R=this.$showGutter?A:0;R!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,R,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var A=this.$size.scrollerWidth-this.$padding*2,R=Math.floor(A/this.characterWidth);return this.session.adjustWrapLimit(R,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(A){this.setOption("animatedScroll",A)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(A){this.setOption("showInvisibles",A),this.session.$bidiHandler.setShowInvisibles(A)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(A){this.setOption("displayIndentGuides",A)},this.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},this.setHighlightIndentGuides=function(A){this.setOption("highlightIndentGuides",A)},this.setShowPrintMargin=function(A){this.setOption("showPrintMargin",A)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(A){this.setOption("printMarginColumn",A)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(A){return this.setOption("showGutter",A)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(A){this.setOption("fadeFoldWidgets",A)},this.setHighlightGutterLine=function(A){this.setOption("highlightGutterLine",A)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var A=d.createElement("div");A.className="ace_layer ace_print-margin-layer",this.$printMarginEl=d.createElement("div"),this.$printMarginEl.className="ace_print-margin",A.appendChild(this.$printMarginEl),this.content.insertBefore(A,this.content.firstChild)}var R=this.$printMarginEl.style;R.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",R.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var A=this.textarea.style,R=this.$composition;if(!this.$keepTextAreaAtCursor&&!R){d.translate(this.textarea,-100,0);return}var y=this.$cursorLayer.$pixelPos;if(y){R&&R.markerRange&&(y=this.$cursorLayer.getPixelPosition(R.markerRange.start,!0));var k=this.layerConfig,O=y.top,N=y.left;O-=k.offset;var I=R&&R.useTextareaForIME?this.lineHeight:T?0:1;if(O<0||O>k.height-I){d.translate(this.textarea,0,0);return}var P=1,B=this.$size.height-I;if(!R)O+=this.lineHeight;else if(R.useTextareaForIME){var z=this.textarea.value;P=this.characterWidth*this.session.$getStringScreenWidth(z)[0]}else O+=this.lineHeight+2;N-=this.scrollLeft,N>this.$size.scrollerWidth-P&&(N=this.$size.scrollerWidth-P),N+=this.gutterWidth+this.margin.left,d.setStyle(A,"height",I+"px"),d.setStyle(A,"width",P+"px"),d.translate(this.textarea,Math.min(N,this.$size.scrollerWidth-P),Math.min(O,B))}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var A=this.layerConfig,R=A.lastRow,y=this.session.documentToScreenRow(R,0)*A.lineHeight;return y-this.session.getScrollTop()>A.height-A.lineHeight?R-1:R},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(A){this.$padding=A,this.$textLayer.setPadding(A),this.$cursorLayer.setPadding(A),this.$markerFront.setPadding(A),this.$markerBack.setPadding(A),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(A,R,y,k){var O=this.scrollMargin;O.top=A|0,O.bottom=R|0,O.right=k|0,O.left=y|0,O.v=O.top+O.bottom,O.h=O.left+O.right,O.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-O.top),this.updateFull()},this.setMargin=function(A,R,y,k){var O=this.margin;O.top=A|0,O.bottom=R|0,O.right=k|0,O.left=y|0,O.v=O.top+O.bottom,O.h=O.left+O.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(A){this.setOption("hScrollBarAlwaysVisible",A)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(A){this.setOption("vScrollBarAlwaysVisible",A)},this.$updateScrollBarV=function(){var A=this.layerConfig.maxHeight,R=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(A-=(R-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>A-R&&(A=this.scrollTop+R,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(A+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(A,R){if(this.$changes&&(A|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!A&&!R){this.$changes|=A;return}if(this.$size.$dirty)return this.$changes|=A,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",A),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var y=this.layerConfig;if(A&this.CHANGE_FULL||A&this.CHANGE_SIZE||A&this.CHANGE_TEXT||A&this.CHANGE_LINES||A&this.CHANGE_SCROLL||A&this.CHANGE_H_SCROLL){if(A|=this.$computeLayerConfig()|this.$loop.clear(),y.firstRow!=this.layerConfig.firstRow&&y.firstRowScreen==this.layerConfig.firstRowScreen){var k=this.scrollTop+(y.firstRow-this.layerConfig.firstRow)*this.lineHeight;k>0&&(this.scrollTop=k,A=A|this.CHANGE_SCROLL,A|=this.$computeLayerConfig()|this.$loop.clear())}y=this.layerConfig,this.$updateScrollBarV(),A&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),d.translate(this.content,-this.scrollLeft,-y.offset);var O=y.width+2*this.$padding+"px",N=y.minHeight+"px";d.setStyle(this.content.style,"width",O),d.setStyle(this.content.style,"height",N)}if(A&this.CHANGE_H_SCROLL&&(d.translate(this.content,-this.scrollLeft,-y.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),A&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this._signal("afterRender",A);return}if(A&this.CHANGE_SCROLL){this.$changedLines=null,A&this.CHANGE_TEXT||A&this.CHANGE_LINES?this.$textLayer.update(y):this.$textLayer.scrollLines(y),this.$showGutter&&(A&this.CHANGE_GUTTER||A&this.CHANGE_LINES?this.$gutterLayer.update(y):this.$gutterLayer.scrollLines(y)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this._signal("afterRender",A);return}A&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):A&this.CHANGE_LINES?((this.$updateLines()||A&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):A&this.CHANGE_TEXT||A&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):A&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)),A&this.CHANGE_CURSOR&&(this.$cursorLayer.update(y),this.$moveTextAreaToCursor()),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(y),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(y),this._signal("afterRender",A)},this.$autosize=function(){var A=this.session.getScreenLength()*this.lineHeight,R=this.$maxLines*this.lineHeight,y=Math.min(R,Math.max((this.$minLines||1)*this.lineHeight,A))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(y+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&y>this.$maxPixelHeight&&(y=this.$maxPixelHeight);var k=y<=2*this.lineHeight,O=!k&&A>R;if(y!=this.desiredHeight||this.$size.height!=this.desiredHeight||O!=this.$vScroll){O!=this.$vScroll&&(this.$vScroll=O,this.scrollBarV.setVisible(O));var N=this.container.clientWidth;this.container.style.height=y+"px",this.$updateCachedSize(!0,this.$gutterWidth,N,y),this.desiredHeight=y,this._signal("autosize")}},this.$computeLayerConfig=function(){var A=this.session,R=this.$size,y=R.height<=2*this.lineHeight,k=this.session.getScreenLength(),O=k*this.lineHeight,N=this.$getLongestLine(),I=!y&&(this.$hScrollBarAlwaysVisible||R.scrollerWidth-N-2*this.$padding<0),P=this.$horizScroll!==I;P&&(this.$horizScroll=I,this.scrollBarH.setVisible(I));var B=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var z=R.scrollerHeight+this.lineHeight,j=!this.$maxLines&&this.$scrollPastEnd?(R.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;O+=j;var J=this.scrollMargin;this.session.setScrollTop(Math.max(-J.top,Math.min(this.scrollTop,O-R.scrollerHeight+J.bottom))),this.session.setScrollLeft(Math.max(-J.left,Math.min(this.scrollLeft,N+2*this.$padding-R.scrollerWidth+J.right)));var q=!y&&(this.$vScrollBarAlwaysVisible||R.scrollerHeight-O+j<0||this.scrollTop>J.top),re=B!==q;re&&(this.$vScroll=q,this.scrollBarV.setVisible(q));var ie=this.scrollTop%this.lineHeight,Y=Math.ceil(z/this.lineHeight)-1,ne=Math.max(0,Math.round((this.scrollTop-ie)/this.lineHeight)),oe=ne+Y,fe,we,G=this.lineHeight;ne=A.screenToDocumentRow(ne,0);var pe=A.getFoldLine(ne);pe&&(ne=pe.start.row),fe=A.documentToScreenRow(ne,0),we=A.getRowLength(ne)*G,oe=Math.min(A.screenToDocumentRow(oe,0),A.getLength()-1),z=R.scrollerHeight+A.getRowLength(oe)*G+we,ie=this.scrollTop-fe*G;var me=0;return(this.layerConfig.width!=N||P)&&(me=this.CHANGE_H_SCROLL),(P||re)&&(me|=this.$updateCachedSize(!0,this.gutterWidth,R.width,R.height),this._signal("scrollbarVisibilityChanged"),re&&(N=this.$getLongestLine())),this.layerConfig={width:N,padding:this.$padding,firstRow:ne,firstRowScreen:fe,lastRow:oe,lineHeight:G,characterWidth:this.characterWidth,minHeight:z,maxHeight:O,offset:ie,gutterOffset:G?Math.max(0,Math.ceil((ie+R.height-R.scrollerHeight)/G)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(N-this.$padding),me},this.$updateLines=function(){if(this.$changedLines){var A=this.$changedLines.firstRow,R=this.$changedLines.lastRow;this.$changedLines=null;var y=this.layerConfig;if(!(A>y.lastRow+1)&&!(R<y.firstRow)){if(R===1/0){this.$showGutter&&this.$gutterLayer.update(y),this.$textLayer.update(y);return}return this.$textLayer.updateLines(y,A,R),!0}}},this.$getLongestLine=function(){var A=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(A+=1),this.$textLayer&&A>this.$textLayer.MAX_LINE_LENGTH&&(A=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(A*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(A,R){this.$gutterLayer.addGutterDecoration(A,R)},this.removeGutterDecoration=function(A,R){this.$gutterLayer.removeGutterDecoration(A,R)},this.updateBreakpoints=function(A){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(A){this.$gutterLayer.setAnnotations(A),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(A,R,y){this.scrollCursorIntoView(A,y),this.scrollCursorIntoView(R,y)},this.scrollCursorIntoView=function(A,R,y){if(this.$size.scrollerHeight!==0){var k=this.$cursorLayer.getPixelPosition(A),O=k.left,N=k.top,I=y&&y.top||0,P=y&&y.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var B=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;B+I>N?(R&&B+I>N+this.lineHeight&&(N-=R*this.$size.scrollerHeight),N===0&&(N=-this.scrollMargin.top),this.session.setScrollTop(N)):B+this.$size.scrollerHeight-P<N+this.lineHeight&&(R&&B+this.$size.scrollerHeight-P<N-this.lineHeight&&(N+=R*this.$size.scrollerHeight),this.session.setScrollTop(N+this.lineHeight+P-this.$size.scrollerHeight));var z=this.scrollLeft,j=2*this.layerConfig.characterWidth;O-j<z?(O-=j,O<this.$padding+j&&(O=-this.scrollMargin.left),this.session.setScrollLeft(O)):(O+=j,z+this.$size.scrollerWidth<O+this.characterWidth?this.session.setScrollLeft(Math.round(O+this.characterWidth-this.$size.scrollerWidth)):z<=this.$padding&&O-z<this.characterWidth&&this.session.setScrollLeft(0))}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(A){this.session.setScrollTop(A*this.lineHeight)},this.alignCursor=function(A,R){typeof A=="number"&&(A={row:A,column:0});var y=this.$cursorLayer.getPixelPosition(A),k=this.$size.scrollerHeight-this.lineHeight,O=y.top-k*(R||0);return this.session.setScrollTop(O),O},this.STEPS=8,this.$calcSteps=function(A,R){var y=0,k=this.STEPS,O=[],N=function(I,P,B){return B*(Math.pow(I-1,3)+1)+P};for(y=0;y<k;++y)O.push(N(y/this.STEPS,A,R-A));return O},this.scrollToLine=function(A,R,y,k){var O=this.$cursorLayer.getPixelPosition({row:A,column:0}),N=O.top;R&&(N-=this.$size.scrollerHeight/2);var I=this.scrollTop;this.session.setScrollTop(N),y!==!1&&this.animateScrolling(I,k)},this.animateScrolling=function(A,R){var y=this.scrollTop;if(!this.$animatedScroll)return;var k=this;if(A==y)return;if(this.$scrollAnimation){var O=this.$scrollAnimation.steps;if(O.length&&(A=O[0],A==y))return}var N=k.$calcSteps(A,y);this.$scrollAnimation={from:A,to:y,steps:N},clearInterval(this.$timer),k.session.setScrollTop(N.shift()),k.session.$scrollTop=y;function I(){k.$timer=clearInterval(k.$timer),k.$scrollAnimation=null,k.$stopAnimation=!1,R&&R()}this.$timer=setInterval(function(){if(k.$stopAnimation){I();return}if(!k.session)return clearInterval(k.$timer);N.length?(k.session.setScrollTop(N.shift()),k.session.$scrollTop=y):y!=null?(k.session.$scrollTop=-1,k.session.setScrollTop(y),y=null):I()},10)},this.scrollToY=function(A){this.scrollTop!==A&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=A)},this.scrollToX=function(A){this.scrollLeft!==A&&(this.scrollLeft=A),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(A,R){this.session.setScrollTop(R),this.session.setScrollLeft(A)},this.scrollBy=function(A,R){R&&this.session.setScrollTop(this.session.getScrollTop()+R),A&&this.session.setScrollLeft(this.session.getScrollLeft()+A)},this.isScrollableBy=function(A,R){if(R<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||R>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||A<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||A>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(A,R){var y;if(this.$hasCssTransforms){y={top:0,left:0};var k=this.$fontMetrics.transformCoordinates([A,R]);A=k[1]-this.gutterWidth-this.margin.left,R=k[0]}else y=this.scroller.getBoundingClientRect();var O=A+this.scrollLeft-y.left-this.$padding,N=O/this.characterWidth,I=Math.floor((R+this.scrollTop-y.top)/this.lineHeight),P=this.$blockCursor?Math.floor(N):Math.round(N);return{row:I,column:P,side:N-P>0?1:-1,offsetX:O}},this.screenToTextCoordinates=function(A,R){var y;if(this.$hasCssTransforms){y={top:0,left:0};var k=this.$fontMetrics.transformCoordinates([A,R]);A=k[1]-this.gutterWidth-this.margin.left,R=k[0]}else y=this.scroller.getBoundingClientRect();var O=A+this.scrollLeft-y.left-this.$padding,N=O/this.characterWidth,I=this.$blockCursor?Math.floor(N):Math.round(N),P=Math.floor((R+this.scrollTop-y.top)/this.lineHeight);return this.session.screenToDocumentPosition(P,Math.max(I,0),O)},this.textToScreenCoordinates=function(A,R){var y=this.scroller.getBoundingClientRect(),k=this.session.documentToScreenPosition(A,R),O=this.$padding+(this.session.$bidiHandler.isBidiRow(k.row,A)?this.session.$bidiHandler.getPosLeft(k.column):Math.round(k.column*this.characterWidth)),N=k.row*this.lineHeight;return{pageX:y.left+O-this.scrollLeft,pageY:y.top+N-this.scrollTop}},this.visualizeFocus=function(){d.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){d.removeCssClass(this.container,"ace_focus")},this.showComposition=function(A){this.$composition=A,A.cssText||(A.cssText=this.textarea.style.cssText),A.useTextareaForIME==null&&(A.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(d.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):A.markerId=this.session.addMarker(A.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(A){var R=this.session.selection.cursor;this.addToken(A,"composition_placeholder",R.row,R.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),d.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var A=this.session.selection.cursor;this.removeExtraToken(A.row,A.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.setGhostText=function(A,R){var y=this.session.selection.cursor,k=R||{row:y.row,column:y.column};this.removeGhostText();var O=A.split(`
|
|
855
|
-
`);this.addToken(O[0],"ghost_text",k.row,k.column),this.$ghostText={text:A,position:{row:k.row,column:k.column}},O.length>1&&(this.$ghostTextWidget={text:O.slice(1).join(`
|
|
856
|
-
`),row:k.row,column:k.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},this.removeGhostText=function(){if(this.$ghostText){var A=this.$ghostText.position;this.removeExtraToken(A.row,A.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},this.addToken=function(A,R,y,k){var O=this.session;O.bgTokenizer.lines[y]=null;var N={type:R,value:A},I=O.getTokens(y);if(k==null)I.push(N);else for(var P=0,B=0;B<I.length;B++){var z=I[B];if(P+=z.value.length,k<=P){var j=z.value.length-(P-k),J=z.value.slice(0,j),q=z.value.slice(j);I.splice(B,1,{type:z.type,value:J},N,{type:z.type,value:q});break}}this.updateLines(y,y)},this.removeExtraToken=function(A,R){this.updateLines(A,A)},this.setTheme=function(A,R){var y=this;if(this.$themeId=A,y._dispatchEvent("themeChange",{theme:A}),!A||typeof A=="string"){var k=A||this.$options.theme.initialValue;f.loadModule(["theme",k],O)}else O(A);function O(N){if(y.$themeId!=A)return R&&R();if(!N||!N.cssClass)throw new Error("couldn't load module "+A+" or it didn't call define");N.$id&&(y.$themeId=N.$id),d.importCssString(N.cssText,N.cssClass,y.container),y.theme&&d.removeCssClass(y.container,y.theme.cssClass);var I="padding"in N?N.padding:"padding"in(y.theme||{})?4:y.$padding;y.$padding&&I!=y.$padding&&y.setPadding(I),y.$theme=N.cssClass,y.theme=N,d.addCssClass(y.container,N.cssClass),d.setCssClass(y.container,"ace_dark",N.isDark),y.$size&&(y.$size.width=0,y.$updateSizeAsync()),y._dispatchEvent("themeLoaded",{theme:N}),R&&R()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(A,R){d.setCssClass(this.container,A,R!==!1)},this.unsetStyle=function(A){d.removeCssClass(this.container,A)},this.setCursorStyle=function(A){d.setStyle(this.scroller.style,"cursor",A)},this.setMouseCursor=function(A){d.setStyle(this.scroller.style,"cursor",A)},this.attachToShadowRoot=function(){d.importCssString($,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""},this.$updateCustomScrollbar=function(A){var R=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,A===!0?(this.scrollBarV=new w(this.container,this),this.scrollBarH=new v(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(y){R.$scrollAnimation||R.session.setScrollTop(y.data-R.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(y){R.$scrollAnimation||R.session.setScrollLeft(y.data-R.scrollMargin.left)}),this.$scrollDecorator=new x(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new p(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(y){R.$scrollAnimation||R.session.setScrollTop(y.data-R.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(y){R.$scrollAnimation||R.session.setScrollLeft(y.data-R.scrollMargin.left)}))}}).call(M.prototype),f.defineOptions(M.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(A){this.$textLayer.setShowInvisibles(A)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(A){typeof A=="number"&&(this.$printMarginColumn=A),this.$showPrintMargin=!!A,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(A){this.$gutter.style.display=A?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(A){d.setCssClass(this.$gutter,"ace_fade-fold-widgets",A)},initialValue:!1},showFoldWidgets:{set:function(A){this.$gutterLayer.setShowFoldWidgets(A),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(A){this.$textLayer.setDisplayIndentGuides(A)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(A){this.$textLayer.setHighlightIndentGuides(A)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(A){this.$gutterLayer.setHighlightGutterLine(A),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(A){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(A){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(A){typeof A=="number"&&(A=A+"px"),this.container.style.fontSize=A,this.updateFontSize()},initialValue:12},fontFamily:{set:function(A){this.container.style.fontFamily=A,this.updateFontSize()}},maxLines:{set:function(A){this.updateFull()}},minLines:{set:function(A){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(A){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(A){A=+A||0,this.$scrollPastEnd!=A&&(this.$scrollPastEnd=A,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(A){this.$gutterLayer.$fixedWidth=!!A,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(A){this.$updateCustomScrollbar(A)},initialValue:!1},theme:{set:function(A){this.setTheme(A)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!S.isMobile&&!S.isIE}}),r.VirtualRenderer=M}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(t,r,i){var s=t("../lib/oop"),d=t("../lib/net"),f=t("../lib/event_emitter").EventEmitter,l=t("../config");function m(p){var v="importScripts('"+d.qualifyURL(p)+"');";try{return new Blob([v],{type:"application/javascript"})}catch{var w=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,b=new w;return b.append(v),b.getBlob("application/javascript")}}function a(p){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(l.get("loadWorkerFromBlob")){var v=m(p),w=window.URL||window.webkitURL,b=w.createObjectURL(v);return new Worker(b)}return new Worker(p)}var o=function(p){p.postMessage||(p=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=p,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){s.implement(this,f),this.$createWorkerFromOldConfig=function(p,v,w,b,_){if(t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),l.get("packaged")||!t.toUrl)b=b||l.moduleUrl(v,"worker");else{var E=this.$normalizePath;b=b||E(t.toUrl("ace/worker/worker.js",null,"_"));var $={};p.forEach(function(x){$[x]=E(t.toUrl(x,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=a(b),_&&this.send("importScripts",_),this.$worker.postMessage({init:!0,tlns:$,module:v,classname:w}),this.$worker},this.onMessage=function(p){var v=p.data;switch(v.type){case"event":this._signal(v.name,{data:v.data});break;case"call":var w=this.callbacks[v.id];w&&(w(v.data),delete this.callbacks[v.id]);break;case"error":this.reportError(v.data);break;case"log":window.console&&console.log&&console.log.apply(console,v.data);break}},this.reportError=function(p){window.console&&console.error&&console.error(p)},this.$normalizePath=function(p){return d.qualifyURL(p)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(p,v){this.$worker.postMessage({command:p,args:v})},this.call=function(p,v,w){if(w){var b=this.callbackId++;this.callbacks[b]=w,v.push(b)}this.send(p,v)},this.emit=function(p,v){try{v.data&&v.data.err&&(v.data.err={message:v.data.err.message,stack:v.data.err.stack,code:v.data.err.code}),this.$worker&&this.$worker.postMessage({event:p,data:{data:v.data}})}catch(w){console.error(w.stack)}},this.attachToDocument=function(p){this.$doc&&this.terminate(),this.$doc=p,this.call("setValue",[p.getValue()]),p.on("change",this.changeListener,!0)},this.changeListener=function(p){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),p.action=="insert"?this.deltaQueue.push(p.start,p.lines):this.deltaQueue.push(p.start,p.end)},this.$sendDeltaQueue=function(){var p=this.deltaQueue;p&&(this.deltaQueue=null,p.length>50&&p.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:p}))}}).call(o.prototype);var u=function(p,v,w){var b=null,_=!1,E=Object.create(f),$=[],x=new o({messageBuffer:$,terminate:function(){},postMessage:function(T){$.push(T),b&&(_?setTimeout(S):S())}});x.setEmitSync=function(T){_=T};var S=function(){var T=$.shift();T.command?b[T.command].apply(b,T.args):T.event&&E._signal(T.event,T.data)};return E.postMessage=function(T){x.onMessage({data:T})},E.callback=function(T,M){this.postMessage({type:"call",id:M,data:T})},E.emit=function(T,M){this.postMessage({type:"event",name:T,data:M})},l.loadModule(["worker",v],function(T){for(b=new T[w](E);$.length;)S()}),x};r.UIWorkerClient=u,r.WorkerClient=o,r.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(t,r,i){var s=t("./range").Range,d=t("./lib/event_emitter").EventEmitter,f=t("./lib/oop"),l=function(m,a,o,u,p,v){var w=this;this.length=a,this.session=m,this.doc=m.getDocument(),this.mainClass=p,this.othersClass=v,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=u,this.$onCursorChange=function(){setTimeout(function(){w.onCursorChange()})},this.$pos=o;var b=m.getUndoManager().$undoStack||m.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=b.length,this.setup(),m.selection.on("changeCursor",this.$onCursorChange)};(function(){f.implement(this,d),this.setup=function(){var m=this,a=this.doc,o=this.session;this.selectionBefore=o.selection.toJSON(),o.selection.inMultiSelectMode&&o.selection.toSingleRange(),this.pos=a.createAnchor(this.$pos.row,this.$pos.column);var u=this.pos;u.$insertRight=!0,u.detach(),u.markerId=o.addMarker(new s(u.row,u.column,u.row,u.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(p){var v=a.createAnchor(p.row,p.column);v.$insertRight=!0,v.detach(),m.others.push(v)}),o.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var m=this.session,a=this;this.othersActive=!0,this.others.forEach(function(o){o.markerId=m.addMarker(new s(o.row,o.column,o.row,o.column+a.length),a.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var m=0;m<this.others.length;m++)this.session.removeMarker(this.others[m].markerId)}},this.onUpdate=function(m){if(this.$updating)return this.updateAnchors(m);var a=m;if(a.start.row===a.end.row&&a.start.row===this.pos.row){this.$updating=!0;var o=m.action==="insert"?a.end.column-a.start.column:a.start.column-a.end.column,u=a.start.column>=this.pos.column&&a.start.column<=this.pos.column+this.length+1,p=a.start.column-this.pos.column;if(this.updateAnchors(m),u&&(this.length+=o),u&&!this.session.$fromUndo){if(m.action==="insert")for(var v=this.others.length-1;v>=0;v--){var w=this.others[v],b={row:w.row,column:w.column+p};this.doc.insertMergedLines(b,m.lines)}else if(m.action==="remove")for(var v=this.others.length-1;v>=0;v--){var w=this.others[v],b={row:w.row,column:w.column+p};this.doc.remove(new s(b.row,b.column,b.row,b.column-o))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(m){this.pos.onChange(m);for(var a=this.others.length;a--;)this.others[a].onChange(m);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var m=this,a=this.session,o=function(p,v){a.removeMarker(p.markerId),p.markerId=a.addMarker(new s(p.row,p.column,p.row,p.column+m.length),v,null,!1)};o(this.pos,this.mainClass);for(var u=this.others.length;u--;)o(this.others[u],this.othersClass)}},this.onCursorChange=function(m){if(!(this.$updating||!this.session)){var a=this.session.selection.getCursor();a.row===this.pos.row&&a.column>=this.pos.column&&a.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",m)):(this.hideOtherMarkers(),this._emit("cursorLeave",m))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var m=this.session.getUndoManager(),a=(m.$undoStack||m.$undostack).length-this.$undoStackDepth,o=0;o<a;o++)m.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(l.prototype),r.PlaceHolder=l}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,i){var s=t("../lib/event"),d=t("../lib/useragent");function f(m,a){return m.row==a.row&&m.column==a.column}function l(m){var a=m.domEvent,o=a.altKey,u=a.shiftKey,p=a.ctrlKey,v=m.getAccelKey(),w=m.getButton();if(p&&d.isMac&&(w=a.button),m.editor.inMultiSelectMode&&w==2){m.editor.textInput.onContextMenu(m.domEvent);return}if(!p&&!o&&!v){w===0&&m.editor.inMultiSelectMode&&m.editor.exitMultiSelectMode();return}if(w===0){var b=m.editor,_=b.selection,E=b.inMultiSelectMode,$=m.getDocumentPosition(),x=_.getCursor(),S=m.inSelection()||_.isEmpty()&&f($,x),T=m.x,M=m.y,A=function(re){T=re.clientX,M=re.clientY},R=b.session,y=b.renderer.pixelToScreenCoordinates(T,M),k=y,O;if(b.$mouseHandler.$enableJumpToDef)p&&o||v&&o?O=u?"block":"add":o&&b.$blockSelectEnabled&&(O="block");else if(v&&!o){if(O="add",!E&&u)return}else o&&b.$blockSelectEnabled&&(O="block");if(O&&d.isMac&&a.ctrlKey&&b.$mouseHandler.cancelContextMenu(),O=="add"){if(!E&&S)return;if(!E){var N=_.toOrientedRange();b.addSelectionMarker(N)}var I=_.rangeList.rangeAtPoint($);b.inVirtualSelectionMode=!0,u&&(I=null,N=_.ranges[0]||N,b.removeSelectionMarker(N)),b.once("mouseup",function(){var re=_.toOrientedRange();I&&re.isEmpty()&&f(I.cursor,re.cursor)?_.substractPoint(re.cursor):(u?_.substractPoint(N.cursor):N&&(b.removeSelectionMarker(N),_.addRange(N)),_.addRange(re)),b.inVirtualSelectionMode=!1})}else if(O=="block"){m.stop(),b.inVirtualSelectionMode=!0;var P,B=[],z=function(){var re=b.renderer.pixelToScreenCoordinates(T,M),ie=R.screenToDocumentPosition(re.row,re.column,re.offsetX);f(k,re)&&f(ie,_.lead)||(k=re,b.selection.moveToPosition(ie),b.renderer.scrollCursorIntoView(),b.removeSelectionMarkers(B),B=_.rectangularRangeBlock(k,y),b.$mouseHandler.$clickSelection&&B.length==1&&B[0].isEmpty()&&(B[0]=b.$mouseHandler.$clickSelection.clone()),B.forEach(b.addSelectionMarker,b),b.updateSelectionMarkers())};E&&!v?_.toSingleRange():!E&&v&&(P=_.toOrientedRange(),b.addSelectionMarker(P)),u?y=R.documentToScreenPosition(_.lead):_.moveToPosition($),k={row:-1,column:-1};var j=function(re){z(),clearInterval(q),b.removeSelectionMarkers(B),B.length||(B=[_.toOrientedRange()]),P&&(b.removeSelectionMarker(P),_.toSingleRange(P));for(var ie=0;ie<B.length;ie++)_.addRange(B[ie]);b.inVirtualSelectionMode=!1,b.$mouseHandler.$clickSelection=null},J=z;s.capture(b.container,A,j);var q=setInterval(function(){J()},20);return m.preventDefault()}}}r.onMouseDown=l}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(t,r,i){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(d){d.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(d){d.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(d){d.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(d){d.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(d){d.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(d){d.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(d){d.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(d){d.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(d){d.multiSelect.rangeCount>1?d.multiSelect.joinSelections():d.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(d){d.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(d){d.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(d){d.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(d){d.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(d){return d&&d.inMultiSelectMode}}];var s=t("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new s(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(t,r,i){var s=t("./range_list").RangeList,d=t("./range").Range,f=t("./selection").Selection,l=t("./mouse/multi_select_handler").onMouseDown,m=t("./lib/event"),a=t("./lib/lang"),o=t("./commands/multi_select_commands");r.commands=o.defaultCommands.concat(o.multiSelectCommands);var u=t("./search").Search,p=new u;function v(x,S,T){return p.$options.wrap=!0,p.$options.needle=S,p.$options.backwards=T==-1,p.find(x)}var w=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(w.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(x,S){if(x){if(!this.inMultiSelectMode&&this.rangeCount===0){var T=this.toOrientedRange();if(this.rangeList.add(T),this.rangeList.add(x),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),S||this.fromOrientedRange(x);this.rangeList.removeAll(),this.rangeList.add(T),this.$onAddRange(T)}x.cursor||(x.cursor=x.end);var M=this.rangeList.add(x);return this.$onAddRange(x),M.length&&this.$onRemoveRange(M),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),S||this.fromOrientedRange(x)}},this.toSingleRange=function(x){x=x||this.ranges[0];var S=this.rangeList.removeAll();S.length&&this.$onRemoveRange(S),x&&this.fromOrientedRange(x)},this.substractPoint=function(x){var S=this.rangeList.substractPoint(x);if(S)return this.$onRemoveRange(S),S[0]},this.mergeOverlappingRanges=function(){var x=this.rangeList.merge();x.length&&this.$onRemoveRange(x)},this.$onAddRange=function(x){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(x),this._signal("addRange",{range:x})},this.$onRemoveRange=function(x){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var S=this.rangeList.ranges.pop();x.push(S),this.rangeCount=0}for(var T=x.length;T--;){var M=this.ranges.indexOf(x[T]);this.ranges.splice(M,1)}this._signal("removeRange",{ranges:x}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),S=S||this.ranges[0],S&&!S.isEqual(this.getRange())&&this.fromOrientedRange(S)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new s,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var x=this.ranges.length?this.ranges:[this.getRange()],S=[],T=0;T<x.length;T++){var M=x[T],A=M.start.row,R=M.end.row;if(A===R)S.push(M.clone());else{for(S.push(new d(A,M.start.column,A,this.session.getLine(A).length));++A<R;)S.push(this.getLineRange(A,!0));S.push(new d(R,0,R,M.end.column))}T==0&&!this.isBackwards()&&(S=S.reverse())}this.toSingleRange();for(var T=S.length;T--;)this.addRange(S[T])},this.joinSelections=function(){var x=this.rangeList.ranges,S=x[x.length-1],T=d.fromPoints(x[0].start,S.end);this.toSingleRange(),this.setSelectionRange(T,S.cursor==S.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var x=this.rangeList.ranges,S=x[x.length-1],T=d.fromPoints(x[0].start,S.end);this.toSingleRange(),this.setSelectionRange(T,S.cursor==S.start)}else{var M=this.session.documentToScreenPosition(this.cursor),A=this.session.documentToScreenPosition(this.anchor),R=this.rectangularRangeBlock(M,A);R.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(x,S,T){var M=[],A=x.column<S.column;if(A)var R=x.column,y=S.column,k=x.offsetX,O=S.offsetX;else var R=S.column,y=x.column,k=S.offsetX,O=x.offsetX;var N=x.row<S.row;if(N)var I=x.row,P=S.row;else var I=S.row,P=x.row;R<0&&(R=0),I<0&&(I=0),I==P&&(T=!0);for(var B,z=I;z<=P;z++){var j=d.fromPoints(this.session.screenToDocumentPosition(z,R,k),this.session.screenToDocumentPosition(z,y,O));if(j.isEmpty()){if(B&&_(j.end,B))break;B=j.end}j.cursor=A?j.start:j.end,M.push(j)}if(N&&M.reverse(),!T){for(var J=M.length-1;M[J].isEmpty()&&J>0;)J--;if(J>0)for(var q=0;M[q].isEmpty();)q++;for(var re=J;re>=q;re--)M[re].isEmpty()&&M.splice(re,1)}return M}}.call(f.prototype);var b=t("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(x){x.cursor||(x.cursor=x.end);var S=this.getSelectionStyle();return x.marker=this.session.addMarker(x,"ace_selection",S),this.session.$selectionMarkers.push(x),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,x},this.removeSelectionMarker=function(x){if(x.marker){this.session.removeMarker(x.marker);var S=this.session.$selectionMarkers.indexOf(x);S!=-1&&this.session.$selectionMarkers.splice(S,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(x){for(var S=this.session.$selectionMarkers,T=x.length;T--;){var M=x[T];if(M.marker){this.session.removeMarker(M.marker);var A=S.indexOf(M);A!=-1&&S.splice(A,1)}}this.session.selectionMarkerCount=S.length},this.$onAddRange=function(x){this.addSelectionMarker(x.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(x){this.removeSelectionMarkers(x.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(x){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(o.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(x){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(o.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(x){var S=x.command,T=x.editor;if(T.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?M=T.forEachSelection(S,x.args):S.multiSelectAction=="forEachLine"?M=T.forEachSelection(S,x.args,!0):S.multiSelectAction=="single"?(T.exitMultiSelectMode(),M=S.exec(T,x.args||{})):M=S.multiSelectAction(T,x.args||{});else{var M=S.exec(T,x.args||{});T.multiSelect.addRange(T.multiSelect.toOrientedRange()),T.multiSelect.mergeOverlappingRanges()}return M}},this.forEachSelection=function(x,S,T){if(!this.inVirtualSelectionMode){var M=T&&T.keepOrder,A=T==!0||T&&T.$byLines,R=this.session,y=this.selection,k=y.rangeList,O=(M?y:k).ranges,N;if(!O.length)return x.exec?x.exec(this,S||{}):x(this,S||{});var I=y._eventRegistry;y._eventRegistry={};var P=new f(R);this.inVirtualSelectionMode=!0;for(var B=O.length;B--;){if(A)for(;B>0&&O[B].start.row==O[B-1].end.row;)B--;P.fromOrientedRange(O[B]),P.index=B,this.selection=R.selection=P;var z=x.exec?x.exec(this,S||{}):x(this,S||{});!N&&z!==void 0&&(N=z),P.toOrientedRange(O[B])}P.detach(),this.selection=R.selection=y,this.inVirtualSelectionMode=!1,y._eventRegistry=I,y.mergeOverlappingRanges(),y.ranges[0]&&y.fromOrientedRange(y.ranges[0]);var j=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),j&&j.from==j.to&&this.renderer.animateScrolling(j.from),N}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var x="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var S=this.multiSelect.rangeList.ranges,T=[],M=0;M<S.length;M++)T.push(this.session.getTextRange(S[M]));var A=this.session.getDocument().getNewLineCharacter();x=T.join(A),x.length==(T.length-1)*A.length&&(x="")}else this.selection.isEmpty()||(x=this.session.getTextRange(this.getSelectionRange()));return x},this.$checkMultiselectChange=function(x,S){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var T=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&S==this.multiSelect.anchor)return;var M=S==this.multiSelect.anchor?T.cursor==T.start?T.end:T.start:T.cursor;M.row!=S.row||this.session.$clipPositionToDocument(M.row,M.column).column!=S.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(x,S,T){if(S=S||{},S.needle=x||S.needle,S.needle==null){var M=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();S.needle=this.session.getTextRange(M)}this.$search.set(S);var A=this.$search.findAll(this.session);if(!A.length)return 0;var R=this.multiSelect;T||R.toSingleRange(A[0]);for(var y=A.length;y--;)R.addRange(A[y],!0);return M&&R.rangeList.rangeAtPoint(M.start)&&R.addRange(M,!0),A.length},this.selectMoreLines=function(x,S){var T=this.selection.toOrientedRange(),M=T.cursor==T.end,A=this.session.documentToScreenPosition(T.cursor);this.selection.$desiredColumn&&(A.column=this.selection.$desiredColumn);var R=this.session.screenToDocumentPosition(A.row+x,A.column);if(T.isEmpty())var k=R;else var y=this.session.documentToScreenPosition(M?T.end:T.start),k=this.session.screenToDocumentPosition(y.row+x,y.column);if(M){var O=d.fromPoints(R,k);O.cursor=O.start}else{var O=d.fromPoints(k,R);O.cursor=O.end}if(O.desiredColumn=A.column,!this.selection.inMultiSelectMode)this.selection.addRange(T);else if(S)var N=T.cursor;this.selection.addRange(O),N&&this.selection.substractPoint(N)},this.transposeSelections=function(x){for(var S=this.session,T=S.multiSelect,M=T.ranges,A=M.length;A--;){var R=M[A];if(R.isEmpty()){var y=S.getWordRange(R.start.row,R.start.column);R.start.row=y.start.row,R.start.column=y.start.column,R.end.row=y.end.row,R.end.column=y.end.column}}T.mergeOverlappingRanges();for(var k=[],A=M.length;A--;){var R=M[A];k.unshift(S.getTextRange(R))}x<0?k.unshift(k.pop()):k.push(k.shift());for(var A=M.length;A--;){var R=M[A],y=R.clone();S.replace(R,k[A]),R.start.row=y.start.row,R.start.column=y.start.column}T.fromOrientedRange(T.ranges[0])},this.selectMore=function(x,S,T){var M=this.session,A=M.multiSelect,R=A.toOrientedRange();if(!(R.isEmpty()&&(R=M.getWordRange(R.start.row,R.start.column),R.cursor=x==-1?R.start:R.end,this.multiSelect.addRange(R),T))){var y=M.getTextRange(R),k=v(M,y,x);k&&(k.cursor=x==-1?k.start:k.end,this.session.unfold(k),this.multiSelect.addRange(k),this.renderer.scrollCursorIntoView(null,.5)),S&&this.multiSelect.substractPoint(R.cursor)}},this.alignCursors=function(){var x=this.session,S=x.multiSelect,T=S.ranges,M=-1,A=T.filter(function(J){if(J.cursor.row==M)return!0;M=J.cursor.row});if(!T.length||A.length==T.length-1){var R=this.selection.getRange(),y=R.start.row,k=R.end.row,O=y==k;if(O){var N=this.session.getLength(),I;do I=this.session.getLine(k);while(/[=:]/.test(I)&&++k<N);do I=this.session.getLine(y);while(/[=:]/.test(I)&&--y>0);y<0&&(y=0),k>=N&&(k=N-1)}var P=this.session.removeFullLines(y,k);P=this.$reAlignText(P,O),this.session.insert({row:y,column:0},P.join(`
|
|
857
|
-
`)+`
|
|
858
|
-
`),O||(R.start.column=0,R.end.column=P[P.length-1].length),this.selection.setRange(R)}else{A.forEach(function(J){S.substractPoint(J.cursor)});var B=0,z=1/0,j=T.map(function(J){var q=J.cursor,re=x.getLine(q.row),ie=re.substr(q.column).search(/\S/g);return ie==-1&&(ie=0),q.column>B&&(B=q.column),ie<z&&(z=ie),ie});T.forEach(function(J,q){var re=J.cursor,ie=B-re.column,Y=j[q]-z;ie>Y?x.insert(re,a.stringRepeat(" ",ie-Y)):x.remove(new d(re.row,re.column,re.row,re.column-ie+Y)),J.start.column=J.end.column=B,J.start.row=J.end.row=re.row,J.cursor=J.end}),S.fromOrientedRange(T[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(x,S){var T=!0,M=!0,A,R,y;return x.map(function(P){var B=P.match(/(\s*)(.*?)(\s*)([=:].*)/);return B?A==null?(A=B[1].length,R=B[2].length,y=B[3].length,B):(A+R+y!=B[1].length+B[2].length+B[3].length&&(M=!1),A!=B[1].length&&(T=!1),A>B[1].length&&(A=B[1].length),R<B[2].length&&(R=B[2].length),y>B[3].length&&(y=B[3].length),B):[P]}).map(S?O:T?M?N:O:I);function k(P){return a.stringRepeat(" ",P)}function O(P){return P[2]?k(A)+P[2]+k(R-P[2].length+y)+P[4].replace(/^([=:])\s+/,"$1 "):P[0]}function N(P){return P[2]?k(A+R-P[2].length)+P[2]+k(y)+P[4].replace(/^([=:])\s+/,"$1 "):P[0]}function I(P){return P[2]?k(A)+P[2]+k(y)+P[4].replace(/^([=:])\s+/,"$1 "):P[0]}}}).call(b.prototype);function _(x,S){return x.row==S.row&&x.column==S.column}r.onSessionChange=function(x){var S=x.session;S&&!S.multiSelect&&(S.$selectionMarkers=[],S.selection.$initRangeList(),S.multiSelect=S.selection),this.multiSelect=S&&S.multiSelect;var T=x.oldSession;T&&(T.multiSelect.off("addRange",this.$onAddRange),T.multiSelect.off("removeRange",this.$onRemoveRange),T.multiSelect.off("multiSelect",this.$onMultiSelect),T.multiSelect.off("singleSelect",this.$onSingleSelect),T.multiSelect.lead.off("change",this.$checkMultiselectChange),T.multiSelect.anchor.off("change",this.$checkMultiselectChange)),S&&(S.multiSelect.on("addRange",this.$onAddRange),S.multiSelect.on("removeRange",this.$onRemoveRange),S.multiSelect.on("multiSelect",this.$onMultiSelect),S.multiSelect.on("singleSelect",this.$onSingleSelect),S.multiSelect.lead.on("change",this.$checkMultiselectChange),S.multiSelect.anchor.on("change",this.$checkMultiselectChange)),S&&this.inMultiSelectMode!=S.selection.inMultiSelectMode&&(S.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function E(x){x.$multiselectOnSessionChange||(x.$onAddRange=x.$onAddRange.bind(x),x.$onRemoveRange=x.$onRemoveRange.bind(x),x.$onMultiSelect=x.$onMultiSelect.bind(x),x.$onSingleSelect=x.$onSingleSelect.bind(x),x.$multiselectOnSessionChange=r.onSessionChange.bind(x),x.$checkMultiselectChange=x.$checkMultiselectChange.bind(x),x.$multiselectOnSessionChange(x),x.on("changeSession",x.$multiselectOnSessionChange),x.on("mousedown",l),x.commands.addCommands(o.defaultCommands),$(x))}function $(x){if(!x.textInput)return;var S=x.textInput.getElement(),T=!1;m.addListener(S,"keydown",function(A){var R=A.keyCode==18&&!(A.ctrlKey||A.shiftKey||A.metaKey);x.$blockSelectEnabled&&R?T||(x.renderer.setMouseCursor("crosshair"),T=!0):T&&M()},x),m.addListener(S,"keyup",M,x),m.addListener(S,"blur",M,x);function M(A){T&&(x.renderer.setMouseCursor(""),T=!1)}}r.MultiSelect=E,t("./config").defineOptions(b.prototype,"editor",{enableMultiselect:{set:function(x){E(this),x?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",l)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",l))},value:!0},enableBlockSelect:{set:function(x){this.$blockSelectEnabled=x},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(t,r,i){var s=t("../../range").Range,d=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(f,l,m){var a=f.getLine(m);return this.foldingStartMarker.test(a)?"start":l=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(a)?"end":""},this.getFoldWidgetRange=function(f,l,m){return null},this.indentationBlock=function(f,l,m){var a=/\S/,o=f.getLine(l),u=o.search(a);if(u!=-1){for(var p=m||o.length,v=f.getLength(),w=l,b=l;++l<v;){var _=f.getLine(l).search(a);if(_!=-1){if(_<=u){var E=f.getTokenAt(l,0);if(!E||E.type!=="string")break}b=l}}if(b>w){var $=f.getLine(b).length;return new s(w,p,b,$)}}},this.openingBracketBlock=function(f,l,m,a,o){var u={row:m,column:a+1},p=f.$findClosingBracket(l,u,o);if(p){var v=f.foldWidgets[p.row];return v==null&&(v=f.getFoldWidget(p.row)),v=="start"&&p.row>u.row&&(p.row--,p.column=f.getLine(p.row).length),s.fromPoints(u,p)}},this.closingBracketBlock=function(f,l,m,a,o){var u={row:m,column:a},p=f.$findOpeningBracket(l,u);if(p)return p.column++,u.column--,s.fromPoints(p,u)}}).call(d.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(t,r,i){var s=t("../line_widgets").LineWidgets,d=t("../lib/dom"),f=t("../range").Range;function l(a,o,u){for(var p=0,v=a.length-1;p<=v;){var w=p+v>>1,b=u(o,a[w]);if(b>0)p=w+1;else if(b<0)v=w-1;else return w}return-(p+1)}function m(a,o,u){var p=a.getAnnotations().sort(f.comparePoints);if(p.length){var v=l(p,{row:o,column:-1},f.comparePoints);v<0&&(v=-v-1),v>=p.length?v=u>0?0:p.length-1:v===0&&u<0&&(v=p.length-1);var w=p[v];if(!(!w||!u)){if(w.row===o){do w=p[v+=u];while(w&&w.row===o);if(!w)return p.slice()}var b=[];o=w.row;do b[u<0?"unshift":"push"](w),w=p[v+=u];while(w&&w.row==o);return b.length&&b}}}r.showErrorMarker=function(a,o){var u=a.session;u.widgetManager||(u.widgetManager=new s(u),u.widgetManager.attach(a));var p=a.getCursorPosition(),v=p.row,w=u.widgetManager.getWidgetsAtRow(v).filter(function(A){return A.type=="errorMarker"})[0];w?w.destroy():v-=o;var b=m(u,v,o),_;if(b){var E=b[0];p.column=(E.pos&&typeof E.column!="number"?E.pos.sc:E.column)||0,p.row=E.row,_=a.renderer.$gutterLayer.$annotations[p.row]}else{if(w)return;_={text:["Looks good!"],className:"ace_ok"}}a.session.unfold(p.row),a.selection.moveToPosition(p);var $={row:p.row,fixedWidth:!0,coverGutter:!0,el:d.createElement("div"),type:"errorMarker"},x=$.el.appendChild(d.createElement("div")),S=$.el.appendChild(d.createElement("div"));S.className="error_widget_arrow "+_.className;var T=a.renderer.$cursorLayer.getPixelPosition(p).left;S.style.left=T+a.renderer.gutterWidth-5+"px",$.el.className="error_widget_wrapper",x.className="error_widget "+_.className,x.innerHTML=_.text.join("<br>"),x.appendChild(d.createElement("div"));var M=function(A,R,y){if(R===0&&(y==="esc"||y==="return"))return $.destroy(),{command:"null"}};$.destroy=function(){a.$mouseHandler.isMousePressed||(a.keyBinding.removeKeyboardHandler(M),u.widgetManager.removeLineWidget($),a.off("changeSelection",$.destroy),a.off("changeSession",$.destroy),a.off("mouseup",$.destroy),a.off("change",$.destroy))},a.keyBinding.addKeyboardHandler(M),a.on("changeSelection",$.destroy),a.on("changeSession",$.destroy),a.on("mouseup",$.destroy),a.on("change",$.destroy),a.session.widgetManager.addLineWidget($),$.el.onmousedown=a.focus.bind(a),a.renderer.scrollCursorIntoView(null,.5,{bottom:$.el.offsetHeight})},d.importCssString(`
|
|
859
|
-
.error_widget_wrapper {
|
|
860
|
-
background: inherit;
|
|
861
|
-
color: inherit;
|
|
862
|
-
border:none
|
|
863
|
-
}
|
|
864
|
-
.error_widget {
|
|
865
|
-
border-top: solid 2px;
|
|
866
|
-
border-bottom: solid 2px;
|
|
867
|
-
margin: 5px 0;
|
|
868
|
-
padding: 10px 40px;
|
|
869
|
-
white-space: pre-wrap;
|
|
870
|
-
}
|
|
871
|
-
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
|
872
|
-
border-color: #ff5a5a
|
|
873
|
-
}
|
|
874
|
-
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
|
875
|
-
border-color: #F1D817
|
|
876
|
-
}
|
|
877
|
-
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
|
878
|
-
border-color: #5a5a5a
|
|
879
|
-
}
|
|
880
|
-
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
|
881
|
-
border-color: #5aaa5a
|
|
882
|
-
}
|
|
883
|
-
.error_widget_arrow {
|
|
884
|
-
position: absolute;
|
|
885
|
-
border: solid 5px;
|
|
886
|
-
border-top-color: transparent!important;
|
|
887
|
-
border-right-color: transparent!important;
|
|
888
|
-
border-left-color: transparent!important;
|
|
889
|
-
top: -5px;
|
|
890
|
-
}
|
|
891
|
-
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(t,r,i){t("./loader_build")(r);var s=t("./lib/dom"),d=t("./lib/event"),f=t("./range").Range,l=t("./editor").Editor,m=t("./edit_session").EditSession,a=t("./undomanager").UndoManager,o=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),r.config=t("./config"),r.edit=function(u,p){if(typeof u=="string"){var v=u;if(u=document.getElementById(v),!u)throw new Error("ace.edit can't find div #"+v)}if(u&&u.env&&u.env.editor instanceof l)return u.env.editor;var w="";if(u&&/input|textarea/i.test(u.tagName)){var b=u;w=b.value,u=s.createElement("pre"),b.parentNode.replaceChild(u,b)}else u&&(w=u.textContent,u.innerHTML="");var _=r.createEditSession(w),E=new l(new o(u),_,p),$={document:_,editor:E,onResize:E.resize.bind(E,null)};return b&&($.textarea=b),d.addListener(window,"resize",$.onResize),E.on("destroy",function(){d.removeListener(window,"resize",$.onResize),$.editor.container.env=null}),E.container.env=E.env=$,E},r.createEditSession=function(u,p){var v=new m(u,p);return v.setUndoManager(new a),v},r.Range=f,r.Editor=l,r.EditSession=m,r.UndoManager=a,r.VirtualRenderer=o,r.version=r.config.version}),function(){ace.require(["ace/ace"],function(t){t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t);for(var r in t)t.hasOwnProperty(r)&&(window.ace[r]=t[r]);window.ace.default=window.ace,n&&(n.exports=window.ace)})}()})(NO);const IO=Tf;var jy=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(i,s){return i[0]===t?(r=s,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),i=this.__entries__[r];return i&&i[1]},e.prototype.set=function(t,r){var i=n(this.__entries__,t);~i?this.__entries__[i][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,i=n(r,t);~i&&r.splice(i,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var i=0,s=this.__entries__;i<s.length;i++){var d=s[i];t.call(r,d[1],d[0])}},e}()}(),$f=typeof window<"u"&&typeof document<"u"&&window.document===document,ou=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),DO=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ou):function(n){return setTimeout(function(){return n(Date.now())},1e3/60)}}(),PO=2;function BO(n,e){var t=!1,r=!1,i=0;function s(){t&&(t=!1,n()),r&&f()}function d(){DO(s)}function f(){var l=Date.now();if(t){if(l-i<PO)return;r=!0}else t=!0,r=!1,setTimeout(d,e);i=l}return f}var FO=20,VO=["top","right","bottom","left","width","height","size","weight"],UO=typeof MutationObserver<"u",WO=function(){function n(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=BO(this.refresh.bind(this),FO)}return n.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},n.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},n.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},n.prototype.updateObservers_=function(){var e=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return e.forEach(function(t){return t.broadcastActive()}),e.length>0},n.prototype.connect_=function(){!$f||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),UO?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!$f||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,i=VO.some(function(s){return!!~r.indexOf(s)});i&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),Gy=function(n,e){for(var t=0,r=Object.keys(e);t<r.length;t++){var i=r[t];Object.defineProperty(n,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return n},Js=function(n){var e=n&&n.ownerDocument&&n.ownerDocument.defaultView;return e||ou},Yy=Au(0,0,0,0);function au(n){return parseFloat(n)||0}function Mv(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.reduce(function(r,i){var s=n["border-"+i+"-width"];return r+au(s)},0)}function HO(n){for(var e=["top","right","bottom","left"],t={},r=0,i=e;r<i.length;r++){var s=i[r],d=n["padding-"+s];t[s]=au(d)}return t}function zO(n){var e=n.getBBox();return Au(0,0,e.width,e.height)}function jO(n){var e=n.clientWidth,t=n.clientHeight;if(!e&&!t)return Yy;var r=Js(n).getComputedStyle(n),i=HO(r),s=i.left+i.right,d=i.top+i.bottom,f=au(r.width),l=au(r.height);if(r.boxSizing==="border-box"&&(Math.round(f+s)!==e&&(f-=Mv(r,"left","right")+s),Math.round(l+d)!==t&&(l-=Mv(r,"top","bottom")+d)),!YO(n)){var m=Math.round(f+s)-e,a=Math.round(l+d)-t;Math.abs(m)!==1&&(f-=m),Math.abs(a)!==1&&(l-=a)}return Au(i.left,i.top,f,l)}var GO=function(){return typeof SVGGraphicsElement<"u"?function(n){return n instanceof Js(n).SVGGraphicsElement}:function(n){return n instanceof Js(n).SVGElement&&typeof n.getBBox=="function"}}();function YO(n){return n===Js(n).document.documentElement}function JO(n){return $f?GO(n)?zO(n):jO(n):Yy}function KO(n){var e=n.x,t=n.y,r=n.width,i=n.height,s=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,d=Object.create(s.prototype);return Gy(d,{x:e,y:t,width:r,height:i,top:t,right:e+r,bottom:i+t,left:e}),d}function Au(n,e,t,r){return{x:n,y:e,width:t,height:r}}var XO=function(){function n(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Au(0,0,0,0),this.target=e}return n.prototype.isActive=function(){var e=JO(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},n.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},n}(),qO=function(){function n(e,t){var r=KO(t);Gy(this,{target:e,contentRect:r})}return n}(),ZO=function(){function n(e,t,r){if(this.activeObservations_=[],this.observations_=new jy,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return n.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Js(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new XO(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Js(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new qO(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),Jy=typeof WeakMap<"u"?new WeakMap:new jy,Ky=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=WO.getInstance(),r=new ZO(e,t,this);Jy.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){Ky.prototype[n]=function(){var e;return(e=Jy.get(this))[n].apply(e,arguments)}});var QO=function(){return typeof ou.ResizeObserver<"u"?ou.ResizeObserver:Ky}();const Rv=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],eL=c.defineComponent({props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...Rv],render(){return c.h("div")},mounted(){const n=this._editor=c.markRaw(IO.edit(this.$el,{placeholder:this.placeholder,readOnly:this.readonly,value:this.value,mode:"ace/mode/"+this.lang,theme:"ace/theme/"+this.theme,wrap:this.wrap,printMargin:this.printMargin,useWorker:!1,minLines:this.minLines,maxLines:this.maxLines,...this.options}));this._contentBackup=this.value,this._isSettingContent=!1,n.on("change",()=>{if(this._isSettingContent)return;const e=n.getValue();this._contentBackup=e,this.$emit("update:value",e)}),Rv.forEach(e=>{const t="on"+c.capitalize(e);typeof this.$.vnode.props[t]=="function"&&n.on(e,this.$emit.bind(this,e))}),this._ro=new QO(()=>n.resize()),this._ro.observe(this.$el),this.$emit("init",n)},beforeUnmount(){var n,e;(n=this._ro)===null||n===void 0||n.disconnect(),(e=this._editor)===null||e===void 0||e.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()}},watch:{value(n){if(this._contentBackup!==n){try{this._isSettingContent=!0,this._editor.setValue(n,1)}finally{this._isSettingContent=!1}this._contentBackup=n}},theme(n){this._editor.setTheme("ace/theme/"+n)},options(n){this._editor.setOptions(n)},readonly(n){this._editor.setReadOnly(n)},placeholder(n){this._editor.setOption("placeholder",n)},wrap(n){this._editor.setWrapBehavioursEnabled(n)},printMargin(n){this._editor.setOption("printMargin",n)},lang(n){this._editor.setOption("mode","ace/mode/"+n)},minLines(n){this._editor.setOption("minLines",n)},maxLines(n){this._editor.setOption("maxLines",n)}}});var Nv={},tL={get exports(){return Nv},set exports(n){Nv=n}};(function(n,e){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,i){var s=t("../lib/oop"),d=t("./text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},f.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};s.inherits(f,d),f.getTagRule=function(l){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},f.getStartRule=function(l){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:l}},f.getEndRule=function(l){return{token:"comment.doc",regex:"\\*\\/",next:l}},r.DocCommentHighlightRules=f}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(t,r,i){var s=t("../lib/oop"),d=t("./doc_comment_highlight_rules").DocCommentHighlightRules,f=t("./text_highlight_rules").TextHighlightRules,l="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",m=function(u){var p=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),v="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",w="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[d.getStartRule("doc-start"),o("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+l+")(\\.)(prototype)(\\.)("+l+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+l+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+v+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:p,regex:l},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:l},{regex:"",token:"empty",next:"no_regex"}],start:[d.getStartRule("doc-start"),o("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[o("function_arguments"),{token:"variable.parameter",regex:l},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:w},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:w},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!u||!u.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(b,_,E){if(this.next=b=="{"?this.nextState:"",b=="{"&&E.length)E.unshift("start",_);else if(b=="}"&&E.length&&(E.shift(),this.next=E.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return b=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:w},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+l+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!u||u.jsx!=!1)&&a.call(this)),this.embedRules(d,"doc-",[d.getEndRule("no_regex")]),this.normalizeRules()};s.inherits(m,f);function a(){var u=l.replace("\\d","\\d\\-"),p={onMatch:function(w,b,_){var E=w.charAt(1)=="/"?2:1;return E==1?(b!=this.nextState?_.unshift(this.next,this.nextState,0):_.unshift(this.next),_[2]++):E==2&&b==this.nextState&&(_[1]--,(!_[1]||_[1]<0)&&(_.shift(),_.shift())),[{type:"meta.tag.punctuation."+(E==1?"":"end-")+"tag-open.xml",value:w.slice(0,E)},{type:"meta.tag.tag-name.xml",value:w.substr(E)}]},regex:"</?"+u,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(p);var v={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[v,p,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(w,b,_){return b==_[0]&&_.shift(),w.length==2&&(_[0]==this.nextState&&_[1]--,(!_[1]||_[1]<0)&&_.splice(0,2)),this.next=_[0]||"start",[{type:this.token,value:w}]},nextState:"jsx"},v,o("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:u},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},p],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function o(u){return[{token:"comment",regex:/\/\*/,next:[d.getTagRule(),{token:"comment",regex:"\\*\\/",next:u||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[d.getTagRule(),{token:"comment",regex:"$|^",next:u||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=m}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,i){var s=t("../range").Range,d=function(){};(function(){this.checkOutdent=function(f,l){return/^\s+$/.test(f)?/^\s*\}/.test(l):!1},this.autoOutdent=function(f,l){var m=f.getLine(l),a=m.match(/^(\s*\})/);if(!a)return 0;var o=a[1].length,u=f.findMatchingBracket({row:l,column:o});if(!u||u.row==l)return 0;var p=this.$getIndent(f.getLine(u.row));f.replace(new s(l,0,l,o-1),p)},this.$getIndent=function(f){return f.match(/^\s*/)[0]}}).call(d.prototype),r.MatchingBraceOutdent=d}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,i){var s=t("../../lib/oop"),d=t("../../range").Range,f=t("./fold_mode").FoldMode,l=r.FoldMode=function(m){m&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+m.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+m.end)))};s.inherits(l,f),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(m,a,o){var u=m.getLine(o);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var p=this._getFoldWidgetBase(m,a,o);return!p&&this.startRegionRe.test(u)?"start":p},this.getFoldWidgetRange=function(m,a,o,u){var p=m.getLine(o);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(m,p,o);var b=p.match(this.foldingStartMarker);if(b){var v=b.index;if(b[1])return this.openingBracketBlock(m,b[1],o,v);var w=m.getCommentFoldRange(o,v+b[0].length,1);return w&&!w.isMultiLine()&&(u?w=this.getSectionRange(m,o):a!="all"&&(w=null)),w}if(a!=="markbegin"){var b=p.match(this.foldingStopMarker);if(b){var v=b.index+b[0].length;return b[1]?this.closingBracketBlock(m,b[1],o,v):m.getCommentFoldRange(o,v,-1)}}},this.getSectionRange=function(m,a){var o=m.getLine(a),u=o.search(/\S/),p=a,v=o.length;a=a+1;for(var w=a,b=m.getLength();++a<b;){o=m.getLine(a);var _=o.search(/\S/);if(_!==-1){if(u>_)break;var E=this.getFoldWidgetRange(m,"all",a);if(E){if(E.start.row<=p)break;if(E.isMultiLine())a=E.end.row;else if(u==_)break}w=a}}return new d(p,v,w,m.getLine(w).length)},this.getCommentRegionBlock=function(m,a,o){for(var u=a.search(/\s*$/),p=m.getLength(),v=o,w=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,b=1;++o<p;){a=m.getLine(o);var _=w.exec(a);if(_&&(_[1]?b--:b++,!b))break}var E=o;if(E>v)return new d(v,u,E,a.length)}}.call(l.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(t,r,i){var s=t("../lib/oop"),d=t("./text").Mode,f=t("./javascript_highlight_rules").JavaScriptHighlightRules,l=t("./matching_brace_outdent").MatchingBraceOutdent,m=t("../worker/worker_client").WorkerClient,a=t("./behaviour/cstyle").CstyleBehaviour,o=t("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=f,this.$outdent=new l,this.$behaviour=new a,this.foldingRules=new o};s.inherits(u,d),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(p,v,w){var b=this.$getIndent(v),_=this.getTokenizer().getLineTokens(v,p),E=_.tokens,$=_.state;if(E.length&&E[E.length-1].type=="comment")return b;if(p=="start"||p=="no_regex"){var x=v.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);x&&(b+=w)}else if(p=="doc-start"){if($=="start"||$=="no_regex")return"";var x=v.match(/^\s*(\/?)\*/);x&&(x[1]&&(b+=" "),b+="* ")}return b},this.checkOutdent=function(p,v,w){return this.$outdent.checkOutdent(v,w)},this.autoOutdent=function(p,v,w){this.$outdent.autoOutdent(v,w)},this.createWorker=function(p){var v=new m(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return v.attachToDocument(p.getDocument()),v.on("annotate",function(w){p.setAnnotations(w.data)}),v.on("terminate",function(){p.clearAnnotations()}),v},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(u.prototype),r.Mode=u}),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(t,r,i){var s=t("../lib/oop");t("../lib/lang");var d=t("./text_highlight_rules").TextHighlightRules,f=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",l=r.supportFunction="rgb|rgba|url|attr|counter|counters",m=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",a=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",o=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",u=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",p=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",v=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",w=function(){var b=this.createKeywordMapper({"support.function":l,"support.constant":m,"support.type":f,"support.constant.color":a,"support.constant.fonts":o},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:u},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+u+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:u},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:p},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:v},{include:"url"},{token:b,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};s.inherits(w,d),r.CssHighlightRules=w}),ace.define("ace/mode/css_completions",["require","exports","module"],function(t,r,i){var s={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},d=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var f=document.createElement("c").style;for(var l in f)if(typeof f[l]=="string"){var m=l.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()});s.hasOwnProperty(m)||(s[m]=1)}}this.completionsDefined=!0},this.getCompletions=function(f,l,m,a){if(this.completionsDefined||this.defineCompletions(),f==="ruleset"||l.$mode.$id=="ace/mode/scss"){var o=l.getLine(m.row).substr(0,m.column),u=/\([^)]*$/.test(o);return u&&(o=o.substr(o.lastIndexOf("(")+1)),/:[^;]+$/.test(o)?this.getPropertyValueCompletions(f,l,m,a):this.getPropertyCompletions(f,l,m,a,u)}return[]},this.getPropertyCompletions=function(f,l,m,a,o){o=o||!1;var u=Object.keys(s);return u.map(function(p){return{caption:p,snippet:p+": $0"+(o?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(f,l,m,a){var o=l.getLine(m.row).substr(0,m.column),u=(/([\w\-]+):[^:]*$/.exec(o)||{})[1];if(!u)return[];var p=[];return u in s&&typeof s[u]=="object"&&(p=Object.keys(s[u])),p.map(function(v){return{caption:v,snippet:v,meta:"property value",score:1e6}})}}).call(d.prototype),r.CssCompletions=d}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(t,r,i){var s=t("../../lib/oop");t("../behaviour").Behaviour;var d=t("./cstyle").CstyleBehaviour,f=t("../../token_iterator").TokenIterator,l=function(){this.inherit(d),this.add("colon","insertion",function(m,a,o,u,p){if(p===":"&&o.selection.isEmpty()){var v=o.getCursorPosition(),w=new f(u,v.row,v.column),b=w.getCurrentToken();if(b&&b.value.match(/\s+/)&&(b=w.stepBackward()),b&&b.type==="support.type"){var _=u.doc.getLine(v.row),E=_.substring(v.column,v.column+1);if(E===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(_.substring(v.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(m,a,o,u,p){var v=u.doc.getTextRange(p);if(!p.isMultiLine()&&v===":"){var w=o.getCursorPosition(),b=new f(u,w.row,w.column),_=b.getCurrentToken();if(_&&_.value.match(/\s+/)&&(_=b.stepBackward()),_&&_.type==="support.type"){var E=u.doc.getLine(p.start.row),$=E.substring(p.end.column,p.end.column+1);if($===";")return p.end.column++,p}}}),this.add("semicolon","insertion",function(m,a,o,u,p){if(p===";"&&o.selection.isEmpty()){var v=o.getCursorPosition(),w=u.doc.getLine(v.row),b=w.substring(v.column,v.column+1);if(b===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(m,a,o,u,p){if(p==="!"&&o.selection.isEmpty()){var v=o.getCursorPosition(),w=u.doc.getLine(v.row);if(/^\s*(;|}|$)/.test(w.substring(v.column)))return{text:"!important",selection:[10,10]}}})};s.inherits(l,d),r.CssBehaviour=l}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(t,r,i){var s=t("../lib/oop"),d=t("./text").Mode,f=t("./css_highlight_rules").CssHighlightRules,l=t("./matching_brace_outdent").MatchingBraceOutdent,m=t("../worker/worker_client").WorkerClient,a=t("./css_completions").CssCompletions,o=t("./behaviour/css").CssBehaviour,u=t("./folding/cstyle").FoldMode,p=function(){this.HighlightRules=f,this.$outdent=new l,this.$behaviour=new o,this.$completer=new a,this.foldingRules=new u};s.inherits(p,d),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(v,w,b){var _=this.$getIndent(w),E=this.getTokenizer().getLineTokens(w,v).tokens;if(E.length&&E[E.length-1].type=="comment")return _;var $=w.match(/^.*\{\s*$/);return $&&(_+=b),_},this.checkOutdent=function(v,w,b){return this.$outdent.checkOutdent(w,b)},this.autoOutdent=function(v,w,b){this.$outdent.autoOutdent(w,b)},this.getCompletions=function(v,w,b,_){return this.$completer.getCompletions(v,w,b,_)},this.createWorker=function(v){var w=new m(["ace"],"ace/mode/css_worker","Worker");return w.attachToDocument(v.getDocument()),w.on("annotate",function(b){v.setAnnotations(b.data)}),w.on("terminate",function(){v.clearAnnotations()}),w},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(p.prototype),r.Mode=p}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,i){var s=t("../lib/oop"),d=t("./text_highlight_rules").TextHighlightRules,f=function(l){var m="[_:a-zA-ZÀ-][-_:.a-zA-Z0-9À-]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+m+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:m},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+m+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+m+":)?"+m+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:m},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===f&&this.normalizeRules()};(function(){this.embedTagRules=function(l,m,a){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(<)("+a+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:m+"start"}]}),this.$rules[a+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(o,u,p){return p.splice(0),this.token}}],this.embedRules(l,m,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(</)("+a+"(?=\\s|>|$))",next:a+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(d.prototype),s.inherits(f,d),r.XmlHighlightRules=f}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(t,r,i){var s=t("../lib/oop"),d=t("../lib/lang"),f=t("./css_highlight_rules").CssHighlightRules,l=t("./javascript_highlight_rules").JavaScriptHighlightRules,m=t("./xml_highlight_rules").XmlHighlightRules,a=d.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),o=function(){m.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(u,p){var v=a[p];return["meta.tag.punctuation."+(u=="<"?"":"end-")+"tag-open.xml","meta.tag"+(v?"."+v:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(f,"css-","style"),this.embedTagRules(new l({jsx:!1}).getRules(),"js-","script"),this.constructor===o&&this.normalizeRules()};s.inherits(o,m),r.HtmlHighlightRules=o}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(t,r,i){var s=t("../../lib/oop"),d=t("../behaviour").Behaviour,f=t("../../token_iterator").TokenIterator;t("../../lib/lang");function l(a,o){return a&&a.type.lastIndexOf(o+".xml")>-1}var m=function(){this.add("string_dquotes","insertion",function(a,o,u,p,v){if(v=='"'||v=="'"){var w=v,b=p.doc.getTextRange(u.getSelectionRange());if(b!==""&&b!=="'"&&b!='"'&&u.getWrapBehavioursEnabled())return{text:w+b+w,selection:!1};var _=u.getCursorPosition(),E=p.doc.getLine(_.row),$=E.substring(_.column,_.column+1),x=new f(p,_.row,_.column),S=x.getCurrentToken();if($==w&&(l(S,"attribute-value")||l(S,"string")))return{text:"",selection:[1,1]};if(S||(S=x.stepBackward()),!S)return;for(;l(S,"tag-whitespace")||l(S,"whitespace");)S=x.stepBackward();var T=!$||$.match(/\s/);if(l(S,"attribute-equals")&&(T||$==">")||l(S,"decl-attribute-equals")&&(T||$=="?"))return{text:w+w,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(a,o,u,p,v){var w=p.doc.getTextRange(v);if(!v.isMultiLine()&&(w=='"'||w=="'")){var b=p.doc.getLine(v.start.row),_=b.substring(v.start.column+1,v.start.column+2);if(_==w)return v.end.column++,v}}),this.add("autoclosing","insertion",function(a,o,u,p,v){if(v==">"){var w=u.getSelectionRange().start,b=new f(p,w.row,w.column),_=b.getCurrentToken()||b.stepBackward();if(!_||!(l(_,"tag-name")||l(_,"tag-whitespace")||l(_,"attribute-name")||l(_,"attribute-equals")||l(_,"attribute-value"))||l(_,"reference.attribute-value"))return;if(l(_,"attribute-value")){var E=b.getCurrentTokenColumn()+_.value.length;if(w.column<E)return;if(w.column==E){var $=b.stepForward();if($&&l($,"attribute-value"))return;b.stepBackward()}}if(/^\s*>/.test(p.getLine(w.row).slice(w.column)))return;for(;!l(_,"tag-name");)if(_=b.stepBackward(),_.value=="<"){_=b.stepForward();break}var x=b.getCurrentTokenRow(),S=b.getCurrentTokenColumn();if(l(b.stepBackward(),"end-tag-open"))return;var T=_.value;return x==w.row&&(T=T.substring(0,w.column-S)),this.voidElements.hasOwnProperty(T.toLowerCase())?void 0:{text:"></"+T+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(a,o,u,p,v){if(v==`
|
|
892
|
-
`){var w=u.getCursorPosition(),b=p.getLine(w.row),_=new f(p,w.row,w.column),E=_.getCurrentToken();if(E&&E.type.indexOf("tag-close")!==-1){if(E.value=="/>")return;for(;E&&E.type.indexOf("tag-name")===-1;)E=_.stepBackward();if(!E)return;var $=E.value,x=_.getCurrentTokenRow();if(E=_.stepBackward(),!E||E.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[$]){var S=p.getTokenAt(w.row,w.column+1),b=p.getLine(x),T=this.$getIndent(b),M=T+p.getTabString();return S&&S.value==="</"?{text:`
|
|
893
|
-
`+M+`
|
|
894
|
-
`+T,selection:[1,M.length,1,M.length]}:{text:`
|
|
895
|
-
`+M}}}}})};s.inherits(m,d),r.XmlBehaviour=m}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,r,i){var s=t("../../lib/oop"),d=t("./fold_mode").FoldMode,f=r.FoldMode=function(l,m){this.defaultMode=l,this.subModes=m};s.inherits(f,d),function(){this.$getMode=function(l){typeof l!="string"&&(l=l[0]);for(var m in this.subModes)if(l.indexOf(m)===0)return this.subModes[m];return null},this.$tryMode=function(l,m,a,o){var u=this.$getMode(l);return u?u.getFoldWidget(m,a,o):""},this.getFoldWidget=function(l,m,a){return this.$tryMode(l.getState(a-1),l,m,a)||this.$tryMode(l.getState(a),l,m,a)||this.defaultMode.getFoldWidget(l,m,a)},this.getFoldWidgetRange=function(l,m,a){var o=this.$getMode(l.getState(a-1));return(!o||!o.getFoldWidget(l,m,a))&&(o=this.$getMode(l.getState(a))),(!o||!o.getFoldWidget(l,m,a))&&(o=this.defaultMode),o.getFoldWidgetRange(l,m,a)}}.call(f.prototype)}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,i){var s=t("../../lib/oop"),d=t("../../range").Range,f=t("./fold_mode").FoldMode,l=r.FoldMode=function(o,u){f.call(this),this.voidElements=o||{},this.optionalEndTags=s.mixin({},this.voidElements),u&&s.mixin(this.optionalEndTags,u)};s.inherits(l,f);var m=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function a(o,u){return o.type.lastIndexOf(u+".xml")>-1}(function(){this.getFoldWidget=function(o,u,p){var v=this._getFirstTagInLine(o,p);return v?v.closing||!v.tagName&&v.selfClosing?u==="markbeginend"?"end":"":!v.tagName||v.selfClosing||this.voidElements.hasOwnProperty(v.tagName.toLowerCase())||this._findEndTagInLine(o,p,v.tagName,v.end.column)?"":"start":this.getCommentFoldWidget(o,p)},this.getCommentFoldWidget=function(o,u){return/comment/.test(o.getState(u))&&/<!-/.test(o.getLine(u))?"start":""},this._getFirstTagInLine=function(o,u){for(var p=o.getTokens(u),v=new m,w=0;w<p.length;w++){var b=p[w];if(a(b,"tag-open")){if(v.end.column=v.start.column+b.value.length,v.closing=a(b,"end-tag-open"),b=p[++w],!b)return null;for(v.tagName=b.value,v.end.column+=b.value.length,w++;w<p.length;w++)if(b=p[w],v.end.column+=b.value.length,a(b,"tag-close")){v.selfClosing=b.value=="/>";break}return v}else if(a(b,"tag-close"))return v.selfClosing=b.value=="/>",v;v.start.column+=b.value.length}return null},this._findEndTagInLine=function(o,u,p,v){for(var w=o.getTokens(u),b=0,_=0;_<w.length;_++){var E=w[_];if(b+=E.value.length,!(b<v)&&a(E,"end-tag-open")&&(E=w[_+1],E&&E.value==p))return!0}return!1},this.getFoldWidgetRange=function(o,u,p){var v=o.getMatchingTags({row:p,column:0});return v?new d(v.openTag.end.row,v.openTag.end.column,v.closeTag.start.row,v.closeTag.start.column):this.getCommentFoldWidget(o,p)&&o.getCommentFoldRange(p,o.getLine(p).length)}}).call(l.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(t,r,i){var s=t("../../lib/oop"),d=t("./mixed").FoldMode,f=t("./xml").FoldMode,l=t("./cstyle").FoldMode,m=r.FoldMode=function(a,o){d.call(this,new f(a,o),{"js-":new l,"css-":new l})};s.inherits(m,d)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(t,r,i){var s=t("../token_iterator").TokenIterator,d=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],f=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],l=d.concat(f),m={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},a=Object.keys(m);function o(w,b){return w.type.lastIndexOf(b+".xml")>-1}function u(w,b){for(var _=new s(w,b.row,b.column),E=_.getCurrentToken();E&&!o(E,"tag-name");)E=_.stepBackward();if(E)return E.value}function p(w,b){for(var _=new s(w,b.row,b.column),E=_.getCurrentToken();E&&!o(E,"attribute-name");)E=_.stepBackward();if(E)return E.value}var v=function(){};(function(){this.getCompletions=function(w,b,_,E){var $=b.getTokenAt(_.row,_.column);if(!$)return[];if(o($,"tag-name")||o($,"tag-open")||o($,"end-tag-open"))return this.getTagCompletions(w,b,_,E);if(o($,"tag-whitespace")||o($,"attribute-name"))return this.getAttributeCompletions(w,b,_,E);if(o($,"attribute-value"))return this.getAttributeValueCompletions(w,b,_,E);var x=b.getLine(_.row).substr(0,_.column);return/&[a-z]*$/i.test(x)?this.getHTMLEntityCompletions(w,b,_,E):[]},this.getTagCompletions=function(w,b,_,E){return a.map(function($){return{value:$,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(w,b,_,E){var $=u(b,_);if(!$)return[];var x=l;return $ in m&&(x=x.concat(Object.keys(m[$]))),x.map(function(S){return{caption:S,snippet:S+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(w,b,_,E){var $=u(b,_),x=p(b,_);if(!$)return[];var S=[];return $ in m&&x in m[$]&&typeof m[$][x]=="object"&&(S=Object.keys(m[$][x])),S.map(function(T){return{caption:T,snippet:T,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(w,b,_,E){var $=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return $.map(function(x){return{caption:x,snippet:x,meta:"html entity",score:1e6}})}}).call(v.prototype),r.HtmlCompletions=v}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(t,r,i){var s=t("../lib/oop"),d=t("../lib/lang"),f=t("./text").Mode,l=t("./javascript").Mode,m=t("./css").Mode,a=t("./html_highlight_rules").HtmlHighlightRules,o=t("./behaviour/xml").XmlBehaviour,u=t("./folding/html").FoldMode,p=t("./html_completions").HtmlCompletions,v=t("../worker/worker_client").WorkerClient,w=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],b=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],_=function(E){this.fragmentContext=E&&E.fragmentContext,this.HighlightRules=a,this.$behaviour=new o,this.$completer=new p,this.createModeDelegates({"js-":l,"css-":m}),this.foldingRules=new u(this.voidElements,d.arrayToMap(b))};s.inherits(_,f),function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=d.arrayToMap(w),this.getNextLineIndent=function(E,$,x){return this.$getIndent($)},this.checkOutdent=function(E,$,x){return!1},this.getCompletions=function(E,$,x,S){return this.$completer.getCompletions(E,$,x,S)},this.createWorker=function(E){if(this.constructor==_){var $=new v(["ace"],"ace/mode/html_worker","Worker");return $.attachToDocument(E.getDocument()),this.fragmentContext&&$.call("setOptions",[{context:this.fragmentContext}]),$.on("error",function(x){E.setAnnotations(x.data)}),$.on("terminate",function(){E.clearAnnotations()}),$}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}.call(_.prototype),r.Mode=_}),function(){ace.require(["ace/mode/html"],function(t){n&&(n.exports=t)})}()})(tL);var Iv={},nL={get exports(){return Iv},set exports(n){Iv=n}};(function(n,e){ace.define("ace/theme/chrome.css",["require","exports","module"],function(t,r,i){i.exports=`.ace-chrome .ace_gutter {
|
|
896
|
-
background: #ebebeb;
|
|
897
|
-
color: #333;
|
|
898
|
-
overflow : hidden;
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
.ace-chrome .ace_print-margin {
|
|
902
|
-
width: 1px;
|
|
903
|
-
background: #e8e8e8;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
.ace-chrome {
|
|
907
|
-
background-color: #FFFFFF;
|
|
908
|
-
color: black;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
.ace-chrome .ace_cursor {
|
|
912
|
-
color: black;
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
.ace-chrome .ace_invisible {
|
|
916
|
-
color: rgb(191, 191, 191);
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
.ace-chrome .ace_constant.ace_buildin {
|
|
920
|
-
color: rgb(88, 72, 246);
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
.ace-chrome .ace_constant.ace_language {
|
|
924
|
-
color: rgb(88, 92, 246);
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
.ace-chrome .ace_constant.ace_library {
|
|
928
|
-
color: rgb(6, 150, 14);
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
.ace-chrome .ace_invalid {
|
|
932
|
-
background-color: rgb(153, 0, 0);
|
|
933
|
-
color: white;
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
.ace-chrome .ace_fold {
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
.ace-chrome .ace_support.ace_function {
|
|
940
|
-
color: rgb(60, 76, 114);
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
.ace-chrome .ace_support.ace_constant {
|
|
944
|
-
color: rgb(6, 150, 14);
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
.ace-chrome .ace_support.ace_type,
|
|
948
|
-
.ace-chrome .ace_support.ace_class
|
|
949
|
-
.ace-chrome .ace_support.ace_other {
|
|
950
|
-
color: rgb(109, 121, 222);
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
.ace-chrome .ace_variable.ace_parameter {
|
|
954
|
-
font-style:italic;
|
|
955
|
-
color:#FD971F;
|
|
956
|
-
}
|
|
957
|
-
.ace-chrome .ace_keyword.ace_operator {
|
|
958
|
-
color: rgb(104, 118, 135);
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
.ace-chrome .ace_comment {
|
|
962
|
-
color: #236e24;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
.ace-chrome .ace_comment.ace_doc {
|
|
966
|
-
color: #236e24;
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
.ace-chrome .ace_comment.ace_doc.ace_tag {
|
|
970
|
-
color: #236e24;
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
.ace-chrome .ace_constant.ace_numeric {
|
|
974
|
-
color: rgb(0, 0, 205);
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
.ace-chrome .ace_variable {
|
|
978
|
-
color: rgb(49, 132, 149);
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
.ace-chrome .ace_xml-pe {
|
|
982
|
-
color: rgb(104, 104, 91);
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
.ace-chrome .ace_entity.ace_name.ace_function {
|
|
986
|
-
color: #0000A2;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
.ace-chrome .ace_heading {
|
|
991
|
-
color: rgb(12, 7, 255);
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
.ace-chrome .ace_list {
|
|
995
|
-
color:rgb(185, 6, 144);
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
.ace-chrome .ace_marker-layer .ace_selection {
|
|
999
|
-
background: rgb(181, 213, 255);
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
.ace-chrome .ace_marker-layer .ace_step {
|
|
1003
|
-
background: rgb(252, 255, 0);
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
.ace-chrome .ace_marker-layer .ace_stack {
|
|
1007
|
-
background: rgb(164, 229, 101);
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
.ace-chrome .ace_marker-layer .ace_bracket {
|
|
1011
|
-
margin: -1px 0 0 -1px;
|
|
1012
|
-
border: 1px solid rgb(192, 192, 192);
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
.ace-chrome .ace_marker-layer .ace_active-line {
|
|
1016
|
-
background: rgba(0, 0, 0, 0.07);
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
.ace-chrome .ace_gutter-active-line {
|
|
1020
|
-
background-color : #dcdcdc;
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
.ace-chrome .ace_marker-layer .ace_selected-word {
|
|
1024
|
-
background: rgb(250, 250, 255);
|
|
1025
|
-
border: 1px solid rgb(200, 200, 250);
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
.ace-chrome .ace_storage,
|
|
1029
|
-
.ace-chrome .ace_keyword,
|
|
1030
|
-
.ace-chrome .ace_meta.ace_tag {
|
|
1031
|
-
color: rgb(147, 15, 128);
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
.ace-chrome .ace_string.ace_regex {
|
|
1035
|
-
color: rgb(255, 0, 0)
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
.ace-chrome .ace_string {
|
|
1039
|
-
color: #1A1AA6;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
.ace-chrome .ace_entity.ace_other.ace_attribute-name {
|
|
1043
|
-
color: #994409;
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
.ace-chrome .ace_indent-guide {
|
|
1047
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
.ace-chrome .ace_indent-guide-active {
|
|
1051
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
1052
|
-
}
|
|
1053
|
-
`}),ace.define("ace/theme/chrome",["require","exports","module","ace/theme/chrome.css","ace/lib/dom"],function(t,r,i){r.isDark=!1,r.cssClass="ace-chrome",r.cssText=t("./chrome.css");var s=t("../lib/dom");s.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/chrome"],function(t){n&&(n.exports=t)})}()})(nL);const rL={placeholder:{type:String,default:""},modelValue:{type:[String,Number,Date],default:null},required:{type:Boolean,default:!1},disabled:Boolean,label:String,tooltip:String,name:{type:String,default:"Field"},errorMessage:String},iL={"update:modelValue":n=>rs(n)||Li(n)||Ny(n)},sL=c.defineComponent({__name:"vc-editor",props:rL,emits:iL,setup(n,{emit:e}){const t=n,r=c.ref();c.watch(()=>t.modelValue,s=>{let d=c.unref(s);e("update:modelValue",d)});function i(){e("update:modelValue",r.value)}return(s,d)=>{const f=c.resolveComponent("VcLabel"),l=c.resolveComponent("VcHint");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-editor",[{"vc-editor_error":s.errorMessage,"vc-editor_disabled":s.disabled}]])},[s.label?(c.openBlock(),c.createBlock(f,{key:0,class:"tw-mb-2",required:s.required},c.createSlots({default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(s.label),1)]),_:2},[s.tooltip?{name:"tooltip",fn:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(s.tooltip),1)]),key:"0"}:void 0]),1032,["required"])):c.createCommentVNode("",!0),c.createVNode(c.unref(eL),{class:"tw-border tw-border-solid tw-border-[color:var(--editor-border-color)] tw-rounded-[var(--editor-border-radius)] tw-h-[200px]",value:r.value,"onUpdate:value":d[0]||(d[0]=m=>r.value=m),lang:"html",theme:"chrome",onInput:i},null,8,["value"]),s.errorMessage?c.renderSlot(s.$slots,"error",{key:1},()=>[c.createVNode(l,{class:"vc-editor__error"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(s.errorMessage),1)]),_:1})]):c.createCommentVNode("",!0)],2)}}});const Xy=sL,oL={};function aL(n,e){return c.openBlock(),c.createElementBlock("form",null,[c.renderSlot(n.$slots,"default",{},()=>[c.createTextVNode("vc-form")])])}const lL=ku(oL,[["render",aL]]),kd=lL,uL={variant:{type:String,default:"gallery"},loading:{type:Boolean,default:!1},accept:{type:String,default:".jpg, .png, .jpeg"},multiple:{type:Boolean,default:!1},rules:[String,Object],name:{type:String,default:"Gallery"}},cL={upload:n=>!!n},hL={class:"tw-flex tw-flex-col tw-flex-1"},fL=["onDrop"],dL={class:"tw-text-[#9db0be] tw-text-center tw-text-lg tw-leading-lg tw-mt-4"},pL=c.createElementVNode("span",null,"Drag and drop file here or",-1),mL=c.createElementVNode("br",null,null,-1),gL=["accept","multiple","name"],vL=c.defineComponent({__name:"vc-file-upload",props:uL,emits:cL,setup(n,{emit:e}){const t=n,r=c.getCurrentInstance();let i=c.unref(t.rules)||"";const{errorMessage:s,handleChange:d,validate:f}=Zt.useField(`${t.name==="Gallery"?r?.uid:t.name}`,i),l=c.ref(),m=async u=>{if(await d(u.target),(await f()).valid){const w=u.target.files;w&&w.length&&e("upload",w)}};function a(){l.value.value="",l.value.click()}function o(u){const p=u.dataTransfer?.files;p&&p.length&&e("upload",p)}return(u,p)=>{const v=c.resolveComponent("VcLoading"),w=c.resolveComponent("VcIcon"),b=c.resolveComponent("VcLink"),_=c.resolveComponent("VcHint");return c.openBlock(),c.createElementBlock("div",hL,[c.createElementVNode("div",{class:c.normalizeClass(["vc-file-upload tw-relative tw-h-[155px] tw-box-border tw-border tw-border-dashed tw-border-[#c8dbea] tw-rounded-[6px] tw-p-2 tw-p-4 tw-flex tw-flex-col tw-items-center tw-justify-center",`vc-file-upload_${u.variant}`]),onDrop:c.withModifiers(o,["stop","prevent"]),onDrag:p[0]||(p[0]=c.withModifiers(()=>{},["stop","prevent"])),onDragstart:p[1]||(p[1]=c.withModifiers(()=>{},["stop","prevent"])),onDragend:p[2]||(p[2]=c.withModifiers(()=>{},["stop","prevent"])),onDragover:p[3]||(p[3]=c.withModifiers(()=>{},["stop","prevent"])),onDragenter:p[4]||(p[4]=c.withModifiers(()=>{},["stop","prevent"])),onDragleave:p[5]||(p[5]=c.withModifiers(()=>{},["stop","prevent"]))},[c.createVNode(v,{active:u.loading},null,8,["active"]),c.createVNode(w,{class:"tw-text-[#c8dbea]",icon:"fas fa-cloud-upload-alt",size:"xxl"}),c.createElementVNode("div",dL,[pL,c.createTextVNode(" "),mL,c.createVNode(b,{onClick:a},{default:c.withCtx(()=>[c.createTextVNode("browse your files")]),_:1})]),c.createElementVNode("input",{ref_key:"uploader",ref:l,type:"file",hidden:"",onChange:m,accept:u.accept,multiple:u.multiple,name:u.name},null,40,gL)],42,fL),c.unref(s)?c.renderSlot(u.$slots,"error",{key:0},()=>[c.createVNode(_,{class:"vc-input__error"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(s)),1)]),_:1})]):c.createCommentVNode("",!0)])}}});const xd=vL,wL={modelValue:{type:[String,Number,Date],default:null},label:String,placeholder:String,type:{type:String,default:"text"},hint:String,clearable:{type:Boolean,default:!1},prefix:String,suffix:String,name:{type:String,default:"Field"},loading:Boolean,debounce:[String,Number],disabled:{type:Boolean,default:!1},autofocus:Boolean,error:Boolean,errorMessage:String,maxlength:{type:[String,Number],default:"1024"},tooltip:String,required:{type:Boolean,default:!1}},yL={"update:modelValue":n=>rs(n)||Li(n)||Ny(n)||n===null},bL={class:"tw-flex tw-flex-nowrap tw-items-start"},SL={class:"tw-relative tw-flex tw-flex-auto tw-text-left"},_L={key:0,class:"tw-flex tw-items-center tw-flex-nowrap tw-pr-3"},CL={class:"tw-flex tw-flex-col tw-flex-nowrap tw-flex-auto tw-relative"},EL={class:"vc-input__field-wrapper"},kL={class:"tw-flex tw-flex-nowrap tw-flex-auto tw-h-full"},xL={key:0,class:"tw-flex tw-items-center tw-flex-nowrap tw-pr-3"},AL={class:"vc-input__field"},TL={key:0,class:"tw-flex tw-items-center tw-flex-wrap tw-pr-3 tw-pointer-events-none"},$L=["placeholder","type","disabled","name","maxlength","autofocus","max"],OL={key:1,class:"tw-flex tw-items-center tw-flex-wrap tw-pl-3 tw-pointer-events-none"},LL={key:1,class:"tw-flex tw-items-center tw-flex-nowrap tw-pl-3"},ML={key:2,class:"tw-flex tw-items-center tw-flex-nowrap tw-pl-3"},RL={class:"tw-absolute tw-translate-y-full tw-left-0 tw-right-0 tw-bottom-0 tw-min-h-[20px]"},NL={key:0},IL={key:1},DL={key:1,class:"tw-flex tw-items-center tw-flex-nowrap tw-pl-3"},PL=c.defineComponent({__name:"vc-input",props:wL,emits:yL,setup(n,{emit:e}){const t=n;let r,i;const s=c.ref(),d=c.ref(),f=c.ref(c.unref(t.type)),l=c.computed(()=>t.type==="date"&&"9999-12-31");c.watch(()=>t.modelValue,()=>{s.value!==t.modelValue&&(s.value=t.modelValue)},{immediate:!0});function m(u){if(!u||!u.target)return;const p=u.target.value;a(p)}function a(u){i=()=>{t.modelValue!==u&&e("update:modelValue",u),i=void 0},t.debounce!==void 0?(clearTimeout(r),r=setTimeout(i,+t.debounce)):i()}function o(){s.value=null,e("update:modelValue",null)}return(u,p)=>{const v=c.resolveComponent("VcLabel"),w=c.resolveComponent("VcIcon"),b=c.resolveComponent("VcHint");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-input",[`vc-input_${u.type}`,{"vc-input_clearable":u.clearable,"vc-input_error":u.error,"vc-input_disabled":u.disabled,"tw-pb-[20px]":u.error||u.hint}]])},[u.label?(c.openBlock(),c.createBlock(v,{key:0,class:"tw-mb-2",required:u.required},c.createSlots({default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(u.label),1)]),_:2},[u.tooltip?{name:"tooltip",fn:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(u.tooltip),1)]),key:"0"}:void 0]),1032,["required"])):c.createCommentVNode("",!0),c.createElementVNode("div",bL,[c.createElementVNode("div",SL,[u.$slots.prepend?(c.openBlock(),c.createElementBlock("div",_L,[c.renderSlot(u.$slots,"prepend")])):c.createCommentVNode("",!0),c.createElementVNode("div",CL,[c.createElementVNode("div",EL,[c.createElementVNode("div",kL,[u.$slots["prepend-inner"]?(c.openBlock(),c.createElementBlock("div",xL,[c.renderSlot(u.$slots,"prepend-inner")])):c.createCommentVNode("",!0),c.createElementVNode("div",AL,[u.prefix?(c.openBlock(),c.createElementBlock("div",TL,c.toDisplayString(u.prefix),1)):c.createCommentVNode("",!0),c.renderSlot(u.$slots,"control",{editable:u.disabled,focused:u.autofocus,modelValue:s.value,emitValue:a,placeholder:u.placeholder},()=>[c.withDirectives(c.createElementVNode("input",{placeholder:u.placeholder,type:f.value,"onUpdate:modelValue":p[0]||(p[0]=_=>s.value=_),disabled:u.disabled,onInput:m,ref_key:"inputRef",ref:d,name:u.name,maxlength:u.maxlength,autofocus:u.autofocus,max:c.unref(l),class:"vc-input__input"},null,40,$L),[[c.vModelDynamic,s.value]])]),u.suffix?(c.openBlock(),c.createElementBlock("div",OL,c.toDisplayString(u.suffix),1)):c.createCommentVNode("",!0),u.clearable&&u.modelValue&&!u.disabled&&u.type!=="password"?(c.openBlock(),c.createElementBlock("div",{key:2,class:"vc-input__clear",onClick:o},[c.createVNode(w,{size:"s",icon:"fas fa-times"})])):c.createCommentVNode("",!0),u.type==="password"&&f.value==="password"?(c.openBlock(),c.createElementBlock("div",{key:3,class:"vc-input__showhide",onClick:p[1]||(p[1]=_=>f.value="text")},[c.createVNode(w,{size:"s",icon:"fas fa-eye-slash"})])):c.createCommentVNode("",!0),u.type==="password"&&f.value==="text"?(c.openBlock(),c.createElementBlock("div",{key:4,class:"vc-input__showhide",onClick:p[2]||(p[2]=_=>f.value="password")},[c.createVNode(w,{size:"s",icon:"fas fa-eye"})])):c.createCommentVNode("",!0)]),u.$slots["append-inner"]?(c.openBlock(),c.createElementBlock("div",LL,[c.renderSlot(u.$slots,"append-inner")])):c.createCommentVNode("",!0),u.loading?(c.openBlock(),c.createElementBlock("div",ML,[c.createVNode(w,{icon:"fas fa-spinner tw-animate-spin",class:"tw-text-[var(--input-clear-color)]",size:"m"})])):c.createCommentVNode("",!0)])]),c.createElementVNode("div",RL,[c.createVNode(c.Transition,{name:"slide-up",mode:"out-in"},{default:c.withCtx(()=>[u.error?(c.openBlock(),c.createElementBlock("div",NL,[c.renderSlot(u.$slots,"error",{},()=>[u.errorMessage?(c.openBlock(),c.createBlock(b,{key:0,class:"vc-input__error"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(u.errorMessage),1)]),_:1})):c.createCommentVNode("",!0)])])):(c.openBlock(),c.createElementBlock("div",IL,[c.renderSlot(u.$slots,"hint",{},()=>[u.hint?(c.openBlock(),c.createBlock(b,{key:0,class:"vc-input__desc"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(u.hint),1)]),_:1})):c.createCommentVNode("",!0)])]))]),_:3})])]),u.$slots.append?(c.openBlock(),c.createElementBlock("div",DL,[c.renderSlot(u.$slots,"append")])):c.createCommentVNode("",!0)])])],2)}}});const Qo=PL,BL={modelValue:[String,Number,Date],label:String,placeholder:String,hint:String,clearable:Boolean,prefix:String,suffix:String,name:String,loading:Boolean,debounce:{type:[String,Number],default:0},disabled:Boolean,autofocus:Boolean,error:Boolean,errorMessage:String,maxlength:[String,Number],tooltip:String,required:Boolean,option:String,options:Array,optionValue:[Function,String],optionLabel:[Function,String]},FL={"update:modelValue":n=>rs(n)||Li(n)||n===null,"update:option":n=>rs(n)||Li(n)||n===null};/**
|
|
1054
|
-
* Vue Currency Input 2.4.0
|
|
1055
|
-
* (c) 2018-2022 Matthias Stiller
|
|
1056
|
-
* @license MIT
|
|
1057
|
-
*/const Yl=n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),qy=n=>n.replace(/^0+(0$|[^0])/,"$1"),Xh=(n,e)=>(n.match(new RegExp(Yl(e),"g"))||[]).length,VL=(n,e)=>n.substring(0,n.indexOf(e));var Gr;(function(n){n.symbol="symbol",n.narrowSymbol="narrowSymbol",n.code="code",n.name="name",n.hidden="hidden"})(Gr||(Gr={}));var Si;(function(n){n.precision="precision",n.thousands="thousands",n.millions="millions",n.billions="billions"})(Si||(Si={}));const Zy=[",",".","٫"],Dv="(0|[1-9]\\d*)";class UL{constructor(e){var t,r,i,s,d,f;const{currency:l,currencyDisplay:m,locale:a,precision:o,accountingSign:u}=e;this.locale=a,this.options={style:"currency",currency:l,currencySign:u?"accounting":void 0,currencyDisplay:m!==Gr.hidden?m:void 0};const p=new Intl.NumberFormat(a,this.options),v=p.formatToParts(123456);this.currency=(t=v.find(({type:_})=>_==="currency"))===null||t===void 0?void 0:t.value,this.digits=[0,1,2,3,4,5,6,7,8,9].map(_=>_.toLocaleString(a)),this.decimalSymbol=(r=v.find(({type:_})=>_==="decimal"))===null||r===void 0?void 0:r.value,this.groupingSymbol=(i=v.find(({type:_})=>_==="group"))===null||i===void 0?void 0:i.value,this.minusSign=(s=p.formatToParts(-1).find(({type:_})=>_==="minusSign"))===null||s===void 0?void 0:s.value,this.decimalSymbol===void 0?this.minimumFractionDigits=this.maximumFractionDigits=0:typeof o=="number"?this.minimumFractionDigits=this.maximumFractionDigits=o:(this.minimumFractionDigits=(d=o?.min)!==null&&d!==void 0?d:p.resolvedOptions().minimumFractionDigits,this.maximumFractionDigits=(f=o?.max)!==null&&f!==void 0?f:p.resolvedOptions().maximumFractionDigits);const w=_=>VL(_,this.digits[1]),b=_=>_.substring(_.lastIndexOf(this.decimalSymbol?this.digits[0]:this.digits[1])+1);this.prefix=w(p.format(1)),this.suffix=b(p.format(1)),this.negativePrefix=w(p.format(-1)),this.negativeSuffix=b(p.format(-1))}parse(e){if(e){const t=this.isNegative(e);e=this.normalizeDigits(e),e=this.stripCurrency(e,t),e=this.stripSignLiterals(e);const r=this.decimalSymbol?`(?:${Yl(this.decimalSymbol)}(\\d*))?`:"",i=this.stripGroupingSeparator(e).match(new RegExp(`^${Dv}${r}$`));if(i&&this.isValidIntegerFormat(this.decimalSymbol?e.split(this.decimalSymbol)[0]:e,Number(i[1])))return Number(`${t?"-":""}${this.onlyDigits(i[1])}.${this.onlyDigits(i[2]||"")}`)}return null}isValidIntegerFormat(e,t){const r={...this.options,minimumFractionDigits:0};return[this.stripCurrency(this.normalizeDigits(t.toLocaleString(this.locale,{...r,useGrouping:!0})),!1),this.stripCurrency(this.normalizeDigits(t.toLocaleString(this.locale,{...r,useGrouping:!1})),!1)].includes(e)}format(e,t={minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits}){return e!=null?e.toLocaleString(this.locale,{...this.options,...t}):""}toFraction(e){return`${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(e.substr(1)).substr(0,this.maximumFractionDigits)}`}isFractionIncomplete(e){return!!this.normalizeDigits(this.stripGroupingSeparator(e)).match(new RegExp(`^${Dv}${Yl(this.decimalSymbol)}$`))}isNegative(e){return e.startsWith(this.negativePrefix)||this.minusSign===void 0&&(e.startsWith("(")||e.startsWith("-"))||this.minusSign!==void 0&&e.replace("-",this.minusSign).startsWith(this.minusSign)}insertCurrency(e,t){return`${t?this.negativePrefix:this.prefix}${e}${t?this.negativeSuffix:this.suffix}`}stripGroupingSeparator(e){return this.groupingSymbol!==void 0?e.replace(new RegExp(Yl(this.groupingSymbol),"g"),""):e}stripSignLiterals(e){return this.minusSign!==void 0?e.replace("-",this.minusSign).replace(this.minusSign,""):e.replace(/[-()]/g,"")}stripCurrency(e,t){return e.replace(t?this.negativePrefix:this.prefix,"").replace(t?this.negativeSuffix:this.suffix,"")}normalizeDecimalSeparator(e,t){return Zy.forEach(r=>{e=e.substr(0,t)+e.substr(t).replace(r,this.decimalSymbol)}),e}normalizeDigits(e){return this.digits[0]!=="0"&&this.digits.forEach((t,r)=>{e=e.replace(new RegExp(t,"g"),String(r))}),e}onlyDigits(e){return this.normalizeDigits(e).replace(/\D+/g,"")}onlyLocaleDigits(e){return e.replace(new RegExp(`[^${this.digits.join("")}]*`,"g"),"")}}class Qy{constructor(e){this.currencyFormat=e}}class WL extends Qy{conformToMask(e,t=""){const r=this.currencyFormat.isNegative(e),i=v=>v===""&&r&&!(this.currencyFormat.minusSign===void 0?t===this.currencyFormat.negativePrefix+this.currencyFormat.negativeSuffix:t===this.currencyFormat.negativePrefix),s=v=>{if(i(v))return"";if(this.currencyFormat.maximumFractionDigits>0){if(this.currencyFormat.isFractionIncomplete(v))return v;if(v.startsWith(this.currencyFormat.decimalSymbol))return this.currencyFormat.toFraction(v)}return null};let d=e;d=this.currencyFormat.stripCurrency(d,r),d=this.currencyFormat.stripSignLiterals(d);const f=s(d);if(f!=null)return this.currencyFormat.insertCurrency(f,r);const[l,...m]=d.split(this.currencyFormat.decimalSymbol),a=qy(this.currencyFormat.onlyDigits(l)),o=this.currencyFormat.onlyDigits(m.join("")).substr(0,this.currencyFormat.maximumFractionDigits),u=m.length>0&&o.length===0,p=a===""&&r&&(this.currencyFormat.minusSign===void 0?t===e.slice(0,-2)+this.currencyFormat.negativeSuffix:t===e.slice(0,-1));return u||p||i(a)?t:a.match(/\d+/)?{numberValue:Number(`${r?"-":""}${a}.${o}`),fractionDigits:o}:""}}class HL extends Qy{conformToMask(e,t=""){if(e===""||this.currencyFormat.parse(t)===0&&this.currencyFormat.stripCurrency(t,!0).slice(0,-1)===this.currencyFormat.stripCurrency(e,!0))return"";const r=this.currencyFormat.isNegative(e),i=this.currencyFormat.stripSignLiterals(e)===""?-0:Number(`${r?"-":""}${qy(this.currencyFormat.onlyDigits(e))}`)/Math.pow(10,this.currencyFormat.maximumFractionDigits);return{numberValue:i,fractionDigits:i.toFixed(this.currencyFormat.maximumFractionDigits).slice(-this.currencyFormat.maximumFractionDigits)}}}const zL={locale:void 0,currency:void 0,currencyDisplay:void 0,exportValueAsInteger:!1,hideGroupingSeparatorOnFocus:!0,hideCurrencySymbolOnFocus:!0,hideNegligibleDecimalDigitsOnFocus:!0,precision:void 0,autoDecimalDigits:!1,valueRange:void 0,autoSign:!0,useGrouping:!0,valueScaling:void 0};class jL{constructor(e,t){this.el=e,this.numberValue=null,this.addEventListener(),this.init(t),this.setValue(this.currencyFormat.parse(this.el.value))}setOptions(e){this.init(e),this.applyFixedFractionFormat(this.numberValue,!0)}getValue(){return{number:this.valueScaling&&this.numberValue!=null?this.toInteger(this.numberValue,this.valueScaling):this.numberValue,formatted:this.formattedValue}}setValue(e){const t=this.valueScaling!==void 0&&e!=null?this.toFloat(e,this.valueScaling):e;t!==this.numberValue&&this.applyFixedFractionFormat(t)}dispatchEvent(e){this.el.dispatchEvent(new CustomEvent(e,{detail:this.getValue()}))}init(e){this.options={...zL,...e},this.options.autoDecimalDigits?(this.options.hideNegligibleDecimalDigitsOnFocus=!1,this.el.setAttribute("inputmode","numeric")):this.el.setAttribute("inputmode","decimal"),this.currencyFormat=new UL(this.options),this.numberMask=this.options.autoDecimalDigits?new HL(this.currencyFormat):new WL(this.currencyFormat);const t={[Si.precision]:this.currencyFormat.maximumFractionDigits,[Si.thousands]:3,[Si.millions]:6,[Si.billions]:9};this.options.exportValueAsInteger?this.valueScaling=t[Si.precision]:this.valueScaling=this.options.valueScaling?t[this.options.valueScaling]:void 0,this.valueScalingFractionDigits=this.valueScaling!==void 0&&this.options.valueScaling!==Si.precision?this.valueScaling+this.currencyFormat.maximumFractionDigits:this.currencyFormat.maximumFractionDigits,this.minValue=this.getMinValue(),this.maxValue=this.getMaxValue()}getMinValue(){var e,t;let r=this.toFloat(-Number.MAX_SAFE_INTEGER);return((e=this.options.valueRange)===null||e===void 0?void 0:e.min)!==void 0&&(r=Math.max((t=this.options.valueRange)===null||t===void 0?void 0:t.min,this.toFloat(-Number.MAX_SAFE_INTEGER))),!this.options.autoSign&&r<0&&(r=0),r}getMaxValue(){var e,t;let r=this.toFloat(Number.MAX_SAFE_INTEGER);return((e=this.options.valueRange)===null||e===void 0?void 0:e.max)!==void 0&&(r=Math.min((t=this.options.valueRange)===null||t===void 0?void 0:t.max,this.toFloat(Number.MAX_SAFE_INTEGER))),!this.options.autoSign&&r<0&&(r=this.toFloat(Number.MAX_SAFE_INTEGER)),r}toFloat(e,t){return e/Math.pow(10,t??this.valueScalingFractionDigits)}toInteger(e,t){return Number(e.toFixed(t??this.valueScalingFractionDigits).split(".").join(""))}validateValueRange(e){return e!=null?Math.min(Math.max(e,this.minValue),this.maxValue):e}applyFixedFractionFormat(e,t=!1){this.format(this.currencyFormat.format(this.validateValueRange(e))),(e!==this.numberValue||t)&&this.dispatchEvent("change")}format(e,t=!1){if(e!=null){this.decimalSymbolInsertedAt!==void 0&&(e=this.currencyFormat.normalizeDecimalSeparator(e,this.decimalSymbolInsertedAt),this.decimalSymbolInsertedAt=void 0);const r=this.numberMask.conformToMask(e,this.formattedValue);let i;if(typeof r=="object"){const{numberValue:s,fractionDigits:d}=r;let{maximumFractionDigits:f,minimumFractionDigits:l}=this.currencyFormat;this.focus?l=t?d.replace(/0+$/,"").length:Math.min(f,d.length):Number.isInteger(s)&&!this.options.autoDecimalDigits&&(this.options.precision===void 0||l===0)&&(l=f=0),i=this.toInteger(Math.abs(s))>Number.MAX_SAFE_INTEGER?this.formattedValue:this.currencyFormat.format(s,{useGrouping:this.options.useGrouping&&!(this.focus&&this.options.hideGroupingSeparatorOnFocus),minimumFractionDigits:l,maximumFractionDigits:f})}else i=r;this.options.autoSign&&(this.maxValue<=0&&!this.currencyFormat.isNegative(i)&&this.currencyFormat.parse(i)!==0&&(i=i.replace(this.currencyFormat.prefix,this.currencyFormat.negativePrefix)),this.minValue>=0&&(i=i.replace(this.currencyFormat.negativePrefix,this.currencyFormat.prefix))),(this.options.currencyDisplay===Gr.hidden||this.focus&&this.options.hideCurrencySymbolOnFocus)&&(i=i.replace(this.currencyFormat.negativePrefix,this.currencyFormat.minusSign!==void 0?this.currencyFormat.minusSign:"(").replace(this.currencyFormat.negativeSuffix,this.currencyFormat.minusSign!==void 0?"":")").replace(this.currencyFormat.prefix,"").replace(this.currencyFormat.suffix,"")),this.el.value=i,this.numberValue=this.currencyFormat.parse(i)}else this.el.value="",this.numberValue=null;this.formattedValue=this.el.value,this.dispatchEvent("input")}addEventListener(){this.el.addEventListener("input",e=>{if(!e.detail){const{value:t,selectionStart:r}=this.el,i=e;if(r&&i.data&&Zy.includes(i.data)&&(this.decimalSymbolInsertedAt=r-1),this.format(t),this.focus&&r!=null){const s=()=>{const{prefix:d,suffix:f,decimalSymbol:l,maximumFractionDigits:m,groupingSymbol:a}=this.currencyFormat;let o=t.length-r;const u=this.formattedValue.length;if(this.currencyFormat.minusSign===void 0&&(t.startsWith("(")||t.startsWith("-"))&&!t.endsWith(")"))return u-this.currencyFormat.negativeSuffix.length>1?this.formattedValue.substring(r).length:1;if(this.formattedValue.substr(r,1)===a&&Xh(this.formattedValue,a)===Xh(t,a)+1)return u-o-1;if(u<o)return r;if(l!==void 0&&t.indexOf(l)!==-1){const p=t.indexOf(l)+1;if(Math.abs(u-t.length)>1&&r<=p)return this.formattedValue.indexOf(l)+1;!this.options.autoDecimalDigits&&r>p&&this.currencyFormat.onlyDigits(t.substr(p)).length-1===m&&(o-=1)}return this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===Gr.hidden?u-o:Math.max(u-Math.max(o,f.length),d.length)};this.setCaretPosition(s())}}},{capture:!0}),this.el.addEventListener("focus",()=>{this.focus=!0,setTimeout(()=>{const{value:e,selectionStart:t,selectionEnd:r}=this.el;if(this.format(e,this.options.hideNegligibleDecimalDigitsOnFocus),t!=null&&r!=null&&Math.abs(t-r)>0)this.setCaretPosition(0,this.el.value.length);else if(t!=null){const i=this.getCaretPositionOnFocus(e,t);this.setCaretPosition(i)}})}),this.el.addEventListener("blur",()=>{this.focus=!1,this.applyFixedFractionFormat(this.numberValue)}),this.el.addEventListener("change",e=>{e.detail||this.dispatchEvent("change")},{capture:!0})}getCaretPositionOnFocus(e,t){if(this.numberValue==null)return t;const{prefix:r,negativePrefix:i,suffix:s,negativeSuffix:d,groupingSymbol:f,currency:l}=this.currencyFormat,m=this.numberValue<0,a=m?i:r,o=a.length;if(this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===Gr.hidden){if(m){if(t<=1)return 1;if(e.endsWith(")")&&t>e.indexOf(")"))return this.formattedValue.length-1}}else{const p=m?d.length:s.length;if(t>=e.length-p)return this.formattedValue.length-p;if(t<o)return o}let u=t;return this.options.hideCurrencySymbolOnFocus&&this.options.currencyDisplay!==Gr.hidden&&t>=o&&l!==void 0&&a.includes(l)&&(u-=o,m&&(u+=1)),this.options.hideGroupingSeparatorOnFocus&&f!==void 0&&(u-=Xh(e.substring(0,t),f)),u}setCaretPosition(e,t=e){this.el.setSelectionRange(e,t)}}const GL=n=>n?.matches("input")?n:n?.querySelector("input");var YL=(n,e)=>{var t;let r,i;const s=c.ref(null),d=c.ref(null),f=c.ref(null),l=c.getCurrentInstance(),m=(E,$)=>l?.emit(E,$),a=(t=l?.attrs.modelModifiers)===null||t===void 0?void 0:t.lazy,o=c.computed(()=>l?.props.modelValue),u="update:modelValue",p=a?"update:modelValue":"change",v=!a,w=a||!l?.attrs.onChange,b=E=>{E.detail&&(e!==!1&&o.value!==E.detail.number&&m(u,E.detail.number),f.value=E.detail.number,d.value=E.detail.formatted)},_=E=>{E.detail&&(e!==!1&&m(p,E.detail.number),f.value=E.detail.number,d.value=E.detail.formatted)};return c.watch(s,E=>{var $,x;E?(i=GL((x=($=E)===null||$===void 0?void 0:$.$el)!==null&&x!==void 0?x:E),i?(r=new jL(i,n),v&&i.addEventListener("input",b),w&&i.addEventListener("change",_),r.setValue(o.value)):console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.')):r=null}),c.onUnmounted(()=>{v&&i?.removeEventListener("input",b),w&&i?.removeEventListener("change",_)}),{inputRef:s,numberValue:f,formattedValue:d,setValue:E=>r?.setValue(E),setOptions:E=>r?.setOptions(E)}};const JL=["onClick"],KL=["placeholder"],XL=c.defineComponent({__name:"vc-input-currency",props:BL,emits:FL,setup(n){const e=n,{inputRef:t,setOptions:r}=YL({locale:navigator.language,currency:e.option||"USD",autoSign:!1,currencyDisplay:Gr.hidden,hideGroupingSeparatorOnFocus:!1});return c.watch(()=>e.option,i=>{r({locale:navigator.language,currency:i,autoSign:!1,currencyDisplay:Gr.hidden,hideGroupingSeparatorOnFocus:!1})}),(i,s)=>{const d=c.resolveComponent("VcInput"),f=c.resolveComponent("VcSelect");return c.openBlock(),c.createBlock(f,{options:i.options,"option-label":i.optionLabel,"option-value":i.optionValue,searchable:!0,autofocus:!0,debounce:i.debounce,label:i.label,required:i.required,"model-value":i.option,"onUpdate:modelValue":s[1]||(s[1]=l=>i.$emit("update:option",l))},{control:c.withCtx(({toggleHandler:l})=>[c.createVNode(d,{placeholder:i.placeholder,"model-value":i.modelValue,hint:i.hint,clearable:i.clearable,prefix:i.prefix,suffix:i.suffix,name:i.name,loading:i.loading,disabled:i.disabled,autofocus:i.autofocus,error:i.error,"error-message":i.errorMessage,maxlength:i.maxlength,tooltip:i.tooltip,class:"tw-w-full","onUpdate:modelValue":s[0]||(s[0]=m=>i.$emit("update:modelValue",+m))},{"append-inner":c.withCtx(()=>[c.renderSlot(i.$slots,"button",{toggleHandler:l},()=>[c.createElementVNode("button",{class:"tw-text-[#43b0e6] tw-not-italic tw-font-medium tw-text-[13px] tw-leading-[20px] tw-cursor-pointer",onClick:c.withModifiers(l,["stop","prevent"])},c.toDisplayString(i.option),9,JL)])]),control:c.withCtx(({placeholder:m})=>[c.createElementVNode("input",{type:"text",ref_key:"inputRef",ref:t,placeholder:m},null,8,KL)]),_:2},1032,["placeholder","model-value","hint","clearable","prefix","suffix","name","loading","disabled","autofocus","error","error-message","maxlength","tooltip"])]),_:3},8,["options","option-label","option-value","debounce","label","required","model-value"])}}}),eb=XL,qL={timeout:{type:Number,default:0}},ZL={dismiss:()=>!0,expired:()=>!0},QL={class:"tw-text-[color:var(--notification-content-color)]"},eM=c.defineComponent({__name:"vc-notification",props:qL,emits:ZL,setup(n,{emit:e}){const t=n;function r(l,m){let a,o,u=m;function p(){window.clearTimeout(a),u-=Date.now()-o}function v(){o=Date.now(),window.clearTimeout(a),a=window.setTimeout(l,u)}function w(){u=m,v()}return{pause:p,resume:v,start:w}}const i=r(()=>e("expired"),t.timeout);t.timeout&&i.start();function s(){i.pause()}function d(){t.timeout&&i.resume()}function f(){i.pause(),e("dismiss")}return(l,m)=>(c.openBlock(),c.createElementBlock("div",{class:"vc-notification tw-flex tw-items-center tw-mt-1 tw-mb-3 tw-mx-2 tw-bg-[color:var(--notification-background)] tw-border tw-border-solid tw-border-[color:#eef0f2] tw-box-border tw-shadow-[2px_2px_11px_rgba(126,142,157,0.4)] tw-rounded-[var(--notification-border-radius)] tw-overflow-hidden tw-py-2 tw-px-4 tw-max-w-[600px]",onMouseenter:s,onMouseleave:d},[c.createElementVNode("div",QL,[c.renderSlot(l.$slots,"default")]),c.createVNode(c.unref(Ye),{icon:"fas fa-times",class:"tw-cursor-pointer tw-text-[color:var(--notification-dismiss-color)] tw-ml-2",size:"s",onClick:f})],32))}});const tb=eM,tM={expanded:{type:Boolean,default:!1},pages:{type:Number,default:1},currentPage:{type:Number,default:1}},nM={itemClick:n=>Li(n)},rM={class:"vc-pagination tw-flex"},iM={class:"vc-pagination__item vc-pagination__item_current"},sM=c.defineComponent({__name:"vc-pagination",props:tM,emits:nM,setup(n){return(e,t)=>(c.openBlock(),c.createElementBlock("div",rM,[c.createElementVNode("div",{class:c.normalizeClass(["vc-pagination__item",{"vc-pagination__item_disabled":e.currentPage===1}]),onClick:t[0]||(t[0]=r=>e.currentPage!==1&&e.$emit("itemClick",1))},[c.createVNode(c.unref(Ye),{size:"xs",icon:"fas fa-angle-double-left"})],2),c.createElementVNode("div",{class:c.normalizeClass(["vc-pagination__item",{"vc-pagination__item_disabled":e.currentPage===1}]),onClick:t[1]||(t[1]=r=>e.currentPage!==1&&e.$emit("itemClick",e.currentPage-1))},[c.createVNode(c.unref(Ye),{size:"xs",icon:"fas fa-arrow-left"})],2),e.expanded&&e.$isDesktop.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[e.currentPage>2?(c.openBlock(),c.createElementBlock("div",{key:0,class:"vc-pagination__item",onClick:t[2]||(t[2]=r=>e.$emit("itemClick",e.currentPage-2))},c.toDisplayString(e.currentPage-2),1)):c.createCommentVNode("",!0),e.currentPage>1?(c.openBlock(),c.createElementBlock("div",{key:1,class:"vc-pagination__item",onClick:t[3]||(t[3]=r=>e.$emit("itemClick",e.currentPage-1))},c.toDisplayString(e.currentPage-1),1)):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),c.createElementVNode("div",iM,c.toDisplayString(e.currentPage),1),e.expanded&&e.$isDesktop.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[e.currentPage<e.pages?(c.openBlock(),c.createElementBlock("div",{key:0,class:"vc-pagination__item",onClick:t[4]||(t[4]=r=>e.$emit("itemClick",e.currentPage+1))},c.toDisplayString(e.currentPage+1),1)):c.createCommentVNode("",!0),e.currentPage<e.pages-1?(c.openBlock(),c.createElementBlock("div",{key:1,class:"vc-pagination__item",onClick:t[5]||(t[5]=r=>e.$emit("itemClick",e.currentPage+2))},c.toDisplayString(e.currentPage+2),1)):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),c.createElementVNode("div",{class:c.normalizeClass(["vc-pagination__item",{"vc-pagination__item_disabled":e.currentPage===e.pages}]),onClick:t[6]||(t[6]=r=>e.currentPage!==e.pages&&e.$emit("itemClick",e.currentPage+1))},[c.createVNode(c.unref(Ye),{size:"xs",icon:"fas fa-arrow-right"})],2),c.createElementVNode("div",{class:c.normalizeClass(["vc-pagination__item",{"vc-pagination__item_disabled":e.currentPage===e.pages}]),onClick:t[7]||(t[7]=r=>e.currentPage!==e.pages&&e.$emit("itemClick",e.pages))},[c.createVNode(c.unref(Ye),{size:"xs",icon:"fas fa-angle-double-right"})],2)]))}});const Ad=sM,oM={label:String,placeholder:String,tooltip:String,rating:Number,max:{type:Number,default:5},variant:{type:String,default:"stars"}},aM={class:"vc-rating"},lM=["innerHTML"],uM={class:"vc-rating__rating"},cM={key:2,class:"vc-rating__placeholder"},hM=c.defineComponent({__name:"vc-rating",props:oM,setup(n){return(e,t)=>(c.openBlock(),c.createElementBlock("div",aM,[e.label?(c.openBlock(),c.createBlock(c.unref(fs),{key:0,class:"tw-mb-2"},c.createSlots({default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(e.label),1)]),_:2},[e.tooltip?{name:"tooltip",fn:c.withCtx(()=>[c.createElementVNode("span",{innerHTML:e.tooltip},null,8,lM)]),key:"0"}:void 0]),1024)):c.createCommentVNode("",!0),e.rating?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[e.variant=="stars"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rating,r=>(c.openBlock(),c.createBlock(c.unref(Ye),{key:r,icon:"fas fa-star",class:"vc-rating__icon"}))),128)),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.max-e.rating,r=>(c.openBlock(),c.createBlock(c.unref(Ye),{key:r,icon:"far fa-star",class:"vc-rating__icon"}))),128))],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[e.variant=="star-and-text"?(c.openBlock(),c.createBlock(c.unref(Ye),{key:0,icon:"fas fa-star",class:"vc-rating__icon"})):c.createCommentVNode("",!0),c.createElementVNode("span",uM,c.toDisplayString(e.rating)+"/"+c.toDisplayString(e.max),1),c.renderSlot(e.$slots,"details")],64))],64)):(c.openBlock(),c.createElementBlock("span",cM))]))}});const nb=hM;function fM(n,e){console.debug("[@vc-shell/framework#useFunctions:debounce] - Entry point");let t=null;return function(...r){t&&clearTimeout(t),t=window.setTimeout(()=>{t=null,n(...r)},e)}}function dM(n,e=0){console.debug("[@vc-shell/framework#useFunctions:delay] - Entry point"),setTimeout(n,e)}const qh=new WeakMap;function pM(n){return console.debug("[@vc-shell/framework#useFunctions:once] - Entry point"),function(...e){if(!qh.has(n)){const t=n(...e);qh.set(n,t)}return qh.get(n)}}function mM(n,e){console.debug("[@vc-shell/framework#useFunctions:throttle] - Entry point");let t=!1;return function(...r){t||(n(...r),t=!0,setTimeout(()=>{t=!1},e))}}function gM(){return console.debug("useFunctions entry point"),{debounce:fM,delay:dM,once:pM,throttle:mM}}/*!
|
|
1058
|
-
* shared v9.2.2
|
|
1059
|
-
* (c) 2022 kazuya kawaguchi
|
|
1060
|
-
* Released under the MIT License.
|
|
1061
|
-
*/const kr=typeof window<"u";let In,is;if(process.env.NODE_ENV!=="production"){const n=kr&&window.performance;n&&n.mark&&n.measure&&n.clearMarks&&n.clearMeasures&&(In=e=>n.mark(e),is=(e,t,r)=>{n.measure(e,t,r),n.clearMarks(t),n.clearMarks(r)})}const vM=/\{([0-9a-zA-Z]+)\}/g;function Tu(n,...e){return e.length===1&&pt(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),n.replace(vM,(t,r)=>e.hasOwnProperty(r)?e[r]:"")}const wM=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",$r=n=>wM?Symbol(n):n,yM=(n,e,t)=>bM({l:n,k:e,s:t}),bM=n=>JSON.stringify(n).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ht=n=>typeof n=="number"&&isFinite(n),SM=n=>$d(n)==="[object Date]",Mi=n=>$d(n)==="[object RegExp]",$u=n=>Ue(n)&&Object.keys(n).length===0;function bn(n,e){typeof console<"u"&&(console.warn("[intlify] "+n),e&&console.warn(e.stack))}const Jt=Object.assign;let Pv;const Vo=()=>Pv||(Pv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Bv(n){return n.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const _M=Object.prototype.hasOwnProperty;function Td(n,e){return _M.call(n,e)}const wt=Array.isArray,Rt=n=>typeof n=="function",Ce=n=>typeof n=="string",Qe=n=>typeof n=="boolean",pt=n=>n!==null&&typeof n=="object",rb=Object.prototype.toString,$d=n=>rb.call(n),Ue=n=>$d(n)==="[object Object]",CM=n=>n==null?"":wt(n)||Ue(n)&&n.toString===rb?JSON.stringify(n,null,2):String(n),Fv=2;function EM(n,e=0,t=n.length){const r=n.split(/\r?\n/);let i=0;const s=[];for(let d=0;d<r.length;d++)if(i+=r[d].length+1,i>=e){for(let f=d-Fv;f<=d+Fv||t>i;f++){if(f<0||f>=r.length)continue;const l=f+1;s.push(`${l}${" ".repeat(3-String(l).length)}| ${r[f]}`);const m=r[f].length;if(f===d){const a=e-(i-m)+1,o=Math.max(1,t>i?m-a:t-e);s.push(" | "+" ".repeat(a)+"^".repeat(o))}else if(f>d){if(t>i){const a=Math.max(Math.min(t-i,m),1);s.push(" | "+"^".repeat(a))}i+=m+1}}break}return s.join(`
|
|
1062
|
-
`)}function Od(){const n=new Map;return{events:n,on(t,r){const i=n.get(t);i&&i.push(r)||n.set(t,[r])},off(t,r){const i=n.get(t);i&&i.splice(i.indexOf(r)>>>0,1)},emit(t,r){(n.get(t)||[]).slice().map(i=>i(r)),(n.get("*")||[]).slice().map(i=>i(t,r))}}}/*!
|
|
1063
|
-
* message-compiler v9.2.2
|
|
1064
|
-
* (c) 2022 kazuya kawaguchi
|
|
1065
|
-
* Released under the MIT License.
|
|
1066
|
-
*/const Ve={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15},kM={[Ve.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ve.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ve.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ve.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ve.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ve.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ve.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ve.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ve.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ve.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ve.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ve.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ve.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ve.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function Ou(n,e,t={}){const{domain:r,messages:i,args:s}=t,d=process.env.NODE_ENV!=="production"?Tu((i||kM)[n]||"",...s||[]):n,f=new SyntaxError(String(d));return f.code=n,e&&(f.location=e),f.domain=r,f}function xM(n){throw n}function AM(n,e,t){return{line:n,column:e,offset:t}}function Of(n,e,t){const r={start:n,end:e};return t!=null&&(r.source=t),r}const Wr=" ",TM="\r",fn=`
|
|
1067
|
-
`,$M=String.fromCharCode(8232),OM=String.fromCharCode(8233);function LM(n){const e=n;let t=0,r=1,i=1,s=0;const d=M=>e[M]===TM&&e[M+1]===fn,f=M=>e[M]===fn,l=M=>e[M]===OM,m=M=>e[M]===$M,a=M=>d(M)||f(M)||l(M)||m(M),o=()=>t,u=()=>r,p=()=>i,v=()=>s,w=M=>d(M)||l(M)||m(M)?fn:e[M],b=()=>w(t),_=()=>w(t+s);function E(){return s=0,a(t)&&(r++,i=0),d(t)&&t++,t++,i++,e[t]}function $(){return d(t+s)&&s++,s++,e[t+s]}function x(){t=0,r=1,i=1,s=0}function S(M=0){s=M}function T(){const M=t+s;for(;M!==t;)E();s=0}return{index:o,line:u,column:p,peekOffset:v,charAt:w,currentChar:b,currentPeek:_,next:E,peek:$,reset:x,resetPeek:S,skipToPeek:T}}const wi=void 0,Vv="'",MM="tokenizer";function RM(n,e={}){const t=e.location!==!1,r=LM(n),i=()=>r.index(),s=()=>AM(r.line(),r.column(),r.index()),d=s(),f=i(),l={currentType:14,offset:f,startLoc:d,endLoc:d,lastType:14,lastOffset:f,lastStartLoc:d,lastEndLoc:d,braceNest:0,inLinked:!1,text:""},m=()=>l,{onError:a}=e;function o(H,U,te,...ve){const ke=m();if(U.column+=te,U.offset+=te,a){const Ne=Of(ke.startLoc,U),Tt=Ou(H,Ne,{domain:MM,args:ve});a(Tt)}}function u(H,U,te){H.endLoc=s(),H.currentType=U;const ve={type:U};return t&&(ve.loc=Of(H.startLoc,H.endLoc)),te!=null&&(ve.value=te),ve}const p=H=>u(H,14);function v(H,U){return H.currentChar()===U?(H.next(),U):(o(Ve.EXPECTED_TOKEN,s(),0,U),"")}function w(H){let U="";for(;H.currentPeek()===Wr||H.currentPeek()===fn;)U+=H.currentPeek(),H.peek();return U}function b(H){const U=w(H);return H.skipToPeek(),U}function _(H){if(H===wi)return!1;const U=H.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U===95}function E(H){if(H===wi)return!1;const U=H.charCodeAt(0);return U>=48&&U<=57}function $(H,U){const{currentType:te}=U;if(te!==2)return!1;w(H);const ve=_(H.currentPeek());return H.resetPeek(),ve}function x(H,U){const{currentType:te}=U;if(te!==2)return!1;w(H);const ve=H.currentPeek()==="-"?H.peek():H.currentPeek(),ke=E(ve);return H.resetPeek(),ke}function S(H,U){const{currentType:te}=U;if(te!==2)return!1;w(H);const ve=H.currentPeek()===Vv;return H.resetPeek(),ve}function T(H,U){const{currentType:te}=U;if(te!==8)return!1;w(H);const ve=H.currentPeek()===".";return H.resetPeek(),ve}function M(H,U){const{currentType:te}=U;if(te!==9)return!1;w(H);const ve=_(H.currentPeek());return H.resetPeek(),ve}function A(H,U){const{currentType:te}=U;if(!(te===8||te===12))return!1;w(H);const ve=H.currentPeek()===":";return H.resetPeek(),ve}function R(H,U){const{currentType:te}=U;if(te!==10)return!1;const ve=()=>{const Ne=H.currentPeek();return Ne==="{"?_(H.peek()):Ne==="@"||Ne==="%"||Ne==="|"||Ne===":"||Ne==="."||Ne===Wr||!Ne?!1:Ne===fn?(H.peek(),ve()):_(Ne)},ke=ve();return H.resetPeek(),ke}function y(H){w(H);const U=H.currentPeek()==="|";return H.resetPeek(),U}function k(H){const U=w(H),te=H.currentPeek()==="%"&&H.peek()==="{";return H.resetPeek(),{isModulo:te,hasSpace:U.length>0}}function O(H,U=!0){const te=(ke=!1,Ne="",Tt=!1)=>{const gt=H.currentPeek();return gt==="{"?Ne==="%"?!1:ke:gt==="@"||!gt?Ne==="%"?!0:ke:gt==="%"?(H.peek(),te(ke,"%",!0)):gt==="|"?Ne==="%"||Tt?!0:!(Ne===Wr||Ne===fn):gt===Wr?(H.peek(),te(!0,Wr,Tt)):gt===fn?(H.peek(),te(!0,fn,Tt)):!0},ve=te();return U&&H.resetPeek(),ve}function N(H,U){const te=H.currentChar();return te===wi?wi:U(te)?(H.next(),te):null}function I(H){return N(H,te=>{const ve=te.charCodeAt(0);return ve>=97&&ve<=122||ve>=65&&ve<=90||ve>=48&&ve<=57||ve===95||ve===36})}function P(H){return N(H,te=>{const ve=te.charCodeAt(0);return ve>=48&&ve<=57})}function B(H){return N(H,te=>{const ve=te.charCodeAt(0);return ve>=48&&ve<=57||ve>=65&&ve<=70||ve>=97&&ve<=102})}function z(H){let U="",te="";for(;U=P(H);)te+=U;return te}function j(H){b(H);const U=H.currentChar();return U!=="%"&&o(Ve.EXPECTED_TOKEN,s(),0,U),H.next(),"%"}function J(H){let U="";for(;;){const te=H.currentChar();if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;if(te==="%")if(O(H))U+=te,H.next();else break;else if(te===Wr||te===fn)if(O(H))U+=te,H.next();else{if(y(H))break;U+=te,H.next()}else U+=te,H.next()}return U}function q(H){b(H);let U="",te="";for(;U=I(H);)te+=U;return H.currentChar()===wi&&o(Ve.UNTERMINATED_CLOSING_BRACE,s(),0),te}function re(H){b(H);let U="";return H.currentChar()==="-"?(H.next(),U+=`-${z(H)}`):U+=z(H),H.currentChar()===wi&&o(Ve.UNTERMINATED_CLOSING_BRACE,s(),0),U}function ie(H){b(H),v(H,"'");let U="",te="";const ve=Ne=>Ne!==Vv&&Ne!==fn;for(;U=N(H,ve);)U==="\\"?te+=Y(H):te+=U;const ke=H.currentChar();return ke===fn||ke===wi?(o(Ve.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),ke===fn&&(H.next(),v(H,"'")),te):(v(H,"'"),te)}function Y(H){const U=H.currentChar();switch(U){case"\\":case"'":return H.next(),`\\${U}`;case"u":return ne(H,U,4);case"U":return ne(H,U,6);default:return o(Ve.UNKNOWN_ESCAPE_SEQUENCE,s(),0,U),""}}function ne(H,U,te){v(H,U);let ve="";for(let ke=0;ke<te;ke++){const Ne=B(H);if(!Ne){o(Ve.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${U}${ve}${H.currentChar()}`);break}ve+=Ne}return`\\${U}${ve}`}function oe(H){b(H);let U="",te="";const ve=ke=>ke!=="{"&&ke!=="}"&&ke!==Wr&&ke!==fn;for(;U=N(H,ve);)te+=U;return te}function fe(H){let U="",te="";for(;U=I(H);)te+=U;return te}function we(H){const U=(te=!1,ve)=>{const ke=H.currentChar();return ke==="{"||ke==="%"||ke==="@"||ke==="|"||!ke||ke===Wr?ve:ke===fn?(ve+=ke,H.next(),U(te,ve)):(ve+=ke,H.next(),U(!0,ve))};return U(!1,"")}function G(H){b(H);const U=v(H,"|");return b(H),U}function pe(H,U){let te=null;switch(H.currentChar()){case"{":return U.braceNest>=1&&o(Ve.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),H.next(),te=u(U,2,"{"),b(H),U.braceNest++,te;case"}":return U.braceNest>0&&U.currentType===2&&o(Ve.EMPTY_PLACEHOLDER,s(),0),H.next(),te=u(U,3,"}"),U.braceNest--,U.braceNest>0&&b(H),U.inLinked&&U.braceNest===0&&(U.inLinked=!1),te;case"@":return U.braceNest>0&&o(Ve.UNTERMINATED_CLOSING_BRACE,s(),0),te=me(H,U)||p(U),U.braceNest=0,te;default:let ke=!0,Ne=!0,Tt=!0;if(y(H))return U.braceNest>0&&o(Ve.UNTERMINATED_CLOSING_BRACE,s(),0),te=u(U,1,G(H)),U.braceNest=0,U.inLinked=!1,te;if(U.braceNest>0&&(U.currentType===5||U.currentType===6||U.currentType===7))return o(Ve.UNTERMINATED_CLOSING_BRACE,s(),0),U.braceNest=0,be(H,U);if(ke=$(H,U))return te=u(U,5,q(H)),b(H),te;if(Ne=x(H,U))return te=u(U,6,re(H)),b(H),te;if(Tt=S(H,U))return te=u(U,7,ie(H)),b(H),te;if(!ke&&!Ne&&!Tt)return te=u(U,13,oe(H)),o(Ve.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,te.value),b(H),te;break}return te}function me(H,U){const{currentType:te}=U;let ve=null;const ke=H.currentChar();switch((te===8||te===9||te===12||te===10)&&(ke===fn||ke===Wr)&&o(Ve.INVALID_LINKED_FORMAT,s(),0),ke){case"@":return H.next(),ve=u(U,8,"@"),U.inLinked=!0,ve;case".":return b(H),H.next(),u(U,9,".");case":":return b(H),H.next(),u(U,10,":");default:return y(H)?(ve=u(U,1,G(H)),U.braceNest=0,U.inLinked=!1,ve):T(H,U)||A(H,U)?(b(H),me(H,U)):M(H,U)?(b(H),u(U,12,fe(H))):R(H,U)?(b(H),ke==="{"?pe(H,U)||ve:u(U,11,we(H))):(te===8&&o(Ve.INVALID_LINKED_FORMAT,s(),0),U.braceNest=0,U.inLinked=!1,be(H,U))}}function be(H,U){let te={type:14};if(U.braceNest>0)return pe(H,U)||p(U);if(U.inLinked)return me(H,U)||p(U);switch(H.currentChar()){case"{":return pe(H,U)||p(U);case"}":return o(Ve.UNBALANCED_CLOSING_BRACE,s(),0),H.next(),u(U,3,"}");case"@":return me(H,U)||p(U);default:if(y(H))return te=u(U,1,G(H)),U.braceNest=0,U.inLinked=!1,te;const{isModulo:ke,hasSpace:Ne}=k(H);if(ke)return Ne?u(U,0,J(H)):u(U,4,j(H));if(O(H))return u(U,0,J(H));break}return te}function $e(){const{currentType:H,offset:U,startLoc:te,endLoc:ve}=l;return l.lastType=H,l.lastOffset=U,l.lastStartLoc=te,l.lastEndLoc=ve,l.offset=i(),l.startLoc=s(),r.currentChar()===wi?u(l,14):be(r,l)}return{nextToken:$e,currentOffset:i,currentPosition:s,context:m}}const NM="parser",IM=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function DM(n,e,t){switch(n){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||t,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function PM(n={}){const e=n.location!==!1,{onError:t}=n;function r(_,E,$,x,...S){const T=_.currentPosition();if(T.offset+=x,T.column+=x,t){const M=Of($,T),A=Ou(E,M,{domain:NM,args:S});t(A)}}function i(_,E,$){const x={type:_,start:E,end:E};return e&&(x.loc={start:$,end:$}),x}function s(_,E,$,x){_.end=E,x&&(_.type=x),e&&_.loc&&(_.loc.end=$)}function d(_,E){const $=_.context(),x=i(3,$.offset,$.startLoc);return x.value=E,s(x,_.currentOffset(),_.currentPosition()),x}function f(_,E){const $=_.context(),{lastOffset:x,lastStartLoc:S}=$,T=i(5,x,S);return T.index=parseInt(E,10),_.nextToken(),s(T,_.currentOffset(),_.currentPosition()),T}function l(_,E){const $=_.context(),{lastOffset:x,lastStartLoc:S}=$,T=i(4,x,S);return T.key=E,_.nextToken(),s(T,_.currentOffset(),_.currentPosition()),T}function m(_,E){const $=_.context(),{lastOffset:x,lastStartLoc:S}=$,T=i(9,x,S);return T.value=E.replace(IM,DM),_.nextToken(),s(T,_.currentOffset(),_.currentPosition()),T}function a(_){const E=_.nextToken(),$=_.context(),{lastOffset:x,lastStartLoc:S}=$,T=i(8,x,S);return E.type!==12?(r(_,Ve.UNEXPECTED_EMPTY_LINKED_MODIFIER,$.lastStartLoc,0),T.value="",s(T,x,S),{nextConsumeToken:E,node:T}):(E.value==null&&r(_,Ve.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,br(E)),T.value=E.value||"",s(T,_.currentOffset(),_.currentPosition()),{node:T})}function o(_,E){const $=_.context(),x=i(7,$.offset,$.startLoc);return x.value=E,s(x,_.currentOffset(),_.currentPosition()),x}function u(_){const E=_.context(),$=i(6,E.offset,E.startLoc);let x=_.nextToken();if(x.type===9){const S=a(_);$.modifier=S.node,x=S.nextConsumeToken||_.nextToken()}switch(x.type!==10&&r(_,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,br(x)),x=_.nextToken(),x.type===2&&(x=_.nextToken()),x.type){case 11:x.value==null&&r(_,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,br(x)),$.key=o(_,x.value||"");break;case 5:x.value==null&&r(_,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,br(x)),$.key=l(_,x.value||"");break;case 6:x.value==null&&r(_,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,br(x)),$.key=f(_,x.value||"");break;case 7:x.value==null&&r(_,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,br(x)),$.key=m(_,x.value||"");break;default:r(_,Ve.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const S=_.context(),T=i(7,S.offset,S.startLoc);return T.value="",s(T,S.offset,S.startLoc),$.key=T,s($,S.offset,S.startLoc),{nextConsumeToken:x,node:$}}return s($,_.currentOffset(),_.currentPosition()),{node:$}}function p(_){const E=_.context(),$=E.currentType===1?_.currentOffset():E.offset,x=E.currentType===1?E.endLoc:E.startLoc,S=i(2,$,x);S.items=[];let T=null;do{const R=T||_.nextToken();switch(T=null,R.type){case 0:R.value==null&&r(_,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,br(R)),S.items.push(d(_,R.value||""));break;case 6:R.value==null&&r(_,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,br(R)),S.items.push(f(_,R.value||""));break;case 5:R.value==null&&r(_,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,br(R)),S.items.push(l(_,R.value||""));break;case 7:R.value==null&&r(_,Ve.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,br(R)),S.items.push(m(_,R.value||""));break;case 8:const y=u(_);S.items.push(y.node),T=y.nextConsumeToken||null;break}}while(E.currentType!==14&&E.currentType!==1);const M=E.currentType===1?E.lastOffset:_.currentOffset(),A=E.currentType===1?E.lastEndLoc:_.currentPosition();return s(S,M,A),S}function v(_,E,$,x){const S=_.context();let T=x.items.length===0;const M=i(1,E,$);M.cases=[],M.cases.push(x);do{const A=p(_);T||(T=A.items.length===0),M.cases.push(A)}while(S.currentType!==14);return T&&r(_,Ve.MUST_HAVE_MESSAGES_IN_PLURAL,$,0),s(M,_.currentOffset(),_.currentPosition()),M}function w(_){const E=_.context(),{offset:$,startLoc:x}=E,S=p(_);return E.currentType===14?S:v(_,$,x,S)}function b(_){const E=RM(_,Jt({},n)),$=E.context(),x=i(0,$.offset,$.startLoc);return e&&x.loc&&(x.loc.source=_),x.body=w(E),$.currentType!==14&&r(E,Ve.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,_[$.offset]||""),s(x,E.currentOffset(),E.currentPosition()),x}return{parse:b}}function br(n){if(n.type===14)return"EOF";const e=(n.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function BM(n,e={}){const t={ast:n,helpers:new Set};return{context:()=>t,helper:s=>(t.helpers.add(s),s)}}function Uv(n,e){for(let t=0;t<n.length;t++)Ld(n[t],e)}function Ld(n,e){switch(n.type){case 1:Uv(n.cases,e),e.helper("plural");break;case 2:Uv(n.items,e);break;case 6:Ld(n.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function FM(n,e={}){const t=BM(n);t.helper("normalize"),n.body&&Ld(n.body,t);const r=t.context();n.helpers=Array.from(r.helpers)}function VM(n,e){const{sourceMap:t,filename:r,breakLineCode:i,needIndent:s}=e,d={source:n.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:s,indentLevel:0},f=()=>d;function l(w,b){d.code+=w}function m(w,b=!0){const _=b?i:"";l(s?_+" ".repeat(w):_)}function a(w=!0){const b=++d.indentLevel;w&&m(b)}function o(w=!0){const b=--d.indentLevel;w&&m(b)}function u(){m(d.indentLevel)}return{context:f,push:l,indent:a,deindent:o,newline:u,helper:w=>`_${w}`,needIndent:()=>d.needIndent}}function UM(n,e){const{helper:t}=n;n.push(`${t("linked")}(`),Ks(n,e.key),e.modifier?(n.push(", "),Ks(n,e.modifier),n.push(", _type")):n.push(", undefined, _type"),n.push(")")}function WM(n,e){const{helper:t,needIndent:r}=n;n.push(`${t("normalize")}([`),n.indent(r());const i=e.items.length;for(let s=0;s<i&&(Ks(n,e.items[s]),s!==i-1);s++)n.push(", ");n.deindent(r()),n.push("])")}function HM(n,e){const{helper:t,needIndent:r}=n;if(e.cases.length>1){n.push(`${t("plural")}([`),n.indent(r());const i=e.cases.length;for(let s=0;s<i&&(Ks(n,e.cases[s]),s!==i-1);s++)n.push(", ");n.deindent(r()),n.push("])")}}function zM(n,e){e.body?Ks(n,e.body):n.push("null")}function Ks(n,e){const{helper:t}=n;switch(e.type){case 0:zM(n,e);break;case 1:HM(n,e);break;case 2:WM(n,e);break;case 6:UM(n,e);break;case 8:n.push(JSON.stringify(e.value),e);break;case 7:n.push(JSON.stringify(e.value),e);break;case 5:n.push(`${t("interpolate")}(${t("list")}(${e.index}))`,e);break;case 4:n.push(`${t("interpolate")}(${t("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:n.push(JSON.stringify(e.value),e);break;case 3:n.push(JSON.stringify(e.value),e);break;default:if(process.env.NODE_ENV!=="production")throw new Error(`unhandled codegen node type: ${e.type}`)}}const jM=(n,e={})=>{const t=Ce(e.mode)?e.mode:"normal",r=Ce(e.filename)?e.filename:"message.intl",i=!!e.sourceMap,s=e.breakLineCode!=null?e.breakLineCode:t==="arrow"?";":`
|
|
1068
|
-
`,d=e.needIndent?e.needIndent:t!=="arrow",f=n.helpers||[],l=VM(n,{mode:t,filename:r,sourceMap:i,breakLineCode:s,needIndent:d});l.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(d),f.length>0&&(l.push(`const { ${f.map(o=>`${o}: _${o}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Ks(l,n),l.deindent(d),l.push("}");const{code:m,map:a}=l.context();return{ast:n,code:m,map:a?a.toJSON():void 0}};function GM(n,e={}){const t=Jt({},e),i=PM(t).parse(n);return FM(i,t),jM(i,t)}/*!
|
|
1069
|
-
* devtools-if v9.2.2
|
|
1070
|
-
* (c) 2022 kazuya kawaguchi
|
|
1071
|
-
* Released under the MIT License.
|
|
1072
|
-
*/const ib={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
|
|
1073
|
-
* core-base v9.2.2
|
|
1074
|
-
* (c) 2022 kazuya kawaguchi
|
|
1075
|
-
* Released under the MIT License.
|
|
1076
|
-
*/const Ni=[];Ni[0]={w:[0],i:[3,0],["["]:[4],o:[7]};Ni[1]={w:[1],["."]:[2],["["]:[4],o:[7]};Ni[2]={w:[2],i:[3,0],[0]:[3,0]};Ni[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};Ni[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};Ni[5]={["'"]:[4,0],o:8,l:[5,0]};Ni[6]={['"']:[4,0],o:8,l:[6,0]};const YM=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function JM(n){return YM.test(n)}function KM(n){const e=n.charCodeAt(0),t=n.charCodeAt(n.length-1);return e===t&&(e===34||e===39)?n.slice(1,-1):n}function XM(n){if(n==null)return"o";switch(n.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return n;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function qM(n){const e=n.trim();return n.charAt(0)==="0"&&isNaN(parseInt(n))?!1:JM(e)?KM(e):"*"+e}function ZM(n){const e=[];let t=-1,r=0,i=0,s,d,f,l,m,a,o;const u=[];u[0]=()=>{d===void 0?d=f:d+=f},u[1]=()=>{d!==void 0&&(e.push(d),d=void 0)},u[2]=()=>{u[0](),i++},u[3]=()=>{if(i>0)i--,r=4,u[0]();else{if(i=0,d===void 0||(d=qM(d),d===!1))return!1;u[1]()}};function p(){const v=n[t+1];if(r===5&&v==="'"||r===6&&v==='"')return t++,f="\\"+v,u[0](),!0}for(;r!==null;)if(t++,s=n[t],!(s==="\\"&&p())){if(l=XM(s),o=Ni[r],m=o[l]||o.l||8,m===8||(r=m[0],m[1]!==void 0&&(a=u[m[1]],a&&(f=s,a()===!1))))return;if(r===7)return e}}const Wv=new Map;function QM(n,e){return pt(n)?n[e]:null}function eR(n,e){if(!pt(n))return null;let t=Wv.get(e);if(t||(t=ZM(e),t&&Wv.set(e,t)),!t)return null;const r=t.length;let i=n,s=0;for(;s<r;){const d=i[t[s]];if(d===void 0)return null;i=d,s++}return i}const tR=n=>n,nR=n=>"",rR="text",iR=n=>n.length===0?"":n.join(""),sR=CM;function Hv(n,e){return n=Math.abs(n),e===2?n?n>1?1:0:1:n?Math.min(n,2):0}function oR(n){const e=Ht(n.pluralIndex)?n.pluralIndex:-1;return n.named&&(Ht(n.named.count)||Ht(n.named.n))?Ht(n.named.count)?n.named.count:Ht(n.named.n)?n.named.n:e:e}function aR(n,e){e.count||(e.count=n),e.n||(e.n=n)}function lR(n={}){const e=n.locale,t=oR(n),r=pt(n.pluralRules)&&Ce(e)&&Rt(n.pluralRules[e])?n.pluralRules[e]:Hv,i=pt(n.pluralRules)&&Ce(e)&&Rt(n.pluralRules[e])?Hv:void 0,s=_=>_[r(t,_.length,i)],d=n.list||[],f=_=>d[_],l=n.named||{};Ht(n.pluralIndex)&&aR(t,l);const m=_=>l[_];function a(_){const E=Rt(n.messages)?n.messages(_):pt(n.messages)?n.messages[_]:!1;return E||(n.parent?n.parent.message(_):nR)}const o=_=>n.modifiers?n.modifiers[_]:tR,u=Ue(n.processor)&&Rt(n.processor.normalize)?n.processor.normalize:iR,p=Ue(n.processor)&&Rt(n.processor.interpolate)?n.processor.interpolate:sR,v=Ue(n.processor)&&Ce(n.processor.type)?n.processor.type:rR,b={list:f,named:m,plural:s,linked:(_,...E)=>{const[$,x]=E;let S="text",T="";E.length===1?pt($)?(T=$.modifier||T,S=$.type||S):Ce($)&&(T=$||T):E.length===2&&(Ce($)&&(T=$||T),Ce(x)&&(S=x||S));let M=a(_)(b);return S==="vnode"&&wt(M)&&T&&(M=M[0]),T?o(T)(M,S):M},message:a,type:v,interpolate:p,normalize:u};return b}let ea=null;function uR(n){ea=n}function cR(n,e,t){ea&&ea.emit(ib.I18nInit,{timestamp:Date.now(),i18n:n,version:e,meta:t})}const hR=fR(ib.FunctionTranslate);function fR(n){return e=>ea&&ea.emit(n,e)}const Mn={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},dR={[Mn.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Mn.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Mn.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Mn.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Mn.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Mn.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function Xs(n,...e){return Tu(dR[n],...e)}function pR(n,e,t){return[...new Set([t,...wt(e)?e:pt(e)?Object.keys(e):Ce(e)?[e]:[t]])]}function sb(n,e,t){const r=Ce(t)?t:_a,i=n;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let d=[t];for(;wt(d);)d=zv(s,d,e);const f=wt(e)||!Ue(e)?e:e.default?e.default:null;d=Ce(f)?[f]:f,wt(d)&&zv(s,d,!1),i.__localeChainCache.set(r,s)}return s}function zv(n,e,t){let r=!0;for(let i=0;i<e.length&&Qe(r);i++){const s=e[i];Ce(s)&&(r=mR(n,e[i],t))}return r}function mR(n,e,t){let r;const i=e.split("-");do{const s=i.join("-");r=gR(n,s,t),i.splice(-1,1)}while(i.length&&r===!0);return r}function gR(n,e,t){let r=!1;if(!n.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const i=e.replace(/!/g,"");n.push(i),(wt(t)||Ue(t))&&t[i]&&(r=t[i])}return r}const vR="9.2.2",Lu=-1,_a="en-US",lu="",jv=n=>`${n.charAt(0).toLocaleUpperCase()}${n.substr(1)}`;function wR(){return{upper:(n,e)=>e==="text"&&Ce(n)?n.toUpperCase():e==="vnode"&&pt(n)&&"__v_isVNode"in n?n.children.toUpperCase():n,lower:(n,e)=>e==="text"&&Ce(n)?n.toLowerCase():e==="vnode"&&pt(n)&&"__v_isVNode"in n?n.children.toLowerCase():n,capitalize:(n,e)=>e==="text"&&Ce(n)?jv(n):e==="vnode"&&pt(n)&&"__v_isVNode"in n?jv(n.children):n}}let ob;function yR(n){ob=n}let ab;function bR(n){ab=n}let lb;function SR(n){lb=n}let ub=null;const Gv=n=>{ub=n},_R=()=>ub;let cb=null;const Yv=n=>{cb=n},CR=()=>cb;let Jv=0;function ER(n={}){const e=Ce(n.version)?n.version:vR,t=Ce(n.locale)?n.locale:_a,r=wt(n.fallbackLocale)||Ue(n.fallbackLocale)||Ce(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:t,i=Ue(n.messages)?n.messages:{[t]:{}},s=Ue(n.datetimeFormats)?n.datetimeFormats:{[t]:{}},d=Ue(n.numberFormats)?n.numberFormats:{[t]:{}},f=Jt({},n.modifiers||{},wR()),l=n.pluralRules||{},m=Rt(n.missing)?n.missing:null,a=Qe(n.missingWarn)||Mi(n.missingWarn)?n.missingWarn:!0,o=Qe(n.fallbackWarn)||Mi(n.fallbackWarn)?n.fallbackWarn:!0,u=!!n.fallbackFormat,p=!!n.unresolving,v=Rt(n.postTranslation)?n.postTranslation:null,w=Ue(n.processor)?n.processor:null,b=Qe(n.warnHtmlMessage)?n.warnHtmlMessage:!0,_=!!n.escapeParameter,E=Rt(n.messageCompiler)?n.messageCompiler:ob,$=Rt(n.messageResolver)?n.messageResolver:ab||QM,x=Rt(n.localeFallbacker)?n.localeFallbacker:lb||pR,S=pt(n.fallbackContext)?n.fallbackContext:void 0,T=Rt(n.onWarn)?n.onWarn:bn,M=n,A=pt(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,R=pt(M.__numberFormatters)?M.__numberFormatters:new Map,y=pt(M.__meta)?M.__meta:{};Jv++;const k={version:e,cid:Jv,locale:t,fallbackLocale:r,messages:i,modifiers:f,pluralRules:l,missing:m,missingWarn:a,fallbackWarn:o,fallbackFormat:u,unresolving:p,postTranslation:v,processor:w,warnHtmlMessage:b,escapeParameter:_,messageCompiler:E,messageResolver:$,localeFallbacker:x,fallbackContext:S,onWarn:T,__meta:y};return k.datetimeFormats=s,k.numberFormats=d,k.__datetimeFormatters=A,k.__numberFormatters=R,process.env.NODE_ENV!=="production"&&(k.__v_emitter=M.__v_emitter!=null?M.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&cR(k,e,y),k}function Mu(n,e){return n instanceof RegExp?n.test(e):n}function hb(n,e){return n instanceof RegExp?n.test(e):n}function Md(n,e,t,r,i){const{missing:s,onWarn:d}=n;if(process.env.NODE_ENV!=="production"){const f=n.__v_emitter;f&&f.emit("missing",{locale:t,key:e,type:i,groupId:`${i}:${e}`})}if(s!==null){const f=s(n,t,e,i);return Ce(f)?f:e}else return process.env.NODE_ENV!=="production"&&hb(r,e)&&d(Xs(Mn.NOT_FOUND_KEY,{key:e,locale:t})),e}function Ao(n,e,t){const r=n;r.__localeChainCache=new Map,n.localeFallbacker(n,t,e)}const kR=/<\/?[\w\s="/.':;#-\/]+>/,xR="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function AR(n,e){(Qe(e.warnHtmlMessage)?e.warnHtmlMessage:!0)&&kR.test(n)&&bn(Tu(xR,{source:n}))}const TR=n=>n;let Kv=Object.create(null);function $R(n,e={}){{process.env.NODE_ENV!=="production"&&AR(n,e);const r=(e.onCacheKey||TR)(n),i=Kv[r];if(i)return i;let s=!1;const d=e.onError||xM;e.onError=m=>{s=!0,d(m)};const{code:f}=GM(n,e),l=new Function(`return ${f}`)();return s?l:Kv[r]=l}}let fb=Ve.__EXTEND_POINT__;const Zh=()=>++fb,Yr={INVALID_ARGUMENT:fb,INVALID_DATE_ARGUMENT:Zh(),INVALID_ISO_DATE_ARGUMENT:Zh(),__EXTEND_POINT__:Zh()};function Vs(n){return Ou(n,null,process.env.NODE_ENV!=="production"?{messages:OR}:void 0)}const OR={[Yr.INVALID_ARGUMENT]:"Invalid arguments",[Yr.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Yr.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string"},Xv=()=>"",_r=n=>Rt(n);function qv(n,...e){const{fallbackFormat:t,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:d,messages:f}=n,[l,m]=Lf(...e),a=Qe(m.missingWarn)?m.missingWarn:n.missingWarn,o=Qe(m.fallbackWarn)?m.fallbackWarn:n.fallbackWarn,u=Qe(m.escapeParameter)?m.escapeParameter:n.escapeParameter,p=!!m.resolvedMessage,v=Ce(m.default)||Qe(m.default)?Qe(m.default)?s?l:()=>l:m.default:t?s?l:()=>l:"",w=t||v!=="",b=Ce(m.locale)?m.locale:n.locale;u&&LR(m);let[_,E,$]=p?[l,b,f[b]||{}]:db(n,l,b,d,o,a),x=_,S=l;if(!p&&!(Ce(x)||_r(x))&&w&&(x=v,S=x),!p&&(!(Ce(x)||_r(x))||!Ce(E)))return i?Lu:l;if(process.env.NODE_ENV!=="production"&&Ce(x)&&n.messageCompiler==null)return bn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let T=!1;const M=()=>{T=!0},A=_r(x)?x:pb(n,l,E,x,S,M);if(T)return x;const R=NR(n,E,$,m),y=lR(R),k=MR(n,A,y),O=r?r(k,l):k;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const N={timestamp:Date.now(),key:Ce(l)?l:_r(x)?x.key:"",locale:E||(_r(x)?x.locale:""),format:Ce(x)?x:_r(x)?x.source:"",message:O};N.meta=Jt({},n.__meta,_R()||{}),hR(N)}return O}function LR(n){wt(n.list)?n.list=n.list.map(e=>Ce(e)?Bv(e):e):pt(n.named)&&Object.keys(n.named).forEach(e=>{Ce(n.named[e])&&(n.named[e]=Bv(n.named[e]))})}function db(n,e,t,r,i,s){const{messages:d,onWarn:f,messageResolver:l,localeFallbacker:m}=n,a=m(n,r,t);let o={},u,p=null,v=t,w=null;const b="translate";for(let _=0;_<a.length;_++){if(u=w=a[_],process.env.NODE_ENV!=="production"&&t!==u&&Mu(i,e)&&f(Xs(Mn.FALLBACK_TO_TRANSLATE,{key:e,target:u})),process.env.NODE_ENV!=="production"&&t!==u){const T=n.__v_emitter;T&&T.emit("fallback",{type:b,key:e,from:v,to:w,groupId:`${b}:${e}`})}o=d[u]||{};let E=null,$,x;if(process.env.NODE_ENV!=="production"&&kr&&(E=window.performance.now(),$="intlify-message-resolve-start",x="intlify-message-resolve-end",In&&In($)),(p=l(o,e))===null&&(p=o[e]),process.env.NODE_ENV!=="production"&&kr){const T=window.performance.now(),M=n.__v_emitter;M&&E&&p&&M.emit("message-resolve",{type:"message-resolve",key:e,message:p,time:T-E,groupId:`${b}:${e}`}),$&&x&&In&&is&&(In(x),is("intlify message resolve",$,x))}if(Ce(p)||Rt(p))break;const S=Md(n,e,u,s,b);S!==e&&(p=S),v=w}return[p,u,o]}function pb(n,e,t,r,i,s){const{messageCompiler:d,warnHtmlMessage:f}=n;if(_r(r)){const u=r;return u.locale=u.locale||t,u.key=u.key||e,u}if(d==null){const u=()=>r;return u.locale=t,u.key=e,u}let l=null,m,a;process.env.NODE_ENV!=="production"&&kr&&(l=window.performance.now(),m="intlify-message-compilation-start",a="intlify-message-compilation-end",In&&In(m));const o=d(r,RR(n,t,i,r,f,s));if(process.env.NODE_ENV!=="production"&&kr){const u=window.performance.now(),p=n.__v_emitter;p&&l&&p.emit("message-compilation",{type:"message-compilation",message:r,time:u-l,groupId:`translate:${e}`}),m&&a&&In&&is&&(In(a),is("intlify message compilation",m,a))}return o.locale=t,o.key=e,o.source=r,o}function MR(n,e,t){let r=null,i,s;process.env.NODE_ENV!=="production"&&kr&&(r=window.performance.now(),i="intlify-message-evaluation-start",s="intlify-message-evaluation-end",In&&In(i));const d=e(t);if(process.env.NODE_ENV!=="production"&&kr){const f=window.performance.now(),l=n.__v_emitter;l&&r&&l.emit("message-evaluation",{type:"message-evaluation",value:d,time:f-r,groupId:`translate:${e.key}`}),i&&s&&In&&is&&(In(s),is("intlify message evaluation",i,s))}return d}function Lf(...n){const[e,t,r]=n,i={};if(!Ce(e)&&!Ht(e)&&!_r(e))throw Vs(Yr.INVALID_ARGUMENT);const s=Ht(e)?String(e):(_r(e),e);return Ht(t)?i.plural=t:Ce(t)?i.default=t:Ue(t)&&!$u(t)?i.named=t:wt(t)&&(i.list=t),Ht(r)?i.plural=r:Ce(r)?i.default=r:Ue(r)&&Jt(i,r),[s,i]}function RR(n,e,t,r,i,s){return{warnHtmlMessage:i,onError:d=>{if(s&&s(d),process.env.NODE_ENV!=="production"){const f=`Message compilation error: ${d.message}`,l=d.location&&EM(r,d.location.start.offset,d.location.end.offset),m=n.__v_emitter;m&&m.emit("compile-error",{message:r,error:d.message,start:d.location&&d.location.start.offset,end:d.location&&d.location.end.offset,groupId:`translate:${t}`}),console.error(l?`${f}
|
|
1077
|
-
${l}`:f)}else throw d},onCacheKey:d=>yM(e,t,d)}}function NR(n,e,t,r){const{modifiers:i,pluralRules:s,messageResolver:d,fallbackLocale:f,fallbackWarn:l,missingWarn:m,fallbackContext:a}=n,u={locale:e,modifiers:i,pluralRules:s,messages:p=>{let v=d(t,p);if(v==null&&a){const[,,w]=db(a,p,e,f,l,m);v=d(w,p)}if(Ce(v)){let w=!1;const _=pb(n,p,e,v,p,()=>{w=!0});return w?Xv:_}else return _r(v)?v:Xv}};return n.processor&&(u.processor=n.processor),r.list&&(u.list=r.list),r.named&&(u.named=r.named),Ht(r.plural)&&(u.pluralIndex=r.plural),u}const Zv=typeof Intl<"u",mb={dateTimeFormat:Zv&&typeof Intl.DateTimeFormat<"u",numberFormat:Zv&&typeof Intl.NumberFormat<"u"};function Qv(n,...e){const{datetimeFormats:t,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:d}=n,{__datetimeFormatters:f}=n;if(process.env.NODE_ENV!=="production"&&!mb.dateTimeFormat)return s(Xs(Mn.CANNOT_FORMAT_DATE)),lu;const[l,m,a,o]=Mf(...e),u=Qe(a.missingWarn)?a.missingWarn:n.missingWarn,p=Qe(a.fallbackWarn)?a.fallbackWarn:n.fallbackWarn,v=!!a.part,w=Ce(a.locale)?a.locale:n.locale,b=d(n,i,w);if(!Ce(l)||l==="")return new Intl.DateTimeFormat(w,o).format(m);let _={},E,$=null,x=w,S=null;const T="datetime format";for(let R=0;R<b.length;R++){if(E=S=b[R],process.env.NODE_ENV!=="production"&&w!==E&&Mu(p,l)&&s(Xs(Mn.FALLBACK_TO_DATE_FORMAT,{key:l,target:E})),process.env.NODE_ENV!=="production"&&w!==E){const y=n.__v_emitter;y&&y.emit("fallback",{type:T,key:l,from:x,to:S,groupId:`${T}:${l}`})}if(_=t[E]||{},$=_[l],Ue($))break;Md(n,l,E,u,T),x=S}if(!Ue($)||!Ce(E))return r?Lu:l;let M=`${E}__${l}`;$u(o)||(M=`${M}__${JSON.stringify(o)}`);let A=f.get(M);return A||(A=new Intl.DateTimeFormat(E,Jt({},$,o)),f.set(M,A)),v?A.formatToParts(m):A.format(m)}const gb=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Mf(...n){const[e,t,r,i]=n,s={};let d={},f;if(Ce(e)){const l=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Vs(Yr.INVALID_ISO_DATE_ARGUMENT);const m=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();f=new Date(m);try{f.toISOString()}catch{throw Vs(Yr.INVALID_ISO_DATE_ARGUMENT)}}else if(SM(e)){if(isNaN(e.getTime()))throw Vs(Yr.INVALID_DATE_ARGUMENT);f=e}else if(Ht(e))f=e;else throw Vs(Yr.INVALID_ARGUMENT);return Ce(t)?s.key=t:Ue(t)&&Object.keys(t).forEach(l=>{gb.includes(l)?d[l]=t[l]:s[l]=t[l]}),Ce(r)?s.locale=r:Ue(r)&&(d=r),Ue(i)&&(d=i),[s.key||"",f,s,d]}function ew(n,e,t){const r=n;for(const i in t){const s=`${e}__${i}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function tw(n,...e){const{numberFormats:t,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:d}=n,{__numberFormatters:f}=n;if(process.env.NODE_ENV!=="production"&&!mb.numberFormat)return s(Xs(Mn.CANNOT_FORMAT_NUMBER)),lu;const[l,m,a,o]=Rf(...e),u=Qe(a.missingWarn)?a.missingWarn:n.missingWarn,p=Qe(a.fallbackWarn)?a.fallbackWarn:n.fallbackWarn,v=!!a.part,w=Ce(a.locale)?a.locale:n.locale,b=d(n,i,w);if(!Ce(l)||l==="")return new Intl.NumberFormat(w,o).format(m);let _={},E,$=null,x=w,S=null;const T="number format";for(let R=0;R<b.length;R++){if(E=S=b[R],process.env.NODE_ENV!=="production"&&w!==E&&Mu(p,l)&&s(Xs(Mn.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:E})),process.env.NODE_ENV!=="production"&&w!==E){const y=n.__v_emitter;y&&y.emit("fallback",{type:T,key:l,from:x,to:S,groupId:`${T}:${l}`})}if(_=t[E]||{},$=_[l],Ue($))break;Md(n,l,E,u,T),x=S}if(!Ue($)||!Ce(E))return r?Lu:l;let M=`${E}__${l}`;$u(o)||(M=`${M}__${JSON.stringify(o)}`);let A=f.get(M);return A||(A=new Intl.NumberFormat(E,Jt({},$,o)),f.set(M,A)),v?A.formatToParts(m):A.format(m)}const vb=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Rf(...n){const[e,t,r,i]=n,s={};let d={};if(!Ht(e))throw Vs(Yr.INVALID_ARGUMENT);const f=e;return Ce(t)?s.key=t:Ue(t)&&Object.keys(t).forEach(l=>{vb.includes(l)?d[l]=t[l]:s[l]=t[l]}),Ce(r)?s.locale=r:Ue(r)&&(d=r),Ue(i)&&(d=i),[s.key||"",f,s,d]}function nw(n,e,t){const r=n;for(const i in t){const s=`${e}__${i}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vo().__INTLIFY_PROD_DEVTOOLS__=!1);function IR(){return wb().__VUE_DEVTOOLS_GLOBAL_HOOK__}function wb(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const DR=typeof Proxy=="function",PR="devtools-plugin:setup",BR="plugin:settings:set";let Ls,Nf;function FR(){var n;return Ls!==void 0||(typeof window<"u"&&window.performance?(Ls=!0,Nf=window.performance):typeof global<"u"&&(!((n=global.perf_hooks)===null||n===void 0)&&n.performance)?(Ls=!0,Nf=global.perf_hooks.performance):Ls=!1),Ls}function VR(){return FR()?Nf.now():Date.now()}class UR{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const d in e.settings){const f=e.settings[d];r[d]=f.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let s=Object.assign({},r);try{const d=localStorage.getItem(i),f=JSON.parse(d);Object.assign(s,f)}catch{}this.fallbacks={getSettings(){return s},setSettings(d){try{localStorage.setItem(i,JSON.stringify(d))}catch{}s=d},now(){return VR()}},t&&t.on(BR,(d,f)=>{d===this.plugin.id&&this.fallbacks.setSettings(f)}),this.proxiedOn=new Proxy({},{get:(d,f)=>this.target?this.target.on[f]:(...l)=>{this.onQueue.push({method:f,args:l})}}),this.proxiedTarget=new Proxy({},{get:(d,f)=>this.target?this.target[f]:f==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(f)?(...l)=>(this.targetQueue.push({method:f,args:l,resolve:()=>{}}),this.fallbacks[f](...l)):(...l)=>new Promise(m=>{this.targetQueue.push({method:f,args:l,resolve:m})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function WR(n,e){const t=n,r=wb(),i=IR(),s=DR&&t.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))i.emit(PR,n,e);else{const d=s?new UR(t,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:d}),d&&e(d.proxiedTarget)}}/*!
|
|
1078
|
-
* vue-devtools v9.2.2
|
|
1079
|
-
* (c) 2022 kazuya kawaguchi
|
|
1080
|
-
* Released under the MIT License.
|
|
1081
|
-
*/const Qh={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},HR={["vue-i18n-resource-inspector"]:"Search for scopes ..."},zR={["vue-i18n-timeline"]:16764185};/*!
|
|
1082
|
-
* vue-i18n v9.2.2
|
|
1083
|
-
* (c) 2022 kazuya kawaguchi
|
|
1084
|
-
* Released under the MIT License.
|
|
1085
|
-
*/const jR="9.2.2";function GR(){let n=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(n=!0,Vo().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(n=!0,Vo().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vo().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&n&&console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.")}let yb=Mn.__EXTEND_POINT__;const Ms=()=>++yb,Yt={FALLBACK_TO_ROOT:yb,NOT_SUPPORTED_PRESERVE:Ms(),NOT_SUPPORTED_FORMATTER:Ms(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Ms(),NOT_SUPPORTED_GET_CHOICE_INDEX:Ms(),COMPONENT_NAME_LEGACY_COMPATIBLE:Ms(),NOT_FOUND_PARENT_SCOPE:Ms()},YR={[Yt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Yt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Yt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Yt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Yt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Yt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Yt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function cr(n,...e){return Tu(YR[n],...e)}let bb=Ve.__EXTEND_POINT__;const vn=()=>++bb,it={UNEXPECTED_RETURN_TYPE:bb,INVALID_ARGUMENT:vn(),MUST_BE_CALL_SETUP_TOP:vn(),NOT_INSLALLED:vn(),NOT_AVAILABLE_IN_LEGACY_MODE:vn(),REQUIRED_VALUE:vn(),INVALID_VALUE:vn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:vn(),NOT_INSLALLED_WITH_PROVIDE:vn(),UNEXPECTED_ERROR:vn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:vn(),BRIDGE_SUPPORT_VUE_2_ONLY:vn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:vn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:vn(),__EXTEND_POINT__:vn()};function Ft(n,...e){return Ou(n,null,process.env.NODE_ENV!=="production"?{messages:JR,args:e}:void 0)}const JR={[it.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[it.INVALID_ARGUMENT]:"Invalid argument",[it.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[it.NOT_INSLALLED]:"Need to install with `app.use` function",[it.UNEXPECTED_ERROR]:"Unexpected error",[it.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[it.REQUIRED_VALUE]:"Required in value: {0}",[it.INVALID_VALUE]:"Invalid value",[it.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[it.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[it.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[it.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[it.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[it.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},If=$r("__transrateVNode"),Df=$r("__datetimeParts"),Pf=$r("__numberParts"),ss=$r("__enableEmitter"),ta=$r("__disableEmitter"),Sb=$r("__setPluralRules");$r("__intlifyMeta");const _b=$r("__injectWithOption");function Bf(n){if(!pt(n))return n;for(const e in n)if(Td(n,e))if(!e.includes("."))pt(n[e])&&Bf(n[e]);else{const t=e.split("."),r=t.length-1;let i=n;for(let s=0;s<r;s++)t[s]in i||(i[t[s]]={}),i=i[t[s]];i[t[r]]=n[e],delete n[e],pt(i[t[r]])&&Bf(i[t[r]])}return n}function Ru(n,e){const{messages:t,__i18n:r,messageResolver:i,flatJson:s}=e,d=Ue(t)?t:wt(r)?{}:{[n]:{}};if(wt(r)&&r.forEach(f=>{if("locale"in f&&"resource"in f){const{locale:l,resource:m}=f;l?(d[l]=d[l]||{},Uo(m,d[l])):Uo(m,d)}else Ce(f)&&Uo(JSON.parse(f),d)}),i==null&&s)for(const f in d)Td(d,f)&&Bf(d[f]);return d}const Ml=n=>!pt(n)||wt(n);function Uo(n,e){if(Ml(n)||Ml(e))throw Ft(it.INVALID_VALUE);for(const t in n)Td(n,t)&&(Ml(n[t])||Ml(e[t])?e[t]=n[t]:Uo(n[t],e[t]))}function Cb(n){return n.type}function Eb(n,e,t){let r=pt(e.messages)?e.messages:{};"__i18nGlobal"in t&&(r=Ru(n.locale.value,{messages:r,__i18n:t.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{n.mergeLocaleMessage(s,r[s])});{if(pt(e.datetimeFormats)){const s=Object.keys(e.datetimeFormats);s.length&&s.forEach(d=>{n.mergeDateTimeFormat(d,e.datetimeFormats[d])})}if(pt(e.numberFormats)){const s=Object.keys(e.numberFormats);s.length&&s.forEach(d=>{n.mergeNumberFormat(d,e.numberFormats[d])})}}}function rw(n){return c.createVNode(c.Text,null,n,0)}const iw="__INTLIFY_META__";let sw=0;function ow(n){return(e,t,r,i)=>n(t,r,c.getCurrentInstance()||void 0,i)}const KR=()=>{const n=c.getCurrentInstance();let e=null;return n&&(e=Cb(n)[iw])?{[iw]:e}:null};function Rd(n={},e){const{__root:t}=n,r=t===void 0;let i=Qe(n.inheritLocale)?n.inheritLocale:!0;const s=c.ref(t&&i?t.locale.value:Ce(n.locale)?n.locale:_a),d=c.ref(t&&i?t.fallbackLocale.value:Ce(n.fallbackLocale)||wt(n.fallbackLocale)||Ue(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:s.value),f=c.ref(Ru(s.value,n)),l=c.ref(Ue(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),m=c.ref(Ue(n.numberFormats)?n.numberFormats:{[s.value]:{}});let a=t?t.missingWarn:Qe(n.missingWarn)||Mi(n.missingWarn)?n.missingWarn:!0,o=t?t.fallbackWarn:Qe(n.fallbackWarn)||Mi(n.fallbackWarn)?n.fallbackWarn:!0,u=t?t.fallbackRoot:Qe(n.fallbackRoot)?n.fallbackRoot:!0,p=!!n.fallbackFormat,v=Rt(n.missing)?n.missing:null,w=Rt(n.missing)?ow(n.missing):null,b=Rt(n.postTranslation)?n.postTranslation:null,_=t?t.warnHtmlMessage:Qe(n.warnHtmlMessage)?n.warnHtmlMessage:!0,E=!!n.escapeParameter;const $=t?t.modifiers:Ue(n.modifiers)?n.modifiers:{};let x=n.pluralRules||t&&t.pluralRules,S;S=(()=>{r&&Yv(null);const ee={version:jR,locale:s.value,fallbackLocale:d.value,messages:f.value,modifiers:$,pluralRules:x,missing:w===null?void 0:w,missingWarn:a,fallbackWarn:o,fallbackFormat:p,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:_,escapeParameter:E,messageResolver:n.messageResolver,__meta:{framework:"vue"}};ee.datetimeFormats=l.value,ee.numberFormats=m.value,ee.__datetimeFormatters=Ue(S)?S.__datetimeFormatters:void 0,ee.__numberFormatters=Ue(S)?S.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(ee.__v_emitter=Ue(S)?S.__v_emitter:void 0);const le=ER(ee);return r&&Yv(le),le})(),Ao(S,s.value,d.value);function M(){return[s.value,d.value,f.value,l.value,m.value]}const A=c.computed({get:()=>s.value,set:ee=>{s.value=ee,S.locale=s.value}}),R=c.computed({get:()=>d.value,set:ee=>{d.value=ee,S.fallbackLocale=d.value,Ao(S,s.value,ee)}}),y=c.computed(()=>f.value),k=c.computed(()=>l.value),O=c.computed(()=>m.value);function N(){return Rt(b)?b:null}function I(ee){b=ee,S.postTranslation=ee}function P(){return v}function B(ee){ee!==null&&(w=ow(ee)),v=ee,S.missing=w}function z(ee,le){return ee!=="translate"||!le.resolvedMessage}const j=(ee,le,xe,Ie,ot,et)=>{M();let tt;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{Gv(KR()),r||(S.fallbackContext=t?CR():void 0),tt=ee(S)}finally{Gv(null),r||(S.fallbackContext=void 0)}else tt=ee(S);if(Ht(tt)&&tt===Lu){const[Ke,Qt]=le();if(process.env.NODE_ENV!=="production"&&t&&Ce(Ke)&&z(xe,Qt)&&(u&&(Mu(o,Ke)||hb(a,Ke))&&bn(cr(Yt.FALLBACK_TO_ROOT,{key:Ke,type:xe})),process.env.NODE_ENV!=="production")){const{__v_emitter:rr}=S;rr&&u&&rr.emit("fallback",{type:xe,key:Ke,to:"global",groupId:`${xe}:${Ke}`})}return t&&u?Ie(t):ot(Ke)}else{if(et(tt))return tt;throw Ft(it.UNEXPECTED_RETURN_TYPE)}};function J(...ee){return j(le=>Reflect.apply(qv,null,[le,...ee]),()=>Lf(...ee),"translate",le=>Reflect.apply(le.t,le,[...ee]),le=>le,le=>Ce(le))}function q(...ee){const[le,xe,Ie]=ee;if(Ie&&!pt(Ie))throw Ft(it.INVALID_ARGUMENT);return J(le,xe,Jt({resolvedMessage:!0},Ie||{}))}function re(...ee){return j(le=>Reflect.apply(Qv,null,[le,...ee]),()=>Mf(...ee),"datetime format",le=>Reflect.apply(le.d,le,[...ee]),()=>lu,le=>Ce(le))}function ie(...ee){return j(le=>Reflect.apply(tw,null,[le,...ee]),()=>Rf(...ee),"number format",le=>Reflect.apply(le.n,le,[...ee]),()=>lu,le=>Ce(le))}function Y(ee){return ee.map(le=>Ce(le)||Ht(le)||Qe(le)?rw(String(le)):le)}const oe={normalize:Y,interpolate:ee=>ee,type:"vnode"};function fe(...ee){return j(le=>{let xe;const Ie=le;try{Ie.processor=oe,xe=Reflect.apply(qv,null,[Ie,...ee])}finally{Ie.processor=null}return xe},()=>Lf(...ee),"translate",le=>le[If](...ee),le=>[rw(le)],le=>wt(le))}function we(...ee){return j(le=>Reflect.apply(tw,null,[le,...ee]),()=>Rf(...ee),"number format",le=>le[Pf](...ee),()=>[],le=>Ce(le)||wt(le))}function G(...ee){return j(le=>Reflect.apply(Qv,null,[le,...ee]),()=>Mf(...ee),"datetime format",le=>le[Df](...ee),()=>[],le=>Ce(le)||wt(le))}function pe(ee){x=ee,S.pluralRules=x}function me(ee,le){const xe=Ce(le)?le:s.value,Ie=H(xe);return S.messageResolver(Ie,ee)!==null}function be(ee){let le=null;const xe=sb(S,d.value,s.value);for(let Ie=0;Ie<xe.length;Ie++){const ot=f.value[xe[Ie]]||{},et=S.messageResolver(ot,ee);if(et!=null){le=et;break}}return le}function $e(ee){const le=be(ee);return le??(t?t.tm(ee)||{}:{})}function H(ee){return f.value[ee]||{}}function U(ee,le){f.value[ee]=le,S.messages=f.value}function te(ee,le){f.value[ee]=f.value[ee]||{},Uo(le,f.value[ee]),S.messages=f.value}function ve(ee){return l.value[ee]||{}}function ke(ee,le){l.value[ee]=le,S.datetimeFormats=l.value,ew(S,ee,le)}function Ne(ee,le){l.value[ee]=Jt(l.value[ee]||{},le),S.datetimeFormats=l.value,ew(S,ee,le)}function Tt(ee){return m.value[ee]||{}}function gt(ee,le){m.value[ee]=le,S.numberFormats=m.value,nw(S,ee,le)}function ae(ee,le){m.value[ee]=Jt(m.value[ee]||{},le),S.numberFormats=m.value,nw(S,ee,le)}sw++,t&&kr&&(c.watch(t.locale,ee=>{i&&(s.value=ee,S.locale=ee,Ao(S,s.value,d.value))}),c.watch(t.fallbackLocale,ee=>{i&&(d.value=ee,S.fallbackLocale=ee,Ao(S,s.value,d.value))}));const ye={id:sw,locale:A,fallbackLocale:R,get inheritLocale(){return i},set inheritLocale(ee){i=ee,ee&&t&&(s.value=t.locale.value,d.value=t.fallbackLocale.value,Ao(S,s.value,d.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:y,get modifiers(){return $},get pluralRules(){return x||{}},get isGlobal(){return r},get missingWarn(){return a},set missingWarn(ee){a=ee,S.missingWarn=a},get fallbackWarn(){return o},set fallbackWarn(ee){o=ee,S.fallbackWarn=o},get fallbackRoot(){return u},set fallbackRoot(ee){u=ee},get fallbackFormat(){return p},set fallbackFormat(ee){p=ee,S.fallbackFormat=p},get warnHtmlMessage(){return _},set warnHtmlMessage(ee){_=ee,S.warnHtmlMessage=ee},get escapeParameter(){return E},set escapeParameter(ee){E=ee,S.escapeParameter=ee},t:J,getLocaleMessage:H,setLocaleMessage:U,mergeLocaleMessage:te,getPostTranslationHandler:N,setPostTranslationHandler:I,getMissingHandler:P,setMissingHandler:B,[Sb]:pe};return ye.datetimeFormats=k,ye.numberFormats=O,ye.rt=q,ye.te=me,ye.tm=$e,ye.d=re,ye.n=ie,ye.getDateTimeFormat=ve,ye.setDateTimeFormat=ke,ye.mergeDateTimeFormat=Ne,ye.getNumberFormat=Tt,ye.setNumberFormat=gt,ye.mergeNumberFormat=ae,ye[_b]=n.__injectWithOption,ye[If]=fe,ye[Df]=G,ye[Pf]=we,process.env.NODE_ENV!=="production"&&(ye[ss]=ee=>{S.__v_emitter=ee},ye[ta]=()=>{S.__v_emitter=void 0}),ye}function XR(n){const e=Ce(n.locale)?n.locale:_a,t=Ce(n.fallbackLocale)||wt(n.fallbackLocale)||Ue(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:e,r=Rt(n.missing)?n.missing:void 0,i=Qe(n.silentTranslationWarn)||Mi(n.silentTranslationWarn)?!n.silentTranslationWarn:!0,s=Qe(n.silentFallbackWarn)||Mi(n.silentFallbackWarn)?!n.silentFallbackWarn:!0,d=Qe(n.fallbackRoot)?n.fallbackRoot:!0,f=!!n.formatFallbackMessages,l=Ue(n.modifiers)?n.modifiers:{},m=n.pluralizationRules,a=Rt(n.postTranslation)?n.postTranslation:void 0,o=Ce(n.warnHtmlInMessage)?n.warnHtmlInMessage!=="off":!0,u=!!n.escapeParameterHtml,p=Qe(n.sync)?n.sync:!0;process.env.NODE_ENV!=="production"&&n.formatter&&bn(cr(Yt.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&n.preserveDirectiveContent&&bn(cr(Yt.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let v=n.messages;if(Ue(n.sharedMessages)){const S=n.sharedMessages;v=Object.keys(S).reduce((M,A)=>{const R=M[A]||(M[A]={});return Jt(R,S[A]),M},v||{})}const{__i18n:w,__root:b,__injectWithOption:_}=n,E=n.datetimeFormats,$=n.numberFormats,x=n.flatJson;return{locale:e,fallbackLocale:t,messages:v,flatJson:x,datetimeFormats:E,numberFormats:$,missing:r,missingWarn:i,fallbackWarn:s,fallbackRoot:d,fallbackFormat:f,modifiers:l,pluralRules:m,postTranslation:a,warnHtmlMessage:o,escapeParameter:u,messageResolver:n.messageResolver,inheritLocale:p,__i18n:w,__root:b,__injectWithOption:_}}function Ff(n={},e){{const t=Rd(XR(n)),r={id:t.id,get locale(){return t.locale.value},set locale(i){t.locale.value=i},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(i){t.fallbackLocale.value=i},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&bn(cr(Yt.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(i){process.env.NODE_ENV!=="production"&&bn(cr(Yt.NOT_SUPPORTED_FORMATTER))},get missing(){return t.getMissingHandler()},set missing(i){t.setMissingHandler(i)},get silentTranslationWarn(){return Qe(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=Qe(i)?!i:i},get silentFallbackWarn(){return Qe(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=Qe(i)?!i:i},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(i){t.fallbackFormat=i},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(i){t.setPostTranslationHandler(i)},get sync(){return t.inheritLocale},set sync(i){t.inheritLocale=i},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){t.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(i){t.escapeParameter=i},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&bn(cr(Yt.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(i){process.env.NODE_ENV!=="production"&&bn(cr(Yt.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...i){const[s,d,f]=i,l={};let m=null,a=null;if(!Ce(s))throw Ft(it.INVALID_ARGUMENT);const o=s;return Ce(d)?l.locale=d:wt(d)?m=d:Ue(d)&&(a=d),wt(f)?m=f:Ue(f)&&(a=f),Reflect.apply(t.t,t,[o,m||a||{},l])},rt(...i){return Reflect.apply(t.rt,t,[...i])},tc(...i){const[s,d,f]=i,l={plural:1};let m=null,a=null;if(!Ce(s))throw Ft(it.INVALID_ARGUMENT);const o=s;return Ce(d)?l.locale=d:Ht(d)?l.plural=d:wt(d)?m=d:Ue(d)&&(a=d),Ce(f)?l.locale=f:wt(f)?m=f:Ue(f)&&(a=f),Reflect.apply(t.t,t,[o,m||a||{},l])},te(i,s){return t.te(i,s)},tm(i){return t.tm(i)},getLocaleMessage(i){return t.getLocaleMessage(i)},setLocaleMessage(i,s){t.setLocaleMessage(i,s)},mergeLocaleMessage(i,s){t.mergeLocaleMessage(i,s)},d(...i){return Reflect.apply(t.d,t,[...i])},getDateTimeFormat(i){return t.getDateTimeFormat(i)},setDateTimeFormat(i,s){t.setDateTimeFormat(i,s)},mergeDateTimeFormat(i,s){t.mergeDateTimeFormat(i,s)},n(...i){return Reflect.apply(t.n,t,[...i])},getNumberFormat(i){return t.getNumberFormat(i)},setNumberFormat(i,s){t.setNumberFormat(i,s)},mergeNumberFormat(i,s){t.mergeNumberFormat(i,s)},getChoiceIndex(i,s){return process.env.NODE_ENV!=="production"&&bn(cr(Yt.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1},__onComponentInstanceCreated(i){const{componentInstanceCreatedListener:s}=n;s&&s(i,r)}};return process.env.NODE_ENV!=="production"&&(r.__enableEmitter=i=>{const s=t;s[ss]&&s[ss](i)},r.__disableEmitter=()=>{const i=t;i[ta]&&i[ta]()}),r}}const Nd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function qR({slots:n},e){return e.length===1&&e[0]==="default"?(n.default?n.default():[]).reduce((r,i)=>r=[...r,...wt(i.children)?i.children:[i]],[]):e.reduce((t,r)=>{const i=n[r];return i&&(t[r]=i()),t},{})}function kb(n){return c.Fragment}const ef={name:"i18n-t",props:Jt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>Ht(n)||!isNaN(n)}},Nd),setup(n,e){const{slots:t,attrs:r}=e,i=n.i18n||Nu({useScope:n.scope,__useComponent:!0});return()=>{const s=Object.keys(t).filter(o=>o!=="_"),d={};n.locale&&(d.locale=n.locale),n.plural!==void 0&&(d.plural=Ce(n.plural)?+n.plural:n.plural);const f=qR(e,s),l=i[If](n.keypath,f,d),m=Jt({},r),a=Ce(n.tag)||pt(n.tag)?n.tag:kb();return c.h(a,m,l)}}};function ZR(n){return wt(n)&&!Ce(n[0])}function xb(n,e,t,r){const{slots:i,attrs:s}=e;return()=>{const d={part:!0};let f={};n.locale&&(d.locale=n.locale),Ce(n.format)?d.key=n.format:pt(n.format)&&(Ce(n.format.key)&&(d.key=n.format.key),f=Object.keys(n.format).reduce((u,p)=>t.includes(p)?Jt({},u,{[p]:n.format[p]}):u,{}));const l=r(n.value,d,f);let m=[d.key];wt(l)?m=l.map((u,p)=>{const v=i[u.type],w=v?v({[u.type]:u.value,index:p,parts:l}):[u.value];return ZR(w)&&(w[0].key=`${u.type}-${p}`),w}):Ce(l)&&(m=[l]);const a=Jt({},s),o=Ce(n.tag)||pt(n.tag)?n.tag:kb();return c.h(o,a,m)}}const aw={name:"i18n-n",props:Jt({value:{type:Number,required:!0},format:{type:[String,Object]}},Nd),setup(n,e){const t=n.i18n||Nu({useScope:"parent",__useComponent:!0});return xb(n,e,vb,(...r)=>t[Pf](...r))}},lw={name:"i18n-d",props:Jt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Nd),setup(n,e){const t=n.i18n||Nu({useScope:"parent",__useComponent:!0});return xb(n,e,gb,(...r)=>t[Df](...r))}};function QR(n,e){const t=n;if(n.mode==="composition")return t.__getInstance(e)||n.global;{const r=t.__getInstance(e);return r!=null?r.__composer:n.global.__composer}}function eN(n){const e=d=>{const{instance:f,modifiers:l,value:m}=d;if(!f||!f.$)throw Ft(it.UNEXPECTED_ERROR);const a=QR(n,f.$);process.env.NODE_ENV!=="production"&&l.preserve&&bn(cr(Yt.NOT_SUPPORTED_PRESERVE));const o=uw(m);return[Reflect.apply(a.t,a,[...cw(o)]),a]};return{created:(d,f)=>{const[l,m]=e(f);kr&&n.global===m&&(d.__i18nWatcher=c.watch(m.locale,()=>{f.instance&&f.instance.$forceUpdate()})),d.__composer=m,d.textContent=l},unmounted:d=>{kr&&d.__i18nWatcher&&(d.__i18nWatcher(),d.__i18nWatcher=void 0,delete d.__i18nWatcher),d.__composer&&(d.__composer=void 0,delete d.__composer)},beforeUpdate:(d,{value:f})=>{if(d.__composer){const l=d.__composer,m=uw(f);d.textContent=Reflect.apply(l.t,l,[...cw(m)])}},getSSRProps:d=>{const[f]=e(d);return{textContent:f}}}}function uw(n){if(Ce(n))return{path:n};if(Ue(n)){if(!("path"in n))throw Ft(it.REQUIRED_VALUE,"path");return n}else throw Ft(it.INVALID_VALUE)}function cw(n){const{path:e,locale:t,args:r,choice:i,plural:s}=n,d={},f=r||{};return Ce(t)&&(d.locale=t),Ht(i)&&(d.plural=i),Ht(s)&&(d.plural=s),[e,f,d]}function tN(n,e,...t){const r=Ue(t[0])?t[0]:{},i=!!r.useI18nComponentName,s=Qe(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&i&&bn(cr(Yt.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:ef.name})),s&&(n.component(i?"i18n":ef.name,ef),n.component(aw.name,aw),n.component(lw.name,lw)),n.directive("t",eN(e))}const Ab="vue-i18n: composer properties";let Vf;async function nN(n,e){return new Promise((t,r)=>{try{WR({id:"vue-devtools-plugin-vue-i18n",label:Qh["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Ab],app:n},i=>{Vf=i,i.on.visitComponentTree(({componentInstance:d,treeNode:f})=>{rN(d,f,e)}),i.on.inspectComponent(({componentInstance:d,instanceData:f})=>{d.vnode.el&&d.vnode.el.__VUE_I18N__&&f&&(e.mode==="legacy"?d.vnode.el.__VUE_I18N__!==e.global.__composer&&hw(f,d.vnode.el.__VUE_I18N__):hw(f,d.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:Qh["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:HR["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(d=>{d.app===n&&d.inspectorId==="vue-i18n-resource-inspector"&&lN(d,e)});const s=new Map;i.on.getInspectorState(async d=>{if(d.app===n&&d.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),cN(d,e),d.nodeId==="global"){if(!s.has(d.app)){const[f]=await i.getComponentInstances(d.app);s.set(d.app,f)}i.highlightElement(s.get(d.app))}else{const f=uN(d.nodeId,e);f&&i.highlightElement(f)}}),i.on.editInspectorState(d=>{d.app===n&&d.inspectorId==="vue-i18n-resource-inspector"&&fN(d,e)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:Qh["vue-i18n-timeline"],color:zR["vue-i18n-timeline"]}),t(!0)})}catch(i){console.error(i),r(!1)}})}function Tb(n){return n.type.name||n.type.displayName||n.type.__file||"Anonymous"}function rN(n,e,t){const r=t.mode==="composition"?t.global:t.global.__composer;if(n&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&n.vnode.el.__VUE_I18N__!==r){const i={label:`i18n (${Tb(n)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(i)}}function hw(n,e){const t=Ab;n.state.push({type:t,key:"locale",editable:!0,value:e.locale.value}),n.state.push({type:t,key:"availableLocales",editable:!1,value:e.availableLocales}),n.state.push({type:t,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value}),n.state.push({type:t,key:"inheritLocale",editable:!0,value:e.inheritLocale}),n.state.push({type:t,key:"messages",editable:!1,value:Id(e.messages.value)}),n.state.push({type:t,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}),n.state.push({type:t,key:"numberFormats",editable:!1,value:e.numberFormats.value})}function Id(n){const e={};return Object.keys(n).forEach(t=>{const r=n[t];Rt(r)&&"source"in r?e[t]=aN(r):pt(r)?e[t]=Id(r):e[t]=r}),e}const iN={"<":"<",">":">",'"':""","&":"&"};function sN(n){return n.replace(/[<>"&]/g,oN)}function oN(n){return iN[n]||n}function aN(n){return{_custom:{type:"function",display:`<span>ƒ</span> ${n.source?`("${sN(n.source)}")`:"(?)"}`}}}function lN(n,e){n.rootNodes.push({id:"global",label:"Global Scope"});const t=e.mode==="composition"?e.global:e.global.__composer;for(const[r,i]of e.__instances){const s=e.mode==="composition"?i:i.__composer;t!==s&&n.rootNodes.push({id:s.id.toString(),label:`${Tb(r)} Scope`})}}function uN(n,e){let t=null;if(n!=="global"){for(const[r,i]of e.__instances.entries())if(i.id.toString()===n){t=r;break}}return t}function $b(n,e){if(n==="global")return e.mode==="composition"?e.global:e.global.__composer;{const t=Array.from(e.__instances.values()).find(r=>r.id.toString()===n);return t?e.mode==="composition"?t:t.__composer:null}}function cN(n,e){const t=$b(n.nodeId,e);return t&&(n.state=hN(t)),null}function hN(n){const e={},t="Locale related info",r=[{type:t,key:"locale",editable:!0,value:n.locale.value},{type:t,key:"fallbackLocale",editable:!0,value:n.fallbackLocale.value},{type:t,key:"availableLocales",editable:!1,value:n.availableLocales},{type:t,key:"inheritLocale",editable:!0,value:n.inheritLocale}];e[t]=r;const i="Locale messages info",s=[{type:i,key:"messages",editable:!1,value:Id(n.messages.value)}];e[i]=s;{const d="Datetime formats info",f=[{type:d,key:"datetimeFormats",editable:!1,value:n.datetimeFormats.value}];e[d]=f;const l="Datetime formats info",m=[{type:l,key:"numberFormats",editable:!1,value:n.numberFormats.value}];e[l]=m}return e}function na(n,e){if(Vf){let t;e&&"groupId"in e&&(t=e.groupId,delete e.groupId),Vf.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:n,groupId:t,time:Date.now(),meta:{},data:e||{},logType:n==="compile-error"?"error":n==="fallback"||n==="missing"?"warning":"default"}})}}function fN(n,e){const t=$b(n.nodeId,e);if(t){const[r]=n.path;r==="locale"&&Ce(n.state.value)?t.locale.value=n.state.value:r==="fallbackLocale"&&(Ce(n.state.value)||wt(n.state.value)||pt(n.state.value))?t.fallbackLocale.value=n.state.value:r==="inheritLocale"&&Qe(n.state.value)&&(t.inheritLocale=n.state.value)}}function dN(n,e,t){return{beforeCreate(){const r=c.getCurrentInstance();if(!r)throw Ft(it.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const s=i.i18n;i.__i18n&&(s.__i18n=i.__i18n),s.__root=e,this===this.$root?this.$i18n=fw(n,s):(s.__injectWithOption=!0,this.$i18n=Ff(s))}else i.__i18n?this===this.$root?this.$i18n=fw(n,i):this.$i18n=Ff({__i18n:i.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=n;i.__i18nGlobal&&Eb(e,i,i),n.__onComponentInstanceCreated(this.$i18n),t.__setInstance(r,this.$i18n),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,d)=>this.$i18n.te(s,d),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){this.$el.__VUE_I18N__=this.$i18n.__composer;const r=this.__v_emitter=Od(),i=this.$i18n;i.__enableEmitter&&i.__enableEmitter(r),r.on("*",na)}},unmounted(){const r=c.getCurrentInstance();if(!r)throw Ft(it.UNEXPECTED_ERROR);if(process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",na),delete this.__v_emitter),this.$i18n)){const i=this.$i18n;i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__}delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__deleteInstance(r),delete this.$i18n}}}function fw(n,e){n.locale=e.locale||n.locale,n.fallbackLocale=e.fallbackLocale||n.fallbackLocale,n.missing=e.missing||n.missing,n.silentTranslationWarn=e.silentTranslationWarn||n.silentFallbackWarn,n.silentFallbackWarn=e.silentFallbackWarn||n.silentFallbackWarn,n.formatFallbackMessages=e.formatFallbackMessages||n.formatFallbackMessages,n.postTranslation=e.postTranslation||n.postTranslation,n.warnHtmlInMessage=e.warnHtmlInMessage||n.warnHtmlInMessage,n.escapeParameterHtml=e.escapeParameterHtml||n.escapeParameterHtml,n.sync=e.sync||n.sync,n.__composer[Sb](e.pluralizationRules||n.pluralizationRules);const t=Ru(n.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(t).forEach(r=>n.mergeLocaleMessage(r,t[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>n.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>n.mergeNumberFormat(r,e.numberFormats[r])),n}const pN=$r("global-vue-i18n");function mN(n={},e){const t=__VUE_I18N_LEGACY_API__&&Qe(n.legacy)?n.legacy:__VUE_I18N_LEGACY_API__,r=Qe(n.globalInjection)?n.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&t?!!n.allowComposition:!0,s=new Map,[d,f]=gN(n,t),l=$r(process.env.NODE_ENV!=="production"?"vue-i18n":"");function m(u){return s.get(u)||null}function a(u,p){s.set(u,p)}function o(u){s.delete(u)}{const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},get allowComposition(){return i},async install(p,...v){process.env.NODE_ENV!=="production"&&(p.__VUE_I18N__=u),p.__VUE_I18N_SYMBOL__=l,p.provide(p.__VUE_I18N_SYMBOL__,u),!t&&r&&kN(p,u.global),__VUE_I18N_FULL_INSTALL__&&tN(p,u,...v),__VUE_I18N_LEGACY_API__&&t&&p.mixin(dN(f,f.__composer,u));const w=p.unmount;if(p.unmount=()=>{u.dispose(),w()},process.env.NODE_ENV!=="production"){if(!await nN(p,u))throw Ft(it.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const _=Od();if(t){const E=f;E.__enableEmitter&&E.__enableEmitter(_)}else{const E=f;E[ss]&&E[ss](_)}_.on("*",na)}},get global(){return f},dispose(){d.stop()},__instances:s,__getInstance:m,__setInstance:a,__deleteInstance:o};return u}}function Nu(n={}){const e=c.getCurrentInstance();if(e==null)throw Ft(it.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Ft(it.NOT_INSLALLED);const t=vN(e),r=yN(t),i=Cb(e),s=wN(n,i);if(__VUE_I18N_LEGACY_API__&&t.mode==="legacy"&&!n.__useComponent){if(!t.allowComposition)throw Ft(it.NOT_AVAILABLE_IN_LEGACY_MODE);return _N(e,s,r,n)}if(s==="global")return Eb(r,n,i),r;if(s==="parent"){let l=bN(t,e,n.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&bn(cr(Yt.NOT_FOUND_PARENT_SCOPE)),l=r),l}const d=t;let f=d.__getInstance(e);if(f==null){const l=Jt({},n);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),f=Rd(l),SN(d,e,f),d.__setInstance(e,f)}return f}function gN(n,e,t){const r=c.effectScope();{const i=__VUE_I18N_LEGACY_API__&&e?r.run(()=>Ff(n)):r.run(()=>Rd(n));if(i==null)throw Ft(it.UNEXPECTED_ERROR);return[r,i]}}function vN(n){{const e=c.inject(n.isCE?pN:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Ft(n.isCE?it.NOT_INSLALLED_WITH_PROVIDE:it.UNEXPECTED_ERROR);return e}}function wN(n,e){return $u(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function yN(n){return n.mode==="composition"?n.global:n.global.__composer}function bN(n,e,t=!1){let r=null;const i=e.root;let s=e.parent;for(;s!=null;){const d=n;if(n.mode==="composition")r=d.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const f=d.__getInstance(s);f!=null&&(r=f.__composer,t&&r&&!r[_b]&&(r=null))}if(r!=null||i===s)break;s=s.parent}return r}function SN(n,e,t){let r=null;c.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=t,r=Od();const i=t;i[ss]&&i[ss](r),r.on("*",na)}},e),c.onUnmounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__){r&&r.off("*",na);const i=t;i[ta]&&i[ta](),delete e.vnode.el.__VUE_I18N__}n.__deleteInstance(e)},e)}function _N(n,e,t,r={}){const i=e==="local",s=c.shallowRef(null);if(i&&n.proxy&&!(n.proxy.$options.i18n||n.proxy.$options.__i18n))throw Ft(it.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const d=Qe(r.inheritLocale)?r.inheritLocale:!0,f=c.ref(i&&d?t.locale.value:Ce(r.locale)?r.locale:_a),l=c.ref(i&&d?t.fallbackLocale.value:Ce(r.fallbackLocale)||wt(r.fallbackLocale)||Ue(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:f.value),m=c.ref(Ru(f.value,r)),a=c.ref(Ue(r.datetimeFormats)?r.datetimeFormats:{[f.value]:{}}),o=c.ref(Ue(r.numberFormats)?r.numberFormats:{[f.value]:{}}),u=i?t.missingWarn:Qe(r.missingWarn)||Mi(r.missingWarn)?r.missingWarn:!0,p=i?t.fallbackWarn:Qe(r.fallbackWarn)||Mi(r.fallbackWarn)?r.fallbackWarn:!0,v=i?t.fallbackRoot:Qe(r.fallbackRoot)?r.fallbackRoot:!0,w=!!r.fallbackFormat,b=Rt(r.missing)?r.missing:null,_=Rt(r.postTranslation)?r.postTranslation:null,E=i?t.warnHtmlMessage:Qe(r.warnHtmlMessage)?r.warnHtmlMessage:!0,$=!!r.escapeParameter,x=i?t.modifiers:Ue(r.modifiers)?r.modifiers:{},S=r.pluralRules||i&&t.pluralRules;function T(){return[f.value,l.value,m.value,a.value,o.value]}const M=c.computed({get:()=>s.value?s.value.locale.value:f.value,set:U=>{s.value&&(s.value.locale.value=U),f.value=U}}),A=c.computed({get:()=>s.value?s.value.fallbackLocale.value:l.value,set:U=>{s.value&&(s.value.fallbackLocale.value=U),l.value=U}}),R=c.computed(()=>s.value?s.value.messages.value:m.value),y=c.computed(()=>a.value),k=c.computed(()=>o.value);function O(){return s.value?s.value.getPostTranslationHandler():_}function N(U){s.value&&s.value.setPostTranslationHandler(U)}function I(){return s.value?s.value.getMissingHandler():b}function P(U){s.value&&s.value.setMissingHandler(U)}function B(U){return T(),U()}function z(...U){return s.value?B(()=>Reflect.apply(s.value.t,null,[...U])):B(()=>"")}function j(...U){return s.value?Reflect.apply(s.value.rt,null,[...U]):""}function J(...U){return s.value?B(()=>Reflect.apply(s.value.d,null,[...U])):B(()=>"")}function q(...U){return s.value?B(()=>Reflect.apply(s.value.n,null,[...U])):B(()=>"")}function re(U){return s.value?s.value.tm(U):{}}function ie(U,te){return s.value?s.value.te(U,te):!1}function Y(U){return s.value?s.value.getLocaleMessage(U):{}}function ne(U,te){s.value&&(s.value.setLocaleMessage(U,te),m.value[U]=te)}function oe(U,te){s.value&&s.value.mergeLocaleMessage(U,te)}function fe(U){return s.value?s.value.getDateTimeFormat(U):{}}function we(U,te){s.value&&(s.value.setDateTimeFormat(U,te),a.value[U]=te)}function G(U,te){s.value&&s.value.mergeDateTimeFormat(U,te)}function pe(U){return s.value?s.value.getNumberFormat(U):{}}function me(U,te){s.value&&(s.value.setNumberFormat(U,te),o.value[U]=te)}function be(U,te){s.value&&s.value.mergeNumberFormat(U,te)}const $e={get id(){return s.value?s.value.id:-1},locale:M,fallbackLocale:A,messages:R,datetimeFormats:y,numberFormats:k,get inheritLocale(){return s.value?s.value.inheritLocale:d},set inheritLocale(U){s.value&&(s.value.inheritLocale=U)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(m.value)},get modifiers(){return s.value?s.value.modifiers:x},get pluralRules(){return s.value?s.value.pluralRules:S},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:u},set missingWarn(U){s.value&&(s.value.missingWarn=U)},get fallbackWarn(){return s.value?s.value.fallbackWarn:p},set fallbackWarn(U){s.value&&(s.value.missingWarn=U)},get fallbackRoot(){return s.value?s.value.fallbackRoot:v},set fallbackRoot(U){s.value&&(s.value.fallbackRoot=U)},get fallbackFormat(){return s.value?s.value.fallbackFormat:w},set fallbackFormat(U){s.value&&(s.value.fallbackFormat=U)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:E},set warnHtmlMessage(U){s.value&&(s.value.warnHtmlMessage=U)},get escapeParameter(){return s.value?s.value.escapeParameter:$},set escapeParameter(U){s.value&&(s.value.escapeParameter=U)},t:z,getPostTranslationHandler:O,setPostTranslationHandler:N,getMissingHandler:I,setMissingHandler:P,rt:j,d:J,n:q,tm:re,te:ie,getLocaleMessage:Y,setLocaleMessage:ne,mergeLocaleMessage:oe,getDateTimeFormat:fe,setDateTimeFormat:we,mergeDateTimeFormat:G,getNumberFormat:pe,setNumberFormat:me,mergeNumberFormat:be};function H(U){U.locale.value=f.value,U.fallbackLocale.value=l.value,Object.keys(m.value).forEach(te=>{U.mergeLocaleMessage(te,m.value[te])}),Object.keys(a.value).forEach(te=>{U.mergeDateTimeFormat(te,a.value[te])}),Object.keys(o.value).forEach(te=>{U.mergeNumberFormat(te,o.value[te])}),U.escapeParameter=$,U.fallbackFormat=w,U.fallbackRoot=v,U.fallbackWarn=p,U.missingWarn=u,U.warnHtmlMessage=E}return c.onBeforeMount(()=>{if(n.proxy==null||n.proxy.$i18n==null)throw Ft(it.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const U=s.value=n.proxy.$i18n.__composer;e==="global"?(f.value=U.locale.value,l.value=U.fallbackLocale.value,m.value=U.messages.value,a.value=U.datetimeFormats.value,o.value=U.numberFormats.value):i&&H(U)}),$e}const CN=["locale","fallbackLocale","availableLocales"],EN=["t","rt","d","n","tm"];function kN(n,e){const t=Object.create(null);CN.forEach(r=>{const i=Object.getOwnPropertyDescriptor(e,r);if(!i)throw Ft(it.UNEXPECTED_ERROR);const s=c.isRef(i.value)?{get(){return i.value.value},set(d){i.value.value=d}}:{get(){return i.get&&i.get()}};Object.defineProperty(t,r,s)}),n.config.globalProperties.$i18n=t,EN.forEach(r=>{const i=Object.getOwnPropertyDescriptor(e,r);if(!i||!i.value)throw Ft(it.UNEXPECTED_ERROR);Object.defineProperty(n.config.globalProperties,`$${r}`,i)})}yR($R);bR(eR);SR(sb);GR();if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const n=Vo();n.__INTLIFY__=!0,uR(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function Dd(){return console.debug("[@vc-shell/framework#useI18n] - Entry point"),Nu({useScope:"global"})}const xN={},AN=Object.freeze(Object.defineProperty({__proto__:null,default:xN},Symbol.toStringTag,{value:"Module"})),TN=RO(AN);var ra={};function $N(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var ON=function(n,e,t,r){e=e||"&",t=t||"=";var i={};if(typeof n!="string"||n.length===0)return i;var s=/\+/g;n=n.split(e);var d=1e3;r&&typeof r.maxKeys=="number"&&(d=r.maxKeys);var f=n.length;d>0&&f>d&&(f=d);for(var l=0;l<f;++l){var m=n[l].replace(s,"%20"),a=m.indexOf(t),o,u,p,v;a>=0?(o=m.substr(0,a),u=m.substr(a+1)):(o=m,u=""),p=decodeURIComponent(o),v=decodeURIComponent(u),$N(i,p)?Array.isArray(i[p])?i[p].push(v):i[p]=[i[p],v]:i[p]=v}return i},To=function(n){switch(typeof n){case"string":return n;case"boolean":return n?"true":"false";case"number":return isFinite(n)?n:"";default:return""}},LN=function(n,e,t,r){return e=e||"&",t=t||"=",n===null&&(n=void 0),typeof n=="object"?Object.keys(n).map(function(i){var s=encodeURIComponent(To(i))+t;return Array.isArray(n[i])?n[i].map(function(d){return s+encodeURIComponent(To(d))}).join(e):s+encodeURIComponent(To(n[i]))}).filter(Boolean).join(e):r?encodeURIComponent(To(r))+t+encodeURIComponent(To(n)):""};ra.decode=ra.parse=ON;ra.encode=ra.stringify=LN;var MN=function(e,t,r,i){return new Promise(function(s,d){var f=new window.XMLHttpRequest;f.open(e,t),f.onload=function(){return s({status:f.status,body:f.responseText})},f.onerror=f.onabort=function(){return d(new Error(f.statusText||"XHR aborted: "+t))},Object.keys(i).forEach(function(l){f.setRequestHeader(l,i[l])}),f.send(r)})},Ob=TN.Buffer,os=ra,RN=MN;const uu="https://example.org/";var Uf;typeof Ob=="function"?Uf=DN:Uf=window.btoa.bind(window);var NN=ia,Ca={Accept:"application/json, application/x-www-form-urlencoded","Content-Type":"application/x-www-form-urlencoded"},IN={invalid_request:["The request is missing a required parameter, includes an","invalid parameter value, includes a parameter more than","once, or is otherwise malformed."].join(" "),invalid_client:["Client authentication failed (e.g., unknown client, no","client authentication included, or unsupported","authentication method)."].join(" "),invalid_grant:["The provided authorization grant (e.g., authorization","code, resource owner credentials) or refresh token is","invalid, expired, revoked, does not match the redirection","URI used in the authorization request, or was issued to","another client."].join(" "),unauthorized_client:["The client is not authorized to request an authorization","code using this method."].join(" "),unsupported_grant_type:["The authorization grant type is not supported by the","authorization server."].join(" "),access_denied:["The resource owner or authorization server denied the request."].join(" "),unsupported_response_type:["The authorization server does not support obtaining","an authorization code using this method."].join(" "),invalid_scope:["The requested scope is invalid, unknown, or malformed."].join(" "),server_error:["The authorization server encountered an unexpected","condition that prevented it from fulfilling the request.","(This error code is needed because a 500 Internal Server","Error HTTP status code cannot be returned to the client","via an HTTP redirect.)"].join(" "),temporarily_unavailable:["The authorization server is currently unable to handle","the request due to a temporary overloading or maintenance","of the server."].join(" ")};function DN(n){return Ob.from(n).toString("base64")}function Iu(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(n[t]==null)throw new TypeError('Expected "'+t+'" to exist')}}function Pd(n){var e=IN[n.error]||n.error_description||n.error;if(e){var t=new Error(e);return t.body=n,t.code="EAUTH",t}}function PN(n){try{return JSON.parse(n)}catch{return os.parse(n)}}function Du(n){return Array.isArray(n)?n.join(" "):Wf(n)}function Lb(n,e){Iu(n,"clientId","authorizationUri");const t={client_id:n.clientId,redirect_uri:n.redirectUri,response_type:e,state:n.state};n.scopes!==void 0&&(t.scope=Du(n.scopes));const r=n.authorizationUri.includes("?")?"&":"?";return n.authorizationUri+r+os.stringify(Object.assign(t,n.query))}function Ea(n,e){return"Basic "+Uf(Wf(n)+":"+Wf(e))}function Wf(n){return n==null?"":String(n)}function ka(n,e){return{url:n.url,method:n.method,body:Object.assign({},n.body,e.body),query:Object.assign({},n.query,e.query),headers:Object.assign({},n.headers,e.headers)}}function ia(n,e){this.options=n,this.request=e||RN,this.code=new Fd(this),this.token=new Bd(this),this.owner=new Mb(this),this.credentials=new Rb(this),this.jwt=new Nb(this)}ia.Token=xa;ia.prototype.createToken=function(n,e,t,r){var i=Object.assign({},r,typeof n=="string"?{access_token:n}:n,typeof e=="string"?{refresh_token:e}:e,typeof t=="string"?{token_type:t}:t);return new ia.Token(this,i)};ia.prototype._request=function(n){var e=n.url,t=os.stringify(n.body),r=os.stringify(n.query);return r&&(e+=(e.indexOf("?")===-1?"?":"&")+r),this.request(n.method,e,t,n.headers).then(function(i){var s=PN(i.body),d=Pd(s);if(d)return Promise.reject(d);if(i.status<200||i.status>=399){var f=new Error("HTTP status "+i.status);return f.status=i.status,f.body=i.body,f.code="ESTATUS",Promise.reject(f)}return s})};function xa(n,e){this.client=n,this.data=e,this.tokenType=e.token_type&&e.token_type.toLowerCase(),this.accessToken=e.access_token,this.refreshToken=e.refresh_token,this.expiresIn(Number(e.expires_in))}xa.prototype.expiresIn=function(n){if(typeof n=="number")this.expires=new Date,this.expires.setSeconds(this.expires.getSeconds()+n);else if(n instanceof Date)this.expires=new Date(n.getTime());else throw new TypeError("Unknown duration: "+n);return this.expires};xa.prototype.sign=function(n){if(!this.accessToken)throw new Error("Unable to sign without access token");if(n.headers=n.headers||{},this.tokenType==="bearer")n.headers.Authorization="Bearer "+this.accessToken;else{var e=n.url.split("#"),t="access_token="+this.accessToken,r=e[0].replace(/[?&]access_token=[^&#]/,""),i=e[1]?"#"+e[1]:"";n.url=r+(r.indexOf("?")>-1?"&":"?")+t+i,n.headers.Pragma="no-store",n.headers["Cache-Control"]="no-store"}return n};xa.prototype.refresh=function(n){var e=this,t=Object.assign({},this.client.options,n);return this.refreshToken?this.client._request(ka({url:t.accessTokenUri,method:"POST",headers:Object.assign({},Ca,{Authorization:Ea(t.clientId,t.clientSecret)}),body:{refresh_token:this.refreshToken,grant_type:"refresh_token"}},t)).then(function(r){return e.client.createToken(Object.assign({},e.data,r))}):Promise.reject(new Error("No refresh token"))};xa.prototype.expired=function(){return Date.now()>this.expires.getTime()};function Mb(n){this.client=n}Mb.prototype.getToken=function(n,e,t){var r=this,i=Object.assign({},this.client.options,t);const s={username:n,password:e,grant_type:"password"};return i.scopes!==void 0&&(s.scope=Du(i.scopes)),this.client._request(ka({url:i.accessTokenUri,method:"POST",headers:Object.assign({},Ca,{Authorization:Ea(i.clientId,i.clientSecret)}),body:s},i)).then(function(d){return r.client.createToken(d)})};function Bd(n){this.client=n}Bd.prototype.getUri=function(n){var e=Object.assign({},this.client.options,n);return Lb(e,"token")};Bd.prototype.getToken=function(n,e){var t=Object.assign({},this.client.options,e),r=typeof n=="object"?n:new URL(n,uu),i=new URL(t.redirectUri,uu);if(typeof r.pathname=="string"&&r.pathname!==i.pathname)return Promise.reject(new TypeError("Redirected path should match configured path, but got: "+r.pathname));if(!r.hash&&!r.search)return Promise.reject(new TypeError("Unable to process uri: "+n));var s=Object.assign({},typeof r.search=="string"?os.parse(r.search.substr(1)):r.search||{},typeof r.hash=="string"?os.parse(r.hash.substr(1)):r.hash||{}),d=Pd(s);return d?Promise.reject(d):t.state!=null&&s.state!==t.state?Promise.reject(new TypeError("Invalid state: "+s.state)):Promise.resolve(this.client.createToken(s))};function Rb(n){this.client=n}Rb.prototype.getToken=function(n){var e=this,t=Object.assign({},this.client.options,n);Iu(t,"clientId","clientSecret","accessTokenUri");const r={grant_type:"client_credentials"};return t.scopes!==void 0&&(r.scope=Du(t.scopes)),this.client._request(ka({url:t.accessTokenUri,method:"POST",headers:Object.assign({},Ca,{Authorization:Ea(t.clientId,t.clientSecret)}),body:r},t)).then(function(i){return e.client.createToken(i)})};function Fd(n){this.client=n}Fd.prototype.getUri=function(n){var e=Object.assign({},this.client.options,n);return Lb(e,"code")};Fd.prototype.getToken=function(n,e){var t=this,r=Object.assign({},this.client.options,e);Iu(r,"clientId","accessTokenUri");var i=typeof n=="object"?n:new URL(n,uu);if(typeof r.redirectUri=="string"&&typeof i.pathname=="string"&&i.pathname!==new URL(r.redirectUri,uu).pathname)return Promise.reject(new TypeError("Redirected path should match configured path, but got: "+i.pathname));if(!i.search||!i.search.substr(1))return Promise.reject(new TypeError("Unable to process uri: "+n));var s=typeof i.search=="string"?os.parse(i.search.substr(1)):i.search||{},d=Pd(s);if(d)return Promise.reject(d);if(r.state!=null&&s.state!==r.state)return Promise.reject(new TypeError("Invalid state: "+s.state));if(!s.code)return Promise.reject(new TypeError("Missing code, unable to request token"));var f=Object.assign({},Ca),l={code:s.code,grant_type:"authorization_code",redirect_uri:r.redirectUri};return r.clientSecret?f.Authorization=Ea(r.clientId,r.clientSecret):l.client_id=r.clientId,this.client._request(ka({url:r.accessTokenUri,method:"POST",headers:f,body:l},r)).then(function(m){return t.client.createToken(m)})};function Nb(n){this.client=n}Nb.prototype.getToken=function(n,e){var t=this,r=Object.assign({},this.client.options,e),i=Object.assign({},Ca);Iu(r,"accessTokenUri"),r.clientId&&(i.Authorization=Ea(r.clientId,r.clientSecret));const s={grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:n};return r.scopes!==void 0&&(s.scope=Du(r.scopes)),this.client._request(ka({url:r.accessTokenUri,method:"POST",headers:i,body:s},r)).then(function(d){return t.client.createToken(d)})};class Pn{authToken="";constructor(){}getBaseUrl(e,t){return""}setAuthToken(e){this.authToken=e}transformOptions(e){return e.headers.authorization=`Bearer ${this.authToken}`,Promise.resolve(e)}}class BN extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}exchange(e){let t=this.baseUrl+"/connect/token";t=t.replace(/[?&]$/,"");let i={body:Object.keys(e).map(s=>encodeURIComponent(s)+"="+encodeURIComponent(e[s])).join("&"),method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processExchange(s))}processExchange(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=sa.fromJS(d),s}):t===400?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=sa.fromJS(d),X("Bad Request",t,i,r,s)}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class FN extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}signIn(e){let t=this.baseUrl+"/externalsignin?";e!=null&&(t+="authenticationType="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processSignIn(i))}processSignIn(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}signInCallback(e){let t=this.baseUrl+"/externalsignin/callback?";e!=null&&(t+="returnUrl="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processSignInCallback(i))}processSignInCallback(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getExternalLoginProviders(){let e=this.baseUrl+"/externalsignin/providers";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processGetExternalLoginProviders(r))}processGetExternalLoginProviders(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class Ib extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}getApps(){let e=this.baseUrl+"/api/platform/apps";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processGetApps(r))}processGetApps(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(Pu.fromJS(f))}else s=null;return s}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class VN extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}forceChanges(e){let t=this.baseUrl+"/api/changes/force?";e!=null&&(t+="Scope="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let r={method:"POST",headers:{}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processForceChanges(i))}processForceChanges(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}resetPlatformCache(){let e=this.baseUrl+"/api/platform-cache/reset";e=e.replace(/[?&]$/,"");let t={method:"POST",headers:{}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processResetPlatformCache(r))}processResetPlatformCache(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getLastModifiedDate(e){let t=this.baseUrl+"/api/changes/lastmodifieddate?";e!=null&&(t+="scope="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processGetLastModifiedDate(i))}processGetLastModifiedDate(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Bu.fromJS(d),s}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getChangedEntities(e){let t=this.baseUrl+"/api/changes/changed-entities";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processGetChangedEntities(s))}processGetChangedEntities(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Vu.fromJS(d),s}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}resetChangedEntities(e){let t=this.baseUrl+"/api/changes/changed-entities/reset";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processResetChangedEntities(s))}processResetChangedEntities(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}searchChanges(e){let t=this.baseUrl+"/api/platform/changelog/search";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processSearchChanges(s))}processSearchChanges(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Uu.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}searchTypeChangeHistory(e,t,r){let i=this.baseUrl+"/api/platform/changelog/{type}/changes?";if(e==null)throw new Error("The parameter 'type' must be defined.");i=i.replace("{type}",encodeURIComponent(""+e)),t!=null&&(i+="start="+encodeURIComponent(t?""+t.toISOString():"")+"&"),r!=null&&(i+="end="+encodeURIComponent(r?""+r.toISOString():"")+"&"),i=i.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(s).then(d=>this.http.fetch(i,d)).then(d=>this.processSearchTypeChangeHistory(d))}processSearchTypeChangeHistory(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(Aa.fromJS(f))}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class UN extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}getSystemInfo(){let e=this.baseUrl+"/api/platform/diagnostics/systeminfo";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processGetSystemInfo(r))}processGetSystemInfo(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=zu.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getModulesErrors(){let e=this.baseUrl+"/api/platform/diagnostics/errors";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processGetModulesErrors(r))}processGetModulesErrors(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(Jr.fromJS(f))}else s=null;return s}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class WN extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}getObjectTypes(){let e=this.baseUrl+"/api/platform/dynamic/types";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processGetObjectTypes(r))}processGetObjectTypes(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(f)}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}searchDynamicProperties(e){let t=this.baseUrl+"/api/platform/dynamic/properties/search";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processSearchDynamicProperties(s))}processSearchDynamicProperties(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=ju.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}createProperty(e){let t=this.baseUrl+"/api/platform/dynamic/properties";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processCreateProperty(s))}processCreateProperty(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=$a.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}updateProperty(e){let t=this.baseUrl+"/api/platform/dynamic/properties";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"PUT",headers:{"Content-Type":"application/json-patch+json"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processUpdateProperty(s))}processUpdateProperty(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}deleteProperty(e){let t=this.baseUrl+"/api/platform/dynamic/properties?";e!=null&&e&&e.forEach(i=>{t+="propertyIds="+encodeURIComponent(""+i)+"&"}),t=t.replace(/[?&]$/,"");let r={method:"DELETE",headers:{}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processDeleteProperty(i))}processDeleteProperty(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}exposeDynamicObjectProperty(){let e=this.baseUrl+"/api/platform/dynamic";e=e.replace(/[?&]$/,"");let t={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processExposeDynamicObjectProperty(r))}processExposeDynamicObjectProperty(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Yu.fromJS(d),s}):t===204?e.text().then(i=>X("Success",t,i,r)):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}searchDictionaryItems(e){let t=this.baseUrl+"/api/platform/dynamic/dictionaryitems/search";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processSearchDictionaryItems(s))}processSearchDictionaryItems(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Xu.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}saveDictionaryItems(e){let t=this.baseUrl+"/api/platform/dynamic/dictionaryitems";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processSaveDictionaryItems(s))}processSaveDictionaryItems(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}deleteDictionaryItem(e){let t=this.baseUrl+"/api/platform/dynamic/dictionaryitems?";e!=null&&e&&e.forEach(i=>{t+="ids="+encodeURIComponent(""+i)+"&"}),t=t.replace(/[?&]$/,"");let r={method:"DELETE",headers:{}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processDeleteDictionaryItem(i))}processDeleteDictionaryItem(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class HN extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}getStatus(e){let t=this.baseUrl+"/api/platform/jobs/{id}";if(e==null)throw new Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processGetStatus(i))}processGetStatus(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=qu.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class zN extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}reloadModules(){let e=this.baseUrl+"/api/platform/modules/reload";e=e.replace(/[?&]$/,"");let t={method:"POST",headers:{}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processReloadModules(r))}processReloadModules(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getModules(){let e=this.baseUrl+"/api/platform/modules";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processGetModules(r))}processGetModules(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(Jr.fromJS(f))}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getDependingModules(e){let t=this.baseUrl+"/api/platform/modules/getdependents";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processGetDependingModules(s))}processGetDependingModules(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(Jr.fromJS(f))}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getMissingDependencies(e){let t=this.baseUrl+"/api/platform/modules/getmissingdependencies";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processGetMissingDependencies(s))}processGetMissingDependencies(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(Jr.fromJS(f))}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}uploadModuleArchive(){let e=this.baseUrl+"/api/platform/modules/localstorage";e=e.replace(/[?&]$/,"");let t={method:"POST",headers:{Accept:"text/plain"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processUploadModuleArchive(r))}processUploadModuleArchive(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Jr.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}installModules(e){let t=this.baseUrl+"/api/platform/modules/install";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processInstallModules(s))}processInstallModules(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=aa.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}uninstallModule(e){let t=this.baseUrl+"/api/platform/modules/uninstall";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processUninstallModule(s))}processUninstallModule(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=aa.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}restart(){let e=this.baseUrl+"/api/platform/modules/restart";e=e.replace(/[?&]$/,"");let t={method:"POST",headers:{}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processRestart(r))}processRestart(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}tryToAutoInstallModules(){let e=this.baseUrl+"/api/platform/modules/autoinstall";e=e.replace(/[?&]$/,"");let t={method:"POST",headers:{Accept:"text/plain"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processTryToAutoInstallModules(r))}processTryToAutoInstallModules(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Zu.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class jN extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}new(){let e=this.baseUrl+"/api/platform/oauthapps/new";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processNew(r))}processNew(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=qs.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}save(e){let t=this.baseUrl+"/api/platform/oauthapps";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processSave(s))}processSave(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=qs.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}delete(e){let t=this.baseUrl+"/api/platform/oauthapps?";e!=null&&e&&e.forEach(i=>{t+="clientIds="+encodeURIComponent(""+i)+"&"}),t=t.replace(/[?&]$/,"");let r={method:"DELETE",headers:{}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processDelete(i))}processDelete(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}search(e){let t=this.baseUrl+"/api/platform/oauthapps/search";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processSearch(s))}processSearch(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Qu.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class Db extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}searchPushNotification(e){let t=this.baseUrl+"/api/platform/pushnotifications";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processSearchPushNotification(s))}processSearchPushNotification(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=ua.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}markAllAsRead(){let e=this.baseUrl+"/api/platform/pushnotifications/markAllAsRead";e=e.replace(/[?&]$/,"");let t={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processMarkAllAsRead(r))}processMarkAllAsRead(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=ua.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class Pb extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}login(e){let t=this.baseUrl+"/api/platform/security/login";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processLogin(s))}processLogin(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=tc.fromJS(d),s}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}logout(){let e=this.baseUrl+"/api/platform/security/logout";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processLogout(r))}processLogout(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getCurrentUser(){let e=this.baseUrl+"/api/platform/security/currentuser";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processGetCurrentUser(r))}processGetCurrentUser(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=nc.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}userinfo(){let e=this.baseUrl+"/api/platform/security/userinfo";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processUserinfo(r))}processUserinfo(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(La.fromJS(f))}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getAllRegisteredPermissions(){let e=this.baseUrl+"/api/platform/security/permissions";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processGetAllRegisteredPermissions(r))}processGetAllRegisteredPermissions(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(Ma.fromJS(f))}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}searchRoles(e){let t=this.baseUrl+"/api/platform/security/roles/search";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processSearchRoles(s))}processSearchRoles(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=rc.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getRole(e){let t=this.baseUrl+"/api/platform/security/roles/{roleName}";if(e==null)throw new Error("The parameter 'roleName' must be defined.");t=t.replace("{roleName}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processGetRole(i))}processGetRole(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=as.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}deleteRoles(e){let t=this.baseUrl+"/api/platform/security/roles?";e!=null&&e&&e.forEach(i=>{t+="ids="+encodeURIComponent(""+i)+"&"}),t=t.replace(/[?&]$/,"");let r={method:"DELETE",headers:{}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processDeleteRoles(i))}processDeleteRoles(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}updateRole(e){let t=this.baseUrl+"/api/platform/security/roles";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"PUT",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processUpdateRole(s))}processUpdateRole(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Yn.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}searchUsers(e){let t=this.baseUrl+"/api/platform/security/users/search";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processSearchUsers(s))}processSearchUsers(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=sc.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getUserByName(e){let t=this.baseUrl+"/api/platform/security/users/{userName}";if(e==null)throw new Error("The parameter 'userName' must be defined.");t=t.replace("{userName}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processGetUserByName(i))}processGetUserByName(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Kr.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getUserById(e){let t=this.baseUrl+"/api/platform/security/users/id/{id}";if(e==null)throw new Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processGetUserById(i))}processGetUserById(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Kr.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getUserByEmail(e){let t=this.baseUrl+"/api/platform/security/users/email/{email}";if(e==null)throw new Error("The parameter 'email' must be defined.");t=t.replace("{email}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processGetUserByEmail(i))}processGetUserByEmail(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Kr.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getUserByLogin(e,t){let r=this.baseUrl+"/api/platform/security/users/login/external/{loginProvider}/{providerKey}";if(e==null)throw new Error("The parameter 'loginProvider' must be defined.");if(r=r.replace("{loginProvider}",encodeURIComponent(""+e)),t==null)throw new Error("The parameter 'providerKey' must be defined.");r=r.replace("{providerKey}",encodeURIComponent(""+t)),r=r.replace(/[?&]$/,"");let i={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(r,s)).then(s=>this.processGetUserByLogin(s))}processGetUserByLogin(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Kr.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}create(e){let t=this.baseUrl+"/api/platform/security/users/create";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processCreate(s))}processCreate(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Yn.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}changeCurrentUserPassword(e){let t=this.baseUrl+"/api/platform/security/currentuser/changepassword";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processChangeCurrentUserPassword(s))}processChangeCurrentUserPassword(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Yn.fromJS(d),s}):t===400?e.text().then(i=>X("Bad Request",t,i,r)):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}changePassword(e,t){let r=this.baseUrl+"/api/platform/security/users/{userName}/changepassword";if(e==null)throw new Error("The parameter 'userName' must be defined.");r=r.replace("{userName}",encodeURIComponent(""+e)),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(t),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(s).then(d=>this.http.fetch(r,d)).then(d=>this.processChangePassword(d))}processChangePassword(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Yn.fromJS(d),s}):t===400?e.text().then(i=>X("Bad Request",t,i,r)):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}resetPassword(e,t){let r=this.baseUrl+"/api/platform/security/users/{userName}/resetpassword";if(e==null)throw new Error("The parameter 'userName' must be defined.");r=r.replace("{userName}",encodeURIComponent(""+e)),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(t),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(s).then(d=>this.http.fetch(r,d)).then(d=>this.processResetPassword(d))}processResetPassword(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Yn.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}resetPasswordByToken(e,t){let r=this.baseUrl+"/api/platform/security/users/{userId}/resetpasswordconfirm";if(e==null)throw new Error("The parameter 'userId' must be defined.");r=r.replace("{userId}",encodeURIComponent(""+e)),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(t),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(s).then(d=>this.http.fetch(r,d)).then(d=>this.processResetPasswordByToken(d))}processResetPasswordByToken(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Yn.fromJS(d),s}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}validatePasswordResetToken(e,t){let r=this.baseUrl+"/api/platform/security/users/{userId}/validatepasswordresettoken";if(e==null)throw new Error("The parameter 'userId' must be defined.");r=r.replace("{userId}",encodeURIComponent(""+e)),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(t),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(s).then(d=>this.http.fetch(r,d)).then(d=>this.processValidatePasswordResetToken(d))}processValidatePasswordResetToken(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=d!==void 0?d:null,s}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}requestPasswordReset(e){let t=this.baseUrl+"/api/platform/security/users/{loginOrEmail}/requestpasswordreset";if(e==null)throw new Error("The parameter 'loginOrEmail' must be defined.");t=t.replace("{loginOrEmail}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"POST",headers:{}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processRequestPasswordReset(i))}processRequestPasswordReset(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}validatePassword(e){let t=this.baseUrl+"/api/platform/security/validatepassword";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processValidatePassword(s))}processValidatePassword(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=fa.fromJS(d),s}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}validateUserPassword(e){let t=this.baseUrl+"/api/platform/security/validateuserpassword";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processValidateUserPassword(s))}processValidateUserPassword(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=fa.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}update(e){let t=this.baseUrl+"/api/platform/security/users";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"PUT",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processUpdate(s))}processUpdate(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Yn.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}delete(e){let t=this.baseUrl+"/api/platform/security/users?";e!=null&&e&&e.forEach(i=>{t+="names="+encodeURIComponent(""+i)+"&"}),t=t.replace(/[?&]$/,"");let r={method:"DELETE",headers:{}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processDelete(i))}processDelete(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}isUserLocked(e){let t=this.baseUrl+"/api/platform/security/users/{id}/locked";if(e==null)throw new Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processIsUserLocked(i))}processIsUserLocked(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=ac.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}lockUser(e){let t=this.baseUrl+"/api/platform/security/users/{id}/lock";if(e==null)throw new Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"POST",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processLockUser(i))}processLockUser(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Yn.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}unlockUser(e){let t=this.baseUrl+"/api/platform/security/users/{id}/unlock";if(e==null)throw new Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"POST",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processUnlockUser(i))}processUnlockUser(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Yn.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getUserApiKeys(e){let t=this.baseUrl+"/api/platform/security/users/{id}/apikeys";if(e==null)throw new Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processGetUserApiKeys(i))}processGetUserApiKeys(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(qi.fromJS(f))}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}saveUserApiKey(e){let t=this.baseUrl+"/api/platform/security/users/apikeys";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processSaveUserApiKey(s))}processSaveUserApiKey(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(qi.fromJS(f))}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}updateUserApiKey(e){let t=this.baseUrl+"/api/platform/security/users/apikeys";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"PUT",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processUpdateUserApiKey(s))}processUpdateUserApiKey(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(qi.fromJS(f))}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}deleteUserApiKeys(e){let t=this.baseUrl+"/api/platform/security/users/apikeys?";e!=null&&e&&e.forEach(i=>{t+="ids="+encodeURIComponent(""+i)+"&"}),t=t.replace(/[?&]$/,"");let r={method:"DELETE",headers:{Accept:"text/plain"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processDeleteUserApiKeys(i))}processDeleteUserApiKeys(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(qi.fromJS(f))}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getLoginTypes(){let e=this.baseUrl+"/api/platform/security/logintypes";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processGetLoginTypes(r))}processGetLoginTypes(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}sendVerificationEmail(e){let t=this.baseUrl+"/api/platform/security/users/{userId}/sendVerificationEmail";if(e==null)throw new Error("The parameter 'userId' must be defined.");t=t.replace("{userId}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"POST",headers:{}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processSendVerificationEmail(i))}processSendVerificationEmail(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class Bb extends Pn{http;baseUrl;jsonParseReviver=void 0;constructor(e,t){super(),this.http=t||window,this.baseUrl=this.getBaseUrl("https://vcmp-dev.paas.govirto.com",e)}getAllGlobalSettings(){let e=this.baseUrl+"/api/platform/settings";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processGetAllGlobalSettings(r))}processGetAllGlobalSettings(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Zi.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}update(e){let t=this.baseUrl+"/api/platform/settings";t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(e),method:"POST",headers:{"Content-Type":"application/json-patch+json"}};return this.transformOptions(i).then(s=>this.http.fetch(t,s)).then(s=>this.processUpdate(s))}processUpdate(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===204?e.text().then(i=>{}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getGlobalModuleSettings(e){let t=this.baseUrl+"/api/platform/settings/modules/{id}";if(e==null)throw new Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processGetGlobalModuleSettings(i))}processGetGlobalModuleSettings(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);if(Array.isArray(d)){s=[];for(let f of d)s.push(Zi.fromJS(f))}else s=null;return s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getGlobalSetting(e){let t=this.baseUrl+"/api/platform/settings/{name}";if(e==null)throw new Error("The parameter 'name' must be defined.");t=t.replace("{name}",encodeURIComponent(""+e)),t=t.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(i=>this.http.fetch(t,i)).then(i=>this.processGetGlobalSetting(i))}processGetGlobalSetting(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Zi.fromJS(d),s}):t===401?e.text().then(i=>X("Unauthorized",t,i,r)):t===403?e.text().then(i=>X("Forbidden",t,i,r)):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}getUICustomizationSetting(){let e=this.baseUrl+"/api/platform/settings/ui/customization";e=e.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(r=>this.http.fetch(e,r)).then(r=>this.processGetUICustomizationSetting(r))}processGetUICustomizationSetting(e){const t=e.status;let r={};return e.headers&&e.headers.forEach&&e.headers.forEach((i,s)=>r[s]=i),t===200?e.text().then(i=>{let s=null,d=i===""?null:JSON.parse(i,this.jsonParseReviver);return s=Zi.fromJS(d),s}):t!==200&&t!==204?e.text().then(i=>X("An unexpected server error occurred.",t,i,r)):Promise.resolve(null)}}class sa{accessToken;code;deviceCode;error;errorDescription;errorUri;expiresIn;idToken;refreshToken;scope;state;tokenType;userCode;count;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.accessToken=e.accessToken,this.code=e.code,this.deviceCode=e.deviceCode,this.error=e.error,this.errorDescription=e.errorDescription,this.errorUri=e.errorUri,this.expiresIn=e.expiresIn,this.idToken=e.idToken,this.refreshToken=e.refreshToken,this.scope=e.scope,this.state=e.state,this.tokenType=e.tokenType,this.userCode=e.userCode,this.count=e.count)}static fromJS(e){e=typeof e=="object"?e:{};let t=new sa;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.accessToken=this.accessToken,e.code=this.code,e.deviceCode=this.deviceCode,e.error=this.error,e.errorDescription=this.errorDescription,e.errorUri=this.errorUri,e.expiresIn=this.expiresIn,e.idToken=this.idToken,e.refreshToken=this.refreshToken,e.scope=this.scope,e.state=this.state,e.tokenType=this.tokenType,e.userCode=this.userCode,e.count=this.count,e}}class Pu{title;description;iconUrl;relativeUrl;permission;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.title=e.title,this.description=e.description,this.iconUrl=e.iconUrl,this.relativeUrl=e.relativeUrl,this.permission=e.permission,this.id=e.id)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Pu;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.title=this.title,e.description=this.description,e.iconUrl=this.iconUrl,e.relativeUrl=this.relativeUrl,e.permission=this.permission,e.id=this.id,e}}class Bu{scope;lastModifiedDate;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.scope=e.scope,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Bu;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.scope=this.scope,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e}}class Vd{entityNames;modifiedSince;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(Array.isArray(e.entityNames)){this.entityNames=[];for(let t of e.entityNames)this.entityNames.push(t)}this.modifiedSince=e.modifiedSince?new Date(e.modifiedSince.toString()):void 0}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Vd;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.entityNames)){e.entityNames=[];for(let t of this.entityNames)e.entityNames.push(t)}return e.modifiedSince=this.modifiedSince?this.modifiedSince.toISOString():void 0,e}}class Fu{name;modifiedDate;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.name=e.name,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Fu;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.name=this.name,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e}}class Vu{entities;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e&&Array.isArray(e.entities)){this.entities=[];for(let t of e.entities)this.entities.push(Fu.fromJS(t))}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Vu;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.entities)){e.entities=[];for(let t of this.entities)e.entities.push(t.toJSON())}return e}}exports.EntryState=void 0;(function(n){n.Detached="Detached",n.Unchanged="Unchanged",n.Added="Added",n.Deleted="Deleted",n.Modified="Modified"})(exports.EntryState||(exports.EntryState={}));exports.SortDirection=void 0;(function(n){n.Ascending="Ascending",n.Descending="Descending"})(exports.SortDirection||(exports.SortDirection={}));class Or{sortColumn;sortDirection;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.sortColumn=e.sortColumn,this.sortDirection=e.sortDirection)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Or;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.sortColumn=this.sortColumn,e.sortDirection=this.sortDirection,e}}class Ud{operationTypes;startDate;endDate;responseGroup;objectType;objectTypes;objectIds;keyword;searchPhrase;languageCode;sort;sortInfos;skip;take;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(Array.isArray(e.operationTypes)){this.operationTypes=[];for(let t of e.operationTypes)this.operationTypes.push(t)}if(this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let t of e.objectTypes)this.objectTypes.push(t)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let t of e.objectIds)this.objectIds.push(t)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let t of e.sortInfos)this.sortInfos.push(Or.fromJS(t))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Ud;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.operationTypes)){e.operationTypes=[];for(let t of this.operationTypes)e.operationTypes.push(t)}if(e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let t of this.objectTypes)e.objectTypes.push(t)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let t of this.objectIds)e.objectIds.push(t)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let t of this.sortInfos)e.sortInfos.push(t.toJSON())}return e.skip=this.skip,e.take=this.take,e}}class Aa{objectType;objectId;operationType;detail;createdDate;modifiedDate;createdBy;modifiedBy;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.objectType=e.objectType,this.objectId=e.objectId,this.operationType=e.operationType,this.detail=e.detail,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,this.id=e.id)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Aa;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.objectType=this.objectType,e.objectId=this.objectId,e.operationType=this.operationType,e.detail=this.detail,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,e.id=this.id,e}}class Uu{totalCount;results;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e&&(this.totalCount=e.totalCount,Array.isArray(e.results))){this.results=[];for(let t of e.results)this.results.push(Aa.fromJS(t))}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Uu;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let t of this.results)e.results.push(t.toJSON())}return e}}class Wu{type;customerName;customerEmail;expirationDate;rawLicense;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.type=e.type,this.customerName=e.customerName,this.customerEmail=e.customerEmail,this.expirationDate=e.expirationDate?new Date(e.expirationDate.toString()):void 0,this.rawLicense=e.rawLicense)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Wu;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.type=this.type,e.customerName=this.customerName,e.customerEmail=this.customerEmail,e.expirationDate=this.expirationDate?this.expirationDate.toISOString():void 0,e.rawLicense=this.rawLicense,e}}class Hu{major;minor;patch;prerelease;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.major=e.major,this.minor=e.minor,this.patch=e.patch,this.prerelease=e.prerelease)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Hu;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.major=this.major,e.minor=this.minor,e.patch=this.patch,e.prerelease=this.prerelease,e}}class oa{id;version;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.id=e.id,this.version=e.version?Hu.fromJS(e.version):void 0)}static fromJS(e){e=typeof e=="object"?e:{};let t=new oa;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.id=this.id,e.version=this.version?this.version.toJSON():void 0,e}}class Jr{version;platformVersion;title;description;authors;owners;licenseUrl;projectUrl;iconUrl;requireLicenseAcceptance;releaseNotes;copyright;tags;groups;dependencies;validationErrors;isRemovable;isInstalled;installedVersion;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.version=e.version,this.platformVersion=e.platformVersion,this.title=e.title,this.description=e.description,Array.isArray(e.authors)){this.authors=[];for(let t of e.authors)this.authors.push(t)}if(Array.isArray(e.owners)){this.owners=[];for(let t of e.owners)this.owners.push(t)}if(this.licenseUrl=e.licenseUrl,this.projectUrl=e.projectUrl,this.iconUrl=e.iconUrl,this.requireLicenseAcceptance=e.requireLicenseAcceptance,this.releaseNotes=e.releaseNotes,this.copyright=e.copyright,this.tags=e.tags,Array.isArray(e.groups)){this.groups=[];for(let t of e.groups)this.groups.push(t)}if(Array.isArray(e.dependencies)){this.dependencies=[];for(let t of e.dependencies)this.dependencies.push(oa.fromJS(t))}if(Array.isArray(e.validationErrors)){this.validationErrors=[];for(let t of e.validationErrors)this.validationErrors.push(t)}this.isRemovable=e.isRemovable,this.isInstalled=e.isInstalled,this.installedVersion=e.installedVersion?oa.fromJS(e.installedVersion):void 0,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Jr;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.version=this.version,e.platformVersion=this.platformVersion,e.title=this.title,e.description=this.description,Array.isArray(this.authors)){e.authors=[];for(let t of this.authors)e.authors.push(t)}if(Array.isArray(this.owners)){e.owners=[];for(let t of this.owners)e.owners.push(t)}if(e.licenseUrl=this.licenseUrl,e.projectUrl=this.projectUrl,e.iconUrl=this.iconUrl,e.requireLicenseAcceptance=this.requireLicenseAcceptance,e.releaseNotes=this.releaseNotes,e.copyright=this.copyright,e.tags=this.tags,Array.isArray(this.groups)){e.groups=[];for(let t of this.groups)e.groups.push(t)}if(Array.isArray(this.dependencies)){e.dependencies=[];for(let t of this.dependencies)e.dependencies.push(t.toJSON())}if(Array.isArray(this.validationErrors)){e.validationErrors=[];for(let t of this.validationErrors)e.validationErrors.push(t)}return e.isRemovable=this.isRemovable,e.isInstalled=this.isInstalled,e.installedVersion=this.installedVersion?this.installedVersion.toJSON():void 0,e.id=this.id,e}}class zu{platformVersion;license;installedModules;version;is64BitOperatingSystem;is64BitProcess;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.platformVersion=e.platformVersion,this.license=e.license?Wu.fromJS(e.license):void 0,Array.isArray(e.installedModules)){this.installedModules=[];for(let t of e.installedModules)this.installedModules.push(Jr.fromJS(t))}this.version=e.version,this.is64BitOperatingSystem=e.is64BitOperatingSystem,this.is64BitProcess=e.is64BitProcess}}static fromJS(e){e=typeof e=="object"?e:{};let t=new zu;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.platformVersion=this.platformVersion,e.license=this.license?this.license.toJSON():void 0,Array.isArray(this.installedModules)){e.installedModules=[];for(let t of this.installedModules)e.installedModules.push(t.toJSON())}return e.version=this.version,e.is64BitOperatingSystem=this.is64BitOperatingSystem,e.is64BitProcess=this.is64BitProcess,e}}class Wd{typeName;responseGroup;objectType;objectTypes;objectIds;keyword;searchPhrase;languageCode;sort;sortInfos;skip;take;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.typeName=e.typeName,this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let t of e.objectTypes)this.objectTypes.push(t)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let t of e.objectIds)this.objectIds.push(t)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let t of e.sortInfos)this.sortInfos.push(Or.fromJS(t))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Wd;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.typeName=this.typeName,e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let t of this.objectTypes)e.objectTypes.push(t)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let t of this.objectIds)e.objectIds.push(t)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let t of this.sortInfos)e.sortInfos.push(t.toJSON())}return e.skip=this.skip,e.take=this.take,e}}exports.DynamicPropertyValueType=void 0;(function(n){n.Undefined="Undefined",n.ShortText="ShortText",n.LongText="LongText",n.Integer="Integer",n.Decimal="Decimal",n.DateTime="DateTime",n.Boolean="Boolean",n.Html="Html",n.Image="Image"})(exports.DynamicPropertyValueType||(exports.DynamicPropertyValueType={}));class Ta{locale;name;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.locale=e.locale,this.name=e.name)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Ta;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.locale=this.locale,e.name=this.name,e}}class $a{name;description;objectType;isArray;isDictionary;isMultilingual;isRequired;displayOrder;valueType;displayNames;createdDate;modifiedDate;createdBy;modifiedBy;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.name=e.name,this.description=e.description,this.objectType=e.objectType,this.isArray=e.isArray,this.isDictionary=e.isDictionary,this.isMultilingual=e.isMultilingual,this.isRequired=e.isRequired,this.displayOrder=e.displayOrder,this.valueType=e.valueType,Array.isArray(e.displayNames)){this.displayNames=[];for(let t of e.displayNames)this.displayNames.push(Ta.fromJS(t))}this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let t=new $a;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.name=this.name,e.description=this.description,e.objectType=this.objectType,e.isArray=this.isArray,e.isDictionary=this.isDictionary,e.isMultilingual=this.isMultilingual,e.isRequired=this.isRequired,e.displayOrder=this.displayOrder,e.valueType=this.valueType,Array.isArray(this.displayNames)){e.displayNames=[];for(let t of this.displayNames)e.displayNames.push(t.toJSON())}return e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,e.id=this.id,e}}class ju{totalCount;results;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e&&(this.totalCount=e.totalCount,Array.isArray(e.results))){this.results=[];for(let t of e.results)this.results.push($a.fromJS(t))}}static fromJS(e){e=typeof e=="object"?e:{};let t=new ju;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let t of this.results)e.results.push(t.toJSON())}return e}}class Gu{objectType;objectId;locale;value;valueId;valueType;propertyId;propertyName;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.objectType=e.objectType,this.objectId=e.objectId,this.locale=e.locale,this.value=e.value,this.valueId=e.valueId,this.valueType=e.valueType,this.propertyId=e.propertyId,this.propertyName=e.propertyName)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Gu;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.objectType=this.objectType,e.objectId=this.objectId,e.locale=this.locale,e.value=this.value,e.valueId=this.valueId,e.valueType=this.valueType,e.propertyId=this.propertyId,e.propertyName=this.propertyName,e}}class Yu{objectId;values;name;description;objectType;isArray;isDictionary;isMultilingual;isRequired;displayOrder;valueType;displayNames;createdDate;modifiedDate;createdBy;modifiedBy;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.objectId=e.objectId,Array.isArray(e.values)){this.values=[];for(let t of e.values)this.values.push(Gu.fromJS(t))}if(this.name=e.name,this.description=e.description,this.objectType=e.objectType,this.isArray=e.isArray,this.isDictionary=e.isDictionary,this.isMultilingual=e.isMultilingual,this.isRequired=e.isRequired,this.displayOrder=e.displayOrder,this.valueType=e.valueType,Array.isArray(e.displayNames)){this.displayNames=[];for(let t of e.displayNames)this.displayNames.push(Ta.fromJS(t))}this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Yu;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.objectId=this.objectId,Array.isArray(this.values)){e.values=[];for(let t of this.values)e.values.push(t.toJSON())}if(e.name=this.name,e.description=this.description,e.objectType=this.objectType,e.isArray=this.isArray,e.isDictionary=this.isDictionary,e.isMultilingual=this.isMultilingual,e.isRequired=this.isRequired,e.displayOrder=this.displayOrder,e.valueType=this.valueType,Array.isArray(this.displayNames)){e.displayNames=[];for(let t of this.displayNames)e.displayNames.push(t.toJSON())}return e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,e.id=this.id,e}}class Hd{propertyId;responseGroup;objectType;objectTypes;objectIds;keyword;searchPhrase;languageCode;sort;sortInfos;skip;take;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.propertyId=e.propertyId,this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let t of e.objectTypes)this.objectTypes.push(t)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let t of e.objectIds)this.objectIds.push(t)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let t of e.sortInfos)this.sortInfos.push(Or.fromJS(t))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Hd;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.propertyId=this.propertyId,e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let t of this.objectTypes)e.objectTypes.push(t)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let t of this.objectIds)e.objectIds.push(t)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let t of this.sortInfos)e.sortInfos.push(t.toJSON())}return e.skip=this.skip,e.take=this.take,e}}class Ju{locale;name;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.locale=e.locale,this.name=e.name)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Ju;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.locale=this.locale,e.name=this.name,e}}class Ku{propertyId;name;displayNames;createdDate;modifiedDate;createdBy;modifiedBy;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.propertyId=e.propertyId,this.name=e.name,Array.isArray(e.displayNames)){this.displayNames=[];for(let t of e.displayNames)this.displayNames.push(Ju.fromJS(t))}this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Ku;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.propertyId=this.propertyId,e.name=this.name,Array.isArray(this.displayNames)){e.displayNames=[];for(let t of this.displayNames)e.displayNames.push(t.toJSON())}return e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,e.id=this.id,e}}class Xu{totalCount;results;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e&&(this.totalCount=e.totalCount,Array.isArray(e.results))){this.results=[];for(let t of e.results)this.results.push(Ku.fromJS(t))}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Xu;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let t of this.results)e.results.push(t.toJSON())}return e}}class qu{state;completed;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.state=e.state,this.completed=e.completed,this.id=e.id)}static fromJS(e){e=typeof e=="object"?e:{};let t=new qu;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.state=this.state,e.completed=this.completed,e.id=this.id,e}}exports.ProgressMessageLevel=void 0;(function(n){n.Info="Info",n.Warning="Warning",n.Debug="Debug",n.Error="Error"})(exports.ProgressMessageLevel||(exports.ProgressMessageLevel={}));class Oa{message;level;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.message=e.message,this.level=e.level)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Oa;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.message=this.message,e.level=this.level,e}}class aa{started;finished;progressLog;errorCount;serverId;creator;created;isNew;notifyType;description;title;repeatCount;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.started=e.started?new Date(e.started.toString()):void 0,this.finished=e.finished?new Date(e.finished.toString()):void 0,Array.isArray(e.progressLog)){this.progressLog=[];for(let t of e.progressLog)this.progressLog.push(Oa.fromJS(t))}this.errorCount=e.errorCount,this.serverId=e.serverId,this.creator=e.creator,this.created=e.created?new Date(e.created.toString()):void 0,this.isNew=e.isNew,this.notifyType=e.notifyType,this.description=e.description,this.title=e.title,this.repeatCount=e.repeatCount,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let t=new aa;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.started=this.started?this.started.toISOString():void 0,e.finished=this.finished?this.finished.toISOString():void 0,Array.isArray(this.progressLog)){e.progressLog=[];for(let t of this.progressLog)e.progressLog.push(t.toJSON())}return e.errorCount=this.errorCount,e.serverId=this.serverId,e.creator=this.creator,e.created=this.created?this.created.toISOString():void 0,e.isNew=this.isNew,e.notifyType=this.notifyType,e.description=this.description,e.title=this.title,e.repeatCount=this.repeatCount,e.id=this.id,e}}class Zu{started;finished;progressLog;errorCount;serverId;creator;created;isNew;notifyType;description;title;repeatCount;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.started=e.started?new Date(e.started.toString()):void 0,this.finished=e.finished?new Date(e.finished.toString()):void 0,Array.isArray(e.progressLog)){this.progressLog=[];for(let t of e.progressLog)this.progressLog.push(Oa.fromJS(t))}this.errorCount=e.errorCount,this.serverId=e.serverId,this.creator=e.creator,this.created=e.created?new Date(e.created.toString()):void 0,this.isNew=e.isNew,this.notifyType=e.notifyType,this.description=e.description,this.title=e.title,this.repeatCount=e.repeatCount,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Zu;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.started=this.started?this.started.toISOString():void 0,e.finished=this.finished?this.finished.toISOString():void 0,Array.isArray(this.progressLog)){e.progressLog=[];for(let t of this.progressLog)e.progressLog.push(t.toJSON())}return e.errorCount=this.errorCount,e.serverId=this.serverId,e.creator=this.creator,e.created=this.created?this.created.toISOString():void 0,e.isNew=this.isNew,e.notifyType=this.notifyType,e.description=this.description,e.title=this.title,e.repeatCount=this.repeatCount,e.id=this.id,e}}exports.JsonValueKind=void 0;(function(n){n.Undefined="Undefined",n.Object="Object",n.Array="Array",n.String="String",n.Number="Number",n.True="True",n.False="False",n.Null="Null"})(exports.JsonValueKind||(exports.JsonValueKind={}));class la{valueKind;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.valueKind=e.valueKind)}static fromJS(e){e=typeof e=="object"?e:{};let t=new la;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.valueKind=this.valueKind,e}}class qs{clientId;clientSecret;consentType;displayName;displayNames;permissions;postLogoutRedirectUris;properties;redirectUris;requirements;type;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.clientId=e.clientId,this.clientSecret=e.clientSecret,this.consentType=e.consentType,this.displayName=e.displayName,e.displayNames){this.displayNames={};for(let t in e.displayNames)e.displayNames.hasOwnProperty(t)&&(this.displayNames[t]=e.displayNames[t])}if(Array.isArray(e.permissions)){this.permissions=[];for(let t of e.permissions)this.permissions.push(t)}if(Array.isArray(e.postLogoutRedirectUris)){this.postLogoutRedirectUris=[];for(let t of e.postLogoutRedirectUris)this.postLogoutRedirectUris.push(t)}if(e.properties){this.properties={};for(let t in e.properties)e.properties.hasOwnProperty(t)&&(this.properties[t]=e.properties[t]?la.fromJS(e.properties[t]):new la)}if(Array.isArray(e.redirectUris)){this.redirectUris=[];for(let t of e.redirectUris)this.redirectUris.push(t)}if(Array.isArray(e.requirements)){this.requirements=[];for(let t of e.requirements)this.requirements.push(t)}this.type=e.type}}static fromJS(e){e=typeof e=="object"?e:{};let t=new qs;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.clientId=this.clientId,e.clientSecret=this.clientSecret,e.consentType=this.consentType,e.displayName=this.displayName,this.displayNames){e.displayNames={};for(let t in this.displayNames)this.displayNames.hasOwnProperty(t)&&(e.displayNames[t]=this.displayNames[t])}if(Array.isArray(this.permissions)){e.permissions=[];for(let t of this.permissions)e.permissions.push(t)}if(Array.isArray(this.postLogoutRedirectUris)){e.postLogoutRedirectUris=[];for(let t of this.postLogoutRedirectUris)e.postLogoutRedirectUris.push(t)}if(this.properties){e.properties={};for(let t in this.properties)this.properties.hasOwnProperty(t)&&(e.properties[t]=this.properties[t]?this.properties[t].toJSON():void 0)}if(Array.isArray(this.redirectUris)){e.redirectUris=[];for(let t of this.redirectUris)e.redirectUris.push(t)}if(Array.isArray(this.requirements)){e.requirements=[];for(let t of this.requirements)e.requirements.push(t)}return e.type=this.type,e}}class zd{responseGroup;objectType;objectTypes;objectIds;keyword;searchPhrase;languageCode;sort;sortInfos;skip;take;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let t of e.objectTypes)this.objectTypes.push(t)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let t of e.objectIds)this.objectIds.push(t)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let t of e.sortInfos)this.sortInfos.push(Or.fromJS(t))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let t=new zd;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let t of this.objectTypes)e.objectTypes.push(t)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let t of this.objectIds)e.objectIds.push(t)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let t of this.sortInfos)e.sortInfos.push(t.toJSON())}return e.skip=this.skip,e.take=this.take,e}}class Qu{totalCount;results;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e&&(this.totalCount=e.totalCount,Array.isArray(e.results))){this.results=[];for(let t of e.results)this.results.push(qs.fromJS(t))}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Qu;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let t of this.results)e.results.push(t.toJSON())}return e}}class jd{ids;onlyNew;startDate;endDate;responseGroup;objectType;objectTypes;objectIds;keyword;searchPhrase;languageCode;sort;sortInfos;skip;take;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(Array.isArray(e.ids)){this.ids=[];for(let t of e.ids)this.ids.push(t)}if(this.onlyNew=e.onlyNew,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let t of e.objectTypes)this.objectTypes.push(t)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let t of e.objectIds)this.objectIds.push(t)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let t of e.sortInfos)this.sortInfos.push(Or.fromJS(t))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let t=new jd;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.ids)){e.ids=[];for(let t of this.ids)e.ids.push(t)}if(e.onlyNew=this.onlyNew,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let t of this.objectTypes)e.objectTypes.push(t)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let t of this.objectIds)e.objectIds.push(t)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let t of this.sortInfos)e.sortInfos.push(t.toJSON())}return e.skip=this.skip,e.take=this.take,e}}class ec{serverId;creator;created;isNew;notifyType;description;title;repeatCount;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.serverId=e.serverId,this.creator=e.creator,this.created=e.created?new Date(e.created.toString()):void 0,this.isNew=e.isNew,this.notifyType=e.notifyType,this.description=e.description,this.title=e.title,this.repeatCount=e.repeatCount,this.id=e.id)}static fromJS(e){e=typeof e=="object"?e:{};let t=new ec;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.serverId=this.serverId,e.creator=this.creator,e.created=this.created?this.created.toISOString():void 0,e.isNew=this.isNew,e.notifyType=this.notifyType,e.description=this.description,e.title=this.title,e.repeatCount=this.repeatCount,e.id=this.id,e}}class ua{totalCount;newCount;notifyEvents;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e&&(this.totalCount=e.totalCount,this.newCount=e.newCount,Array.isArray(e.notifyEvents))){this.notifyEvents=[];for(let t of e.notifyEvents)this.notifyEvents.push(ec.fromJS(t))}}static fromJS(e){e=typeof e=="object"?e:{};let t=new ua;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.totalCount=this.totalCount,e.newCount=this.newCount,Array.isArray(this.notifyEvents)){e.notifyEvents=[];for(let t of this.notifyEvents)e.notifyEvents.push(t.toJSON())}return e}}class Gd{userName;password;rememberMe;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.userName=e.userName,this.password=e.password,this.rememberMe=e.rememberMe)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Gd;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.userName=this.userName,e.password=this.password,e.rememberMe=this.rememberMe,e}}class tc{succeeded;isLockedOut;isNotAllowed;requiresTwoFactor;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.succeeded=e.succeeded,this.isLockedOut=e.isLockedOut,this.isNotAllowed=e.isNotAllowed,this.requiresTwoFactor=e.requiresTwoFactor)}static fromJS(e){e=typeof e=="object"?e:{};let t=new tc;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.succeeded=this.succeeded,e.isLockedOut=this.isLockedOut,e.isNotAllowed=this.isNotAllowed,e.requiresTwoFactor=this.requiresTwoFactor,e}}class nc{permissions;userName;isAdministrator;passwordExpired;daysTillPasswordExpiry;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(Array.isArray(e.permissions)){this.permissions=[];for(let t of e.permissions)this.permissions.push(t)}this.userName=e.userName,this.isAdministrator=e.isAdministrator,this.passwordExpired=e.passwordExpired,this.daysTillPasswordExpiry=e.daysTillPasswordExpiry,this.id=e.id}}static fromJS(e){e=typeof e=="object"?e:{};let t=new nc;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.permissions)){e.permissions=[];for(let t of this.permissions)e.permissions.push(t)}return e.userName=this.userName,e.isAdministrator=this.isAdministrator,e.passwordExpired=this.passwordExpired,e.daysTillPasswordExpiry=this.daysTillPasswordExpiry,e.id=this.id,e}}class ca{authenticationType;isAuthenticated;actor;bootstrapContext;claims;label;name;nameClaimType;roleClaimType;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.authenticationType=e.authenticationType,this.isAuthenticated=e.isAuthenticated,this.actor=e.actor?ca.fromJS(e.actor):void 0,this.bootstrapContext=e.bootstrapContext,Array.isArray(e.claims)){this.claims=[];for(let t of e.claims)this.claims.push(La.fromJS(t))}this.label=e.label,this.name=e.name,this.nameClaimType=e.nameClaimType,this.roleClaimType=e.roleClaimType}}static fromJS(e){e=typeof e=="object"?e:{};let t=new ca;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.authenticationType=this.authenticationType,e.isAuthenticated=this.isAuthenticated,e.actor=this.actor?this.actor.toJSON():void 0,e.bootstrapContext=this.bootstrapContext,Array.isArray(this.claims)){e.claims=[];for(let t of this.claims)e.claims.push(t.toJSON())}return e.label=this.label,e.name=this.name,e.nameClaimType=this.nameClaimType,e.roleClaimType=this.roleClaimType,e}}class La{issuer;originalIssuer;properties;subject;type;value;valueType;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.issuer=e.issuer,this.originalIssuer=e.originalIssuer,e.properties){this.properties={};for(let t in e.properties)e.properties.hasOwnProperty(t)&&(this.properties[t]=e.properties[t])}this.subject=e.subject?ca.fromJS(e.subject):void 0,this.type=e.type,this.value=e.value,this.valueType=e.valueType}}static fromJS(e){e=typeof e=="object"?e:{};let t=new La;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.issuer=this.issuer,e.originalIssuer=this.originalIssuer,this.properties){e.properties={};for(let t in this.properties)this.properties.hasOwnProperty(t)&&(e.properties[t]=this.properties[t])}return e.subject=this.subject?this.subject.toJSON():void 0,e.type=this.type,e.value=this.value,e.valueType=this.valueType,e}}class ha{type;label;scope;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.type=e.type,this.label=e.label,this.scope=e.scope)}static fromJS(e){e=typeof e=="object"?e:{};let t=new ha;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.type=this.type,e.label=this.label,e.scope=this.scope,e}}class Ma{id;name;moduleId;groupName;assignedScopes;availableScopes;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.id=e.id,this.name=e.name,this.moduleId=e.moduleId,this.groupName=e.groupName,Array.isArray(e.assignedScopes)){this.assignedScopes=[];for(let t of e.assignedScopes)this.assignedScopes.push(ha.fromJS(t))}if(Array.isArray(e.availableScopes)){this.availableScopes=[];for(let t of e.availableScopes)this.availableScopes.push(ha.fromJS(t))}}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Ma;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.id=this.id,e.name=this.name,e.moduleId=this.moduleId,e.groupName=this.groupName,Array.isArray(this.assignedScopes)){e.assignedScopes=[];for(let t of this.assignedScopes)e.assignedScopes.push(t.toJSON())}if(Array.isArray(this.availableScopes)){e.availableScopes=[];for(let t of this.availableScopes)e.availableScopes.push(t.toJSON())}return e}}class Yd{responseGroup;objectType;objectTypes;objectIds;keyword;searchPhrase;languageCode;sort;sortInfos;skip;take;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let t of e.objectTypes)this.objectTypes.push(t)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let t of e.objectIds)this.objectIds.push(t)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let t of e.sortInfos)this.sortInfos.push(Or.fromJS(t))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Yd;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let t of this.objectTypes)e.objectTypes.push(t)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let t of this.objectIds)e.objectIds.push(t)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let t of this.sortInfos)e.sortInfos.push(t.toJSON())}return e.skip=this.skip,e.take=this.take,e}}class Jd{userId;roleId;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.userId=e.userId,this.roleId=e.roleId)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Jd;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.userId=this.userId,e.roleId=this.roleId,e}}class as{description;permissions;id;name;normalizedName;concurrencyStamp;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.description=e.description,Array.isArray(e.permissions)){this.permissions=[];for(let t of e.permissions)this.permissions.push(Ma.fromJS(t))}this.id=e.id,this.name=e.name,this.normalizedName=e.normalizedName,this.concurrencyStamp=e.concurrencyStamp}}static fromJS(e){e=typeof e=="object"?e:{};let t=new as;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.description=this.description,Array.isArray(this.permissions)){e.permissions=[];for(let t of this.permissions)e.permissions.push(t.toJSON())}return e.id=this.id,e.name=this.name,e.normalizedName=this.normalizedName,e.concurrencyStamp=this.concurrencyStamp,e}}class rc{roles;totalCount;results;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(Array.isArray(e.roles)){this.roles=[];for(let t of e.roles)this.roles.push(as.fromJS(t))}if(this.totalCount=e.totalCount,Array.isArray(e.results)){this.results=[];for(let t of e.results)this.results.push(as.fromJS(t))}}}static fromJS(e){e=typeof e=="object"?e:{};let t=new rc;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.roles)){e.roles=[];for(let t of this.roles)e.roles.push(t.toJSON())}if(e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let t of this.results)e.results.push(t.toJSON())}return e}}class Yn{succeeded;errors;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e&&(this.succeeded=e.succeeded,Array.isArray(e.errors))){this.errors=[];for(let t of e.errors)this.errors.push(t)}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Yn;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.succeeded=this.succeeded,Array.isArray(this.errors)){e.errors=[];for(let t of this.errors)e.errors.push(t)}return e}}class Kd{memberId;memberIds;modifiedSinceDate;roles;responseGroup;objectType;objectTypes;objectIds;keyword;searchPhrase;languageCode;sort;sortInfos;skip;take;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.memberId=e.memberId,Array.isArray(e.memberIds)){this.memberIds=[];for(let t of e.memberIds)this.memberIds.push(t)}if(this.modifiedSinceDate=e.modifiedSinceDate?new Date(e.modifiedSinceDate.toString()):void 0,Array.isArray(e.roles)){this.roles=[];for(let t of e.roles)this.roles.push(t)}if(this.responseGroup=e.responseGroup,this.objectType=e.objectType,Array.isArray(e.objectTypes)){this.objectTypes=[];for(let t of e.objectTypes)this.objectTypes.push(t)}if(Array.isArray(e.objectIds)){this.objectIds=[];for(let t of e.objectIds)this.objectIds.push(t)}if(this.keyword=e.keyword,this.searchPhrase=e.searchPhrase,this.languageCode=e.languageCode,this.sort=e.sort,Array.isArray(e.sortInfos)){this.sortInfos=[];for(let t of e.sortInfos)this.sortInfos.push(Or.fromJS(t))}this.skip=e.skip,this.take=e.take}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Kd;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.memberId=this.memberId,Array.isArray(this.memberIds)){e.memberIds=[];for(let t of this.memberIds)e.memberIds.push(t)}if(e.modifiedSinceDate=this.modifiedSinceDate?this.modifiedSinceDate.toISOString():void 0,Array.isArray(this.roles)){e.roles=[];for(let t of this.roles)e.roles.push(t)}if(e.responseGroup=this.responseGroup,e.objectType=this.objectType,Array.isArray(this.objectTypes)){e.objectTypes=[];for(let t of this.objectTypes)e.objectTypes.push(t)}if(Array.isArray(this.objectIds)){e.objectIds=[];for(let t of this.objectIds)e.objectIds.push(t)}if(e.keyword=this.keyword,e.searchPhrase=this.searchPhrase,e.languageCode=this.languageCode,e.sort=this.sort,Array.isArray(this.sortInfos)){e.sortInfos=[];for(let t of this.sortInfos)e.sortInfos.push(t.toJSON())}return e.skip=this.skip,e.take=this.take,e}}exports.AccountState=void 0;(function(n){n.PendingApproval="PendingApproval",n.Approved="Approved",n.Rejected="Rejected"})(exports.AccountState||(exports.AccountState={}));class ic{loginProvider;providerKey;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.loginProvider=e.loginProvider,this.providerKey=e.providerKey)}static fromJS(e){e=typeof e=="object"?e:{};let t=new ic;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.loginProvider=this.loginProvider,e.providerKey=this.providerKey,e}}class Kr{storeId;memberId;isAdministrator;photoUrl;userType;status;password;createdDate;modifiedDate;createdBy;modifiedBy;roles;lockoutEndDateUtc;userState;permissions;logins;passwordExpired;lastPasswordChangedDate;lastPasswordChangeRequestDate;id;userName;normalizedUserName;email;normalizedEmail;emailConfirmed;passwordHash;securityStamp;concurrencyStamp;phoneNumber;phoneNumberConfirmed;twoFactorEnabled;lockoutEnd;lockoutEnabled;accessFailedCount;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.storeId=e.storeId,this.memberId=e.memberId,this.isAdministrator=e.isAdministrator,this.photoUrl=e.photoUrl,this.userType=e.userType,this.status=e.status,this.password=e.password,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,Array.isArray(e.roles)){this.roles=[];for(let t of e.roles)this.roles.push(as.fromJS(t))}if(this.lockoutEndDateUtc=e.lockoutEndDateUtc?new Date(e.lockoutEndDateUtc.toString()):void 0,this.userState=e.userState,Array.isArray(e.permissions)){this.permissions=[];for(let t of e.permissions)this.permissions.push(t)}if(Array.isArray(e.logins)){this.logins=[];for(let t of e.logins)this.logins.push(ic.fromJS(t))}this.passwordExpired=e.passwordExpired,this.lastPasswordChangedDate=e.lastPasswordChangedDate?new Date(e.lastPasswordChangedDate.toString()):void 0,this.lastPasswordChangeRequestDate=e.lastPasswordChangeRequestDate?new Date(e.lastPasswordChangeRequestDate.toString()):void 0,this.id=e.id,this.userName=e.userName,this.normalizedUserName=e.normalizedUserName,this.email=e.email,this.normalizedEmail=e.normalizedEmail,this.emailConfirmed=e.emailConfirmed,this.passwordHash=e.passwordHash,this.securityStamp=e.securityStamp,this.concurrencyStamp=e.concurrencyStamp,this.phoneNumber=e.phoneNumber,this.phoneNumberConfirmed=e.phoneNumberConfirmed,this.twoFactorEnabled=e.twoFactorEnabled,this.lockoutEnd=e.lockoutEnd?new Date(e.lockoutEnd.toString()):void 0,this.lockoutEnabled=e.lockoutEnabled,this.accessFailedCount=e.accessFailedCount}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Kr;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.storeId=this.storeId,e.memberId=this.memberId,e.isAdministrator=this.isAdministrator,e.photoUrl=this.photoUrl,e.userType=this.userType,e.status=this.status,e.password=this.password,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,Array.isArray(this.roles)){e.roles=[];for(let t of this.roles)e.roles.push(t.toJSON())}if(e.lockoutEndDateUtc=this.lockoutEndDateUtc?this.lockoutEndDateUtc.toISOString():void 0,e.userState=this.userState,Array.isArray(this.permissions)){e.permissions=[];for(let t of this.permissions)e.permissions.push(t)}if(Array.isArray(this.logins)){e.logins=[];for(let t of this.logins)e.logins.push(t.toJSON())}return e.passwordExpired=this.passwordExpired,e.lastPasswordChangedDate=this.lastPasswordChangedDate?this.lastPasswordChangedDate.toISOString():void 0,e.lastPasswordChangeRequestDate=this.lastPasswordChangeRequestDate?this.lastPasswordChangeRequestDate.toISOString():void 0,e.id=this.id,e.userName=this.userName,e.normalizedUserName=this.normalizedUserName,e.email=this.email,e.normalizedEmail=this.normalizedEmail,e.emailConfirmed=this.emailConfirmed,e.passwordHash=this.passwordHash,e.securityStamp=this.securityStamp,e.concurrencyStamp=this.concurrencyStamp,e.phoneNumber=this.phoneNumber,e.phoneNumberConfirmed=this.phoneNumberConfirmed,e.twoFactorEnabled=this.twoFactorEnabled,e.lockoutEnd=this.lockoutEnd?this.lockoutEnd.toISOString():void 0,e.lockoutEnabled=this.lockoutEnabled,e.accessFailedCount=this.accessFailedCount,e}}class sc{users;totalCount;results;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(Array.isArray(e.users)){this.users=[];for(let t of e.users)this.users.push(Kr.fromJS(t))}if(this.totalCount=e.totalCount,Array.isArray(e.results)){this.results=[];for(let t of e.results)this.results.push(Kr.fromJS(t))}}}static fromJS(e){e=typeof e=="object"?e:{};let t=new sc;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},Array.isArray(this.users)){e.users=[];for(let t of this.users)e.users.push(t.toJSON())}if(e.totalCount=this.totalCount,Array.isArray(this.results)){e.results=[];for(let t of this.results)e.results.push(t.toJSON())}return e}}class Xd{userName;oldPassword;newPassword;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.userName=e.userName,this.oldPassword=e.oldPassword,this.newPassword=e.newPassword)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Xd;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.userName=this.userName,e.oldPassword=this.oldPassword,e.newPassword=this.newPassword,e}}class qd{token;newPassword;forcePasswordChangeOnNextSignIn;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.token=e.token,this.newPassword=e.newPassword,this.forcePasswordChangeOnNextSignIn=e.forcePasswordChangeOnNextSignIn)}static fromJS(e){e=typeof e=="object"?e:{};let t=new qd;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.token=this.token,e.newPassword=this.newPassword,e.forcePasswordChangeOnNextSignIn=this.forcePasswordChangeOnNextSignIn,e}}class Zd{token;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.token=e.token)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Zd;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.token=this.token,e}}class oc{code;description;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.code=e.code,this.description=e.description)}static fromJS(e){e=typeof e=="object"?e:{};let t=new oc;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.code=this.code,e.description=this.description,e}}class fa{succeeded;errors;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e&&(this.succeeded=e.succeeded,Array.isArray(e.errors))){this.errors=[];for(let t of e.errors)this.errors.push(oc.fromJS(t))}}static fromJS(e){e=typeof e=="object"?e:{};let t=new fa;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.succeeded=this.succeeded,Array.isArray(this.errors)){e.errors=[];for(let t of this.errors)e.errors.push(t.toJSON())}return e}}class ac{locked;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.locked=e.locked)}static fromJS(e){e=typeof e=="object"?e:{};let t=new ac;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.locked=this.locked,e}}class qi{apiKey;userName;userId;isActive;createdDate;modifiedDate;createdBy;modifiedBy;id;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.apiKey=e.apiKey,this.userName=e.userName,this.userId=e.userId,this.isActive=e.isActive,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.modifiedDate=e.modifiedDate?new Date(e.modifiedDate.toString()):void 0,this.createdBy=e.createdBy,this.modifiedBy=e.modifiedBy,this.id=e.id)}static fromJS(e){e=typeof e=="object"?e:{};let t=new qi;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.apiKey=this.apiKey,e.userName=this.userName,e.userId=this.userId,e.isActive=this.isActive,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.modifiedDate=this.modifiedDate?this.modifiedDate.toISOString():void 0,e.createdBy=this.createdBy,e.modifiedBy=this.modifiedBy,e.id=this.id,e}}exports.SettingValueType=void 0;(function(n){n.ShortText="ShortText",n.LongText="LongText",n.Integer="Integer",n.Decimal="Decimal",n.DateTime="DateTime",n.Boolean="Boolean",n.SecureString="SecureString",n.Json="Json",n.PositiveInteger="PositiveInteger"})(exports.SettingValueType||(exports.SettingValueType={}));class Zi{itHasValues;objectId;objectType;isReadOnly;value;id;restartRequired;moduleId;groupName;name;displayName;isRequired;isHidden;valueType;allowedValues;defaultValue;isDictionary;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e){if(this.itHasValues=e.itHasValues,this.objectId=e.objectId,this.objectType=e.objectType,this.isReadOnly=e.isReadOnly,this.value=e.value,this.id=e.id,this.restartRequired=e.restartRequired,this.moduleId=e.moduleId,this.groupName=e.groupName,this.name=e.name,this.displayName=e.displayName,this.isRequired=e.isRequired,this.isHidden=e.isHidden,this.valueType=e.valueType,Array.isArray(e.allowedValues)){this.allowedValues=[];for(let t of e.allowedValues)this.allowedValues.push(t)}this.defaultValue=e.defaultValue,this.isDictionary=e.isDictionary}}static fromJS(e){e=typeof e=="object"?e:{};let t=new Zi;return t.init(e),t}toJSON(e){if(e=typeof e=="object"?e:{},e.itHasValues=this.itHasValues,e.objectId=this.objectId,e.objectType=this.objectType,e.isReadOnly=this.isReadOnly,e.value=this.value,e.id=this.id,e.restartRequired=this.restartRequired,e.moduleId=this.moduleId,e.groupName=this.groupName,e.name=this.name,e.displayName=this.displayName,e.isRequired=this.isRequired,e.isHidden=this.isHidden,e.valueType=this.valueType,Array.isArray(this.allowedValues)){e.allowedValues=[];for(let t of this.allowedValues)e.allowedValues.push(t)}return e.defaultValue=this.defaultValue,e.isDictionary=this.isDictionary,e}}class Qd{grant_type;scope;username;password;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.grant_type=e.grant_type,this.scope=e.scope,this.username=e.username,this.password=e.password)}static fromJS(e){e=typeof e=="object"?e:{};let t=new Qd;return t.init(e),t}toJSON(e){return e=typeof e=="object"?e:{},e.grant_type=this.grant_type,e.scope=this.scope,e.username=this.username,e.password=this.password,e}}exports.SortInfoSortDirection=void 0;(function(n){n.Ascending="Ascending",n.Descending="Descending"})(exports.SortInfoSortDirection||(exports.SortInfoSortDirection={}));exports.OperationLogOperationType=void 0;(function(n){n.Detached="Detached",n.Unchanged="Unchanged",n.Added="Added",n.Deleted="Deleted",n.Modified="Modified"})(exports.OperationLogOperationType||(exports.OperationLogOperationType={}));exports.DynamicPropertyValueType2=void 0;(function(n){n.Undefined="Undefined",n.ShortText="ShortText",n.LongText="LongText",n.Integer="Integer",n.Decimal="Decimal",n.DateTime="DateTime",n.Boolean="Boolean",n.Html="Html",n.Image="Image"})(exports.DynamicPropertyValueType2||(exports.DynamicPropertyValueType2={}));exports.DynamicPropertyObjectValueValueType=void 0;(function(n){n.Undefined="Undefined",n.ShortText="ShortText",n.LongText="LongText",n.Integer="Integer",n.Decimal="Decimal",n.DateTime="DateTime",n.Boolean="Boolean",n.Html="Html",n.Image="Image"})(exports.DynamicPropertyObjectValueValueType||(exports.DynamicPropertyObjectValueValueType={}));exports.DynamicObjectPropertyValueType=void 0;(function(n){n.Undefined="Undefined",n.ShortText="ShortText",n.LongText="LongText",n.Integer="Integer",n.Decimal="Decimal",n.DateTime="DateTime",n.Boolean="Boolean",n.Html="Html",n.Image="Image"})(exports.DynamicObjectPropertyValueType||(exports.DynamicObjectPropertyValueType={}));exports.ProgressMessageLevel2=void 0;(function(n){n.Info="Info",n.Warning="Warning",n.Debug="Debug",n.Error="Error"})(exports.ProgressMessageLevel2||(exports.ProgressMessageLevel2={}));exports.JsonElementValueKind=void 0;(function(n){n.Undefined="Undefined",n.Object="Object",n.Array="Array",n.String="String",n.Number="Number",n.True="True",n.False="False",n.Null="Null"})(exports.JsonElementValueKind||(exports.JsonElementValueKind={}));exports.ApplicationUserUserState=void 0;(function(n){n.PendingApproval="PendingApproval",n.Approved="Approved",n.Rejected="Rejected"})(exports.ApplicationUserUserState||(exports.ApplicationUserUserState={}));exports.ObjectSettingEntryValueType=void 0;(function(n){n.ShortText="ShortText",n.LongText="LongText",n.Integer="Integer",n.Decimal="Decimal",n.DateTime="DateTime",n.Boolean="Boolean",n.SecureString="SecureString",n.Json="Json",n.PositiveInteger="PositiveInteger"})(exports.ObjectSettingEntryValueType||(exports.ObjectSettingEntryValueType={}));class Fb extends Error{message;status;response;headers;result;constructor(e,t,r,i,s){super(),this.message=e,this.status=t,this.response=r,this.headers=i,this.result=s}isApiException=!0;static isApiException(e){return e.isApiException===!0}}function X(n,e,t,r,i){throw i??new Fb(n,e,t,r,null)}const dw="ls.authenticationData",$o=c.ref(),lr=c.ref(!1),nn=c.ref(),pw=new NN({accessTokenUri:"/connect/token",scopes:["offline_access"]}),Rs=new Pb,so=()=>{async function n(u,p){let v=!1;try{lr.value=!0,v=await Rs.validatePasswordResetToken(u,{token:p})}catch{}finally{lr.value=!1}return v}async function e(u){return Rs.validatePassword(u)}async function t(u,p,v){return Rs.resetPasswordByToken(u,{newPassword:p,token:v})}async function r(u,p){console.debug("[@vc-shell/framework#useUser:signIn] - Entry point");let v;try{lr.value=!0,v=await pw.owner.getToken(u,p)}catch(w){return{succeeded:!1,error:w}}finally{lr.value=!1}return v&&(nn.value={accessToken:v.accessToken,refreshToken:v.refreshToken,expiresAt:m(Number(v.data.expires_in)),userName:u},console.log("[userUsers]: an access token has been obtained successfully",nn.value),f(nn.value),await s()),{succeeded:!0}}async function i(){console.debug("[@vc-shell/framework#useUser:signOut] - Entry point"),$o.value=void 0,nn.value=void 0,f({})}async function s(){console.debug("[@vc-shell/framework#useUser:loadUser] - Entry point");const u=await d();if(u){Rs.setAuthToken(u);try{lr.value=!0,$o.value=await Rs.getCurrentUser(),console.log("[userUsers]: an user details has been loaded",$o.value)}catch(p){console.dir(p)}finally{lr.value=!1}}return{...$o.value}}async function d(){if(console.debug("[@vc-shell/framework#useUser:getAccessToken] - Entry point"),nn.value||(nn.value=l()),nn.value&&Date.now()>=(nn.value.expiresAt??0)){const u=pw.createToken(nn.value.accessToken??nn.value.token??"",nn.value.refreshToken??"",{});console.log("[userUsers]: an access token is expired, using refresh token to receive a new");try{const p=await u.refresh();p&&(nn.value={...nn.value,accessToken:p.accessToken,token:p.accessToken,refreshToken:p.refreshToken,expiresAt:m(Number(p.data.expires_in))},f(nn.value))}catch(p){console.log("[userUsers]: getAccessToken() returns error",p)}}return nn.value?.accessToken??nn.value?.token}function f(u){localStorage.setItem(dw,JSON.stringify({...u||{}}))}function l(){return JSON.parse(localStorage.getItem(dw)||"{}")}function m(u){return Date.now()+u*1e3}async function a(u){try{return lr.value=!0,await Rs.requestPasswordReset(u),{succeeded:!0}}catch(p){return{succeeded:!1,error:p}}finally{lr.value=!1}}async function o(u,p){const v=await d();let w;if(v)try{lr.value=!0;const b=await fetch("/api/platform/security/currentuser/changepassword",{method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"text/plain",authorization:`Bearer ${v}`},body:JSON.stringify({oldPassword:u,newPassword:p})});b.status!==500&&(w=await b.text().then(_=>JSON.parse(_)))}catch(b){return{succeeded:!1,errors:[b.message]}}finally{lr.value=!1}return w}return{user:c.computed(()=>$o.value),loading:c.computed(()=>lr.value),getAccessToken:d,loadUser:s,signIn:r,signOut:i,validateToken:n,validatePassword:e,resetPasswordByToken:t,requestPasswordReset:a,changeUserPassword:o}};var GN=typeof global=="object"&&global&&global.Object===Object&&global;const Vb=GN;var YN=typeof self=="object"&&self&&self.Object===Object&&self,JN=Vb||YN||Function("return this")();const ri=JN;var KN=ri.Symbol;const Ri=KN;var Ub=Object.prototype,XN=Ub.hasOwnProperty,qN=Ub.toString,Oo=Ri?Ri.toStringTag:void 0;function ZN(n){var e=XN.call(n,Oo),t=n[Oo];try{n[Oo]=void 0;var r=!0}catch{}var i=qN.call(n);return r&&(e?n[Oo]=t:delete n[Oo]),i}var QN=Object.prototype,eI=QN.toString;function tI(n){return eI.call(n)}var nI="[object Null]",rI="[object Undefined]",mw=Ri?Ri.toStringTag:void 0;function oo(n){return n==null?n===void 0?rI:nI:mw&&mw in Object(n)?ZN(n):tI(n)}function ls(n){return n!=null&&typeof n=="object"}var iI="[object Symbol]";function da(n){return typeof n=="symbol"||ls(n)&&oo(n)==iI}function Hs(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++t<r;)i[t]=e(n[t],t,n);return i}var sI=Array.isArray;const Xn=sI;var oI=1/0,gw=Ri?Ri.prototype:void 0,vw=gw?gw.toString:void 0;function Wb(n){if(typeof n=="string")return n;if(Xn(n))return Hs(n,Wb)+"";if(da(n))return vw?vw.call(n):"";var e=n+"";return e=="0"&&1/n==-oI?"-0":e}function ep(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function lc(n){return n}var aI="[object AsyncFunction]",lI="[object Function]",uI="[object GeneratorFunction]",cI="[object Proxy]";function Hb(n){if(!ep(n))return!1;var e=oo(n);return e==lI||e==uI||e==aI||e==cI}var hI=ri["__core-js_shared__"];const tf=hI;var ww=function(){var n=/[^.]+$/.exec(tf&&tf.keys&&tf.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function fI(n){return!!ww&&ww in n}var dI=Function.prototype,pI=dI.toString;function ds(n){if(n!=null){try{return pI.call(n)}catch{}try{return n+""}catch{}}return""}var mI=/[\\^$.*+?()[\]{}|]/g,gI=/^\[object .+?Constructor\]$/,vI=Function.prototype,wI=Object.prototype,yI=vI.toString,bI=wI.hasOwnProperty,SI=RegExp("^"+yI.call(bI).replace(mI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _I(n){if(!ep(n)||fI(n))return!1;var e=Hb(n)?SI:gI;return e.test(ds(n))}function CI(n,e){return n?.[e]}function ps(n,e){var t=CI(n,e);return _I(t)?t:void 0}var EI=ps(ri,"WeakMap");const Hf=EI;function kI(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var xI=800,AI=16,TI=Date.now;function $I(n){var e=0,t=0;return function(){var r=TI(),i=AI-(r-t);if(t=r,i>0){if(++e>=xI)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function OI(n){return function(){return n}}var LI=function(){try{var n=ps(Object,"defineProperty");return n({},"",{}),n}catch{}}();const yw=LI;var MI=yw?function(n,e){return yw(n,"toString",{configurable:!0,enumerable:!1,value:OI(e),writable:!0})}:lc;const RI=MI;var NI=$I(RI);const II=NI;function DI(n,e,t,r){for(var i=n.length,s=t+(r?1:-1);r?s--:++s<i;)if(e(n[s],s,n))return s;return-1}function PI(n){return n!==n}function BI(n,e,t){for(var r=t-1,i=n.length;++r<i;)if(n[r]===e)return r;return-1}function FI(n,e,t){return e===e?BI(n,e,t):DI(n,PI,t)}function VI(n,e){var t=n==null?0:n.length;return!!t&&FI(n,e,0)>-1}var UI=9007199254740991,WI=/^(?:0|[1-9]\d*)$/;function tp(n,e){var t=typeof n;return e=e??UI,!!e&&(t=="number"||t!="symbol"&&WI.test(n))&&n>-1&&n%1==0&&n<e}function zb(n,e){return n===e||n!==n&&e!==e}var bw=Math.max;function HI(n,e,t){return e=bw(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,s=bw(r.length-e,0),d=Array(s);++i<s;)d[i]=r[e+i];i=-1;for(var f=Array(e+1);++i<e;)f[i]=r[i];return f[e]=t(d),kI(n,this,f)}}function zI(n,e){return II(HI(n,e,lc),n+"")}var jI=9007199254740991;function np(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=jI}function uc(n){return n!=null&&np(n.length)&&!Hb(n)}var GI=Object.prototype;function YI(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||GI;return n===t}function JI(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var KI="[object Arguments]";function Sw(n){return ls(n)&&oo(n)==KI}var jb=Object.prototype,XI=jb.hasOwnProperty,qI=jb.propertyIsEnumerable,ZI=Sw(function(){return arguments}())?Sw:function(n){return ls(n)&&XI.call(n,"callee")&&!qI.call(n,"callee")};const Gb=ZI;function QI(){return!1}var Yb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_w=Yb&&typeof module=="object"&&module&&!module.nodeType&&module,eD=_w&&_w.exports===Yb,Cw=eD?ri.Buffer:void 0,tD=Cw?Cw.isBuffer:void 0,nD=tD||QI;const zf=nD;var rD="[object Arguments]",iD="[object Array]",sD="[object Boolean]",oD="[object Date]",aD="[object Error]",lD="[object Function]",uD="[object Map]",cD="[object Number]",hD="[object Object]",fD="[object RegExp]",dD="[object Set]",pD="[object String]",mD="[object WeakMap]",gD="[object ArrayBuffer]",vD="[object DataView]",wD="[object Float32Array]",yD="[object Float64Array]",bD="[object Int8Array]",SD="[object Int16Array]",_D="[object Int32Array]",CD="[object Uint8Array]",ED="[object Uint8ClampedArray]",kD="[object Uint16Array]",xD="[object Uint32Array]",St={};St[wD]=St[yD]=St[bD]=St[SD]=St[_D]=St[CD]=St[ED]=St[kD]=St[xD]=!0;St[rD]=St[iD]=St[gD]=St[sD]=St[vD]=St[oD]=St[aD]=St[lD]=St[uD]=St[cD]=St[hD]=St[fD]=St[dD]=St[pD]=St[mD]=!1;function AD(n){return ls(n)&&np(n.length)&&!!St[oo(n)]}function rp(n){return function(e){return n(e)}}var Jb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wo=Jb&&typeof module=="object"&&module&&!module.nodeType&&module,TD=Wo&&Wo.exports===Jb,nf=TD&&Vb.process,$D=function(){try{var n=Wo&&Wo.require&&Wo.require("util").types;return n||nf&&nf.binding&&nf.binding("util")}catch{}}();const Ew=$D;var kw=Ew&&Ew.isTypedArray,OD=kw?rp(kw):AD;const Kb=OD;var LD=Object.prototype,MD=LD.hasOwnProperty;function RD(n,e){var t=Xn(n),r=!t&&Gb(n),i=!t&&!r&&zf(n),s=!t&&!r&&!i&&Kb(n),d=t||r||i||s,f=d?JI(n.length,String):[],l=f.length;for(var m in n)(e||MD.call(n,m))&&!(d&&(m=="length"||i&&(m=="offset"||m=="parent")||s&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||tp(m,l)))&&f.push(m);return f}function ND(n,e){return function(t){return n(e(t))}}var ID=ND(Object.keys,Object);const DD=ID;var PD=Object.prototype,BD=PD.hasOwnProperty;function FD(n){if(!YI(n))return DD(n);var e=[];for(var t in Object(n))BD.call(n,t)&&t!="constructor"&&e.push(t);return e}function ip(n){return uc(n)?RD(n):FD(n)}var VD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UD=/^\w*$/;function sp(n,e){if(Xn(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||da(n)?!0:UD.test(n)||!VD.test(n)||e!=null&&n in Object(e)}var WD=ps(Object,"create");const pa=WD;function HD(){this.__data__=pa?pa(null):{},this.size=0}function zD(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var jD="__lodash_hash_undefined__",GD=Object.prototype,YD=GD.hasOwnProperty;function JD(n){var e=this.__data__;if(pa){var t=e[n];return t===jD?void 0:t}return YD.call(e,n)?e[n]:void 0}var KD=Object.prototype,XD=KD.hasOwnProperty;function qD(n){var e=this.__data__;return pa?e[n]!==void 0:XD.call(e,n)}var ZD="__lodash_hash_undefined__";function QD(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=pa&&e===void 0?ZD:e,this}function us(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}us.prototype.clear=HD;us.prototype.delete=zD;us.prototype.get=JD;us.prototype.has=qD;us.prototype.set=QD;function eP(){this.__data__=[],this.size=0}function cc(n,e){for(var t=n.length;t--;)if(zb(n[t][0],e))return t;return-1}var tP=Array.prototype,nP=tP.splice;function rP(n){var e=this.__data__,t=cc(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():nP.call(e,t,1),--this.size,!0}function iP(n){var e=this.__data__,t=cc(e,n);return t<0?void 0:e[t][1]}function sP(n){return cc(this.__data__,n)>-1}function oP(n,e){var t=this.__data__,r=cc(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function ii(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}ii.prototype.clear=eP;ii.prototype.delete=rP;ii.prototype.get=iP;ii.prototype.has=sP;ii.prototype.set=oP;var aP=ps(ri,"Map");const ma=aP;function lP(){this.size=0,this.__data__={hash:new us,map:new(ma||ii),string:new us}}function uP(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function hc(n,e){var t=n.__data__;return uP(e)?t[typeof e=="string"?"string":"hash"]:t.map}function cP(n){var e=hc(this,n).delete(n);return this.size-=e?1:0,e}function hP(n){return hc(this,n).get(n)}function fP(n){return hc(this,n).has(n)}function dP(n,e){var t=hc(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function si(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}si.prototype.clear=lP;si.prototype.delete=cP;si.prototype.get=hP;si.prototype.has=fP;si.prototype.set=dP;var pP="Expected a function";function op(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(pP);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=t.cache;if(s.has(i))return s.get(i);var d=n.apply(this,r);return t.cache=s.set(i,d)||s,d};return t.cache=new(op.Cache||si),t}op.Cache=si;var mP=500;function gP(n){var e=op(n,function(r){return t.size===mP&&t.clear(),r}),t=e.cache;return e}var vP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wP=/\\(\\)?/g,yP=gP(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(vP,function(t,r,i,s){e.push(i?s.replace(wP,"$1"):r||t)}),e});const bP=yP;function SP(n){return n==null?"":Wb(n)}function ap(n,e){return Xn(n)?n:sp(n,e)?[n]:bP(SP(n))}var _P=1/0;function Ra(n){if(typeof n=="string"||da(n))return n;var e=n+"";return e=="0"&&1/n==-_P?"-0":e}function fc(n,e){e=ap(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[Ra(e[t++])];return t&&t==r?n:void 0}function CP(n,e,t){var r=n==null?void 0:fc(n,e);return r===void 0?t:r}function EP(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}function kP(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=n[r+e];return s}function xP(){this.__data__=new ii,this.size=0}function AP(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function TP(n){return this.__data__.get(n)}function $P(n){return this.__data__.has(n)}var OP=200;function LP(n,e){var t=this.__data__;if(t instanceof ii){var r=t.__data__;if(!ma||r.length<OP-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new si(r)}return t.set(n,e),this.size=t.size,this}function Zr(n){var e=this.__data__=new ii(n);this.size=e.size}Zr.prototype.clear=xP;Zr.prototype.delete=AP;Zr.prototype.get=TP;Zr.prototype.has=$P;Zr.prototype.set=LP;function MP(n,e){for(var t=-1,r=n==null?0:n.length,i=0,s=[];++t<r;){var d=n[t];e(d,t,n)&&(s[i++]=d)}return s}function RP(){return[]}var NP=Object.prototype,IP=NP.propertyIsEnumerable,xw=Object.getOwnPropertySymbols,DP=xw?function(n){return n==null?[]:(n=Object(n),MP(xw(n),function(e){return IP.call(n,e)}))}:RP;const PP=DP;function BP(n,e,t){var r=e(n);return Xn(n)?r:EP(r,t(n))}function Aw(n){return BP(n,ip,PP)}var FP=ps(ri,"DataView");const jf=FP;var VP=ps(ri,"Promise");const Gf=VP;var UP=ps(ri,"Set");const Yf=UP;var Tw="[object Map]",WP="[object Object]",$w="[object Promise]",Ow="[object Set]",Lw="[object WeakMap]",Mw="[object DataView]",HP=ds(jf),zP=ds(ma),jP=ds(Gf),GP=ds(Yf),YP=ds(Hf),Ki=oo;(jf&&Ki(new jf(new ArrayBuffer(1)))!=Mw||ma&&Ki(new ma)!=Tw||Gf&&Ki(Gf.resolve())!=$w||Yf&&Ki(new Yf)!=Ow||Hf&&Ki(new Hf)!=Lw)&&(Ki=function(n){var e=oo(n),t=e==WP?n.constructor:void 0,r=t?ds(t):"";if(r)switch(r){case HP:return Mw;case zP:return Tw;case jP:return $w;case GP:return Ow;case YP:return Lw}return e});const Rw=Ki;var JP=ri.Uint8Array;const Nw=JP;var KP="__lodash_hash_undefined__";function XP(n){return this.__data__.set(n,KP),this}function qP(n){return this.__data__.has(n)}function ga(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new si;++e<t;)this.add(n[e])}ga.prototype.add=ga.prototype.push=XP;ga.prototype.has=qP;function ZP(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function Jf(n,e){return n.has(e)}var QP=1,eB=2;function Xb(n,e,t,r,i,s){var d=t&QP,f=n.length,l=e.length;if(f!=l&&!(d&&l>f))return!1;var m=s.get(n),a=s.get(e);if(m&&a)return m==e&&a==n;var o=-1,u=!0,p=t&eB?new ga:void 0;for(s.set(n,e),s.set(e,n);++o<f;){var v=n[o],w=e[o];if(r)var b=d?r(w,v,o,e,n,s):r(v,w,o,n,e,s);if(b!==void 0){if(b)continue;u=!1;break}if(p){if(!ZP(e,function(_,E){if(!Jf(p,E)&&(v===_||i(v,_,t,r,s)))return p.push(E)})){u=!1;break}}else if(!(v===w||i(v,w,t,r,s))){u=!1;break}}return s.delete(n),s.delete(e),u}function tB(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function nB(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var rB=1,iB=2,sB="[object Boolean]",oB="[object Date]",aB="[object Error]",lB="[object Map]",uB="[object Number]",cB="[object RegExp]",hB="[object Set]",fB="[object String]",dB="[object Symbol]",pB="[object ArrayBuffer]",mB="[object DataView]",Iw=Ri?Ri.prototype:void 0,rf=Iw?Iw.valueOf:void 0;function gB(n,e,t,r,i,s,d){switch(t){case mB:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case pB:return!(n.byteLength!=e.byteLength||!s(new Nw(n),new Nw(e)));case sB:case oB:case uB:return zb(+n,+e);case aB:return n.name==e.name&&n.message==e.message;case cB:case fB:return n==e+"";case lB:var f=tB;case hB:var l=r&rB;if(f||(f=nB),n.size!=e.size&&!l)return!1;var m=d.get(n);if(m)return m==e;r|=iB,d.set(n,e);var a=Xb(f(n),f(e),r,i,s,d);return d.delete(n),a;case dB:if(rf)return rf.call(n)==rf.call(e)}return!1}var vB=1,wB=Object.prototype,yB=wB.hasOwnProperty;function bB(n,e,t,r,i,s){var d=t&vB,f=Aw(n),l=f.length,m=Aw(e),a=m.length;if(l!=a&&!d)return!1;for(var o=l;o--;){var u=f[o];if(!(d?u in e:yB.call(e,u)))return!1}var p=s.get(n),v=s.get(e);if(p&&v)return p==e&&v==n;var w=!0;s.set(n,e),s.set(e,n);for(var b=d;++o<l;){u=f[o];var _=n[u],E=e[u];if(r)var $=d?r(E,_,u,e,n,s):r(_,E,u,n,e,s);if(!($===void 0?_===E||i(_,E,t,r,s):$)){w=!1;break}b||(b=u=="constructor")}if(w&&!b){var x=n.constructor,S=e.constructor;x!=S&&"constructor"in n&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof S=="function"&&S instanceof S)&&(w=!1)}return s.delete(n),s.delete(e),w}var SB=1,Dw="[object Arguments]",Pw="[object Array]",Rl="[object Object]",_B=Object.prototype,Bw=_B.hasOwnProperty;function CB(n,e,t,r,i,s){var d=Xn(n),f=Xn(e),l=d?Pw:Rw(n),m=f?Pw:Rw(e);l=l==Dw?Rl:l,m=m==Dw?Rl:m;var a=l==Rl,o=m==Rl,u=l==m;if(u&&zf(n)){if(!zf(e))return!1;d=!0,a=!1}if(u&&!a)return s||(s=new Zr),d||Kb(n)?Xb(n,e,t,r,i,s):gB(n,e,l,t,r,i,s);if(!(t&SB)){var p=a&&Bw.call(n,"__wrapped__"),v=o&&Bw.call(e,"__wrapped__");if(p||v){var w=p?n.value():n,b=v?e.value():e;return s||(s=new Zr),i(w,b,t,r,s)}}return u?(s||(s=new Zr),bB(n,e,t,r,i,s)):!1}function dc(n,e,t,r,i){return n===e?!0:n==null||e==null||!ls(n)&&!ls(e)?n!==n&&e!==e:CB(n,e,t,r,dc,i)}var EB=1,kB=2;function xB(n,e,t,r){var i=t.length,s=i,d=!r;if(n==null)return!s;for(n=Object(n);i--;){var f=t[i];if(d&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++i<s;){f=t[i];var l=f[0],m=n[l],a=f[1];if(d&&f[2]){if(m===void 0&&!(l in n))return!1}else{var o=new Zr;if(r)var u=r(m,a,l,n,e,o);if(!(u===void 0?dc(a,m,EB|kB,r,o):u))return!1}}return!0}function qb(n){return n===n&&!ep(n)}function AB(n){for(var e=ip(n),t=e.length;t--;){var r=e[t],i=n[r];e[t]=[r,i,qb(i)]}return e}function Zb(n,e){return function(t){return t==null?!1:t[n]===e&&(e!==void 0||n in Object(t))}}function TB(n){var e=AB(n);return e.length==1&&e[0][2]?Zb(e[0][0],e[0][1]):function(t){return t===n||xB(t,n,e)}}function $B(n,e){return n!=null&&e in Object(n)}function OB(n,e,t){e=ap(e,n);for(var r=-1,i=e.length,s=!1;++r<i;){var d=Ra(e[r]);if(!(s=n!=null&&t(n,d)))break;n=n[d]}return s||++r!=i?s:(i=n==null?0:n.length,!!i&&np(i)&&tp(d,i)&&(Xn(n)||Gb(n)))}function LB(n,e){return n!=null&&OB(n,e,$B)}var MB=1,RB=2;function NB(n,e){return sp(n)&&qb(e)?Zb(Ra(n),e):function(t){var r=CP(t,n);return r===void 0&&r===e?LB(t,n):dc(e,r,MB|RB)}}function IB(n){return function(e){return e?.[n]}}function DB(n){return function(e){return fc(e,n)}}function PB(n){return sp(n)?IB(Ra(n)):DB(n)}function Qb(n){return typeof n=="function"?n:n==null?lc:typeof n=="object"?Xn(n)?NB(n[0],n[1]):TB(n):PB(n)}function BB(n){return function(e,t,r){for(var i=-1,s=Object(e),d=r(e),f=d.length;f--;){var l=d[n?f:++i];if(t(s[l],l,s)===!1)break}return e}}var FB=BB();const VB=FB;function UB(n,e){return n&&VB(n,e,ip)}function WB(n,e){return function(t,r){if(t==null)return t;if(!uc(t))return n(t,r);for(var i=t.length,s=e?i:-1,d=Object(t);(e?s--:++s<i)&&r(d[s],s,d)!==!1;);return t}}var HB=WB(UB);const zB=HB;function jB(n){return ls(n)&&uc(n)}function GB(n,e,t){for(var r=-1,i=n==null?0:n.length;++r<i;)if(t(e,n[r]))return!0;return!1}function YB(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function JB(n,e){var t=-1,r=uc(n)?Array(n.length):[];return zB(n,function(i,s,d){r[++t]=e(i,s,d)}),r}var KB=Math.min;function XB(n,e,t){for(var r=t?GB:VI,i=n[0].length,s=n.length,d=s,f=Array(s),l=1/0,m=[];d--;){var a=n[d];d&&e&&(a=Hs(a,rp(e))),l=KB(a.length,l),f[d]=!t&&(e||i>=120&&a.length>=120)?new ga(d&&a):void 0}a=n[0];var o=-1,u=f[0];e:for(;++o<i&&m.length<l;){var p=a[o],v=e?e(p):p;if(p=t||p!==0?p:0,!(u?Jf(u,v):r(m,v,t))){for(d=s;--d;){var w=f[d];if(!(w?Jf(w,v):r(n[d],v,t)))continue e}u&&u.push(v),m.push(p)}}return m}function qB(n){return jB(n)?n:[]}var ZB=zI(function(n){var e=Hs(n,qB);return e.length&&e[0]===n[0]?XB(e):[]});const QB=ZB;function eF(n,e){return e.length<2?n:fc(n,kP(e,0,-1))}function Io(n,e){return dc(n,e)}function tF(n,e){return e=ap(e,n),n=eF(n,e),n==null||delete n[Ra(YB(e))]}function nF(n,e){var t=n.length;for(n.sort(e);t--;)n[t]=n[t].value;return n}function rF(n,e){if(n!==e){var t=n!==void 0,r=n===null,i=n===n,s=da(n),d=e!==void 0,f=e===null,l=e===e,m=da(e);if(!f&&!m&&!s&&n>e||s&&d&&l&&!f&&!m||r&&d&&l||!t&&l||!i)return 1;if(!r&&!s&&!m&&n<e||m&&t&&i&&!r&&!s||f&&t&&i||!d&&i||!l)return-1}return 0}function iF(n,e,t){for(var r=-1,i=n.criteria,s=e.criteria,d=i.length,f=t.length;++r<d;){var l=rF(i[r],s[r]);if(l){if(r>=f)return l;var m=t[r];return l*(m=="desc"?-1:1)}}return n.index-e.index}function sF(n,e,t){e.length?e=Hs(e,function(s){return Xn(s)?function(d){return fc(d,s.length===1?s[0]:s)}:s}):e=[lc];var r=-1;e=Hs(e,rp(Qb));var i=JB(n,function(s,d,f){var l=Hs(e,function(m){return m(s)});return{criteria:l,index:++r,value:s}});return nF(i,function(s,d){return iF(s,d,t)})}function oF(n,e,t,r){return n==null?[]:(Xn(e)||(e=e==null?[]:[e]),t=r?void 0:t,Xn(t)||(t=t==null?[]:[t]),sF(n,e,t))}var aF=Array.prototype,lF=aF.splice;function uF(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==s){var s=i;tp(i)?lF.call(n,i,1):tF(n,i)}}return n}function sf(n,e){var t=[];if(!(n&&n.length))return t;var r=-1,i=[],s=n.length;for(e=Qb(e);++r<s;){var d=n[r];e(d,r,n)&&(t.push(d),i.push(r))}return uF(n,i),t}const of=new Db,yi=c.ref([]),Lo=c.ref([]),cF=()=>{const{getAccessToken:n}=so();async function e(f=10){const l=await n();if(l)try{of.setAuthToken(l),(await fetch("/api/platform/pushnotifications",{method:"POST",headers:{"Content-Type":"application/json-patch+json",Accept:"application/json",authorization:`Bearer ${l}`},body:JSON.stringify({take:f})})).text().then(a=>{yi.value=JSON.parse(a).notifyEvents??[]})}catch(m){throw console.error(m),m}}function t(f){if(f.notifyType!=="IndexProgressPushNotification"){const l=yi.value.find(m=>m.id==f.id);l?(f.isNew=l.isNew,Object.assign(l,f)):(Lo.value.unshift(f),yi.value.unshift(f))}}function r(f){f.isNew=!1,sf(Lo.value,l=>l.id==f.id)}function i(f){sf(Lo.value,l=>l.id==f.id),sf(yi.value,l=>l.id==f.id)}function s(){Lo.value=[],yi.value=[]}async function d(){const f=await n();if(f){of.setAuthToken(f);try{await of.markAllAsRead(),yi.value=yi.value.map(l=>(l.isNew&&(l.isNew=!1),l))}catch(l){throw console.error(l),l}}}return{notifications:c.computed(()=>c.readonly(oF(yi.value,["created"],["desc"]))),popupNotifications:c.computed(()=>c.readonly(Lo.value)),loadFromHistory:e,addNotification:t,dismissAll:s,dismiss:i,markAsRead:r,markAllAsRead:d}},Nl=c.ref({logo:void 0,title:void 0}),hF=()=>{const{getAccessToken:n}=so();async function e(){const i=new Bb;return i.setAuthToken(await n()),i}async function t(){const i=await e(),s="https://vcmp-dev.paas.govirto.com/";try{const d=await i.getUICustomizationSetting(),f=JSON.parse(d.defaultValue);Nl.value={contrast_logo:s+f.contrast_logo,logo:s+f.logo,title:f.title}}catch(d){console.error(d)}}function r(i){i.logo&&(Nl.value.logo=i.logo),i.title&&(Nl.value.title=i.title)}return{uiSettings:c.computed(()=>Nl.value),getUiCustomizationSettings:t,applySettings:r}},pc=()=>{const{user:n}=so();function e(t){if(t)if(t||t&&t instanceof Array){if(typeof t=="string")return n.value?.permissions.includes(t);if(t.length>0)return n.value?.permissions.some(r=>t.includes(r))}else console.error("Permissions must be a string or strings array");else return!0}return{userPermissions:c.computed(()=>n.value?.permissions),checkPermission:e}},fF=(n,e,t)=>{const r=c.computed(()=>c.isRef(n)?c.unref(n):n),i=c.computed(()=>c.isRef(e)?c.unref(e):e),s=c.ref(),d=c.ref(!1);c.watch(i,()=>{i.value?d.value=!0:(d.value=!1,m())}),c.watch([r,d],()=>{d.value&&f()},{deep:!0});function f(){localStorage.setItem(t,JSON.stringify(r.value))}function l(){const a=JSON.parse(localStorage.getItem(t));a&&(s.value=a)}function m(){localStorage.removeItem(t)}return{savedValue:c.computed(()=>s.value),loadAutosaved:l,resetAutosaved:m}};function dF(n){const e=c.ref(!1);async function t(r){e.value=!0;try{return await n(r)}catch(i){throw console.error(i),i}finally{e.value=!1}}return{loading:c.readonly(e),action:t}}function pF(n){const{getAccessToken:e}=so();async function t(){const r=new n;return r.setAuthToken(await e()),r}return{getApiClient:t}}function mF(...n){return c.computed(()=>n.some(e=>e.value))}const{checkPermission:gF}=pc();function Fw(n,e){const{value:t}=e;gF(t)===!1&&n.parentNode&&n.parentNode.removeChild(n)}const e0={mounted(n,e){Fw(n,e)},updated(n,e){Fw(n,e)}},t0={mounted(n,e){e.value&&n.focus()}},mc={mounted(n,e){const t=e.value;n._outsideClickHandler=function(r){n.contains(r.target)||(r.stopPropagation(),t())},document.addEventListener("click",n._outsideClickHandler)},unmounted(n){document.removeEventListener("click",n._outsideClickHandler)}},Vw="v-loading",n0={mounted:function(n,e){console.log("v-loading mount");const t=document.createElement("div");t.className=Vw,t.innerHTML="Loading...",t.style.display=e.value?"flex":"none",t.style.position="absolute",t.style.alignItems="center",t.style.justifyContent="center",t.style.background="rgba(255, 255, 255, 0.75)",t.style.zIndex="9999",t.style.width="100%",t.style.height="100%",n.appendChild(t)},updated:function(n,e){console.log("v-loading updated");const t=n.querySelector(`.${Vw}`);t&&(t.style.display=e.value?"flex":"none")}},vF=Object.freeze(Object.defineProperty({__proto__:null,autofocus:t0,clickOutside:mc,loading:n0,permissions:e0},Symbol.toStringTag,{value:"Module"}));var Sn="top",qn="bottom",Zn="right",_n="left",gc="auto",Na=[Sn,qn,Zn,_n],Zs="start",va="end",wF="clippingParents",r0="viewport",Mo="popper",yF="reference",Uw=Na.reduce(function(n,e){return n.concat([e+"-"+Zs,e+"-"+va])},[]),i0=[].concat(Na,[gc]).reduce(function(n,e){return n.concat([e,e+"-"+Zs,e+"-"+va])},[]),bF="beforeRead",SF="read",_F="afterRead",CF="beforeMain",EF="main",kF="afterMain",xF="beforeWrite",AF="write",TF="afterWrite",Kf=[bF,SF,_F,CF,EF,kF,xF,AF,TF];function xr(n){return n?(n.nodeName||"").toLowerCase():null}function Qn(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function cs(n){var e=Qn(n).Element;return n instanceof e||n instanceof Element}function Dn(n){var e=Qn(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function lp(n){if(typeof ShadowRoot>"u")return!1;var e=Qn(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function $F(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},s=e.elements[t];!Dn(s)||!xr(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(d){var f=i[d];f===!1?s.removeAttribute(d):s.setAttribute(d,f===!0?"":f)}))})}function OF(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},d=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),f=d.reduce(function(l,m){return l[m]="",l},{});!Dn(i)||!xr(i)||(Object.assign(i.style,f),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const LF={name:"applyStyles",enabled:!0,phase:"write",fn:$F,effect:OF,requires:["computeStyles"]};function fr(n){return n.split("-")[0]}var ts=Math.max,cu=Math.min,Qs=Math.round;function Xf(){var n=navigator.userAgentData;return n!=null&&n.brands?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function s0(){return!/^((?!chrome|android).)*safari/i.test(Xf())}function eo(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,s=1;e&&Dn(n)&&(i=n.offsetWidth>0&&Qs(r.width)/n.offsetWidth||1,s=n.offsetHeight>0&&Qs(r.height)/n.offsetHeight||1);var d=cs(n)?Qn(n):window,f=d.visualViewport,l=!s0()&&t,m=(r.left+(l&&f?f.offsetLeft:0))/i,a=(r.top+(l&&f?f.offsetTop:0))/s,o=r.width/i,u=r.height/s;return{width:o,height:u,top:a,right:m+o,bottom:a+u,left:m,x:m,y:a}}function up(n){var e=eo(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function o0(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&lp(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dr(n){return Qn(n).getComputedStyle(n)}function MF(n){return["table","td","th"].indexOf(xr(n))>=0}function Ii(n){return((cs(n)?n.ownerDocument:n.document)||window.document).documentElement}function vc(n){return xr(n)==="html"?n:n.assignedSlot||n.parentNode||(lp(n)?n.host:null)||Ii(n)}function Ww(n){return!Dn(n)||dr(n).position==="fixed"?null:n.offsetParent}function RF(n){var e=/firefox/i.test(Xf()),t=/Trident/i.test(Xf());if(t&&Dn(n)){var r=dr(n);if(r.position==="fixed")return null}var i=vc(n);for(lp(i)&&(i=i.host);Dn(i)&&["html","body"].indexOf(xr(i))<0;){var s=dr(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ia(n){for(var e=Qn(n),t=Ww(n);t&&MF(t)&&dr(t).position==="static";)t=Ww(t);return t&&(xr(t)==="html"||xr(t)==="body"&&dr(t).position==="static")?e:t||RF(n)||e}function cp(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Ho(n,e,t){return ts(n,cu(e,t))}function NF(n,e,t){var r=Ho(n,e,t);return r>t?t:r}function a0(){return{top:0,right:0,bottom:0,left:0}}function l0(n){return Object.assign({},a0(),n)}function u0(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var IF=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,l0(typeof e!="number"?e:u0(e,Na))};function DF(n){var e,t=n.state,r=n.name,i=n.options,s=t.elements.arrow,d=t.modifiersData.popperOffsets,f=fr(t.placement),l=cp(f),m=[_n,Zn].indexOf(f)>=0,a=m?"height":"width";if(!(!s||!d)){var o=IF(i.padding,t),u=up(s),p=l==="y"?Sn:_n,v=l==="y"?qn:Zn,w=t.rects.reference[a]+t.rects.reference[l]-d[l]-t.rects.popper[a],b=d[l]-t.rects.reference[l],_=Ia(s),E=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,$=w/2-b/2,x=o[p],S=E-u[a]-o[v],T=E/2-u[a]/2+$,M=Ho(x,T,S),A=l;t.modifiersData[r]=(e={},e[A]=M,e.centerOffset=M-T,e)}}function PF(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;if(i!=null&&!(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i))){if(process.env.NODE_ENV!=="production"&&(Dn(i)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!o0(e.elements.popper,i)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=i}}const BF={name:"arrow",enabled:!0,phase:"main",fn:DF,effect:PF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function to(n){return n.split("-")[1]}var FF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VF(n){var e=n.x,t=n.y,r=window,i=r.devicePixelRatio||1;return{x:Qs(e*i)/i||0,y:Qs(t*i)/i||0}}function Hw(n){var e,t=n.popper,r=n.popperRect,i=n.placement,s=n.variation,d=n.offsets,f=n.position,l=n.gpuAcceleration,m=n.adaptive,a=n.roundOffsets,o=n.isFixed,u=d.x,p=u===void 0?0:u,v=d.y,w=v===void 0?0:v,b=typeof a=="function"?a({x:p,y:w}):{x:p,y:w};p=b.x,w=b.y;var _=d.hasOwnProperty("x"),E=d.hasOwnProperty("y"),$=_n,x=Sn,S=window;if(m){var T=Ia(t),M="clientHeight",A="clientWidth";if(T===Qn(t)&&(T=Ii(t),dr(T).position!=="static"&&f==="absolute"&&(M="scrollHeight",A="scrollWidth")),T=T,i===Sn||(i===_n||i===Zn)&&s===va){x=qn;var R=o&&T===S&&S.visualViewport?S.visualViewport.height:T[M];w-=R-r.height,w*=l?1:-1}if(i===_n||(i===Sn||i===qn)&&s===va){$=Zn;var y=o&&T===S&&S.visualViewport?S.visualViewport.width:T[A];p-=y-r.width,p*=l?1:-1}}var k=Object.assign({position:f},m&&FF),O=a===!0?VF({x:p,y:w}):{x:p,y:w};if(p=O.x,w=O.y,l){var N;return Object.assign({},k,(N={},N[x]=E?"0":"",N[$]=_?"0":"",N.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+w+"px)":"translate3d("+p+"px, "+w+"px, 0)",N))}return Object.assign({},k,(e={},e[x]=E?w+"px":"",e[$]=_?p+"px":"",e.transform="",e))}function UF(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,s=t.adaptive,d=s===void 0?!0:s,f=t.roundOffsets,l=f===void 0?!0:f;if(process.env.NODE_ENV!=="production"){var m=dr(e.elements.popper).transitionProperty||"";d&&["transform","top","right","bottom","left"].some(function(o){return m.indexOf(o)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
1086
|
-
|
|
1087
|
-
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
1088
|
-
|
|
1089
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var a={placement:fr(e.placement),variation:to(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Hw(Object.assign({},a,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:d,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Hw(Object.assign({},a,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const WF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UF,data:{}};var Il={passive:!0};function HF(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,s=i===void 0?!0:i,d=r.resize,f=d===void 0?!0:d,l=Qn(e.elements.popper),m=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&m.forEach(function(a){a.addEventListener("scroll",t.update,Il)}),f&&l.addEventListener("resize",t.update,Il),function(){s&&m.forEach(function(a){a.removeEventListener("scroll",t.update,Il)}),f&&l.removeEventListener("resize",t.update,Il)}}const zF={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:HF,data:{}};var jF={left:"right",right:"left",bottom:"top",top:"bottom"};function Jl(n){return n.replace(/left|right|bottom|top/g,function(e){return jF[e]})}var GF={start:"end",end:"start"};function zw(n){return n.replace(/start|end/g,function(e){return GF[e]})}function hp(n){var e=Qn(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function fp(n){return eo(Ii(n)).left+hp(n).scrollLeft}function YF(n,e){var t=Qn(n),r=Ii(n),i=t.visualViewport,s=r.clientWidth,d=r.clientHeight,f=0,l=0;if(i){s=i.width,d=i.height;var m=s0();(m||!m&&e==="fixed")&&(f=i.offsetLeft,l=i.offsetTop)}return{width:s,height:d,x:f+fp(n),y:l}}function JF(n){var e,t=Ii(n),r=hp(n),i=(e=n.ownerDocument)==null?void 0:e.body,s=ts(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),d=ts(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),f=-r.scrollLeft+fp(n),l=-r.scrollTop;return dr(i||t).direction==="rtl"&&(f+=ts(t.clientWidth,i?i.clientWidth:0)-s),{width:s,height:d,x:f,y:l}}function dp(n){var e=dr(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function c0(n){return["html","body","#document"].indexOf(xr(n))>=0?n.ownerDocument.body:Dn(n)&&dp(n)?n:c0(vc(n))}function zo(n,e){var t;e===void 0&&(e=[]);var r=c0(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),s=Qn(r),d=i?[s].concat(s.visualViewport||[],dp(r)?r:[]):r,f=e.concat(d);return i?f:f.concat(zo(vc(d)))}function qf(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function KF(n,e){var t=eo(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function jw(n,e,t){return e===r0?qf(YF(n,t)):cs(e)?KF(e,t):qf(JF(Ii(n)))}function XF(n){var e=zo(vc(n)),t=["absolute","fixed"].indexOf(dr(n).position)>=0,r=t&&Dn(n)?Ia(n):n;return cs(r)?e.filter(function(i){return cs(i)&&o0(i,r)&&xr(i)!=="body"}):[]}function qF(n,e,t,r){var i=e==="clippingParents"?XF(n):[].concat(e),s=[].concat(i,[t]),d=s[0],f=s.reduce(function(l,m){var a=jw(n,m,r);return l.top=ts(a.top,l.top),l.right=cu(a.right,l.right),l.bottom=cu(a.bottom,l.bottom),l.left=ts(a.left,l.left),l},jw(n,d,r));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function h0(n){var e=n.reference,t=n.element,r=n.placement,i=r?fr(r):null,s=r?to(r):null,d=e.x+e.width/2-t.width/2,f=e.y+e.height/2-t.height/2,l;switch(i){case Sn:l={x:d,y:e.y-t.height};break;case qn:l={x:d,y:e.y+e.height};break;case Zn:l={x:e.x+e.width,y:f};break;case _n:l={x:e.x-t.width,y:f};break;default:l={x:e.x,y:e.y}}var m=i?cp(i):null;if(m!=null){var a=m==="y"?"height":"width";switch(s){case Zs:l[m]=l[m]-(e[a]/2-t[a]/2);break;case va:l[m]=l[m]+(e[a]/2-t[a]/2);break}}return l}function wa(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,s=t.strategy,d=s===void 0?n.strategy:s,f=t.boundary,l=f===void 0?wF:f,m=t.rootBoundary,a=m===void 0?r0:m,o=t.elementContext,u=o===void 0?Mo:o,p=t.altBoundary,v=p===void 0?!1:p,w=t.padding,b=w===void 0?0:w,_=l0(typeof b!="number"?b:u0(b,Na)),E=u===Mo?yF:Mo,$=n.rects.popper,x=n.elements[v?E:u],S=qF(cs(x)?x:x.contextElement||Ii(n.elements.popper),l,a,d),T=eo(n.elements.reference),M=h0({reference:T,element:$,strategy:"absolute",placement:i}),A=qf(Object.assign({},$,M)),R=u===Mo?A:T,y={top:S.top-R.top+_.top,bottom:R.bottom-S.bottom+_.bottom,left:S.left-R.left+_.left,right:R.right-S.right+_.right},k=n.modifiersData.offset;if(u===Mo&&k){var O=k[i];Object.keys(y).forEach(function(N){var I=[Zn,qn].indexOf(N)>=0?1:-1,P=[Sn,qn].indexOf(N)>=0?"y":"x";y[N]+=O[P]*I})}return y}function ZF(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,s=t.rootBoundary,d=t.padding,f=t.flipVariations,l=t.allowedAutoPlacements,m=l===void 0?i0:l,a=to(r),o=a?f?Uw:Uw.filter(function(v){return to(v)===a}):Na,u=o.filter(function(v){return m.indexOf(v)>=0});u.length===0&&(u=o,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=u.reduce(function(v,w){return v[w]=wa(n,{placement:w,boundary:i,rootBoundary:s,padding:d})[fr(w)],v},{});return Object.keys(p).sort(function(v,w){return p[v]-p[w]})}function QF(n){if(fr(n)===gc)return[];var e=Jl(n);return[zw(n),e,zw(e)]}function e2(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,s=i===void 0?!0:i,d=t.altAxis,f=d===void 0?!0:d,l=t.fallbackPlacements,m=t.padding,a=t.boundary,o=t.rootBoundary,u=t.altBoundary,p=t.flipVariations,v=p===void 0?!0:p,w=t.allowedAutoPlacements,b=e.options.placement,_=fr(b),E=_===b,$=l||(E||!v?[Jl(b)]:QF(b)),x=[b].concat($).reduce(function(ne,oe){return ne.concat(fr(oe)===gc?ZF(e,{placement:oe,boundary:a,rootBoundary:o,padding:m,flipVariations:v,allowedAutoPlacements:w}):oe)},[]),S=e.rects.reference,T=e.rects.popper,M=new Map,A=!0,R=x[0],y=0;y<x.length;y++){var k=x[y],O=fr(k),N=to(k)===Zs,I=[Sn,qn].indexOf(O)>=0,P=I?"width":"height",B=wa(e,{placement:k,boundary:a,rootBoundary:o,altBoundary:u,padding:m}),z=I?N?Zn:_n:N?qn:Sn;S[P]>T[P]&&(z=Jl(z));var j=Jl(z),J=[];if(s&&J.push(B[O]<=0),f&&J.push(B[z]<=0,B[j]<=0),J.every(function(ne){return ne})){R=k,A=!1;break}M.set(k,J)}if(A)for(var q=v?3:1,re=function(oe){var fe=x.find(function(we){var G=M.get(we);if(G)return G.slice(0,oe).every(function(pe){return pe})});if(fe)return R=fe,"break"},ie=q;ie>0;ie--){var Y=re(ie);if(Y==="break")break}e.placement!==R&&(e.modifiersData[r]._skip=!0,e.placement=R,e.reset=!0)}}const t2={name:"flip",enabled:!0,phase:"main",fn:e2,requiresIfExists:["offset"],data:{_skip:!1}};function Gw(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Yw(n){return[Sn,Zn,qn,_n].some(function(e){return n[e]>=0})}function n2(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,d=wa(e,{elementContext:"reference"}),f=wa(e,{altBoundary:!0}),l=Gw(d,r),m=Gw(f,i,s),a=Yw(l),o=Yw(m);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:m,isReferenceHidden:a,hasPopperEscaped:o},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":o})}const r2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:n2};function i2(n,e,t){var r=fr(n),i=[_n,Sn].indexOf(r)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,d=s[0],f=s[1];return d=d||0,f=(f||0)*i,[_n,Zn].indexOf(r)>=0?{x:f,y:d}:{x:d,y:f}}function s2(n){var e=n.state,t=n.options,r=n.name,i=t.offset,s=i===void 0?[0,0]:i,d=i0.reduce(function(a,o){return a[o]=i2(o,e.rects,s),a},{}),f=d[e.placement],l=f.x,m=f.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=m),e.modifiersData[r]=d}const o2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s2};function a2(n){var e=n.state,t=n.name;e.modifiersData[t]=h0({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const l2={name:"popperOffsets",enabled:!0,phase:"read",fn:a2,data:{}};function u2(n){return n==="x"?"y":"x"}function c2(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,s=i===void 0?!0:i,d=t.altAxis,f=d===void 0?!1:d,l=t.boundary,m=t.rootBoundary,a=t.altBoundary,o=t.padding,u=t.tether,p=u===void 0?!0:u,v=t.tetherOffset,w=v===void 0?0:v,b=wa(e,{boundary:l,rootBoundary:m,padding:o,altBoundary:a}),_=fr(e.placement),E=to(e.placement),$=!E,x=cp(_),S=u2(x),T=e.modifiersData.popperOffsets,M=e.rects.reference,A=e.rects.popper,R=typeof w=="function"?w(Object.assign({},e.rects,{placement:e.placement})):w,y=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,O={x:0,y:0};if(T){if(s){var N,I=x==="y"?Sn:_n,P=x==="y"?qn:Zn,B=x==="y"?"height":"width",z=T[x],j=z+b[I],J=z-b[P],q=p?-A[B]/2:0,re=E===Zs?M[B]:A[B],ie=E===Zs?-A[B]:-M[B],Y=e.elements.arrow,ne=p&&Y?up(Y):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:a0(),fe=oe[I],we=oe[P],G=Ho(0,M[B],ne[B]),pe=$?M[B]/2-q-G-fe-y.mainAxis:re-G-fe-y.mainAxis,me=$?-M[B]/2+q+G+we+y.mainAxis:ie+G+we+y.mainAxis,be=e.elements.arrow&&Ia(e.elements.arrow),$e=be?x==="y"?be.clientTop||0:be.clientLeft||0:0,H=(N=k?.[x])!=null?N:0,U=z+pe-H-$e,te=z+me-H,ve=Ho(p?cu(j,U):j,z,p?ts(J,te):J);T[x]=ve,O[x]=ve-z}if(f){var ke,Ne=x==="x"?Sn:_n,Tt=x==="x"?qn:Zn,gt=T[S],ae=S==="y"?"height":"width",ye=gt+b[Ne],ee=gt-b[Tt],le=[Sn,_n].indexOf(_)!==-1,xe=(ke=k?.[S])!=null?ke:0,Ie=le?ye:gt-M[ae]-A[ae]-xe+y.altAxis,ot=le?gt+M[ae]+A[ae]-xe-y.altAxis:ee,et=p&&le?NF(Ie,gt,ot):Ho(p?Ie:ye,gt,p?ot:ee);T[S]=et,O[S]=et-gt}e.modifiersData[r]=O}}const h2={name:"preventOverflow",enabled:!0,phase:"main",fn:c2,requiresIfExists:["offset"]};function f2(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function d2(n){return n===Qn(n)||!Dn(n)?hp(n):f2(n)}function p2(n){var e=n.getBoundingClientRect(),t=Qs(e.width)/n.offsetWidth||1,r=Qs(e.height)/n.offsetHeight||1;return t!==1||r!==1}function m2(n,e,t){t===void 0&&(t=!1);var r=Dn(e),i=Dn(e)&&p2(e),s=Ii(e),d=eo(n,i,t),f={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!t)&&((xr(e)!=="body"||dp(s))&&(f=d2(e)),Dn(e)?(l=eo(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=fp(s))),{x:d.left+f.scrollLeft-l.x,y:d.top+f.scrollTop-l.y,width:d.width,height:d.height}}function g2(n){var e=new Map,t=new Set,r=[];n.forEach(function(s){e.set(s.name,s)});function i(s){t.add(s.name);var d=[].concat(s.requires||[],s.requiresIfExists||[]);d.forEach(function(f){if(!t.has(f)){var l=e.get(f);l&&i(l)}}),r.push(s)}return n.forEach(function(s){t.has(s.name)||i(s)}),r}function v2(n){var e=g2(n);return Kf.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function w2(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function bi(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return[].concat(t).reduce(function(i,s){return i.replace(/%s/,s)},n)}var ji='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',y2='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Jw=["name","enabled","phase","fn","effect","requires","options"];function b2(n){n.forEach(function(e){[].concat(Object.keys(e),Jw).filter(function(t,r,i){return i.indexOf(t)===r}).forEach(function(t){switch(t){case"name":typeof e.name!="string"&&console.error(bi(ji,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(bi(ji,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Kf.indexOf(e.phase)<0&&console.error(bi(ji,e.name,'"phase"',"either "+Kf.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(bi(ji,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(bi(ji,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(bi(ji,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(bi(ji,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Jw.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+t+'" was provided.')}e.requires&&e.requires.forEach(function(r){n.find(function(i){return i.name===r})==null&&console.error(bi(y2,String(e.name),r,r))})})})}function S2(n,e){var t=new Set;return n.filter(function(r){var i=e(r);if(!t.has(i))return t.add(i),!0})}function _2(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var Kw="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",C2="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Xw={placement:"bottom",modifiers:[],strategy:"absolute"};function qw(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function E2(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,i=e.defaultOptions,s=i===void 0?Xw:i;return function(f,l,m){m===void 0&&(m=s);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xw,s),modifiersData:{},elements:{reference:f,popper:l},attributes:{},styles:{}},o=[],u=!1,p={state:a,setOptions:function(_){var E=typeof _=="function"?_(a.options):_;w(),a.options=Object.assign({},s,a.options,E),a.scrollParents={reference:cs(f)?zo(f):f.contextElement?zo(f.contextElement):[],popper:zo(l)};var $=v2(_2([].concat(r,a.options.modifiers)));if(a.orderedModifiers=$.filter(function(k){return k.enabled}),process.env.NODE_ENV!=="production"){var x=S2([].concat($,a.options.modifiers),function(k){var O=k.name;return O});if(b2(x),fr(a.options.placement)===gc){var S=a.orderedModifiers.find(function(k){var O=k.name;return O==="flip"});S||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var T=dr(l),M=T.marginTop,A=T.marginRight,R=T.marginBottom,y=T.marginLeft;[M,A,R,y].some(function(k){return parseFloat(k)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return v(),p.update()},forceUpdate:function(){if(!u){var _=a.elements,E=_.reference,$=_.popper;if(!qw(E,$)){process.env.NODE_ENV!=="production"&&console.error(Kw);return}a.rects={reference:m2(E,Ia($),a.options.strategy==="fixed"),popper:up($)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(k){return a.modifiersData[k.name]=Object.assign({},k.data)});for(var x=0,S=0;S<a.orderedModifiers.length;S++){if(process.env.NODE_ENV!=="production"&&(x+=1,x>100)){console.error(C2);break}if(a.reset===!0){a.reset=!1,S=-1;continue}var T=a.orderedModifiers[S],M=T.fn,A=T.options,R=A===void 0?{}:A,y=T.name;typeof M=="function"&&(a=M({state:a,options:R,name:y,instance:p})||a)}}},update:w2(function(){return new Promise(function(b){p.forceUpdate(),b(a)})}),destroy:function(){w(),u=!0}};if(!qw(f,l))return process.env.NODE_ENV!=="production"&&console.error(Kw),p;p.setOptions(m).then(function(b){!u&&m.onFirstUpdate&&m.onFirstUpdate(b)});function v(){a.orderedModifiers.forEach(function(b){var _=b.name,E=b.options,$=E===void 0?{}:E,x=b.effect;if(typeof x=="function"){var S=x({state:a,name:_,instance:p,options:$}),T=function(){};o.push(S||T)}})}function w(){o.forEach(function(b){return b()}),o=[]}return p}}var k2=[zF,l2,WF,LF,o2,t2,h2,BF,r2],wc=E2({defaultModifiers:k2});const x2={name:{type:String,default:"Field"},modelValue:null,mapOptions:{type:Boolean,default:!0},error:Boolean,errorMessage:String,label:String,hint:String,prefix:String,suffix:String,loading:Boolean,clearable:{type:Boolean,default:!0},disabled:Boolean,multiple:Boolean,options:{type:[Function,Array],default:()=>[]},optionValue:{type:[Function,String],default:"id"},optionLabel:{type:[Function,String],default:"title"},emitValue:{type:Boolean,default:!0},debounce:{type:[Number,String],default:500},placeholder:String,tooltip:String,required:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1}},A2={"update:modelValue":n=>!!n,search:n=>rs(n),close:()=>!0},T2=["innerHTML"],$2={class:"tw-flex tw-flex-auto tw-text-left tw-max-w-full"},O2={class:"tw-relative tw-flex tw-flex-auto tw-text-left tw-max-w-full"},L2={key:0,class:"tw-flex tw-items-center tw-flex-nowrap tw-pr-3"},M2={class:"tw-relative tw-flex tw-flex-auto tw-overflow-x-clip"},R2={class:"tw-truncate vc-select__field-wrapper tw-relative tw-box-border tw-border tw-border-solid tw-border-[color:var(--select-border-color)] tw-rounded-[var(--select-border-radius)] tw-bg-[color:var(--select-background-color)] tw-flex tw-flex-col tw-flex-nowrap tw-flex-auto tw-items-stretch"},N2={class:"tw-flex tw-flex-col tw-flex-nowrap tw-flex-auto tw-relative"},I2={class:"tw-flex tw-flex-nowrap tw-flex-auto tw-h-full tw-px-3"},D2={key:0,class:"tw-flex tw-items-center tw-flex-nowrap tw-pr-3"},P2={class:"tw-flex tw-flex-nowrap tw-flex-auto tw-h-full tw-truncate"},B2={key:0,class:"tw-flex tw-items-center tw-flex-wrap tw-pr-3 tw-pointer-events-none"},F2=["onClick"],V2={key:0,class:"tw-text-[#a5a5a5]"},U2={key:1,class:"tw-flex tw-flex-wrap tw-gap-1 tw-py-1"},W2={key:0,class:"tw-bg-[#fbfdfe] tw-border tw-border-solid tw-border-[color:#bdd1df] tw-rounded-[2px] tw-flex tw-items-center tw-h-[28px] tw-box-border tw-px-2"},H2={key:1,class:"tw-flex tw-items-center tw-flex-wrap tw-pl-3 tw-pointer-events-none"},z2={key:1,class:"tw-flex tw-items-center tw-flex-nowrap tw-pl-3"},j2={key:2,class:"tw-flex tw-items-center tw-flex-nowrap tw-pl-3 tw-text-[color:var(--select-clear-color)]"},G2={key:3,class:"tw-flex tw-items-center tw-flex-nowrap tw-pl-3"},Y2=["onClick"],J2={class:"tw-absolute tw-translate-y-full tw-left-0 tw-right-0 tw-bottom-0 tw-min-h-[20px]"},K2={key:0},X2={key:1},q2={key:1,class:"tw-flex tw-items-center tw-flex-nowrap tw-pl-3"},Z2={key:0,class:"tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center"},Q2=c.createElementVNode("span",{class:"tw-m-4 tw-text-xl tw-font-medium"},"No options",-1),eV=["onClick"],tV=c.defineComponent({__name:"vc-select",props:x2,emits:A2,setup(n,{emit:e}){const t=n,{modelValue:r,options:i}=c.toRefs(t),s=c.ref(!1),d=c.ref(),f=c.ref(),l=c.ref(),m=c.ref(),a=c.ref(),o=c.ref(),u=c.ref(!1),p=c.ref(),v=c.ref([]),w=c.ref([]),b=c.ref([]),_=c.ref();let E,$,x;u$(o,([{isIntersecting:G}])=>{G&&S()},{threshold:1,root:a.value?.component}),c.watch(r,async(G,pe)=>{if(G&&!pe){const me=w.value.filter(be=>t.modelValue&&Array.isArray(t.modelValue)?QB(w.value,t.modelValue):t.modelValue&&typeof t.modelValue=="object"?w.value.includes(t.modelValue):be[t.optionLabel]===t.modelValue);if(me&&me.length)v.value=me;else if(t.options&&typeof t.options=="function"){const be=await t.options(void 0,void 0,Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]);v.value=be.results.filter($e=>$e[t.optionValue]===t.modelValue)}else t.options&&Array.isArray(t.options)&&(v.value=t.options.filter(be=>be[t.optionValue]===t.modelValue))}},{immediate:!0}),c.watch(i,async()=>{if(t.options&&typeof t.options=="function")try{u.value=!0;const G=await t.options();w.value=G.results,_.value=G.totalCount}finally{u.value=!1}else t.options&&Array.isArray(t.options)&&(w.value=t.options)},{immediate:!0}),c.watch(()=>w.value,G=>{b.value=G},{immediate:!0,deep:!0});async function S(){if(t.options&&typeof t.options=="function")try{u.value=!0;const G=await t.options(p.value,w.value.length);w.value.push(...G.results)}finally{u.value=!1}}const T=c.computed(()=>w.value.length<_.value),M=c.computed(()=>I(t.optionValue,"value")),A=c.computed(()=>I(t.optionLabel,"label")),R=c.computed(()=>{const G=t.mapOptions===!0&&t.multiple!==!0,pe=t.modelValue!==void 0&&(t.modelValue!==null||G===!0)?t.multiple===!0&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions===!0&&Array.isArray(w.value)===!0){const me=t.mapOptions===!0&&x!==void 0?x:[],be=pe.map($e=>P($e,me));return t.modelValue===null&&G===!0?be.filter($e=>$e!==null):be}return pe});c.watch(R,G=>{x=G},{immediate:!0});const y=c.computed(()=>R.value.map((G,pe)=>({index:pe,opt:G,selected:!0,toggleOption:Y,removeAtIndex:j}))),k=c.computed(()=>B(R.value)),O=c.computed(()=>R.value.map(G=>M.value(G))),N=c.computed(()=>b.value.map((G,pe)=>({index:pe,opt:G,selected:J(G)===!0,label:A.value(G),toggleOption:Y})));function I(G,pe){const me=G!==void 0?G:pe;return typeof me=="function"?me:be=>be!==null&&typeof be=="object"&&me in be?be[me]:be}function P(G,pe){const me=be=>Io(M.value(be),G);return v.value.find(me)||w.value.find(me)||pe.find(me)||G}function B(G){return G!=null&&(""+G).length>0}function z(G){return t.emitValue===!0?A.value(G):M.value(G)}function j(G){if(G>-1&&G<R.value.length)if(t.multiple===!0){const pe=t.modelValue.slice();pe.splice(G,1),e("update:modelValue",pe)}else e("update:modelValue",null)}function J(G){const pe=M.value(G);return O.value.find(me=>Io(me,pe))!==void 0}function q(){s.value=!1,f.value?.destroy(),e("close"),re()}const re=async()=>{t.options&&typeof t.options=="function"?w.value=(await t.options()).results:w.value=t.options,p.value=void 0};async function ie(){t.disabled||(s.value?q():(s.value=!0,await c.nextTick(()=>{d?.value?.focus(),f.value=wc(l.value,m.value,{placement:"bottom",modifiers:[{name:"flip",options:{fallbackPlacements:["top","bottom"]}},{name:"preventOverflow",options:{mainAxis:!1}},{name:"sameWidthChangeBorders",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:G})=>{G.placement==="top"?(G.styles.popper.borderTop="1px solid var(--select-border-color)",G.styles.popper.borderBottom="1px solid var(--select-background-color)",G.styles.popper.borderRadius="var(--select-border-radius) var(--select-border-radius) 0 0"):(G.styles.popper.borderBottom="1px solid var(--select-border-color)",G.styles.popper.borderTop="1px solid var(--select-background-color)",G.styles.popper.borderRadius="0 0 var(--select-border-radius) var(--select-border-radius)"),G.styles.popper.width=`${G.rects.reference.width}px`},effect:({state:G})=>{const pe=G.elements.reference;G.placement==="top"?(G.elements.popper.style.borderTop="1px solid var(--select-border-color)",G.elements.popper.style.borderBottom="1px solid var(--select-background-color)",G.elements.popper.style.borderRadius="var(--select-border-radius) var(--select-border-radius) 0 0"):(G.elements.popper.style.borderBottom="1px solid var(--select-border-color)",G.elements.popper.style.borderTop="1px solid var(--select-background-color)",G.elements.popper.style.borderRadius="0 0 var(--select-border-radius) var(--select-border-radius)"),G.elements.popper.style.width=`${pe.offsetWidth}px`}},{name:"offset",options:{offset:[0,-2]}}]})})))}function Y(G){if(G===void 0)return;const pe=M.value(G);if(t.multiple!==!0){(R.value.length===0||Io(M.value(R.value[0]),pe)!==!0)&&(e("update:modelValue",t.emitValue===!0?pe:G),s.value=!1);return}if(R.value.length===0){const $e=t.emitValue===!0?pe:G;e("update:modelValue",t.multiple===!0?[$e]:$e);return}const me=t.modelValue.slice(),be=O.value.findIndex($e=>Io($e,pe));if(be>-1)me.splice(be,1);else{const $e=t.emitValue===!0?pe:G;me.push($e)}e("update:modelValue",me),s.value&&f.value.update()}async function ne(G){if(p.value=G,t.options&&typeof t.options=="function")try{u.value=!0,b.value=(await t.options(p.value)).results}finally{u.value=!1}else b.value=w.value.filter(pe=>pe[t.optionLabel].toLowerCase().includes(p.value.toLowerCase()))}function oe(G){if(!G||!G.target)return;const pe=G.target.value;fe(pe)}function fe(G){E=()=>{e("search",G),ne(G),E=void 0},t.debounce!==void 0?(clearTimeout($),$=setTimeout(E,+t.debounce)):E()}function we(){e("update:modelValue",null)}return(G,pe)=>{const me=c.resolveComponent("VcHint");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-select tw-box-border",{"vc-select_opened":s.value,"vc-select_error":G.error,"vc-select_disabled":G.disabled,"tw-pb-[20px]":G.error||G.hint}])},[G.label?(c.openBlock(),c.createBlock(c.unref(fs),{key:0,class:"tw-mb-2",required:G.required},c.createSlots({default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(G.label),1)]),_:2},[G.tooltip?{name:"tooltip",fn:c.withCtx(()=>[c.createElementVNode("span",{innerHTML:G.tooltip},null,8,T2)]),key:"0"}:void 0]),1032,["required"])):c.createCommentVNode("",!0),c.createElementVNode("div",{class:"tw-flex tw-flex-nowrap tw-items-start",ref_key:"dropdownToggleRef",ref:l},[c.createElementVNode("div",$2,[c.renderSlot(G.$slots,"control",{toggleHandler:ie},()=>[c.createElementVNode("div",O2,[G.$slots.prepend?(c.openBlock(),c.createElementBlock("div",L2,[c.renderSlot(G.$slots,"prepend")])):c.createCommentVNode("",!0),c.createElementVNode("div",M2,[c.createElementVNode("div",R2,[c.createElementVNode("div",N2,[c.createElementVNode("div",I2,[G.$slots["prepend-inner"]?(c.openBlock(),c.createElementBlock("div",D2,[c.renderSlot(G.$slots,"prepend-inner")])):c.createCommentVNode("",!0),c.createElementVNode("div",P2,[G.prefix?(c.openBlock(),c.createElementBlock("div",B2,c.toDisplayString(G.prefix),1)):c.createCommentVNode("",!0),c.createElementVNode("div",{class:"tw-w-full tw-appearance-none tw-border-none tw-outline-none tw-min-h-[var(--select-height)] tw-flex tw-items-center tw-w-full tw-box-border tw-box-border tw-cursor-pointer invalid:tw-text-[color:var(--select-placeholder-color)] tw-truncate",onClick:c.withModifiers(ie,["stop"])},[c.unref(k)?c.unref(y)&&c.unref(y).length&&c.unref(k)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[G.$slots["selected-item"]?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:0},c.renderList(c.unref(y),(be,$e)=>c.renderSlot(G.$slots,"selected-item",c.mergeProps(be,{key:$e}))),128)):(c.openBlock(),c.createElementBlock("div",U2,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(y),(be,$e)=>(c.openBlock(),c.createElementBlock("div",c.mergeProps(be,{key:$e,class:"tw-flex tw-items-center"}),[G.multiple?(c.openBlock(),c.createElementBlock("div",W2,[c.createElementVNode("span",null,c.toDisplayString(z(be.opt)),1),G.disabled?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(c.unref(Ye),{key:0,class:"tw-text-[#a9bfd2] tw-ml-2 tw-cursor-pointer hover:tw-text-[color:var(--select-clear-color-hover)]",icon:"fas fa-times",size:"s",onClick:c.withModifiers(H=>j(be.index),["stop"])},null,8,["onClick"]))])):G.multiple?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode(c.toDisplayString(z(be.opt)),1)],64))],16))),128))]))],64)):c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",V2,c.toDisplayString(G.placeholder),1))],8,F2),G.suffix?(c.openBlock(),c.createElementBlock("div",H2,c.toDisplayString(G.suffix),1)):c.createCommentVNode("",!0),G.clearable&&c.unref(k)&&!G.disabled?(c.openBlock(),c.createElementBlock("div",{key:2,class:"tw-cursor-pointer tw-flex tw-items-center tw-pl-3 tw-text-[color:var(--select-clear-color)] hover:tw-text-[color:var(--select-clear-color-hover)]",onClick:we},[c.createVNode(c.unref(Ye),{size:"s",icon:"fas fa-times"})])):c.createCommentVNode("",!0)]),G.$slots["append-inner"]?(c.openBlock(),c.createElementBlock("div",z2,[c.renderSlot(G.$slots,"append-inner")])):c.createCommentVNode("",!0),G.loading||u.value?(c.openBlock(),c.createElementBlock("div",j2,[c.createVNode(c.unref(Ye),{icon:"fas fa-spinner tw-animate-spin",size:"m"})])):c.createCommentVNode("",!0),G.disabled?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",G2,[c.createElementVNode("div",{class:"vc-select__chevron tw-cursor-pointer tw-flex-nowrap tw-text-[color:var(--select-chevron-color)] hover:tw-text-[color:var(--select-chevron-color-hover)]",onClick:c.withModifiers(ie,["stop"])},[c.createVNode(c.unref(Ye),{size:"s",icon:"fas fa-chevron-down"})],8,Y2)]))])])]),c.createElementVNode("div",J2,[c.createVNode(c.Transition,{name:"slide-up",mode:"out-in"},{default:c.withCtx(()=>[G.error?(c.openBlock(),c.createElementBlock("div",K2,[c.renderSlot(G.$slots,"error",{},()=>[G.errorMessage?(c.openBlock(),c.createBlock(me,{key:0,class:"tw-mt-1 tw-text-[color:var(--select-border-color-error)]"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(G.errorMessage),1)]),_:1})):c.createCommentVNode("",!0)])])):(c.openBlock(),c.createElementBlock("div",X2,[c.renderSlot(G.$slots,"hint",{},()=>[G.hint?(c.openBlock(),c.createBlock(me,{key:0,class:"tw-text-[color:var(--select-placeholder-color)] tw-mt-1 tw-break-words tw-p-0"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(G.hint),1)]),_:1})):c.createCommentVNode("",!0)])]))]),_:3})])]),G.$slots.append?(c.openBlock(),c.createElementBlock("div",q2,[c.renderSlot(G.$slots,"append")])):c.createCommentVNode("",!0)])])]),s.value?c.withDirectives((c.openBlock(),c.createElementBlock("div",{key:0,class:"tw-flex tw-flex-col tw-box-border tw-max-h-[300px] tw-h-auto tw-z-10 tw-overflow-hidden tw-absolute tw-bg-[color:var(--select-background-color)] tw-border tw-border-solid tw-border-[color:var(--select-border-color)] tw-border-t-[color:var(--select-background-color)] tw-rounded-b-[var(--select-border-radius)] tw-p-2",ref_key:"dropdownRef",ref:m},[G.searchable?(c.openBlock(),c.createElementBlock("input",{key:0,ref_key:"searchRef",ref:d,class:"tw-w-full tw-box-border tw-border tw-border-solid tw-border-[#eaecf2] tw-rounded-[4px] tw-h-[32px] tw-leading-[32px] tw-outline-none tw-mb-3 tw-px-2",onInput:oe},null,544)):c.createCommentVNode("",!0),c.createVNode(c.unref(io),{"no-padding":!0,ref_key:"root",ref:a},{default:c.withCtx(()=>[w.value&&w.value.length?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:1},c.renderList(c.unref(N),(be,$e)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["tw-flex tw-items-center tw-min-h-[36px] tw-my-1 tw-box-border tw-px-2 tw-rounded-[3px] tw-cursor-pointer hover:tw-bg-[#eff7fc]",{"tw-bg-[#eff7fc]":be.selected}]),key:$e,onClick:H=>be.toggleOption(be.opt)},[c.renderSlot(G.$slots,"option",c.normalizeProps(c.guardReactiveProps(be)),()=>[c.createTextVNode(c.toDisplayString(be.label),1)])],10,eV))),128)):(c.openBlock(),c.createElementBlock("div",Z2,[c.renderSlot(G.$slots,"no-options",{},()=>[Q2])])),c.unref(T)?(c.openBlock(),c.createElementBlock("span",{key:2,ref_key:"el",ref:o},null,512)):c.createCommentVNode("",!0)]),_:3},512)])),[[c.unref(mc),q]]):c.createCommentVNode("",!0)],512)],2)}}});const f0=tV;function Zw(n){return n!==null&&typeof n=="object"&&"constructor"in n&&n.constructor===Object}function pp(n,e){n===void 0&&(n={}),e===void 0&&(e={}),Object.keys(e).forEach(function(t){typeof n[t]>"u"?n[t]=e[t]:Zw(e[t])&&Zw(n[t])&&Object.keys(e[t]).length>0&&pp(n[t],e[t])})}var d0={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Cn(){var n=typeof document<"u"?document:{};return pp(n,d0),n}var nV={document:d0,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(n){return typeof setTimeout>"u"?(n(),null):setTimeout(n,0)},cancelAnimationFrame:function(n){typeof setTimeout>"u"||clearTimeout(n)}};function jt(){var n=typeof window<"u"?window:{};return pp(n,nV),n}function rV(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}function Zf(n){return Zf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Zf(n)}function hu(n,e){return hu=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},hu(n,e)}function iV(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Kl(n,e,t){return iV()?Kl=Reflect.construct:Kl=function(i,s,d){var f=[null];f.push.apply(f,s);var l=Function.bind.apply(i,f),m=new l;return d&&hu(m,d.prototype),m},Kl.apply(null,arguments)}function sV(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function Qf(n){var e=typeof Map=="function"?new Map:void 0;return Qf=function(r){if(r===null||!sV(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Kl(r,arguments,Zf(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),hu(i,r)},Qf(n)}function oV(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function aV(n){var e=n.__proto__;Object.defineProperty(n,"__proto__",{get:function(){return e},set:function(r){e.__proto__=r}})}var Ei=function(n){rV(e,n);function e(t){var r;return r=n.call.apply(n,[this].concat(t))||this,aV(oV(r)),r}return e}(Qf(Array));function Da(n){n===void 0&&(n=[]);var e=[];return n.forEach(function(t){Array.isArray(t)?e.push.apply(e,Da(t)):e.push(t)}),e}function p0(n,e){return Array.prototype.filter.call(n,e)}function lV(n){for(var e=[],t=0;t<n.length;t+=1)e.indexOf(n[t])===-1&&e.push(n[t]);return e}function uV(n,e){if(typeof n!="string")return[n];for(var t=[],r=e.querySelectorAll(n),i=0;i<r.length;i+=1)t.push(r[i]);return t}function Oe(n,e){var t=jt(),r=Cn(),i=[];if(!e&&n instanceof Ei)return n;if(!n)return new Ei(i);if(typeof n=="string"){var s=n.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){var d="div";s.indexOf("<li")===0&&(d="ul"),s.indexOf("<tr")===0&&(d="tbody"),(s.indexOf("<td")===0||s.indexOf("<th")===0)&&(d="tr"),s.indexOf("<tbody")===0&&(d="table"),s.indexOf("<option")===0&&(d="select");var f=r.createElement(d);f.innerHTML=s;for(var l=0;l<f.childNodes.length;l+=1)i.push(f.childNodes[l])}else i=uV(n.trim(),e||r)}else if(n.nodeType||n===t||n===r)i.push(n);else if(Array.isArray(n)){if(n instanceof Ei)return n;i=n}return new Ei(lV(i))}Oe.fn=Ei.prototype;function cV(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=Da(e.map(function(i){return i.split(" ")}));return this.forEach(function(i){var s;(s=i.classList).add.apply(s,r)}),this}function hV(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=Da(e.map(function(i){return i.split(" ")}));return this.forEach(function(i){var s;(s=i.classList).remove.apply(s,r)}),this}function fV(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=Da(e.map(function(i){return i.split(" ")}));this.forEach(function(i){r.forEach(function(s){i.classList.toggle(s)})})}function dV(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=Da(e.map(function(i){return i.split(" ")}));return p0(this,function(i){return r.filter(function(s){return i.classList.contains(s)}).length>0}).length>0}function pV(n,e){if(arguments.length===1&&typeof n=="string")return this[0]?this[0].getAttribute(n):void 0;for(var t=0;t<this.length;t+=1)if(arguments.length===2)this[t].setAttribute(n,e);else for(var r in n)this[t][r]=n[r],this[t].setAttribute(r,n[r]);return this}function mV(n){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(n);return this}function gV(n){for(var e=0;e<this.length;e+=1)this[e].style.transform=n;return this}function vV(n){for(var e=0;e<this.length;e+=1)this[e].style.transitionDuration=typeof n!="string"?n+"ms":n;return this}function wV(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=e[0],i=e[1],s=e[2],d=e[3];typeof e[1]=="function"&&(r=e[0],s=e[1],d=e[2],i=void 0),d||(d=!1);function f(w){var b=w.target;if(b){var _=w.target.dom7EventData||[];if(_.indexOf(w)<0&&_.unshift(w),Oe(b).is(i))s.apply(b,_);else for(var E=Oe(b).parents(),$=0;$<E.length;$+=1)Oe(E[$]).is(i)&&s.apply(E[$],_)}}function l(w){var b=w&&w.target?w.target.dom7EventData||[]:[];b.indexOf(w)<0&&b.unshift(w),s.apply(this,b)}for(var m=r.split(" "),a,o=0;o<this.length;o+=1){var u=this[o];if(i)for(a=0;a<m.length;a+=1){var v=m[a];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[v]||(u.dom7LiveListeners[v]=[]),u.dom7LiveListeners[v].push({listener:s,proxyListener:f}),u.addEventListener(v,f,d)}else for(a=0;a<m.length;a+=1){var p=m[a];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[p]||(u.dom7Listeners[p]=[]),u.dom7Listeners[p].push({listener:s,proxyListener:l}),u.addEventListener(p,l,d)}}return this}function yV(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=e[0],i=e[1],s=e[2],d=e[3];typeof e[1]=="function"&&(r=e[0],s=e[1],d=e[2],i=void 0),d||(d=!1);for(var f=r.split(" "),l=0;l<f.length;l+=1)for(var m=f[l],a=0;a<this.length;a+=1){var o=this[a],u=void 0;if(!i&&o.dom7Listeners?u=o.dom7Listeners[m]:i&&o.dom7LiveListeners&&(u=o.dom7LiveListeners[m]),u&&u.length)for(var p=u.length-1;p>=0;p-=1){var v=u[p];s&&v.listener===s||s&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===s?(o.removeEventListener(m,v.proxyListener,d),u.splice(p,1)):s||(o.removeEventListener(m,v.proxyListener,d),u.splice(p,1))}}return this}function bV(){for(var n=jt(),e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i=t[0].split(" "),s=t[1],d=0;d<i.length;d+=1)for(var f=i[d],l=0;l<this.length;l+=1){var m=this[l];if(n.CustomEvent){var a=new n.CustomEvent(f,{detail:s,bubbles:!0,cancelable:!0});m.dom7EventData=t.filter(function(o,u){return u>0}),m.dispatchEvent(a),m.dom7EventData=[],delete m.dom7EventData}}return this}function SV(n){var e=this;function t(r){r.target===this&&(n.call(this,r),e.off("transitionend",t))}return n&&e.on("transitionend",t),this}function _V(n){if(this.length>0){if(n){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function CV(n){if(this.length>0){if(n){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function EV(){if(this.length>0){var n=jt(),e=Cn(),t=this[0],r=t.getBoundingClientRect(),i=e.body,s=t.clientTop||i.clientTop||0,d=t.clientLeft||i.clientLeft||0,f=t===n?n.scrollY:t.scrollTop,l=t===n?n.scrollX:t.scrollLeft;return{top:r.top+f-s,left:r.left+l-d}}return null}function kV(){var n=jt();return this[0]?n.getComputedStyle(this[0],null):{}}function xV(n,e){var t=jt(),r;if(arguments.length===1)if(typeof n=="string"){if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(n)}else{for(r=0;r<this.length;r+=1)for(var i in n)this[r].style[i]=n[i];return this}if(arguments.length===2&&typeof n=="string"){for(r=0;r<this.length;r+=1)this[r].style[n]=e;return this}return this}function AV(n){return n?(this.forEach(function(e,t){n.apply(e,[e,t])}),this):this}function TV(n){var e=p0(this,n);return Oe(e)}function $V(n){if(typeof n>"u")return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=n;return this}function OV(n){if(typeof n>"u")return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=n;return this}function LV(n){var e=jt(),t=Cn(),r=this[0],i,s;if(!r||typeof n>"u")return!1;if(typeof n=="string"){if(r.matches)return r.matches(n);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(n);if(r.msMatchesSelector)return r.msMatchesSelector(n);for(i=Oe(n),s=0;s<i.length;s+=1)if(i[s]===r)return!0;return!1}if(n===t)return r===t;if(n===e)return r===e;if(n.nodeType||n instanceof Ei){for(i=n.nodeType?[n]:n,s=0;s<i.length;s+=1)if(i[s]===r)return!0;return!1}return!1}function MV(){var n=this[0],e;if(n){for(e=0;(n=n.previousSibling)!==null;)n.nodeType===1&&(e+=1);return e}}function RV(n){if(typeof n>"u")return this;var e=this.length;if(n>e-1)return Oe([]);if(n<0){var t=e+n;return t<0?Oe([]):Oe([this[t]])}return Oe([this[n]])}function NV(){for(var n,e=Cn(),t=0;t<arguments.length;t+=1){n=t<0||arguments.length<=t?void 0:arguments[t];for(var r=0;r<this.length;r+=1)if(typeof n=="string"){var i=e.createElement("div");for(i.innerHTML=n;i.firstChild;)this[r].appendChild(i.firstChild)}else if(n instanceof Ei)for(var s=0;s<n.length;s+=1)this[r].appendChild(n[s]);else this[r].appendChild(n)}return this}function IV(n){var e=Cn(),t,r;for(t=0;t<this.length;t+=1)if(typeof n=="string"){var i=e.createElement("div");for(i.innerHTML=n,r=i.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(i.childNodes[r],this[t].childNodes[0])}else if(n instanceof Ei)for(r=0;r<n.length;r+=1)this[t].insertBefore(n[r],this[t].childNodes[0]);else this[t].insertBefore(n,this[t].childNodes[0]);return this}function DV(n){return this.length>0?n?this[0].nextElementSibling&&Oe(this[0].nextElementSibling).is(n)?Oe([this[0].nextElementSibling]):Oe([]):this[0].nextElementSibling?Oe([this[0].nextElementSibling]):Oe([]):Oe([])}function PV(n){var e=[],t=this[0];if(!t)return Oe([]);for(;t.nextElementSibling;){var r=t.nextElementSibling;n?Oe(r).is(n)&&e.push(r):e.push(r),t=r}return Oe(e)}function BV(n){if(this.length>0){var e=this[0];return n?e.previousElementSibling&&Oe(e.previousElementSibling).is(n)?Oe([e.previousElementSibling]):Oe([]):e.previousElementSibling?Oe([e.previousElementSibling]):Oe([])}return Oe([])}function FV(n){var e=[],t=this[0];if(!t)return Oe([]);for(;t.previousElementSibling;){var r=t.previousElementSibling;n?Oe(r).is(n)&&e.push(r):e.push(r),t=r}return Oe(e)}function VV(n){for(var e=[],t=0;t<this.length;t+=1)this[t].parentNode!==null&&(n?Oe(this[t].parentNode).is(n)&&e.push(this[t].parentNode):e.push(this[t].parentNode));return Oe(e)}function UV(n){for(var e=[],t=0;t<this.length;t+=1)for(var r=this[t].parentNode;r;)n?Oe(r).is(n)&&e.push(r):e.push(r),r=r.parentNode;return Oe(e)}function WV(n){var e=this;return typeof n>"u"?Oe([]):(e.is(n)||(e=e.parents(n).eq(0)),e)}function HV(n){for(var e=[],t=0;t<this.length;t+=1)for(var r=this[t].querySelectorAll(n),i=0;i<r.length;i+=1)e.push(r[i]);return Oe(e)}function zV(n){for(var e=[],t=0;t<this.length;t+=1)for(var r=this[t].children,i=0;i<r.length;i+=1)(!n||Oe(r[i]).is(n))&&e.push(r[i]);return Oe(e)}function jV(){for(var n=0;n<this.length;n+=1)this[n].parentNode&&this[n].parentNode.removeChild(this[n]);return this}var Qw={addClass:cV,removeClass:hV,hasClass:dV,toggleClass:fV,attr:pV,removeAttr:mV,transform:gV,transition:vV,on:wV,off:yV,trigger:bV,transitionEnd:SV,outerWidth:_V,outerHeight:CV,styles:kV,offset:EV,css:xV,each:AV,html:$V,text:OV,is:LV,index:MV,eq:RV,append:NV,prepend:IV,next:DV,nextAll:PV,prev:BV,prevAll:FV,parent:VV,parents:UV,closest:WV,find:HV,children:zV,filter:TV,remove:jV};Object.keys(Qw).forEach(function(n){Object.defineProperty(Oe.fn,n,{value:Qw[n],writable:!0})});function GV(n){var e=n;Object.keys(e).forEach(function(t){try{e[t]=null}catch{}try{delete e[t]}catch{}})}function ed(n,e){return e===void 0&&(e=0),setTimeout(n,e)}function $i(){return Date.now()}function YV(n){var e=jt(),t;return e.getComputedStyle&&(t=e.getComputedStyle(n,null)),!t&&n.currentStyle&&(t=n.currentStyle),t||(t=n.style),t}function JV(n,e){e===void 0&&(e="x");var t=jt(),r,i,s,d=YV(n);return t.WebKitCSSMatrix?(i=d.transform||d.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(function(f){return f.replace(",",".")}).join(", ")),s=new t.WebKitCSSMatrix(i==="none"?"":i)):(s=d.MozTransform||d.OTransform||d.MsTransform||d.msTransform||d.transform||d.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?i=s.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),e==="y"&&(t.WebKitCSSMatrix?i=s.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function Do(n){return typeof n=="object"&&n!==null&&n.constructor&&Object.prototype.toString.call(n).slice(8,-1)==="Object"}function KV(n){return typeof window<"u"&&typeof window.HTMLElement<"u"?n instanceof HTMLElement:n&&(n.nodeType===1||n.nodeType===11)}function Mt(){for(var n=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"],t=1;t<arguments.length;t+=1){var r=t<0||arguments.length<=t?void 0:arguments[t];if(r!=null&&!KV(r))for(var i=Object.keys(Object(r)).filter(function(m){return e.indexOf(m)<0}),s=0,d=i.length;s<d;s+=1){var f=i[s],l=Object.getOwnPropertyDescriptor(r,f);l!==void 0&&l.enumerable&&(Do(n[f])&&Do(r[f])?r[f].__swiper__?n[f]=r[f]:Mt(n[f],r[f]):!Do(n[f])&&Do(r[f])?(n[f]={},r[f].__swiper__?n[f]=r[f]:Mt(n[f],r[f])):n[f]=r[f])}}return n}function m0(n,e){Object.keys(e).forEach(function(t){Do(e[t])&&Object.keys(e[t]).forEach(function(r){typeof e[t][r]=="function"&&(e[t][r]=e[t][r].bind(n))}),n[t]=e[t]})}function XV(n,e,t,r){var i=Cn();return t&&Object.keys(r).forEach(function(s){if(!e[s]&&e.auto===!0){var d=i.createElement("div");d.className=r[s],n.append(d),e[s]=d}}),e}var af;function qV(){var n=jt(),e=Cn();return{touch:!!("ontouchstart"in n||n.DocumentTouch&&e instanceof n.DocumentTouch),pointerEvents:!!n.PointerEvent&&"maxTouchPoints"in n.navigator&&n.navigator.maxTouchPoints>=0,observer:function(){return"MutationObserver"in n||"WebkitMutationObserver"in n}(),passiveListener:function(){var r=!1;try{var i=Object.defineProperty({},"passive",{get:function(){r=!0}});n.addEventListener("testPassiveListener",null,i)}catch{}return r}(),gestures:function(){return"ongesturestart"in n}()}}function g0(){return af||(af=qV()),af}var lf;function ZV(n){var e=n===void 0?{}:n,t=e.userAgent,r=g0(),i=jt(),s=i.navigator.platform,d=t||i.navigator.userAgent,f={ios:!1,android:!1},l=i.screen.width,m=i.screen.height,a=d.match(/(Android);?[\s\/]+([\d.]+)?/),o=d.match(/(iPad).*OS\s([\d_]+)/),u=d.match(/(iPod)(.*OS\s([\d_]+))?/),p=!o&&d.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=s==="Win32",w=s==="MacIntel",b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!o&&w&&r.touch&&b.indexOf(l+"x"+m)>=0&&(o=d.match(/(Version)\/([\d.]+)/),o||(o=[0,1,"13_0_0"]),w=!1),a&&!v&&(f.os="android",f.android=!0),(o||p||u)&&(f.os="ios",f.ios=!0),f}function QV(n){return n===void 0&&(n={}),lf||(lf=ZV(n)),lf}var uf;function eU(){var n=jt();function e(){var t=n.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isEdge:!!n.navigator.userAgent.match(/Edge/g),isSafari:e(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(n.navigator.userAgent)}}function tU(){return uf||(uf=eU()),uf}var nU=function(){var e=jt();return typeof e.ResizeObserver<"u"};const rU={name:"resize",create:function(){var e=this;Mt(e,{resize:{observer:null,createObserver:function(){!e||e.destroyed||!e.initialized||(e.resize.observer=new ResizeObserver(function(r){var i=e.width,s=e.height,d=i,f=s;r.forEach(function(l){var m=l.contentBoxSize,a=l.contentRect,o=l.target;o&&o!==e.el||(d=a?a.width:(m[0]||m).inlineSize,f=a?a.height:(m[0]||m).blockSize)}),(d!==i||f!==s)&&e.resize.resizeHandler()}),e.resize.observer.observe(e.el))},removeObserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizeHandler:function(){!e||e.destroyed||!e.initialized||(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){!e||e.destroyed||!e.initialized||e.emit("orientationchange")}}})},on:{init:function(e){var t=jt();if(e.params.resizeObserver&&nU()){e.resize.createObserver();return}t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(e){var t=jt();e.resize.removeObserver(),t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function td(){return td=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},td.apply(this,arguments)}var iU={attach:function(e,t){t===void 0&&(t={});var r=jt(),i=this,s=r.MutationObserver||r.WebkitMutationObserver,d=new s(function(f){if(f.length===1){i.emit("observerUpdate",f[0]);return}var l=function(){i.emit("observerUpdate",f[0])};r.requestAnimationFrame?r.requestAnimationFrame(l):r.setTimeout(l,0)});d.observe(e,{attributes:typeof t.attributes>"u"?!0:t.attributes,childList:typeof t.childList>"u"?!0:t.childList,characterData:typeof t.characterData>"u"?!0:t.characterData}),i.observer.observers.push(d)},init:function(){var e=this;if(!(!e.support.observer||!e.params.observer)){if(e.params.observeParents)for(var t=e.$el.parents(),r=0;r<t.length;r+=1)e.observer.attach(t[r]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){var e=this;e.observer.observers.forEach(function(t){t.disconnect()}),e.observer.observers=[]}};const sU={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;m0(e,{observer:td({},iU,{observers:[]})})},on:{init:function(e){e.observer.init()},destroy:function(e){e.observer.destroy()}}},oU={useParams:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(r){var i=t.modules[r];i.params&&Mt(e,i.params)})},useModules:function(e){e===void 0&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(r){var i=t.modules[r],s=e[r]||{};i.on&&t.on&&Object.keys(i.on).forEach(function(d){t.on(d,i.on[d])}),i.create&&i.create.bind(t)(s)})}},aU={on:function(e,t,r){var i=this;if(typeof t!="function")return i;var s=r?"unshift":"push";return e.split(" ").forEach(function(d){i.eventsListeners[d]||(i.eventsListeners[d]=[]),i.eventsListeners[d][s](t)}),i},once:function(e,t,r){var i=this;if(typeof t!="function")return i;function s(){i.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var d=arguments.length,f=new Array(d),l=0;l<d;l++)f[l]=arguments[l];t.apply(i,f)}return s.__emitterProxy=t,i.on(e,s,r)},onAny:function(e,t){var r=this;if(typeof e!="function")return r;var i=t?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[i](e),r},offAny:function(e){var t=this;if(!t.eventsAnyListeners)return t;var r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off:function(e,t){var r=this;return r.eventsListeners&&e.split(" ").forEach(function(i){typeof t>"u"?r.eventsListeners[i]=[]:r.eventsListeners[i]&&r.eventsListeners[i].forEach(function(s,d){(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&r.eventsListeners[i].splice(d,1)})}),r},emit:function(){var e=this;if(!e.eventsListeners)return e;for(var t,r,i,s=arguments.length,d=new Array(s),f=0;f<s;f++)d[f]=arguments[f];typeof d[0]=="string"||Array.isArray(d[0])?(t=d[0],r=d.slice(1,d.length),i=e):(t=d[0].events,r=d[0].data,i=d[0].context||e),r.unshift(i);var l=Array.isArray(t)?t:t.split(" ");return l.forEach(function(m){e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(function(a){a.apply(i,[m].concat(r))}),e.eventsListeners&&e.eventsListeners[m]&&e.eventsListeners[m].forEach(function(a){a.apply(i,r)})}),e}};function lU(){var n=this,e,t,r=n.$el;typeof n.params.width<"u"&&n.params.width!==null?e=n.params.width:e=r[0].clientWidth,typeof n.params.height<"u"&&n.params.height!==null?t=n.params.height:t=r[0].clientHeight,!(e===0&&n.isHorizontal()||t===0&&n.isVertical())&&(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),t=t-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Mt(n,{width:e,height:t,size:n.isHorizontal()?e:t}))}function uU(){var n=this;function e(xe){return n.isHorizontal()?xe:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[xe]}function t(xe,Ie){return parseFloat(xe.getPropertyValue(e(Ie))||0)}var r=n.params,i=n.$wrapperEl,s=n.size,d=n.rtlTranslate,f=n.wrongRTL,l=n.virtual&&r.virtual.enabled,m=l?n.virtual.slides.length:n.slides.length,a=i.children("."+n.params.slideClass),o=l?n.virtual.slides.length:a.length,u=[],p=[],v=[],w=r.slidesOffsetBefore;typeof w=="function"&&(w=r.slidesOffsetBefore.call(n));var b=r.slidesOffsetAfter;typeof b=="function"&&(b=r.slidesOffsetAfter.call(n));var _=n.snapGrid.length,E=n.slidesGrid.length,$=r.spaceBetween,x=-w,S=0,T=0;if(!(typeof s>"u")){typeof $=="string"&&$.indexOf("%")>=0&&($=parseFloat($.replace("%",""))/100*s),n.virtualSize=-$,d?a.css({marginLeft:"",marginBottom:"",marginTop:""}):a.css({marginRight:"",marginBottom:"",marginTop:""});var M;r.slidesPerColumn>1&&(Math.floor(o/r.slidesPerColumn)===o/n.params.slidesPerColumn?M=o:M=Math.ceil(o/r.slidesPerColumn)*r.slidesPerColumn,r.slidesPerView!=="auto"&&r.slidesPerColumnFill==="row"&&(M=Math.max(M,r.slidesPerView*r.slidesPerColumn)));for(var A,R=r.slidesPerColumn,y=M/R,k=Math.floor(o/r.slidesPerColumn),O=0;O<o;O+=1){A=0;var N=a.eq(O);if(r.slidesPerColumn>1){var I=void 0,P=void 0,B=void 0;if(r.slidesPerColumnFill==="row"&&r.slidesPerGroup>1){var z=Math.floor(O/(r.slidesPerGroup*r.slidesPerColumn)),j=O-r.slidesPerColumn*r.slidesPerGroup*z,J=z===0?r.slidesPerGroup:Math.min(Math.ceil((o-z*R*r.slidesPerGroup)/R),r.slidesPerGroup);B=Math.floor(j/J),P=j-B*J+z*r.slidesPerGroup,I=P+B*M/R,N.css({"-webkit-box-ordinal-group":I,"-moz-box-ordinal-group":I,"-ms-flex-order":I,"-webkit-order":I,order:I})}else r.slidesPerColumnFill==="column"?(P=Math.floor(O/R),B=O-P*R,(P>k||P===k&&B===R-1)&&(B+=1,B>=R&&(B=0,P+=1))):(B=Math.floor(O/y),P=O-B*y);N.css(e("margin-top"),B!==0?r.spaceBetween&&r.spaceBetween+"px":"")}if(N.css("display")!=="none"){if(r.slidesPerView==="auto"){var q=getComputedStyle(N[0]),re=N[0].style.transform,ie=N[0].style.webkitTransform;if(re&&(N[0].style.transform="none"),ie&&(N[0].style.webkitTransform="none"),r.roundLengths)A=n.isHorizontal()?N.outerWidth(!0):N.outerHeight(!0);else{var Y=t(q,"width"),ne=t(q,"padding-left"),oe=t(q,"padding-right"),fe=t(q,"margin-left"),we=t(q,"margin-right"),G=q.getPropertyValue("box-sizing");if(G&&G==="border-box")A=Y+fe+we;else{var pe=N[0],me=pe.clientWidth,be=pe.offsetWidth;A=Y+ne+oe+fe+we+(be-me)}}re&&(N[0].style.transform=re),ie&&(N[0].style.webkitTransform=ie),r.roundLengths&&(A=Math.floor(A))}else A=(s-(r.slidesPerView-1)*$)/r.slidesPerView,r.roundLengths&&(A=Math.floor(A)),a[O]&&(a[O].style[e("width")]=A+"px");a[O]&&(a[O].swiperSlideSize=A),v.push(A),r.centeredSlides?(x=x+A/2+S/2+$,S===0&&O!==0&&(x=x-s/2-$),O===0&&(x=x-s/2-$),Math.abs(x)<1/1e3&&(x=0),r.roundLengths&&(x=Math.floor(x)),T%r.slidesPerGroup===0&&u.push(x),p.push(x)):(r.roundLengths&&(x=Math.floor(x)),(T-Math.min(n.params.slidesPerGroupSkip,T))%n.params.slidesPerGroup===0&&u.push(x),p.push(x),x=x+A+$),n.virtualSize+=A+$,S=A,T+=1}}n.virtualSize=Math.max(n.virtualSize,s)+b;var $e;if(d&&f&&(r.effect==="slide"||r.effect==="coverflow")&&i.css({width:n.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize){var H;i.css((H={},H[e("width")]=n.virtualSize+r.spaceBetween+"px",H))}if(r.slidesPerColumn>1){var U;if(n.virtualSize=(A+r.spaceBetween)*M,n.virtualSize=Math.ceil(n.virtualSize/r.slidesPerColumn)-r.spaceBetween,i.css((U={},U[e("width")]=n.virtualSize+r.spaceBetween+"px",U)),r.centeredSlides){$e=[];for(var te=0;te<u.length;te+=1){var ve=u[te];r.roundLengths&&(ve=Math.floor(ve)),u[te]<n.virtualSize+u[0]&&$e.push(ve)}u=$e}}if(!r.centeredSlides){$e=[];for(var ke=0;ke<u.length;ke+=1){var Ne=u[ke];r.roundLengths&&(Ne=Math.floor(Ne)),u[ke]<=n.virtualSize-s&&$e.push(Ne)}u=$e,Math.floor(n.virtualSize-s)-Math.floor(u[u.length-1])>1&&u.push(n.virtualSize-s)}if(u.length===0&&(u=[0]),r.spaceBetween!==0){var Tt,gt=n.isHorizontal()&&d?"marginLeft":e("marginRight");a.filter(function(xe,Ie){return r.cssMode?Ie!==a.length-1:!0}).css((Tt={},Tt[gt]=$+"px",Tt))}if(r.centeredSlides&&r.centeredSlidesBounds){var ae=0;v.forEach(function(xe){ae+=xe+(r.spaceBetween?r.spaceBetween:0)}),ae-=r.spaceBetween;var ye=ae-s;u=u.map(function(xe){return xe<0?-w:xe>ye?ye+b:xe})}if(r.centerInsufficientSlides){var ee=0;if(v.forEach(function(xe){ee+=xe+(r.spaceBetween?r.spaceBetween:0)}),ee-=r.spaceBetween,ee<s){var le=(s-ee)/2;u.forEach(function(xe,Ie){u[Ie]=xe-le}),p.forEach(function(xe,Ie){p[Ie]=xe+le})}}Mt(n,{slides:a,snapGrid:u,slidesGrid:p,slidesSizesGrid:v}),o!==m&&n.emit("slidesLengthChange"),u.length!==_&&(n.params.watchOverflow&&n.checkOverflow(),n.emit("snapGridLengthChange")),p.length!==E&&n.emit("slidesGridLengthChange"),(r.watchSlidesProgress||r.watchSlidesVisibility)&&n.updateSlidesOffset()}}function cU(n){var e=this,t=[],r=e.virtual&&e.params.virtual.enabled,i=0,s;typeof n=="number"?e.setTransition(n):n===!0&&e.setTransition(e.params.speed);var d=function(a){return r?e.slides.filter(function(o){return parseInt(o.getAttribute("data-swiper-slide-index"),10)===a})[0]:e.slides.eq(a)[0]};if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each(function(m){t.push(m)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){var f=e.activeIndex+s;if(f>e.slides.length&&!r)break;t.push(d(f))}else t.push(d(e.activeIndex));for(s=0;s<t.length;s+=1)if(typeof t[s]<"u"){var l=t[s].offsetHeight;i=l>i?l:i}i&&e.$wrapperEl.css("height",i+"px")}function hU(){for(var n=this,e=n.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=n.isHorizontal()?e[t].offsetLeft:e[t].offsetTop}function fU(n){n===void 0&&(n=this&&this.translate||0);var e=this,t=e.params,r=e.slides,i=e.rtlTranslate;if(r.length!==0){typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();var s=-n;i&&(s=n),r.removeClass(t.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(var d=0;d<r.length;d+=1){var f=r[d],l=(s+(t.centeredSlides?e.minTranslate():0)-f.swiperSlideOffset)/(f.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility||t.centeredSlides&&t.autoHeight){var m=-(s-f.swiperSlideOffset),a=m+e.slidesSizesGrid[d],o=m>=0&&m<e.size-1||a>1&&a<=e.size||m<=0&&a>=e.size;o&&(e.visibleSlides.push(f),e.visibleSlidesIndexes.push(d),r.eq(d).addClass(t.slideVisibleClass))}f.progress=i?-l:l}e.visibleSlides=Oe(e.visibleSlides)}}function dU(n){var e=this;if(typeof n>"u"){var t=e.rtlTranslate?-1:1;n=e&&e.translate&&e.translate*t||0}var r=e.params,i=e.maxTranslate()-e.minTranslate(),s=e.progress,d=e.isBeginning,f=e.isEnd,l=d,m=f;i===0?(s=0,d=!0,f=!0):(s=(n-e.minTranslate())/i,d=s<=0,f=s>=1),Mt(e,{progress:s,isBeginning:d,isEnd:f}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&e.updateSlidesProgress(n),d&&!l&&e.emit("reachBeginning toEdge"),f&&!m&&e.emit("reachEnd toEdge"),(l&&!d||m&&!f)&&e.emit("fromEdge"),e.emit("progress",s)}function pU(){var n=this,e=n.slides,t=n.params,r=n.$wrapperEl,i=n.activeIndex,s=n.realIndex,d=n.virtual&&t.virtual.enabled;e.removeClass(t.slideActiveClass+" "+t.slideNextClass+" "+t.slidePrevClass+" "+t.slideDuplicateActiveClass+" "+t.slideDuplicateNextClass+" "+t.slideDuplicatePrevClass);var f;d?f=n.$wrapperEl.find("."+t.slideClass+'[data-swiper-slide-index="'+i+'"]'):f=e.eq(i),f.addClass(t.slideActiveClass),t.loop&&(f.hasClass(t.slideDuplicateClass)?r.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(t.slideDuplicateActiveClass):r.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(t.slideDuplicateActiveClass));var l=f.nextAll("."+t.slideClass).eq(0).addClass(t.slideNextClass);t.loop&&l.length===0&&(l=e.eq(0),l.addClass(t.slideNextClass));var m=f.prevAll("."+t.slideClass).eq(0).addClass(t.slidePrevClass);t.loop&&m.length===0&&(m=e.eq(-1),m.addClass(t.slidePrevClass)),t.loop&&(l.hasClass(t.slideDuplicateClass)?r.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(t.slideDuplicateNextClass):r.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(t.slideDuplicateNextClass),m.hasClass(t.slideDuplicateClass)?r.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+m.attr("data-swiper-slide-index")+'"]').addClass(t.slideDuplicatePrevClass):r.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+m.attr("data-swiper-slide-index")+'"]').addClass(t.slideDuplicatePrevClass)),n.emitSlidesClasses()}function mU(n){var e=this,t=e.rtlTranslate?e.translate:-e.translate,r=e.slidesGrid,i=e.snapGrid,s=e.params,d=e.activeIndex,f=e.realIndex,l=e.snapIndex,m=n,a;if(typeof m>"u"){for(var o=0;o<r.length;o+=1)typeof r[o+1]<"u"?t>=r[o]&&t<r[o+1]-(r[o+1]-r[o])/2?m=o:t>=r[o]&&t<r[o+1]&&(m=o+1):t>=r[o]&&(m=o);s.normalizeSlideIndex&&(m<0||typeof m>"u")&&(m=0)}if(i.indexOf(t)>=0)a=i.indexOf(t);else{var u=Math.min(s.slidesPerGroupSkip,m);a=u+Math.floor((m-u)/s.slidesPerGroup)}if(a>=i.length&&(a=i.length-1),m===d){a!==l&&(e.snapIndex=a,e.emit("snapIndexChange"));return}var p=parseInt(e.slides.eq(m).attr("data-swiper-slide-index")||m,10);Mt(e,{snapIndex:a,realIndex:p,previousIndex:d,activeIndex:m}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),f!==p&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function gU(n){var e=this,t=e.params,r=Oe(n.target).closest("."+t.slideClass)[0],i=!1,s;if(r){for(var d=0;d<e.slides.length;d+=1)if(e.slides[d]===r){i=!0,s=d;break}}if(r&&i)e.clickedSlide=r,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(Oe(r).attr("data-swiper-slide-index"),10):e.clickedIndex=s;else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}t.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}const vU={updateSize:lU,updateSlides:uU,updateAutoHeight:cU,updateSlidesOffset:hU,updateSlidesProgress:fU,updateProgress:dU,updateSlidesClasses:pU,updateActiveIndex:mU,updateClickedSlide:gU};function wU(n){n===void 0&&(n=this.isHorizontal()?"x":"y");var e=this,t=e.params,r=e.rtlTranslate,i=e.translate,s=e.$wrapperEl;if(t.virtualTranslate)return r?-i:i;if(t.cssMode)return i;var d=JV(s[0],n);return r&&(d=-d),d||0}function yU(n,e){var t=this,r=t.rtlTranslate,i=t.params,s=t.$wrapperEl,d=t.wrapperEl,f=t.progress,l=0,m=0,a=0;t.isHorizontal()?l=r?-n:n:m=n,i.roundLengths&&(l=Math.floor(l),m=Math.floor(m)),i.cssMode?d[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-l:-m:i.virtualTranslate||s.transform("translate3d("+l+"px, "+m+"px, "+a+"px)"),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?l:m;var o,u=t.maxTranslate()-t.minTranslate();u===0?o=0:o=(n-t.minTranslate())/u,o!==f&&t.updateProgress(n),t.emit("setTranslate",t.translate,e)}function bU(){return-this.snapGrid[0]}function SU(){return-this.snapGrid[this.snapGrid.length-1]}function _U(n,e,t,r,i){n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),r===void 0&&(r=!0);var s=this,d=s.params,f=s.wrapperEl;if(s.animating&&d.preventInteractionOnTransition)return!1;var l=s.minTranslate(),m=s.maxTranslate(),a;if(r&&n>l?a=l:r&&n<m?a=m:a=n,s.updateProgress(a),d.cssMode){var o=s.isHorizontal();if(e===0)f[o?"scrollLeft":"scrollTop"]=-a;else if(f.scrollTo){var u;f.scrollTo((u={},u[o?"left":"top"]=-a,u.behavior="smooth",u))}else f[o?"scrollLeft":"scrollTop"]=-a;return!0}return e===0?(s.setTransition(0),s.setTranslate(a),t&&(s.emit("beforeTransitionStart",e,i),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(a),t&&(s.emit("beforeTransitionStart",e,i),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(v){!s||s.destroyed||v.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,t&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}const CU={getTranslate:wU,setTranslate:yU,minTranslate:bU,maxTranslate:SU,translateTo:_U};function EU(n,e){var t=this;t.params.cssMode||t.$wrapperEl.transition(n),t.emit("setTransition",n,e)}function kU(n,e){n===void 0&&(n=!0);var t=this,r=t.activeIndex,i=t.params,s=t.previousIndex;if(!i.cssMode){i.autoHeight&&t.updateAutoHeight();var d=e;if(d||(r>s?d="next":r<s?d="prev":d="reset"),t.emit("transitionStart"),n&&r!==s){if(d==="reset"){t.emit("slideResetTransitionStart");return}t.emit("slideChangeTransitionStart"),d==="next"?t.emit("slideNextTransitionStart"):t.emit("slidePrevTransitionStart")}}}function xU(n,e){n===void 0&&(n=!0);var t=this,r=t.activeIndex,i=t.previousIndex,s=t.params;if(t.animating=!1,!s.cssMode){t.setTransition(0);var d=e;if(d||(r>i?d="next":r<i?d="prev":d="reset"),t.emit("transitionEnd"),n&&r!==i){if(d==="reset"){t.emit("slideResetTransitionEnd");return}t.emit("slideChangeTransitionEnd"),d==="next"?t.emit("slideNextTransitionEnd"):t.emit("slidePrevTransitionEnd")}}}const AU={setTransition:EU,transitionStart:kU,transitionEnd:xU};function TU(n,e,t,r,i){if(n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),typeof n!="number"&&typeof n!="string")throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof n+"] given.");if(typeof n=="string"){var s=parseInt(n,10),d=isFinite(s);if(!d)throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+n+"] given.");n=s}var f=this,l=n;l<0&&(l=0);var m=f.params,a=f.snapGrid,o=f.slidesGrid,u=f.previousIndex,p=f.activeIndex,v=f.rtlTranslate,w=f.wrapperEl,b=f.enabled;if(f.animating&&m.preventInteractionOnTransition||!b&&!r&&!i)return!1;var _=Math.min(f.params.slidesPerGroupSkip,l),E=_+Math.floor((l-_)/f.params.slidesPerGroup);E>=a.length&&(E=a.length-1),(p||m.initialSlide||0)===(u||0)&&t&&f.emit("beforeSlideChangeStart");var $=-a[E];if(f.updateProgress($),m.normalizeSlideIndex)for(var x=0;x<o.length;x+=1){var S=-Math.floor($*100),T=Math.floor(o[x]*100),M=Math.floor(o[x+1]*100);typeof o[x+1]<"u"?S>=T&&S<M-(M-T)/2?l=x:S>=T&&S<M&&(l=x+1):S>=T&&(l=x)}if(f.initialized&&l!==p&&(!f.allowSlideNext&&$<f.translate&&$<f.minTranslate()||!f.allowSlidePrev&&$>f.translate&&$>f.maxTranslate()&&(p||0)!==l))return!1;var A;if(l>p?A="next":l<p?A="prev":A="reset",v&&-$===f.translate||!v&&$===f.translate)return f.updateActiveIndex(l),m.autoHeight&&f.updateAutoHeight(),f.updateSlidesClasses(),m.effect!=="slide"&&f.setTranslate($),A!=="reset"&&(f.transitionStart(t,A),f.transitionEnd(t,A)),!1;if(m.cssMode){var R=f.isHorizontal(),y=-$;if(v&&(y=w.scrollWidth-w.offsetWidth-y),e===0)w[R?"scrollLeft":"scrollTop"]=y;else if(w.scrollTo){var k;w.scrollTo((k={},k[R?"left":"top"]=y,k.behavior="smooth",k))}else w[R?"scrollLeft":"scrollTop"]=y;return!0}return e===0?(f.setTransition(0),f.setTranslate($),f.updateActiveIndex(l),f.updateSlidesClasses(),f.emit("beforeTransitionStart",e,r),f.transitionStart(t,A),f.transitionEnd(t,A)):(f.setTransition(e),f.setTranslate($),f.updateActiveIndex(l),f.updateSlidesClasses(),f.emit("beforeTransitionStart",e,r),f.transitionStart(t,A),f.animating||(f.animating=!0,f.onSlideToWrapperTransitionEnd||(f.onSlideToWrapperTransitionEnd=function(N){!f||f.destroyed||N.target===this&&(f.$wrapperEl[0].removeEventListener("transitionend",f.onSlideToWrapperTransitionEnd),f.$wrapperEl[0].removeEventListener("webkitTransitionEnd",f.onSlideToWrapperTransitionEnd),f.onSlideToWrapperTransitionEnd=null,delete f.onSlideToWrapperTransitionEnd,f.transitionEnd(t,A))}),f.$wrapperEl[0].addEventListener("transitionend",f.onSlideToWrapperTransitionEnd),f.$wrapperEl[0].addEventListener("webkitTransitionEnd",f.onSlideToWrapperTransitionEnd))),!0}function $U(n,e,t,r){n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);var i=this,s=n;return i.params.loop&&(s+=i.loopedSlides),i.slideTo(s,e,t,r)}function OU(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);var r=this,i=r.params,s=r.animating,d=r.enabled;if(!d)return r;var f=r.activeIndex<i.slidesPerGroupSkip?1:i.slidesPerGroup;if(i.loop){if(s&&i.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return r.slideTo(r.activeIndex+f,n,e,t)}function LU(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);var r=this,i=r.params,s=r.animating,d=r.snapGrid,f=r.slidesGrid,l=r.rtlTranslate,m=r.enabled;if(!m)return r;if(i.loop){if(s&&i.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var a=l?r.translate:-r.translate;function o(b){return b<0?-Math.floor(Math.abs(b)):Math.floor(b)}var u=o(a),p=d.map(function(b){return o(b)}),v=d[p.indexOf(u)-1];typeof v>"u"&&i.cssMode&&d.forEach(function(b){!v&&u>=b&&(v=b)});var w;return typeof v<"u"&&(w=f.indexOf(v),w<0&&(w=r.activeIndex-1)),r.slideTo(w,n,e,t)}function MU(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);var r=this;return r.slideTo(r.activeIndex,n,e,t)}function RU(n,e,t,r){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0),r===void 0&&(r=.5);var i=this,s=i.activeIndex,d=Math.min(i.params.slidesPerGroupSkip,s),f=d+Math.floor((s-d)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[f]){var m=i.snapGrid[f],a=i.snapGrid[f+1];l-m>(a-m)*r&&(s+=i.params.slidesPerGroup)}else{var o=i.snapGrid[f-1],u=i.snapGrid[f];l-o<=(u-o)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,n,e,t)}function NU(){var n=this,e=n.params,t=n.$wrapperEl,r=e.slidesPerView==="auto"?n.slidesPerViewDynamic():e.slidesPerView,i=n.clickedIndex,s;if(e.loop){if(n.animating)return;s=parseInt(Oe(n.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?i<n.loopedSlides-r/2||i>n.slides.length-n.loopedSlides+r/2?(n.loopFix(),i=t.children("."+e.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.'+e.slideDuplicateClass+")").eq(0).index(),ed(function(){n.slideTo(i)})):n.slideTo(i):i>n.slides.length-r?(n.loopFix(),i=t.children("."+e.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.'+e.slideDuplicateClass+")").eq(0).index(),ed(function(){n.slideTo(i)})):n.slideTo(i)}else n.slideTo(i)}const IU={slideTo:TU,slideToLoop:$U,slideNext:OU,slidePrev:LU,slideReset:MU,slideToClosest:RU,slideToClickedSlide:NU};function DU(){var n=this,e=Cn(),t=n.params,r=n.$wrapperEl;r.children("."+t.slideClass+"."+t.slideDuplicateClass).remove();var i=r.children("."+t.slideClass);if(t.loopFillGroupWithBlank){var s=t.slidesPerGroup-i.length%t.slidesPerGroup;if(s!==t.slidesPerGroup){for(var d=0;d<s;d+=1){var f=Oe(e.createElement("div")).addClass(t.slideClass+" "+t.slideBlankClass);r.append(f)}i=r.children("."+t.slideClass)}}t.slidesPerView==="auto"&&!t.loopedSlides&&(t.loopedSlides=i.length),n.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),n.loopedSlides+=t.loopAdditionalSlides,n.loopedSlides>i.length&&(n.loopedSlides=i.length);var l=[],m=[];i.each(function(u,p){var v=Oe(u);p<n.loopedSlides&&m.push(u),p<i.length&&p>=i.length-n.loopedSlides&&l.push(u),v.attr("data-swiper-slide-index",p)});for(var a=0;a<m.length;a+=1)r.append(Oe(m[a].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var o=l.length-1;o>=0;o-=1)r.prepend(Oe(l[o].cloneNode(!0)).addClass(t.slideDuplicateClass))}function PU(){var n=this;n.emit("beforeLoopFix");var e=n.activeIndex,t=n.slides,r=n.loopedSlides,i=n.allowSlidePrev,s=n.allowSlideNext,d=n.snapGrid,f=n.rtlTranslate,l;n.allowSlidePrev=!0,n.allowSlideNext=!0;var m=-d[e],a=m-n.getTranslate();if(e<r){l=t.length-r*3+e,l+=r;var o=n.slideTo(l,0,!1,!0);o&&a!==0&&n.setTranslate((f?-n.translate:n.translate)-a)}else if(e>=t.length-r){l=-t.length+e+r,l+=r;var u=n.slideTo(l,0,!1,!0);u&&a!==0&&n.setTranslate((f?-n.translate:n.translate)-a)}n.allowSlidePrev=i,n.allowSlideNext=s,n.emit("loopFix")}function BU(){var n=this,e=n.$wrapperEl,t=n.params,r=n.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}const FU={loopCreate:DU,loopFix:PU,loopDestroy:BU};function VU(n){var e=this;if(!(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)){var t=e.el;t.style.cursor="move",t.style.cursor=n?"-webkit-grabbing":"-webkit-grab",t.style.cursor=n?"-moz-grabbin":"-moz-grab",t.style.cursor=n?"grabbing":"grab"}}function UU(){var n=this;n.support.touch||n.params.watchOverflow&&n.isLocked||n.params.cssMode||(n.el.style.cursor="")}const WU={setGrabCursor:VU,unsetGrabCursor:UU};function HU(n){var e=this,t=e.$wrapperEl,r=e.params;if(r.loop&&e.loopDestroy(),typeof n=="object"&&"length"in n)for(var i=0;i<n.length;i+=1)n[i]&&t.append(n[i]);else t.append(n);r.loop&&e.loopCreate(),r.observer&&e.support.observer||e.update()}function zU(n){var e=this,t=e.params,r=e.$wrapperEl,i=e.activeIndex;t.loop&&e.loopDestroy();var s=i+1;if(typeof n=="object"&&"length"in n){for(var d=0;d<n.length;d+=1)n[d]&&r.prepend(n[d]);s=i+n.length}else r.prepend(n);t.loop&&e.loopCreate(),t.observer&&e.support.observer||e.update(),e.slideTo(s,0,!1)}function jU(n,e){var t=this,r=t.$wrapperEl,i=t.params,s=t.activeIndex,d=s;i.loop&&(d-=t.loopedSlides,t.loopDestroy(),t.slides=r.children("."+i.slideClass));var f=t.slides.length;if(n<=0){t.prependSlide(e);return}if(n>=f){t.appendSlide(e);return}for(var l=d>n?d+1:d,m=[],a=f-1;a>=n;a-=1){var o=t.slides.eq(a);o.remove(),m.unshift(o)}if(typeof e=="object"&&"length"in e){for(var u=0;u<e.length;u+=1)e[u]&&r.append(e[u]);l=d>n?d+e.length:d}else r.append(e);for(var p=0;p<m.length;p+=1)r.append(m[p]);i.loop&&t.loopCreate(),i.observer&&t.support.observer||t.update(),i.loop?t.slideTo(l+t.loopedSlides,0,!1):t.slideTo(l,0,!1)}function GU(n){var e=this,t=e.params,r=e.$wrapperEl,i=e.activeIndex,s=i;t.loop&&(s-=e.loopedSlides,e.loopDestroy(),e.slides=r.children("."+t.slideClass));var d=s,f;if(typeof n=="object"&&"length"in n){for(var l=0;l<n.length;l+=1)f=n[l],e.slides[f]&&e.slides.eq(f).remove(),f<d&&(d-=1);d=Math.max(d,0)}else f=n,e.slides[f]&&e.slides.eq(f).remove(),f<d&&(d-=1),d=Math.max(d,0);t.loop&&e.loopCreate(),t.observer&&e.support.observer||e.update(),t.loop?e.slideTo(d+e.loopedSlides,0,!1):e.slideTo(d,0,!1)}function YU(){for(var n=this,e=[],t=0;t<n.slides.length;t+=1)e.push(t);n.removeSlide(e)}const JU={appendSlide:HU,prependSlide:zU,addSlide:jU,removeSlide:GU,removeAllSlides:YU};function KU(n,e){e===void 0&&(e=this);function t(r){if(!r||r===Cn()||r===jt())return null;r.assignedSlot&&(r=r.assignedSlot);var i=r.closest(n);return i||t(r.getRootNode().host)}return t(e)}function XU(n){var e=this,t=Cn(),r=jt(),i=e.touchEventsData,s=e.params,d=e.touches,f=e.enabled;if(f&&!(e.animating&&s.preventInteractionOnTransition)){var l=n;l.originalEvent&&(l=l.originalEvent);var m=Oe(l.target);if(!(s.touchEventsTarget==="wrapper"&&!m.closest(e.wrapperEl).length)&&(i.isTouchEvent=l.type==="touchstart",!(!i.isTouchEvent&&"which"in l&&l.which===3)&&!(!i.isTouchEvent&&"button"in l&&l.button>0)&&!(i.isTouched&&i.isMoved))){var a=!!s.noSwipingClass&&s.noSwipingClass!=="";a&&l.target&&l.target.shadowRoot&&n.path&&n.path[0]&&(m=Oe(n.path[0]));var o=s.noSwipingSelector?s.noSwipingSelector:"."+s.noSwipingClass,u=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(u?KU(o,l.target):m.closest(o)[0])){e.allowClick=!0;return}if(!(s.swipeHandler&&!m.closest(s.swipeHandler)[0])){d.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX,d.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;var p=d.currentX,v=d.currentY,w=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,b=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(w&&(p<=b||p>=r.innerWidth-b))if(w==="prevent")n.preventDefault();else return;if(Mt(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=p,d.startY=v,i.touchStartTime=$i(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1),l.type!=="touchstart"){var _=!0;m.is(i.focusableElements)&&(_=!1),t.activeElement&&Oe(t.activeElement).is(i.focusableElements)&&t.activeElement!==m[0]&&t.activeElement.blur();var E=_&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||E)&&!m[0].isContentEditable&&l.preventDefault()}e.emit("touchStart",l)}}}}function qU(n){var e=Cn(),t=this,r=t.touchEventsData,i=t.params,s=t.touches,d=t.rtlTranslate,f=t.enabled;if(f){var l=n;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&t.emit("touchMoveOpposite",l);return}if(!(r.isTouchEvent&&l.type!=="touchmove")){var m=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),a=l.type==="touchmove"?m.pageX:l.pageX,o=l.type==="touchmove"?m.pageY:l.pageY;if(l.preventedByNestedSwiper){s.startX=a,s.startY=o;return}if(!t.allowTouchMove){t.allowClick=!1,r.isTouched&&(Mt(s,{startX:a,startY:o,currentX:a,currentY:o}),r.touchStartTime=$i());return}if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop){if(t.isVertical()){if(o<s.startY&&t.translate<=t.maxTranslate()||o>s.startY&&t.translate>=t.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(a<s.startX&&t.translate<=t.maxTranslate()||a>s.startX&&t.translate>=t.minTranslate())return}if(r.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&Oe(l.target).is(r.focusableElements)){r.isMoved=!0,t.allowClick=!1;return}if(r.allowTouchCallbacks&&t.emit("touchMove",l),!(l.targetTouches&&l.targetTouches.length>1)){s.currentX=a,s.currentY=o;var u=s.currentX-s.startX,p=s.currentY-s.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(u,2)+Math.pow(p,2))<t.params.threshold)){if(typeof r.isScrolling>"u"){var v;t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:u*u+p*p>=25&&(v=Math.atan2(Math.abs(p),Math.abs(u))*180/Math.PI,r.isScrolling=t.isHorizontal()?v>i.touchAngle:90-v>i.touchAngle)}if(r.isScrolling&&t.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(r.startMoving){t.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation(),r.isMoved||(i.loop&&t.loopFix(),r.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,i.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)),t.emit("sliderMove",l),r.isMoved=!0;var w=t.isHorizontal()?u:p;s.diff=w,w*=i.touchRatio,d&&(w=-w),t.swipeDirection=w>0?"prev":"next",r.currentTranslate=w+r.startTranslate;var b=!0,_=i.resistanceRatio;if(i.touchReleaseOnEdges&&(_=0),w>0&&r.currentTranslate>t.minTranslate()?(b=!1,i.resistance&&(r.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+r.startTranslate+w,_))):w<0&&r.currentTranslate<t.maxTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-r.startTranslate-w,_))),b&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(w)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&(r.velocities.length===0&&r.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:$i()})),t.updateProgress(r.currentTranslate),t.setTranslate(r.currentTranslate))}}}}}}function ZU(n){var e=this,t=e.touchEventsData,r=e.params,i=e.touches,s=e.rtlTranslate,d=e.$wrapperEl,f=e.slidesGrid,l=e.snapGrid,m=e.enabled;if(m){var a=n;if(a.originalEvent&&(a=a.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",a),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&r.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}r.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);var o=$i(),u=o-t.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(a),e.emit("tap click",a),u<300&&o-t.lastClickTime<300&&e.emit("doubleTap doubleClick",a)),t.lastClickTime=$i(),ed(function(){e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||i.diff===0||t.currentTranslate===t.startTranslate){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;var p;if(r.followFinger?p=s?e.translate:-e.translate:p=-t.currentTranslate,!r.cssMode){if(r.freeMode){if(p<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(p>-e.maxTranslate()){e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1);return}if(r.freeModeMomentum){if(t.velocities.length>1){var v=t.velocities.pop(),w=t.velocities.pop(),b=v.position-w.position,_=v.time-w.time;e.velocity=b/_,e.velocity/=2,Math.abs(e.velocity)<r.freeModeMinimumVelocity&&(e.velocity=0),(_>150||$i()-v.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeModeMomentumVelocityRatio,t.velocities.length=0;var E=1e3*r.freeModeMomentumRatio,$=e.velocity*E,x=e.translate+$;s&&(x=-x);var S=!1,T,M=Math.abs(e.velocity)*20*r.freeModeMomentumBounceRatio,A;if(x<e.maxTranslate())r.freeModeMomentumBounce?(x+e.maxTranslate()<-M&&(x=e.maxTranslate()-M),T=e.maxTranslate(),S=!0,t.allowMomentumBounce=!0):x=e.maxTranslate(),r.loop&&r.centeredSlides&&(A=!0);else if(x>e.minTranslate())r.freeModeMomentumBounce?(x-e.minTranslate()>M&&(x=e.minTranslate()+M),T=e.minTranslate(),S=!0,t.allowMomentumBounce=!0):x=e.minTranslate(),r.loop&&r.centeredSlides&&(A=!0);else if(r.freeModeSticky){for(var R,y=0;y<l.length;y+=1)if(l[y]>-x){R=y;break}Math.abs(l[R]-x)<Math.abs(l[R-1]-x)||e.swipeDirection==="next"?x=l[R]:x=l[R-1],x=-x}if(A&&e.once("transitionEnd",function(){e.loopFix()}),e.velocity!==0){if(s?E=Math.abs((-x-e.translate)/e.velocity):E=Math.abs((x-e.translate)/e.velocity),r.freeModeSticky){var k=Math.abs((s?-x:x)-e.translate),O=e.slidesSizesGrid[e.activeIndex];k<O?E=r.speed:k<2*O?E=r.speed*1.5:E=r.speed*2.5}}else if(r.freeModeSticky){e.slideToClosest();return}r.freeModeMomentumBounce&&S?(e.updateProgress(T),e.setTransition(E),e.setTranslate(x),e.transitionStart(!0,e.swipeDirection),e.animating=!0,d.transitionEnd(function(){!e||e.destroyed||!t.allowMomentumBounce||(e.emit("momentumBounce"),e.setTransition(r.speed),setTimeout(function(){e.setTranslate(T),d.transitionEnd(function(){!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(e.updateProgress(x),e.setTransition(E),e.setTranslate(x),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,d.transitionEnd(function(){!e||e.destroyed||e.transitionEnd()}))):(e.emit("_freeModeNoMomentumRelease"),e.updateProgress(x)),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeModeSticky){e.slideToClosest();return}else r.freeMode&&e.emit("_freeModeNoMomentumRelease");(!r.freeModeMomentum||u>=r.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses());return}for(var N=0,I=e.slidesSizesGrid[0],P=0;P<f.length;P+=P<r.slidesPerGroupSkip?1:r.slidesPerGroup){var B=P<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof f[P+B]<"u"?p>=f[P]&&p<f[P+B]&&(N=P,I=f[P+B]-f[P]):p>=f[P]&&(N=P,I=f[f.length-1]-f[f.length-2])}var z=(p-f[N])/I,j=N<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(u>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(z>=r.longSwipesRatio?e.slideTo(N+j):e.slideTo(N)),e.swipeDirection==="prev"&&(z>1-r.longSwipesRatio?e.slideTo(N+j):e.slideTo(N))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}var J=e.navigation&&(a.target===e.navigation.nextEl||a.target===e.navigation.prevEl);J?a.target===e.navigation.nextEl?e.slideTo(N+j):e.slideTo(N):(e.swipeDirection==="next"&&e.slideTo(N+j),e.swipeDirection==="prev"&&e.slideTo(N))}}}}function nd(){var n=this,e=n.params,t=n.el;if(!(t&&t.offsetWidth===0)){e.breakpoints&&n.setBreakpoint();var r=n.allowSlideNext,i=n.allowSlidePrev,s=n.snapGrid;n.allowSlideNext=!0,n.allowSlidePrev=!0,n.updateSize(),n.updateSlides(),n.updateSlidesClasses(),(e.slidesPerView==="auto"||e.slidesPerView>1)&&n.isEnd&&!n.isBeginning&&!n.params.centeredSlides?n.slideTo(n.slides.length-1,0,!1,!0):n.slideTo(n.activeIndex,0,!1,!0),n.autoplay&&n.autoplay.running&&n.autoplay.paused&&n.autoplay.run(),n.allowSlidePrev=i,n.allowSlideNext=r,n.params.watchOverflow&&s!==n.snapGrid&&n.checkOverflow()}}function QU(n){var e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&n.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(n.stopPropagation(),n.stopImmediatePropagation())))}function eW(){var n=this,e=n.wrapperEl,t=n.rtlTranslate,r=n.enabled;if(r){n.previousTranslate=n.translate,n.isHorizontal()?t?n.translate=e.scrollWidth-e.offsetWidth-e.scrollLeft:n.translate=-e.scrollLeft:n.translate=-e.scrollTop,n.translate===-0&&(n.translate=0),n.updateActiveIndex(),n.updateSlidesClasses();var i,s=n.maxTranslate()-n.minTranslate();s===0?i=0:i=(n.translate-n.minTranslate())/s,i!==n.progress&&n.updateProgress(t?-n.translate:n.translate),n.emit("setTranslate",n.translate,!1)}}var ey=!1;function tW(){}function nW(){var n=this,e=Cn(),t=n.params,r=n.touchEvents,i=n.el,s=n.wrapperEl,d=n.device,f=n.support;n.onTouchStart=XU.bind(n),n.onTouchMove=qU.bind(n),n.onTouchEnd=ZU.bind(n),t.cssMode&&(n.onScroll=eW.bind(n)),n.onClick=QU.bind(n);var l=!!t.nested;if(!f.touch&&f.pointerEvents)i.addEventListener(r.start,n.onTouchStart,!1),e.addEventListener(r.move,n.onTouchMove,l),e.addEventListener(r.end,n.onTouchEnd,!1);else{if(f.touch){var m=r.start==="touchstart"&&f.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;i.addEventListener(r.start,n.onTouchStart,m),i.addEventListener(r.move,n.onTouchMove,f.passiveListener?{passive:!1,capture:l}:l),i.addEventListener(r.end,n.onTouchEnd,m),r.cancel&&i.addEventListener(r.cancel,n.onTouchEnd,m),ey||(e.addEventListener("touchstart",tW),ey=!0)}(t.simulateTouch&&!d.ios&&!d.android||t.simulateTouch&&!f.touch&&d.ios)&&(i.addEventListener("mousedown",n.onTouchStart,!1),e.addEventListener("mousemove",n.onTouchMove,l),e.addEventListener("mouseup",n.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&i.addEventListener("click",n.onClick,!0),t.cssMode&&s.addEventListener("scroll",n.onScroll),t.updateOnWindowResize?n.on(d.ios||d.android?"resize orientationchange observerUpdate":"resize observerUpdate",nd,!0):n.on("observerUpdate",nd,!0)}function rW(){var n=this,e=Cn(),t=n.params,r=n.touchEvents,i=n.el,s=n.wrapperEl,d=n.device,f=n.support,l=!!t.nested;if(!f.touch&&f.pointerEvents)i.removeEventListener(r.start,n.onTouchStart,!1),e.removeEventListener(r.move,n.onTouchMove,l),e.removeEventListener(r.end,n.onTouchEnd,!1);else{if(f.touch){var m=r.start==="onTouchStart"&&f.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;i.removeEventListener(r.start,n.onTouchStart,m),i.removeEventListener(r.move,n.onTouchMove,l),i.removeEventListener(r.end,n.onTouchEnd,m),r.cancel&&i.removeEventListener(r.cancel,n.onTouchEnd,m)}(t.simulateTouch&&!d.ios&&!d.android||t.simulateTouch&&!f.touch&&d.ios)&&(i.removeEventListener("mousedown",n.onTouchStart,!1),e.removeEventListener("mousemove",n.onTouchMove,l),e.removeEventListener("mouseup",n.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&i.removeEventListener("click",n.onClick,!0),t.cssMode&&s.removeEventListener("scroll",n.onScroll),n.off(d.ios||d.android?"resize orientationchange observerUpdate":"resize observerUpdate",nd)}const iW={attachEvents:nW,detachEvents:rW};function sW(){var n=this,e=n.activeIndex,t=n.initialized,r=n.loopedSlides,i=r===void 0?0:r,s=n.params,d=n.$el,f=s.breakpoints;if(!(!f||f&&Object.keys(f).length===0)){var l=n.getBreakpoint(f,n.params.breakpointsBase,n.el);if(!(!l||n.currentBreakpoint===l)){var m=l in f?f[l]:void 0;m&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(function(_){var E=m[_];typeof E>"u"||(_==="slidesPerView"&&(E==="AUTO"||E==="auto")?m[_]="auto":_==="slidesPerView"?m[_]=parseFloat(E):m[_]=parseInt(E,10))});var a=m||n.originalParams,o=s.slidesPerColumn>1,u=a.slidesPerColumn>1,p=s.enabled;o&&!u?(d.removeClass(s.containerModifierClass+"multirow "+s.containerModifierClass+"multirow-column"),n.emitContainerClasses()):!o&&u&&(d.addClass(s.containerModifierClass+"multirow"),(a.slidesPerColumnFill&&a.slidesPerColumnFill==="column"||!a.slidesPerColumnFill&&s.slidesPerColumnFill==="column")&&d.addClass(s.containerModifierClass+"multirow-column"),n.emitContainerClasses());var v=a.direction&&a.direction!==s.direction,w=s.loop&&(a.slidesPerView!==s.slidesPerView||v);v&&t&&n.changeDirection(),Mt(n.params,a);var b=n.params.enabled;Mt(n,{allowTouchMove:n.params.allowTouchMove,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev}),p&&!b?n.disable():!p&&b&&n.enable(),n.currentBreakpoint=l,n.emit("_beforeBreakpoint",a),w&&t&&(n.loopDestroy(),n.loopCreate(),n.updateSlides(),n.slideTo(e-i+n.loopedSlides,0,!1)),n.emit("breakpoint",a)}}}function oW(n,e,t){if(e===void 0&&(e="window"),!(!n||e==="container"&&!t)){var r=!1,i=jt(),s=e==="window"?i.innerHeight:t.clientHeight,d=Object.keys(n).map(function(o){if(typeof o=="string"&&o.indexOf("@")===0){var u=parseFloat(o.substr(1)),p=s*u;return{value:p,point:o}}return{value:o,point:o}});d.sort(function(o,u){return parseInt(o.value,10)-parseInt(u.value,10)});for(var f=0;f<d.length;f+=1){var l=d[f],m=l.point,a=l.value;e==="window"?i.matchMedia("(min-width: "+a+"px)").matches&&(r=m):a<=t.clientWidth&&(r=m)}return r||"max"}}const aW={setBreakpoint:sW,getBreakpoint:oW};function lW(n,e){var t=[];return n.forEach(function(r){typeof r=="object"?Object.keys(r).forEach(function(i){r[i]&&t.push(e+i)}):typeof r=="string"&&t.push(e+r)}),t}function uW(){var n=this,e=n.classNames,t=n.params,r=n.rtl,i=n.$el,s=n.device,d=n.support,f=lW(["initialized",t.direction,{"pointer-events":d.pointerEvents&&!d.touch},{"free-mode":t.freeMode},{autoheight:t.autoHeight},{rtl:r},{multirow:t.slidesPerColumn>1},{"multirow-column":t.slidesPerColumn>1&&t.slidesPerColumnFill==="column"},{android:s.android},{ios:s.ios},{"css-mode":t.cssMode}],t.containerModifierClass);e.push.apply(e,f),i.addClass([].concat(e).join(" ")),n.emitContainerClasses()}function cW(){var n=this,e=n.$el,t=n.classNames;e.removeClass(t.join(" ")),n.emitContainerClasses()}const hW={addClasses:uW,removeClasses:cW};function fW(n,e,t,r,i,s){var d=jt(),f;function l(){s&&s()}var m=Oe(n).parent("picture")[0];!m&&(!n.complete||!i)&&e?(f=new d.Image,f.onload=l,f.onerror=l,r&&(f.sizes=r),t&&(f.srcset=t),e&&(f.src=e)):l()}function dW(){var n=this;n.imagesToLoad=n.$el.find("img");function e(){typeof n>"u"||n===null||!n||n.destroyed||(n.imagesLoaded!==void 0&&(n.imagesLoaded+=1),n.imagesLoaded===n.imagesToLoad.length&&(n.params.updateOnImagesReady&&n.update(),n.emit("imagesReady")))}for(var t=0;t<n.imagesToLoad.length;t+=1){var r=n.imagesToLoad[t];n.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,e)}}const pW={loadImage:fW,preloadImages:dW};function mW(){var n=this,e=n.params,t=n.isLocked,r=n.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(n.slides.length-1)+n.slides[0].offsetWidth*n.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&r?n.isLocked=r<=n.size:n.isLocked=n.snapGrid.length===1,n.allowSlideNext=!n.isLocked,n.allowSlidePrev=!n.isLocked,t!==n.isLocked&&n.emit(n.isLocked?"lock":"unlock"),t&&t!==n.isLocked&&(n.isEnd=!1,n.navigation&&n.navigation.update())}const gW={checkOverflow:mW},ty={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function ny(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function vW(n,e,t){return e&&ny(n.prototype,e),t&&ny(n,t),n}var cf={modular:oU,eventsEmitter:aU,update:vU,translate:CU,transition:AU,slide:IU,loop:FU,grabCursor:WU,manipulation:JU,events:iW,breakpoints:aW,checkOverflow:gW,classes:hW,images:pW},hf={},mp=function(){function n(){for(var t,r,i=arguments.length,s=new Array(i),d=0;d<i;d++)s[d]=arguments[d];if(s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?r=s[0]:(t=s[0],r=s[1]),r||(r={}),r=Mt({},r),t&&!r.el&&(r.el=t),r.el&&Oe(r.el).length>1){var f=[];return Oe(r.el).each(function(a){var o=Mt({},r,{el:a});f.push(new n(o))}),f}var l=this;l.__swiper__=!0,l.support=g0(),l.device=QV({userAgent:r.userAgent}),l.browser=tU(),l.eventsListeners={},l.eventsAnyListeners=[],typeof l.modules>"u"&&(l.modules={}),Object.keys(l.modules).forEach(function(a){var o=l.modules[a];if(o.params){var u=Object.keys(o.params)[0],p=o.params[u];if(typeof p!="object"||p===null||(["navigation","pagination","scrollbar"].indexOf(u)>=0&&r[u]===!0&&(r[u]={auto:!0}),!(u in r&&"enabled"in p)))return;r[u]===!0&&(r[u]={enabled:!0}),typeof r[u]=="object"&&!("enabled"in r[u])&&(r[u].enabled=!0),r[u]||(r[u]={enabled:!1})}});var m=Mt({},ty);return l.useParams(m),l.params=Mt({},m,hf,r),l.originalParams=Mt({},l.params),l.passedParams=Mt({},r),l.params&&l.params.on&&Object.keys(l.params.on).forEach(function(a){l.on(a,l.params.on[a])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),l.$=Oe,Mt(l,{enabled:l.params.enabled,el:t,classNames:[],slides:Oe(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return l.params.direction==="horizontal"},isVertical:function(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){var o=["touchstart","touchmove","touchend","touchcancel"],u=["mousedown","mousemove","mouseup"];return l.support.pointerEvents&&(u=["pointerdown","pointermove","pointerup"]),l.touchEventsTouch={start:o[0],move:o[1],end:o[2],cancel:o[3]},l.touchEventsDesktop={start:u[0],move:u[1],end:u[2]},l.support.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:$i(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.emit("_swiper"),l.params.init&&l.init(),l}var e=n.prototype;return e.enable=function(){var r=this;r.enabled||(r.enabled=!0,r.params.grabCursor&&r.setGrabCursor(),r.emit("enable"))},e.disable=function(){var r=this;r.enabled&&(r.enabled=!1,r.params.grabCursor&&r.unsetGrabCursor(),r.emit("disable"))},e.setProgress=function(r,i){var s=this;r=Math.min(Math.max(r,0),1);var d=s.minTranslate(),f=s.maxTranslate(),l=(f-d)*r+d;s.translateTo(l,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()},e.emitContainerClasses=function(){var r=this;if(!(!r.params._emitClasses||!r.el)){var i=r.el.className.split(" ").filter(function(s){return s.indexOf("swiper-container")===0||s.indexOf(r.params.containerModifierClass)===0});r.emit("_containerClasses",i.join(" "))}},e.getSlideClasses=function(r){var i=this;return r.className.split(" ").filter(function(s){return s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0}).join(" ")},e.emitSlidesClasses=function(){var r=this;if(!(!r.params._emitClasses||!r.el)){var i=[];r.slides.each(function(s){var d=r.getSlideClasses(s);i.push({slideEl:s,classNames:d}),r.emit("_slideClass",s,d)}),r.emit("_slideClasses",i)}},e.slidesPerViewDynamic=function(){var r=this,i=r.params,s=r.slides,d=r.slidesGrid,f=r.size,l=r.activeIndex,m=1;if(i.centeredSlides){for(var a=s[l].swiperSlideSize,o,u=l+1;u<s.length;u+=1)s[u]&&!o&&(a+=s[u].swiperSlideSize,m+=1,a>f&&(o=!0));for(var p=l-1;p>=0;p-=1)s[p]&&!o&&(a+=s[p].swiperSlideSize,m+=1,a>f&&(o=!0))}else for(var v=l+1;v<s.length;v+=1)d[v]-d[l]<f&&(m+=1);return m},e.update=function(){var r=this;if(!r||r.destroyed)return;var i=r.snapGrid,s=r.params;s.breakpoints&&r.setBreakpoint(),r.updateSize(),r.updateSlides(),r.updateProgress(),r.updateSlidesClasses();function d(){var l=r.rtlTranslate?r.translate*-1:r.translate,m=Math.min(Math.max(l,r.maxTranslate()),r.minTranslate());r.setTranslate(m),r.updateActiveIndex(),r.updateSlidesClasses()}var f;r.params.freeMode?(d(),r.params.autoHeight&&r.updateAutoHeight()):((r.params.slidesPerView==="auto"||r.params.slidesPerView>1)&&r.isEnd&&!r.params.centeredSlides?f=r.slideTo(r.slides.length-1,0,!1,!0):f=r.slideTo(r.activeIndex,0,!1,!0),f||d()),s.watchOverflow&&i!==r.snapGrid&&r.checkOverflow(),r.emit("update")},e.changeDirection=function(r,i){i===void 0&&(i=!0);var s=this,d=s.params.direction;return r||(r=d==="horizontal"?"vertical":"horizontal"),r===d||r!=="horizontal"&&r!=="vertical"||(s.$el.removeClass(""+s.params.containerModifierClass+d).addClass(""+s.params.containerModifierClass+r),s.emitContainerClasses(),s.params.direction=r,s.slides.each(function(f){r==="vertical"?f.style.width="":f.style.height=""}),s.emit("changeDirection"),i&&s.update()),s},e.mount=function(r){var i=this;if(i.mounted)return!0;var s=Oe(r||i.params.el);if(r=s[0],!r)return!1;r.swiper=i;var d=function(){return"."+(i.params.wrapperClass||"").trim().split(" ").join(".")},f=function(){if(r&&r.shadowRoot&&r.shadowRoot.querySelector){var u=Oe(r.shadowRoot.querySelector(d()));return u.children=function(p){return s.children(p)},u}return s.children(d())},l=f();if(l.length===0&&i.params.createElements){var m=Cn(),a=m.createElement("div");l=Oe(a),a.className=i.params.wrapperClass,s.append(a),s.children("."+i.params.slideClass).each(function(o){l.append(o)})}return Mt(i,{$el:s,el:r,$wrapperEl:l,wrapperEl:l[0],mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl"),wrongRTL:l.css("display")==="-webkit-box"}),!0},e.init=function(r){var i=this;if(i.initialized)return i;var s=i.mount(r);return s===!1||(i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.params.loop&&i.loopCreate(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.preloadImages&&i.preloadImages(),i.params.loop?i.slideTo(i.params.initialSlide+i.loopedSlides,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.attachEvents(),i.initialized=!0,i.emit("init"),i.emit("afterInit")),i},e.destroy=function(r,i){r===void 0&&(r=!0),i===void 0&&(i=!0);var s=this,d=s.params,f=s.$el,l=s.$wrapperEl,m=s.slides;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),d.loop&&s.loopDestroy(),i&&(s.removeClasses(),f.removeAttr("style"),l.removeAttr("style"),m&&m.length&&m.removeClass([d.slideVisibleClass,d.slideActiveClass,d.slideNextClass,d.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(function(a){s.off(a)}),r!==!1&&(s.$el[0].swiper=null,GV(s)),s.destroyed=!0),null},n.extendDefaults=function(r){Mt(hf,r)},n.installModule=function(r){n.prototype.modules||(n.prototype.modules={});var i=r.name||Object.keys(n.prototype.modules).length+"_"+$i();n.prototype.modules[i]=r},n.use=function(r){return Array.isArray(r)?(r.forEach(function(i){return n.installModule(i)}),n):(n.installModule(r),n)},vW(n,null,[{key:"extendedDefaults",get:function(){return hf}},{key:"defaults",get:function(){return ty}}]),n}();Object.keys(cf).forEach(function(n){Object.keys(cf[n]).forEach(function(e){mp.prototype[e]=cf[n][e]})});mp.use([rU,sU]);const no=mp;function rd(){return rd=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},rd.apply(this,arguments)}var wW={toggleEl:function(e,t){e[t?"addClass":"removeClass"](this.params.navigation.disabledClass),e[0]&&e[0].tagName==="BUTTON"&&(e[0].disabled=t)},update:function(){var e=this,t=e.params.navigation,r=e.navigation.toggleEl;if(!e.params.loop){var i=e.navigation,s=i.$nextEl,d=i.$prevEl;d&&d.length>0&&(e.isBeginning?r(d,!0):r(d,!1),e.params.watchOverflow&&e.enabled&&d[e.isLocked?"addClass":"removeClass"](t.lockClass)),s&&s.length>0&&(e.isEnd?r(s,!0):r(s,!1),e.params.watchOverflow&&e.enabled&&s[e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),!(t.isBeginning&&!t.params.loop)&&t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),!(t.isEnd&&!t.params.loop)&&t.slideNext()},init:function(){var e=this,t=e.params.navigation;if(e.params.navigation=XV(e.$el,e.params.navigation,e.params.createElements,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!!(t.nextEl||t.prevEl)){var r,i;t.nextEl&&(r=Oe(t.nextEl),e.params.uniqueNavElements&&typeof t.nextEl=="string"&&r.length>1&&e.$el.find(t.nextEl).length===1&&(r=e.$el.find(t.nextEl))),t.prevEl&&(i=Oe(t.prevEl),e.params.uniqueNavElements&&typeof t.prevEl=="string"&&i.length>1&&e.$el.find(t.prevEl).length===1&&(i=e.$el.find(t.prevEl))),r&&r.length>0&&r.on("click",e.navigation.onNextClick),i&&i.length>0&&i.on("click",e.navigation.onPrevClick),Mt(e.navigation,{$nextEl:r,nextEl:r&&r[0],$prevEl:i,prevEl:i&&i[0]}),e.enabled||(r&&r.addClass(t.lockClass),i&&i.addClass(t.lockClass))}},destroy:function(){var e=this,t=e.navigation,r=t.$nextEl,i=t.$prevEl;r&&r.length&&(r.off("click",e.navigation.onNextClick),r.removeClass(e.params.navigation.disabledClass)),i&&i.length&&(i.off("click",e.navigation.onPrevClick),i.removeClass(e.params.navigation.disabledClass))}};const yW={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;m0(e,{navigation:rd({},wW)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},"enable disable":function(e){var t=e.navigation,r=t.$nextEl,i=t.$prevEl;r&&r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),i&&i[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)},click:function(e,t){var r=e.navigation,i=r.$nextEl,s=r.$prevEl,d=t.target;if(e.params.navigation.hideOnClick&&!Oe(d).is(s)&&!Oe(d).is(i)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===d||e.pagination.el.contains(d)))return;var f;i?f=i.hasClass(e.params.navigation.hiddenClass):s&&(f=s.hasClass(e.params.navigation.hiddenClass)),f===!0?e.emit("navigationShow"):e.emit("navigationHide"),i&&i.toggleClass(e.params.navigation.hiddenClass),s&&s.toggleClass(e.params.navigation.hiddenClass)}}}};function hs(n){return typeof n=="object"&&n!==null&&n.constructor&&Object.prototype.toString.call(n).slice(8,-1)==="Object"}function ki(n,e){var t=["__proto__","constructor","prototype"];Object.keys(e).filter(function(r){return t.indexOf(r)<0}).forEach(function(r){typeof n[r]>"u"?n[r]=e[r]:hs(e[r])&&hs(n[r])&&Object.keys(e[r]).length>0?e[r].__swiper__?n[r]=e[r]:ki(n[r],e[r]):n[r]=e[r]})}function v0(n){return n===void 0&&(n={}),n.navigation&&typeof n.navigation.nextEl>"u"&&typeof n.navigation.prevEl>"u"}function w0(n){return n===void 0&&(n={}),n.pagination&&typeof n.pagination.el>"u"}function y0(n){return n===void 0&&(n={}),n.scrollbar&&typeof n.scrollbar.el>"u"}function b0(n){n===void 0&&(n="");var e=n.split(" ").map(function(r){return r.trim()}).filter(function(r){return!!r}),t=[];return e.forEach(function(r){t.indexOf(r)<0&&t.push(r)}),t.join(" ")}var S0=["init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_freeModeMomentum","_freeModeMomentumRatio","_freeModeMomentumBounce","_freeModeMomentumBounceRatio","_freeModeMomentumVelocityRatio","_freeModeSticky","_freeModeMinimumVelocity","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_slidesPerColumn","_slidesPerColumnFill","_slidesPerGroup","_slidesPerGroupSkip","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_watchSlidesVisibility","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function ry(n){n===void 0&&(n={});var e={on:{}},t={};ki(e,no.defaults),ki(e,no.extendedDefaults),e._emitClasses=!0,e.init=!1;var r={},i=S0.map(function(d){return d.replace(/_/,"")}),s=Object.assign({},n);return Object.keys(s).forEach(function(d){typeof n[d]>"u"||(i.indexOf(d)>=0?hs(n[d])?(e[d]={},t[d]={},ki(e[d],n[d]),ki(t[d],n[d])):(e[d]=n[d],t[d]=n[d]):d.search(/on[A-Z]/)===0&&typeof n[d]=="function"?e.on[""+d[2].toLowerCase()+d.substr(3)]=n[d]:r[d]=n[d])}),["navigation","pagination","scrollbar"].forEach(function(d){e[d]===!0&&(e[d]={}),e[d]===!1&&delete e[d]}),{params:e,passedParams:t,rest:r}}function bW(n){return new no(n)}function SW(n,e){var t=n.el,r=n.nextEl,i=n.prevEl,s=n.paginationEl,d=n.scrollbarEl,f=n.swiper;v0(e)&&r&&i&&(f.params.navigation.nextEl=r,f.originalParams.navigation.nextEl=r,f.params.navigation.prevEl=i,f.originalParams.navigation.prevEl=i),w0(e)&&s&&(f.params.pagination.el=s,f.originalParams.pagination.el=s),y0(e)&&d&&(f.params.scrollbar.el=d,f.originalParams.scrollbar.el=d),f.init(t)}function id(){return id=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},id.apply(this,arguments)}function _0(n,e){var t=e.slidesPerView;if(e.breakpoints){var r=no.prototype.getBreakpoint(e.breakpoints),i=r in e.breakpoints?e.breakpoints[r]:void 0;i&&i.slidesPerView&&(t=i.slidesPerView)}var s=Math.ceil(parseFloat(e.loopedSlides||t,10));return s+=e.loopAdditionalSlides,s>n.length&&(s=n.length),s}function _W(n,e,t){var r=e.map(function(o,u){return o.props||(o.props={}),o.props.swiperRef=n,o.props["data-swiper-slide-index"]=u,o});function i(o,u,p){return o.props||(o.props={}),c.h(o.type,id({},o.props,{key:o.key+"-duplicate-"+u+"-"+p,class:(o.props.className||"")+" "+t.slideDuplicateClass+" "+(o.props.class||"")}),o.children)}if(t.loopFillGroupWithBlank){var s=t.slidesPerGroup-r.length%t.slidesPerGroup;if(s!==t.slidesPerGroup)for(var d=0;d<s;d+=1){var f=c.h("div",{class:t.slideClass+" "+t.slideBlankClass});r.push(f)}}t.slidesPerView==="auto"&&!t.loopedSlides&&(t.loopedSlides=r.length);var l=_0(r,t),m=[],a=[];return r.forEach(function(o,u){u<l&&a.push(i(o,u,"prepend")),u<r.length&&u>=r.length-l&&m.push(i(o,u,"append"))}),n.value&&(n.value.loopedSlides=l),[].concat(m,r,a)}function CW(n,e,t,r){var i=[];if(!e)return i;var s=function(a){i.indexOf(a)<0&&i.push(a)},d=r.map(function(m){return m.props&&m.props.key}),f=t.map(function(m){return m.props&&m.props.key});d.join("")!==f.join("")&&i.push("children"),r.length!==t.length&&i.push("children");var l=S0.filter(function(m){return m[0]==="_"}).map(function(m){return m.replace(/_/,"")});return l.forEach(function(m){if(m in n&&m in e)if(hs(n[m])&&hs(e[m])){var a=Object.keys(n[m]),o=Object.keys(e[m]);a.length!==o.length?s(m):(a.forEach(function(u){n[m][u]!==e[m][u]&&s(m)}),o.forEach(function(u){n[m][u]!==e[m][u]&&s(m)}))}else n[m]!==e[m]&&s(m)}),i}function ff(n,e,t){n===void 0&&(n={});var r=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},s=function d(f,l){Array.isArray(f)&&f.forEach(function(m){var a=typeof m.type=="symbol";l==="default"&&(l="container-end"),a&&m.children?d(m.children,"default"):m.type&&(m.type.name==="SwiperSlide"||m.type.name==="AsyncComponentWrapper")?r.push(m):i[l]&&i[l].push(m)})};return Object.keys(n).forEach(function(d){var f=n[d]();s(f,d)}),t.value=e.value,e.value=r,{slides:r,slots:i}}function EW(n){var e=n.swiper,t=n.slides,r=n.passedParams,i=n.changedParams,s=n.nextEl,d=n.prevEl,f=n.paginationEl,l=n.scrollbarEl,m=i.filter(function(M){return M!=="children"&&M!=="direction"}),a=e.params,o=e.pagination,u=e.navigation,p=e.scrollbar,v=e.virtual,w=e.thumbs,b,_,E,$,x;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&a.thumbs&&!a.thumbs.swiper&&(b=!0),i.includes("controller")&&r.controller&&r.controller.control&&a.controller&&!a.controller.control&&(_=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||f)&&(a.pagination||a.pagination===!1)&&o&&!o.el&&(E=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(a.scrollbar||a.scrollbar===!1)&&p&&!p.el&&($=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||d)&&(r.navigation.nextEl||s)&&(a.navigation||a.navigation===!1)&&u&&!u.prevEl&&!u.nextEl&&(x=!0);var S=function(A){e[A]&&(e[A].destroy(),A==="navigation"?(a[A].prevEl=void 0,a[A].nextEl=void 0,e[A].prevEl=void 0,e[A].nextEl=void 0):(a[A].el=void 0,e[A].el=void 0))};if(m.forEach(function(M){if(hs(a[M])&&hs(r[M]))ki(a[M],r[M]);else{var A=r[M];(A===!0||A===!1)&&(M==="navigation"||M==="pagination"||M==="scrollbar")?A===!1&&S(M):a[M]=r[M]}}),i.includes("children")&&v&&a.virtual.enabled?(v.slides=t,v.update(!0)):i.includes("children")&&e.lazy&&e.params.lazy.enabled&&e.lazy.load(),b){var T=w.init();T&&w.update(!0)}_&&(e.controller.control=a.controller.control),E&&(f&&(a.pagination.el=f),o.init(),o.render(),o.update()),$&&(l&&(a.scrollbar.el=l),p.init(),p.updateSize(),p.setTranslate()),x&&(s&&(a.navigation.nextEl=s),d&&(a.navigation.prevEl=d),u.init(),u.update()),i.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&e.changeDirection(r.direction,!1),e.update()}function sd(){return sd=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},sd.apply(this,arguments)}function kW(n){!n||n.destroyed||!n.params.virtual||n.params.virtual&&!n.params.virtual.enabled||(n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),n.lazy&&n.params.lazy.enabled&&n.lazy.load(),n.parallax&&n.params.parallax&&n.params.parallax.enabled&&n.parallax.setTranslate())}function xW(n,e,t){var r;if(!t)return null;var i=n.value.isHorizontal()?(r={},r[n.value.rtlTranslate?"right":"left"]=t.offset+"px",r):{top:t.offset+"px"};return e.filter(function(s,d){return d>=t.from&&d<=t.to}).map(function(s){return s.props||(s.props={}),s.props.style||(s.props.style={}),s.props.swiperRef=n,s.props.style=i,c.h(s.type,sd({},s.props),s.children)})}var AW={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},freeMode:{type:Boolean,default:void 0},freeModeMomentum:{type:Boolean,default:void 0},freeModeMomentumRatio:{type:Number,default:void 0},freeModeMomentumBounce:{type:Boolean,default:void 0},freeModeMomentumBounceRatio:{type:Number,default:void 0},freeModeMomentumVelocityRatio:{type:Number,default:void 0},freeModeSticky:{type:Boolean,default:void 0},freeModeMinimumVelocity:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:Number,default:void 0},slidesPerView:{type:[Number,String],default:void 0},slidesPerColumn:{type:Number,default:void 0},slidesPerColumnFill:{type:String,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},watchSlidesVisibility:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},preloadImages:{type:Boolean,default:void 0},updateOnImagesReady:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopedSlides:{type:Number,default:void 0},loopFillGroupWithBlank:{type:Boolean,default:void 0},loopPreventsSlide:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideDuplicateActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideDuplicateClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slideDuplicateNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},slideDuplicatePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},lazy:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","imagesReady","init","keyPress","lazyImageLoad","lazyImageReady","lock","loopFix","momentumBounce","navigationHide","navigationShow","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","zoomChange"],setup:function(e,t){var r=t.slots,i=t.emit,s=e.tag,d=e.wrapperTag,f=c.ref("swiper-container"),l=c.ref(null),m=c.ref(!1),a=c.ref(!1),o=c.ref(null),u=c.ref(null),p=c.ref(null),v={value:[]},w={value:[]},b=c.ref(null),_=c.ref(null),E=c.ref(null),$=c.ref(null),x=ry(e),S=x.params,T=x.passedParams;ff(r,v,w),p.value=T,w.value=v.value;var M=function(){ff(r,v,w),m.value=!0};if(S.onAny=function(y){for(var k=arguments.length,O=new Array(k>1?k-1:0),N=1;N<k;N++)O[N-1]=arguments[N];i.apply(void 0,[y].concat(O))},Object.assign(S.on,{_beforeBreakpoint:M,_containerClasses:function(k,O){f.value=O}}),u.value=bW(S),u.value.loopCreate=function(){},u.value.loopDestroy=function(){},S.loop&&(u.value.loopedSlides=_0(v.value,S)),u.value.virtual&&u.value.params.virtual.enabled){u.value.virtual.slides=v.value;var A={cache:!1,renderExternal:function(k){l.value=k},renderExternalUpdate:!1};ki(u.value.params.virtual,A),ki(u.value.originalParams.virtual,A)}c.onUpdated(function(){!a.value&&u.value&&(u.value.emitSlidesClasses(),a.value=!0);var y=ry(e),k=y.passedParams,O=CW(k,p.value,v.value,w.value);p.value=k,(O.length||m.value)&&u.value&&!u.value.destroyed&&EW({swiper:u.value,slides:v.value,passedParams:k,changedParams:O,nextEl:b.value,prevEl:_.value,scrollbarEl:$.value,paginationEl:E.value}),m.value=!1}),c.watch(l,function(){c.nextTick(function(){kW(u.value)})}),c.onMounted(function(){o.value&&(SW({el:o.value,nextEl:b.value,prevEl:_.value,paginationEl:E.value,scrollbarEl:$.value,swiper:u.value},S),i("swiper",u.value))}),c.onBeforeUnmount(function(){u.value&&!u.value.destroyed&&u.value.destroy(!0,!1)});function R(y){return S.virtual?xW(u,y,l.value):!S.loop||u.value&&u.value.destroyed?(y.forEach(function(k){k.props||(k.props={}),k.props.swiperRef=u}),y):_W(u,y,S)}return function(){var y=ff(r,v,w),k=y.slides,O=y.slots;return c.h(s,{ref:o,class:b0(f.value)},[O["container-start"],v0(e)&&[c.h("div",{ref:_,class:"swiper-button-prev"}),c.h("div",{ref:b,class:"swiper-button-next"})],y0(e)&&c.h("div",{ref:$,class:"swiper-scrollbar"}),w0(e)&&c.h("div",{ref:E,class:"swiper-pagination"}),c.h(d,{class:"swiper-wrapper"},[O["wrapper-start"],R(k),O["wrapper-end"]]),O["container-end"]])}}},TW={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:Object,zoom:{type:Boolean,default:void 0},virtualIndex:{type:[String,Number],default:void 0}},setup:function(e,t){var r=t.slots,i=!1,s=e.swiperRef,d=c.ref(null),f=c.ref("swiper-slide");function l(a,o,u){o===d.value&&(f.value=u)}c.onMounted(function(){s.value&&(s.value.on("_slideClass",l),i=!0)}),c.onBeforeUpdate(function(){i||!s||!s.value||(s.value.on("_slideClass",l),i=!0)}),c.onUpdated(function(){!d.value||!s||!s.value||s.value.destroyed&&f.value!=="swiper-slide"&&(f.value="swiper-slide")}),c.onBeforeUnmount(function(){!s||!s.value||s.value.off("_slideClass",l)});var m=c.computed(function(){return{isActive:f.value.indexOf("swiper-slide-active")>=0||f.value.indexOf("swiper-slide-duplicate-active")>=0,isVisible:f.value.indexOf("swiper-slide-visible")>=0,isDuplicate:f.value.indexOf("swiper-slide-duplicate")>=0,isPrev:f.value.indexOf("swiper-slide-prev")>=0||f.value.indexOf("swiper-slide-duplicate-prev")>=0,isNext:f.value.indexOf("swiper-slide-next")>=0||f.value.indexOf("swiper-slide-duplicate-next")>=0}});return function(){return c.h(e.tag,{class:b0(""+f.value),ref:d,"data-swiper-slide-index":e.virtualIndex},e.zoom?c.h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},r.default&&r.default(m.value)):r.default&&r.default(m.value))}}};const $W={slides:{type:Array,default:()=>[]},navigation:{type:Boolean,default:!1},overflow:{type:Boolean,default:!1},slidesPerView:{type:String,default:"auto"},spaceBetweenSlides:{type:Number,default:10}},OW={class:"vc-slider tw-relative"},LW={class:"vc-slider__prev tw-left-0"},MW={class:"vc-slider__btn"},RW={class:"vc-slider__next tw-right-0"},NW={class:"vc-slider__btn"},IW=c.defineComponent({__name:"vc-slider",props:$W,setup(n){no.use([yW]);const e=c.computed(()=>({nextEl:".vc-slider__next",prevEl:".vc-slider__prev"}));return(t,r)=>{const i=c.resolveComponent("VcIcon");return c.openBlock(),c.createElementBlock("div",OW,[c.createVNode(c.unref(AW),{class:c.normalizeClass(["vc-slider__swiper",{"tw-overflow-visible":t.overflow,"tw-px-[40px]":t.navigation}]),"space-between":t.spaceBetweenSlides,navigation:c.unref(e),slidesPerView:t.slidesPerView,resizeObserver:!0},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.slides,(s,d)=>(c.openBlock(),c.createBlock(c.unref(TW),{"swiper-ref":c.unref(no),key:d},{default:c.withCtx(()=>[c.renderSlot(t.$slots,"default",{slide:s},void 0,!0)]),_:2},1032,["swiper-ref"]))),128))]),_:3},8,["class","space-between","navigation","slidesPerView"]),c.withDirectives(c.createElementVNode("div",null,[c.createElementVNode("div",LW,[c.renderSlot(t.$slots,"prevBtn",{},()=>[c.createElementVNode("div",MW,[c.createVNode(i,{icon:"fas fa-chevron-left"})])],!0)]),c.createElementVNode("div",RW,[c.renderSlot(t.$slots,"nextBtn",{},()=>[c.createElementVNode("div",NW,[c.createVNode(i,{icon:"fas fa-chevron-right"})])],!0)])],512),[[c.vShow,t.navigation]])])}}});const DW=ku(IW,[["__scopeId","data-v-7b5e8575"]]),C0=DW,PW={placeholder:{type:String,default:""},modelValue:String,required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:String,tooltip:String,name:{type:String,default:"Field"},maxchars:{type:String,default:"1024"},errorMessage:String},BW={"update:modelValue":n=>rs(n)},FW=["innerHTML"],VW={class:"vc-textarea__field-wrapper"},UW=["placeholder","value","disabled","maxlength"],WW=c.defineComponent({__name:"vc-textarea",props:PW,emits:BW,setup(n,{emit:e}){const t=n;c.watch(()=>t.modelValue,i=>{e("update:modelValue",i)});function r(i){const s=i.target.value;e("update:modelValue",s)}return(i,s)=>{const d=c.resolveComponent("VcHint");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-textarea",{"vc-textarea_error":i.errorMessage,"vc-textarea_disabled":i.disabled}])},[i.label?(c.openBlock(),c.createBlock(c.unref(fs),{key:0,class:"tw-mb-2",required:i.required},c.createSlots({default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(i.label),1)]),_:2},[i.tooltip?{name:"tooltip",fn:c.withCtx(()=>[c.createElementVNode("span",{innerHTML:i.tooltip},null,8,FW)]),key:"0"}:void 0]),1032,["required"])):c.createCommentVNode("",!0),c.createElementVNode("div",VW,[c.createElementVNode("textarea",{class:"vc-textarea__field",placeholder:i.placeholder,value:i.modelValue,disabled:i.disabled,onInput:r,maxlength:i.maxchars},null,40,UW)]),i.errorMessage?c.renderSlot(i.$slots,"error",{key:1},()=>[c.createVNode(d,{class:"vc-textarea__error"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(i.errorMessage),1)]),_:1})]):c.createCommentVNode("",!0)],2)}}});const gp=WW,HW={class:"tw-relative tw-flex tw-items-center tw-content-between tw-h-[var(--app-bar-height)] tw-bg-[color:var(--app-bar-background-color)] tw-pl-4"},zW=["src"],jW={key:0,class:"tw-text-[color:var(--app-bar-product-name-color)] tw-text-[length:var(--app-bar-product-name-size)] tw-font-medium"},GW={key:0,class:"tw-overflow-ellipsis tw-overflow-hidden tw-whitespace-nowrap tw-text-2xl tw-leading-header"},YW={class:"tw-ml-2 tw-text-lg"},JW=c.createElementVNode("div",{class:"tw-grow tw-basis-0 tw-basis-0"},null,-1),KW={class:"tw-flex tw-h-full tw-box-border"},XW=["title","onClick"],qW=c.defineComponent({__name:"vc-app-bar",props:{logo:{default:""},blades:{default:()=>[]},buttons:{default:()=>[]},title:null},emits:["logo:click","backlink:click","toolbarbutton:click","menubutton:click"],setup(n){return(e,t)=>{const r=c.resolveComponent("VcLink");return c.openBlock(),c.createElementBlock("div",HW,[c.renderSlot(e.$slots,"appSwitcher"),!e.$isMobile.value||n.blades.length===0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("img",{class:"tw-h-1/2 tw-cursor-pointer tw-mx-3",alt:"logo",src:n.logo,onClick:t[0]||(t[0]=i=>e.$emit("logo:click"))},null,8,zW),n.title?(c.openBlock(),c.createElementBlock("div",jW,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),e.$isMobile.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[n.blades.length===1?(c.openBlock(),c.createElementBlock("div",GW,c.toDisplayString(n.blades[0].title),1)):n.blades.length>1?(c.openBlock(),c.createBlock(r,{key:1,onClick:t[1]||(t[1]=i=>e.$emit("backlink:click"))},{default:c.withCtx(()=>[c.createVNode(c.unref(Ye),{icon:"fas fa-chevron-left",size:"s"}),c.createElementVNode("span",YW,c.toDisplayString(e.$t("Back")),1)]),_:1})):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0),JW,c.createElementVNode("div",KW,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.buttons,(i,s)=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:s},[i.isVisible===void 0||i.isVisible?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[i.component?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(i.component),c.mergeProps({key:0},i.bladeOptions,{isAccent:i.isAccent}),null,16,["isAccent"])):(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(["tw-relative tw-flex tw-items-center tw-justify-center tw-w-[var(--app-bar-button-width)] tw-border-l tw-border-solid tw-border-[color:var(--app-bar-button-border-color)] tw-cursor-pointer tw-text-[color: var(--app-bar-button-color)] tw-bg-[color:var(--app-bar-button-background-color)] tw-transition-[color] tw-duration-200 hover:tw-text-[color:var(--app-bar-button-color-hover)] hover:tw-bg-[color:var(--app-bar-button-background-color-hover)]",{"vc-app-bar__button_accent":i.isAccent}]),title:i.title,onClick:d=>e.$emit("button:click",i)},[c.createVNode(c.unref(Ye),{icon:typeof i.icon=="function"?i.icon():i.icon,size:"xl"},null,8,["icon"])],10,XW))],64)):c.createCommentVNode("",!0)],64))),128))]),e.$isMobile.value?(c.openBlock(),c.createElementBlock("div",{key:2,class:"tw-text-[#319ed4] tw-w-[var(--app-bar-button-width)] tw-flex tw-items-center tw-justify-center tw-h-full tw-box-border tw-cursor-pointer",onClick:t[2]||(t[2]=i=>e.$emit("menubutton:click"))},[c.createVNode(c.unref(Ye),{icon:"fas fa-bars"})])):c.createCommentVNode("",!0)])}}});const ZW={key:0,class:"vc-app-menu-item__icon"},QW={class:"vc-app-menu-item__title"},iy=c.defineComponent({__name:"vc-app-menu-link",props:{isActive:{type:Boolean,default:!1},children:{default:()=>({})},sticky:{type:Boolean,default:!0},icon:{default:""},title:{default:""}},emits:["onClick"],setup(n){return(e,t)=>{const r=c.resolveComponent("VcIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-app-menu-item",[{"vc-app-menu-item_active":n.isActive&&!Object.keys(n.children).length},{"vc-app-menu-item_no-hover":Object.keys(n.children).length}]]),onClick:t[0]||(t[0]=i=>e.$emit("onClick"))},[c.createElementVNode("div",{class:c.normalizeClass(["vc-app-menu-item__handler",{"vc-app-menu-item__handler_enabled":!n.sticky}])},[c.createVNode(r,{icon:"fas fa-ellipsis-v",size:"m"})],2),n.icon?(c.openBlock(),c.createElementBlock("div",ZW,[c.createVNode(r,{icon:n.icon,size:"m"},null,8,["icon"])])):c.createCommentVNode("",!0),c.createElementVNode("div",QW,[c.createTextVNode(c.toDisplayString(n.title)+" ",1),Object.keys(n.children).length?(c.openBlock(),c.createBlock(r,{key:0,class:"vc-app-menu-item__title-icon",icon:"fas fa-chevron-down",size:"xs"})):c.createCommentVNode("",!0)])],2)}}});const eH={key:0,class:"vc-app-menu-item__child"},tH=["onClick"],nH=c.defineComponent({__name:"vc-app-menu-item",props:{sticky:{type:Boolean,default:!0},isVisible:{type:Boolean,default:!1},component:{default:void 0},bladeOptions:{default:()=>({})},clickHandler:{type:Function,default:void 0},icon:null,title:null,children:{default:()=>[]},isCollapsed:{type:Boolean,default:!0}},emits:["click","child:click"],setup(n,{emit:e}){const t=n,r=Zo.useRoute(),i=c.ref(!1),s=c.computed(()=>r.path==="/");c.onMounted(()=>{t.children&&t.children.length&&t.children.find(f=>f.component?.url===r?.path)&&(i.value=!0)});function d(f){t.children?.length?i.value=!i.value:e("click",f)}return(f,l)=>{const m=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("div",null,[n.component&&n.component.url?(c.openBlock(),c.createBlock(m,{key:0,to:n.component.url,custom:""},{default:c.withCtx(({isActive:a,navigate:o})=>[c.createVNode(iy,{isActive:a,children:n.children,sticky:n.sticky,icon:n.icon,title:n.title,onOnClick:u=>d(()=>o(u))},null,8,["isActive","children","sticky","icon","title","onOnClick"])]),_:1},8,["to"])):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createVNode(iy,{children:n.children,sticky:n.sticky,icon:n.icon,title:n.title,onOnClick:d,isActive:c.unref(s)},null,8,["children","sticky","icon","title","isActive"]),i.value?(c.openBlock(),c.createElementBlock("div",eH,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.children,(a,o)=>(c.openBlock(),c.createBlock(m,{key:o,to:a.component.url,custom:""},{default:c.withCtx(({isActive:u,navigate:p})=>[a.isVisible===void 0||a.isVisible?(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([{"vc-app-menu-item__child-item_active":u},"vc-app-menu-item__child-item"]),key:o,onClick:v=>f.$emit("child:click",{item:a,navigationCb:p})},c.toDisplayString(a.title),11,tH)):c.createCommentVNode("",!0)]),_:2},1032,["to"]))),128))])):c.createCommentVNode("",!0)],64))])}}});const rH={class:"vc-app-menu__inner tw-flex tw-flex-col tw-h-full"},iH={key:0,class:"tw-text-[#319ed4] tw-flex tw-justify-end tw-items-center tw-p-4"},sH={class:"tw-gap-[5px] tw-flex tw-flex-col tw-px-4 tw-h-full"},oH=c.defineComponent({__name:"vc-app-menu",props:{items:{default:()=>[]},mobileMenuItems:{default:()=>[]},version:{default:""}},emits:["item:click","version:click"],setup(n,{expose:e}){const t=c.ref(!1);return e({isMobileVisible:t}),(r,i)=>{const s=c.resolveComponent("VcIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["tw-relative tw-w-[var(--app-menu-width)] tw-transition tw-duration-100 tw-pt-4",{"vc-app-menu_mobile tw-hidden !tw-fixed !tw-left-0 !tw-top-0 !tw-w-full !tw-bottom-0 !tw-z-[9999]":r.$isMobile.value,"!tw-block":t.value}])},[r.$isMobile.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:"tw-absolute tw-left-0 tw-top-0 tw-right-0 tw-bottom-0 tw-z-[9998] tw-bg-[#808c99] tw-opacity-60",onClick:i[0]||(i[0]=d=>t.value=!1)})):c.createCommentVNode("",!0),c.createElementVNode("div",rH,[r.$isMobile.value?(c.openBlock(),c.createElementBlock("div",iH,[c.createVNode(s,{icon:"fas fa-times",size:"xl",onClick:i[1]||(i[1]=d=>t.value=!1)})])):c.createCommentVNode("",!0),c.createVNode(c.unref(io),{noPadding:!0,class:"tw-grow tw-basis-0"},{default:c.withCtx(()=>[c.createElementVNode("div",sH,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.mobileMenuItems,(d,f)=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:`info_item_${f}`},[d.isVisible===void 0||d.isVisible?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[d.component?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(d.component),c.mergeProps({key:0},d.bladeOptions,{class:"tw-p-0 tw-mb-2 tw-w-full tw-h-auto"}),null,16)):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0)],64))),128)),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.items,(d,f)=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:f},[d.isVisible===void 0||d.isVisible?(c.openBlock(),c.createBlock(nH,c.mergeProps({key:0},d,{isVisible:d.isVisible,title:d.title,onClick:l=>{r.$emit("item:click",{item:d,navigationCb:l}),t.value=!1},"onChild:click":i[2]||(i[2]=({item:l,navigationCb:m})=>{r.$emit("item:click",{item:l,navigationCb:m}),t.value=!1})}),null,16,["isVisible","title","onClick"])):c.createCommentVNode("",!0)],64))),128)),c.createElementVNode("div",{class:"tw-text-[color:var(--app-menu-version-color)] tw-text-xs tw-mt-auto tw-self-center tw-p-1",onClick:i[3]||(i[3]=d=>r.$emit("version:click"))},c.toDisplayString(n.version),1)])]),_:1})])],2)}}});const aH={pages:{type:Array,default:()=>[]},menuItems:{type:Array,default:()=>[]},mobileMenuItems:{type:Array,default:()=>[]},toolbarItems:{type:Array,default:()=>[]},isReady:{type:Boolean,default:!1},isAuthorized:{type:Boolean,default:!1},logo:{type:String,default:void 0},version:{type:String,default:void 0},theme:{type:String,default:"light"},bladesRefs:{type:Array,default:()=>[]},title:String},lH={open:n=>es(n),close:n=>Li(n),"backlink:click":n=>Li(n)},uH={class:"tw-overflow-hidden tw-flex tw-grow tw-basis-0"},cH={class:"vc-app__workspace tw-px-2 tw-w-full tw-overflow-hidden !tw-flex tw-grow tw-basis-0"},hH={class:"[pointer-events:painted] tw-absolute tw-flex tw-z-[1000] tw-overflow-hidden tw-top-0 tw-left-2/4 -tw-translate-x-2/4 tw-flex-col tw-items-center tw-p-2 tw-box-border"},fH=c.defineComponent({inheritAttrs:!1}),dH=c.defineComponent({...fH,__name:"vc-app",props:aH,emits:lH,setup(n,{expose:e,emit:t}){console.debug("vc-app: Init vc-app");const r=c.getCurrentInstance(),i=Zo.useRouter(),s=function({item:l,navigationCb:m}){console.debug("vc-app#onMenuItemClick() called."),l.clickHandler&&typeof l.clickHandler=="function"?l.clickHandler(r?.exposed):t("open",{parentBlade:l.component,id:0,navigationCb:m})},d=function(l){console.debug("vc-app#onToolbarButtonClick() called."),l.clickHandler&&typeof l.clickHandler=="function"&&l.clickHandler(r?.proxy)},f=async()=>{console.debug("openDashboard() called."),await t("close",0),i.push("/")};return e({openDashboard:f,onToolbarButtonClick:d,onMenuItemClick:s}),(l,m)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-app tw-flex tw-flex-col tw-w-full tw-h-full tw-box-border tw-m-0 tw-overflow-hidden tw-text-base",[`vc-theme_${l.theme}`,{"vc-app_touch":l.$isTouch,"vc-app_phone":l.$isPhone.value,"vc-app_mobile":l.$isMobile.value}]])},[c.createVNode(qW,{class:"tw-shrink-0",logo:l.logo,blades:l.bladesRefs,buttons:l.toolbarItems,"onToolbarbutton:click":d,"onMenubutton:click":m[0]||(m[0]=a=>l.$refs.menu.isMobileVisible=!0),"onBacklink:click":m[1]||(m[1]=a=>l.$emit("backlink:click",l.bladesRefs.length-2)),"onLogo:click":f,title:l.title},{appSwitcher:c.withCtx(()=>[c.renderSlot(l.$slots,"appSwitcher")]),_:3},8,["logo","blades","buttons","title"]),c.createElementVNode("div",uH,[c.createVNode(oH,{ref:"menu",class:"tw-shrink-0",items:l.menuItems,version:l.version,mobileMenuItems:l.mobileMenuItems,"onItem:click":s},null,8,["items","version","mobileMenuItems"]),c.createElementVNode("div",cH,[c.renderSlot(l.$slots,"bladeNavigation")]),c.createElementVNode("div",hH,[c.renderSlot(l.$slots,"notifications")]),c.createElementVNode("div",null,[c.renderSlot(l.$slots,"passwordChange")])])],2))}});const E0=dH,pH={class:"tw-shrink-0 tw-h-[var(--blade-header-height)] tw-bg-[color:var(--blade-header-background-color)] tw-flex tw-items-center tw-py-0 tw-px-4 tw-border-solid tw-border-b tw-border-b-[color:#eaedf3]"},mH={key:0,class:"tw-text-[color:var(--blade-header-icon-color)] tw-mr-3"},gH={class:"tw-overflow-hidden tw-grow tw-basis-0"},vH={key:0,class:"tw-text-[color:var(--blade-header-subtitle-color)] tw-text-xs tw-mt-1"},wH={key:1},yH={key:2,class:"tw-flex tw-items-center"},bH=c.defineComponent({__name:"vc-blade-header",props:{expandable:{type:[Boolean,null],default:!1},expanded:{type:[Boolean,null],default:!1},closable:{type:[Boolean,null],default:!1},title:null,subtitle:null,icon:null},emits:["close","expand","collapse"],setup(n,{emit:e}){const t=n;function r(){t.expandable&&e("expand")}function i(){t.expandable&&e("collapse")}function s(){t.closable&&e("close")}return(d,f)=>(c.openBlock(),c.createElementBlock("div",pH,[n.icon?(c.openBlock(),c.createElementBlock("div",mH,[c.createVNode(c.unref(Ye),{icon:n.icon,size:"xxl"},null,8,["icon"])])):c.createCommentVNode("",!0),c.createElementVNode("div",gH,[c.createElementVNode("div",{class:c.normalizeClass(["tw-text-[color:var(--blade-header-title-color)] tw-text-lg tw-truncate",{"!tw-text-[length:var(--blade-header-title-font-size)] tw-font-medium":!n.subtitle}])},c.toDisplayString(n.title),3),n.subtitle?(c.openBlock(),c.createElementBlock("div",vH,c.toDisplayString(n.subtitle),1)):c.createCommentVNode("",!0)]),d.$slots.actions?(c.openBlock(),c.createElementBlock("div",wH,[c.renderSlot(d.$slots,"actions")])):c.createCommentVNode("",!0),d.$isMobile.value?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",yH,[n.expandable?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[n.expanded?(c.openBlock(),c.createElementBlock("div",{key:0,class:"tw-text-[color:var(--blade-header-button-color)] tw-ml-4 tw-cursor-pointer hover:tw-text-[color:var(--blade-header-button-color-hover)]",onClick:i},[c.createVNode(c.unref(Ye),{icon:"fas fa-window-minimize",size:"s"})])):(c.openBlock(),c.createElementBlock("div",{key:1,class:"vc-blade-header__button",onClick:r},[c.createVNode(c.unref(Ye),{icon:"fas fa-window-maximize",size:"s"})]))],64)):c.createCommentVNode("",!0),n.closable?(c.openBlock(),c.createElementBlock("div",{key:1,class:"tw-text-[color:var(--blade-header-button-color)] tw-ml-4 tw-cursor-pointer hover:tw-text-[color:var(--blade-header-button-color-hover)]",onClick:s},[c.createVNode(c.unref(Ye),{icon:"fas fa-times"})])):c.createCommentVNode("",!0)]))]))}});const SH=["title"],_H={key:0,class:"vc-blade-toolbar-button__title"},CH=["onClick"],EH=c.defineComponent({inheritAttrs:!1}),kH=c.defineComponent({...EH,__name:"vc-blade-toolbar-button",props:{isExpanded:{type:Boolean,default:!0},icon:{type:[String,Function],default:"fas fa-question-circle"},title:{default:void 0},bladeOptions:null,disabled:{type:Boolean,default:!1},dropdownItems:{default:()=>[]},clickHandler:{type:Function,default:void 0}},emits:["click"],setup(n,{emit:e}){const t=n,r=c.ref(),i=c.ref(!1),s=c.ref(!1),d=c.ref(),f=c.ref(),l=c.ref();async function m(){if(console.debug("vc-blade-toolbar-item#onClick()"),!t.disabled&&!i.value)if(t.clickHandler&&typeof t.clickHandler=="function"){i.value=!0;try{await t.clickHandler()}finally{i.value=!1}}else t.dropdownItems?.length?a():e("click")}function a(){t.dropdownItems?.length&&(s.value?(s.value=!1,r.value?.destroy()):(s.value=!0,c.nextTick(()=>{r.value=wc(d.value,l.value,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[70,5]}}]})})))}function o(u){u.clickHandler&&typeof u.clickHandler=="function"&&(u.clickHandler(),a())}return(u,p)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-blade-toolbar-button",{"vc-blade-toolbar-button_disabled":n.disabled||i.value}]),onClick:m,title:n.title},[c.createElementVNode("div",{ref_key:"dropButtonRef",ref:f},[c.createElementVNode("div",{class:"vc-blade-toolbar-button__wrap",ref_key:"bladeDropToggle",ref:d},[c.createVNode(c.unref(Ye),{class:"vc-blade-toolbar-button__icon",icon:n.icon,size:"m"},null,8,["icon"]),n.isExpanded?(c.openBlock(),c.createElementBlock("div",_H,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0)],512),(c.openBlock(),c.createBlock(c.Teleport,{to:"#app"},[s.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:"vc-blade-toolbar-button__dropdown",ref_key:"bladeDropRef",ref:l},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.dropdownItems,(v,w)=>(c.openBlock(),c.createElementBlock("div",{class:"vc-blade-toolbar-button__dropdown-item",key:w,onClick:b=>o(v)},[c.createVNode(c.unref(Ye),{icon:v.icon,class:"vc-blade-toolbar-button__dropdown-item-icon"},null,8,["icon"]),c.createTextVNode(" "+c.toDisplayString(v.title),1)],8,CH))),128))],512)):c.createCommentVNode("",!0)]))],512)],10,SH))}});const xH={class:"tw-grow tw-basis-0 tw-flex tw-content-start tw-items-center tw-overflow-x-auto tw-px-2"},AH=c.defineComponent({__name:"vc-blade-toolbar",props:{items:{default:()=>[]}},setup(n){const e=n,t=c.ref(!0);try{t.value=localStorage.getItem("VC_BLADE_TOOLBAR_IS_EXPANDED")==="true"}catch{t.value=!0}function r(){t.value=!t.value,localStorage.setItem("VC_BLADE_TOOLBAR_IS_EXPANDED",t.value.toString())}function i(){return!!e.items.filter(d=>d.isVisible===void 0||d.isVisible).length}return(s,d)=>{const f=c.resolveComponent("VcIcon");return i()?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["tw-h-[var(--blade-toolbar-height)] tw-bg-[color:var(--blade-toolbar-background-color)] tw-border-b-[color:#eaedf3] tw-border-solid tw-border-b tw-flex tw-box-border tw-w-full tw-content-center tw-items-stretch tw-shrink-0",{"!tw-h-[var(--blade-toolbar-height-expanded)]":t.value}])},[c.createElementVNode("div",xH,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.items,l=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:l.id},[l.isVisible===void 0||l.isVisible?(c.openBlock(),c.createBlock(kH,{key:0,isExpanded:t.value,icon:l.icon,title:l.title,bladeOptions:l.bladeOptions,disabled:l.disabled,dropdownItems:l.dropdownItems,clickHandler:l.clickHandler},null,8,["isExpanded","icon","title","bladeOptions","disabled","dropdownItems","clickHandler"])):c.createCommentVNode("",!0)],64))),128))]),c.createVNode(f,{class:"tw-self-center tw-justify-self-center tw-text-[#a1c0d4] tw-cursor-pointer tw-mr-4 hover:tw-text-[#7ea8c4]",icon:`fas fa-chevron-${t.value?"up":"down"}`,onClick:r},null,8,["icon"])],2)):c.createCommentVNode("",!0)}}});const TH={icon:String,title:String,subtitle:String,width:{type:[Number,String],default:"30%"},expanded:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},toolbarItems:{type:Array,default:()=>[]}},$H={close:()=>!0},OH=c.defineComponent({inheritAttrs:!1}),LH=c.defineComponent({...OH,__name:"vc-blade",props:TH,emits:$H,setup(n){return(e,t)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-blade tw-relative tw-flex tw-shrink-0 tw-flex-col tw-bg-[color:var(--blade-background-color)] tw-rounded-[var(--blade-border-radius)] tw-shadow-[2px_2px_8px_rgba(126,142,157,0.14)] tw-my-4 tw-mx-2 tw-overflow-hidden tw-transition-[width] tw-duration-200",[e.$attrs.class,{"!tw-w-full !tw-shrink":e.$isMobile.value||e.expanded}]]),style:c.normalizeStyle({width:typeof e.width=="number"?`${e.width}px`:e.width})},[!e.$isMobile.value||e.closable?(c.openBlock(),c.createBlock(bH,{key:0,class:"tw-shrink-0",expanded:e.expanded,closable:e.closable,icon:e.icon,title:e.title,subtitle:e.subtitle,onClose:t[0]||(t[0]=r=>e.$emit("close"))},c.createSlots({_:2},[e.$slots.actions?{name:"actions",fn:c.withCtx(()=>[c.renderSlot(e.$slots,"actions")]),key:"0"}:void 0]),1032,["expanded","closable","icon","title","subtitle"])):c.createCommentVNode("",!0),c.createVNode(AH,{class:"tw-shrink-0",items:e.toolbarItems},null,8,["items"]),c.renderSlot(e.$slots,"default")],6))}});const vp=LH,MH={property:Object,dictionaries:Object,getter:Function,optionsGetter:Function,setter:Function,culture:{type:String,default:"en-US"},disabled:{type:Boolean,default:!1}},RH=c.defineComponent({__name:"vc-dynamic-property",props:MH,setup(n){const e=n,{locale:t,te:r,t:i}=Dd(),s={},d=c.ref([]),f=c.computed(()=>d.value?.some(o=>o.alias)?"alias":"name"),l=c.computed(()=>{let o;const u=e.property.displayNames?.find(p=>p.languageCode?.toLowerCase().startsWith(t.value?.toLowerCase()));if(u&&u.name)o=u.name;else{const p=e.property.displayNames?.find(v=>v.languageCode?.toLowerCase().includes(e.culture?.toLowerCase()));o=p&&p?.name?p.name:e.property.name}return o&&r(o.toUpperCase())?i(o.toUpperCase()):o});c.onMounted(async()=>{e.optionsGetter&&(d.value=await e.optionsGetter(e.property))}),(e.property.required||e.property.isRequired)&&(s.required=!0),e.property.validationRule?.charCountMin&&(s.min=Number(e.property.validationRule.charCountMin)),e.property.validationRule?.charCountMax&&(s.max=Number(e.property.validationRule.charCountMax)),e.property.validationRule?.regExp&&(s.regex=new RegExp(e.property.validationRule?.regExp));async function m(o){e.optionsGetter&&(d.value=await e.optionsGetter(e.property,o))}async function a(){e.optionsGetter&&(d.value=await e.optionsGetter(e.property))}return(o,u)=>{const p=c.resolveComponent("VcSelect"),v=c.resolveComponent("VcInput"),w=c.resolveComponent("VcTextarea"),b=c.resolveComponent("VcCheckbox"),_=c.resolveComponent("VcEditor");return(o.property.dictionary||o.property.isDictionary)&&!o.property.multivalue?(c.openBlock(),c.createBlock(c.unref(Zt.Field),{key:0,label:c.unref(l)||o.property.displayName,name:o.property.displayName||o.property.name,modelValue:o.getter(o.property,!0),rules:s},{default:c.withCtx(({errorMessage:E,handleChange:$,errors:x})=>[c.createVNode(p,c.mergeProps(o.$attrs,{error:!!x.length,"error-message":E,label:c.unref(l)||o.property.displayName,modelValue:o.getter(o.property,!0),"onUpdate:modelValue":S=>{$(S),o.setter(o.property,S,d.value)},required:o.property.required||o.property.isRequired,placeholder:c.unref(l)||o.property.defaultValue,options:d.value,"option-value":"id","option-label":c.unref(f),disabled:o.disabled,searchable:"",onSearch:m,onClose:a}),null,16,["error","error-message","label","modelValue","onUpdate:modelValue","required","placeholder","options","option-label","disabled"])]),_:1},8,["label","name","modelValue"])):o.property.valueType==="ShortText"&&o.property.multivalue&&!(o.property.dictionary||o.property.isDictionary)?(c.openBlock(),c.createBlock(c.unref(Zt.Field),{key:1,label:c.unref(l),name:o.property.name,modelValue:o.property.values,rules:s},{default:c.withCtx(({errorMessage:E,handleChange:$,errors:x})=>[c.createVNode(p,c.mergeProps(o.$attrs,{error:!!x.length,"error-message":E,label:c.unref(l),modelValue:o.property.values,"onUpdate:modelValue":S=>{$(S),o.setter(o.property,S)},required:o.property.required||o.property.isRequired,placeholder:"Add value",disabled:o.disabled,multiple:!0}),null,16,["error","error-message","label","modelValue","onUpdate:modelValue","required","disabled"])]),_:1},8,["label","name","modelValue"])):o.property.valueType==="ShortText"&&o.property.multivalue&&(o.property.dictionary||o.property.isDictionary)?(c.openBlock(),c.createBlock(c.unref(Zt.Field),{key:2,label:c.unref(l),name:o.property.name,modelValue:o.property.values,rules:s},{default:c.withCtx(({errorMessage:E,handleChange:$,errors:x})=>[c.createVNode(p,c.mergeProps(o.$attrs,{error:!!x.length,"error-message":E,label:c.unref(l),modelValue:o.property.values,"onUpdate:modelValue":S=>{$(S),o.setter(o.property,S,d.value)},required:o.property.required||o.property.isRequired,placeholder:"Add value",disabled:o.disabled,options:d.value,"option-label":"alias","option-value":"id",onSearch:m,onClose:a,multiple:o.property.multivalue}),null,16,["error","error-message","label","modelValue","onUpdate:modelValue","required","disabled","options","multiple"])]),_:1},8,["label","name","modelValue"])):o.property.valueType==="ShortText"?(c.openBlock(),c.createBlock(c.unref(Zt.Field),{key:3,label:c.unref(l)||o.property.displayName,name:o.property.displayName||o.property.name,modelValue:o.getter(o.property),rules:s},{default:c.withCtx(({errorMessage:E,handleChange:$,errors:x})=>[c.createVNode(v,c.mergeProps(o.$attrs,{error:!!x.length,"error-message":E,label:c.unref(l)||o.property.displayName,modelValue:o.getter(o.property),"onUpdate:modelValue":S=>{$(S),o.setter(o.property,S)},clearable:"",required:o.property.required||o.property.isRequired,placeholder:c.unref(l)||"Add value",disabled:o.disabled}),null,16,["error","error-message","label","modelValue","onUpdate:modelValue","required","placeholder","disabled"])]),_:1},8,["label","name","modelValue"])):o.property.valueType==="Number"&&o.property.multivalue?(c.openBlock(),c.createBlock(c.unref(Zt.Field),{key:4,label:c.unref(l),name:o.property.name,modelValue:o.property.values,rules:s},{default:c.withCtx(({errorMessage:E,handleChange:$,errors:x})=>[c.createVNode(p,c.mergeProps(o.$attrs,{label:c.unref(l),modelValue:o.property.values,"onUpdate:modelValue":S=>{$(S),o.setter(o.property,S)},type:"number",required:o.property.required||o.property.isRequired,placeholder:"Add value",disabled:o.disabled,error:!!x.length,"error-message":E,options:d.value,"option-value":"id","option-label":c.unref(f),multiple:""}),null,16,["label","modelValue","onUpdate:modelValue","required","disabled","error","error-message","options","option-label"])]),_:1},8,["label","name","modelValue"])):o.property.valueType==="Number"?(c.openBlock(),c.createBlock(c.unref(Zt.Field),{key:5,label:c.unref(l),name:o.property.name,modelValue:o.getter(o.property),rules:s},{default:c.withCtx(({errorMessage:E,handleChange:$,errors:x})=>[c.createVNode(v,c.mergeProps(o.$attrs,{error:!!x.length,"error-message":E,label:c.unref(l),modelValue:o.getter(o.property),"onUpdate:modelValue":S=>{$(S),o.setter(o.property,S)},clearable:"",type:"number",required:o.property.required||o.property.isRequired,placeholder:c.unref(l)||o.property.defaultValue,disabled:o.disabled}),null,16,["error","error-message","label","modelValue","onUpdate:modelValue","required","placeholder","disabled"])]),_:1},8,["label","name","modelValue"])):o.property.valueType==="Integer"?(c.openBlock(),c.createBlock(c.unref(Zt.Field),{key:6,label:c.unref(l),name:o.property.name,modelValue:o.getter(o.property),rules:s},{default:c.withCtx(({errorMessage:E,handleChange:$,errors:x})=>[c.createVNode(v,c.mergeProps(o.$attrs,{error:!!x.length,"error-message":E,label:c.unref(l),modelValue:o.getter(o.property),"onUpdate:modelValue":S=>{$(S),o.setter(o.property,S)},clearable:"",type:"number",step:"1",required:o.property.required||o.property.isRequired,placeholder:c.unref(l)||o.property.defaultValue,disabled:o.disabled}),null,16,["error","error-message","label","modelValue","onUpdate:modelValue","required","placeholder","disabled"])]),_:1},8,["label","name","modelValue"])):o.property.valueType==="DateTime"?(c.openBlock(),c.createBlock(c.unref(Zt.Field),{key:7,label:c.unref(l),name:o.property.name,modelValue:o.getter(o.property),rules:s},{default:c.withCtx(({errorMessage:E,handleChange:$,errors:x})=>[c.createVNode(v,c.mergeProps(o.$attrs,{error:!!x.length,"error-message":E,label:c.unref(l),modelValue:o.getter(o.property),"onUpdate:modelValue":S=>{$(S),o.setter(o.property,S)},type:"datetime-local",required:o.property.required||o.property.isRequired,placeholder:c.unref(l)||o.property.defaultValue,disabled:o.disabled}),null,16,["error","error-message","label","modelValue","onUpdate:modelValue","required","placeholder","disabled"])]),_:1},8,["label","name","modelValue"])):o.property.valueType==="LongText"?(c.openBlock(),c.createBlock(c.unref(Zt.Field),{key:8,label:c.unref(l),name:o.property.name,modelValue:o.getter(o.property),rules:s},{default:c.withCtx(({errorMessage:E,handleChange:$})=>[c.createVNode(w,c.mergeProps(o.$attrs,{"error-message":E,label:c.unref(l),modelValue:o.getter(o.property),"onUpdate:modelValue":x=>{$(x),o.setter(o.property,x)},required:o.property.required||o.property.isRequired,placeholder:c.unref(l)||o.property.defaultValue,disabled:o.disabled}),null,16,["error-message","label","modelValue","onUpdate:modelValue","required","placeholder","disabled"])]),_:1},8,["label","name","modelValue"])):o.property.valueType==="Boolean"?(c.openBlock(),c.createBlock(c.unref(Zt.Field),{key:9,label:c.unref(l)||o.property.displayName,name:o.property.displayName||o.property.name,modelValue:o.getter(o.property),rules:s},{default:c.withCtx(({errorMessage:E,handleChange:$})=>[c.createVNode(b,c.mergeProps(o.$attrs,{"error-message":E,modelValue:o.getter(o.property),"onUpdate:modelValue":x=>{$(x),o.setter(o.property,x)},required:o.property.required||o.property.isRequired,disabled:o.disabled,name:o.property.displayName||o.property.name}),{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(l)||o.property.displayName),1)]),_:2},1040,["error-message","modelValue","onUpdate:modelValue","required","disabled","name"])]),_:1},8,["label","name","modelValue"])):o.property.valueType==="Html"?(c.openBlock(),c.createBlock(c.unref(Zt.Field),{key:10,label:c.unref(l)||o.property.displayName,name:o.property.displayName||o.property.name,modelValue:o.getter(o.property),rules:s},{default:c.withCtx(({errorMessage:E,handleChange:$})=>[c.createVNode(_,c.mergeProps(o.$attrs,{label:c.unref(l)||o.property.displayName,modelValue:o.getter(o.property),"onUpdate:modelValue":x=>{$(x),o.setter(o.property,x)},required:o.property.required||o.property.isRequired,placeholder:c.unref(l)||"Add value",disabled:o.disabled,name:o.property.displayName||o.property.name,"error-message":E}),null,16,["label","modelValue","onUpdate:modelValue","required","placeholder","disabled","name","error-message"])]),_:1},8,["label","name","modelValue"])):c.createCommentVNode("",!0)}}}),k0=RH,NH={class:"vc-gallery-item__overlay"},IH={class:"tw-flex"},DH=["title"],PH={class:"tw-flex tw-grow tw-basis-0 tw-items-center tw-justify-around"},BH=c.createElementVNode("div",{class:"tw-mt-2"},"Fullscreen",-1),FH=c.createElementVNode("div",{class:"tw-mt-2"},"Edit",-1),VH=c.createElementVNode("div",{class:"tw-mt-2"},"Delete",-1),UH=c.defineComponent({__name:"vc-gallery-item",props:{image:{default:()=>({sortOrder:void 0,title:void 0,name:void 0,url:void 0})},readonly:{type:[Boolean,null],default:!1},actions:{default:()=>({name:void 0,preview:void 0,edit:void 0,remove:void 0})},disableDrag:{type:[Boolean,null],default:!1}},emits:["preview","edit","remove"],setup(n){const e=c.ref(!1);function t(){e.value=!1}return(r,i)=>{const s=c.resolveComponent("VcImage"),d=c.resolveComponent("VcIcon");return c.withDirectives((c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-gallery-item",{"vc-gallery-item_readonly":n.readonly,"vc-gallery-item_hover":e.value}]),onTap:i[3]||(i[3]=c.withModifiers(f=>e.value=!e.value,["stop"]))},[c.createVNode(s,{aspect:"1x1",src:n.image.url,background:"contain"},null,8,["src"]),c.createElementVNode("div",NH,[c.createElementVNode("div",IH,[!n.readonly&&!n.disableDrag?(c.openBlock(),c.createBlock(d,{key:0,class:"vc-gallery-item__move",icon:"fas fa-arrows-alt",size:"s"})):c.createCommentVNode("",!0),c.createElementVNode("div",{class:"tw-truncate",title:n.image.name},c.toDisplayString(n.image.name),9,DH)]),c.createElementVNode("div",PH,[n.actions&&n.actions.preview?(c.openBlock(),c.createElementBlock("div",{key:0,class:"vc-gallery-item__button",onClick:i[0]||(i[0]=f=>r.$emit("preview",n.image))},[c.createVNode(d,{class:"vc-gallery-item__button-icon",icon:"fas fa-eye"}),BH])):c.createCommentVNode("",!0),!n.readonly&&n.actions&&n.actions.edit?(c.openBlock(),c.createElementBlock("div",{key:1,class:"vc-gallery-item__button",onClick:i[1]||(i[1]=f=>r.$emit("edit",n.image))},[c.createVNode(d,{class:"vc-gallery-item__button-icon",icon:"fas fa-pen"}),FH])):c.createCommentVNode("",!0),!n.readonly&&n.actions&&n.actions.remove?(c.openBlock(),c.createElementBlock("div",{key:2,class:"vc-gallery-item__button",onClick:i[2]||(i[2]=f=>r.$emit("remove",n.image))},[c.createVNode(d,{class:"vc-gallery-item__button-icon",icon:"fas fa-trash"}),VH])):c.createCommentVNode("",!0)])])],34)),[[c.unref(mc),t]])}}});const WH=c.createElementVNode("span",null,")",-1),HH={class:"tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center"},zH={class:"tw-box-border p-5 tw-grow tw-basis-0 tw-w-full"},jH={class:"tw-p-4 tw-pb-[40px] tw-max-w-full tw-overflow-x-auto tw-box-border tw-shrink tw-flex"},GH=c.defineComponent({__name:"vc-gallery-preview",props:{images:{default:()=>[]},index:{default:0}},setup(n){const e=n,t=c.ref(e.index),r=c.computed(()=>e.images[t.value]),i=s=>{s.charAt(0)==="/"?navigator.clipboard?.writeText(`${location.origin}${s}`):navigator.clipboard?.writeText(s)};return(s,d)=>{const f=c.resolveComponent("VcLink"),l=c.resolveComponent("VcIcon"),m=c.resolveComponent("VcImage");return c.openBlock(),c.createBlock(c.unref(wp),{title:c.unref(r).title,onClose:d[3]||(d[3]=a=>s.$emit("close"))},{title:c.withCtx(()=>[c.createElementVNode("div",null,[c.createElementVNode("span",null,c.toDisplayString(c.unref(r).name)+" (",1),c.createVNode(f,{onClick:d[0]||(d[0]=a=>i(c.unref(r).url))},{default:c.withCtx(()=>[c.createTextVNode("copy image link")]),_:1}),WH])]),default:c.withCtx(()=>[c.createElementVNode("div",HH,[c.createElementVNode("div",zH,[c.createElementVNode("div",{class:"bg-contain tw-bg-no-repeat tw-bg-center tw-w-full tw-h-full tw-box-border",style:c.normalizeStyle({backgroundImage:"url("+c.unref(r).url+")"})},null,4),t.value>0?(c.openBlock(),c.createElementBlock("div",{key:0,class:"tw-absolute tw-top-2/4 -tw-mt-9 tw-h-[72px] tw-w-[72px] tw-flex tw-items-center tw-justify-center tw-rounded-full tw-bg-[#f1f6fa] tw-cursor-pointer tw-text-[#a1c0d4] [--icon-size-xl: 36px] hover:tw-shadow-[0_0_20px_rgba(31,40,50,0.15)] tw-left-[25px]",onClick:d[1]||(d[1]=a=>t.value--)},[c.createVNode(l,{icon:"fas fa-arrow-left",size:"xl"})])):c.createCommentVNode("",!0),t.value<n.images.length-1?(c.openBlock(),c.createElementBlock("div",{key:1,class:"tw-absolute tw-top-2/4 -tw-mt-9 tw-h-[72px] tw-w-[72px] tw-flex tw-items-center tw-justify-center tw-rounded-full tw-bg-[#f1f6fa] tw-cursor-pointer tw-text-[#a1c0d4] [--icon-size-xl: 36px] hover:tw-shadow-[0_0_20px_rgba(31,40,50,0.15)] tw-right-[25px]",onClick:d[2]||(d[2]=a=>t.value++)},[c.createVNode(l,{icon:"fas fa-arrow-right",size:"xl"})])):c.createCommentVNode("",!0)]),c.createElementVNode("div",jH,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.images,(a,o)=>(c.openBlock(),c.createElementBlock("div",{key:o,class:c.normalizeClass(["tw-m-1 tw-opacity-60",{"vc-gallery-preview__images-item_current":o===t.value}])},[c.createVNode(m,{src:a.url,size:"xl",bordered:!0,clickable:!0,onClick:u=>t.value=o},null,8,["src","onClick"])],2))),128))])])]),_:1},8,["title"])}}});const YH={images:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},label:String,tooltip:String,tooltipIcon:{type:String,default:"fas fa-info"},uploadIcon:{type:String,default:"fas fa-upload"},multiple:{type:Boolean,default:!1},variant:{type:String,default:"gallery"},itemActions:{type:Object,default:()=>({preview:!0,edit:!0,remove:!0})},disableDrag:{type:Boolean,default:!1},hideAfterUpload:{type:Boolean,default:!1},rules:[String,Object],name:{type:String,default:"Gallery"}},JH={upload:n=>!!n,sort:n=>XT(n),"item:edit":n=>es(n),"item:remove":n=>es(n),"item:move":n=>es(n)},KH={class:"vc-gallery"},XH={key:1,class:"tw-flex tw-flex-wrap"},qH={key:2,class:"tw-flex tw-justify-center tw-p-5"},ZH=c.defineComponent({__name:"vc-gallery",props:YH,emits:JH,setup(n,{emit:e}){const t=n,r=c.ref(!1),i=c.ref(),s=c.computed(()=>({animation:200,group:"description",disabled:t.disableDrag,ghostClass:"ghost"})),d=m=>{m&&m.length&&e("upload",m)},f=m=>{r.value=!0,i.value=m},l=()=>{const a=t.images.map((o,u)=>(o.sortOrder=u,o));e("sort",c.ref(a).value)};return(m,a)=>{const o=c.resolveComponent("draggable"),u=c.resolveComponent("VcHint");return c.openBlock(),c.createElementBlock("div",KH,[m.label?(c.openBlock(),c.createBlock(c.unref(fs),{key:0,tooltip:m.tooltip,required:m.required,"tooltip-icon":m.tooltipIcon},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(m.label),1)]),_:1},8,["tooltip","required","tooltip-icon"])):c.createCommentVNode("",!0),m.images&&m.images.length||!m.disabled?(c.openBlock(),c.createElementBlock("div",XH,[c.createVNode(o,c.mergeProps({list:m.images,class:"tw-flex tw-flex-wrap tw-w-full",tag:"transition-group"},c.unref(s),{onChange:l,"component-data":{tag:"div"}}),{item:c.withCtx(({element:p,index:v})=>[(c.openBlock(),c.createBlock(UH,{class:"tw-m-2",key:p.sortOrder,image:p,readonly:m.disabled,onPreview:w=>f(v),onEdit:a[0]||(a[0]=w=>m.$emit("item:edit",w)),onRemove:a[1]||(a[1]=w=>m.$emit("item:remove",w)),actions:m.itemActions,disableDrag:m.disableDrag},null,8,["image","readonly","onPreview","actions","disableDrag"]))]),footer:c.withCtx(()=>[!m.disabled&&!m.hideAfterUpload?(c.openBlock(),c.createBlock(c.unref(xd),{key:0,class:"tw-m-2",icon:m.uploadIcon,onUpload:d,variant:m.variant,multiple:m.multiple,rules:m.rules,name:m.name},null,8,["icon","variant","multiple","rules","name"])):c.createCommentVNode("",!0)]),_:1},16,["list"])])):(c.openBlock(),c.createElementBlock("div",qH,[c.createVNode(u,null,{default:c.withCtx(()=>[c.createTextVNode("Gallery is empty")]),_:1})])),r.value?(c.openBlock(),c.createBlock(GH,{key:3,images:m.images,index:i.value,onClose:a[2]||(a[2]=p=>r.value=!1)},null,8,["images","index"])):c.createCommentVNode("",!0)])}}}),x0=ZH,QH={logo:String,background:String,title:{type:String,default:"Login"}},ez={class:"tw-w-[516px] tw-max-w-[90%] tw-bg-white tw-rounded-md tw-overflow-hidden tw-shadow-[0_0_0_rgba(0,0,0,0.05)]"},tz={class:"tw-uppercase tw-text-white tw-bg-[#465769] tw-h-[50px] tw-px-[28px] tw-text-xl tw-flex tw-items-center"},nz={class:"tw-pt-4 tw-px-[28px] tw-pb-[24px]"},rz=c.defineComponent({__name:"vc-login-form",props:QH,setup(n){return console.debug("Init vc-login-form"),(e,t)=>(c.openBlock(),c.createElementBlock("div",{class:"tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center",style:c.normalizeStyle({background:`url(${e.background}) center / cover no-repeat`})},[c.createElementVNode("div",{class:"tw-h-[80px] tw-w-[516px] tw-max-w-[90%] tw-mb-[50px] -tw-mt-[90px]",style:c.normalizeStyle({background:`url(${e.logo}) center / contain no-repeat`})},null,4),c.createElementVNode("div",ez,[c.createElementVNode("div",tz,c.toDisplayString(e.title),1),c.createElementVNode("div",nz,[c.renderSlot(e.$slots,"default")])])],4))}}),A0=rz,iz={title:String,closable:{type:Boolean,default:!0},variant:{type:String,default:"fullscreen"}},sz={close:()=>!0},oz={class:"vc-popup__wrapper"},az={class:"vc-popup__inner"},lz={class:"vc-popup__header"},uz={class:"tw-truncate tw-grow tw-basis-0"},cz={class:"vc-popup__content tw-grow tw-basis-0"},hz=c.defineComponent({__name:"vc-popup",props:iz,emits:sz,setup(n){return(e,t)=>{const r=c.resolveComponent("VcIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["vc-popup",`vc-popup_${e.variant}`])},[c.createElementVNode("div",oz,[c.createElementVNode("div",az,[c.createElementVNode("div",lz,[c.createElementVNode("div",uz,[c.renderSlot(e.$slots,"title",{},()=>[c.createTextVNode(c.toDisplayString(e.title),1)])]),e.closable?(c.openBlock(),c.createBlock(r,{key:0,class:"vc-popup__header-icon",icon:"fas fa-times",onClick:t[0]||(t[0]=i=>e.$emit("close"))})):c.createCommentVNode("",!0)]),c.createElementVNode("div",cz,[c.renderSlot(e.$slots,"default")])])])],2)}}});const wp=hz,fz={class:"tw-font-medium tw-text-base"},dz={class:"tw-text-[color:var(--table-counter-label-color)]"},pz={class:"tw-text-[color:var(--table-counter-value-color)]"},mz=c.defineComponent({__name:"vc-table-counter",props:{label:{default:"Total"},value:{default:0}},setup(n){return(e,t)=>(c.openBlock(),c.createElementBlock("div",fz,[c.createElementVNode("span",dz,c.toDisplayString(n.label)+" ",1),c.createElementVNode("span",pz,c.toDisplayString(n.value),1)]))}});const gz={class:"tw-relative tw-overflow-visible"},vz={key:0,class:"tw-ml-[10px] tw-font-medium"},wz={key:1,class:"tw-ml-[10px] tw-rounded-[10px] tw-bg-white tw-text-[#43b0e6] tw-h-[20px] tw-min-w-[20px] tw-leading-[20px] tw-text-center tw-font-medium"},yz=["onClick"],bz=c.defineComponent({inheritAttrs:!1}),sy=c.defineComponent({...bz,__name:"vc-table-filter",props:{title:{default:void 0},counter:{default:0},parentExpanded:{type:Boolean,default:!0}},setup(n){const e=n,t=c.ref(!1),r=c.ref(),i=c.ref(),s=c.ref();c.watch(()=>e.parentExpanded,()=>{f()});function d(m){if(t.value=!t.value,!m){const a=document.querySelector(".vc-blade");t.value?c.nextTick(()=>{s.value=wc(r.value,i.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"preventOverflow",options:{boundary:a}}]})}):l()}}function f(){t.value=!1,l()}function l(){s.value?.destroy()}return(m,a)=>(c.openBlock(),c.createElementBlock("div",gz,[c.createElementVNode("div",{class:"tw-rounded-[3px] tw-bg-[#43b0e6] tw-flex tw-items-center tw-px-[10px] tw-text-white tw-h-[38px] tw-box-border tw-cursor-pointer",onClick:a[0]||(a[0]=o=>d(m.$isMobile.value)),ref_key:"filterToggle",ref:r},[c.createVNode(c.unref(Ye),{icon:"fas fa-filter",size:"m"}),n.title?(c.openBlock(),c.createElementBlock("span",vz,c.toDisplayString(n.title),1)):c.createCommentVNode("",!0),n.counter?(c.openBlock(),c.createElementBlock("div",wz,c.toDisplayString(n.counter),1)):c.createCommentVNode("",!0)],512),(c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[t.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass({"vc-table-filter__panel_mobile tw-fixed tw-left-0 tw-top-0 tw-w-full tw-bottom-0 tw-z-[9999] tw-bg-[rgba(128,140,153,0.6)] tw-shadow-none tw-rounded-none tw-max-h-full tw-max-w-full tw-min-w-full":m.$isMobile.value,"vc-table-filter__panel tw-absolute tw-max-h-[400px] tw-max-w-[800px] tw-min-w-[400px] tw-z-[100] tw-shadow-[1px_1px_11px_rgba(141,152,163,0.6)] tw-rounded-[3px] tw-overflow-hidden":!m.$isMobile.value}),onClick:c.withModifiers(f,["self"]),ref_key:"filterPanel",ref:i},[c.createElementVNode("div",{class:"vc-table-filter__panel-inner tw-bg-white tw-box-border tw-p-5 tw-flex tw-flex-col",onClick:a[1]||(a[1]=c.withModifiers(()=>{},["stop"]))},[c.createVNode(c.unref(Ye),{class:"vc-table-filter__panel-close tw-text-[#43b0e6] tw-cursor-pointer tw-self-end tw-shrink-0",icon:"fas fa-times",size:"xl",onClick:f}),c.renderSlot(m.$slots,"default",{closePanel:f})])],10,yz)):c.createCommentVNode("",!0)]))]))}});const Sz={key:0,class:"tw-flex-shrink-0 tw-w-[80px] tw-flex tw-flex-col [justify-content:stretch] tw-bg-[#a9bfd2]"},_z={class:"tw-mt-1 tw-text-lg"},Cz={class:"tw-flex-shrink-0 tw-w-full"},Ez={key:1,class:"tw-flex-shrink-0 tw-w-[80px] tw-flex tw-flex-col [justify-content:stretch] tw-bg-[#a9bfd2]"},kz={class:"vc-table-mobile__item-action-text"},xz={class:"tw-mt-1 tw-text-lg"},Az=c.createElementVNode("div",{class:"tw-mt-1 tw-text-lg"},"More",-1),Tz={class:"tw-absolute tw-left-0 tw-top-0 tw-right-0 tw-bottom-0 tw-bg-[rgba(107,121,135,0.15)] tw-flex tw-items-center tw-justify-center tw-z-[99]"},$z={class:"tw-bg-white tw-rounded-[6px] tw-overflow-hidden tw-p-5 tw-max-w-[80%] tw-w-[350px] tw-border tw-border-solid tw-border-[#eef0f2] tw-box-border tw-shadow-[1px_1px_22px_rgba(126,142,157,0.2)]"},Oz={class:"tw-flex tw-w-full tw-items-center"},Lz={class:"tw-grow tw-text-[#2e3d4e] tw-text-[19px] tw-font-semibold tw-tracking-[-0.01em]"},Mz={class:"tw-flex tw-flex-wrap tw-my-5 tw-justify-between"},Rz=["onClick"],Nz={class:"tw-text-base tw-mt-2 tw-text-center"},Iz=c.defineComponent({__name:"vc-table-mobile-item",props:{item:{default:void 0},actionBuilder:{type:Function,default:void 0},swipingItem:{default:null}},emits:["swipeStart"],setup(n,{emit:e}){const t=n,r=c.ref(0),i=c.ref(0),s=c.ref(0),d=c.ref(0),f=c.ref(!1),l=10,m=80,a=c.ref(!1),o=c.ref([]);c.watch(()=>t.swipingItem,$=>{$!==t.item.id&&v()});const u=c.computed(()=>o.value&&o.value.length&&o.value.filter($=>!$.leftActions)),p=c.computed(()=>o.value&&o.value.length&&o.value.filter($=>$.leftActions));function v(){o.value.some($=>$.leftActions)?(r.value=-m,d.value=r.value):(r.value=0,d.value=0)}async function w($){i.value=$.touches[0].clientX,s.value=$.touches[0].clientY,d.value=r.value,f.value=!0,o.value.length||typeof t.actionBuilder=="function"&&(o.value=t.actionBuilder(t.item),v())}function b($){if(e("swipeStart",t.item.id),o.value&&o.value.length){const x=$.touches[0].clientX-i.value,S=$.touches[0].clientY-s.value;Math.abs(x)>l&&(u.value&&u.value.length&&p.value&&p.value.length?Math.abs(d.value+x)<=m*2:Math.abs(d.value+x)<=m)&&d.value+x<0&&(Math.abs(S)<l*2&&$.preventDefault(),r.value=d.value+x)}}function _(){const $=Math.abs(r.value);$<m?r.value=$<m/2?0:-m:r.value=$<=m*2-l*2?-m:-m*2,f.value=!1}function E(){const $=Math.abs(r.value);$<m?r.value=$<m/2?0:-m:r.value=$<=m*2-l*2?-m:-m*2,f.value=!1}return($,x)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["tw-relative tw-flex tw-flex-nowrap tw-items-stretch tw-transition tw-duration-200",{" tw-transition-none":f.value}]),style:c.normalizeStyle(`transform: translateX(${r.value}px)`),onClick:x[5]||(x[5]=S=>$.$emit("click")),onTouchstart:w,onTouchmove:b,onTouchend:_,onTouchcancel:E},[c.unref(p)&&c.unref(p).length?(c.openBlock(),c.createElementBlock("div",Sz,[c.createElementVNode("div",{class:c.normalizeClass(["tw-flex tw-grow tw-basis-[1] tw-flex-col tw-justify-center tw-items-center tw-text-white",[`vc-table-mobile__item-action_${c.unref(p)[0].variant}`]]),onClick:x[0]||(x[0]=c.withModifiers(S=>c.unref(p)[0].clickHandler(n.item),["stop"]))},[c.createVNode(c.unref(Ye),{icon:c.unref(p)[0].icon},null,8,["icon"]),c.createElementVNode("div",_z,c.toDisplayString(c.unref(p)[0].title),1)],2)])):c.createCommentVNode("",!0),c.createElementVNode("div",Cz,[c.renderSlot($.$slots,"default")]),c.unref(u)&&c.unref(u).length?(c.openBlock(),c.createElementBlock("div",Ez,[c.createElementVNode("div",{class:c.normalizeClass(["tw-flex tw-grow tw-basis-[1] tw-flex-col tw-justify-center tw-items-center tw-text-white",[`vc-table-mobile__item-action_${c.unref(u)[0].variant}`]]),onClick:x[1]||(x[1]=c.withModifiers(S=>c.unref(u)[0].clickHandler(n.item),["stop"]))},[c.createVNode(c.unref(Ye),{icon:c.unref(u)[0].icon},null,8,["icon"]),c.createElementVNode("div",kz,c.toDisplayString(c.unref(u)[0].title),1)],2),c.unref(u).length===2?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["tw-flex tw-grow tw-basis-[1] tw-flex-col tw-justify-center tw-items-center tw-text-white",[`vc-table-mobile__item-action_${c.unref(u)[1].variant}`]]),onClick:x[2]||(x[2]=c.withModifiers(S=>c.unref(u)[1].clickHandler(n.item),["stop"]))},[c.createVNode(c.unref(Ye),{icon:c.unref(u)[1].icon},null,8,["icon"]),c.createElementVNode("div",xz,c.toDisplayString(c.unref(u)[1].title),1)],2)):c.createCommentVNode("",!0),c.unref(u).length>2?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createElementVNode("div",{class:"tw-flex tw-grow tw-basis-[1] tw-flex-col tw-justify-center tw-items-center tw-text-white",onClick:x[3]||(x[3]=c.withModifiers(S=>a.value=!0,["stop"]))},[c.createVNode(c.unref(Ye),{icon:"fas fa-ellipsis-h"}),Az]),a.value?(c.openBlock(),c.createBlock(c.Teleport,{key:0,to:"body"},[c.createElementVNode("div",Tz,[c.createElementVNode("div",$z,[c.createElementVNode("div",Oz,[c.createElementVNode("span",Lz,c.toDisplayString($.$t("All actions")),1),c.createVNode(c.unref(Ye),{class:"tw-text-[#c2d7e4]",icon:"fas fa-times-circle",size:"xl",onClick:x[4]||(x[4]=S=>a.value=!1)})]),c.createElementVNode("div",Mz,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value,(S,T)=>(c.openBlock(),c.createElementBlock("div",{key:T,class:"tw-flex tw-grow tw-shrink-0 tw-flex-col tw-items-center tw-text-[#319ed4] tw-my-2 tw-box-border tw-p-1 tw-max-w-[80px]",onClick:M=>S.clickHandler(n.item)},[c.createVNode(c.unref(Ye),{icon:S.icon,size:"xl"},null,8,["icon"]),c.createElementVNode("div",Nz,c.toDisplayString(S.title),1)],8,Rz))),128))])])])])):c.createCommentVNode("",!0)],64)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)],38))}});//! moment.js
|
|
1090
|
-
//! version : 2.29.4
|
|
1091
|
-
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
1092
|
-
//! license : MIT
|
|
1093
|
-
//! momentjs.com
|
|
1094
|
-
var T0;function _e(){return T0.apply(null,arguments)}function Dz(n){T0=n}function pr(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function ns(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function lt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function yp(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(lt(n,e))return!1;return!0}function yn(n){return n===void 0}function ti(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function Pa(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function $0(n,e){var t=[],r,i=n.length;for(r=0;r<i;++r)t.push(e(n[r],r));return t}function xi(n,e){for(var t in e)lt(e,t)&&(n[t]=e[t]);return lt(e,"toString")&&(n.toString=e.toString),lt(e,"valueOf")&&(n.valueOf=e.valueOf),n}function Lr(n,e,t,r){return Q0(n,e,t,r,!0).utc()}function Pz(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Ge(n){return n._pf==null&&(n._pf=Pz()),n._pf}var od;Array.prototype.some?od=Array.prototype.some:od=function(n){var e=Object(this),t=e.length>>>0,r;for(r=0;r<t;r++)if(r in e&&n.call(this,e[r],r,e))return!0;return!1};function bp(n){if(n._isValid==null){var e=Ge(n),t=od.call(e.parsedDateParts,function(i){return i!=null}),r=!isNaN(n._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&t);if(n._strict&&(r=r&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(n))n._isValid=r;else return r}return n._isValid}function yc(n){var e=Lr(NaN);return n!=null?xi(Ge(e),n):Ge(e).userInvalidated=!0,e}var oy=_e.momentProperties=[],df=!1;function Sp(n,e){var t,r,i,s=oy.length;if(yn(e._isAMomentObject)||(n._isAMomentObject=e._isAMomentObject),yn(e._i)||(n._i=e._i),yn(e._f)||(n._f=e._f),yn(e._l)||(n._l=e._l),yn(e._strict)||(n._strict=e._strict),yn(e._tzm)||(n._tzm=e._tzm),yn(e._isUTC)||(n._isUTC=e._isUTC),yn(e._offset)||(n._offset=e._offset),yn(e._pf)||(n._pf=Ge(e)),yn(e._locale)||(n._locale=e._locale),s>0)for(t=0;t<s;t++)r=oy[t],i=e[r],yn(i)||(n[r]=i);return n}function Ba(n){Sp(this,n),this._d=new Date(n._d!=null?n._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),df===!1&&(df=!0,_e.updateOffset(this),df=!1)}function mr(n){return n instanceof Ba||n!=null&&n._isAMomentObject!=null}function O0(n){_e.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+n)}function er(n,e){var t=!0;return xi(function(){if(_e.deprecationHandler!=null&&_e.deprecationHandler(null,n),t){var r=[],i,s,d,f=arguments.length;for(s=0;s<f;s++){if(i="",typeof arguments[s]=="object"){i+=`
|
|
1095
|
-
[`+s+"] ";for(d in arguments[0])lt(arguments[0],d)&&(i+=d+": "+arguments[0][d]+", ");i=i.slice(0,-2)}else i=arguments[s];r.push(i)}O0(n+`
|
|
1096
|
-
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
1097
|
-
`+new Error().stack),t=!1}return e.apply(this,arguments)},e)}var ay={};function L0(n,e){_e.deprecationHandler!=null&&_e.deprecationHandler(n,e),ay[n]||(O0(e),ay[n]=!0)}_e.suppressDeprecationWarnings=!1;_e.deprecationHandler=null;function Mr(n){return typeof Function<"u"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function Bz(n){var e,t;for(t in n)lt(n,t)&&(e=n[t],Mr(e)?this[t]=e:this["_"+t]=e);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ad(n,e){var t=xi({},n),r;for(r in e)lt(e,r)&&(ns(n[r])&&ns(e[r])?(t[r]={},xi(t[r],n[r]),xi(t[r],e[r])):e[r]!=null?t[r]=e[r]:delete t[r]);for(r in n)lt(n,r)&&!lt(e,r)&&ns(n[r])&&(t[r]=xi({},t[r]));return t}function _p(n){n!=null&&this.set(n)}var ld;Object.keys?ld=Object.keys:ld=function(n){var e,t=[];for(e in n)lt(n,e)&&t.push(e);return t};var Fz={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Vz(n,e,t){var r=this._calendar[n]||this._calendar.sameElse;return Mr(r)?r.call(e,t):r}function Ar(n,e,t){var r=""+Math.abs(n),i=e-r.length,s=n>=0;return(s?t?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Cp=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Dl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,pf={},zs={};function Me(n,e,t,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),n&&(zs[n]=i),e&&(zs[e[0]]=function(){return Ar(i.apply(this,arguments),e[1],e[2])}),t&&(zs[t]=function(){return this.localeData().ordinal(i.apply(this,arguments),n)})}function Uz(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Wz(n){var e=n.match(Cp),t,r;for(t=0,r=e.length;t<r;t++)zs[e[t]]?e[t]=zs[e[t]]:e[t]=Uz(e[t]);return function(i){var s="",d;for(d=0;d<r;d++)s+=Mr(e[d])?e[d].call(i,n):e[d];return s}}function Xl(n,e){return n.isValid()?(e=M0(e,n.localeData()),pf[e]=pf[e]||Wz(e),pf[e](n)):n.localeData().invalidDate()}function M0(n,e){var t=5;function r(i){return e.longDateFormat(i)||i}for(Dl.lastIndex=0;t>=0&&Dl.test(n);)n=n.replace(Dl,r),Dl.lastIndex=0,t-=1;return n}var Hz={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function zz(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(Cp).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var jz="Invalid date";function Gz(){return this._invalidDate}var Yz="%d",Jz=/\d{1,2}/;function Kz(n){return this._ordinal.replace("%d",n)}var Xz={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qz(n,e,t,r){var i=this._relativeTime[t];return Mr(i)?i(n,e,t,r):i.replace(/%d/i,n)}function Zz(n,e){var t=this._relativeTime[n>0?"future":"past"];return Mr(t)?t(e):t.replace(/%s/i,e)}var jo={};function on(n,e){var t=n.toLowerCase();jo[t]=jo[t+"s"]=jo[e]=n}function tr(n){return typeof n=="string"?jo[n]||jo[n.toLowerCase()]:void 0}function Ep(n){var e={},t,r;for(r in n)lt(n,r)&&(t=tr(r),t&&(e[t]=n[r]));return e}var R0={};function an(n,e){R0[n]=e}function Qz(n){var e=[],t;for(t in n)lt(n,t)&&e.push({unit:t,priority:R0[t]});return e.sort(function(r,i){return r.priority-i.priority}),e}function bc(n){return n%4===0&&n%100!==0||n%400===0}function Kn(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function qe(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=Kn(e)),t}function ao(n,e){return function(t){return t!=null?(N0(this,n,t),_e.updateOffset(this,e),this):fu(this,n)}}function fu(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function N0(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&bc(n.year())&&n.month()===1&&n.date()===29?(t=qe(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),xc(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function ej(n){return n=tr(n),Mr(this[n])?this[n]():this}function tj(n,e){if(typeof n=="object"){n=Ep(n);var t=Qz(n),r,i=t.length;for(r=0;r<i;r++)this[t[r].unit](n[t[r].unit])}else if(n=tr(n),Mr(this[n]))return this[n](e);return this}var I0=/\d/,Bn=/\d\d/,D0=/\d{3}/,kp=/\d{4}/,Sc=/[+-]?\d{6}/,Ct=/\d\d?/,P0=/\d\d\d\d?/,B0=/\d\d\d\d\d\d?/,_c=/\d{1,3}/,xp=/\d{1,4}/,Cc=/[+-]?\d{1,6}/,lo=/\d+/,Ec=/[+-]?\d+/,nj=/Z|[+-]\d\d:?\d\d/gi,kc=/Z|[+-]\d\d(?::?\d\d)?/gi,rj=/[+-]?\d+(\.\d{1,3})?/,Fa=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,du;du={};function Te(n,e,t){du[n]=Mr(e)?e:function(r,i){return r&&t?t:e}}function ij(n,e){return lt(du,n)?du[n](e._strict,e._locale):new RegExp(sj(n))}function sj(n){return Rn(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,i,s){return t||r||i||s}))}function Rn(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ud={};function mt(n,e){var t,r=e,i;for(typeof n=="string"&&(n=[n]),ti(e)&&(r=function(s,d){d[e]=qe(s)}),i=n.length,t=0;t<i;t++)ud[n[t]]=r}function Va(n,e){mt(n,function(t,r,i,s){i._w=i._w||{},e(t,i._w,i,s)})}function oj(n,e,t){e!=null&<(ud,n)&&ud[n](e,t._a,t,n)}var sn=0,Xr=1,Cr=2,zt=3,hr=4,qr=5,Qi=6,aj=7,lj=8;function uj(n,e){return(n%e+e)%e}var Pt;Array.prototype.indexOf?Pt=Array.prototype.indexOf:Pt=function(n){var e;for(e=0;e<this.length;++e)if(this[e]===n)return e;return-1};function xc(n,e){if(isNaN(n)||isNaN(e))return NaN;var t=uj(e,12);return n+=(e-t)/12,t===1?bc(n)?29:28:31-t%7%2}Me("M",["MM",2],"Mo",function(){return this.month()+1});Me("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});Me("MMMM",0,0,function(n){return this.localeData().months(this,n)});on("month","M");an("month",8);Te("M",Ct);Te("MM",Ct,Bn);Te("MMM",function(n,e){return e.monthsShortRegex(n)});Te("MMMM",function(n,e){return e.monthsRegex(n)});mt(["M","MM"],function(n,e){e[Xr]=qe(n)-1});mt(["MMM","MMMM"],function(n,e,t,r){var i=t._locale.monthsParse(n,r,t._strict);i!=null?e[Xr]=i:Ge(t).invalidMonth=n});var cj="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),F0="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),V0=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,hj=Fa,fj=Fa;function dj(n,e){return n?pr(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||V0).test(e)?"format":"standalone"][n.month()]:pr(this._months)?this._months:this._months.standalone}function pj(n,e){return n?pr(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[V0.test(e)?"format":"standalone"][n.month()]:pr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function mj(n,e,t){var r,i,s,d=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=Lr([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return t?e==="MMM"?(i=Pt.call(this._shortMonthsParse,d),i!==-1?i:null):(i=Pt.call(this._longMonthsParse,d),i!==-1?i:null):e==="MMM"?(i=Pt.call(this._shortMonthsParse,d),i!==-1?i:(i=Pt.call(this._longMonthsParse,d),i!==-1?i:null)):(i=Pt.call(this._longMonthsParse,d),i!==-1?i:(i=Pt.call(this._shortMonthsParse,d),i!==-1?i:null))}function gj(n,e,t){var r,i,s;if(this._monthsParseExact)return mj.call(this,n,e,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Lr([2e3,r]),t&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!t&&!this._monthsParse[r]&&(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),t&&e==="MMMM"&&this._longMonthsParse[r].test(n))return r;if(t&&e==="MMM"&&this._shortMonthsParse[r].test(n))return r;if(!t&&this._monthsParse[r].test(n))return r}}function U0(n,e){var t;if(!n.isValid())return n;if(typeof e=="string"){if(/^\d+$/.test(e))e=qe(e);else if(e=n.localeData().monthsParse(e),!ti(e))return n}return t=Math.min(n.date(),xc(n.year(),e)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](e,t),n}function W0(n){return n!=null?(U0(this,n),_e.updateOffset(this,!0),this):fu(this,"Month")}function vj(){return xc(this.year(),this.month())}function wj(n){return this._monthsParseExact?(lt(this,"_monthsRegex")||H0.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(lt(this,"_monthsShortRegex")||(this._monthsShortRegex=hj),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function yj(n){return this._monthsParseExact?(lt(this,"_monthsRegex")||H0.call(this),n?this._monthsStrictRegex:this._monthsRegex):(lt(this,"_monthsRegex")||(this._monthsRegex=fj),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function H0(){function n(d,f){return f.length-d.length}var e=[],t=[],r=[],i,s;for(i=0;i<12;i++)s=Lr([2e3,i]),e.push(this.monthsShort(s,"")),t.push(this.months(s,"")),r.push(this.months(s,"")),r.push(this.monthsShort(s,""));for(e.sort(n),t.sort(n),r.sort(n),i=0;i<12;i++)e[i]=Rn(e[i]),t[i]=Rn(t[i]);for(i=0;i<24;i++)r[i]=Rn(r[i]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}Me("Y",0,0,function(){var n=this.year();return n<=9999?Ar(n,4):"+"+n});Me(0,["YY",2],0,function(){return this.year()%100});Me(0,["YYYY",4],0,"year");Me(0,["YYYYY",5],0,"year");Me(0,["YYYYYY",6,!0],0,"year");on("year","y");an("year",1);Te("Y",Ec);Te("YY",Ct,Bn);Te("YYYY",xp,kp);Te("YYYYY",Cc,Sc);Te("YYYYYY",Cc,Sc);mt(["YYYYY","YYYYYY"],sn);mt("YYYY",function(n,e){e[sn]=n.length===2?_e.parseTwoDigitYear(n):qe(n)});mt("YY",function(n,e){e[sn]=_e.parseTwoDigitYear(n)});mt("Y",function(n,e){e[sn]=parseInt(n,10)});function Go(n){return bc(n)?366:365}_e.parseTwoDigitYear=function(n){return qe(n)+(qe(n)>68?1900:2e3)};var z0=ao("FullYear",!0);function bj(){return bc(this.year())}function Sj(n,e,t,r,i,s,d){var f;return n<100&&n>=0?(f=new Date(n+400,e,t,r,i,s,d),isFinite(f.getFullYear())&&f.setFullYear(n)):f=new Date(n,e,t,r,i,s,d),f}function ya(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function pu(n,e,t){var r=7+e-t,i=(7+ya(n,0,r).getUTCDay()-e)%7;return-i+r-1}function j0(n,e,t,r,i){var s=(7+t-r)%7,d=pu(n,r,i),f=1+7*(e-1)+s+d,l,m;return f<=0?(l=n-1,m=Go(l)+f):f>Go(n)?(l=n+1,m=f-Go(n)):(l=n,m=f),{year:l,dayOfYear:m}}function ba(n,e,t){var r=pu(n.year(),e,t),i=Math.floor((n.dayOfYear()-r-1)/7)+1,s,d;return i<1?(d=n.year()-1,s=i+Qr(d,e,t)):i>Qr(n.year(),e,t)?(s=i-Qr(n.year(),e,t),d=n.year()+1):(d=n.year(),s=i),{week:s,year:d}}function Qr(n,e,t){var r=pu(n,e,t),i=pu(n+1,e,t);return(Go(n)-r+i)/7}Me("w",["ww",2],"wo","week");Me("W",["WW",2],"Wo","isoWeek");on("week","w");on("isoWeek","W");an("week",5);an("isoWeek",5);Te("w",Ct);Te("ww",Ct,Bn);Te("W",Ct);Te("WW",Ct,Bn);Va(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=qe(n)});function _j(n){return ba(n,this._week.dow,this._week.doy).week}var Cj={dow:0,doy:6};function Ej(){return this._week.dow}function kj(){return this._week.doy}function xj(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Aj(n){var e=ba(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Me("d",0,"do","day");Me("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Me("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Me("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Me("e",0,0,"weekday");Me("E",0,0,"isoWeekday");on("day","d");on("weekday","e");on("isoWeekday","E");an("day",11);an("weekday",11);an("isoWeekday",11);Te("d",Ct);Te("e",Ct);Te("E",Ct);Te("dd",function(n,e){return e.weekdaysMinRegex(n)});Te("ddd",function(n,e){return e.weekdaysShortRegex(n)});Te("dddd",function(n,e){return e.weekdaysRegex(n)});Va(["dd","ddd","dddd"],function(n,e,t,r){var i=t._locale.weekdaysParse(n,r,t._strict);i!=null?e.d=i:Ge(t).invalidWeekday=n});Va(["d","e","E"],function(n,e,t,r){e[r]=qe(n)});function Tj(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function $j(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function Ap(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Oj="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),G0="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lj="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mj=Fa,Rj=Fa,Nj=Fa;function Ij(n,e){var t=pr(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?Ap(t,this._week.dow):n?t[n.day()]:t}function Dj(n){return n===!0?Ap(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Pj(n){return n===!0?Ap(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Bj(n,e,t){var r,i,s,d=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=Lr([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return t?e==="dddd"?(i=Pt.call(this._weekdaysParse,d),i!==-1?i:null):e==="ddd"?(i=Pt.call(this._shortWeekdaysParse,d),i!==-1?i:null):(i=Pt.call(this._minWeekdaysParse,d),i!==-1?i:null):e==="dddd"?(i=Pt.call(this._weekdaysParse,d),i!==-1||(i=Pt.call(this._shortWeekdaysParse,d),i!==-1)?i:(i=Pt.call(this._minWeekdaysParse,d),i!==-1?i:null)):e==="ddd"?(i=Pt.call(this._shortWeekdaysParse,d),i!==-1||(i=Pt.call(this._weekdaysParse,d),i!==-1)?i:(i=Pt.call(this._minWeekdaysParse,d),i!==-1?i:null)):(i=Pt.call(this._minWeekdaysParse,d),i!==-1||(i=Pt.call(this._weekdaysParse,d),i!==-1)?i:(i=Pt.call(this._shortWeekdaysParse,d),i!==-1?i:null))}function Fj(n,e,t){var r,i,s;if(this._weekdaysParseExact)return Bj.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Lr([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function Vj(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Tj(n,this.localeData()),this.add(n-e,"d")):e}function Uj(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Wj(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=$j(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Hj(n){return this._weekdaysParseExact?(lt(this,"_weekdaysRegex")||Tp.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(lt(this,"_weekdaysRegex")||(this._weekdaysRegex=Mj),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function zj(n){return this._weekdaysParseExact?(lt(this,"_weekdaysRegex")||Tp.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(lt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rj),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jj(n){return this._weekdaysParseExact?(lt(this,"_weekdaysRegex")||Tp.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(lt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nj),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Tp(){function n(a,o){return o.length-a.length}var e=[],t=[],r=[],i=[],s,d,f,l,m;for(s=0;s<7;s++)d=Lr([2e3,1]).day(s),f=Rn(this.weekdaysMin(d,"")),l=Rn(this.weekdaysShort(d,"")),m=Rn(this.weekdays(d,"")),e.push(f),t.push(l),r.push(m),i.push(f),i.push(l),i.push(m);e.sort(n),t.sort(n),r.sort(n),i.sort(n),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function $p(){return this.hours()%12||12}function Gj(){return this.hours()||24}Me("H",["HH",2],0,"hour");Me("h",["hh",2],0,$p);Me("k",["kk",2],0,Gj);Me("hmm",0,0,function(){return""+$p.apply(this)+Ar(this.minutes(),2)});Me("hmmss",0,0,function(){return""+$p.apply(this)+Ar(this.minutes(),2)+Ar(this.seconds(),2)});Me("Hmm",0,0,function(){return""+this.hours()+Ar(this.minutes(),2)});Me("Hmmss",0,0,function(){return""+this.hours()+Ar(this.minutes(),2)+Ar(this.seconds(),2)});function Y0(n,e){Me(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}Y0("a",!0);Y0("A",!1);on("hour","h");an("hour",13);function J0(n,e){return e._meridiemParse}Te("a",J0);Te("A",J0);Te("H",Ct);Te("h",Ct);Te("k",Ct);Te("HH",Ct,Bn);Te("hh",Ct,Bn);Te("kk",Ct,Bn);Te("hmm",P0);Te("hmmss",B0);Te("Hmm",P0);Te("Hmmss",B0);mt(["H","HH"],zt);mt(["k","kk"],function(n,e,t){var r=qe(n);e[zt]=r===24?0:r});mt(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});mt(["h","hh"],function(n,e,t){e[zt]=qe(n),Ge(t).bigHour=!0});mt("hmm",function(n,e,t){var r=n.length-2;e[zt]=qe(n.substr(0,r)),e[hr]=qe(n.substr(r)),Ge(t).bigHour=!0});mt("hmmss",function(n,e,t){var r=n.length-4,i=n.length-2;e[zt]=qe(n.substr(0,r)),e[hr]=qe(n.substr(r,2)),e[qr]=qe(n.substr(i)),Ge(t).bigHour=!0});mt("Hmm",function(n,e,t){var r=n.length-2;e[zt]=qe(n.substr(0,r)),e[hr]=qe(n.substr(r))});mt("Hmmss",function(n,e,t){var r=n.length-4,i=n.length-2;e[zt]=qe(n.substr(0,r)),e[hr]=qe(n.substr(r,2)),e[qr]=qe(n.substr(i))});function Yj(n){return(n+"").toLowerCase().charAt(0)==="p"}var Jj=/[ap]\.?m?\.?/i,Kj=ao("Hours",!0);function Xj(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var K0={calendar:Fz,longDateFormat:Hz,invalidDate:jz,ordinal:Yz,dayOfMonthOrdinalParse:Jz,relativeTime:Xz,months:cj,monthsShort:F0,week:Cj,weekdays:Oj,weekdaysMin:Lj,weekdaysShort:G0,meridiemParse:Jj},xt={},Ro={},Sa;function qj(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t<r;t+=1)if(n[t]!==e[t])return t;return r}function ly(n){return n&&n.toLowerCase().replace("_","-")}function Zj(n){for(var e=0,t,r,i,s;e<n.length;){for(s=ly(n[e]).split("-"),t=s.length,r=ly(n[e+1]),r=r?r.split("-"):null;t>0;){if(i=Ac(s.slice(0,t).join("-")),i)return i;if(r&&r.length>=t&&qj(s,r)>=t-1)break;t--}e++}return Sa}function Qj(n){return n.match("^[^/\\\\]*$")!=null}function Ac(n){var e=null,t;if(xt[n]===void 0&&typeof module<"u"&&module&&module.exports&&Qj(n))try{e=Sa._abbr,t=require,t("./locale/"+n),Oi(e)}catch{xt[n]=null}return xt[n]}function Oi(n,e){var t;return n&&(yn(e)?t=oi(n):t=Op(n,e),t?Sa=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Sa._abbr}function Op(n,e){if(e!==null){var t,r=K0;if(e.abbr=n,xt[n]!=null)L0("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xt[n]._config;else if(e.parentLocale!=null)if(xt[e.parentLocale]!=null)r=xt[e.parentLocale]._config;else if(t=Ac(e.parentLocale),t!=null)r=t._config;else return Ro[e.parentLocale]||(Ro[e.parentLocale]=[]),Ro[e.parentLocale].push({name:n,config:e}),null;return xt[n]=new _p(ad(r,e)),Ro[n]&&Ro[n].forEach(function(i){Op(i.name,i.config)}),Oi(n),xt[n]}else return delete xt[n],null}function e4(n,e){if(e!=null){var t,r,i=K0;xt[n]!=null&&xt[n].parentLocale!=null?xt[n].set(ad(xt[n]._config,e)):(r=Ac(n),r!=null&&(i=r._config),e=ad(i,e),r==null&&(e.abbr=n),t=new _p(e),t.parentLocale=xt[n],xt[n]=t),Oi(n)}else xt[n]!=null&&(xt[n].parentLocale!=null?(xt[n]=xt[n].parentLocale,n===Oi()&&Oi(n)):xt[n]!=null&&delete xt[n]);return xt[n]}function oi(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Sa;if(!pr(n)){if(e=Ac(n),e)return e;n=[n]}return Zj(n)}function t4(){return ld(xt)}function Lp(n){var e,t=n._a;return t&&Ge(n).overflow===-2&&(e=t[Xr]<0||t[Xr]>11?Xr:t[Cr]<1||t[Cr]>xc(t[sn],t[Xr])?Cr:t[zt]<0||t[zt]>24||t[zt]===24&&(t[hr]!==0||t[qr]!==0||t[Qi]!==0)?zt:t[hr]<0||t[hr]>59?hr:t[qr]<0||t[qr]>59?qr:t[Qi]<0||t[Qi]>999?Qi:-1,Ge(n)._overflowDayOfYear&&(e<sn||e>Cr)&&(e=Cr),Ge(n)._overflowWeeks&&e===-1&&(e=aj),Ge(n)._overflowWeekday&&e===-1&&(e=lj),Ge(n).overflow=e),n}var n4=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,r4=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,i4=/Z|[+-]\d\d(?::?\d\d)?/,Pl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mf=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],s4=/^\/?Date\((-?\d+)/i,o4=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,a4={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function X0(n){var e,t,r=n._i,i=n4.exec(r)||r4.exec(r),s,d,f,l,m=Pl.length,a=mf.length;if(i){for(Ge(n).iso=!0,e=0,t=m;e<t;e++)if(Pl[e][1].exec(i[1])){d=Pl[e][0],s=Pl[e][2]!==!1;break}if(d==null){n._isValid=!1;return}if(i[3]){for(e=0,t=a;e<t;e++)if(mf[e][1].exec(i[3])){f=(i[2]||" ")+mf[e][0];break}if(f==null){n._isValid=!1;return}}if(!s&&f!=null){n._isValid=!1;return}if(i[4])if(i4.exec(i[4]))l="Z";else{n._isValid=!1;return}n._f=d+(f||"")+(l||""),Rp(n)}else n._isValid=!1}function l4(n,e,t,r,i,s){var d=[u4(n),F0.indexOf(e),parseInt(t,10),parseInt(r,10),parseInt(i,10)];return s&&d.push(parseInt(s,10)),d}function u4(n){var e=parseInt(n,10);return e<=49?2e3+e:e<=999?1900+e:e}function c4(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function h4(n,e,t){if(n){var r=G0.indexOf(n),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return Ge(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function f4(n,e,t){if(n)return a4[n];if(e)return 0;var r=parseInt(t,10),i=r%100,s=(r-i)/100;return s*60+i}function q0(n){var e=o4.exec(c4(n._i)),t;if(e){if(t=l4(e[4],e[3],e[2],e[5],e[6],e[7]),!h4(e[1],t,n))return;n._a=t,n._tzm=f4(e[8],e[9],e[10]),n._d=ya.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),Ge(n).rfc2822=!0}else n._isValid=!1}function d4(n){var e=s4.exec(n._i);if(e!==null){n._d=new Date(+e[1]);return}if(X0(n),n._isValid===!1)delete n._isValid;else return;if(q0(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:_e.createFromInputFallback(n)}_e.createFromInputFallback=er("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});function Bs(n,e,t){return n??e??t}function p4(n){var e=new Date(_e.now());return n._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Mp(n){var e,t,r=[],i,s,d;if(!n._d){for(i=p4(n),n._w&&n._a[Cr]==null&&n._a[Xr]==null&&m4(n),n._dayOfYear!=null&&(d=Bs(n._a[sn],i[sn]),(n._dayOfYear>Go(d)||n._dayOfYear===0)&&(Ge(n)._overflowDayOfYear=!0),t=ya(d,0,n._dayOfYear),n._a[Xr]=t.getUTCMonth(),n._a[Cr]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=i[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[zt]===24&&n._a[hr]===0&&n._a[qr]===0&&n._a[Qi]===0&&(n._nextDay=!0,n._a[zt]=0),n._d=(n._useUTC?ya:Sj).apply(null,r),s=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[zt]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==s&&(Ge(n).weekdayMismatch=!0)}}function m4(n){var e,t,r,i,s,d,f,l,m;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(s=1,d=4,t=Bs(e.GG,n._a[sn],ba(_t(),1,4).year),r=Bs(e.W,1),i=Bs(e.E,1),(i<1||i>7)&&(l=!0)):(s=n._locale._week.dow,d=n._locale._week.doy,m=ba(_t(),s,d),t=Bs(e.gg,n._a[sn],m.year),r=Bs(e.w,m.week),e.d!=null?(i=e.d,(i<0||i>6)&&(l=!0)):e.e!=null?(i=e.e+s,(e.e<0||e.e>6)&&(l=!0)):i=s),r<1||r>Qr(t,s,d)?Ge(n)._overflowWeeks=!0:l!=null?Ge(n)._overflowWeekday=!0:(f=j0(t,r,i,s,d),n._a[sn]=f.year,n._dayOfYear=f.dayOfYear)}_e.ISO_8601=function(){};_e.RFC_2822=function(){};function Rp(n){if(n._f===_e.ISO_8601){X0(n);return}if(n._f===_e.RFC_2822){q0(n);return}n._a=[],Ge(n).empty=!0;var e=""+n._i,t,r,i,s,d,f=e.length,l=0,m,a;for(i=M0(n._f,n._locale).match(Cp)||[],a=i.length,t=0;t<a;t++)s=i[t],r=(e.match(ij(s,n))||[])[0],r&&(d=e.substr(0,e.indexOf(r)),d.length>0&&Ge(n).unusedInput.push(d),e=e.slice(e.indexOf(r)+r.length),l+=r.length),zs[s]?(r?Ge(n).empty=!1:Ge(n).unusedTokens.push(s),oj(s,r,n)):n._strict&&!r&&Ge(n).unusedTokens.push(s);Ge(n).charsLeftOver=f-l,e.length>0&&Ge(n).unusedInput.push(e),n._a[zt]<=12&&Ge(n).bigHour===!0&&n._a[zt]>0&&(Ge(n).bigHour=void 0),Ge(n).parsedDateParts=n._a.slice(0),Ge(n).meridiem=n._meridiem,n._a[zt]=g4(n._locale,n._a[zt],n._meridiem),m=Ge(n).era,m!==null&&(n._a[sn]=n._locale.erasConvertYear(m,n._a[sn])),Mp(n),Lp(n)}function g4(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function v4(n){var e,t,r,i,s,d,f=!1,l=n._f.length;if(l===0){Ge(n).invalidFormat=!0,n._d=new Date(NaN);return}for(i=0;i<l;i++)s=0,d=!1,e=Sp({},n),n._useUTC!=null&&(e._useUTC=n._useUTC),e._f=n._f[i],Rp(e),bp(e)&&(d=!0),s+=Ge(e).charsLeftOver,s+=Ge(e).unusedTokens.length*10,Ge(e).score=s,f?s<r&&(r=s,t=e):(r==null||s<r||d)&&(r=s,t=e,d&&(f=!0));xi(n,t||e)}function w4(n){if(!n._d){var e=Ep(n._i),t=e.day===void 0?e.date:e.day;n._a=$0([e.year,e.month,t,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),Mp(n)}}function y4(n){var e=new Ba(Lp(Z0(n)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Z0(n){var e=n._i,t=n._f;return n._locale=n._locale||oi(n._l),e===null||t===void 0&&e===""?yc({nullInput:!0}):(typeof e=="string"&&(n._i=e=n._locale.preparse(e)),mr(e)?new Ba(Lp(e)):(Pa(e)?n._d=e:pr(t)?v4(n):t?Rp(n):b4(n),bp(n)||(n._d=null),n))}function b4(n){var e=n._i;yn(e)?n._d=new Date(_e.now()):Pa(e)?n._d=new Date(e.valueOf()):typeof e=="string"?d4(n):pr(e)?(n._a=$0(e.slice(0),function(t){return parseInt(t,10)}),Mp(n)):ns(e)?w4(n):ti(e)?n._d=new Date(e):_e.createFromInputFallback(n)}function Q0(n,e,t,r,i){var s={};return(e===!0||e===!1)&&(r=e,e=void 0),(t===!0||t===!1)&&(r=t,t=void 0),(ns(n)&&yp(n)||pr(n)&&n.length===0)&&(n=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=t,s._i=n,s._f=e,s._strict=r,y4(s)}function _t(n,e,t,r){return Q0(n,e,t,r,!1)}var S4=er("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=_t.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:yc()}),_4=er("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=_t.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:yc()});function eS(n,e){var t,r;if(e.length===1&&pr(e[0])&&(e=e[0]),!e.length)return _t();for(t=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][n](t))&&(t=e[r]);return t}function C4(){var n=[].slice.call(arguments,0);return eS("isBefore",n)}function E4(){var n=[].slice.call(arguments,0);return eS("isAfter",n)}var k4=function(){return Date.now?Date.now():+new Date},No=["year","quarter","month","week","day","hour","minute","second","millisecond"];function x4(n){var e,t=!1,r,i=No.length;for(e in n)if(lt(n,e)&&!(Pt.call(No,e)!==-1&&(n[e]==null||!isNaN(n[e]))))return!1;for(r=0;r<i;++r)if(n[No[r]]){if(t)return!1;parseFloat(n[No[r]])!==qe(n[No[r]])&&(t=!0)}return!0}function A4(){return this._isValid}function T4(){return gr(NaN)}function Tc(n){var e=Ep(n),t=e.year||0,r=e.quarter||0,i=e.month||0,s=e.week||e.isoWeek||0,d=e.day||0,f=e.hour||0,l=e.minute||0,m=e.second||0,a=e.millisecond||0;this._isValid=x4(e),this._milliseconds=+a+m*1e3+l*6e4+f*1e3*60*60,this._days=+d+s*7,this._months=+i+r*3+t*12,this._data={},this._locale=oi(),this._bubble()}function ql(n){return n instanceof Tc}function cd(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function $4(n,e,t){var r=Math.min(n.length,e.length),i=Math.abs(n.length-e.length),s=0,d;for(d=0;d<r;d++)(t&&n[d]!==e[d]||!t&&qe(n[d])!==qe(e[d]))&&s++;return s+i}function tS(n,e){Me(n,0,0,function(){var t=this.utcOffset(),r="+";return t<0&&(t=-t,r="-"),r+Ar(~~(t/60),2)+e+Ar(~~t%60,2)})}tS("Z",":");tS("ZZ","");Te("Z",kc);Te("ZZ",kc);mt(["Z","ZZ"],function(n,e,t){t._useUTC=!0,t._tzm=Np(kc,n)});var O4=/([\+\-]|\d\d)/gi;function Np(n,e){var t=(e||"").match(n),r,i,s;return t===null?null:(r=t[t.length-1]||[],i=(r+"").match(O4)||["-",0,0],s=+(i[1]*60)+qe(i[2]),s===0?0:i[0]==="+"?s:-s)}function Ip(n,e){var t,r;return e._isUTC?(t=e.clone(),r=(mr(n)||Pa(n)?n.valueOf():_t(n).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+r),_e.updateOffset(t,!1),t):_t(n).local()}function hd(n){return-Math.round(n._d.getTimezoneOffset())}_e.updateOffset=function(){};function L4(n,e,t){var r=this._offset||0,i;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=Np(kc,n),n===null)return this}else Math.abs(n)<16&&!t&&(n=n*60);return!this._isUTC&&e&&(i=hd(this)),this._offset=n,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==n&&(!e||this._changeInProgress?iS(this,gr(n-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_e.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:hd(this)}function M4(n,e){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,e),this):-this.utcOffset()}function R4(n){return this.utcOffset(0,n)}function N4(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(hd(this),"m")),this}function I4(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=Np(nj,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function D4(n){return this.isValid()?(n=n?_t(n).utcOffset():0,(this.utcOffset()-n)%60===0):!1}function P4(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function B4(){if(!yn(this._isDSTShifted))return this._isDSTShifted;var n={},e;return Sp(n,this),n=Z0(n),n._a?(e=n._isUTC?Lr(n._a):_t(n._a),this._isDSTShifted=this.isValid()&&$4(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function F4(){return this.isValid()?!this._isUTC:!1}function V4(){return this.isValid()?this._isUTC:!1}function nS(){return this.isValid()?this._isUTC&&this._offset===0:!1}var U4=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,W4=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function gr(n,e){var t=n,r=null,i,s,d;return ql(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:ti(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=U4.exec(n))?(i=r[1]==="-"?-1:1,t={y:0,d:qe(r[Cr])*i,h:qe(r[zt])*i,m:qe(r[hr])*i,s:qe(r[qr])*i,ms:qe(cd(r[Qi]*1e3))*i}):(r=W4.exec(n))?(i=r[1]==="-"?-1:1,t={y:Gi(r[2],i),M:Gi(r[3],i),w:Gi(r[4],i),d:Gi(r[5],i),h:Gi(r[6],i),m:Gi(r[7],i),s:Gi(r[8],i)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(d=H4(_t(t.from),_t(t.to)),t={},t.ms=d.milliseconds,t.M=d.months),s=new Tc(t),ql(n)&<(n,"_locale")&&(s._locale=n._locale),ql(n)&<(n,"_isValid")&&(s._isValid=n._isValid),s}gr.fn=Tc.prototype;gr.invalid=T4;function Gi(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function uy(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function H4(n,e){var t;return n.isValid()&&e.isValid()?(e=Ip(e,n),n.isBefore(e)?t=uy(n,e):(t=uy(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function rS(n,e){return function(t,r){var i,s;return r!==null&&!isNaN(+r)&&(L0(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=t,t=r,r=s),i=gr(t,r),iS(this,i,n),this}}function iS(n,e,t,r){var i=e._milliseconds,s=cd(e._days),d=cd(e._months);n.isValid()&&(r=r??!0,d&&U0(n,fu(n,"Month")+d*t),s&&N0(n,"Date",fu(n,"Date")+s*t),i&&n._d.setTime(n._d.valueOf()+i*t),r&&_e.updateOffset(n,s||d))}var z4=rS(1,"add"),j4=rS(-1,"subtract");function sS(n){return typeof n=="string"||n instanceof String}function G4(n){return mr(n)||Pa(n)||sS(n)||ti(n)||J4(n)||Y4(n)||n===null||n===void 0}function Y4(n){var e=ns(n)&&!yp(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,s,d=r.length;for(i=0;i<d;i+=1)s=r[i],t=t||lt(n,s);return e&&t}function J4(n){var e=pr(n),t=!1;return e&&(t=n.filter(function(r){return!ti(r)&&sS(n)}).length===0),e&&t}function K4(n){var e=ns(n)&&!yp(n),t=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,s;for(i=0;i<r.length;i+=1)s=r[i],t=t||lt(n,s);return e&&t}function X4(n,e){var t=n.diff(e,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function q4(n,e){arguments.length===1&&(arguments[0]?G4(arguments[0])?(n=arguments[0],e=void 0):K4(arguments[0])&&(e=arguments[0],n=void 0):(n=void 0,e=void 0));var t=n||_t(),r=Ip(t,this).startOf("day"),i=_e.calendarFormat(this,r)||"sameElse",s=e&&(Mr(e[i])?e[i].call(this,t):e[i]);return this.format(s||this.localeData().calendar(i,this,_t(t)))}function Z4(){return new Ba(this)}function Q4(n,e){var t=mr(n)?n:_t(n);return this.isValid()&&t.isValid()?(e=tr(e)||"millisecond",e==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf()):!1}function e3(n,e){var t=mr(n)?n:_t(n);return this.isValid()&&t.isValid()?(e=tr(e)||"millisecond",e==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf()):!1}function t3(n,e,t,r){var i=mr(n)?n:_t(n),s=mr(e)?e:_t(e);return this.isValid()&&i.isValid()&&s.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,t):!this.isBefore(i,t))&&(r[1]===")"?this.isBefore(s,t):!this.isAfter(s,t))):!1}function n3(n,e){var t=mr(n)?n:_t(n),r;return this.isValid()&&t.isValid()?(e=tr(e)||"millisecond",e==="millisecond"?this.valueOf()===t.valueOf():(r=t.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function r3(n,e){return this.isSame(n,e)||this.isAfter(n,e)}function i3(n,e){return this.isSame(n,e)||this.isBefore(n,e)}function s3(n,e,t){var r,i,s;if(!this.isValid())return NaN;if(r=Ip(n,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,e=tr(e),e){case"year":s=Zl(this,r)/12;break;case"month":s=Zl(this,r);break;case"quarter":s=Zl(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return t?s:Kn(s)}function Zl(n,e){if(n.date()<e.date())return-Zl(e,n);var t=(e.year()-n.year())*12+(e.month()-n.month()),r=n.clone().add(t,"months"),i,s;return e-r<0?(i=n.clone().add(t-1,"months"),s=(e-r)/(r-i)):(i=n.clone().add(t+1,"months"),s=(e-r)/(i-r)),-(t+s)||0}_e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";_e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function o3(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function a3(n){if(!this.isValid())return null;var e=n!==!0,t=e?this.clone().utc():this;return t.year()<0||t.year()>9999?Xl(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Mr(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Xl(t,"Z")):Xl(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function l3(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,i,s;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",s=e+'[")]',this.format(t+r+i+s)}function u3(n){n||(n=this.isUtc()?_e.defaultFormatUtc:_e.defaultFormat);var e=Xl(this,n);return this.localeData().postformat(e)}function c3(n,e){return this.isValid()&&(mr(n)&&n.isValid()||_t(n).isValid())?gr({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function h3(n){return this.from(_t(),n)}function f3(n,e){return this.isValid()&&(mr(n)&&n.isValid()||_t(n).isValid())?gr({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function d3(n){return this.to(_t(),n)}function oS(n){var e;return n===void 0?this._locale._abbr:(e=oi(n),e!=null&&(this._locale=e),this)}var aS=er("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function lS(){return this._locale}var mu=1e3,js=60*mu,gu=60*js,uS=(365*400+97)*24*gu;function Gs(n,e){return(n%e+e)%e}function cS(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-uS:new Date(n,e,t).valueOf()}function hS(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-uS:Date.UTC(n,e,t)}function p3(n){var e,t;if(n=tr(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?hS:cS,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Gs(e+(this._isUTC?0:this.utcOffset()*js),gu);break;case"minute":e=this._d.valueOf(),e-=Gs(e,js);break;case"second":e=this._d.valueOf(),e-=Gs(e,mu);break}return this._d.setTime(e),_e.updateOffset(this,!0),this}function m3(n){var e,t;if(n=tr(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?hS:cS,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=gu-Gs(e+(this._isUTC?0:this.utcOffset()*js),gu)-1;break;case"minute":e=this._d.valueOf(),e+=js-Gs(e,js)-1;break;case"second":e=this._d.valueOf(),e+=mu-Gs(e,mu)-1;break}return this._d.setTime(e),_e.updateOffset(this,!0),this}function g3(){return this._d.valueOf()-(this._offset||0)*6e4}function v3(){return Math.floor(this.valueOf()/1e3)}function w3(){return new Date(this.valueOf())}function y3(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function b3(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function S3(){return this.isValid()?this.toISOString():null}function _3(){return bp(this)}function C3(){return xi({},Ge(this))}function E3(){return Ge(this).overflow}function k3(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Me("N",0,0,"eraAbbr");Me("NN",0,0,"eraAbbr");Me("NNN",0,0,"eraAbbr");Me("NNNN",0,0,"eraName");Me("NNNNN",0,0,"eraNarrow");Me("y",["y",1],"yo","eraYear");Me("y",["yy",2],0,"eraYear");Me("y",["yyy",3],0,"eraYear");Me("y",["yyyy",4],0,"eraYear");Te("N",Dp);Te("NN",Dp);Te("NNN",Dp);Te("NNNN",D3);Te("NNNNN",P3);mt(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var i=t._locale.erasParse(n,r,t._strict);i?Ge(t).era=i:Ge(t).invalidEra=n});Te("y",lo);Te("yy",lo);Te("yyy",lo);Te("yyyy",lo);Te("yo",B3);mt(["y","yy","yyy","yyyy"],sn);mt(["yo"],function(n,e,t,r){var i;t._locale._eraYearOrdinalRegex&&(i=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[sn]=t._locale.eraYearOrdinalParse(n,i):e[sn]=parseInt(n,10)});function x3(n,e){var t,r,i,s=this._eras||oi("en")._eras;for(t=0,r=s.length;t<r;++t){switch(typeof s[t].since){case"string":i=_e(s[t].since).startOf("day"),s[t].since=i.valueOf();break}switch(typeof s[t].until){case"undefined":s[t].until=1/0;break;case"string":i=_e(s[t].until).startOf("day").valueOf(),s[t].until=i.valueOf();break}}return s}function A3(n,e,t){var r,i,s=this.eras(),d,f,l;for(n=n.toUpperCase(),r=0,i=s.length;r<i;++r)if(d=s[r].name.toUpperCase(),f=s[r].abbr.toUpperCase(),l=s[r].narrow.toUpperCase(),t)switch(e){case"N":case"NN":case"NNN":if(f===n)return s[r];break;case"NNNN":if(d===n)return s[r];break;case"NNNNN":if(l===n)return s[r];break}else if([d,f,l].indexOf(n)>=0)return s[r]}function T3(n,e){var t=n.since<=n.until?1:-1;return e===void 0?_e(n.since).year():_e(n.since).year()+(e-n.offset)*t}function $3(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),r[n].since<=t&&t<=r[n].until||r[n].until<=t&&t<=r[n].since)return r[n].name;return""}function O3(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),r[n].since<=t&&t<=r[n].until||r[n].until<=t&&t<=r[n].since)return r[n].narrow;return""}function L3(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;n<e;++n)if(t=this.clone().startOf("day").valueOf(),r[n].since<=t&&t<=r[n].until||r[n].until<=t&&t<=r[n].since)return r[n].abbr;return""}function M3(){var n,e,t,r,i=this.localeData().eras();for(n=0,e=i.length;n<e;++n)if(t=i[n].since<=i[n].until?1:-1,r=this.clone().startOf("day").valueOf(),i[n].since<=r&&r<=i[n].until||i[n].until<=r&&r<=i[n].since)return(this.year()-_e(i[n].since).year())*t+i[n].offset;return this.year()}function R3(n){return lt(this,"_erasNameRegex")||Pp.call(this),n?this._erasNameRegex:this._erasRegex}function N3(n){return lt(this,"_erasAbbrRegex")||Pp.call(this),n?this._erasAbbrRegex:this._erasRegex}function I3(n){return lt(this,"_erasNarrowRegex")||Pp.call(this),n?this._erasNarrowRegex:this._erasRegex}function Dp(n,e){return e.erasAbbrRegex(n)}function D3(n,e){return e.erasNameRegex(n)}function P3(n,e){return e.erasNarrowRegex(n)}function B3(n,e){return e._eraYearOrdinalRegex||lo}function Pp(){var n=[],e=[],t=[],r=[],i,s,d=this.eras();for(i=0,s=d.length;i<s;++i)e.push(Rn(d[i].name)),n.push(Rn(d[i].abbr)),t.push(Rn(d[i].narrow)),r.push(Rn(d[i].name)),r.push(Rn(d[i].abbr)),r.push(Rn(d[i].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}Me(0,["gg",2],0,function(){return this.weekYear()%100});Me(0,["GG",2],0,function(){return this.isoWeekYear()%100});function $c(n,e){Me(0,[n,n.length],0,e)}$c("gggg","weekYear");$c("ggggg","weekYear");$c("GGGG","isoWeekYear");$c("GGGGG","isoWeekYear");on("weekYear","gg");on("isoWeekYear","GG");an("weekYear",1);an("isoWeekYear",1);Te("G",Ec);Te("g",Ec);Te("GG",Ct,Bn);Te("gg",Ct,Bn);Te("GGGG",xp,kp);Te("gggg",xp,kp);Te("GGGGG",Cc,Sc);Te("ggggg",Cc,Sc);Va(["gggg","ggggg","GGGG","GGGGG"],function(n,e,t,r){e[r.substr(0,2)]=qe(n)});Va(["gg","GG"],function(n,e,t,r){e[r]=_e.parseTwoDigitYear(n)});function F3(n){return fS.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function V3(n){return fS.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function U3(){return Qr(this.year(),1,4)}function W3(){return Qr(this.isoWeekYear(),1,4)}function H3(){var n=this.localeData()._week;return Qr(this.year(),n.dow,n.doy)}function z3(){var n=this.localeData()._week;return Qr(this.weekYear(),n.dow,n.doy)}function fS(n,e,t,r,i){var s;return n==null?ba(this,r,i).year:(s=Qr(n,r,i),e>s&&(e=s),j3.call(this,n,e,t,r,i))}function j3(n,e,t,r,i){var s=j0(n,e,t,r,i),d=ya(s.year,0,s.dayOfYear);return this.year(d.getUTCFullYear()),this.month(d.getUTCMonth()),this.date(d.getUTCDate()),this}Me("Q",0,"Qo","quarter");on("quarter","Q");an("quarter",7);Te("Q",I0);mt("Q",function(n,e){e[Xr]=(qe(n)-1)*3});function G3(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Me("D",["DD",2],"Do","date");on("date","D");an("date",9);Te("D",Ct);Te("DD",Ct,Bn);Te("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});mt(["D","DD"],Cr);mt("Do",function(n,e){e[Cr]=qe(n.match(Ct)[0])});var dS=ao("Date",!0);Me("DDD",["DDDD",3],"DDDo","dayOfYear");on("dayOfYear","DDD");an("dayOfYear",4);Te("DDD",_c);Te("DDDD",D0);mt(["DDD","DDDD"],function(n,e,t){t._dayOfYear=qe(n)});function Y3(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Me("m",["mm",2],0,"minute");on("minute","m");an("minute",14);Te("m",Ct);Te("mm",Ct,Bn);mt(["m","mm"],hr);var J3=ao("Minutes",!1);Me("s",["ss",2],0,"second");on("second","s");an("second",15);Te("s",Ct);Te("ss",Ct,Bn);mt(["s","ss"],qr);var K3=ao("Seconds",!1);Me("S",0,0,function(){return~~(this.millisecond()/100)});Me(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Me(0,["SSS",3],0,"millisecond");Me(0,["SSSS",4],0,function(){return this.millisecond()*10});Me(0,["SSSSS",5],0,function(){return this.millisecond()*100});Me(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Me(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Me(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Me(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});on("millisecond","ms");an("millisecond",16);Te("S",_c,I0);Te("SS",_c,Bn);Te("SSS",_c,D0);var Ai,pS;for(Ai="SSSS";Ai.length<=9;Ai+="S")Te(Ai,lo);function X3(n,e){e[Qi]=qe(("0."+n)*1e3)}for(Ai="S";Ai.length<=9;Ai+="S")mt(Ai,X3);pS=ao("Milliseconds",!1);Me("z",0,0,"zoneAbbr");Me("zz",0,0,"zoneName");function q3(){return this._isUTC?"UTC":""}function Z3(){return this._isUTC?"Coordinated Universal Time":""}var ge=Ba.prototype;ge.add=z4;ge.calendar=q4;ge.clone=Z4;ge.diff=s3;ge.endOf=m3;ge.format=u3;ge.from=c3;ge.fromNow=h3;ge.to=f3;ge.toNow=d3;ge.get=ej;ge.invalidAt=E3;ge.isAfter=Q4;ge.isBefore=e3;ge.isBetween=t3;ge.isSame=n3;ge.isSameOrAfter=r3;ge.isSameOrBefore=i3;ge.isValid=_3;ge.lang=aS;ge.locale=oS;ge.localeData=lS;ge.max=_4;ge.min=S4;ge.parsingFlags=C3;ge.set=tj;ge.startOf=p3;ge.subtract=j4;ge.toArray=y3;ge.toObject=b3;ge.toDate=w3;ge.toISOString=a3;ge.inspect=l3;typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ge.toJSON=S3;ge.toString=o3;ge.unix=v3;ge.valueOf=g3;ge.creationData=k3;ge.eraName=$3;ge.eraNarrow=O3;ge.eraAbbr=L3;ge.eraYear=M3;ge.year=z0;ge.isLeapYear=bj;ge.weekYear=F3;ge.isoWeekYear=V3;ge.quarter=ge.quarters=G3;ge.month=W0;ge.daysInMonth=vj;ge.week=ge.weeks=xj;ge.isoWeek=ge.isoWeeks=Aj;ge.weeksInYear=H3;ge.weeksInWeekYear=z3;ge.isoWeeksInYear=U3;ge.isoWeeksInISOWeekYear=W3;ge.date=dS;ge.day=ge.days=Vj;ge.weekday=Uj;ge.isoWeekday=Wj;ge.dayOfYear=Y3;ge.hour=ge.hours=Kj;ge.minute=ge.minutes=J3;ge.second=ge.seconds=K3;ge.millisecond=ge.milliseconds=pS;ge.utcOffset=L4;ge.utc=R4;ge.local=N4;ge.parseZone=I4;ge.hasAlignedHourOffset=D4;ge.isDST=P4;ge.isLocal=F4;ge.isUtcOffset=V4;ge.isUtc=nS;ge.isUTC=nS;ge.zoneAbbr=q3;ge.zoneName=Z3;ge.dates=er("dates accessor is deprecated. Use date instead.",dS);ge.months=er("months accessor is deprecated. Use month instead",W0);ge.years=er("years accessor is deprecated. Use year instead",z0);ge.zone=er("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",M4);ge.isDSTShifted=er("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",B4);function Q3(n){return _t(n*1e3)}function eG(){return _t.apply(null,arguments).parseZone()}function mS(n){return n}var ut=_p.prototype;ut.calendar=Vz;ut.longDateFormat=zz;ut.invalidDate=Gz;ut.ordinal=Kz;ut.preparse=mS;ut.postformat=mS;ut.relativeTime=qz;ut.pastFuture=Zz;ut.set=Bz;ut.eras=x3;ut.erasParse=A3;ut.erasConvertYear=T3;ut.erasAbbrRegex=N3;ut.erasNameRegex=R3;ut.erasNarrowRegex=I3;ut.months=dj;ut.monthsShort=pj;ut.monthsParse=gj;ut.monthsRegex=yj;ut.monthsShortRegex=wj;ut.week=_j;ut.firstDayOfYear=kj;ut.firstDayOfWeek=Ej;ut.weekdays=Ij;ut.weekdaysMin=Pj;ut.weekdaysShort=Dj;ut.weekdaysParse=Fj;ut.weekdaysRegex=Hj;ut.weekdaysShortRegex=zj;ut.weekdaysMinRegex=jj;ut.isPM=Yj;ut.meridiem=Xj;function vu(n,e,t,r){var i=oi(),s=Lr().set(r,e);return i[t](s,n)}function gS(n,e,t){if(ti(n)&&(e=n,n=void 0),n=n||"",e!=null)return vu(n,e,t,"month");var r,i=[];for(r=0;r<12;r++)i[r]=vu(n,r,t,"month");return i}function Bp(n,e,t,r){typeof n=="boolean"?(ti(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,ti(e)&&(t=e,e=void 0),e=e||"");var i=oi(),s=n?i._week.dow:0,d,f=[];if(t!=null)return vu(e,(t+s)%7,r,"day");for(d=0;d<7;d++)f[d]=vu(e,(d+s)%7,r,"day");return f}function tG(n,e){return gS(n,e,"months")}function nG(n,e){return gS(n,e,"monthsShort")}function rG(n,e,t){return Bp(n,e,t,"weekdays")}function iG(n,e,t){return Bp(n,e,t,"weekdaysShort")}function sG(n,e,t){return Bp(n,e,t,"weekdaysMin")}Oi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=qe(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});_e.lang=er("moment.lang is deprecated. Use moment.locale instead.",Oi);_e.langData=er("moment.langData is deprecated. Use moment.localeData instead.",oi);var Hr=Math.abs;function oG(){var n=this._data;return this._milliseconds=Hr(this._milliseconds),this._days=Hr(this._days),this._months=Hr(this._months),n.milliseconds=Hr(n.milliseconds),n.seconds=Hr(n.seconds),n.minutes=Hr(n.minutes),n.hours=Hr(n.hours),n.months=Hr(n.months),n.years=Hr(n.years),this}function vS(n,e,t,r){var i=gr(e,t);return n._milliseconds+=r*i._milliseconds,n._days+=r*i._days,n._months+=r*i._months,n._bubble()}function aG(n,e){return vS(this,n,e,1)}function lG(n,e){return vS(this,n,e,-1)}function cy(n){return n<0?Math.floor(n):Math.ceil(n)}function uG(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,i,s,d,f,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=cy(fd(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,i=Kn(n/1e3),r.seconds=i%60,s=Kn(i/60),r.minutes=s%60,d=Kn(s/60),r.hours=d%24,e+=Kn(d/24),l=Kn(wS(e)),t+=l,e-=cy(fd(l)),f=Kn(t/12),t%=12,r.days=e,r.months=t,r.years=f,this}function wS(n){return n*4800/146097}function fd(n){return n*146097/4800}function cG(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=tr(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+wS(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(fd(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function hG(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+qe(this._months/12)*31536e6:NaN}function ai(n){return function(){return this.as(n)}}var fG=ai("ms"),dG=ai("s"),pG=ai("m"),mG=ai("h"),gG=ai("d"),vG=ai("w"),wG=ai("M"),yG=ai("Q"),bG=ai("y");function SG(){return gr(this)}function _G(n){return n=tr(n),this.isValid()?this[n+"s"]():NaN}function ms(n){return function(){return this.isValid()?this._data[n]:NaN}}var CG=ms("milliseconds"),EG=ms("seconds"),kG=ms("minutes"),xG=ms("hours"),AG=ms("days"),TG=ms("months"),$G=ms("years");function OG(){return Kn(this.days()/7)}var jr=Math.round,Us={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function LG(n,e,t,r,i){return i.relativeTime(e||1,!!t,n,r)}function MG(n,e,t,r){var i=gr(n).abs(),s=jr(i.as("s")),d=jr(i.as("m")),f=jr(i.as("h")),l=jr(i.as("d")),m=jr(i.as("M")),a=jr(i.as("w")),o=jr(i.as("y")),u=s<=t.ss&&["s",s]||s<t.s&&["ss",s]||d<=1&&["m"]||d<t.m&&["mm",d]||f<=1&&["h"]||f<t.h&&["hh",f]||l<=1&&["d"]||l<t.d&&["dd",l];return t.w!=null&&(u=u||a<=1&&["w"]||a<t.w&&["ww",a]),u=u||m<=1&&["M"]||m<t.M&&["MM",m]||o<=1&&["y"]||["yy",o],u[2]=e,u[3]=+n>0,u[4]=r,LG.apply(null,u)}function RG(n){return n===void 0?jr:typeof n=="function"?(jr=n,!0):!1}function NG(n,e){return Us[n]===void 0?!1:e===void 0?Us[n]:(Us[n]=e,n==="s"&&(Us.ss=e-1),!0)}function IG(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Us,i,s;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Us,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),i=this.localeData(),s=MG(this,!t,r,i),t&&(s=i.pastFuture(+this,s)),i.postformat(s)}var gf=Math.abs;function Ns(n){return(n>0)-(n<0)||+n}function Oc(){if(!this.isValid())return this.localeData().invalidDate();var n=gf(this._milliseconds)/1e3,e=gf(this._days),t=gf(this._months),r,i,s,d,f=this.asSeconds(),l,m,a,o;return f?(r=Kn(n/60),i=Kn(r/60),n%=60,r%=60,s=Kn(t/12),t%=12,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=f<0?"-":"",m=Ns(this._months)!==Ns(f)?"-":"",a=Ns(this._days)!==Ns(f)?"-":"",o=Ns(this._milliseconds)!==Ns(f)?"-":"",l+"P"+(s?m+s+"Y":"")+(t?m+t+"M":"")+(e?a+e+"D":"")+(i||r||n?"T":"")+(i?o+i+"H":"")+(r?o+r+"M":"")+(n?o+d+"S":"")):"P0D"}var st=Tc.prototype;st.isValid=A4;st.abs=oG;st.add=aG;st.subtract=lG;st.as=cG;st.asMilliseconds=fG;st.asSeconds=dG;st.asMinutes=pG;st.asHours=mG;st.asDays=gG;st.asWeeks=vG;st.asMonths=wG;st.asQuarters=yG;st.asYears=bG;st.valueOf=hG;st._bubble=uG;st.clone=SG;st.get=_G;st.milliseconds=CG;st.seconds=EG;st.minutes=kG;st.hours=xG;st.days=AG;st.weeks=OG;st.months=TG;st.years=$G;st.humanize=IG;st.toISOString=Oc;st.toString=Oc;st.toJSON=Oc;st.locale=oS;st.localeData=lS;st.toIsoString=er("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Oc);st.lang=aS;Me("X",0,0,"unix");Me("x",0,0,"valueOf");Te("x",Ec);Te("X",rj);mt("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});mt("x",function(n,e,t){t._d=new Date(qe(n))});//! moment.js
|
|
1098
|
-
_e.version="2.29.4";Dz(_t);_e.fn=ge;_e.min=C4;_e.max=E4;_e.now=k4;_e.utc=Lr;_e.unix=Q3;_e.months=tG;_e.isDate=Pa;_e.locale=Oi;_e.invalid=yc;_e.duration=gr;_e.isMoment=mr;_e.weekdays=rG;_e.parseZone=eG;_e.localeData=oi;_e.isDuration=ql;_e.monthsShort=nG;_e.weekdaysMin=sG;_e.defineLocale=Op;_e.updateLocale=e4;_e.locales=t4;_e.weekdaysShort=iG;_e.normalizeUnits=tr;_e.relativeTimeRounding=RG;_e.relativeTimeThreshold=NG;_e.calendarFormat=X4;_e.prototype=ge;_e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const DG={class:"tw-text-[#a5a5a5] tw-text-xs"},PG={key:1},BG={key:1,class:"tw-text-[#a5a5a5]"},FG={key:2,class:"tw-text-[#a5a5a5]"},VG={key:5,class:"tw-flex tw-justify-center"},UG={key:6,class:"tw-text-right"},WG={key:8},HG=c.defineComponent({__name:"vc-table-cell",props:{cell:{default:void 0},item:{default:void 0}},setup(n){const e=n,t=window.navigator.language,r=c.computed(()=>(e.cell.field||e.cell.id).split(".").reduce((i,s)=>i&&Array.isArray(i)&&i.length?i&&i[0][s]||null:i&&i[s]||null,e.item));return(i,s)=>n.cell.type==="money"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.unref(r)>0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("span",null,c.toDisplayString(Math.trunc(Number(c.unref(r)))),1),c.createElementVNode("span",DG,"."+c.toDisplayString(`${Number(c.unref(r))*100%100}`.padEnd(2,"0").slice(0,2)),1)],64)):(c.openBlock(),c.createElementBlock("span",PG,"N/A"))],64)):n.cell.type==="date-ago"?(c.openBlock(),c.createElementBlock("span",BG,[c.unref(r)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createTextVNode(c.toDisplayString(c.unref(_e)(c.unref(r)).fromNow()),1)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode("N/A")],64))])):n.cell.type==="date"||n.cell.type==="time"||n.cell.type==="date-time"?(c.openBlock(),c.createElementBlock("span",FG,[c.unref(r)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[n.cell.format?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createTextVNode(c.toDisplayString(c.unref(_e)(c.unref(r)).locale(c.unref(t)).format(n.cell.format)),1)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[n.cell.type==="date"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createTextVNode(c.toDisplayString(c.unref(r).toLocaleDateString()),1)],64)):c.createCommentVNode("",!0),n.cell.type==="time"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode(c.toDisplayString(c.unref(r).toLocaleTimeString()),1)],64)):c.createCommentVNode("",!0),n.cell.type==="date-time"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[c.createTextVNode(c.toDisplayString(c.unref(r).toLocaleString()),1)],64)):c.createCommentVNode("",!0)],64))],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode("N/A")],64))])):n.cell.type==="image"?(c.openBlock(),c.createBlock(c.unref(xu),{key:3,bordered:!0,size:"s",aspect:"1x1",src:c.unref(r),background:"contain"},null,8,["src"])):n.cell.type==="status"?(c.openBlock(),c.createBlock(c.unref(Cd),{key:4},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(r)),1)]),_:1})):n.cell.type==="status-icon"?(c.openBlock(),c.createElementBlock("div",VG,[c.createVNode(c.unref(Ed),{status:c.unref(r)},null,8,["status"])])):n.cell.type==="number"?(c.openBlock(),c.createElementBlock("span",UG,c.toDisplayString(Number(c.unref(r)).toFixed(0)),1)):n.cell.type==="link"?(c.openBlock(),c.createBlock(c.unref(bd),{key:7},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(r)),1)]),_:1})):(c.openBlock(),c.createElementBlock("span",WG,c.toDisplayString(c.unref(r)),1))}}),zG={columns:{type:Array,default:()=>[]},items:{type:Array,default:()=>[]},itemActionBuilder:{type:Function,default:void 0},sort:{type:String,default:void 0},multiselect:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},totalLabel:{type:String,default:"Totals:"},totalCount:{type:Number,default:0},pages:{type:Number,default:0},currentPage:{type:Number,default:0},searchPlaceholder:{type:String,default:"Search..."},searchValue:{type:String,default:void 0},loading:{type:Boolean,default:!1},empty:{type:Object,default:()=>({text:"List is empty."})},notfound:{type:Object,default:()=>({text:"Nothing found."})},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},activeFilterCount:{type:Number,default:0},selectedItemId:{type:String,default:void 0},scrolling:{type:Boolean,default:!1}},jG={paginationClick:n=>Li(n),selectionChanged:n=>es(n),"search:change":n=>rs(n),headerClick:n=>es(n),itemClick:n=>es(n),"scroll:ptr":()=>!0},GG={class:"tw-relative tw-overflow-hidden tw-flex tw-flex-col tw-grow tw-basis-0"},YG={class:"tw-shrink-0 tw-flex tw-items-center tw-justify-between tw-p-4"},JG={key:0,class:"tw-mr-3"},KG={key:1,class:"tw-ml-3"},XG={class:"tw-flex tw-relative tw-overflow-hidden tw-grow"},qG={key:0},ZG={key:0,class:"vc-table__header"},QG={class:"vc-table__header-row"},e5={key:0,class:"tw-h-[42px] tw-bg-[#f9f9f9] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border sticky tw-top-0 tw-select-none tw-overflow-hidden tw-z-[1]",width:"50"},t5={class:"tw-flex tw-justify-center tw-items-center"},n5=["width","onClick"],r5={key:0,class:"tw-ml-1"},i5={key:1,class:"tw-flex tw-flex-col tw-ml-1 tw-invisible group-hover:tw-visible"},s5={key:1,class:"tw-h-[42px] tw-bg-[#f9f9f9] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border sticky tw-top-0 tw-select-none tw-overflow-hidden tw-z-[1]",width:"44"},o5={key:1,class:"vc-table__body"},a5=["onClick","onMouseover"],l5={key:0,width:"50"},u5={class:"tw-flex tw-justify-center tw-items-center"},c5=["width"],h5={key:1,class:"tw-box-border tw-overflow-visible tw-px-3",width:"44"},f5={class:"vc-table__body-actions-container tw-relative !tw-hidden tw-justify-center tw-items-center"},d5=["onClick","disabled"],p5={class:"tw-flex tw-items-center tw-flex-row tw-text-[#3f3f3f] tw-font-normal not-italic tw-text-base tw-leading-[20px] tw-gap-[25px]"},m5=["onClick"],g5={class:"tw-not-italic tw-font-normal tw-text-base tw-leading-[20px] tw-text-[#3f3f3f] tw-ml-[7px]"},v5=c.createElementVNode("div",{class:"vc-table__body-tooltip-arrow","data-popper-arrow":""},null,-1),w5={key:0,class:"tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center"},y5=["src"],b5={class:"tw-m-4 vc-table__empty-text"},S5={key:0,class:"tw-w-full tw-h-full tw-box-border tw-flex tw-flex-col tw-items-center tw-justify-center"},_5=["src"],C5={class:"tw-m-4 tw-text-xl tw-font-medium"},E5={class:"tw-bg-[#fbfdfe] tw-border-t tw-border-solid tw-border-[#eaedf3] tw-flex-shrink-0 tw-flex tw-items-center tw-justify-between tw-p-4"},k5=c.defineComponent({__name:"vc-table",props:zG,emits:jG,setup(n,{emit:e}){const t=n,r=c.ref({}),i=c.ref(),s=c.ref(),d=c.ref(),f=c.ref([]),l=c.ref([]),m=c.ref([]),a=c.ref();c.onBeforeUpdate(()=>{f.value=[],l.value=[]});const o=c.computed(()=>{const A=t.sort?.split(":");return A&&A.length===2&&A[1]}),u=c.computed(()=>{const A=t.sort?.split(":");return A&&A.length===2&&A[0]}),p={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},v=c.computed(()=>Object.values(r.value).every(A=>A));c.watch(()=>t.items,A=>{r.value={},A?.forEach(R=>r.value[R.id]=!1),d.value?.scrollTop()});function w(A,R){A&&(l.value.some(k=>k.id===R)||l.value.push({element:A,id:R}))}function b(A,R){A&&(f.value.some(k=>k.id===R)||f.value.push({element:A,id:R}))}function _(){const A=Object.values(r.value).every(R=>R);Object.keys(r.value).forEach(R=>r.value[R]=!A),e("selectionChanged",r.value)}function E(A,R){r.value[A]=R,e("selectionChanged",r.value)}function $(A,R){i.value=A.id;const y=f.value.find(O=>O.id===R),k=l.value.find(O=>O.id===R);y&&k&&c.nextTick(()=>{s.value=wc(y.element,k.element,{placement:"bottom",onFirstUpdate:()=>s.value?.update(),modifiers:[{name:"offset",options:{offset:[-15,15]}}]})})}async function x(A){typeof t.itemActionBuilder=="function"&&(m.value=await t.itemActionBuilder(A))}function S(){i.value=void 0,s.value?.destroy()}function T(A){a.value=A}function M(A){e("headerClick",A)}return(A,R)=>{const y=c.resolveComponent("VcButton");return c.openBlock(),c.createElementBlock("div",GG,[(A.$slots.header||A.header)&&(A.items&&A.items.length||A.searchValue||A.searchValue===""||A.activeFilterCount)?c.renderSlot(A.$slots,"header",{key:0},()=>[c.createElementVNode("div",YG,[A.$isMobile.value&&A.$slots.filters?(c.openBlock(),c.createElementBlock("div",JG,[c.createVNode(sy,{counter:A.activeFilterCount},{default:c.withCtx(({closePanel:k})=>[c.renderSlot(A.$slots,"filters",{closePanel:k})]),_:3},8,["counter"])])):c.createCommentVNode("",!0),c.createVNode(c.unref(Qo),{class:"tw-grow tw-basis-0",placeholder:A.searchPlaceholder,clearable:"",name:"table_search",modelValue:A.searchValue,"onUpdate:modelValue":R[0]||(R[0]=k=>A.$emit("search:change",k))},null,8,["placeholder","modelValue"]),A.$isDesktop.value&&A.$slots.filters?(c.openBlock(),c.createElementBlock("div",KG,[c.createVNode(sy,{title:A.$t("Filters"),counter:A.activeFilterCount,parentExpanded:A.expanded},{default:c.withCtx(({closePanel:k})=>[c.renderSlot(A.$slots,"filters",{closePanel:k})]),_:3},8,["title","counter","parentExpanded"])])):c.createCommentVNode("",!0)])]):c.createCommentVNode("",!0),c.createElementVNode("div",XG,[c.createVNode(c.unref(Sd),{active:A.loading},null,8,["active"]),A.items&&A.items.length?(c.openBlock(),c.createBlock(c.unref(io),{key:0,ref_key:"scrollContainer",ref:d,noPadding:!0,class:"tw-grow tw-basis-0",usePtr:!!A.$attrs["onScroll:ptr"],"onScroll:ptr":R[3]||(R[3]=k=>A.$emit("scroll:ptr"))},{default:c.withCtx(()=>[A.$isMobile.value&&A.$slots["mobile-item"]?(c.openBlock(),c.createElementBlock("div",qG,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(A.items,k=>(c.openBlock(),c.createBlock(Iz,{key:k.id,item:k,actionBuilder:A.itemActionBuilder,onClick:O=>A.$emit("itemClick",k),onSwipeStart:T,swipingItem:a.value},{default:c.withCtx(()=>[c.renderSlot(A.$slots,"mobile-item",{item:k})]),_:2},1032,["item","actionBuilder","onClick","swipingItem"]))),128))])):(c.openBlock(),c.createElementBlock("table",{key:1,class:c.normalizeClass(["[border-spacing:0] tw-border-collapse tw-relative tw-pt-[43px] tw-table-fixed tw-box-border tw-w-full",{"vc-table_empty":!A.items||!A.items.length,"vc-table_multiselect":A.multiselect}])},[A.columns?(c.openBlock(),c.createElementBlock("thead",ZG,[c.createElementVNode("tr",QG,[A.multiselect?(c.openBlock(),c.createElementBlock("th",e5,[c.createElementVNode("div",t5,[c.createVNode(c.unref(iu),{modelValue:c.unref(v),"onUpdate:modelValue":_,onClick:R[1]||(R[1]=c.withModifiers(()=>{},["stop"]))},null,8,["modelValue"])])])):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(A.columns,k=>(c.openBlock(),c.createElementBlock("th",{key:k.id,class:c.normalizeClass(["tw-h-[42px] tw-bg-[#f9f9f9] !tw-border-0 tw-shadow-[inset_0px_1px_0px_#eaedf3,_inset_0px_-1px_0px_#eaedf3] tw-box-border sticky tw-top-0 tw-select-none tw-overflow-hidden tw-z-[1] tw-px-3",{"tw-cursor-pointer tw-group":k.sortable}]),width:k.width,onClick:O=>M(k)},[c.createElementVNode("div",{class:c.normalizeClass(["tw-flex tw-items-center tw-flex-nowrap",p[k.align]])},[c.createElementVNode("div",null,[c.renderSlot(A.$slots,`header_${k.id}`,{},()=>[c.createTextVNode(c.toDisplayString(k.title),1)])]),c.unref(u)===k.id?(c.openBlock(),c.createElementBlock("div",r5,[c.createVNode(c.unref(Ye),{size:"xs",icon:`fas fa-caret-${c.unref(o)==="DESC"?"down":"up"}`},null,8,["icon"])])):(c.openBlock(),c.createElementBlock("div",i5,[c.createVNode(c.unref(Ye),{size:"xs",icon:"fas fa-caret-up"}),c.createVNode(c.unref(Ye),{size:"xs",icon:"fas fa-caret-down"})]))],2)],10,n5))),128)),A.itemActionBuilder?(c.openBlock(),c.createElementBlock("th",s5)):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0),A.items?(c.openBlock(),c.createElementBlock("tbody",o5,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(A.items,(k,O)=>(c.openBlock(),c.createElementBlock("tr",{key:k.id,class:c.normalizeClass(["vc-table__body-row tw-h-[60px] tw-bg-white hover:tw-bg-[#dfeef9] tw-cursor-pointer",{"tw-bg-[#f8f8f8]":O%2===1,"!tw-bg-[#dfeef9] hover:tw-bg-[#dfeef9]":k&&k.id?A.selectedItemId===k.id:!1}]),onClick:N=>A.$emit("itemClick",k),onMouseover:N=>x(k),onMouseleave:S},[A.multiselect?(c.openBlock(),c.createElementBlock("td",l5,[c.createElementVNode("div",u5,[c.createVNode(c.unref(iu),{modelValue:r.value[k.id],"onUpdate:modelValue":N=>E(k.id,N),onClick:R[2]||(R[2]=c.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])])):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(A.columns,N=>(c.openBlock(),c.createElementBlock("td",{key:`${k.id}_${N.id}`,class:c.normalizeClass(["tw-box-border tw-overflow-hidden tw-px-3",N.class]),width:N.width},[c.renderSlot(A.$slots,`item_${N.id}`,{item:k,cell:N},()=>[c.createVNode(HG,{cell:N,item:k},null,8,["cell","item"])])],10,c5))),128)),A.itemActionBuilder?(c.openBlock(),c.createElementBlock("td",h5,[c.createElementVNode("div",f5,[c.createElementVNode("button",{class:"tw-text-[#319ed4] tw-cursor-pointer tw-border-none tw-bg-transparent disabled:tw-text-[gray]",onClick:c.withModifiers(N=>$(k,k.id),["stop"]),ref_for:!0,ref:N=>b(N,k.id),"aria-describedby":"tooltip",disabled:!(m.value&&m.value.length)},[c.createVNode(c.unref(Ye),{icon:"fas fa-cog",size:"m"})],8,d5),c.withDirectives(c.createElementVNode("div",{class:"vc-table__body-tooltip tw-bg-white tw-rounded-l-[4px] tw-p-[15px] tw-z-0 tw-absolute tw-right-0 tw-drop-shadow-[1px_3px_14px_rgba(111,122,131,0.25)]",onMouseleave:S,ref_for:!0,ref:N=>w(N,k.id),role:"tooltip"},[c.createElementVNode("div",p5,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(m.value,(N,I)=>(c.openBlock(),c.createElementBlock("div",{key:I,class:c.normalizeClass(["tw-flex tw-flex-row tw-items-center tw-text-[#319ed4] tw-cursor-pointer",`vc-table__body-actions-item_${N.variant}`]),onClick:c.withModifiers(P=>N.clickHandler(k),["stop"])},[c.createVNode(c.unref(Ye),{icon:N.icon,size:"m"},null,8,["icon"]),c.createElementVNode("div",g5,c.toDisplayString(N.title),1)],10,m5))),128))]),v5],544),[[c.vShow,i.value===k.id]])])])):c.createCommentVNode("",!0)],42,a5))),128))])):c.createCommentVNode("",!0)],2))]),_:3},8,["usePtr"])):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[A.searchValue||A.searchValue===""||A.activeFilterCount?c.renderSlot(A.$slots,"notfound",{key:0},()=>[A.notfound?(c.openBlock(),c.createElementBlock("div",w5,[A.notfound.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:A.notfound.image},null,8,y5)):c.createCommentVNode("",!0),c.createElementVNode("div",b5,c.toDisplayString(A.notfound.text),1),A.notfound.action?(c.openBlock(),c.createBlock(y,{key:1,onClick:A.notfound.clickHandler},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(A.notfound.action),1)]),_:1},8,["onClick"])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]):c.renderSlot(A.$slots,"empty",{key:1},()=>[A.empty?(c.openBlock(),c.createElementBlock("div",S5,[A.empty.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:A.empty.image},null,8,_5)):c.createCommentVNode("",!0),c.createElementVNode("div",C5,c.toDisplayString(A.empty.text),1),A.empty.action?(c.openBlock(),c.createBlock(y,{key:1,onClick:A.empty.clickHandler},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(A.empty.action),1)]),_:1},8,["onClick"])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)])],64))]),(A.$slots.footer||A.footer)&&A.items&&A.items.length?c.renderSlot(A.$slots,"footer",{key:1},()=>[c.createElementVNode("div",E5,[c.createVNode(c.unref(Ad),{expanded:A.expanded,pages:A.pages,currentPage:A.currentPage,onItemClick:R[4]||(R[4]=k=>A.$emit("paginationClick",k))},null,8,["expanded","pages","currentPage"]),c.createVNode(mz,{label:A.totalLabel,value:A.totalCount},null,8,["label","value"])])]):c.createCommentVNode("",!0)])}}});const yS=k5,x5=Object.freeze(Object.defineProperty({__proto__:null,VcApp:E0,VcBadge:My,VcBlade:vp,VcBreadcrumbs:zy,VcButton:Ry,VcCard:By,VcCheckbox:iu,VcCol:su,VcContainer:io,VcDynamicProperty:k0,VcEditor:Xy,VcFileUpload:xd,VcForm:kd,VcGallery:x0,VcHint:Fy,VcIcon:Ye,VcImage:xu,VcInfoRow:Vy,VcInput:Qo,VcInputCurrency:eb,VcLabel:fs,VcLink:bd,VcLoading:Sd,VcLoginForm:A0,VcNotification:tb,VcPagination:Ad,VcPopup:wp,VcProgress:Uy,VcRating:nb,VcRow:_d,VcSelect:f0,VcSlider:C0,VcStatus:Cd,VcStatusIcon:Ed,VcSwitch:Wy,VcTable:yS,VcTextarea:gp,VcWidget:Hy},Symbol.toStringTag,{value:"Module"}));function hy(n){return n.type.indexOf("mouse")!==-1?n.clientX:n.touches[0].clientX}function fy(n){return n.type.indexOf("mouse")!==-1?n.clientY:n.touches[0].clientY}var A5=function(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}(),T5={install:function(n,e){var t=Object.assign({},{disableClick:!1,tapTolerance:10,swipeTolerance:30,touchHoldTolerance:400,longTapTimeInterval:400,touchClass:"",dragFrequency:100,rollOverFrequency:100},e);function r(w){var b=this.$$touchObj,_=w.type.indexOf("touch")>=0,E=w.type.indexOf("mouse")>=0,$=this;_&&(b.lastTouchStartTime=w.timeStamp),!(E&&b.lastTouchStartTime&&w.timeStamp-b.lastTouchStartTime<350)&&(b.touchStarted||(o(this),b.touchStarted=!0,b.touchMoved=!1,b.swipeOutBounded=!1,b.startX=hy(w),b.startY=fy(w),b.currentX=0,b.currentY=0,b.touchStartTime=w.timeStamp,b.hasSwipe=m(this,"swipe")||m(this,"swipe.left")||m(this,"swipe.right")||m(this,"swipe.top")||m(this,"swipe.bottom"),m(this,"hold")&&(b.touchHoldTimer=setTimeout(function(){b.touchHoldTimer=null,a(w,$,"hold")},b.options.touchHoldTolerance)),a(w,this,"press")))}function i(w){var b=this.$$touchObj,_=hy(w),E=fy(w),$=b.currentX!=_||b.currentY!=E;if(b.currentX=_,b.currentY=E,b.touchMoved){if(b.hasSwipe&&!b.swipeOutBounded){var S=b.options.swipeTolerance;b.swipeOutBounded=Math.abs(b.startX-b.currentX)>S&&Math.abs(b.startY-b.currentY)>S}}else{var x=b.options.tapTolerance;b.touchMoved=Math.abs(b.startX-b.currentX)>x||Math.abs(b.startY-b.currentY)>x,b.touchMoved&&(p(b),a(w,this,"drag.once"))}if(m(this,"rollover")&&$){var T=w.timeStamp,M=b.options.rollOverFrequency;(b.touchRollTime==null||T>b.touchRollTime+M)&&(b.touchRollTime=T,a(w,this,"rollover"))}if(m(this,"drag")&&b.touchStarted&&b.touchMoved&&$){var T=w.timeStamp,M=b.options.dragFrequency;(b.touchDragTime==null||T>b.touchDragTime+M)&&(b.touchDragTime=T,a(w,this,"drag"))}}function s(){var w=this.$$touchObj;p(w),u(this),w.touchStarted=w.touchMoved=!1,w.startX=w.startY=0}function d(w){var b=this.$$touchObj,_=w.type.indexOf("touch")>=0,E=w.type.indexOf("mouse")>=0;_&&(b.lastTouchEndTime=w.timeStamp);var $=_&&!b.touchHoldTimer;if(p(b),b.touchStarted=!1,u(this),!(E&&b.lastTouchEndTime&&w.timeStamp-b.lastTouchEndTime<350))if(a(w,this,"release"),b.touchMoved){if(b.hasSwipe&&!b.swipeOutBounded){var x=b.options.swipeTolerance,S,T=Math.abs(b.startY-b.currentY),M=Math.abs(b.startX-b.currentX);(T>x||M>x)&&(T>x?S=b.startY>b.currentY?"top":"bottom":S=b.startX>b.currentX?"left":"right",m(this,"swipe."+S)?a(w,this,"swipe."+S,S):a(w,this,"swipe",S))}}else if(m(this,"longtap")&&w.timeStamp-b.touchStartTime>b.options.longTapTimeInterval)w.cancelable&&w.preventDefault(),a(w,this,"longtap");else if(m(this,"hold")&&$){w.cancelable&&w.preventDefault();return}else a(w,this,"tap")}function f(){o(this)}function l(){u(this)}function m(w,b){var _=w.$$touchObj.callbacks[b];return _!=null&&_.length>0}function a(w,b,_,E){var $=b.$$touchObj,x=$.callbacks[_];if(x==null||x.length===0)return null;for(var S=0;S<x.length;S++){var T=x[S];T.modifiers.stop&&w.stopPropagation(),T.modifiers.prevent&&w.preventDefault(),!(T.modifiers.self&&w.target!==w.currentTarget)&&typeof T.value=="function"&&(E?T.value(E,w):T.value(w))}}function o(w){var b=w.$$touchObj.options.touchClass;b&&w.classList.add(b)}function u(w){var b=w.$$touchObj.options.touchClass;b&&w.classList.remove(b)}function p(w){w.touchHoldTimer&&(clearTimeout(w.touchHoldTimer),w.touchHoldTimer=null)}function v(w,b){var _=w.$$touchObj||{callbacks:{},hasBindTouchEvents:!1,options:t};return b&&(_.options=Object.assign({},_.options,b)),w.$$touchObj=_,w.$$touchObj}n.directive("touch",{beforeMount:function(w,b){var _=v(w),E=A5?{passive:!0}:!1,$=b.arg||"tap";switch($){case"swipe":var x=b.modifiers;if(x.left||x.right||x.top||x.bottom){for(var S in b.modifiers)if(["left","right","top","bottom"].indexOf(S)>=0){var T="swipe."+S;_.callbacks[T]=_.callbacks[T]||[],_.callbacks[T].push(b)}}else _.callbacks.swipe=_.callbacks.swipe||[],_.callbacks.swipe.push(b);break;case"press":case"drag":b.modifiers.disablePassive&&(E=!1);default:_.callbacks[$]=_.callbacks[$]||[],_.callbacks[$].push(b)}_.hasBindTouchEvents||(w.addEventListener("touchstart",r,E),w.addEventListener("touchmove",i,E),w.addEventListener("touchcancel",s),w.addEventListener("touchend",d),_.options.disableClick||(w.addEventListener("mousedown",r),w.addEventListener("mousemove",i),w.addEventListener("mouseup",d),w.addEventListener("mouseenter",f),w.addEventListener("mouseleave",l)),_.hasBindTouchEvents=!0)},unmounted:function(w){w.removeEventListener("touchstart",r),w.removeEventListener("touchmove",i),w.removeEventListener("touchcancel",s),w.removeEventListener("touchend",d),w.$$touchObj&&!w.$$touchObj.options.disableClick&&(w.removeEventListener("mousedown",r),w.removeEventListener("mousemove",i),w.removeEventListener("mouseup",d),w.removeEventListener("mouseenter",f),w.removeEventListener("mouseleave",l)),delete w.$$touchObj}}),n.directive("touch-class",{beforeMount:function(w,b){v(w,{touchClass:b.value})}}),n.directive("touch-options",{beforeMount:function(w,b){v(w,b.value)}})}};/**!
|
|
1099
|
-
* Sortable 1.14.0
|
|
1100
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
1101
|
-
* @author owenm <owen23355@gmail.com>
|
|
1102
|
-
* @license MIT
|
|
1103
|
-
*/function dy(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Tr(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?dy(Object(t),!0).forEach(function(r){$5(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):dy(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Ql(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ql=function(e){return typeof e}:Ql=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ql(n)}function $5(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ni(){return ni=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},ni.apply(this,arguments)}function O5(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}function L5(n,e){if(n==null)return{};var t=O5(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}var M5="1.14.0";function ei(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var li=ei(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ua=ei(/Edge/i),py=ei(/firefox/i),Yo=ei(/safari/i)&&!ei(/chrome/i)&&!ei(/android/i),bS=ei(/iP(ad|od|hone)/i),R5=ei(/chrome/i)&&ei(/android/i),SS={capture:!1,passive:!1};function ht(n,e,t){n.addEventListener(e,t,!li&&SS)}function at(n,e,t){n.removeEventListener(e,t,!li&&SS)}function wu(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function N5(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function Sr(n,e,t,r){if(n){t=t||document;do{if(e!=null&&(e[0]===">"?n.parentNode===t&&wu(n,e):wu(n,e))||r&&n===t)return n;if(n===t)break}while(n=N5(n))}return null}var my=/\s+/g;function On(n,e,t){if(n&&e)if(n.classList)n.classList[t?"add":"remove"](e);else{var r=(" "+n.className+" ").replace(my," ").replace(" "+e+" "," ");n.className=(r+(t?" "+e:"")).replace(my," ")}}function Be(n,e,t){var r=n&&n.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),e===void 0?t:t[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=t+(typeof t=="string"?"":"px")}}function Ys(n,e){var t="";if(typeof n=="string")t=n;else do{var r=Be(n,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!e&&(n=n.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function _S(n,e,t){if(n){var r=n.getElementsByTagName(e),i=0,s=r.length;if(t)for(;i<s;i++)t(r[i],i);return r}return[]}function Er(){var n=document.scrollingElement;return n||document.documentElement}function Wt(n,e,t,r,i){if(!(!n.getBoundingClientRect&&n!==window)){var s,d,f,l,m,a,o;if(n!==window&&n.parentNode&&n!==Er()?(s=n.getBoundingClientRect(),d=s.top,f=s.left,l=s.bottom,m=s.right,a=s.height,o=s.width):(d=0,f=0,l=window.innerHeight,m=window.innerWidth,a=window.innerHeight,o=window.innerWidth),(e||t)&&n!==window&&(i=i||n.parentNode,!li))do if(i&&i.getBoundingClientRect&&(Be(i,"transform")!=="none"||t&&Be(i,"position")!=="static")){var u=i.getBoundingClientRect();d-=u.top+parseInt(Be(i,"border-top-width")),f-=u.left+parseInt(Be(i,"border-left-width")),l=d+s.height,m=f+s.width;break}while(i=i.parentNode);if(r&&n!==window){var p=Ys(i||n),v=p&&p.a,w=p&&p.d;p&&(d/=w,f/=v,o/=v,a/=w,l=d+a,m=f+o)}return{top:d,left:f,bottom:l,right:m,width:o,height:a}}}function gy(n,e,t){for(var r=Ti(n,!0),i=Wt(n)[e];r;){var s=Wt(r)[t],d=void 0;if(t==="top"||t==="left"?d=i>=s:d=i<=s,!d)return r;if(r===Er())break;r=Ti(r,!1)}return!1}function ro(n,e,t,r){for(var i=0,s=0,d=n.children;s<d.length;){if(d[s].style.display!=="none"&&d[s]!==Fe.ghost&&(r||d[s]!==Fe.dragged)&&Sr(d[s],t.draggable,n,!1)){if(i===e)return d[s];i++}s++}return null}function Fp(n,e){for(var t=n.lastElementChild;t&&(t===Fe.ghost||Be(t,"display")==="none"||e&&!wu(t,e));)t=t.previousElementSibling;return t||null}function Jn(n,e){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==Fe.clone&&(!e||wu(n,e))&&t++;return t}function vy(n){var e=0,t=0,r=Er();if(n)do{var i=Ys(n),s=i.a,d=i.d;e+=n.scrollLeft*s,t+=n.scrollTop*d}while(n!==r&&(n=n.parentNode));return[e,t]}function I5(n,e){for(var t in n)if(n.hasOwnProperty(t)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===n[t][r])return Number(t)}return-1}function Ti(n,e){if(!n||!n.getBoundingClientRect)return Er();var t=n,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var i=Be(t);if(t.clientWidth<t.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return Er();if(r||e)return t;r=!0}}while(t=t.parentNode);return Er()}function D5(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function vf(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var Jo;function CS(n,e){return function(){if(!Jo){var t=arguments,r=this;t.length===1?n.call(r,t[0]):n.apply(r,t),Jo=setTimeout(function(){Jo=void 0},e)}}}function P5(){clearTimeout(Jo),Jo=void 0}function ES(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function kS(n){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}var Nn="Sortable"+new Date().getTime();function B5(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(Be(i,"display")==="none"||i===Fe.ghost)){n.push({target:i,rect:Wt(i)});var s=Tr({},n[n.length-1].rect);if(i.thisAnimationDuration){var d=Ys(i,!0);d&&(s.top-=d.f,s.left-=d.e)}i.fromRect=s}})}},addAnimationState:function(r){n.push(r)},removeAnimationState:function(r){n.splice(I5(n,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var s=!1,d=0;n.forEach(function(f){var l=0,m=f.target,a=m.fromRect,o=Wt(m),u=m.prevFromRect,p=m.prevToRect,v=f.rect,w=Ys(m,!0);w&&(o.top-=w.f,o.left-=w.e),m.toRect=o,m.thisAnimationDuration&&vf(u,o)&&!vf(a,o)&&(v.top-o.top)/(v.left-o.left)===(a.top-o.top)/(a.left-o.left)&&(l=V5(v,u,p,i.options)),vf(o,a)||(m.prevFromRect=a,m.prevToRect=o,l||(l=i.options.animation),i.animate(m,v,o,l)),l&&(s=!0,d=Math.max(d,l),clearTimeout(m.animationResetTimer),m.animationResetTimer=setTimeout(function(){m.animationTime=0,m.prevFromRect=null,m.fromRect=null,m.prevToRect=null,m.thisAnimationDuration=null},l),m.thisAnimationDuration=l)}),clearTimeout(e),s?e=setTimeout(function(){typeof r=="function"&&r()},d):typeof r=="function"&&r(),n=[]},animate:function(r,i,s,d){if(d){Be(r,"transition",""),Be(r,"transform","");var f=Ys(this.el),l=f&&f.a,m=f&&f.d,a=(i.left-s.left)/(l||1),o=(i.top-s.top)/(m||1);r.animatingX=!!a,r.animatingY=!!o,Be(r,"transform","translate3d("+a+"px,"+o+"px,0)"),this.forRepaintDummy=F5(r),Be(r,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),Be(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Be(r,"transition",""),Be(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},d)}}}}function F5(n){return n.offsetWidth}function V5(n,e,t,r){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*r.animation}var Is=[],wf={initializeByDefault:!0},Wa={mount:function(e){for(var t in wf)wf.hasOwnProperty(t)&&!(t in e)&&(e[t]=wf[t]);Is.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Is.push(e)},pluginEvent:function(e,t,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var s=e+"Global";Is.forEach(function(d){t[d.pluginName]&&(t[d.pluginName][s]&&t[d.pluginName][s](Tr({sortable:t},r)),t.options[d.pluginName]&&t[d.pluginName][e]&&t[d.pluginName][e](Tr({sortable:t},r)))})},initializePlugins:function(e,t,r,i){Is.forEach(function(f){var l=f.pluginName;if(!(!e.options[l]&&!f.initializeByDefault)){var m=new f(e,t,e.options);m.sortable=e,m.options=e.options,e[l]=m,ni(r,m.defaults)}});for(var s in e.options)if(e.options.hasOwnProperty(s)){var d=this.modifyOption(e,s,e.options[s]);typeof d<"u"&&(e.options[s]=d)}},getEventProperties:function(e,t){var r={};return Is.forEach(function(i){typeof i.eventProperties=="function"&&ni(r,i.eventProperties.call(t[i.pluginName],e))}),r},modifyOption:function(e,t,r){var i;return Is.forEach(function(s){e[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[t]=="function"&&(i=s.optionListeners[t].call(e[s.pluginName],r))}),i}};function U5(n){var e=n.sortable,t=n.rootEl,r=n.name,i=n.targetEl,s=n.cloneEl,d=n.toEl,f=n.fromEl,l=n.oldIndex,m=n.newIndex,a=n.oldDraggableIndex,o=n.newDraggableIndex,u=n.originalEvent,p=n.putSortable,v=n.extraEventProperties;if(e=e||t&&t[Nn],!!e){var w,b=e.options,_="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!li&&!Ua?w=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(r,!0,!0)),w.to=d||t,w.from=f||t,w.item=i||t,w.clone=s,w.oldIndex=l,w.newIndex=m,w.oldDraggableIndex=a,w.newDraggableIndex=o,w.originalEvent=u,w.pullMode=p?p.lastPutMode:void 0;var E=Tr(Tr({},v),Wa.getEventProperties(r,e));for(var $ in E)w[$]=E[$];t&&t.dispatchEvent(w),b[_]&&b[_].call(e,w)}}var W5=["evt"],wn=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,s=L5(r,W5);Wa.pluginEvent.bind(Fe)(e,t,Tr({dragEl:Se,parentEl:Ot,ghostEl:ze,rootEl:kt,nextEl:Xi,lastDownEl:eu,cloneEl:Lt,cloneHidden:Ci,dragStarted:Po,putSortable:qt,activeSortable:Fe.active,originalEvent:i,oldIndex:Ws,oldDraggableIndex:Ko,newIndex:Ln,newDraggableIndex:_i,hideGhostForTarget:$S,unhideGhostForTarget:OS,cloneNowHidden:function(){Ci=!0},cloneNowShown:function(){Ci=!1},dispatchSortableEvent:function(f){hn({sortable:t,name:f,originalEvent:i})}},s))};function hn(n){U5(Tr({putSortable:qt,cloneEl:Lt,targetEl:Se,rootEl:kt,oldIndex:Ws,oldDraggableIndex:Ko,newIndex:Ln,newDraggableIndex:_i},n))}var Se,Ot,ze,kt,Xi,eu,Lt,Ci,Ws,Ln,Ko,_i,Bl,qt,Fs=!1,yu=!1,bu=[],Yi,ur,yf,bf,wy,yy,Po,Ds,Xo,qo=!1,Fl=!1,tu,rn,Sf=[],dd=!1,Su=[],Lc=typeof document<"u",Vl=bS,by=Ua||li?"cssFloat":"float",H5=Lc&&!R5&&!bS&&"draggable"in document.createElement("div"),xS=function(){if(Lc){if(li)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),AS=function(e,t){var r=Be(e),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),s=ro(e,0,t),d=ro(e,1,t),f=s&&Be(s),l=d&&Be(d),m=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+Wt(s).width,a=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Wt(d).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&f.float&&f.float!=="none"){var o=f.float==="left"?"left":"right";return d&&(l.clear==="both"||l.clear===o)?"vertical":"horizontal"}return s&&(f.display==="block"||f.display==="flex"||f.display==="table"||f.display==="grid"||m>=i&&r[by]==="none"||d&&r[by]==="none"&&m+a>i)?"vertical":"horizontal"},z5=function(e,t,r){var i=r?e.left:e.top,s=r?e.right:e.bottom,d=r?e.width:e.height,f=r?t.left:t.top,l=r?t.right:t.bottom,m=r?t.width:t.height;return i===f||s===l||i+d/2===f+m/2},j5=function(e,t){var r;return bu.some(function(i){var s=i[Nn].options.emptyInsertThreshold;if(!(!s||Fp(i))){var d=Wt(i),f=e>=d.left-s&&e<=d.right+s,l=t>=d.top-s&&t<=d.bottom+s;if(f&&l)return r=i}}),r},TS=function(e){function t(s,d){return function(f,l,m,a){var o=f.options.group.name&&l.options.group.name&&f.options.group.name===l.options.group.name;if(s==null&&(d||o))return!0;if(s==null||s===!1)return!1;if(d&&s==="clone")return s;if(typeof s=="function")return t(s(f,l,m,a),d)(f,l,m,a);var u=(d?f:l).options.group.name;return s===!0||typeof s=="string"&&s===u||s.join&&s.indexOf(u)>-1}}var r={},i=e.group;(!i||Ql(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=t(i.pull,!0),r.checkPut=t(i.put),r.revertClone=i.revertClone,e.group=r},$S=function(){!xS&&ze&&Be(ze,"display","none")},OS=function(){!xS&&ze&&Be(ze,"display","")};Lc&&document.addEventListener("click",function(n){if(yu)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),yu=!1,!1},!0);var Ji=function(e){if(Se){e=e.touches?e.touches[0]:e;var t=j5(e.clientX,e.clientY);if(t){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[Nn]._onDragOver(r)}}},G5=function(e){Se&&Se.parentNode[Nn]._isOutsideThisEl(e.target)};function Fe(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=ni({},e),n[Nn]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return AS(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(d,f){d.setData("Text",f.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Fe.supportPointer!==!1&&"PointerEvent"in window&&!Yo,emptyInsertThreshold:5};Wa.initializePlugins(this,n,t);for(var r in t)!(r in e)&&(e[r]=t[r]);TS(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:H5,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?ht(n,"pointerdown",this._onTapStart):(ht(n,"mousedown",this._onTapStart),ht(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(ht(n,"dragover",this),ht(n,"dragenter",this)),bu.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ni(this,B5())}Fe.prototype={constructor:Fe,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ds=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,Se):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,i=this.options,s=i.preventOnFilter,d=e.type,f=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(f||e).target,m=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,a=i.filter;if(e8(r),!Se&&!(/mousedown|pointerdown/.test(d)&&e.button!==0||i.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&Yo&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Sr(l,i.draggable,r,!1),!(l&&l.animated)&&eu!==l)){if(Ws=Jn(l),Ko=Jn(l,i.draggable),typeof a=="function"){if(a.call(this,e,l,this)){hn({sortable:t,rootEl:m,name:"filter",targetEl:l,toEl:r,fromEl:r}),wn("filter",t,{evt:e}),s&&e.cancelable&&e.preventDefault();return}}else if(a&&(a=a.split(",").some(function(o){if(o=Sr(m,o.trim(),r,!1),o)return hn({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:r,toEl:r}),wn("filter",t,{evt:e}),!0}),a)){s&&e.cancelable&&e.preventDefault();return}i.handle&&!Sr(m,i.handle,r,!1)||this._prepareDragStart(e,f,l)}}},_prepareDragStart:function(e,t,r){var i=this,s=i.el,d=i.options,f=s.ownerDocument,l;if(r&&!Se&&r.parentNode===s){var m=Wt(r);if(kt=s,Se=r,Ot=Se.parentNode,Xi=Se.nextSibling,eu=r,Bl=d.group,Fe.dragged=Se,Yi={target:Se,clientX:(t||e).clientX,clientY:(t||e).clientY},wy=Yi.clientX-m.left,yy=Yi.clientY-m.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Se.style["will-change"]="all",l=function(){if(wn("delayEnded",i,{evt:e}),Fe.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!py&&i.nativeDraggable&&(Se.draggable=!0),i._triggerDragStart(e,t),hn({sortable:i,name:"choose",originalEvent:e}),On(Se,d.chosenClass,!0)},d.ignore.split(",").forEach(function(a){_S(Se,a.trim(),_f)}),ht(f,"dragover",Ji),ht(f,"mousemove",Ji),ht(f,"touchmove",Ji),ht(f,"mouseup",i._onDrop),ht(f,"touchend",i._onDrop),ht(f,"touchcancel",i._onDrop),py&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Se.draggable=!0),wn("delayStart",this,{evt:e}),d.delay&&(!d.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Ua||li))){if(Fe.eventCanceled){this._onDrop();return}ht(f,"mouseup",i._disableDelayedDrag),ht(f,"touchend",i._disableDelayedDrag),ht(f,"touchcancel",i._disableDelayedDrag),ht(f,"mousemove",i._delayedDragTouchMoveHandler),ht(f,"touchmove",i._delayedDragTouchMoveHandler),d.supportPointer&&ht(f,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,d.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Se&&_f(Se),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;at(e,"mouseup",this._disableDelayedDrag),at(e,"touchend",this._disableDelayedDrag),at(e,"touchcancel",this._disableDelayedDrag),at(e,"mousemove",this._delayedDragTouchMoveHandler),at(e,"touchmove",this._delayedDragTouchMoveHandler),at(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?ht(document,"pointermove",this._onTouchMove):t?ht(document,"touchmove",this._onTouchMove):ht(document,"mousemove",this._onTouchMove):(ht(Se,"dragend",this),ht(kt,"dragstart",this._onDragStart));try{document.selection?nu(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Fs=!1,kt&&Se){wn("dragStarted",this,{evt:t}),this.nativeDraggable&&ht(document,"dragover",G5);var r=this.options;!e&&On(Se,r.dragClass,!1),On(Se,r.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),hn({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ur){this._lastX=ur.clientX,this._lastY=ur.clientY,$S();for(var e=document.elementFromPoint(ur.clientX,ur.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ur.clientX,ur.clientY),e!==t);)t=e;if(Se.parentNode[Nn]._isOutsideThisEl(e),t)do{if(t[Nn]){var r=void 0;if(r=t[Nn]._onDragOver({clientX:ur.clientX,clientY:ur.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);OS()}},_onTouchMove:function(e){if(Yi){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,s=e.touches?e.touches[0]:e,d=ze&&Ys(ze,!0),f=ze&&d&&d.a,l=ze&&d&&d.d,m=Vl&&rn&&vy(rn),a=(s.clientX-Yi.clientX+i.x)/(f||1)+(m?m[0]-Sf[0]:0)/(f||1),o=(s.clientY-Yi.clientY+i.y)/(l||1)+(m?m[1]-Sf[1]:0)/(l||1);if(!Fe.active&&!Fs){if(r&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(ze){d?(d.e+=a-(yf||0),d.f+=o-(bf||0)):d={a:1,b:0,c:0,d:1,e:a,f:o};var u="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");Be(ze,"webkitTransform",u),Be(ze,"mozTransform",u),Be(ze,"msTransform",u),Be(ze,"transform",u),yf=a,bf=o,ur=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ze){var e=this.options.fallbackOnBody?document.body:kt,t=Wt(Se,!0,Vl,!0,e),r=this.options;if(Vl){for(rn=e;Be(rn,"position")==="static"&&Be(rn,"transform")==="none"&&rn!==document;)rn=rn.parentNode;rn!==document.body&&rn!==document.documentElement?(rn===document&&(rn=Er()),t.top+=rn.scrollTop,t.left+=rn.scrollLeft):rn=Er(),Sf=vy(rn)}ze=Se.cloneNode(!0),On(ze,r.ghostClass,!1),On(ze,r.fallbackClass,!0),On(ze,r.dragClass,!0),Be(ze,"transition",""),Be(ze,"transform",""),Be(ze,"box-sizing","border-box"),Be(ze,"margin",0),Be(ze,"top",t.top),Be(ze,"left",t.left),Be(ze,"width",t.width),Be(ze,"height",t.height),Be(ze,"opacity","0.8"),Be(ze,"position",Vl?"absolute":"fixed"),Be(ze,"zIndex","100000"),Be(ze,"pointerEvents","none"),Fe.ghost=ze,e.appendChild(ze),Be(ze,"transform-origin",wy/parseInt(ze.style.width)*100+"% "+yy/parseInt(ze.style.height)*100+"%")}},_onDragStart:function(e,t){var r=this,i=e.dataTransfer,s=r.options;if(wn("dragStart",this,{evt:e}),Fe.eventCanceled){this._onDrop();return}wn("setupClone",this),Fe.eventCanceled||(Lt=kS(Se),Lt.draggable=!1,Lt.style["will-change"]="",this._hideClone(),On(Lt,this.options.chosenClass,!1),Fe.clone=Lt),r.cloneId=nu(function(){wn("clone",r),!Fe.eventCanceled&&(r.options.removeCloneOnHide||kt.insertBefore(Lt,Se),r._hideClone(),hn({sortable:r,name:"clone"}))}),!t&&On(Se,s.dragClass,!0),t?(yu=!0,r._loopId=setInterval(r._emulateDragOver,50)):(at(document,"mouseup",r._onDrop),at(document,"touchend",r._onDrop),at(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",s.setData&&s.setData.call(r,i,Se)),ht(document,"drop",r),Be(Se,"transform","translateZ(0)")),Fs=!0,r._dragStartId=nu(r._dragStarted.bind(r,t,e)),ht(document,"selectstart",r),Po=!0,Yo&&Be(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,r=e.target,i,s,d,f=this.options,l=f.group,m=Fe.active,a=Bl===l,o=f.sort,u=qt||m,p,v=this,w=!1;if(dd)return;function b(j,J){wn(j,v,Tr({evt:e,isOwner:a,axis:p?"vertical":"horizontal",revert:d,dragRect:i,targetRect:s,canSort:o,fromSortable:u,target:r,completed:E,onMove:function(re,ie){return Ul(kt,t,Se,i,re,Wt(re),e,ie)},changed:$},J))}function _(){b("dragOverAnimationCapture"),v.captureAnimationState(),v!==u&&u.captureAnimationState()}function E(j){return b("dragOverCompleted",{insertion:j}),j&&(a?m._hideClone():m._showClone(v),v!==u&&(On(Se,qt?qt.options.ghostClass:m.options.ghostClass,!1),On(Se,f.ghostClass,!0)),qt!==v&&v!==Fe.active?qt=v:v===Fe.active&&qt&&(qt=null),u===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){b("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(r===Se&&!Se.animated||r===t&&!r.animated)&&(Ds=null),!f.dragoverBubble&&!e.rootEl&&r!==document&&(Se.parentNode[Nn]._isOutsideThisEl(e.target),!j&&Ji(e)),!f.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),w=!0}function $(){Ln=Jn(Se),_i=Jn(Se,f.draggable),hn({sortable:v,name:"change",toEl:t,newIndex:Ln,newDraggableIndex:_i,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Sr(r,f.draggable,t,!0),b("dragOver"),Fe.eventCanceled)return w;if(Se.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return E(!1);if(yu=!1,m&&!f.disabled&&(a?o||(d=Ot!==kt):qt===this||(this.lastPutMode=Bl.checkPull(this,m,Se,e))&&l.checkPut(this,m,Se,e))){if(p=this._getDirection(e,r)==="vertical",i=Wt(Se),b("dragOverValid"),Fe.eventCanceled)return w;if(d)return Ot=kt,_(),this._hideClone(),b("revert"),Fe.eventCanceled||(Xi?kt.insertBefore(Se,Xi):kt.appendChild(Se)),E(!0);var x=Fp(t,f.draggable);if(!x||X5(e,p,this)&&!x.animated){if(x===Se)return E(!1);if(x&&t===e.target&&(r=x),r&&(s=Wt(r)),Ul(kt,t,Se,i,r,s,e,!!r)!==!1)return _(),t.appendChild(Se),Ot=t,$(),E(!0)}else if(x&&K5(e,p,this)){var S=ro(t,0,f,!0);if(S===Se)return E(!1);if(r=S,s=Wt(r),Ul(kt,t,Se,i,r,s,e,!1)!==!1)return _(),t.insertBefore(Se,S),Ot=t,$(),E(!0)}else if(r.parentNode===t){s=Wt(r);var T=0,M,A=Se.parentNode!==t,R=!z5(Se.animated&&Se.toRect||i,r.animated&&r.toRect||s,p),y=p?"top":"left",k=gy(r,"top","top")||gy(Se,"top","top"),O=k?k.scrollTop:void 0;Ds!==r&&(M=s[y],qo=!1,Fl=!R&&f.invertSwap||A),T=q5(e,r,s,p,R?1:f.swapThreshold,f.invertedSwapThreshold==null?f.swapThreshold:f.invertedSwapThreshold,Fl,Ds===r);var N;if(T!==0){var I=Jn(Se);do I-=T,N=Ot.children[I];while(N&&(Be(N,"display")==="none"||N===ze))}if(T===0||N===r)return E(!1);Ds=r,Xo=T;var P=r.nextElementSibling,B=!1;B=T===1;var z=Ul(kt,t,Se,i,r,s,e,B);if(z!==!1)return(z===1||z===-1)&&(B=z===1),dd=!0,setTimeout(J5,30),_(),B&&!P?t.appendChild(Se):r.parentNode.insertBefore(Se,B?P:r),k&&ES(k,0,O-k.scrollTop),Ot=Se.parentNode,M!==void 0&&!Fl&&(tu=Math.abs(M-Wt(r)[y])),$(),E(!0)}if(t.contains(Se))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){at(document,"mousemove",this._onTouchMove),at(document,"touchmove",this._onTouchMove),at(document,"pointermove",this._onTouchMove),at(document,"dragover",Ji),at(document,"mousemove",Ji),at(document,"touchmove",Ji)},_offUpEvents:function(){var e=this.el.ownerDocument;at(e,"mouseup",this._onDrop),at(e,"touchend",this._onDrop),at(e,"pointerup",this._onDrop),at(e,"touchcancel",this._onDrop),at(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;if(Ln=Jn(Se),_i=Jn(Se,r.draggable),wn("drop",this,{evt:e}),Ot=Se&&Se.parentNode,Ln=Jn(Se),_i=Jn(Se,r.draggable),Fe.eventCanceled){this._nulling();return}Fs=!1,Fl=!1,qo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),pd(this.cloneId),pd(this._dragStartId),this.nativeDraggable&&(at(document,"drop",this),at(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Yo&&Be(document.body,"user-select",""),Be(Se,"transform",""),e&&(Po&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),ze&&ze.parentNode&&ze.parentNode.removeChild(ze),(kt===Ot||qt&&qt.lastPutMode!=="clone")&&Lt&&Lt.parentNode&&Lt.parentNode.removeChild(Lt),Se&&(this.nativeDraggable&&at(Se,"dragend",this),_f(Se),Se.style["will-change"]="",Po&&!Fs&&On(Se,qt?qt.options.ghostClass:this.options.ghostClass,!1),On(Se,this.options.chosenClass,!1),hn({sortable:this,name:"unchoose",toEl:Ot,newIndex:null,newDraggableIndex:null,originalEvent:e}),kt!==Ot?(Ln>=0&&(hn({rootEl:Ot,name:"add",toEl:Ot,fromEl:kt,originalEvent:e}),hn({sortable:this,name:"remove",toEl:Ot,originalEvent:e}),hn({rootEl:Ot,name:"sort",toEl:Ot,fromEl:kt,originalEvent:e}),hn({sortable:this,name:"sort",toEl:Ot,originalEvent:e})),qt&&qt.save()):Ln!==Ws&&Ln>=0&&(hn({sortable:this,name:"update",toEl:Ot,originalEvent:e}),hn({sortable:this,name:"sort",toEl:Ot,originalEvent:e})),Fe.active&&((Ln==null||Ln===-1)&&(Ln=Ws,_i=Ko),hn({sortable:this,name:"end",toEl:Ot,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){wn("nulling",this),kt=Se=Ot=ze=Xi=Lt=eu=Ci=Yi=ur=Po=Ln=_i=Ws=Ko=Ds=Xo=qt=Bl=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,Su.forEach(function(e){e.checked=!0}),Su.length=yf=bf=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Se&&(this._onDragOver(e),Y5(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,i=0,s=r.length,d=this.options;i<s;i++)t=r[i],Sr(t,d.draggable,this.el,!1)&&e.push(t.getAttribute(d.dataIdAttr)||Q5(t));return e},sort:function(e,t){var r={},i=this.el;this.toArray().forEach(function(s,d){var f=i.children[d];Sr(f,this.options.draggable,i,!1)&&(r[s]=f)},this),t&&this.captureAnimationState(),e.forEach(function(s){r[s]&&(i.removeChild(r[s]),i.appendChild(r[s]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Sr(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var r=this.options;if(t===void 0)return r[e];var i=Wa.modifyOption(this,e,t);typeof i<"u"?r[e]=i:r[e]=t,e==="group"&&TS(r)},destroy:function(){wn("destroy",this);var e=this.el;e[Nn]=null,at(e,"mousedown",this._onTapStart),at(e,"touchstart",this._onTapStart),at(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(at(e,"dragover",this),at(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),bu.splice(bu.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ci){if(wn("hideClone",this),Fe.eventCanceled)return;Be(Lt,"display","none"),this.options.removeCloneOnHide&&Lt.parentNode&&Lt.parentNode.removeChild(Lt),Ci=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Ci){if(wn("showClone",this),Fe.eventCanceled)return;Se.parentNode==kt&&!this.options.group.revertClone?kt.insertBefore(Lt,Se):Xi?kt.insertBefore(Lt,Xi):kt.appendChild(Lt),this.options.group.revertClone&&this.animate(Se,Lt),Be(Lt,"display",""),Ci=!1}}};function Y5(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Ul(n,e,t,r,i,s,d,f){var l,m=n[Nn],a=m.options.onMove,o;return window.CustomEvent&&!li&&!Ua?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=n,l.dragged=t,l.draggedRect=r,l.related=i||e,l.relatedRect=s||Wt(e),l.willInsertAfter=f,l.originalEvent=d,n.dispatchEvent(l),a&&(o=a.call(m,l,d)),o}function _f(n){n.draggable=!1}function J5(){dd=!1}function K5(n,e,t){var r=Wt(ro(t.el,0,t.options,!0)),i=10;return e?n.clientX<r.left-i||n.clientY<r.top&&n.clientX<r.right:n.clientY<r.top-i||n.clientY<r.bottom&&n.clientX<r.left}function X5(n,e,t){var r=Wt(Fp(t.el,t.options.draggable)),i=10;return e?n.clientX>r.right+i||n.clientX<=r.right&&n.clientY>r.bottom&&n.clientX>=r.left:n.clientX>r.right&&n.clientY>r.top||n.clientX<=r.right&&n.clientY>r.bottom+i}function q5(n,e,t,r,i,s,d,f){var l=r?n.clientY:n.clientX,m=r?t.height:t.width,a=r?t.top:t.left,o=r?t.bottom:t.right,u=!1;if(!d){if(f&&tu<m*i){if(!qo&&(Xo===1?l>a+m*s/2:l<o-m*s/2)&&(qo=!0),qo)u=!0;else if(Xo===1?l<a+tu:l>o-tu)return-Xo}else if(l>a+m*(1-i)/2&&l<o-m*(1-i)/2)return Z5(e)}return u=u||d,u&&(l<a+m*s/2||l>o-m*s/2)?l>a+m/2?1:-1:0}function Z5(n){return Jn(Se)<Jn(n)?1:-1}function Q5(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,t=e.length,r=0;t--;)r+=e.charCodeAt(t);return r.toString(36)}function e8(n){Su.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var r=e[t];r.checked&&Su.push(r)}}function nu(n){return setTimeout(n,0)}function pd(n){return clearTimeout(n)}Lc&&ht(document,"touchmove",function(n){(Fe.active||Fs)&&n.cancelable&&n.preventDefault()});Fe.utils={on:ht,off:at,css:Be,find:_S,is:function(e,t){return!!Sr(e,t,e,!1)},extend:D5,throttle:CS,closest:Sr,toggleClass:On,clone:kS,index:Jn,nextTick:nu,cancelNextTick:pd,detectDirection:AS,getChild:ro};Fe.get=function(n){return n[Nn]};Fe.mount=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Fe.utils=Tr(Tr({},Fe.utils),r.utils)),Wa.mount(r)})};Fe.create=function(n,e){return new Fe(n,e)};Fe.version=M5;var Bt=[],Bo,md,gd=!1,Cf,Ef,_u,Fo;function t8(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?ht(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ht(document,"pointermove",this._handleFallbackAutoScroll):r.touches?ht(document,"touchmove",this._handleFallbackAutoScroll):ht(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?at(document,"dragover",this._handleAutoScroll):(at(document,"pointermove",this._handleFallbackAutoScroll),at(document,"touchmove",this._handleFallbackAutoScroll),at(document,"mousemove",this._handleFallbackAutoScroll)),Sy(),ru(),P5()},nulling:function(){_u=md=Bo=gd=Fo=Cf=Ef=null,Bt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var i=this,s=(t.touches?t.touches[0]:t).clientX,d=(t.touches?t.touches[0]:t).clientY,f=document.elementFromPoint(s,d);if(_u=t,r||this.options.forceAutoScrollFallback||Ua||li||Yo){kf(t,this.options,f,r);var l=Ti(f,!0);gd&&(!Fo||s!==Cf||d!==Ef)&&(Fo&&Sy(),Fo=setInterval(function(){var m=Ti(document.elementFromPoint(s,d),!0);m!==l&&(l=m,ru()),kf(t,i.options,m,r)},10),Cf=s,Ef=d)}else{if(!this.options.bubbleScroll||Ti(f,!0)===Er()){ru();return}kf(t,this.options,Ti(f,!1),!1)}}},ni(n,{pluginName:"scroll",initializeByDefault:!0})}function ru(){Bt.forEach(function(n){clearInterval(n.pid)}),Bt=[]}function Sy(){clearInterval(Fo)}var kf=CS(function(n,e,t,r){if(e.scroll){var i=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,d=e.scrollSensitivity,f=e.scrollSpeed,l=Er(),m=!1,a;md!==t&&(md=t,ru(),Bo=e.scroll,a=e.scrollFn,Bo===!0&&(Bo=Ti(t,!0)));var o=0,u=Bo;do{var p=u,v=Wt(p),w=v.top,b=v.bottom,_=v.left,E=v.right,$=v.width,x=v.height,S=void 0,T=void 0,M=p.scrollWidth,A=p.scrollHeight,R=Be(p),y=p.scrollLeft,k=p.scrollTop;p===l?(S=$<M&&(R.overflowX==="auto"||R.overflowX==="scroll"||R.overflowX==="visible"),T=x<A&&(R.overflowY==="auto"||R.overflowY==="scroll"||R.overflowY==="visible")):(S=$<M&&(R.overflowX==="auto"||R.overflowX==="scroll"),T=x<A&&(R.overflowY==="auto"||R.overflowY==="scroll"));var O=S&&(Math.abs(E-i)<=d&&y+$<M)-(Math.abs(_-i)<=d&&!!y),N=T&&(Math.abs(b-s)<=d&&k+x<A)-(Math.abs(w-s)<=d&&!!k);if(!Bt[o])for(var I=0;I<=o;I++)Bt[I]||(Bt[I]={});(Bt[o].vx!=O||Bt[o].vy!=N||Bt[o].el!==p)&&(Bt[o].el=p,Bt[o].vx=O,Bt[o].vy=N,clearInterval(Bt[o].pid),(O!=0||N!=0)&&(m=!0,Bt[o].pid=setInterval(function(){r&&this.layer===0&&Fe.active._onTouchMove(_u);var P=Bt[this.layer].vy?Bt[this.layer].vy*f:0,B=Bt[this.layer].vx?Bt[this.layer].vx*f:0;typeof a=="function"&&a.call(Fe.dragged.parentNode[Nn],B,P,n,_u,Bt[this.layer].el)!=="continue"||ES(Bt[this.layer].el,B,P)}.bind({layer:o}),24))),o++}while(e.bubbleScroll&&u!==l&&(u=Ti(u,!1)));gd=m}},30),LS=function(e){var t=e.originalEvent,r=e.putSortable,i=e.dragEl,s=e.activeSortable,d=e.dispatchSortableEvent,f=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var m=r||s;f();var a=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,o=document.elementFromPoint(a.clientX,a.clientY);l(),m&&!m.el.contains(o)&&(d("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function Vp(){}Vp.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=ro(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:LS};ni(Vp,{pluginName:"revertOnSpill"});function Up(){}Up.prototype={onSpill:function(e){var t=e.dragEl,r=e.putSortable,i=r||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:LS};ni(Up,{pluginName:"removeOnSpill"});Fe.mount(new t8);Fe.mount(Up,Vp);function xf(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function _y(n,e,t){const r=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(e,r)}function n8(){return typeof window<"u"?window.console:global.console}const r8=n8();function i8(n){const e=Object.create(null);return function(r){return e[r]||(e[r]=n(r))}}const s8=/-(\w)/g,o8=i8(n=>n.replace(s8,(e,t)=>t.toUpperCase())),MS=["Start","Add","Remove","Update","End"],RS=["Choose","Unchoose","Sort","Filter","Clone"],NS=["Move"],a8=[NS,MS,RS].flatMap(n=>n).map(n=>`on${n}`),vd={manage:NS,manageAndEmit:MS,emit:RS};function l8(n){return a8.indexOf(n)!==-1}const u8=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function c8(n){return u8.includes(n)}function h8(n){return["transition-group","TransitionGroup"].includes(n)}function IS(n){return["id","class","role","style"].includes(n)||n.startsWith("data-")||n.startsWith("aria-")||n.startsWith("on")}function DS(n){return n.reduce((e,[t,r])=>(e[t]=r,e),{})}function f8({$attrs:n,componentData:e={}}){return{...DS(Object.entries(n).filter(([r,i])=>IS(r))),...e}}function d8({$attrs:n,callBackBuilder:e}){const t=DS(PS(n));Object.entries(e).forEach(([i,s])=>{vd[i].forEach(d=>{t[`on${d}`]=s(d)})});const r=`[data-draggable]${t.draggable||""}`;return{...t,draggable:r}}function PS(n){return Object.entries(n).filter(([e,t])=>!IS(e)).map(([e,t])=>[o8(e),t]).filter(([e,t])=>!l8(e))}const Cy=({el:n})=>n,p8=(n,e)=>n.__draggable_context=e,Ey=n=>n.__draggable_context;class m8{constructor({nodes:{header:e,default:t,footer:r},root:i,realList:s}){this.defaultNodes=t,this.children=[...e,...t,...r],this.externalComponent=i.externalComponent,this.rootTransition=i.transition,this.tag=i.tag,this.realList=s}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,t){const{tag:r,children:i,_isRootComponent:s}=this;return e(r,t,s?{default:()=>i}:i)}updated(){const{defaultNodes:e,realList:t}=this;e.forEach((r,i)=>{p8(Cy(r),{element:t[i],index:i})})}getUnderlyingVm(e){return Ey(e)}getVmIndexFromDomIndex(e,t){const{defaultNodes:r}=this,{length:i}=r,s=t.children,d=s.item(e);if(d===null)return i;const f=Ey(d);if(f)return f.index;if(i===0)return 0;const l=Cy(r[0]),m=[...s].findIndex(a=>a===l);return e<m?0:i}}function g8(n,e){const t=n[e];return t?t():[]}function v8({$slots:n,realList:e,getKey:t}){const r=e||[],[i,s]=["header","footer"].map(l=>g8(n,l)),{item:d}=n;if(!d)throw new Error("draggable element must have an item slot");const f=r.flatMap((l,m)=>d({element:l,index:m}).map(a=>(a.key=t(l),a.props={...a.props||{},"data-draggable":!0},a)));if(f.length!==r.length)throw new Error("Item slot must have only one child");return{header:i,footer:s,default:f}}function w8(n){const e=h8(n),t=!c8(n)&&!e;return{transition:e,externalComponent:t,tag:t?c.resolveComponent(n):e?c.TransitionGroup:n}}function y8({$slots:n,tag:e,realList:t,getKey:r}){const i=v8({$slots:n,realList:t,getKey:r}),s=w8(e);return new m8({nodes:i,root:s,realList:t})}function BS(n,e){c.nextTick(()=>this.$emit(n.toLowerCase(),e))}function FS(n){return(e,t)=>{if(this.realList!==null)return this[`onDrag${n}`](e,t)}}function b8(n){const e=FS.call(this,n);return(t,r)=>{e.call(this,t,r),BS.call(this,n,t)}}let Af=null;const S8={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:n=>n},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},_8=["update:modelValue","change",...[...vd.manageAndEmit,...vd.emit].map(n=>n.toLowerCase())],C8=c.defineComponent({name:"draggable",inheritAttrs:!1,props:S8,emits:_8,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:n,$attrs:e,tag:t,componentData:r,realList:i,getKey:s}=this,d=y8({$slots:n,tag:t,realList:i,getKey:s});this.componentStructure=d;const f=f8({$attrs:e,componentData:r});return d.render(c.h,f)}catch(n){return this.error=!0,c.h("pre",{style:{color:"red"}},n.stack)}},created(){this.list!==null&&this.modelValue!==null&&r8.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:n,$el:e,componentStructure:t}=this;t.updated();const r=d8({$attrs:n,callBackBuilder:{manageAndEmit:s=>b8.call(this,s),emit:s=>BS.bind(this,s),manage:s=>FS.call(this,s)}}),i=e.nodeType===1?e:e.parentElement;this._sortable=new Fe(i,r),this.targetDomElement=i,i.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:n}=this;return n||this.modelValue},getKey(){const{itemKey:n}=this;return typeof n=="function"?n:e=>e[n]}},watch:{$attrs:{handler(n){const{_sortable:e}=this;e&&PS(n).forEach(([t,r])=>{e.option(t,r)})},deep:!0}},methods:{getUnderlyingVm(n){return this.componentStructure.getUnderlyingVm(n)||null},getUnderlyingPotencialDraggableComponent(n){return n.__draggable_component__},emitChanges(n){c.nextTick(()=>this.$emit("change",n))},alterList(n){if(this.list){n(this.list);return}const e=[...this.modelValue];n(e),this.$emit("update:modelValue",e)},spliceList(){const n=e=>e.splice(...arguments);this.alterList(n)},updatePosition(n,e){const t=r=>r.splice(e,0,r.splice(n,1)[0]);this.alterList(t)},getRelatedContextFromMoveEvent({to:n,related:e}){const t=this.getUnderlyingPotencialDraggableComponent(n);if(!t)return{component:t};const r=t.realList,i={list:r,component:t};return n!==e&&r?{...t.getUnderlyingVm(e)||{},...i}:i},getVmIndexFromDomIndex(n){return this.componentStructure.getVmIndexFromDomIndex(n,this.targetDomElement)},onDragStart(n){this.context=this.getUnderlyingVm(n.item),n.item._underlying_vm_=this.clone(this.context.element),Af=n.item},onDragAdd(n){const e=n.item._underlying_vm_;if(e===void 0)return;xf(n.item);const t=this.getVmIndexFromDomIndex(n.newIndex);this.spliceList(t,0,e);const r={element:e,newIndex:t};this.emitChanges({added:r})},onDragRemove(n){if(_y(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){xf(n.clone);return}const{index:e,element:t}=this.context;this.spliceList(e,1);const r={element:t,oldIndex:e};this.emitChanges({removed:r})},onDragUpdate(n){xf(n.item),_y(n.from,n.item,n.oldIndex);const e=this.context.index,t=this.getVmIndexFromDomIndex(n.newIndex);this.updatePosition(e,t);const r={element:this.context.element,oldIndex:e,newIndex:t};this.emitChanges({moved:r})},computeFutureIndex(n,e){if(!n.element)return 0;const t=[...e.to.children].filter(d=>d.style.display!=="none"),r=t.indexOf(e.related),i=n.component.getVmIndexFromDomIndex(r);return t.indexOf(Af)!==-1||!e.willInsertAfter?i:i+1},onDragMove(n,e){const{move:t,realList:r}=this;if(!t||!r)return!0;const i=this.getRelatedContextFromMoveEvent(n),s=this.computeFutureIndex(i,n),d={...this.context,futureIndex:s},f={...n,relatedContext:i,draggedContext:d};return t(f,e)},onDragEnd(){Af=null}}});var Cu={},E8={get exports(){return Cu},set exports(n){Cu=n}};/**
|
|
1104
|
-
* @license
|
|
1105
|
-
* Lodash <https://lodash.com/>
|
|
1106
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1107
|
-
* Released under MIT license <https://lodash.com/license>
|
|
1108
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1109
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1110
|
-
*/(function(n,e){(function(){var t,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",f="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",m=500,a="__lodash_placeholder__",o=1,u=2,p=4,v=1,w=2,b=1,_=2,E=4,$=8,x=16,S=32,T=64,M=128,A=256,R=512,y=30,k="...",O=800,N=16,I=1,P=2,B=3,z=1/0,j=9007199254740991,J=17976931348623157e292,q=0/0,re=4294967295,ie=re-1,Y=re>>>1,ne=[["ary",M],["bind",b],["bindKey",_],["curry",$],["curryRight",x],["flip",R],["partial",S],["partialRight",T],["rearg",A]],oe="[object Arguments]",fe="[object Array]",we="[object AsyncFunction]",G="[object Boolean]",pe="[object Date]",me="[object DOMException]",be="[object Error]",$e="[object Function]",H="[object GeneratorFunction]",U="[object Map]",te="[object Number]",ve="[object Null]",ke="[object Object]",Ne="[object Promise]",Tt="[object Proxy]",gt="[object RegExp]",ae="[object Set]",ye="[object String]",ee="[object Symbol]",le="[object Undefined]",xe="[object WeakMap]",Ie="[object WeakSet]",ot="[object ArrayBuffer]",et="[object DataView]",tt="[object Float32Array]",Ke="[object Float64Array]",Qt="[object Int8Array]",rr="[object Int16Array]",gs="[object Int32Array]",Rc="[object Uint8Array]",Nc="[object Uint8ClampedArray]",Ic="[object Uint16Array]",Dc="[object Uint32Array]",l_=/\b__p \+= '';/g,u_=/\b(__p \+=) '' \+/g,c_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jp=/&(?:amp|lt|gt|quot|#39);/g,Kp=/[&<>"']/g,h_=RegExp(Jp.source),f_=RegExp(Kp.source),d_=/<%-([\s\S]+?)%>/g,p_=/<%([\s\S]+?)%>/g,Xp=/<%=([\s\S]+?)%>/g,m_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g_=/^\w*$/,v_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pc=/[\\^$.*+?()[\]{}|]/g,w_=RegExp(Pc.source),Bc=/^\s+/,y_=/\s/,b_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,S_=/\{\n\/\* \[wrapped with (.+)\] \*/,__=/,? & /,C_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,E_=/[()=,{}\[\]\/\s]/,k_=/\\(\\)?/g,x_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qp=/\w*$/,A_=/^[-+]0x[0-9a-f]+$/i,T_=/^0b[01]+$/i,$_=/^\[object .+?Constructor\]$/,O_=/^0o[0-7]+$/i,L_=/^(?:0|[1-9]\d*)$/,M_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,za=/($^)/,R_=/['\n\r\u2028\u2029\\]/g,ja="\\ud800-\\udfff",N_="\\u0300-\\u036f",I_="\\ufe20-\\ufe2f",D_="\\u20d0-\\u20ff",Zp=N_+I_+D_,Qp="\\u2700-\\u27bf",em="a-z\\xdf-\\xf6\\xf8-\\xff",P_="\\xac\\xb1\\xd7\\xf7",B_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",F_="\\u2000-\\u206f",V_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tm="A-Z\\xc0-\\xd6\\xd8-\\xde",nm="\\ufe0e\\ufe0f",rm=P_+B_+F_+V_,Fc="['’]",U_="["+ja+"]",im="["+rm+"]",Ga="["+Zp+"]",sm="\\d+",W_="["+Qp+"]",om="["+em+"]",am="[^"+ja+rm+sm+Qp+em+tm+"]",Vc="\\ud83c[\\udffb-\\udfff]",H_="(?:"+Ga+"|"+Vc+")",lm="[^"+ja+"]",Uc="(?:\\ud83c[\\udde6-\\uddff]){2}",Wc="[\\ud800-\\udbff][\\udc00-\\udfff]",vs="["+tm+"]",um="\\u200d",cm="(?:"+om+"|"+am+")",z_="(?:"+vs+"|"+am+")",hm="(?:"+Fc+"(?:d|ll|m|re|s|t|ve))?",fm="(?:"+Fc+"(?:D|LL|M|RE|S|T|VE))?",dm=H_+"?",pm="["+nm+"]?",j_="(?:"+um+"(?:"+[lm,Uc,Wc].join("|")+")"+pm+dm+")*",G_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Y_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",mm=pm+dm+j_,J_="(?:"+[W_,Uc,Wc].join("|")+")"+mm,K_="(?:"+[lm+Ga+"?",Ga,Uc,Wc,U_].join("|")+")",X_=RegExp(Fc,"g"),q_=RegExp(Ga,"g"),Hc=RegExp(Vc+"(?="+Vc+")|"+K_+mm,"g"),Z_=RegExp([vs+"?"+om+"+"+hm+"(?="+[im,vs,"$"].join("|")+")",z_+"+"+fm+"(?="+[im,vs+cm,"$"].join("|")+")",vs+"?"+cm+"+"+hm,vs+"+"+fm,Y_,G_,sm,J_].join("|"),"g"),Q_=RegExp("["+um+ja+Zp+nm+"]"),e1=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,t1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],n1=-1,bt={};bt[tt]=bt[Ke]=bt[Qt]=bt[rr]=bt[gs]=bt[Rc]=bt[Nc]=bt[Ic]=bt[Dc]=!0,bt[oe]=bt[fe]=bt[ot]=bt[G]=bt[et]=bt[pe]=bt[be]=bt[$e]=bt[U]=bt[te]=bt[ke]=bt[gt]=bt[ae]=bt[ye]=bt[xe]=!1;var yt={};yt[oe]=yt[fe]=yt[ot]=yt[et]=yt[G]=yt[pe]=yt[tt]=yt[Ke]=yt[Qt]=yt[rr]=yt[gs]=yt[U]=yt[te]=yt[ke]=yt[gt]=yt[ae]=yt[ye]=yt[ee]=yt[Rc]=yt[Nc]=yt[Ic]=yt[Dc]=!0,yt[be]=yt[$e]=yt[xe]=!1;var r1={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},i1={"&":"&","<":"<",">":">",'"':""","'":"'"},s1={"&":"&","<":"<",">":">",""":'"',"'":"'"},o1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},a1=parseFloat,l1=parseInt,gm=typeof xo=="object"&&xo&&xo.Object===Object&&xo,u1=typeof self=="object"&&self&&self.Object===Object&&self,Kt=gm||u1||Function("return this")(),zc=e&&!e.nodeType&&e,Di=zc&&!0&&n&&!n.nodeType&&n,vm=Di&&Di.exports===zc,jc=vm&&gm.process,Fn=function(){try{var Z=Di&&Di.require&&Di.require("util").types;return Z||jc&&jc.binding&&jc.binding("util")}catch{}}(),wm=Fn&&Fn.isArrayBuffer,ym=Fn&&Fn.isDate,bm=Fn&&Fn.isMap,Sm=Fn&&Fn.isRegExp,_m=Fn&&Fn.isSet,Cm=Fn&&Fn.isTypedArray;function En(Z,ue,se){switch(se.length){case 0:return Z.call(ue);case 1:return Z.call(ue,se[0]);case 2:return Z.call(ue,se[0],se[1]);case 3:return Z.call(ue,se[0],se[1],se[2])}return Z.apply(ue,se)}function c1(Z,ue,se,Ae){for(var We=-1,ct=Z==null?0:Z.length;++We<ct;){var Vt=Z[We];ue(Ae,Vt,se(Vt),Z)}return Ae}function Vn(Z,ue){for(var se=-1,Ae=Z==null?0:Z.length;++se<Ae&&ue(Z[se],se,Z)!==!1;);return Z}function h1(Z,ue){for(var se=Z==null?0:Z.length;se--&&ue(Z[se],se,Z)!==!1;);return Z}function Em(Z,ue){for(var se=-1,Ae=Z==null?0:Z.length;++se<Ae;)if(!ue(Z[se],se,Z))return!1;return!0}function ui(Z,ue){for(var se=-1,Ae=Z==null?0:Z.length,We=0,ct=[];++se<Ae;){var Vt=Z[se];ue(Vt,se,Z)&&(ct[We++]=Vt)}return ct}function Ya(Z,ue){var se=Z==null?0:Z.length;return!!se&&ws(Z,ue,0)>-1}function Gc(Z,ue,se){for(var Ae=-1,We=Z==null?0:Z.length;++Ae<We;)if(se(ue,Z[Ae]))return!0;return!1}function Et(Z,ue){for(var se=-1,Ae=Z==null?0:Z.length,We=Array(Ae);++se<Ae;)We[se]=ue(Z[se],se,Z);return We}function ci(Z,ue){for(var se=-1,Ae=ue.length,We=Z.length;++se<Ae;)Z[We+se]=ue[se];return Z}function Yc(Z,ue,se,Ae){var We=-1,ct=Z==null?0:Z.length;for(Ae&&ct&&(se=Z[++We]);++We<ct;)se=ue(se,Z[We],We,Z);return se}function f1(Z,ue,se,Ae){var We=Z==null?0:Z.length;for(Ae&&We&&(se=Z[--We]);We--;)se=ue(se,Z[We],We,Z);return se}function Jc(Z,ue){for(var se=-1,Ae=Z==null?0:Z.length;++se<Ae;)if(ue(Z[se],se,Z))return!0;return!1}var d1=Kc("length");function p1(Z){return Z.split("")}function m1(Z){return Z.match(C_)||[]}function km(Z,ue,se){var Ae;return se(Z,function(We,ct,Vt){if(ue(We,ct,Vt))return Ae=ct,!1}),Ae}function Ja(Z,ue,se,Ae){for(var We=Z.length,ct=se+(Ae?1:-1);Ae?ct--:++ct<We;)if(ue(Z[ct],ct,Z))return ct;return-1}function ws(Z,ue,se){return ue===ue?A1(Z,ue,se):Ja(Z,xm,se)}function g1(Z,ue,se,Ae){for(var We=se-1,ct=Z.length;++We<ct;)if(Ae(Z[We],ue))return We;return-1}function xm(Z){return Z!==Z}function Am(Z,ue){var se=Z==null?0:Z.length;return se?qc(Z,ue)/se:q}function Kc(Z){return function(ue){return ue==null?t:ue[Z]}}function Xc(Z){return function(ue){return Z==null?t:Z[ue]}}function Tm(Z,ue,se,Ae,We){return We(Z,function(ct,Vt,vt){se=Ae?(Ae=!1,ct):ue(se,ct,Vt,vt)}),se}function v1(Z,ue){var se=Z.length;for(Z.sort(ue);se--;)Z[se]=Z[se].value;return Z}function qc(Z,ue){for(var se,Ae=-1,We=Z.length;++Ae<We;){var ct=ue(Z[Ae]);ct!==t&&(se=se===t?ct:se+ct)}return se}function Zc(Z,ue){for(var se=-1,Ae=Array(Z);++se<Z;)Ae[se]=ue(se);return Ae}function w1(Z,ue){return Et(ue,function(se){return[se,Z[se]]})}function $m(Z){return Z&&Z.slice(0,Rm(Z)+1).replace(Bc,"")}function kn(Z){return function(ue){return Z(ue)}}function Qc(Z,ue){return Et(ue,function(se){return Z[se]})}function uo(Z,ue){return Z.has(ue)}function Om(Z,ue){for(var se=-1,Ae=Z.length;++se<Ae&&ws(ue,Z[se],0)>-1;);return se}function Lm(Z,ue){for(var se=Z.length;se--&&ws(ue,Z[se],0)>-1;);return se}function y1(Z,ue){for(var se=Z.length,Ae=0;se--;)Z[se]===ue&&++Ae;return Ae}var b1=Xc(r1),S1=Xc(i1);function _1(Z){return"\\"+o1[Z]}function C1(Z,ue){return Z==null?t:Z[ue]}function ys(Z){return Q_.test(Z)}function E1(Z){return e1.test(Z)}function k1(Z){for(var ue,se=[];!(ue=Z.next()).done;)se.push(ue.value);return se}function eh(Z){var ue=-1,se=Array(Z.size);return Z.forEach(function(Ae,We){se[++ue]=[We,Ae]}),se}function Mm(Z,ue){return function(se){return Z(ue(se))}}function hi(Z,ue){for(var se=-1,Ae=Z.length,We=0,ct=[];++se<Ae;){var Vt=Z[se];(Vt===ue||Vt===a)&&(Z[se]=a,ct[We++]=se)}return ct}function Ka(Z){var ue=-1,se=Array(Z.size);return Z.forEach(function(Ae){se[++ue]=Ae}),se}function x1(Z){var ue=-1,se=Array(Z.size);return Z.forEach(function(Ae){se[++ue]=[Ae,Ae]}),se}function A1(Z,ue,se){for(var Ae=se-1,We=Z.length;++Ae<We;)if(Z[Ae]===ue)return Ae;return-1}function T1(Z,ue,se){for(var Ae=se+1;Ae--;)if(Z[Ae]===ue)return Ae;return Ae}function bs(Z){return ys(Z)?O1(Z):d1(Z)}function ir(Z){return ys(Z)?L1(Z):p1(Z)}function Rm(Z){for(var ue=Z.length;ue--&&y_.test(Z.charAt(ue)););return ue}var $1=Xc(s1);function O1(Z){for(var ue=Hc.lastIndex=0;Hc.test(Z);)++ue;return ue}function L1(Z){return Z.match(Hc)||[]}function M1(Z){return Z.match(Z_)||[]}var R1=function Z(ue){ue=ue==null?Kt:Ss.defaults(Kt.Object(),ue,Ss.pick(Kt,t1));var se=ue.Array,Ae=ue.Date,We=ue.Error,ct=ue.Function,Vt=ue.Math,vt=ue.Object,th=ue.RegExp,N1=ue.String,Un=ue.TypeError,Xa=se.prototype,I1=ct.prototype,_s=vt.prototype,qa=ue["__core-js_shared__"],Za=I1.toString,dt=_s.hasOwnProperty,D1=0,Nm=function(){var h=/[^.]+$/.exec(qa&&qa.keys&&qa.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),Qa=_s.toString,P1=Za.call(vt),B1=Kt._,F1=th("^"+Za.call(dt).replace(Pc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),el=vm?ue.Buffer:t,fi=ue.Symbol,tl=ue.Uint8Array,Im=el?el.allocUnsafe:t,nl=Mm(vt.getPrototypeOf,vt),Dm=vt.create,Pm=_s.propertyIsEnumerable,rl=Xa.splice,Bm=fi?fi.isConcatSpreadable:t,co=fi?fi.iterator:t,Pi=fi?fi.toStringTag:t,il=function(){try{var h=Wi(vt,"defineProperty");return h({},"",{}),h}catch{}}(),V1=ue.clearTimeout!==Kt.clearTimeout&&ue.clearTimeout,U1=Ae&&Ae.now!==Kt.Date.now&&Ae.now,W1=ue.setTimeout!==Kt.setTimeout&&ue.setTimeout,sl=Vt.ceil,ol=Vt.floor,nh=vt.getOwnPropertySymbols,H1=el?el.isBuffer:t,Fm=ue.isFinite,z1=Xa.join,j1=Mm(vt.keys,vt),Ut=Vt.max,en=Vt.min,G1=Ae.now,Y1=ue.parseInt,Vm=Vt.random,J1=Xa.reverse,rh=Wi(ue,"DataView"),ho=Wi(ue,"Map"),ih=Wi(ue,"Promise"),Cs=Wi(ue,"Set"),fo=Wi(ue,"WeakMap"),po=Wi(vt,"create"),al=fo&&new fo,Es={},K1=Hi(rh),X1=Hi(ho),q1=Hi(ih),Z1=Hi(Cs),Q1=Hi(fo),ll=fi?fi.prototype:t,mo=ll?ll.valueOf:t,Um=ll?ll.toString:t;function F(h){if($t(h)&&!He(h)&&!(h instanceof nt)){if(h instanceof Wn)return h;if(dt.call(h,"__wrapped__"))return Wg(h)}return new Wn(h)}var ks=function(){function h(){}return function(g){if(!At(g))return{};if(Dm)return Dm(g);h.prototype=g;var C=new h;return h.prototype=t,C}}();function ul(){}function Wn(h,g){this.__wrapped__=h,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=t}F.templateSettings={escape:d_,evaluate:p_,interpolate:Xp,variable:"",imports:{_:F}},F.prototype=ul.prototype,F.prototype.constructor=F,Wn.prototype=ks(ul.prototype),Wn.prototype.constructor=Wn;function nt(h){this.__wrapped__=h,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=re,this.__views__=[]}function eC(){var h=new nt(this.__wrapped__);return h.__actions__=dn(this.__actions__),h.__dir__=this.__dir__,h.__filtered__=this.__filtered__,h.__iteratees__=dn(this.__iteratees__),h.__takeCount__=this.__takeCount__,h.__views__=dn(this.__views__),h}function tC(){if(this.__filtered__){var h=new nt(this);h.__dir__=-1,h.__filtered__=!0}else h=this.clone(),h.__dir__*=-1;return h}function nC(){var h=this.__wrapped__.value(),g=this.__dir__,C=He(h),L=g<0,D=C?h.length:0,V=pE(0,D,this.__views__),W=V.start,K=V.end,Q=K-W,ce=L?K:W-1,he=this.__iteratees__,de=he.length,Ee=0,Le=en(Q,this.__takeCount__);if(!C||!L&&D==Q&&Le==Q)return hg(h,this.__actions__);var De=[];e:for(;Q--&&Ee<Le;){ce+=g;for(var Je=-1,Pe=h[ce];++Je<de;){var Ze=he[Je],rt=Ze.iteratee,Tn=Ze.type,cn=rt(Pe);if(Tn==P)Pe=cn;else if(!cn){if(Tn==I)continue e;break e}}De[Ee++]=Pe}return De}nt.prototype=ks(ul.prototype),nt.prototype.constructor=nt;function Bi(h){var g=-1,C=h==null?0:h.length;for(this.clear();++g<C;){var L=h[g];this.set(L[0],L[1])}}function rC(){this.__data__=po?po(null):{},this.size=0}function iC(h){var g=this.has(h)&&delete this.__data__[h];return this.size-=g?1:0,g}function sC(h){var g=this.__data__;if(po){var C=g[h];return C===l?t:C}return dt.call(g,h)?g[h]:t}function oC(h){var g=this.__data__;return po?g[h]!==t:dt.call(g,h)}function aC(h,g){var C=this.__data__;return this.size+=this.has(h)?0:1,C[h]=po&&g===t?l:g,this}Bi.prototype.clear=rC,Bi.prototype.delete=iC,Bi.prototype.get=sC,Bi.prototype.has=oC,Bi.prototype.set=aC;function Rr(h){var g=-1,C=h==null?0:h.length;for(this.clear();++g<C;){var L=h[g];this.set(L[0],L[1])}}function lC(){this.__data__=[],this.size=0}function uC(h){var g=this.__data__,C=cl(g,h);if(C<0)return!1;var L=g.length-1;return C==L?g.pop():rl.call(g,C,1),--this.size,!0}function cC(h){var g=this.__data__,C=cl(g,h);return C<0?t:g[C][1]}function hC(h){return cl(this.__data__,h)>-1}function fC(h,g){var C=this.__data__,L=cl(C,h);return L<0?(++this.size,C.push([h,g])):C[L][1]=g,this}Rr.prototype.clear=lC,Rr.prototype.delete=uC,Rr.prototype.get=cC,Rr.prototype.has=hC,Rr.prototype.set=fC;function Nr(h){var g=-1,C=h==null?0:h.length;for(this.clear();++g<C;){var L=h[g];this.set(L[0],L[1])}}function dC(){this.size=0,this.__data__={hash:new Bi,map:new(ho||Rr),string:new Bi}}function pC(h){var g=_l(this,h).delete(h);return this.size-=g?1:0,g}function mC(h){return _l(this,h).get(h)}function gC(h){return _l(this,h).has(h)}function vC(h,g){var C=_l(this,h),L=C.size;return C.set(h,g),this.size+=C.size==L?0:1,this}Nr.prototype.clear=dC,Nr.prototype.delete=pC,Nr.prototype.get=mC,Nr.prototype.has=gC,Nr.prototype.set=vC;function Fi(h){var g=-1,C=h==null?0:h.length;for(this.__data__=new Nr;++g<C;)this.add(h[g])}function wC(h){return this.__data__.set(h,l),this}function yC(h){return this.__data__.has(h)}Fi.prototype.add=Fi.prototype.push=wC,Fi.prototype.has=yC;function sr(h){var g=this.__data__=new Rr(h);this.size=g.size}function bC(){this.__data__=new Rr,this.size=0}function SC(h){var g=this.__data__,C=g.delete(h);return this.size=g.size,C}function _C(h){return this.__data__.get(h)}function CC(h){return this.__data__.has(h)}function EC(h,g){var C=this.__data__;if(C instanceof Rr){var L=C.__data__;if(!ho||L.length<i-1)return L.push([h,g]),this.size=++C.size,this;C=this.__data__=new Nr(L)}return C.set(h,g),this.size=C.size,this}sr.prototype.clear=bC,sr.prototype.delete=SC,sr.prototype.get=_C,sr.prototype.has=CC,sr.prototype.set=EC;function Wm(h,g){var C=He(h),L=!C&&zi(h),D=!C&&!L&&vi(h),V=!C&&!L&&!D&&$s(h),W=C||L||D||V,K=W?Zc(h.length,N1):[],Q=K.length;for(var ce in h)(g||dt.call(h,ce))&&!(W&&(ce=="length"||D&&(ce=="offset"||ce=="parent")||V&&(ce=="buffer"||ce=="byteLength"||ce=="byteOffset")||Br(ce,Q)))&&K.push(ce);return K}function Hm(h){var g=h.length;return g?h[mh(0,g-1)]:t}function kC(h,g){return Cl(dn(h),Vi(g,0,h.length))}function xC(h){return Cl(dn(h))}function sh(h,g,C){(C!==t&&!or(h[g],C)||C===t&&!(g in h))&&Ir(h,g,C)}function go(h,g,C){var L=h[g];(!(dt.call(h,g)&&or(L,C))||C===t&&!(g in h))&&Ir(h,g,C)}function cl(h,g){for(var C=h.length;C--;)if(or(h[C][0],g))return C;return-1}function AC(h,g,C,L){return di(h,function(D,V,W){g(L,D,C(D),W)}),L}function zm(h,g){return h&&wr(g,Gt(g),h)}function TC(h,g){return h&&wr(g,mn(g),h)}function Ir(h,g,C){g=="__proto__"&&il?il(h,g,{configurable:!0,enumerable:!0,value:C,writable:!0}):h[g]=C}function oh(h,g){for(var C=-1,L=g.length,D=se(L),V=h==null;++C<L;)D[C]=V?t:Vh(h,g[C]);return D}function Vi(h,g,C){return h===h&&(C!==t&&(h=h<=C?h:C),g!==t&&(h=h>=g?h:g)),h}function Hn(h,g,C,L,D,V){var W,K=g&o,Q=g&u,ce=g&p;if(C&&(W=D?C(h,L,D,V):C(h)),W!==t)return W;if(!At(h))return h;var he=He(h);if(he){if(W=gE(h),!K)return dn(h,W)}else{var de=tn(h),Ee=de==$e||de==H;if(vi(h))return pg(h,K);if(de==ke||de==oe||Ee&&!D){if(W=Q||Ee?{}:Rg(h),!K)return Q?sE(h,TC(W,h)):iE(h,zm(W,h))}else{if(!yt[de])return D?h:{};W=vE(h,de,K)}}V||(V=new sr);var Le=V.get(h);if(Le)return Le;V.set(h,W),lv(h)?h.forEach(function(Pe){W.add(Hn(Pe,g,C,Pe,h,V))}):ov(h)&&h.forEach(function(Pe,Ze){W.set(Ze,Hn(Pe,g,C,Ze,h,V))});var De=ce?Q?xh:kh:Q?mn:Gt,Je=he?t:De(h);return Vn(Je||h,function(Pe,Ze){Je&&(Ze=Pe,Pe=h[Ze]),go(W,Ze,Hn(Pe,g,C,Ze,h,V))}),W}function $C(h){var g=Gt(h);return function(C){return jm(C,h,g)}}function jm(h,g,C){var L=C.length;if(h==null)return!L;for(h=vt(h);L--;){var D=C[L],V=g[D],W=h[D];if(W===t&&!(D in h)||!V(W))return!1}return!0}function Gm(h,g,C){if(typeof h!="function")throw new Un(d);return Co(function(){h.apply(t,C)},g)}function vo(h,g,C,L){var D=-1,V=Ya,W=!0,K=h.length,Q=[],ce=g.length;if(!K)return Q;C&&(g=Et(g,kn(C))),L?(V=Gc,W=!1):g.length>=i&&(V=uo,W=!1,g=new Fi(g));e:for(;++D<K;){var he=h[D],de=C==null?he:C(he);if(he=L||he!==0?he:0,W&&de===de){for(var Ee=ce;Ee--;)if(g[Ee]===de)continue e;Q.push(he)}else V(g,de,L)||Q.push(he)}return Q}var di=yg(vr),Ym=yg(lh,!0);function OC(h,g){var C=!0;return di(h,function(L,D,V){return C=!!g(L,D,V),C}),C}function hl(h,g,C){for(var L=-1,D=h.length;++L<D;){var V=h[L],W=g(V);if(W!=null&&(K===t?W===W&&!An(W):C(W,K)))var K=W,Q=V}return Q}function LC(h,g,C,L){var D=h.length;for(C=je(C),C<0&&(C=-C>D?0:D+C),L=L===t||L>D?D:je(L),L<0&&(L+=D),L=C>L?0:cv(L);C<L;)h[C++]=g;return h}function Jm(h,g){var C=[];return di(h,function(L,D,V){g(L,D,V)&&C.push(L)}),C}function Xt(h,g,C,L,D){var V=-1,W=h.length;for(C||(C=yE),D||(D=[]);++V<W;){var K=h[V];g>0&&C(K)?g>1?Xt(K,g-1,C,L,D):ci(D,K):L||(D[D.length]=K)}return D}var ah=bg(),Km=bg(!0);function vr(h,g){return h&&ah(h,g,Gt)}function lh(h,g){return h&&Km(h,g,Gt)}function fl(h,g){return ui(g,function(C){return Fr(h[C])})}function Ui(h,g){g=mi(g,h);for(var C=0,L=g.length;h!=null&&C<L;)h=h[yr(g[C++])];return C&&C==L?h:t}function Xm(h,g,C){var L=g(h);return He(h)?L:ci(L,C(h))}function ln(h){return h==null?h===t?le:ve:Pi&&Pi in vt(h)?dE(h):xE(h)}function uh(h,g){return h>g}function MC(h,g){return h!=null&&dt.call(h,g)}function RC(h,g){return h!=null&&g in vt(h)}function NC(h,g,C){return h>=en(g,C)&&h<Ut(g,C)}function ch(h,g,C){for(var L=C?Gc:Ya,D=h[0].length,V=h.length,W=V,K=se(V),Q=1/0,ce=[];W--;){var he=h[W];W&&g&&(he=Et(he,kn(g))),Q=en(he.length,Q),K[W]=!C&&(g||D>=120&&he.length>=120)?new Fi(W&&he):t}he=h[0];var de=-1,Ee=K[0];e:for(;++de<D&&ce.length<Q;){var Le=he[de],De=g?g(Le):Le;if(Le=C||Le!==0?Le:0,!(Ee?uo(Ee,De):L(ce,De,C))){for(W=V;--W;){var Je=K[W];if(!(Je?uo(Je,De):L(h[W],De,C)))continue e}Ee&&Ee.push(De),ce.push(Le)}}return ce}function IC(h,g,C,L){return vr(h,function(D,V,W){g(L,C(D),V,W)}),L}function wo(h,g,C){g=mi(g,h),h=Pg(h,g);var L=h==null?h:h[yr(jn(g))];return L==null?t:En(L,h,C)}function qm(h){return $t(h)&&ln(h)==oe}function DC(h){return $t(h)&&ln(h)==ot}function PC(h){return $t(h)&&ln(h)==pe}function yo(h,g,C,L,D){return h===g?!0:h==null||g==null||!$t(h)&&!$t(g)?h!==h&&g!==g:BC(h,g,C,L,yo,D)}function BC(h,g,C,L,D,V){var W=He(h),K=He(g),Q=W?fe:tn(h),ce=K?fe:tn(g);Q=Q==oe?ke:Q,ce=ce==oe?ke:ce;var he=Q==ke,de=ce==ke,Ee=Q==ce;if(Ee&&vi(h)){if(!vi(g))return!1;W=!0,he=!1}if(Ee&&!he)return V||(V=new sr),W||$s(h)?Og(h,g,C,L,D,V):hE(h,g,Q,C,L,D,V);if(!(C&v)){var Le=he&&dt.call(h,"__wrapped__"),De=de&&dt.call(g,"__wrapped__");if(Le||De){var Je=Le?h.value():h,Pe=De?g.value():g;return V||(V=new sr),D(Je,Pe,C,L,V)}}return Ee?(V||(V=new sr),fE(h,g,C,L,D,V)):!1}function FC(h){return $t(h)&&tn(h)==U}function hh(h,g,C,L){var D=C.length,V=D,W=!L;if(h==null)return!V;for(h=vt(h);D--;){var K=C[D];if(W&&K[2]?K[1]!==h[K[0]]:!(K[0]in h))return!1}for(;++D<V;){K=C[D];var Q=K[0],ce=h[Q],he=K[1];if(W&&K[2]){if(ce===t&&!(Q in h))return!1}else{var de=new sr;if(L)var Ee=L(ce,he,Q,h,g,de);if(!(Ee===t?yo(he,ce,v|w,L,de):Ee))return!1}}return!0}function Zm(h){if(!At(h)||SE(h))return!1;var g=Fr(h)?F1:$_;return g.test(Hi(h))}function VC(h){return $t(h)&&ln(h)==gt}function UC(h){return $t(h)&&tn(h)==ae}function WC(h){return $t(h)&&$l(h.length)&&!!bt[ln(h)]}function Qm(h){return typeof h=="function"?h:h==null?gn:typeof h=="object"?He(h)?ng(h[0],h[1]):tg(h):Sv(h)}function fh(h){if(!_o(h))return j1(h);var g=[];for(var C in vt(h))dt.call(h,C)&&C!="constructor"&&g.push(C);return g}function HC(h){if(!At(h))return kE(h);var g=_o(h),C=[];for(var L in h)L=="constructor"&&(g||!dt.call(h,L))||C.push(L);return C}function dh(h,g){return h<g}function eg(h,g){var C=-1,L=pn(h)?se(h.length):[];return di(h,function(D,V,W){L[++C]=g(D,V,W)}),L}function tg(h){var g=Th(h);return g.length==1&&g[0][2]?Ig(g[0][0],g[0][1]):function(C){return C===h||hh(C,h,g)}}function ng(h,g){return Oh(h)&&Ng(g)?Ig(yr(h),g):function(C){var L=Vh(C,h);return L===t&&L===g?Uh(C,h):yo(g,L,v|w)}}function dl(h,g,C,L,D){h!==g&&ah(g,function(V,W){if(D||(D=new sr),At(V))zC(h,g,W,C,dl,L,D);else{var K=L?L(Mh(h,W),V,W+"",h,g,D):t;K===t&&(K=V),sh(h,W,K)}},mn)}function zC(h,g,C,L,D,V,W){var K=Mh(h,C),Q=Mh(g,C),ce=W.get(Q);if(ce){sh(h,C,ce);return}var he=V?V(K,Q,C+"",h,g,W):t,de=he===t;if(de){var Ee=He(Q),Le=!Ee&&vi(Q),De=!Ee&&!Le&&$s(Q);he=Q,Ee||Le||De?He(K)?he=K:It(K)?he=dn(K):Le?(de=!1,he=pg(Q,!0)):De?(de=!1,he=mg(Q,!0)):he=[]:Eo(Q)||zi(Q)?(he=K,zi(K)?he=hv(K):(!At(K)||Fr(K))&&(he=Rg(Q))):de=!1}de&&(W.set(Q,he),D(he,Q,L,V,W),W.delete(Q)),sh(h,C,he)}function rg(h,g){var C=h.length;if(C)return g+=g<0?C:0,Br(g,C)?h[g]:t}function ig(h,g,C){g.length?g=Et(g,function(V){return He(V)?function(W){return Ui(W,V.length===1?V[0]:V)}:V}):g=[gn];var L=-1;g=Et(g,kn(Re()));var D=eg(h,function(V,W,K){var Q=Et(g,function(ce){return ce(V)});return{criteria:Q,index:++L,value:V}});return v1(D,function(V,W){return rE(V,W,C)})}function jC(h,g){return sg(h,g,function(C,L){return Uh(h,L)})}function sg(h,g,C){for(var L=-1,D=g.length,V={};++L<D;){var W=g[L],K=Ui(h,W);C(K,W)&&bo(V,mi(W,h),K)}return V}function GC(h){return function(g){return Ui(g,h)}}function ph(h,g,C,L){var D=L?g1:ws,V=-1,W=g.length,K=h;for(h===g&&(g=dn(g)),C&&(K=Et(h,kn(C)));++V<W;)for(var Q=0,ce=g[V],he=C?C(ce):ce;(Q=D(K,he,Q,L))>-1;)K!==h&&rl.call(K,Q,1),rl.call(h,Q,1);return h}function og(h,g){for(var C=h?g.length:0,L=C-1;C--;){var D=g[C];if(C==L||D!==V){var V=D;Br(D)?rl.call(h,D,1):wh(h,D)}}return h}function mh(h,g){return h+ol(Vm()*(g-h+1))}function YC(h,g,C,L){for(var D=-1,V=Ut(sl((g-h)/(C||1)),0),W=se(V);V--;)W[L?V:++D]=h,h+=C;return W}function gh(h,g){var C="";if(!h||g<1||g>j)return C;do g%2&&(C+=h),g=ol(g/2),g&&(h+=h);while(g);return C}function Xe(h,g){return Rh(Dg(h,g,gn),h+"")}function JC(h){return Hm(Os(h))}function KC(h,g){var C=Os(h);return Cl(C,Vi(g,0,C.length))}function bo(h,g,C,L){if(!At(h))return h;g=mi(g,h);for(var D=-1,V=g.length,W=V-1,K=h;K!=null&&++D<V;){var Q=yr(g[D]),ce=C;if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return h;if(D!=W){var he=K[Q];ce=L?L(he,Q,K):t,ce===t&&(ce=At(he)?he:Br(g[D+1])?[]:{})}go(K,Q,ce),K=K[Q]}return h}var ag=al?function(h,g){return al.set(h,g),h}:gn,XC=il?function(h,g){return il(h,"toString",{configurable:!0,enumerable:!1,value:Hh(g),writable:!0})}:gn;function qC(h){return Cl(Os(h))}function zn(h,g,C){var L=-1,D=h.length;g<0&&(g=-g>D?0:D+g),C=C>D?D:C,C<0&&(C+=D),D=g>C?0:C-g>>>0,g>>>=0;for(var V=se(D);++L<D;)V[L]=h[L+g];return V}function ZC(h,g){var C;return di(h,function(L,D,V){return C=g(L,D,V),!C}),!!C}function pl(h,g,C){var L=0,D=h==null?L:h.length;if(typeof g=="number"&&g===g&&D<=Y){for(;L<D;){var V=L+D>>>1,W=h[V];W!==null&&!An(W)&&(C?W<=g:W<g)?L=V+1:D=V}return D}return vh(h,g,gn,C)}function vh(h,g,C,L){var D=0,V=h==null?0:h.length;if(V===0)return 0;g=C(g);for(var W=g!==g,K=g===null,Q=An(g),ce=g===t;D<V;){var he=ol((D+V)/2),de=C(h[he]),Ee=de!==t,Le=de===null,De=de===de,Je=An(de);if(W)var Pe=L||De;else ce?Pe=De&&(L||Ee):K?Pe=De&&Ee&&(L||!Le):Q?Pe=De&&Ee&&!Le&&(L||!Je):Le||Je?Pe=!1:Pe=L?de<=g:de<g;Pe?D=he+1:V=he}return en(V,ie)}function lg(h,g){for(var C=-1,L=h.length,D=0,V=[];++C<L;){var W=h[C],K=g?g(W):W;if(!C||!or(K,Q)){var Q=K;V[D++]=W===0?0:W}}return V}function ug(h){return typeof h=="number"?h:An(h)?q:+h}function xn(h){if(typeof h=="string")return h;if(He(h))return Et(h,xn)+"";if(An(h))return Um?Um.call(h):"";var g=h+"";return g=="0"&&1/h==-z?"-0":g}function pi(h,g,C){var L=-1,D=Ya,V=h.length,W=!0,K=[],Q=K;if(C)W=!1,D=Gc;else if(V>=i){var ce=g?null:uE(h);if(ce)return Ka(ce);W=!1,D=uo,Q=new Fi}else Q=g?[]:K;e:for(;++L<V;){var he=h[L],de=g?g(he):he;if(he=C||he!==0?he:0,W&&de===de){for(var Ee=Q.length;Ee--;)if(Q[Ee]===de)continue e;g&&Q.push(de),K.push(he)}else D(Q,de,C)||(Q!==K&&Q.push(de),K.push(he))}return K}function wh(h,g){return g=mi(g,h),h=Pg(h,g),h==null||delete h[yr(jn(g))]}function cg(h,g,C,L){return bo(h,g,C(Ui(h,g)),L)}function ml(h,g,C,L){for(var D=h.length,V=L?D:-1;(L?V--:++V<D)&&g(h[V],V,h););return C?zn(h,L?0:V,L?V+1:D):zn(h,L?V+1:0,L?D:V)}function hg(h,g){var C=h;return C instanceof nt&&(C=C.value()),Yc(g,function(L,D){return D.func.apply(D.thisArg,ci([L],D.args))},C)}function yh(h,g,C){var L=h.length;if(L<2)return L?pi(h[0]):[];for(var D=-1,V=se(L);++D<L;)for(var W=h[D],K=-1;++K<L;)K!=D&&(V[D]=vo(V[D]||W,h[K],g,C));return pi(Xt(V,1),g,C)}function fg(h,g,C){for(var L=-1,D=h.length,V=g.length,W={};++L<D;){var K=L<V?g[L]:t;C(W,h[L],K)}return W}function bh(h){return It(h)?h:[]}function Sh(h){return typeof h=="function"?h:gn}function mi(h,g){return He(h)?h:Oh(h,g)?[h]:Ug(ft(h))}var QC=Xe;function gi(h,g,C){var L=h.length;return C=C===t?L:C,!g&&C>=L?h:zn(h,g,C)}var dg=V1||function(h){return Kt.clearTimeout(h)};function pg(h,g){if(g)return h.slice();var C=h.length,L=Im?Im(C):new h.constructor(C);return h.copy(L),L}function _h(h){var g=new h.constructor(h.byteLength);return new tl(g).set(new tl(h)),g}function eE(h,g){var C=g?_h(h.buffer):h.buffer;return new h.constructor(C,h.byteOffset,h.byteLength)}function tE(h){var g=new h.constructor(h.source,qp.exec(h));return g.lastIndex=h.lastIndex,g}function nE(h){return mo?vt(mo.call(h)):{}}function mg(h,g){var C=g?_h(h.buffer):h.buffer;return new h.constructor(C,h.byteOffset,h.length)}function gg(h,g){if(h!==g){var C=h!==t,L=h===null,D=h===h,V=An(h),W=g!==t,K=g===null,Q=g===g,ce=An(g);if(!K&&!ce&&!V&&h>g||V&&W&&Q&&!K&&!ce||L&&W&&Q||!C&&Q||!D)return 1;if(!L&&!V&&!ce&&h<g||ce&&C&&D&&!L&&!V||K&&C&&D||!W&&D||!Q)return-1}return 0}function rE(h,g,C){for(var L=-1,D=h.criteria,V=g.criteria,W=D.length,K=C.length;++L<W;){var Q=gg(D[L],V[L]);if(Q){if(L>=K)return Q;var ce=C[L];return Q*(ce=="desc"?-1:1)}}return h.index-g.index}function vg(h,g,C,L){for(var D=-1,V=h.length,W=C.length,K=-1,Q=g.length,ce=Ut(V-W,0),he=se(Q+ce),de=!L;++K<Q;)he[K]=g[K];for(;++D<W;)(de||D<V)&&(he[C[D]]=h[D]);for(;ce--;)he[K++]=h[D++];return he}function wg(h,g,C,L){for(var D=-1,V=h.length,W=-1,K=C.length,Q=-1,ce=g.length,he=Ut(V-K,0),de=se(he+ce),Ee=!L;++D<he;)de[D]=h[D];for(var Le=D;++Q<ce;)de[Le+Q]=g[Q];for(;++W<K;)(Ee||D<V)&&(de[Le+C[W]]=h[D++]);return de}function dn(h,g){var C=-1,L=h.length;for(g||(g=se(L));++C<L;)g[C]=h[C];return g}function wr(h,g,C,L){var D=!C;C||(C={});for(var V=-1,W=g.length;++V<W;){var K=g[V],Q=L?L(C[K],h[K],K,C,h):t;Q===t&&(Q=h[K]),D?Ir(C,K,Q):go(C,K,Q)}return C}function iE(h,g){return wr(h,$h(h),g)}function sE(h,g){return wr(h,Lg(h),g)}function gl(h,g){return function(C,L){var D=He(C)?c1:AC,V=g?g():{};return D(C,h,Re(L,2),V)}}function xs(h){return Xe(function(g,C){var L=-1,D=C.length,V=D>1?C[D-1]:t,W=D>2?C[2]:t;for(V=h.length>3&&typeof V=="function"?(D--,V):t,W&&un(C[0],C[1],W)&&(V=D<3?t:V,D=1),g=vt(g);++L<D;){var K=C[L];K&&h(g,K,L,V)}return g})}function yg(h,g){return function(C,L){if(C==null)return C;if(!pn(C))return h(C,L);for(var D=C.length,V=g?D:-1,W=vt(C);(g?V--:++V<D)&&L(W[V],V,W)!==!1;);return C}}function bg(h){return function(g,C,L){for(var D=-1,V=vt(g),W=L(g),K=W.length;K--;){var Q=W[h?K:++D];if(C(V[Q],Q,V)===!1)break}return g}}function oE(h,g,C){var L=g&b,D=So(h);function V(){var W=this&&this!==Kt&&this instanceof V?D:h;return W.apply(L?C:this,arguments)}return V}function Sg(h){return function(g){g=ft(g);var C=ys(g)?ir(g):t,L=C?C[0]:g.charAt(0),D=C?gi(C,1).join(""):g.slice(1);return L[h]()+D}}function As(h){return function(g){return Yc(yv(wv(g).replace(X_,"")),h,"")}}function So(h){return function(){var g=arguments;switch(g.length){case 0:return new h;case 1:return new h(g[0]);case 2:return new h(g[0],g[1]);case 3:return new h(g[0],g[1],g[2]);case 4:return new h(g[0],g[1],g[2],g[3]);case 5:return new h(g[0],g[1],g[2],g[3],g[4]);case 6:return new h(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new h(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var C=ks(h.prototype),L=h.apply(C,g);return At(L)?L:C}}function aE(h,g,C){var L=So(h);function D(){for(var V=arguments.length,W=se(V),K=V,Q=Ts(D);K--;)W[K]=arguments[K];var ce=V<3&&W[0]!==Q&&W[V-1]!==Q?[]:hi(W,Q);if(V-=ce.length,V<C)return xg(h,g,vl,D.placeholder,t,W,ce,t,t,C-V);var he=this&&this!==Kt&&this instanceof D?L:h;return En(he,this,W)}return D}function _g(h){return function(g,C,L){var D=vt(g);if(!pn(g)){var V=Re(C,3);g=Gt(g),C=function(K){return V(D[K],K,D)}}var W=h(g,C,L);return W>-1?D[V?g[W]:W]:t}}function Cg(h){return Pr(function(g){var C=g.length,L=C,D=Wn.prototype.thru;for(h&&g.reverse();L--;){var V=g[L];if(typeof V!="function")throw new Un(d);if(D&&!W&&Sl(V)=="wrapper")var W=new Wn([],!0)}for(L=W?L:C;++L<C;){V=g[L];var K=Sl(V),Q=K=="wrapper"?Ah(V):t;Q&&Lh(Q[0])&&Q[1]==(M|$|S|A)&&!Q[4].length&&Q[9]==1?W=W[Sl(Q[0])].apply(W,Q[3]):W=V.length==1&&Lh(V)?W[K]():W.thru(V)}return function(){var ce=arguments,he=ce[0];if(W&&ce.length==1&&He(he))return W.plant(he).value();for(var de=0,Ee=C?g[de].apply(this,ce):he;++de<C;)Ee=g[de].call(this,Ee);return Ee}})}function vl(h,g,C,L,D,V,W,K,Q,ce){var he=g&M,de=g&b,Ee=g&_,Le=g&($|x),De=g&R,Je=Ee?t:So(h);function Pe(){for(var Ze=arguments.length,rt=se(Ze),Tn=Ze;Tn--;)rt[Tn]=arguments[Tn];if(Le)var cn=Ts(Pe),$n=y1(rt,cn);if(L&&(rt=vg(rt,L,D,Le)),V&&(rt=wg(rt,V,W,Le)),Ze-=$n,Le&&Ze<ce){var Dt=hi(rt,cn);return xg(h,g,vl,Pe.placeholder,C,rt,Dt,K,Q,ce-Ze)}var ar=de?C:this,Ur=Ee?ar[h]:h;return Ze=rt.length,K?rt=AE(rt,K):De&&Ze>1&&rt.reverse(),he&&Q<Ze&&(rt.length=Q),this&&this!==Kt&&this instanceof Pe&&(Ur=Je||So(Ur)),Ur.apply(ar,rt)}return Pe}function Eg(h,g){return function(C,L){return IC(C,h,g(L),{})}}function wl(h,g){return function(C,L){var D;if(C===t&&L===t)return g;if(C!==t&&(D=C),L!==t){if(D===t)return L;typeof C=="string"||typeof L=="string"?(C=xn(C),L=xn(L)):(C=ug(C),L=ug(L)),D=h(C,L)}return D}}function Ch(h){return Pr(function(g){return g=Et(g,kn(Re())),Xe(function(C){var L=this;return h(g,function(D){return En(D,L,C)})})})}function yl(h,g){g=g===t?" ":xn(g);var C=g.length;if(C<2)return C?gh(g,h):g;var L=gh(g,sl(h/bs(g)));return ys(g)?gi(ir(L),0,h).join(""):L.slice(0,h)}function lE(h,g,C,L){var D=g&b,V=So(h);function W(){for(var K=-1,Q=arguments.length,ce=-1,he=L.length,de=se(he+Q),Ee=this&&this!==Kt&&this instanceof W?V:h;++ce<he;)de[ce]=L[ce];for(;Q--;)de[ce++]=arguments[++K];return En(Ee,D?C:this,de)}return W}function kg(h){return function(g,C,L){return L&&typeof L!="number"&&un(g,C,L)&&(C=L=t),g=Vr(g),C===t?(C=g,g=0):C=Vr(C),L=L===t?g<C?1:-1:Vr(L),YC(g,C,L,h)}}function bl(h){return function(g,C){return typeof g=="string"&&typeof C=="string"||(g=Gn(g),C=Gn(C)),h(g,C)}}function xg(h,g,C,L,D,V,W,K,Q,ce){var he=g&$,de=he?W:t,Ee=he?t:W,Le=he?V:t,De=he?t:V;g|=he?S:T,g&=~(he?T:S),g&E||(g&=~(b|_));var Je=[h,g,D,Le,de,De,Ee,K,Q,ce],Pe=C.apply(t,Je);return Lh(h)&&Bg(Pe,Je),Pe.placeholder=L,Fg(Pe,h,g)}function Eh(h){var g=Vt[h];return function(C,L){if(C=Gn(C),L=L==null?0:en(je(L),292),L&&Fm(C)){var D=(ft(C)+"e").split("e"),V=g(D[0]+"e"+(+D[1]+L));return D=(ft(V)+"e").split("e"),+(D[0]+"e"+(+D[1]-L))}return g(C)}}var uE=Cs&&1/Ka(new Cs([,-0]))[1]==z?function(h){return new Cs(h)}:Gh;function Ag(h){return function(g){var C=tn(g);return C==U?eh(g):C==ae?x1(g):w1(g,h(g))}}function Dr(h,g,C,L,D,V,W,K){var Q=g&_;if(!Q&&typeof h!="function")throw new Un(d);var ce=L?L.length:0;if(ce||(g&=~(S|T),L=D=t),W=W===t?W:Ut(je(W),0),K=K===t?K:je(K),ce-=D?D.length:0,g&T){var he=L,de=D;L=D=t}var Ee=Q?t:Ah(h),Le=[h,g,C,L,D,he,de,V,W,K];if(Ee&&EE(Le,Ee),h=Le[0],g=Le[1],C=Le[2],L=Le[3],D=Le[4],K=Le[9]=Le[9]===t?Q?0:h.length:Ut(Le[9]-ce,0),!K&&g&($|x)&&(g&=~($|x)),!g||g==b)var De=oE(h,g,C);else g==$||g==x?De=aE(h,g,K):(g==S||g==(b|S))&&!D.length?De=lE(h,g,C,L):De=vl.apply(t,Le);var Je=Ee?ag:Bg;return Fg(Je(De,Le),h,g)}function Tg(h,g,C,L){return h===t||or(h,_s[C])&&!dt.call(L,C)?g:h}function $g(h,g,C,L,D,V){return At(h)&&At(g)&&(V.set(g,h),dl(h,g,t,$g,V),V.delete(g)),h}function cE(h){return Eo(h)?t:h}function Og(h,g,C,L,D,V){var W=C&v,K=h.length,Q=g.length;if(K!=Q&&!(W&&Q>K))return!1;var ce=V.get(h),he=V.get(g);if(ce&&he)return ce==g&&he==h;var de=-1,Ee=!0,Le=C&w?new Fi:t;for(V.set(h,g),V.set(g,h);++de<K;){var De=h[de],Je=g[de];if(L)var Pe=W?L(Je,De,de,g,h,V):L(De,Je,de,h,g,V);if(Pe!==t){if(Pe)continue;Ee=!1;break}if(Le){if(!Jc(g,function(Ze,rt){if(!uo(Le,rt)&&(De===Ze||D(De,Ze,C,L,V)))return Le.push(rt)})){Ee=!1;break}}else if(!(De===Je||D(De,Je,C,L,V))){Ee=!1;break}}return V.delete(h),V.delete(g),Ee}function hE(h,g,C,L,D,V,W){switch(C){case et:if(h.byteLength!=g.byteLength||h.byteOffset!=g.byteOffset)return!1;h=h.buffer,g=g.buffer;case ot:return!(h.byteLength!=g.byteLength||!V(new tl(h),new tl(g)));case G:case pe:case te:return or(+h,+g);case be:return h.name==g.name&&h.message==g.message;case gt:case ye:return h==g+"";case U:var K=eh;case ae:var Q=L&v;if(K||(K=Ka),h.size!=g.size&&!Q)return!1;var ce=W.get(h);if(ce)return ce==g;L|=w,W.set(h,g);var he=Og(K(h),K(g),L,D,V,W);return W.delete(h),he;case ee:if(mo)return mo.call(h)==mo.call(g)}return!1}function fE(h,g,C,L,D,V){var W=C&v,K=kh(h),Q=K.length,ce=kh(g),he=ce.length;if(Q!=he&&!W)return!1;for(var de=Q;de--;){var Ee=K[de];if(!(W?Ee in g:dt.call(g,Ee)))return!1}var Le=V.get(h),De=V.get(g);if(Le&&De)return Le==g&&De==h;var Je=!0;V.set(h,g),V.set(g,h);for(var Pe=W;++de<Q;){Ee=K[de];var Ze=h[Ee],rt=g[Ee];if(L)var Tn=W?L(rt,Ze,Ee,g,h,V):L(Ze,rt,Ee,h,g,V);if(!(Tn===t?Ze===rt||D(Ze,rt,C,L,V):Tn)){Je=!1;break}Pe||(Pe=Ee=="constructor")}if(Je&&!Pe){var cn=h.constructor,$n=g.constructor;cn!=$n&&"constructor"in h&&"constructor"in g&&!(typeof cn=="function"&&cn instanceof cn&&typeof $n=="function"&&$n instanceof $n)&&(Je=!1)}return V.delete(h),V.delete(g),Je}function Pr(h){return Rh(Dg(h,t,jg),h+"")}function kh(h){return Xm(h,Gt,$h)}function xh(h){return Xm(h,mn,Lg)}var Ah=al?function(h){return al.get(h)}:Gh;function Sl(h){for(var g=h.name+"",C=Es[g],L=dt.call(Es,g)?C.length:0;L--;){var D=C[L],V=D.func;if(V==null||V==h)return D.name}return g}function Ts(h){var g=dt.call(F,"placeholder")?F:h;return g.placeholder}function Re(){var h=F.iteratee||zh;return h=h===zh?Qm:h,arguments.length?h(arguments[0],arguments[1]):h}function _l(h,g){var C=h.__data__;return bE(g)?C[typeof g=="string"?"string":"hash"]:C.map}function Th(h){for(var g=Gt(h),C=g.length;C--;){var L=g[C],D=h[L];g[C]=[L,D,Ng(D)]}return g}function Wi(h,g){var C=C1(h,g);return Zm(C)?C:t}function dE(h){var g=dt.call(h,Pi),C=h[Pi];try{h[Pi]=t;var L=!0}catch{}var D=Qa.call(h);return L&&(g?h[Pi]=C:delete h[Pi]),D}var $h=nh?function(h){return h==null?[]:(h=vt(h),ui(nh(h),function(g){return Pm.call(h,g)}))}:Yh,Lg=nh?function(h){for(var g=[];h;)ci(g,$h(h)),h=nl(h);return g}:Yh,tn=ln;(rh&&tn(new rh(new ArrayBuffer(1)))!=et||ho&&tn(new ho)!=U||ih&&tn(ih.resolve())!=Ne||Cs&&tn(new Cs)!=ae||fo&&tn(new fo)!=xe)&&(tn=function(h){var g=ln(h),C=g==ke?h.constructor:t,L=C?Hi(C):"";if(L)switch(L){case K1:return et;case X1:return U;case q1:return Ne;case Z1:return ae;case Q1:return xe}return g});function pE(h,g,C){for(var L=-1,D=C.length;++L<D;){var V=C[L],W=V.size;switch(V.type){case"drop":h+=W;break;case"dropRight":g-=W;break;case"take":g=en(g,h+W);break;case"takeRight":h=Ut(h,g-W);break}}return{start:h,end:g}}function mE(h){var g=h.match(S_);return g?g[1].split(__):[]}function Mg(h,g,C){g=mi(g,h);for(var L=-1,D=g.length,V=!1;++L<D;){var W=yr(g[L]);if(!(V=h!=null&&C(h,W)))break;h=h[W]}return V||++L!=D?V:(D=h==null?0:h.length,!!D&&$l(D)&&Br(W,D)&&(He(h)||zi(h)))}function gE(h){var g=h.length,C=new h.constructor(g);return g&&typeof h[0]=="string"&&dt.call(h,"index")&&(C.index=h.index,C.input=h.input),C}function Rg(h){return typeof h.constructor=="function"&&!_o(h)?ks(nl(h)):{}}function vE(h,g,C){var L=h.constructor;switch(g){case ot:return _h(h);case G:case pe:return new L(+h);case et:return eE(h,C);case tt:case Ke:case Qt:case rr:case gs:case Rc:case Nc:case Ic:case Dc:return mg(h,C);case U:return new L;case te:case ye:return new L(h);case gt:return tE(h);case ae:return new L;case ee:return nE(h)}}function wE(h,g){var C=g.length;if(!C)return h;var L=C-1;return g[L]=(C>1?"& ":"")+g[L],g=g.join(C>2?", ":" "),h.replace(b_,`{
|
|
1111
|
-
/* [wrapped with `+g+`] */
|
|
1112
|
-
`)}function yE(h){return He(h)||zi(h)||!!(Bm&&h&&h[Bm])}function Br(h,g){var C=typeof h;return g=g??j,!!g&&(C=="number"||C!="symbol"&&L_.test(h))&&h>-1&&h%1==0&&h<g}function un(h,g,C){if(!At(C))return!1;var L=typeof g;return(L=="number"?pn(C)&&Br(g,C.length):L=="string"&&g in C)?or(C[g],h):!1}function Oh(h,g){if(He(h))return!1;var C=typeof h;return C=="number"||C=="symbol"||C=="boolean"||h==null||An(h)?!0:g_.test(h)||!m_.test(h)||g!=null&&h in vt(g)}function bE(h){var g=typeof h;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?h!=="__proto__":h===null}function Lh(h){var g=Sl(h),C=F[g];if(typeof C!="function"||!(g in nt.prototype))return!1;if(h===C)return!0;var L=Ah(C);return!!L&&h===L[0]}function SE(h){return!!Nm&&Nm in h}var _E=qa?Fr:Jh;function _o(h){var g=h&&h.constructor,C=typeof g=="function"&&g.prototype||_s;return h===C}function Ng(h){return h===h&&!At(h)}function Ig(h,g){return function(C){return C==null?!1:C[h]===g&&(g!==t||h in vt(C))}}function CE(h){var g=Al(h,function(L){return C.size===m&&C.clear(),L}),C=g.cache;return g}function EE(h,g){var C=h[1],L=g[1],D=C|L,V=D<(b|_|M),W=L==M&&C==$||L==M&&C==A&&h[7].length<=g[8]||L==(M|A)&&g[7].length<=g[8]&&C==$;if(!(V||W))return h;L&b&&(h[2]=g[2],D|=C&b?0:E);var K=g[3];if(K){var Q=h[3];h[3]=Q?vg(Q,K,g[4]):K,h[4]=Q?hi(h[3],a):g[4]}return K=g[5],K&&(Q=h[5],h[5]=Q?wg(Q,K,g[6]):K,h[6]=Q?hi(h[5],a):g[6]),K=g[7],K&&(h[7]=K),L&M&&(h[8]=h[8]==null?g[8]:en(h[8],g[8])),h[9]==null&&(h[9]=g[9]),h[0]=g[0],h[1]=D,h}function kE(h){var g=[];if(h!=null)for(var C in vt(h))g.push(C);return g}function xE(h){return Qa.call(h)}function Dg(h,g,C){return g=Ut(g===t?h.length-1:g,0),function(){for(var L=arguments,D=-1,V=Ut(L.length-g,0),W=se(V);++D<V;)W[D]=L[g+D];D=-1;for(var K=se(g+1);++D<g;)K[D]=L[D];return K[g]=C(W),En(h,this,K)}}function Pg(h,g){return g.length<2?h:Ui(h,zn(g,0,-1))}function AE(h,g){for(var C=h.length,L=en(g.length,C),D=dn(h);L--;){var V=g[L];h[L]=Br(V,C)?D[V]:t}return h}function Mh(h,g){if(!(g==="constructor"&&typeof h[g]=="function")&&g!="__proto__")return h[g]}var Bg=Vg(ag),Co=W1||function(h,g){return Kt.setTimeout(h,g)},Rh=Vg(XC);function Fg(h,g,C){var L=g+"";return Rh(h,wE(L,TE(mE(L),C)))}function Vg(h){var g=0,C=0;return function(){var L=G1(),D=N-(L-C);if(C=L,D>0){if(++g>=O)return arguments[0]}else g=0;return h.apply(t,arguments)}}function Cl(h,g){var C=-1,L=h.length,D=L-1;for(g=g===t?L:g;++C<g;){var V=mh(C,D),W=h[V];h[V]=h[C],h[C]=W}return h.length=g,h}var Ug=CE(function(h){var g=[];return h.charCodeAt(0)===46&&g.push(""),h.replace(v_,function(C,L,D,V){g.push(D?V.replace(k_,"$1"):L||C)}),g});function yr(h){if(typeof h=="string"||An(h))return h;var g=h+"";return g=="0"&&1/h==-z?"-0":g}function Hi(h){if(h!=null){try{return Za.call(h)}catch{}try{return h+""}catch{}}return""}function TE(h,g){return Vn(ne,function(C){var L="_."+C[0];g&C[1]&&!Ya(h,L)&&h.push(L)}),h.sort()}function Wg(h){if(h instanceof nt)return h.clone();var g=new Wn(h.__wrapped__,h.__chain__);return g.__actions__=dn(h.__actions__),g.__index__=h.__index__,g.__values__=h.__values__,g}function $E(h,g,C){(C?un(h,g,C):g===t)?g=1:g=Ut(je(g),0);var L=h==null?0:h.length;if(!L||g<1)return[];for(var D=0,V=0,W=se(sl(L/g));D<L;)W[V++]=zn(h,D,D+=g);return W}function OE(h){for(var g=-1,C=h==null?0:h.length,L=0,D=[];++g<C;){var V=h[g];V&&(D[L++]=V)}return D}function LE(){var h=arguments.length;if(!h)return[];for(var g=se(h-1),C=arguments[0],L=h;L--;)g[L-1]=arguments[L];return ci(He(C)?dn(C):[C],Xt(g,1))}var ME=Xe(function(h,g){return It(h)?vo(h,Xt(g,1,It,!0)):[]}),RE=Xe(function(h,g){var C=jn(g);return It(C)&&(C=t),It(h)?vo(h,Xt(g,1,It,!0),Re(C,2)):[]}),NE=Xe(function(h,g){var C=jn(g);return It(C)&&(C=t),It(h)?vo(h,Xt(g,1,It,!0),t,C):[]});function IE(h,g,C){var L=h==null?0:h.length;return L?(g=C||g===t?1:je(g),zn(h,g<0?0:g,L)):[]}function DE(h,g,C){var L=h==null?0:h.length;return L?(g=C||g===t?1:je(g),g=L-g,zn(h,0,g<0?0:g)):[]}function PE(h,g){return h&&h.length?ml(h,Re(g,3),!0,!0):[]}function BE(h,g){return h&&h.length?ml(h,Re(g,3),!0):[]}function FE(h,g,C,L){var D=h==null?0:h.length;return D?(C&&typeof C!="number"&&un(h,g,C)&&(C=0,L=D),LC(h,g,C,L)):[]}function Hg(h,g,C){var L=h==null?0:h.length;if(!L)return-1;var D=C==null?0:je(C);return D<0&&(D=Ut(L+D,0)),Ja(h,Re(g,3),D)}function zg(h,g,C){var L=h==null?0:h.length;if(!L)return-1;var D=L-1;return C!==t&&(D=je(C),D=C<0?Ut(L+D,0):en(D,L-1)),Ja(h,Re(g,3),D,!0)}function jg(h){var g=h==null?0:h.length;return g?Xt(h,1):[]}function VE(h){var g=h==null?0:h.length;return g?Xt(h,z):[]}function UE(h,g){var C=h==null?0:h.length;return C?(g=g===t?1:je(g),Xt(h,g)):[]}function WE(h){for(var g=-1,C=h==null?0:h.length,L={};++g<C;){var D=h[g];L[D[0]]=D[1]}return L}function Gg(h){return h&&h.length?h[0]:t}function HE(h,g,C){var L=h==null?0:h.length;if(!L)return-1;var D=C==null?0:je(C);return D<0&&(D=Ut(L+D,0)),ws(h,g,D)}function zE(h){var g=h==null?0:h.length;return g?zn(h,0,-1):[]}var jE=Xe(function(h){var g=Et(h,bh);return g.length&&g[0]===h[0]?ch(g):[]}),GE=Xe(function(h){var g=jn(h),C=Et(h,bh);return g===jn(C)?g=t:C.pop(),C.length&&C[0]===h[0]?ch(C,Re(g,2)):[]}),YE=Xe(function(h){var g=jn(h),C=Et(h,bh);return g=typeof g=="function"?g:t,g&&C.pop(),C.length&&C[0]===h[0]?ch(C,t,g):[]});function JE(h,g){return h==null?"":z1.call(h,g)}function jn(h){var g=h==null?0:h.length;return g?h[g-1]:t}function KE(h,g,C){var L=h==null?0:h.length;if(!L)return-1;var D=L;return C!==t&&(D=je(C),D=D<0?Ut(L+D,0):en(D,L-1)),g===g?T1(h,g,D):Ja(h,xm,D,!0)}function XE(h,g){return h&&h.length?rg(h,je(g)):t}var qE=Xe(Yg);function Yg(h,g){return h&&h.length&&g&&g.length?ph(h,g):h}function ZE(h,g,C){return h&&h.length&&g&&g.length?ph(h,g,Re(C,2)):h}function QE(h,g,C){return h&&h.length&&g&&g.length?ph(h,g,t,C):h}var ek=Pr(function(h,g){var C=h==null?0:h.length,L=oh(h,g);return og(h,Et(g,function(D){return Br(D,C)?+D:D}).sort(gg)),L});function tk(h,g){var C=[];if(!(h&&h.length))return C;var L=-1,D=[],V=h.length;for(g=Re(g,3);++L<V;){var W=h[L];g(W,L,h)&&(C.push(W),D.push(L))}return og(h,D),C}function Nh(h){return h==null?h:J1.call(h)}function nk(h,g,C){var L=h==null?0:h.length;return L?(C&&typeof C!="number"&&un(h,g,C)?(g=0,C=L):(g=g==null?0:je(g),C=C===t?L:je(C)),zn(h,g,C)):[]}function rk(h,g){return pl(h,g)}function ik(h,g,C){return vh(h,g,Re(C,2))}function sk(h,g){var C=h==null?0:h.length;if(C){var L=pl(h,g);if(L<C&&or(h[L],g))return L}return-1}function ok(h,g){return pl(h,g,!0)}function ak(h,g,C){return vh(h,g,Re(C,2),!0)}function lk(h,g){var C=h==null?0:h.length;if(C){var L=pl(h,g,!0)-1;if(or(h[L],g))return L}return-1}function uk(h){return h&&h.length?lg(h):[]}function ck(h,g){return h&&h.length?lg(h,Re(g,2)):[]}function hk(h){var g=h==null?0:h.length;return g?zn(h,1,g):[]}function fk(h,g,C){return h&&h.length?(g=C||g===t?1:je(g),zn(h,0,g<0?0:g)):[]}function dk(h,g,C){var L=h==null?0:h.length;return L?(g=C||g===t?1:je(g),g=L-g,zn(h,g<0?0:g,L)):[]}function pk(h,g){return h&&h.length?ml(h,Re(g,3),!1,!0):[]}function mk(h,g){return h&&h.length?ml(h,Re(g,3)):[]}var gk=Xe(function(h){return pi(Xt(h,1,It,!0))}),vk=Xe(function(h){var g=jn(h);return It(g)&&(g=t),pi(Xt(h,1,It,!0),Re(g,2))}),wk=Xe(function(h){var g=jn(h);return g=typeof g=="function"?g:t,pi(Xt(h,1,It,!0),t,g)});function yk(h){return h&&h.length?pi(h):[]}function bk(h,g){return h&&h.length?pi(h,Re(g,2)):[]}function Sk(h,g){return g=typeof g=="function"?g:t,h&&h.length?pi(h,t,g):[]}function Ih(h){if(!(h&&h.length))return[];var g=0;return h=ui(h,function(C){if(It(C))return g=Ut(C.length,g),!0}),Zc(g,function(C){return Et(h,Kc(C))})}function Jg(h,g){if(!(h&&h.length))return[];var C=Ih(h);return g==null?C:Et(C,function(L){return En(g,t,L)})}var _k=Xe(function(h,g){return It(h)?vo(h,g):[]}),Ck=Xe(function(h){return yh(ui(h,It))}),Ek=Xe(function(h){var g=jn(h);return It(g)&&(g=t),yh(ui(h,It),Re(g,2))}),kk=Xe(function(h){var g=jn(h);return g=typeof g=="function"?g:t,yh(ui(h,It),t,g)}),xk=Xe(Ih);function Ak(h,g){return fg(h||[],g||[],go)}function Tk(h,g){return fg(h||[],g||[],bo)}var $k=Xe(function(h){var g=h.length,C=g>1?h[g-1]:t;return C=typeof C=="function"?(h.pop(),C):t,Jg(h,C)});function Kg(h){var g=F(h);return g.__chain__=!0,g}function Ok(h,g){return g(h),h}function El(h,g){return g(h)}var Lk=Pr(function(h){var g=h.length,C=g?h[0]:0,L=this.__wrapped__,D=function(V){return oh(V,h)};return g>1||this.__actions__.length||!(L instanceof nt)||!Br(C)?this.thru(D):(L=L.slice(C,+C+(g?1:0)),L.__actions__.push({func:El,args:[D],thisArg:t}),new Wn(L,this.__chain__).thru(function(V){return g&&!V.length&&V.push(t),V}))});function Mk(){return Kg(this)}function Rk(){return new Wn(this.value(),this.__chain__)}function Nk(){this.__values__===t&&(this.__values__=uv(this.value()));var h=this.__index__>=this.__values__.length,g=h?t:this.__values__[this.__index__++];return{done:h,value:g}}function Ik(){return this}function Dk(h){for(var g,C=this;C instanceof ul;){var L=Wg(C);L.__index__=0,L.__values__=t,g?D.__wrapped__=L:g=L;var D=L;C=C.__wrapped__}return D.__wrapped__=h,g}function Pk(){var h=this.__wrapped__;if(h instanceof nt){var g=h;return this.__actions__.length&&(g=new nt(this)),g=g.reverse(),g.__actions__.push({func:El,args:[Nh],thisArg:t}),new Wn(g,this.__chain__)}return this.thru(Nh)}function Bk(){return hg(this.__wrapped__,this.__actions__)}var Fk=gl(function(h,g,C){dt.call(h,C)?++h[C]:Ir(h,C,1)});function Vk(h,g,C){var L=He(h)?Em:OC;return C&&un(h,g,C)&&(g=t),L(h,Re(g,3))}function Uk(h,g){var C=He(h)?ui:Jm;return C(h,Re(g,3))}var Wk=_g(Hg),Hk=_g(zg);function zk(h,g){return Xt(kl(h,g),1)}function jk(h,g){return Xt(kl(h,g),z)}function Gk(h,g,C){return C=C===t?1:je(C),Xt(kl(h,g),C)}function Xg(h,g){var C=He(h)?Vn:di;return C(h,Re(g,3))}function qg(h,g){var C=He(h)?h1:Ym;return C(h,Re(g,3))}var Yk=gl(function(h,g,C){dt.call(h,C)?h[C].push(g):Ir(h,C,[g])});function Jk(h,g,C,L){h=pn(h)?h:Os(h),C=C&&!L?je(C):0;var D=h.length;return C<0&&(C=Ut(D+C,0)),Ol(h)?C<=D&&h.indexOf(g,C)>-1:!!D&&ws(h,g,C)>-1}var Kk=Xe(function(h,g,C){var L=-1,D=typeof g=="function",V=pn(h)?se(h.length):[];return di(h,function(W){V[++L]=D?En(g,W,C):wo(W,g,C)}),V}),Xk=gl(function(h,g,C){Ir(h,C,g)});function kl(h,g){var C=He(h)?Et:eg;return C(h,Re(g,3))}function qk(h,g,C,L){return h==null?[]:(He(g)||(g=g==null?[]:[g]),C=L?t:C,He(C)||(C=C==null?[]:[C]),ig(h,g,C))}var Zk=gl(function(h,g,C){h[C?0:1].push(g)},function(){return[[],[]]});function Qk(h,g,C){var L=He(h)?Yc:Tm,D=arguments.length<3;return L(h,Re(g,4),C,D,di)}function ex(h,g,C){var L=He(h)?f1:Tm,D=arguments.length<3;return L(h,Re(g,4),C,D,Ym)}function tx(h,g){var C=He(h)?ui:Jm;return C(h,Tl(Re(g,3)))}function nx(h){var g=He(h)?Hm:JC;return g(h)}function rx(h,g,C){(C?un(h,g,C):g===t)?g=1:g=je(g);var L=He(h)?kC:KC;return L(h,g)}function ix(h){var g=He(h)?xC:qC;return g(h)}function sx(h){if(h==null)return 0;if(pn(h))return Ol(h)?bs(h):h.length;var g=tn(h);return g==U||g==ae?h.size:fh(h).length}function ox(h,g,C){var L=He(h)?Jc:ZC;return C&&un(h,g,C)&&(g=t),L(h,Re(g,3))}var ax=Xe(function(h,g){if(h==null)return[];var C=g.length;return C>1&&un(h,g[0],g[1])?g=[]:C>2&&un(g[0],g[1],g[2])&&(g=[g[0]]),ig(h,Xt(g,1),[])}),xl=U1||function(){return Kt.Date.now()};function lx(h,g){if(typeof g!="function")throw new Un(d);return h=je(h),function(){if(--h<1)return g.apply(this,arguments)}}function Zg(h,g,C){return g=C?t:g,g=h&&g==null?h.length:g,Dr(h,M,t,t,t,t,g)}function Qg(h,g){var C;if(typeof g!="function")throw new Un(d);return h=je(h),function(){return--h>0&&(C=g.apply(this,arguments)),h<=1&&(g=t),C}}var Dh=Xe(function(h,g,C){var L=b;if(C.length){var D=hi(C,Ts(Dh));L|=S}return Dr(h,L,g,C,D)}),ev=Xe(function(h,g,C){var L=b|_;if(C.length){var D=hi(C,Ts(ev));L|=S}return Dr(g,L,h,C,D)});function tv(h,g,C){g=C?t:g;var L=Dr(h,$,t,t,t,t,t,g);return L.placeholder=tv.placeholder,L}function nv(h,g,C){g=C?t:g;var L=Dr(h,x,t,t,t,t,t,g);return L.placeholder=nv.placeholder,L}function rv(h,g,C){var L,D,V,W,K,Q,ce=0,he=!1,de=!1,Ee=!0;if(typeof h!="function")throw new Un(d);g=Gn(g)||0,At(C)&&(he=!!C.leading,de="maxWait"in C,V=de?Ut(Gn(C.maxWait)||0,g):V,Ee="trailing"in C?!!C.trailing:Ee);function Le(Dt){var ar=L,Ur=D;return L=D=t,ce=Dt,W=h.apply(Ur,ar),W}function De(Dt){return ce=Dt,K=Co(Ze,g),he?Le(Dt):W}function Je(Dt){var ar=Dt-Q,Ur=Dt-ce,_v=g-ar;return de?en(_v,V-Ur):_v}function Pe(Dt){var ar=Dt-Q,Ur=Dt-ce;return Q===t||ar>=g||ar<0||de&&Ur>=V}function Ze(){var Dt=xl();if(Pe(Dt))return rt(Dt);K=Co(Ze,Je(Dt))}function rt(Dt){return K=t,Ee&&L?Le(Dt):(L=D=t,W)}function Tn(){K!==t&&dg(K),ce=0,L=Q=D=K=t}function cn(){return K===t?W:rt(xl())}function $n(){var Dt=xl(),ar=Pe(Dt);if(L=arguments,D=this,Q=Dt,ar){if(K===t)return De(Q);if(de)return dg(K),K=Co(Ze,g),Le(Q)}return K===t&&(K=Co(Ze,g)),W}return $n.cancel=Tn,$n.flush=cn,$n}var ux=Xe(function(h,g){return Gm(h,1,g)}),cx=Xe(function(h,g,C){return Gm(h,Gn(g)||0,C)});function hx(h){return Dr(h,R)}function Al(h,g){if(typeof h!="function"||g!=null&&typeof g!="function")throw new Un(d);var C=function(){var L=arguments,D=g?g.apply(this,L):L[0],V=C.cache;if(V.has(D))return V.get(D);var W=h.apply(this,L);return C.cache=V.set(D,W)||V,W};return C.cache=new(Al.Cache||Nr),C}Al.Cache=Nr;function Tl(h){if(typeof h!="function")throw new Un(d);return function(){var g=arguments;switch(g.length){case 0:return!h.call(this);case 1:return!h.call(this,g[0]);case 2:return!h.call(this,g[0],g[1]);case 3:return!h.call(this,g[0],g[1],g[2])}return!h.apply(this,g)}}function fx(h){return Qg(2,h)}var dx=QC(function(h,g){g=g.length==1&&He(g[0])?Et(g[0],kn(Re())):Et(Xt(g,1),kn(Re()));var C=g.length;return Xe(function(L){for(var D=-1,V=en(L.length,C);++D<V;)L[D]=g[D].call(this,L[D]);return En(h,this,L)})}),Ph=Xe(function(h,g){var C=hi(g,Ts(Ph));return Dr(h,S,t,g,C)}),iv=Xe(function(h,g){var C=hi(g,Ts(iv));return Dr(h,T,t,g,C)}),px=Pr(function(h,g){return Dr(h,A,t,t,t,g)});function mx(h,g){if(typeof h!="function")throw new Un(d);return g=g===t?g:je(g),Xe(h,g)}function gx(h,g){if(typeof h!="function")throw new Un(d);return g=g==null?0:Ut(je(g),0),Xe(function(C){var L=C[g],D=gi(C,0,g);return L&&ci(D,L),En(h,this,D)})}function vx(h,g,C){var L=!0,D=!0;if(typeof h!="function")throw new Un(d);return At(C)&&(L="leading"in C?!!C.leading:L,D="trailing"in C?!!C.trailing:D),rv(h,g,{leading:L,maxWait:g,trailing:D})}function wx(h){return Zg(h,1)}function yx(h,g){return Ph(Sh(g),h)}function bx(){if(!arguments.length)return[];var h=arguments[0];return He(h)?h:[h]}function Sx(h){return Hn(h,p)}function _x(h,g){return g=typeof g=="function"?g:t,Hn(h,p,g)}function Cx(h){return Hn(h,o|p)}function Ex(h,g){return g=typeof g=="function"?g:t,Hn(h,o|p,g)}function kx(h,g){return g==null||jm(h,g,Gt(g))}function or(h,g){return h===g||h!==h&&g!==g}var xx=bl(uh),Ax=bl(function(h,g){return h>=g}),zi=qm(function(){return arguments}())?qm:function(h){return $t(h)&&dt.call(h,"callee")&&!Pm.call(h,"callee")},He=se.isArray,Tx=wm?kn(wm):DC;function pn(h){return h!=null&&$l(h.length)&&!Fr(h)}function It(h){return $t(h)&&pn(h)}function $x(h){return h===!0||h===!1||$t(h)&&ln(h)==G}var vi=H1||Jh,Ox=ym?kn(ym):PC;function Lx(h){return $t(h)&&h.nodeType===1&&!Eo(h)}function Mx(h){if(h==null)return!0;if(pn(h)&&(He(h)||typeof h=="string"||typeof h.splice=="function"||vi(h)||$s(h)||zi(h)))return!h.length;var g=tn(h);if(g==U||g==ae)return!h.size;if(_o(h))return!fh(h).length;for(var C in h)if(dt.call(h,C))return!1;return!0}function Rx(h,g){return yo(h,g)}function Nx(h,g,C){C=typeof C=="function"?C:t;var L=C?C(h,g):t;return L===t?yo(h,g,t,C):!!L}function Bh(h){if(!$t(h))return!1;var g=ln(h);return g==be||g==me||typeof h.message=="string"&&typeof h.name=="string"&&!Eo(h)}function Ix(h){return typeof h=="number"&&Fm(h)}function Fr(h){if(!At(h))return!1;var g=ln(h);return g==$e||g==H||g==we||g==Tt}function sv(h){return typeof h=="number"&&h==je(h)}function $l(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=j}function At(h){var g=typeof h;return h!=null&&(g=="object"||g=="function")}function $t(h){return h!=null&&typeof h=="object"}var ov=bm?kn(bm):FC;function Dx(h,g){return h===g||hh(h,g,Th(g))}function Px(h,g,C){return C=typeof C=="function"?C:t,hh(h,g,Th(g),C)}function Bx(h){return av(h)&&h!=+h}function Fx(h){if(_E(h))throw new We(s);return Zm(h)}function Vx(h){return h===null}function Ux(h){return h==null}function av(h){return typeof h=="number"||$t(h)&&ln(h)==te}function Eo(h){if(!$t(h)||ln(h)!=ke)return!1;var g=nl(h);if(g===null)return!0;var C=dt.call(g,"constructor")&&g.constructor;return typeof C=="function"&&C instanceof C&&Za.call(C)==P1}var Fh=Sm?kn(Sm):VC;function Wx(h){return sv(h)&&h>=-j&&h<=j}var lv=_m?kn(_m):UC;function Ol(h){return typeof h=="string"||!He(h)&&$t(h)&&ln(h)==ye}function An(h){return typeof h=="symbol"||$t(h)&&ln(h)==ee}var $s=Cm?kn(Cm):WC;function Hx(h){return h===t}function zx(h){return $t(h)&&tn(h)==xe}function jx(h){return $t(h)&&ln(h)==Ie}var Gx=bl(dh),Yx=bl(function(h,g){return h<=g});function uv(h){if(!h)return[];if(pn(h))return Ol(h)?ir(h):dn(h);if(co&&h[co])return k1(h[co]());var g=tn(h),C=g==U?eh:g==ae?Ka:Os;return C(h)}function Vr(h){if(!h)return h===0?h:0;if(h=Gn(h),h===z||h===-z){var g=h<0?-1:1;return g*J}return h===h?h:0}function je(h){var g=Vr(h),C=g%1;return g===g?C?g-C:g:0}function cv(h){return h?Vi(je(h),0,re):0}function Gn(h){if(typeof h=="number")return h;if(An(h))return q;if(At(h)){var g=typeof h.valueOf=="function"?h.valueOf():h;h=At(g)?g+"":g}if(typeof h!="string")return h===0?h:+h;h=$m(h);var C=T_.test(h);return C||O_.test(h)?l1(h.slice(2),C?2:8):A_.test(h)?q:+h}function hv(h){return wr(h,mn(h))}function Jx(h){return h?Vi(je(h),-j,j):h===0?h:0}function ft(h){return h==null?"":xn(h)}var Kx=xs(function(h,g){if(_o(g)||pn(g)){wr(g,Gt(g),h);return}for(var C in g)dt.call(g,C)&&go(h,C,g[C])}),fv=xs(function(h,g){wr(g,mn(g),h)}),Ll=xs(function(h,g,C,L){wr(g,mn(g),h,L)}),Xx=xs(function(h,g,C,L){wr(g,Gt(g),h,L)}),qx=Pr(oh);function Zx(h,g){var C=ks(h);return g==null?C:zm(C,g)}var Qx=Xe(function(h,g){h=vt(h);var C=-1,L=g.length,D=L>2?g[2]:t;for(D&&un(g[0],g[1],D)&&(L=1);++C<L;)for(var V=g[C],W=mn(V),K=-1,Q=W.length;++K<Q;){var ce=W[K],he=h[ce];(he===t||or(he,_s[ce])&&!dt.call(h,ce))&&(h[ce]=V[ce])}return h}),eA=Xe(function(h){return h.push(t,$g),En(dv,t,h)});function tA(h,g){return km(h,Re(g,3),vr)}function nA(h,g){return km(h,Re(g,3),lh)}function rA(h,g){return h==null?h:ah(h,Re(g,3),mn)}function iA(h,g){return h==null?h:Km(h,Re(g,3),mn)}function sA(h,g){return h&&vr(h,Re(g,3))}function oA(h,g){return h&&lh(h,Re(g,3))}function aA(h){return h==null?[]:fl(h,Gt(h))}function lA(h){return h==null?[]:fl(h,mn(h))}function Vh(h,g,C){var L=h==null?t:Ui(h,g);return L===t?C:L}function uA(h,g){return h!=null&&Mg(h,g,MC)}function Uh(h,g){return h!=null&&Mg(h,g,RC)}var cA=Eg(function(h,g,C){g!=null&&typeof g.toString!="function"&&(g=Qa.call(g)),h[g]=C},Hh(gn)),hA=Eg(function(h,g,C){g!=null&&typeof g.toString!="function"&&(g=Qa.call(g)),dt.call(h,g)?h[g].push(C):h[g]=[C]},Re),fA=Xe(wo);function Gt(h){return pn(h)?Wm(h):fh(h)}function mn(h){return pn(h)?Wm(h,!0):HC(h)}function dA(h,g){var C={};return g=Re(g,3),vr(h,function(L,D,V){Ir(C,g(L,D,V),L)}),C}function pA(h,g){var C={};return g=Re(g,3),vr(h,function(L,D,V){Ir(C,D,g(L,D,V))}),C}var mA=xs(function(h,g,C){dl(h,g,C)}),dv=xs(function(h,g,C,L){dl(h,g,C,L)}),gA=Pr(function(h,g){var C={};if(h==null)return C;var L=!1;g=Et(g,function(V){return V=mi(V,h),L||(L=V.length>1),V}),wr(h,xh(h),C),L&&(C=Hn(C,o|u|p,cE));for(var D=g.length;D--;)wh(C,g[D]);return C});function vA(h,g){return pv(h,Tl(Re(g)))}var wA=Pr(function(h,g){return h==null?{}:jC(h,g)});function pv(h,g){if(h==null)return{};var C=Et(xh(h),function(L){return[L]});return g=Re(g),sg(h,C,function(L,D){return g(L,D[0])})}function yA(h,g,C){g=mi(g,h);var L=-1,D=g.length;for(D||(D=1,h=t);++L<D;){var V=h==null?t:h[yr(g[L])];V===t&&(L=D,V=C),h=Fr(V)?V.call(h):V}return h}function bA(h,g,C){return h==null?h:bo(h,g,C)}function SA(h,g,C,L){return L=typeof L=="function"?L:t,h==null?h:bo(h,g,C,L)}var mv=Ag(Gt),gv=Ag(mn);function _A(h,g,C){var L=He(h),D=L||vi(h)||$s(h);if(g=Re(g,4),C==null){var V=h&&h.constructor;D?C=L?new V:[]:At(h)?C=Fr(V)?ks(nl(h)):{}:C={}}return(D?Vn:vr)(h,function(W,K,Q){return g(C,W,K,Q)}),C}function CA(h,g){return h==null?!0:wh(h,g)}function EA(h,g,C){return h==null?h:cg(h,g,Sh(C))}function kA(h,g,C,L){return L=typeof L=="function"?L:t,h==null?h:cg(h,g,Sh(C),L)}function Os(h){return h==null?[]:Qc(h,Gt(h))}function xA(h){return h==null?[]:Qc(h,mn(h))}function AA(h,g,C){return C===t&&(C=g,g=t),C!==t&&(C=Gn(C),C=C===C?C:0),g!==t&&(g=Gn(g),g=g===g?g:0),Vi(Gn(h),g,C)}function TA(h,g,C){return g=Vr(g),C===t?(C=g,g=0):C=Vr(C),h=Gn(h),NC(h,g,C)}function $A(h,g,C){if(C&&typeof C!="boolean"&&un(h,g,C)&&(g=C=t),C===t&&(typeof g=="boolean"?(C=g,g=t):typeof h=="boolean"&&(C=h,h=t)),h===t&&g===t?(h=0,g=1):(h=Vr(h),g===t?(g=h,h=0):g=Vr(g)),h>g){var L=h;h=g,g=L}if(C||h%1||g%1){var D=Vm();return en(h+D*(g-h+a1("1e-"+((D+"").length-1))),g)}return mh(h,g)}var OA=As(function(h,g,C){return g=g.toLowerCase(),h+(C?vv(g):g)});function vv(h){return Wh(ft(h).toLowerCase())}function wv(h){return h=ft(h),h&&h.replace(M_,b1).replace(q_,"")}function LA(h,g,C){h=ft(h),g=xn(g);var L=h.length;C=C===t?L:Vi(je(C),0,L);var D=C;return C-=g.length,C>=0&&h.slice(C,D)==g}function MA(h){return h=ft(h),h&&f_.test(h)?h.replace(Kp,S1):h}function RA(h){return h=ft(h),h&&w_.test(h)?h.replace(Pc,"\\$&"):h}var NA=As(function(h,g,C){return h+(C?"-":"")+g.toLowerCase()}),IA=As(function(h,g,C){return h+(C?" ":"")+g.toLowerCase()}),DA=Sg("toLowerCase");function PA(h,g,C){h=ft(h),g=je(g);var L=g?bs(h):0;if(!g||L>=g)return h;var D=(g-L)/2;return yl(ol(D),C)+h+yl(sl(D),C)}function BA(h,g,C){h=ft(h),g=je(g);var L=g?bs(h):0;return g&&L<g?h+yl(g-L,C):h}function FA(h,g,C){h=ft(h),g=je(g);var L=g?bs(h):0;return g&&L<g?yl(g-L,C)+h:h}function VA(h,g,C){return C||g==null?g=0:g&&(g=+g),Y1(ft(h).replace(Bc,""),g||0)}function UA(h,g,C){return(C?un(h,g,C):g===t)?g=1:g=je(g),gh(ft(h),g)}function WA(){var h=arguments,g=ft(h[0]);return h.length<3?g:g.replace(h[1],h[2])}var HA=As(function(h,g,C){return h+(C?"_":"")+g.toLowerCase()});function zA(h,g,C){return C&&typeof C!="number"&&un(h,g,C)&&(g=C=t),C=C===t?re:C>>>0,C?(h=ft(h),h&&(typeof g=="string"||g!=null&&!Fh(g))&&(g=xn(g),!g&&ys(h))?gi(ir(h),0,C):h.split(g,C)):[]}var jA=As(function(h,g,C){return h+(C?" ":"")+Wh(g)});function GA(h,g,C){return h=ft(h),C=C==null?0:Vi(je(C),0,h.length),g=xn(g),h.slice(C,C+g.length)==g}function YA(h,g,C){var L=F.templateSettings;C&&un(h,g,C)&&(g=t),h=ft(h),g=Ll({},g,L,Tg);var D=Ll({},g.imports,L.imports,Tg),V=Gt(D),W=Qc(D,V),K,Q,ce=0,he=g.interpolate||za,de="__p += '",Ee=th((g.escape||za).source+"|"+he.source+"|"+(he===Xp?x_:za).source+"|"+(g.evaluate||za).source+"|$","g"),Le="//# sourceURL="+(dt.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++n1+"]")+`
|
|
1113
|
-
`;h.replace(Ee,function(Pe,Ze,rt,Tn,cn,$n){return rt||(rt=Tn),de+=h.slice(ce,$n).replace(R_,_1),Ze&&(K=!0,de+=`' +
|
|
1114
|
-
__e(`+Ze+`) +
|
|
1115
|
-
'`),cn&&(Q=!0,de+=`';
|
|
1116
|
-
`+cn+`;
|
|
1117
|
-
__p += '`),rt&&(de+=`' +
|
|
1118
|
-
((__t = (`+rt+`)) == null ? '' : __t) +
|
|
1119
|
-
'`),ce=$n+Pe.length,Pe}),de+=`';
|
|
1120
|
-
`;var De=dt.call(g,"variable")&&g.variable;if(!De)de=`with (obj) {
|
|
1121
|
-
`+de+`
|
|
1122
|
-
}
|
|
1123
|
-
`;else if(E_.test(De))throw new We(f);de=(Q?de.replace(l_,""):de).replace(u_,"$1").replace(c_,"$1;"),de="function("+(De||"obj")+`) {
|
|
1124
|
-
`+(De?"":`obj || (obj = {});
|
|
1125
|
-
`)+"var __t, __p = ''"+(K?", __e = _.escape":"")+(Q?`, __j = Array.prototype.join;
|
|
1126
|
-
function print() { __p += __j.call(arguments, '') }
|
|
1127
|
-
`:`;
|
|
1128
|
-
`)+de+`return __p
|
|
1129
|
-
}`;var Je=bv(function(){return ct(V,Le+"return "+de).apply(t,W)});if(Je.source=de,Bh(Je))throw Je;return Je}function JA(h){return ft(h).toLowerCase()}function KA(h){return ft(h).toUpperCase()}function XA(h,g,C){if(h=ft(h),h&&(C||g===t))return $m(h);if(!h||!(g=xn(g)))return h;var L=ir(h),D=ir(g),V=Om(L,D),W=Lm(L,D)+1;return gi(L,V,W).join("")}function qA(h,g,C){if(h=ft(h),h&&(C||g===t))return h.slice(0,Rm(h)+1);if(!h||!(g=xn(g)))return h;var L=ir(h),D=Lm(L,ir(g))+1;return gi(L,0,D).join("")}function ZA(h,g,C){if(h=ft(h),h&&(C||g===t))return h.replace(Bc,"");if(!h||!(g=xn(g)))return h;var L=ir(h),D=Om(L,ir(g));return gi(L,D).join("")}function QA(h,g){var C=y,L=k;if(At(g)){var D="separator"in g?g.separator:D;C="length"in g?je(g.length):C,L="omission"in g?xn(g.omission):L}h=ft(h);var V=h.length;if(ys(h)){var W=ir(h);V=W.length}if(C>=V)return h;var K=C-bs(L);if(K<1)return L;var Q=W?gi(W,0,K).join(""):h.slice(0,K);if(D===t)return Q+L;if(W&&(K+=Q.length-K),Fh(D)){if(h.slice(K).search(D)){var ce,he=Q;for(D.global||(D=th(D.source,ft(qp.exec(D))+"g")),D.lastIndex=0;ce=D.exec(he);)var de=ce.index;Q=Q.slice(0,de===t?K:de)}}else if(h.indexOf(xn(D),K)!=K){var Ee=Q.lastIndexOf(D);Ee>-1&&(Q=Q.slice(0,Ee))}return Q+L}function eT(h){return h=ft(h),h&&h_.test(h)?h.replace(Jp,$1):h}var tT=As(function(h,g,C){return h+(C?" ":"")+g.toUpperCase()}),Wh=Sg("toUpperCase");function yv(h,g,C){return h=ft(h),g=C?t:g,g===t?E1(h)?M1(h):m1(h):h.match(g)||[]}var bv=Xe(function(h,g){try{return En(h,t,g)}catch(C){return Bh(C)?C:new We(C)}}),nT=Pr(function(h,g){return Vn(g,function(C){C=yr(C),Ir(h,C,Dh(h[C],h))}),h});function rT(h){var g=h==null?0:h.length,C=Re();return h=g?Et(h,function(L){if(typeof L[1]!="function")throw new Un(d);return[C(L[0]),L[1]]}):[],Xe(function(L){for(var D=-1;++D<g;){var V=h[D];if(En(V[0],this,L))return En(V[1],this,L)}})}function iT(h){return $C(Hn(h,o))}function Hh(h){return function(){return h}}function sT(h,g){return h==null||h!==h?g:h}var oT=Cg(),aT=Cg(!0);function gn(h){return h}function zh(h){return Qm(typeof h=="function"?h:Hn(h,o))}function lT(h){return tg(Hn(h,o))}function uT(h,g){return ng(h,Hn(g,o))}var cT=Xe(function(h,g){return function(C){return wo(C,h,g)}}),hT=Xe(function(h,g){return function(C){return wo(h,C,g)}});function jh(h,g,C){var L=Gt(g),D=fl(g,L);C==null&&!(At(g)&&(D.length||!L.length))&&(C=g,g=h,h=this,D=fl(g,Gt(g)));var V=!(At(C)&&"chain"in C)||!!C.chain,W=Fr(h);return Vn(D,function(K){var Q=g[K];h[K]=Q,W&&(h.prototype[K]=function(){var ce=this.__chain__;if(V||ce){var he=h(this.__wrapped__),de=he.__actions__=dn(this.__actions__);return de.push({func:Q,args:arguments,thisArg:h}),he.__chain__=ce,he}return Q.apply(h,ci([this.value()],arguments))})}),h}function fT(){return Kt._===this&&(Kt._=B1),this}function Gh(){}function dT(h){return h=je(h),Xe(function(g){return rg(g,h)})}var pT=Ch(Et),mT=Ch(Em),gT=Ch(Jc);function Sv(h){return Oh(h)?Kc(yr(h)):GC(h)}function vT(h){return function(g){return h==null?t:Ui(h,g)}}var wT=kg(),yT=kg(!0);function Yh(){return[]}function Jh(){return!1}function bT(){return{}}function ST(){return""}function _T(){return!0}function CT(h,g){if(h=je(h),h<1||h>j)return[];var C=re,L=en(h,re);g=Re(g),h-=re;for(var D=Zc(L,g);++C<h;)g(C);return D}function ET(h){return He(h)?Et(h,yr):An(h)?[h]:dn(Ug(ft(h)))}function kT(h){var g=++D1;return ft(h)+g}var xT=wl(function(h,g){return h+g},0),AT=Eh("ceil"),TT=wl(function(h,g){return h/g},1),$T=Eh("floor");function OT(h){return h&&h.length?hl(h,gn,uh):t}function LT(h,g){return h&&h.length?hl(h,Re(g,2),uh):t}function MT(h){return Am(h,gn)}function RT(h,g){return Am(h,Re(g,2))}function NT(h){return h&&h.length?hl(h,gn,dh):t}function IT(h,g){return h&&h.length?hl(h,Re(g,2),dh):t}var DT=wl(function(h,g){return h*g},1),PT=Eh("round"),BT=wl(function(h,g){return h-g},0);function FT(h){return h&&h.length?qc(h,gn):0}function VT(h,g){return h&&h.length?qc(h,Re(g,2)):0}return F.after=lx,F.ary=Zg,F.assign=Kx,F.assignIn=fv,F.assignInWith=Ll,F.assignWith=Xx,F.at=qx,F.before=Qg,F.bind=Dh,F.bindAll=nT,F.bindKey=ev,F.castArray=bx,F.chain=Kg,F.chunk=$E,F.compact=OE,F.concat=LE,F.cond=rT,F.conforms=iT,F.constant=Hh,F.countBy=Fk,F.create=Zx,F.curry=tv,F.curryRight=nv,F.debounce=rv,F.defaults=Qx,F.defaultsDeep=eA,F.defer=ux,F.delay=cx,F.difference=ME,F.differenceBy=RE,F.differenceWith=NE,F.drop=IE,F.dropRight=DE,F.dropRightWhile=PE,F.dropWhile=BE,F.fill=FE,F.filter=Uk,F.flatMap=zk,F.flatMapDeep=jk,F.flatMapDepth=Gk,F.flatten=jg,F.flattenDeep=VE,F.flattenDepth=UE,F.flip=hx,F.flow=oT,F.flowRight=aT,F.fromPairs=WE,F.functions=aA,F.functionsIn=lA,F.groupBy=Yk,F.initial=zE,F.intersection=jE,F.intersectionBy=GE,F.intersectionWith=YE,F.invert=cA,F.invertBy=hA,F.invokeMap=Kk,F.iteratee=zh,F.keyBy=Xk,F.keys=Gt,F.keysIn=mn,F.map=kl,F.mapKeys=dA,F.mapValues=pA,F.matches=lT,F.matchesProperty=uT,F.memoize=Al,F.merge=mA,F.mergeWith=dv,F.method=cT,F.methodOf=hT,F.mixin=jh,F.negate=Tl,F.nthArg=dT,F.omit=gA,F.omitBy=vA,F.once=fx,F.orderBy=qk,F.over=pT,F.overArgs=dx,F.overEvery=mT,F.overSome=gT,F.partial=Ph,F.partialRight=iv,F.partition=Zk,F.pick=wA,F.pickBy=pv,F.property=Sv,F.propertyOf=vT,F.pull=qE,F.pullAll=Yg,F.pullAllBy=ZE,F.pullAllWith=QE,F.pullAt=ek,F.range=wT,F.rangeRight=yT,F.rearg=px,F.reject=tx,F.remove=tk,F.rest=mx,F.reverse=Nh,F.sampleSize=rx,F.set=bA,F.setWith=SA,F.shuffle=ix,F.slice=nk,F.sortBy=ax,F.sortedUniq=uk,F.sortedUniqBy=ck,F.split=zA,F.spread=gx,F.tail=hk,F.take=fk,F.takeRight=dk,F.takeRightWhile=pk,F.takeWhile=mk,F.tap=Ok,F.throttle=vx,F.thru=El,F.toArray=uv,F.toPairs=mv,F.toPairsIn=gv,F.toPath=ET,F.toPlainObject=hv,F.transform=_A,F.unary=wx,F.union=gk,F.unionBy=vk,F.unionWith=wk,F.uniq=yk,F.uniqBy=bk,F.uniqWith=Sk,F.unset=CA,F.unzip=Ih,F.unzipWith=Jg,F.update=EA,F.updateWith=kA,F.values=Os,F.valuesIn=xA,F.without=_k,F.words=yv,F.wrap=yx,F.xor=Ck,F.xorBy=Ek,F.xorWith=kk,F.zip=xk,F.zipObject=Ak,F.zipObjectDeep=Tk,F.zipWith=$k,F.entries=mv,F.entriesIn=gv,F.extend=fv,F.extendWith=Ll,jh(F,F),F.add=xT,F.attempt=bv,F.camelCase=OA,F.capitalize=vv,F.ceil=AT,F.clamp=AA,F.clone=Sx,F.cloneDeep=Cx,F.cloneDeepWith=Ex,F.cloneWith=_x,F.conformsTo=kx,F.deburr=wv,F.defaultTo=sT,F.divide=TT,F.endsWith=LA,F.eq=or,F.escape=MA,F.escapeRegExp=RA,F.every=Vk,F.find=Wk,F.findIndex=Hg,F.findKey=tA,F.findLast=Hk,F.findLastIndex=zg,F.findLastKey=nA,F.floor=$T,F.forEach=Xg,F.forEachRight=qg,F.forIn=rA,F.forInRight=iA,F.forOwn=sA,F.forOwnRight=oA,F.get=Vh,F.gt=xx,F.gte=Ax,F.has=uA,F.hasIn=Uh,F.head=Gg,F.identity=gn,F.includes=Jk,F.indexOf=HE,F.inRange=TA,F.invoke=fA,F.isArguments=zi,F.isArray=He,F.isArrayBuffer=Tx,F.isArrayLike=pn,F.isArrayLikeObject=It,F.isBoolean=$x,F.isBuffer=vi,F.isDate=Ox,F.isElement=Lx,F.isEmpty=Mx,F.isEqual=Rx,F.isEqualWith=Nx,F.isError=Bh,F.isFinite=Ix,F.isFunction=Fr,F.isInteger=sv,F.isLength=$l,F.isMap=ov,F.isMatch=Dx,F.isMatchWith=Px,F.isNaN=Bx,F.isNative=Fx,F.isNil=Ux,F.isNull=Vx,F.isNumber=av,F.isObject=At,F.isObjectLike=$t,F.isPlainObject=Eo,F.isRegExp=Fh,F.isSafeInteger=Wx,F.isSet=lv,F.isString=Ol,F.isSymbol=An,F.isTypedArray=$s,F.isUndefined=Hx,F.isWeakMap=zx,F.isWeakSet=jx,F.join=JE,F.kebabCase=NA,F.last=jn,F.lastIndexOf=KE,F.lowerCase=IA,F.lowerFirst=DA,F.lt=Gx,F.lte=Yx,F.max=OT,F.maxBy=LT,F.mean=MT,F.meanBy=RT,F.min=NT,F.minBy=IT,F.stubArray=Yh,F.stubFalse=Jh,F.stubObject=bT,F.stubString=ST,F.stubTrue=_T,F.multiply=DT,F.nth=XE,F.noConflict=fT,F.noop=Gh,F.now=xl,F.pad=PA,F.padEnd=BA,F.padStart=FA,F.parseInt=VA,F.random=$A,F.reduce=Qk,F.reduceRight=ex,F.repeat=UA,F.replace=WA,F.result=yA,F.round=PT,F.runInContext=Z,F.sample=nx,F.size=sx,F.snakeCase=HA,F.some=ox,F.sortedIndex=rk,F.sortedIndexBy=ik,F.sortedIndexOf=sk,F.sortedLastIndex=ok,F.sortedLastIndexBy=ak,F.sortedLastIndexOf=lk,F.startCase=jA,F.startsWith=GA,F.subtract=BT,F.sum=FT,F.sumBy=VT,F.template=YA,F.times=CT,F.toFinite=Vr,F.toInteger=je,F.toLength=cv,F.toLower=JA,F.toNumber=Gn,F.toSafeInteger=Jx,F.toString=ft,F.toUpper=KA,F.trim=XA,F.trimEnd=qA,F.trimStart=ZA,F.truncate=QA,F.unescape=eT,F.uniqueId=kT,F.upperCase=tT,F.upperFirst=Wh,F.each=Xg,F.eachRight=qg,F.first=Gg,jh(F,function(){var h={};return vr(F,function(g,C){dt.call(F.prototype,C)||(h[C]=g)}),h}(),{chain:!1}),F.VERSION=r,Vn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(h){F[h].placeholder=F}),Vn(["drop","take"],function(h,g){nt.prototype[h]=function(C){C=C===t?1:Ut(je(C),0);var L=this.__filtered__&&!g?new nt(this):this.clone();return L.__filtered__?L.__takeCount__=en(C,L.__takeCount__):L.__views__.push({size:en(C,re),type:h+(L.__dir__<0?"Right":"")}),L},nt.prototype[h+"Right"]=function(C){return this.reverse()[h](C).reverse()}}),Vn(["filter","map","takeWhile"],function(h,g){var C=g+1,L=C==I||C==B;nt.prototype[h]=function(D){var V=this.clone();return V.__iteratees__.push({iteratee:Re(D,3),type:C}),V.__filtered__=V.__filtered__||L,V}}),Vn(["head","last"],function(h,g){var C="take"+(g?"Right":"");nt.prototype[h]=function(){return this[C](1).value()[0]}}),Vn(["initial","tail"],function(h,g){var C="drop"+(g?"":"Right");nt.prototype[h]=function(){return this.__filtered__?new nt(this):this[C](1)}}),nt.prototype.compact=function(){return this.filter(gn)},nt.prototype.find=function(h){return this.filter(h).head()},nt.prototype.findLast=function(h){return this.reverse().find(h)},nt.prototype.invokeMap=Xe(function(h,g){return typeof h=="function"?new nt(this):this.map(function(C){return wo(C,h,g)})}),nt.prototype.reject=function(h){return this.filter(Tl(Re(h)))},nt.prototype.slice=function(h,g){h=je(h);var C=this;return C.__filtered__&&(h>0||g<0)?new nt(C):(h<0?C=C.takeRight(-h):h&&(C=C.drop(h)),g!==t&&(g=je(g),C=g<0?C.dropRight(-g):C.take(g-h)),C)},nt.prototype.takeRightWhile=function(h){return this.reverse().takeWhile(h).reverse()},nt.prototype.toArray=function(){return this.take(re)},vr(nt.prototype,function(h,g){var C=/^(?:filter|find|map|reject)|While$/.test(g),L=/^(?:head|last)$/.test(g),D=F[L?"take"+(g=="last"?"Right":""):g],V=L||/^find/.test(g);D&&(F.prototype[g]=function(){var W=this.__wrapped__,K=L?[1]:arguments,Q=W instanceof nt,ce=K[0],he=Q||He(W),de=function(Ze){var rt=D.apply(F,ci([Ze],K));return L&&Ee?rt[0]:rt};he&&C&&typeof ce=="function"&&ce.length!=1&&(Q=he=!1);var Ee=this.__chain__,Le=!!this.__actions__.length,De=V&&!Ee,Je=Q&&!Le;if(!V&&he){W=Je?W:new nt(this);var Pe=h.apply(W,K);return Pe.__actions__.push({func:El,args:[de],thisArg:t}),new Wn(Pe,Ee)}return De&&Je?h.apply(this,K):(Pe=this.thru(de),De?L?Pe.value()[0]:Pe.value():Pe)})}),Vn(["pop","push","shift","sort","splice","unshift"],function(h){var g=Xa[h],C=/^(?:push|sort|unshift)$/.test(h)?"tap":"thru",L=/^(?:pop|shift)$/.test(h);F.prototype[h]=function(){var D=arguments;if(L&&!this.__chain__){var V=this.value();return g.apply(He(V)?V:[],D)}return this[C](function(W){return g.apply(He(W)?W:[],D)})}}),vr(nt.prototype,function(h,g){var C=F[g];if(C){var L=C.name+"";dt.call(Es,L)||(Es[L]=[]),Es[L].push({name:g,func:C})}}),Es[vl(t,_).name]=[{name:"wrapper",func:t}],nt.prototype.clone=eC,nt.prototype.reverse=tC,nt.prototype.value=nC,F.prototype.at=Lk,F.prototype.chain=Mk,F.prototype.commit=Rk,F.prototype.next=Nk,F.prototype.plant=Dk,F.prototype.reverse=Pk,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=Bk,F.prototype.first=F.prototype.head,co&&(F.prototype[co]=Ik),F},Ss=R1();Di?((Di.exports=Ss)._=Ss,zc._=Ss):Kt._=Ss}).call(xo)})(E8,Cu);const ky=Cu,VS=["s","m","h","d","w","M","y"],k8=["second","minute","hour","day","week","month","year"],x8=k8.map(n=>Intl?.NumberFormat(_e.locale(),{style:"unit",unit:n,unitDisplay:"long"})),A8=n=>x8[VS.indexOf(n)];function T8(n){const e=_e.localeData(),t=ky.clone(VS),r=t.pop(),i=(m,a)=>Intl?A8(m).format(a):e.relativeTime(a,!0,a===1?m:m+m,this>0);let s=t.map(m=>({unit:m,value:this.get(m)}));s.push({unit:r,value:this.get(r)>0?this.as(r):0});const d=m=>m.value===0;s=ky.chain(s).dropWhile(d).dropRightWhile(d).value();let l=s.map(m=>i(m.unit,m.value)).reverse().join(" ");return n&&(l=e.pastFuture(this,l)),l}const $8=_e.duration.fn.humanize;_e.duration.fn.humanize=function(...n){return n.includes("precise")?T8.apply(this,n):$8.apply(this,n)};const Eu=mN({legacy:!1,globalInjection:!0,locale:"en",fallbackLocale:"en"});/**
|
|
1130
|
-
* vee-validate v4.7.4
|
|
1131
|
-
* (c) 2023 Abdelrahman Awad
|
|
1132
|
-
* @license MIT
|
|
1133
|
-
*/function xy(n){return typeof n=="function"}const O8=n=>n!==null&&!!n&&typeof n=="object"&&!Array.isArray(n);function Ay(n,e){return n.replace(/(\d:)?{([^}]+)}/g,function(t,r,i){if(!r||!e.params)return i in e?e[i]:e.params&&i in e.params?e.params[i]:`{${i}}`;if(!Array.isArray(e.params))return i in e.params?e.params[i]:`{${i}}`;const s=Number(r.replace(":",""));return s in e.params?e.params[s]:`${r}{${i}}`})}function US(n,e){return Object.keys(e).forEach(t=>{if(O8(e[t])){n[t]||(n[t]={}),US(n[t],e[t]);return}n[t]=e[t]}),n}class L8{constructor(e,t){this.container={},this.locale=e,this.merge(t)}resolve(e){return this.format(this.locale,e)}getLocaleDefault(e,t){var r,i,s,d,f;return((s=(i=(r=this.container[e])===null||r===void 0?void 0:r.fields)===null||i===void 0?void 0:i[t])===null||s===void 0?void 0:s._default)||((f=(d=this.container[e])===null||d===void 0?void 0:d.messages)===null||f===void 0?void 0:f._default)}format(e,t){var r,i,s,d,f,l,m;let a;const{rule:o,form:u,label:p,name:v}=t,w=p||((i=(r=this.container[e])===null||r===void 0?void 0:r.names)===null||i===void 0?void 0:i[v])||v;return o?(a=((f=(d=(s=this.container[e])===null||s===void 0?void 0:s.fields)===null||d===void 0?void 0:d[v])===null||f===void 0?void 0:f[o.name])||((m=(l=this.container[e])===null||l===void 0?void 0:l.messages)===null||m===void 0?void 0:m[o.name]),a||(a=this.getLocaleDefault(e,v)||`${w} is not valid`),xy(a)?a(t):Ay(a,Object.assign(Object.assign({},u),{field:w,params:o.params}))):(a=this.getLocaleDefault(e,v)||`${w} is not valid`,xy(a)?a(t):Ay(a,Object.assign(Object.assign({},u),{field:w})))}merge(e){US(this.container,e)}}let Ps;function M8(n,e){Ps||(Ps=new L8("en",{}));const t=r=>Ps.resolve(r);return typeof n=="string"?(Ps.locale=n,e&&Ps.merge({[n]:e}),t):(Ps.merge(n),t)}const R8="en",N8={_default:"The {field} is not valid",alpha:"The {field} field may only contain alphabetic characters",alpha_num:"The {field} field may only contain alpha-numeric characters",alpha_dash:"The {field} field may contain alpha-numeric characters as well as dashes and underscores",alpha_spaces:"The {field} field may only contain alphabetic characters as well as spaces",between:"The {field} field must be between 0:{min} and 1:{max}",confirmed:"The {field} field confirmation does not match",digits:"The {field} field must be numeric and exactly contain 0:{length} digits",dimensions:"The {field} field must be 0:{width} pixels by 1:{height} pixels",email:"The {field} field must be a valid email",not_one_of:"The {field} field is not a valid value",ext:"The {field} field is not a valid file",image:"The {field} field must be an image",integer:"The {field} field must be an integer",length:"The {field} field must be 0:{length} long",max_value:"The {field} field must be 0:{max} or less",max:"The {field} field may not be greater than 0:{length} characters",mimes:"The {field} field must have a valid file type",min_value:"The {field} field must be 0:{min} or more",min:"The {field} field must be at least 0:{length} characters",numeric:"The {field} field may only contain numeric characters",one_of:"The {field} field is not a valid value",regex:"The {field} field format is invalid",required_if:"The {field} field is required",required:"The {field} field is required",size:"The {field} field size must be less than 0:{size}KB",url:"The {field} field is not a valid URL"},I8={code:R8,messages:N8};/**
|
|
1134
|
-
* vee-validate v4.7.4
|
|
1135
|
-
* (c) 2023 Abdelrahman Awad
|
|
1136
|
-
* @license MIT
|
|
1137
|
-
*/const Wl={en:/^[A-Z]*$/i,cs:/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,da:/^[A-ZÆØÅ]*$/i,de:/^[A-ZÄÖÜß]*$/i,es:/^[A-ZÁÉÍÑÓÚÜ]*$/i,fr:/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,it:/^[A-Z\xC0-\xFF]*$/i,lt:/^[A-ZĄČĘĖĮŠŲŪŽ]*$/i,nl:/^[A-ZÉËÏÓÖÜ]*$/i,hu:/^[A-ZÁÉÍÓÖŐÚÜŰ]*$/i,pl:/^[A-ZĄĆĘŚŁŃÓŻŹ]*$/i,pt:/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,ru:/^[А-ЯЁ]*$/i,sk:/^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,sr:/^[A-ZČĆŽŠĐ]*$/i,sv:/^[A-ZÅÄÖ]*$/i,tr:/^[A-ZÇĞİıÖŞÜ]*$/i,uk:/^[А-ЩЬЮЯЄІЇҐ]*$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,az:/^[A-ZÇƏĞİıÖŞÜ]*$/i,ug:/^[A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ]*$/i},Hl={en:/^[A-Z\s]*$/i,cs:/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ\s]*$/i,da:/^[A-ZÆØÅ\s]*$/i,de:/^[A-ZÄÖÜß\s]*$/i,es:/^[A-ZÁÉÍÑÓÚÜ\s]*$/i,fr:/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ\s]*$/i,it:/^[A-Z\xC0-\xFF\s]*$/i,lt:/^[A-ZĄČĘĖĮŠŲŪŽ\s]*$/i,nl:/^[A-ZÉËÏÓÖÜ\s]*$/i,hu:/^[A-ZÁÉÍÓÖŐÚÜŰ\s]*$/i,pl:/^[A-ZĄĆĘŚŁŃÓŻŹ\s]*$/i,pt:/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ\s]*$/i,ru:/^[А-ЯЁ\s]*$/i,sk:/^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ\s]*$/i,sr:/^[A-ZČĆŽŠĐ\s]*$/i,sv:/^[A-ZÅÄÖ\s]*$/i,tr:/^[A-ZÇĞİıÖŞÜ\s]*$/i,uk:/^[А-ЩЬЮЯЄІЇҐ\s]*$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ\s]*$/,az:/^[A-ZÇƏĞİıÖŞÜ\s]*$/i,ug:/^[A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ\s]*$/i},zl={en:/^[0-9A-Z]*$/i,cs:/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,da:/^[0-9A-ZÆØÅ]$/i,de:/^[0-9A-ZÄÖÜß]*$/i,es:/^[0-9A-ZÁÉÍÑÓÚÜ]*$/i,fr:/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,it:/^[0-9A-Z\xC0-\xFF]*$/i,lt:/^[0-9A-ZĄČĘĖĮŠŲŪŽ]*$/i,hu:/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]*$/i,nl:/^[0-9A-ZÉËÏÓÖÜ]*$/i,pl:/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]*$/i,pt:/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,ru:/^[0-9А-ЯЁ]*$/i,sk:/^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,sr:/^[0-9A-ZČĆŽŠĐ]*$/i,sv:/^[0-9A-ZÅÄÖ]*$/i,tr:/^[0-9A-ZÇĞİıÖŞÜ]*$/i,uk:/^[0-9А-ЩЬЮЯЄІЇҐ]*$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,az:/^[0-9A-ZÇƏĞİıÖŞÜ]*$/i,ug:/^[0-9A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ]*$/i},jl={en:/^[0-9A-Z_-]*$/i,cs:/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ_-]*$/i,da:/^[0-9A-ZÆØÅ_-]*$/i,de:/^[0-9A-ZÄÖÜß_-]*$/i,es:/^[0-9A-ZÁÉÍÑÓÚÜ_-]*$/i,fr:/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ_-]*$/i,it:/^[0-9A-Z\xC0-\xFF_-]*$/i,lt:/^[0-9A-ZĄČĘĖĮŠŲŪŽ_-]*$/i,nl:/^[0-9A-ZÉËÏÓÖÜ_-]*$/i,hu:/^[0-9A-ZÁÉÍÓÖŐÚÜŰ_-]*$/i,pl:/^[0-9A-ZĄĆĘŚŁŃÓŻŹ_-]*$/i,pt:/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ_-]*$/i,ru:/^[0-9А-ЯЁ_-]*$/i,sk:/^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ_-]*$/i,sr:/^[0-9A-ZČĆŽŠĐ_-]*$/i,sv:/^[0-9A-ZÅÄÖ_-]*$/i,tr:/^[0-9A-ZÇĞİıÖŞÜ_-]*$/i,uk:/^[0-9А-ЩЬЮЯЄІЇҐ_-]*$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ_-]*$/,az:/^[0-9A-ZÇƏĞİıÖŞÜ_-]*$/i,ug:/^[0-9A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ_-]*$/i},Mc=n=>{if(n)return Array.isArray(n)?n[0]:n.locale};function nr(n,e){return Array.isArray(n)?n[0]:n[e]}function Nt(n){return!!(n==null||n===""||Array.isArray(n)&&n.length===0)}const WS=(n,e)=>{if(Nt(n))return!0;const t=Mc(e);if(Array.isArray(n))return n.every(i=>WS(i,{locale:t}));const r=String(n);return t?(Wl[t]||Wl.en).test(r):Object.keys(Wl).some(i=>Wl[i].test(r))},HS=(n,e)=>{if(Nt(n))return!0;const t=Mc(e);if(Array.isArray(n))return n.every(i=>HS(i,{locale:t}));const r=String(n);return t?(jl[t]||jl.en).test(r):Object.keys(jl).some(i=>jl[i].test(r))},zS=(n,e)=>{if(Nt(n))return!0;const t=Mc(e);if(Array.isArray(n))return n.every(i=>zS(i,{locale:t}));const r=String(n);return t?(zl[t]||zl.en).test(r):Object.keys(zl).some(i=>zl[i].test(r))},jS=(n,e)=>{if(Nt(n))return!0;const t=Mc(e);if(Array.isArray(n))return n.every(i=>jS(i,{locale:t}));const r=String(n);return t?(Hl[t]||Hl.en).test(r):Object.keys(Hl).some(i=>Hl[i].test(r))};function D8(n){return n?Array.isArray(n)?{min:n[0],max:n[1]}:n:{min:0,max:0}}const GS=(n,e)=>{if(Nt(n))return!0;const{min:t,max:r}=D8(e);if(Array.isArray(n))return n.every(s=>!!GS(s,{min:t,max:r}));const i=Number(n);return Number(t)<=i&&Number(r)>=i},P8=(n,e)=>{const t=nr(e,"target");return String(n)===String(t)},YS=(n,e)=>{if(Nt(n))return!0;const t=nr(e,"length");if(Array.isArray(n))return n.every(i=>YS(i,{length:t}));const r=String(n);return/^[0-9]*$/.test(r)&&r.length===Number(t)},B8=(n,e,t)=>{const r=window.URL||window.webkitURL;return new Promise(i=>{const s=new Image;s.onerror=()=>i(!1),s.onload=()=>i(s.width===e&&s.height===t),s.src=r.createObjectURL(n)})};function F8(n){return n?Array.isArray(n)?{width:Number(n[0]),height:Number(n[1])}:{width:Number(n.width),height:Number(n.height)}:{width:0,height:0}}const JS=(n,e)=>{if(Nt(n))return!0;const{width:t,height:r}=F8(e),i=[],s=Array.isArray(n)?n:[n];for(let d=0;d<s.length;d++){if(!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(s[d].name))return Promise.resolve(!1);i.push(s[d])}return Promise.all(i.map(d=>B8(d,t,r))).then(d=>d.every(f=>f))},KS=n=>{if(Nt(n))return!0;const e=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return Array.isArray(n)?n.every(t=>e.test(String(t))):e.test(String(n))},V8=(n,e)=>{if(Nt(n))return!0;e||(e=[]);const t=new RegExp(`\\.(${e.join("|")})$`,"i");return Array.isArray(n)?n.every(r=>t.test(r.name)):t.test(n.name)},U8=n=>{if(Nt(n))return!0;const e=/\.(jpg|svg|jpeg|png|bmp|gif|webp)$/i;return Array.isArray(n)?n.every(t=>e.test(t.name)):e.test(n.name)},W8=n=>Nt(n)?!0:Array.isArray(n)?n.every(e=>/^-?[0-9]+$/.test(String(e))):/^-?[0-9]+$/.test(String(n)),H8=(n,e)=>{const t=nr(e,"other");return n===t},z8=(n,e)=>{const t=nr(e,"other");return n!==t};function XS(n){return n==null}function j8(n){return Array.isArray(n)&&n.length===0}const G8=(n,e)=>{const t=nr(e,"length");return XS(n)?!1:(typeof n=="number"&&(n=String(n)),n.length||(n=Array.from(n)),n.length===Number(t))},qS=(n,e)=>{if(Nt(n))return!0;const t=nr(e,"length");return Array.isArray(n)?n.every(r=>qS(r,{length:t})):String(n).length<=Number(t)},Wp=(n,e)=>{if(Nt(n))return!0;const t=nr(e,"max");return Array.isArray(n)?n.length>0&&n.every(r=>Wp(r,{max:t})):Number(n)<=Number(t)},Y8=(n,e)=>{if(Nt(n))return!0;e||(e=[]);const t=new RegExp(`${e.join("|").replace("*",".+")}$`,"i");return Array.isArray(n)?n.every(r=>t.test(r.type)):t.test(n.type)},Hp=(n,e)=>{if(Nt(n))return!0;const t=nr(e,"length");return Array.isArray(n)?n.every(r=>Hp(r,{length:t})):String(n).length>=Number(t)},zp=(n,e)=>{if(Nt(n))return!0;const t=nr(e,"min");return Array.isArray(n)?n.length>0&&n.every(r=>zp(r,{min:t})):Number(n)>=Number(t)},jp=(n,e)=>Nt(n)?!0:Array.isArray(n)?n.every(t=>jp(t,e)):Array.from(e).some(t=>t==n),J8=(n,e)=>Nt(n)?!0:!jp(n,e),K8=/^[٠١٢٣٤٥٦٧٨٩]+$/,X8=/^[0-9]+$/,ZS=n=>{if(Nt(n))return!0;const e=t=>{const r=String(t);return X8.test(r)||K8.test(r)};return Array.isArray(n)?n.every(e):e(n)},Gp=(n,e)=>{if(Nt(n))return!0;let t=nr(e,"regex");return typeof t=="string"&&(t=new RegExp(t)),Array.isArray(n)?n.every(r=>Gp(r,{regex:t})):t.test(String(n))},Yp=n=>XS(n)||j8(n)||n===!1?!1:!!String(n).trim().length,QS=(n,e)=>{if(Nt(n))return!0;let t=nr(e,"size");if(t=Number(t),isNaN(t))return!1;const r=t*1024;if(!Array.isArray(n))return n.size<=r;for(let i=0;i<n.length;i++)if(n[i].size>r)return!1;return!0},q8=(n,e)=>{var t;if(Nt(n))return!0;let r=nr(e,"pattern");typeof r=="string"&&(r=new RegExp(r));try{new URL(n)}catch{return!1}return(t=r?.test(n))!==null&&t!==void 0?t:!0},Ty={alpha_dash:HS,alpha_num:zS,alpha_spaces:jS,alpha:WS,between:GS,confirmed:P8,digits:YS,dimensions:JS,email:KS,ext:V8,image:U8,integer:W8,is_not:z8,is:H8,length:G8,max_value:Wp,max:qS,mimes:Y8,min_value:zp,min:Hp,not_one_of:J8,numeric:ZS,one_of:jp,regex:Gp,required:Yp,size:QS,url:q8};Object.keys(Ty).forEach(n=>{Zt.defineRule(n,Ty[n])});const Z8=Yp,Q8=Hp,eY=Yp,tY=ZS,nY=KS,rY=Gp,iY=zp,sY=Wp,oY=QS,e_=(n,[e,t])=>(console.warn("'maxdimensions' validation rule is deprecated, use 'dimensions' validation rule instead"),JS(n,[e,t]));Zt.defineRule("maxdimensions",e_);const t_=(n,[e],t,r)=>{if(!n||!n.length)return!0;const i=new Date(n),s=new Date(e);return i.getTime()>0&&s.getTime()>0&&t(s.getTime(),i.getTime())?r:!0},n_=(n,[e])=>t_(n,[e],(t,r)=>t<r,"End date must be earlier than start date");Zt.defineRule("before",n_);const r_=(n,[e])=>t_(n,[e],(t,r)=>t<r,"End date must be later than start date");Zt.defineRule("after",r_);Ly.configure({generateMessage:M8({en:I8})});const aY=Ly.useForm,Ha=(n,e)=>({install(t){Object.entries(n).forEach(([r,i])=>{t.component(r,i)}),e&&Object.entries(e).forEach(([r,i])=>{Eu.global.mergeLocaleMessage(r,i)})}}),lY=(n,e)=>{const t=Ha(n,e);return{install(r){Object.entries(n).forEach(([,i])=>{r.config.globalProperties.pages?.push(i)}),t.install(r)}}},uY={class:"tw-flex tw-grow-1 tw-border-t tw-border-solid tw-border-t-[#eaedf3]"},cY={class:"assets-details__content tw-grow tw-basis-0"},hY={class:"tw-p-4"},i_=c.defineComponent({__name:"assets-details",props:{expanded:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},options:null},emits:["parent:call","close:blade"],setup(n,{emit:e}){const t=n,{t:r}=Dd(),i=c.reactive({...t.options.editableAsset}),s=[{id:"save",title:r("ASSETS.PAGES.DETAILS.TOOLBAR.SAVE"),icon:"fas fa-save",clickHandler(){t.options.sortHandler&&typeof t.options.sortHandler=="function"&&(t.options.sortHandler(!1,i),e("close:blade"))}},{id:"delete",title:r("ASSETS.PAGES.DETAILS.TOOLBAR.DELETE"),icon:"fas fa-trash",clickHandler(){window.confirm(c.unref(c.computed(()=>r("ASSETS.PAGES.DETAILS.DELETE_CONFIRMATION"))))&&t.options.sortHandler&&typeof t.options.sortHandler=="function"&&(t.options.sortHandler(!0,i),e("close:blade"))}}];return(d,f)=>(c.openBlock(),c.createBlock(c.unref(vp),{title:n.options.editableAsset.name,subtitle:d.$t("ASSETS.PAGES.DETAILS.SUBTITLE"),expanded:n.expanded,closable:n.closable,toolbarItems:s,onClose:f[3]||(f[3]=l=>d.$emit("close:blade"))},{default:c.withCtx(()=>[c.createElementVNode("div",uY,[c.createElementVNode("div",cY,[c.createVNode(c.unref(io),{"no-padding":!0},{default:c.withCtx(()=>[c.createElementVNode("div",hY,[c.createVNode(c.unref(kd),null,{default:c.withCtx(()=>[c.createVNode(c.unref(xu),{class:"tw-mb-4",src:i.url,size:"xl",bordered:!0},null,8,["src"]),c.createVNode(c.unref(Qo),{class:"tw-mb-4",label:d.$t("ASSETS.PAGES.DETAILS.FIELDS.NAME.TITLE"),modelValue:i.name,"onUpdate:modelValue":f[0]||(f[0]=l=>i.name=l),clearable:"",required:"",placeholder:d.$t("ASSETS.PAGES.DETAILS.FIELDS.NAME.PLACEHOLDER")},null,8,["label","modelValue","placeholder"]),c.createVNode(c.unref(Qo),{class:"tw-mb-4",label:d.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.TITLE"),modelValue:i.altText,"onUpdate:modelValue":f[1]||(f[1]=l=>i.altText=l),clearable:"",placeholder:d.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.PLACEHOLDER"),tooltip:d.$t("ASSETS.PAGES.DETAILS.FIELDS.ALT.TOOLTIP"),required:""},null,8,["label","modelValue","placeholder","tooltip"]),c.createVNode(c.unref(gp),{class:"tw-mb-4",label:d.$t("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.TITLE"),modelValue:i.description,"onUpdate:modelValue":f[2]||(f[2]=l=>i.description=l),placeholder:d.$t("ASSETS.PAGES.DETAILS.FIELDS.DESCRIPTION.PLACEHOLDER"),required:""},null,8,["label","modelValue","placeholder"])]),_:1})])]),_:1})])])]),_:1},8,["title","subtitle","expanded","closable"]))}}),fY=Object.freeze(Object.defineProperty({__proto__:null,AssetsDetails:i_},Symbol.toStringTag,{value:"Module"})),s_={PAGES:{DETAILS:{SUBTITLE:"Image edit",TOOLBAR:{SAVE:"Save",DELETE:"Delete"},FIELDS:{NAME:{TITLE:"Image name",PLACEHOLDER:"Enter image name"},ALT:{TITLE:"Image alternative text",PLACEHOLDER:"Enter image alt text",TOOLTIP:"This text will be displayed in case of disabled/unloaded image on the page"},DESCRIPTION:{TITLE:"Meta description",PLACEHOLDER:"Enter meta description"}},DELETE_CONFIRMATION:"Are you sure you want to delete this image?"}}},dY={ASSETS:s_},pY=Object.freeze(Object.defineProperty({__proto__:null,ASSETS:s_,default:dY},Symbol.toStringTag,{value:"Module"})),mY=Object.freeze(Object.defineProperty({__proto__:null,en:pY},Symbol.toStringTag,{value:"Module"})),gY=Ha(fY,mY),vY={class:"tw-relative tw-h-full tw-flex tw-items-center tw-justify-center tw-mx-2 tw-shrink-0"},wY=["onClick"],yY=c.createElementVNode("div",{class:"tw-h-[22px] tw-w-[22px] [mask:url(/assets/app-select.svg)] tw-bg-[color:var(--app-bar-button-color)] tw-duration-200"},null,-1),bY=[yY],SY={key:0,class:"tw-px-4 tw-py-3.5 tw-bg-white tw-drop-shadow-[4px_4px_20px_rgba(47,86,108,0.25)] tw-absolute tw-z-[10000] tw-rounded tw-top-[var(--app-bar-height)] tw-left-0"},_Y={class:"tw-flex tw-flex-col tw-gap-3 tw-overflow-hidden"},CY=["onClick"],EY=["src","alt"],kY={class:"tw-font-normal tw-text-sm tw-text-[#727C87] tw-truncate group-hover:tw-opacity-80"},o_=c.defineComponent({__name:"vc-app-switcher",props:{appsList:{default:void 0}},emits:["onClick"],setup(n,{emit:e}){const t=n,r=c.ref(!1),i=m=>"https://vcmp-dev.paas.govirto.com/".replace(/\/+$/,"")+m,s=m=>{const a=window.location.pathname.replace(/\/+$/,""),o=m.match(a);return o?o[0]:null},d=m=>{e("onClick",m),l()},f=()=>{t.appsList&&t.appsList.length&&(r.value=!r.value)},l=()=>{r.value=!1};return(m,a)=>{const o=c.resolveDirective("click-outside");return c.withDirectives((c.openBlock(),c.createElementBlock("div",vY,[c.createElementVNode("button",{class:"hover:[&>img] hover:[&_div]:tw-bg-[color:var(--app-bar-button-color-hover)]",onClick:c.withModifiers(f,["stop"])},bY,8,wY),r.value&&n.appsList&&n.appsList.length?(c.openBlock(),c.createElementBlock("div",SY,[c.createElementVNode("ul",_Y,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.appsList,u=>(c.openBlock(),c.createElementBlock("li",{key:u.id,onClick:p=>d(u),class:c.normalizeClass(["tw-flex tw-flex-row tw-items-center tw-cursor-pointer tw-group",{"[&>p]:tw-font-extrabold":s(u.relativeUrl)}])},[c.createElementVNode("img",{src:i(u.iconUrl),alt:`icon_${u.id}`,class:"tw-w-5 tw-h-5 tw-mr-2 tw-shrink-0"},null,8,EY),c.createElementVNode("p",kY,c.toDisplayString(u.title),1)],10,CY))),128))])])):c.createCommentVNode("",!0)])),[[o,l]])}}}),xY=Object.freeze(Object.defineProperty({__proto__:null,VcAppSwitcher:o_},Symbol.toStringTag,{value:"Module"})),AY=()=>{const{checkPermission:n}=pc(),e=c.ref([]);async function t(){const{getAccessToken:s}=so(),d=new Ib;return d.setAuthToken(await s()),d}async function r(){const s=await t();try{e.value=await s.getApps()}catch(d){throw console.error(d),d}}function i(s){n(s.permission)?s.relativeUrl&&(window.location.href=window.location.origin+s.relativeUrl):alert("Access restricted")}return{appsList:c.computed(()=>e.value),getApps:r,switchApp:i}},TY=Ha(xY),a_=c.defineComponent({__name:"vc-blade-navigation",props:{blades:{default:()=>[]},parentBladeOptions:{default:()=>({})},parentBladeParam:{default:void 0}},emits:["onOpen","onClose","onParentCall"],setup(n,{expose:e}){const t=n,r=Zo.useRoute(),i=c.ref([]),s=c.ref();c.onBeforeUpdate(()=>{i.value=[s.value]});const d=l=>{l&&Object.keys(l).length&&i.value.push(l)},f=c.computed(()=>t.parentBladeParam?t.parentBladeParam:r.params.param);return e({bladesRefs:i}),(l,m)=>{const a=c.resolveComponent("router-view");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(a,null,{default:c.withCtx(({Component:o,route:u})=>[c.withDirectives((c.openBlock(),c.createBlock(c.resolveDynamicComponent(o),{closable:!1,"onOpen:blade":m[0]||(m[0]=p=>l.$emit("onOpen",{blade:p,id:0})),options:n.parentBladeOptions,expanded:n.blades.length===0,param:c.unref(f),key:u,ref_key:"parentRef",ref:s},null,40,["options","expanded","param"])),[[c.vShow,l.$isMobile.value?!n.blades.length:n.blades.length<=1]])]),_:1}),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.blades,(o,u)=>c.withDirectives((c.openBlock(),c.createBlock(c.resolveDynamicComponent(o.component),{key:`blade_${u}`,param:o.param,closable:u>=0,expanded:u===n.blades.length-1,options:o.bladeOptions,"onOpen:blade":p=>l.$emit("onOpen",{blade:p,id:o.idx}),"onClose:blade":p=>l.$emit("onClose",u),"onClose:children":p=>l.$emit("onClose",u+1),"onParent:call":p=>l.$emit("onParentCall",{id:u,args:p}),ref_for:!0,ref:d},null,40,["param","closable","expanded","options","onOpen:blade","onClose:blade","onClose:children","onParent:call"])),[[c.vShow,u>=n.blades.length-(l.$isMobile.value?1:2)]])),128))],64)}}}),$Y=Object.freeze(Object.defineProperty({__proto__:null,VcBladeNavigation:a_},Symbol.toStringTag,{value:"Module"})),zr=c.ref([]),Gl=c.ref([]),$y=c.ref(),Oy=c.ref(),OY=()=>{const n=Zo.useRouter(),e=Zo.useRoute(),{checkPermission:t}=pc(),r=c.ref(!1);c.watch(()=>zr.value,a=>{const o=a[a.length-1];o&&o.component.url?o.param?l(o.component.url+"/"+o.param):l(o.component.url):o||l(e.path)},{deep:!0});async function i({parentBlade:a,component:o,param:u,bladeOptions:p,onOpen:v,onClose:w},b,_){console.debug(`openBlade(${1}) called.`);const E=c.unref(a),$=c.unref(o),x=m($);if(E&&E.url&&(await s(0),!r.value))if($y.value=c.unref(p),Oy.value=c.unref(u),_&&typeof _=="function")try{await _()}catch(S){console.log(S)}finally{console.debug(`Navigated to: ${E.url}`)}else _||await n.push(E.url);$&&(x===void 0?$.idx=b+1:x&&(await s(zr.value.findIndex(S=>S.idx===x.idx)),$.idx=x.idx),await d($,u,p,v,w,b))}async function s(a){if(a<Gl.value.length){const o=Gl.value.slice(a).reverse();r.value=!1;for(let u=0;u<o.length;u++)if(o[u]?.onBeforeClose&&typeof o[u].onBeforeClose=="function"&&await o[u].onBeforeClose()===!1){r.value=!0;break}if(!r.value)typeof zr.value[a]?.onClose=="function"&&zr.value[a]?.onClose?.(),zr.value.splice(a);else throw"Closing prevented"}}async function d(a,o,u,p,v,w){zr.value.length>w&&await s(w),a&&t(a.permissions)?(zr.value.push({component:a,bladeOptions:u,param:o,onOpen:p,onClose:v,idx:a.idx}),p&&typeof p=="function"&&p()):alert("Access restricted")}async function f(a,o){if(console.debug(`vc-app#onParentCall(${a}, { method: ${o.method} }) called.`),a>=0){const u=c.unref(Gl.value[a]);if(u)if(o.method&&typeof u[o.method]=="function"){const p=u[o.method],v=await p(o.args);typeof o.callback=="function"&&o.callback(v)}else console.error(`No such method: ${o.method}.`)}}function l(a){history.pushState({},null,"#"+a)}function m(a){return zr.value.find(o=>Io(o.component,a))}return{blades:c.computed(()=>zr.value),parentBladeOptions:c.computed(()=>$y.value),parentBladeParam:c.computed(()=>Oy.value),bladesRefs:Gl,openBlade:i,closeBlade:s,onParentCall:f}},LY=Ha($Y),MY={install(n){n.use(gY).use(TY).use(LY)}};function RY(n){return n.replace(/[\w]([A-Z])/g,function(e){return e[0]+"_"+e[1]}).toLowerCase()}const NY={install(n){n.use(Eu),n.config.globalProperties.$mergeLocaleMessage=Eu.global.mergeLocaleMessage,n.use(T5),n.component("draggable",C8),Object.entries(x5).forEach(([t,r])=>{n.component(t,r)}),Object.entries(vF).forEach(([t,r])=>{n.directive(t,r)});const e=l$({phone:480,desktop:1024});n.config.globalProperties.$isPhone=e.smaller("phone"),n.config.globalProperties.$isTablet=e.between("phone","desktop"),n.config.globalProperties.$isMobile=e.smaller("desktop"),n.config.globalProperties.$isDesktop=e.greater("desktop"),n.config.globalProperties.$isTouch="ontouchstart"in window||navigator.maxTouchPoints>0,n.provide("isPhone",n.config.globalProperties.$isPhone),n.provide("isTablet",n.config.globalProperties.$isTablet),n.provide("isMobile",n.config.globalProperties.$isMobile),n.provide("isDesktop",n.config.globalProperties.$isDesktop),n.provide("isTouch",n.config.globalProperties.$isTouch),n.config.globalProperties.pages=[],n.provide("pages",n.config.globalProperties.pages),n.use(MY)}};exports.ApiException=Fb;exports.AppDescriptor=Pu;exports.ApplicationUser=Kr;exports.ApplicationUserLogin=ic;exports.AppsClient=Ib;exports.AssetsDetails=i_;exports.AuthApiBase=Pn;exports.AuthorizationClient=BN;exports.Body=Qd;exports.ChangeLogClient=VN;exports.ChangeLogSearchCriteria=Ud;exports.ChangeLogSearchResult=Uu;exports.ChangePasswordRequest=Xd;exports.ChangedEntitiesRequest=Vd;exports.ChangedEntitiesResponse=Vu;exports.ChangedEntity=Fu;exports.Claim=La;exports.ClaimsIdentity=ca;exports.DiagnosticsClient=UN;exports.DynamicObjectProperty=Yu;exports.DynamicPropertiesClient=WN;exports.DynamicProperty=$a;exports.DynamicPropertyDictionaryItem=Ku;exports.DynamicPropertyDictionaryItemName=Ju;exports.DynamicPropertyDictionaryItemSearchCriteria=Hd;exports.DynamicPropertyDictionaryItemSearchResult=Xu;exports.DynamicPropertyName=Ta;exports.DynamicPropertyObjectValue=Gu;exports.DynamicPropertySearchCriteria=Wd;exports.DynamicPropertySearchResult=ju;exports.ExternalSignInClient=FN;exports.IdentityError=oc;exports.IdentityResult=fa;exports.Job=qu;exports.JobsClient=HN;exports.JsonElement=la;exports.LastModifiedResponse=Bu;exports.License=Wu;exports.LoginRequest=Gd;exports.ModuleAutoInstallPushNotification=Zu;exports.ModuleDescriptor=Jr;exports.ModuleIdentity=oa;exports.ModulePushNotification=aa;exports.ModulesClient=zN;exports.OAuthAppSearchCriteria=zd;exports.OAuthAppSearchResult=Qu;exports.OAuthAppsClient=jN;exports.ObjectSettingEntry=Zi;exports.OpenIddictApplicationDescriptor=qs;exports.OpenIddictResponse=sa;exports.OperationLog=Aa;exports.Permission=Ma;exports.PermissionScope=ha;exports.ProgressMessage=Oa;exports.PushNotification=ec;exports.PushNotificationClient=Db;exports.PushNotificationSearchCriteria=jd;exports.PushNotificationSearchResult=ua;exports.ResetPasswordConfirmRequest=qd;exports.Role=as;exports.RoleSearchCriteria=Yd;exports.RoleSearchResult=rc;exports.SecurityClient=Pb;exports.SecurityResult=Yn;exports.SemanticVersion=Hu;exports.SettingClient=Bb;exports.SignInResult=tc;exports.SortInfo=Or;exports.StringIdentityUserRole=Jd;exports.SystemInfo=zu;exports.UserApiKey=qi;exports.UserDetail=nc;exports.UserLockedResult=ac;exports.UserSearchCriteria=Kd;exports.UserSearchResult=sc;exports.ValidatePasswordResetTokenRequest=Zd;exports.VcApp=E0;exports.VcAppSwitcher=o_;exports.VcBadge=My;exports.VcBlade=vp;exports.VcBladeNavigation=a_;exports.VcBreadcrumbs=zy;exports.VcButton=Ry;exports.VcCard=By;exports.VcCheckbox=iu;exports.VcCol=su;exports.VcContainer=io;exports.VcDynamicProperty=k0;exports.VcEditor=Xy;exports.VcFileUpload=xd;exports.VcForm=kd;exports.VcGallery=x0;exports.VcHint=Fy;exports.VcIcon=Ye;exports.VcImage=xu;exports.VcInfoRow=Vy;exports.VcInput=Qo;exports.VcInputCurrency=eb;exports.VcLabel=fs;exports.VcLink=bd;exports.VcLoading=Sd;exports.VcLoginForm=A0;exports.VcNotification=tb;exports.VcPagination=Ad;exports.VcPopup=wp;exports.VcProgress=Uy;exports.VcRating=nb;exports.VcRow=_d;exports.VcSelect=f0;exports.VcSlider=C0;exports.VcStatus=Cd;exports.VcStatusIcon=Ed;exports.VcSwitch=Wy;exports.VcTable=yS;exports.VcTextarea=gp;exports.VcWidget=Hy;exports.after=r_;exports.autofocus=t0;exports.before=n_;exports.camelToSnake=RY;exports.clickOutside=mc;exports.createAppModule=lY;exports.createModule=Ha;exports.default=NY;exports.email=nY;exports.i18n=Eu;exports.loading=n0;exports.max=eY;exports.max_value=sY;exports.maxdimensions=e_;exports.min=Q8;exports.min_value=iY;exports.moment=_e;exports.numeric=tY;exports.permissions=e0;exports.regex=rY;exports.required=Z8;exports.size=oY;exports.useApiClient=pF;exports.useAppSwitcher=AY;exports.useAsync=dF;exports.useAutosave=fF;exports.useBladeNavigation=OY;exports.useForm=aY;exports.useFunctions=gM;exports.useI18n=Dd;exports.useLoading=mF;exports.useNotifications=cF;exports.usePermissions=pc;exports.useSettings=hF;exports.useUser=so;
|