@maggioli-design-system/magma 2.3.0 → 2.4.0
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/AGENTS.md +1 -1
- package/CHANGELOG.md +237 -0
- package/agents/anti-patterns.md +7 -4
- package/agents/color.md +2 -2
- package/agents/components.md +2 -1
- package/agents/conventions.md +16 -0
- package/dist/cjs/{aria-BbJUuU9_.js → aria-CzO5Rp1y.js} +23 -15
- package/dist/cjs/{floating-controller-D7Ekjocg.js → floating-controller-BxER7sig.js} +20 -11
- package/dist/cjs/{floating-ui.dom-EMHL7uyZ.js → floating-ui.dom-VQ_HnnRe.js} +0 -115
- package/dist/cjs/{icon-MMHcqbgv.js → icon-BhokFNM7.js} +4 -2
- package/dist/cjs/{index-MyEb-PfD.js → index-B5DKRaVO.js} +1 -1
- package/dist/cjs/{index-UmmmCMIG.js → index-B_qgSpWL.js} +89 -60
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/keyboard-manager-BuCJdI8Q.js +75 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale-CnorkBwF.js → locale-D9XY8LN9.js} +1 -1
- package/dist/cjs/{locale.it-CfUV2hxK.js → locale.it-CQgfBg0W.js} +6 -1
- package/dist/cjs/{datetime-DHnUzK2K.js → luxon-8hyy5YD7.js} +164 -64
- package/dist/cjs/magma-components.cjs.js +3 -3
- package/dist/cjs/mds-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +11 -10
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +16 -2
- package/dist/cjs/mds-accordion.cjs.entry.js +36 -21
- package/dist/cjs/mds-author.cjs.entry.js +2 -2
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +11 -5
- package/dist/cjs/mds-avatar.cjs.entry.js +57 -90
- package/dist/cjs/mds-badge.cjs.entry.js +4 -4
- package/dist/cjs/mds-banner_3.cjs.entry.js +51 -69
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +6 -3
- package/dist/cjs/mds-bibliography.cjs.entry.js +23 -17
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +9 -5
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +17 -33
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +15 -6
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +54 -38
- package/dist/cjs/mds-calendar_2.cjs.entry.js +74 -52
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-card-media.cjs.entry.js +2 -2
- package/dist/cjs/mds-card.cjs.entry.js +25 -16
- package/dist/cjs/mds-details.cjs.entry.js +18 -8
- package/dist/cjs/mds-dropdown.cjs.entry.js +31 -15
- package/dist/cjs/mds-emoji.cjs.entry.js +191 -134
- package/dist/cjs/mds-entity.cjs.entry.js +5 -5
- package/dist/cjs/mds-file-preview.cjs.entry.js +30 -23
- package/dist/cjs/mds-file.cjs.entry.js +25 -7
- package/dist/cjs/mds-filter-item.cjs.entry.js +9 -21
- package/dist/cjs/mds-filter.cjs.entry.js +10 -6
- package/dist/cjs/mds-header-bar.cjs.entry.js +12 -11
- package/dist/cjs/mds-header.cjs.entry.js +9 -11
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +10 -15
- package/dist/cjs/mds-hr.cjs.entry.js +4 -4
- package/dist/cjs/mds-img.cjs.entry.js +38 -46
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +15 -7
- package/dist/cjs/mds-input-date-range.cjs.entry.js +31 -27
- package/dist/cjs/mds-input-date.cjs.entry.js +17 -14
- package/dist/cjs/mds-input-field.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-otp.cjs.entry.js +57 -22
- package/dist/cjs/mds-input-range.cjs.entry.js +4 -4
- package/dist/cjs/mds-input-select.cjs.entry.js +7 -7
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +10 -10
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +9 -8
- package/dist/cjs/mds-input-upload.cjs.entry.js +1097 -15
- package/dist/cjs/mds-input.cjs.entry.js +8 -8
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +5 -5
- package/dist/cjs/mds-keyboard.cjs.entry.js +15 -7
- package/dist/cjs/mds-kpi-item.cjs.entry.js +17 -3
- package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
- package/dist/cjs/mds-label.cjs.entry.js +13 -30
- package/dist/cjs/mds-list-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-list.cjs.entry.js +2 -2
- package/dist/cjs/mds-mention.cjs.entry.js +7 -6
- package/dist/cjs/mds-modal.cjs.entry.js +28 -11
- package/dist/cjs/mds-note.cjs.entry.js +18 -14
- package/dist/cjs/mds-notification.cjs.entry.js +72 -15
- package/dist/cjs/mds-paginator-item.cjs.entry.js +23 -11
- package/dist/cjs/mds-paginator.cjs.entry.js +39 -4
- package/dist/cjs/mds-policy-ai.cjs.entry.js +5 -5
- package/dist/cjs/mds-pref-animation.cjs.entry.js +41 -8
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +41 -8
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +44 -32
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +8 -8
- package/dist/cjs/mds-pref-language.cjs.entry.js +43 -21
- package/dist/cjs/mds-pref-mode.cjs.entry.js +28 -24
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +4 -3
- package/dist/cjs/mds-pref-theme.cjs.entry.js +109 -31
- package/dist/cjs/mds-pref.cjs.entry.js +28 -11
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-features.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-list.cjs.entry.js +14 -6
- package/dist/cjs/mds-price-table.cjs.entry.js +2 -2
- package/dist/cjs/mds-progress_2.cjs.entry.js +46 -33
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +12 -9
- package/dist/cjs/mds-push-notification.cjs.entry.js +36 -13
- package/dist/cjs/mds-quote.cjs.entry.js +3 -3
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu.cjs.entry.js +47 -38
- package/dist/cjs/mds-separator.cjs.entry.js +4 -4
- package/dist/cjs/mds-status-bar.cjs.entry.js +8 -9
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +18 -6
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +8 -17
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +25 -16
- package/dist/cjs/mds-tab-bar.cjs.entry.js +11 -5
- package/dist/cjs/mds-tab_2.cjs.entry.js +16 -10
- package/dist/cjs/mds-table-body.cjs.entry.js +4 -4
- package/dist/cjs/mds-table-footer.cjs.entry.js +13 -4
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-header.cjs.entry.js +13 -5
- package/dist/cjs/mds-table-row.cjs.entry.js +35 -11
- package/dist/cjs/mds-table.cjs.entry.js +80 -23
- package/dist/cjs/mds-text.cjs.entry.js +4 -4
- package/dist/cjs/mds-toast-region.cjs.entry.js +119 -0
- package/dist/cjs/mds-toast.cjs.entry.js +163 -33
- package/dist/cjs/mds-tooltip.cjs.entry.js +71 -16
- package/dist/cjs/mds-tree-item.cjs.entry.js +24 -10
- package/dist/cjs/mds-tree.cjs.entry.js +37 -15
- package/dist/cjs/mds-url-view.cjs.entry.js +6 -6
- package/dist/cjs/mds-usage.cjs.entry.js +5 -5
- package/dist/cjs/mds-video-wall.cjs.entry.js +5 -4
- package/dist/cjs/mds-zero.cjs.entry.js +4 -4
- package/dist/cjs/{preference-DRkzNp5a.js → preference-C8BcoA3M.js} +1 -1
- package/dist/cjs/{slot-RmXfgH4P.js → slot-Dku0TdVg.js} +15 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/common/aria.js +25 -1
- package/dist/collection/common/file.js +6 -1
- package/dist/collection/common/floating-controller.js +18 -9
- package/dist/collection/common/icon.js +4 -1
- package/dist/collection/common/keyboard-manager.js +29 -6
- package/dist/collection/common/slot.js +15 -1
- package/dist/collection/components/mds-accordion/AGENTS.md +3 -2
- package/dist/collection/components/mds-accordion/antipattern.md +1 -1
- package/dist/collection/components/mds-accordion/documentation.json +9 -4
- package/dist/collection/components/mds-accordion/mds-accordion.css +1 -1
- package/dist/collection/components/mds-accordion/mds-accordion.js +34 -21
- package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-item/antipattern.md +2 -2
- package/dist/collection/components/mds-accordion-item/documentation.json +3 -3
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +5 -1
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +2 -2
- package/dist/collection/components/mds-accordion-timer/documentation.json +3 -3
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +15 -1
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +4 -4
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +4 -4
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +5 -1
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +9 -8
- package/dist/collection/components/mds-author/AGENTS.md +1 -1
- package/dist/collection/components/mds-author/documentation.json +2 -2
- package/dist/collection/components/mds-avatar/AGENTS.md +4 -4
- package/dist/collection/components/mds-avatar/documentation.json +4 -4
- package/dist/collection/components/mds-avatar/mds-avatar.css +15 -4
- package/dist/collection/components/mds-avatar/mds-avatar.js +56 -70
- package/dist/collection/components/mds-avatar/pattern.md +13 -2
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +2 -2
- package/dist/collection/components/mds-avatar-stack/documentation.json +3 -3
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +1 -1
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +15 -2
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +2 -2
- package/dist/collection/components/mds-badge/AGENTS.md +1 -1
- package/dist/collection/components/mds-badge/antipattern.md +0 -1
- package/dist/collection/components/mds-badge/documentation.json +4 -4
- package/dist/collection/components/mds-badge/mds-badge.css +4 -2
- package/dist/collection/components/mds-badge/pattern.md +0 -1
- package/dist/collection/components/mds-banner/AGENTS.md +1 -1
- package/dist/collection/components/mds-banner/documentation.json +2 -2
- package/dist/collection/components/mds-banner/mds-banner.css +18 -14
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +2 -2
- package/dist/collection/components/mds-benchmark-bar/antipattern.md +1 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +5 -5
- package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +4 -1
- package/dist/collection/components/mds-benchmark-bar/pattern.md +1 -1
- package/dist/collection/components/mds-bibliography/AGENTS.md +4 -4
- package/dist/collection/components/mds-bibliography/antipattern.md +1 -1
- package/dist/collection/components/mds-bibliography/documentation.json +16 -7
- package/dist/collection/components/mds-bibliography/mds-bibliography.css +3 -1
- package/dist/collection/components/mds-bibliography/mds-bibliography.js +29 -17
- package/dist/collection/components/mds-bibliography/pattern.md +2 -2
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +8 -6
- package/dist/collection/components/mds-breadcrumb/antipattern.md +3 -3
- package/dist/collection/components/mds-breadcrumb/documentation.json +18 -8
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +16 -5
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +13 -29
- package/dist/collection/components/mds-breadcrumb/pattern.md +2 -5
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +4 -4
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +10 -5
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +1 -1
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +10 -3
- package/dist/collection/components/mds-button/AGENTS.md +10 -7
- package/dist/collection/components/mds-button/documentation.json +21 -8
- package/dist/collection/components/mds-button/mds-button.css +13 -7
- package/dist/collection/components/mds-button/mds-button.js +32 -27
- package/dist/collection/components/mds-button/pattern.md +6 -0
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +9 -8
- package/dist/collection/components/mds-button-dropdown/antipattern.md +1 -1
- package/dist/collection/components/mds-button-dropdown/documentation.json +13 -9
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +28 -7
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +15 -5
- package/dist/collection/components/mds-button-dropdown/pattern.md +8 -1
- package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-group/documentation.json +2 -2
- package/dist/collection/components/mds-calendar/AGENTS.md +4 -4
- package/dist/collection/components/mds-calendar/documentation.json +5 -5
- package/dist/collection/components/mds-calendar/mds-calendar.css +12 -4
- package/dist/collection/components/mds-calendar/mds-calendar.js +40 -20
- package/dist/collection/components/mds-calendar/pattern.md +4 -3
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +8 -8
- package/dist/collection/components/mds-calendar-cell/antipattern.md +2 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +14 -10
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +260 -109
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +8 -3
- package/dist/collection/components/mds-calendar-cell/pattern.md +3 -1
- package/dist/collection/components/mds-card/AGENTS.md +5 -4
- package/dist/collection/components/mds-card/antipattern.md +1 -1
- package/dist/collection/components/mds-card/documentation.json +10 -5
- package/dist/collection/components/mds-card/mds-card.css +2 -1
- package/dist/collection/components/mds-card/mds-card.js +22 -13
- package/dist/collection/components/mds-card/pattern.md +4 -3
- package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-content/documentation.json +2 -2
- package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-footer/documentation.json +2 -2
- package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-header/documentation.json +2 -2
- package/dist/collection/components/mds-card-media/AGENTS.md +2 -2
- package/dist/collection/components/mds-card-media/documentation.json +7 -3
- package/dist/collection/components/mds-card-media/mds-card-media.js +2 -1
- package/dist/collection/components/mds-chip/AGENTS.md +3 -3
- package/dist/collection/components/mds-chip/documentation.json +6 -6
- package/dist/collection/components/mds-chip/mds-chip.css +12 -9
- package/dist/collection/components/mds-chip/mds-chip.js +40 -60
- package/dist/collection/components/mds-chip/pattern.md +1 -1
- package/dist/collection/components/mds-details/AGENTS.md +5 -4
- package/dist/collection/components/mds-details/documentation.json +6 -6
- package/dist/collection/components/mds-details/mds-details.css +14 -2
- package/dist/collection/components/mds-details/mds-details.js +14 -4
- package/dist/collection/components/mds-details/pattern.md +2 -2
- package/dist/collection/components/mds-dropdown/AGENTS.md +7 -7
- package/dist/collection/components/mds-dropdown/documentation.json +15 -10
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +66 -33
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +31 -12
- package/dist/collection/components/mds-dropdown/pattern.md +4 -2
- package/dist/collection/components/mds-emoji/AGENTS.md +11 -11
- package/dist/collection/components/mds-emoji/antipattern.md +1 -1
- package/dist/collection/components/mds-emoji/documentation.json +34 -64
- package/dist/collection/components/mds-emoji/mds-emoji.js +101 -77
- package/dist/collection/components/mds-emoji/meta/gaze.js +22 -0
- package/dist/collection/components/mds-entity/AGENTS.md +1 -1
- package/dist/collection/components/mds-entity/documentation.json +2 -2
- package/dist/collection/components/mds-entity/mds-entity.css +9 -4
- package/dist/collection/components/mds-entity/mds-entity.js +1 -1
- package/dist/collection/components/mds-file/AGENTS.md +5 -5
- package/dist/collection/components/mds-file/documentation.json +4 -4
- package/dist/collection/components/mds-file/mds-file.css +2 -2
- package/dist/collection/components/mds-file/mds-file.js +21 -3
- package/dist/collection/components/mds-file-preview/AGENTS.md +5 -5
- package/dist/collection/components/mds-file-preview/antipattern.md +1 -1
- package/dist/collection/components/mds-file-preview/documentation.json +20 -10
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +27 -1
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +34 -21
- package/dist/collection/components/mds-file-preview/pattern.md +1 -1
- package/dist/collection/components/mds-filter/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter/documentation.json +2 -2
- package/dist/collection/components/mds-filter/mds-filter.css +3 -3
- package/dist/collection/components/mds-filter/mds-filter.js +6 -2
- package/dist/collection/components/mds-filter-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-filter-item/documentation.json +3 -3
- package/dist/collection/components/mds-filter-item/mds-filter-item.css +7 -4
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +2 -14
- package/dist/collection/components/mds-header/AGENTS.md +5 -5
- package/dist/collection/components/mds-header/antipattern.md +2 -2
- package/dist/collection/components/mds-header/documentation.json +14 -9
- package/dist/collection/components/mds-header/mds-header.css +8 -6
- package/dist/collection/components/mds-header/mds-header.js +10 -9
- package/dist/collection/components/mds-header/pattern.md +1 -1
- package/dist/collection/components/mds-header-bar/AGENTS.md +5 -5
- package/dist/collection/components/mds-header-bar/documentation.json +14 -10
- package/dist/collection/components/mds-header-bar/mds-header-bar.css +13 -4
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +11 -9
- package/dist/collection/components/mds-header-bar/pattern.md +2 -2
- package/dist/collection/components/mds-help/AGENTS.md +7 -7
- package/dist/collection/components/mds-help/documentation.json +11 -7
- package/dist/collection/components/mds-help/mds-help.css +22 -0
- package/dist/collection/components/mds-help/mds-help.js +8 -5
- package/dist/collection/components/mds-help/pattern.md +2 -2
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +2 -2
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +7 -3
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +3 -3
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +7 -11
- package/dist/collection/components/mds-hr/AGENTS.md +1 -1
- package/dist/collection/components/mds-hr/documentation.json +2 -2
- package/dist/collection/components/mds-hr/mds-hr.css +1 -1
- package/dist/collection/components/mds-hr/mds-hr.js +1 -1
- package/dist/collection/components/mds-icon/AGENTS.md +2 -2
- package/dist/collection/components/mds-icon/documentation.json +4 -4
- package/dist/collection/components/mds-icon/mds-icon.js +14 -3
- package/dist/collection/components/mds-icon/pattern.md +1 -1
- package/dist/collection/components/mds-img/AGENTS.md +9 -9
- package/dist/collection/components/mds-img/antipattern.md +1 -1
- package/dist/collection/components/mds-img/documentation.json +36 -34
- package/dist/collection/components/mds-img/mds-img.js +58 -56
- package/dist/collection/components/mds-input/AGENTS.md +15 -15
- package/dist/collection/components/mds-input/antipattern.md +1 -1
- package/dist/collection/components/mds-input/documentation.json +83 -22
- package/dist/collection/components/mds-input/mds-input.css +3 -3
- package/dist/collection/components/mds-input/mds-input.js +33 -9
- package/dist/collection/components/mds-input-date/AGENTS.md +3 -3
- package/dist/collection/components/mds-input-date/antipattern.md +1 -1
- package/dist/collection/components/mds-input-date/documentation.json +23 -6
- package/dist/collection/components/mds-input-date/mds-input-date.css +1 -2
- package/dist/collection/components/mds-input-date/mds-input-date.js +17 -2
- package/dist/collection/components/mds-input-date-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range/documentation.json +18 -2
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +18 -2
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +3 -3
- package/dist/collection/components/mds-input-date-range-preselection/antipattern.md +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +26 -8
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +31 -9
- package/dist/collection/components/mds-input-field/AGENTS.md +4 -4
- package/dist/collection/components/mds-input-field/documentation.json +10 -6
- package/dist/collection/components/mds-input-field/mds-input-field.css +1 -1
- package/dist/collection/components/mds-input-field/mds-input-field.js +5 -2
- package/dist/collection/components/mds-input-otp/AGENTS.md +5 -4
- package/dist/collection/components/mds-input-otp/antipattern.md +1 -1
- package/dist/collection/components/mds-input-otp/documentation.json +5 -5
- package/dist/collection/components/mds-input-otp/mds-input-otp.css +12 -0
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +53 -18
- package/dist/collection/components/mds-input-otp/pattern.md +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-range/antipattern.md +1 -1
- package/dist/collection/components/mds-input-range/documentation.json +3 -3
- package/dist/collection/components/mds-input-range/mds-input-range.css +3 -3
- package/dist/collection/components/mds-input-range/mds-input-range.js +1 -1
- package/dist/collection/components/mds-input-select/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-select/documentation.json +2 -2
- package/dist/collection/components/mds-input-select/mds-input-select.css +9 -2
- package/dist/collection/components/mds-input-select/mds-input-select.js +2 -2
- package/dist/collection/components/mds-input-switch/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-switch/antipattern.md +1 -1
- package/dist/collection/components/mds-input-switch/documentation.json +3 -3
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +7 -6
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +1 -1
- package/dist/collection/components/mds-input-tip/AGENTS.md +2 -2
- package/dist/collection/components/mds-input-tip/documentation.json +3 -3
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +4 -3
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +2 -2
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +3 -1
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +2 -2
- package/dist/collection/components/mds-input-tip-item/meta/dictionary.js +2 -8
- package/dist/collection/components/mds-input-upload/AGENTS.md +2 -2
- package/dist/collection/components/mds-input-upload/documentation.json +7 -3
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +4 -3
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +13 -8
- package/dist/collection/components/mds-keyboard/AGENTS.md +2 -2
- package/dist/collection/components/mds-keyboard/documentation.json +4 -4
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +24 -13
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +11 -3
- package/dist/collection/components/mds-keyboard/pattern.md +1 -1
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +2 -2
- package/dist/collection/components/mds-keyboard-key/documentation.json +3 -3
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +2 -2
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -1
- package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi/documentation.json +2 -2
- package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
- package/dist/collection/components/mds-kpi-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-kpi-item/antipattern.md +1 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +5 -5
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +15 -1
- package/dist/collection/components/mds-kpi-item/pattern.md +2 -2
- package/dist/collection/components/mds-label/AGENTS.md +2 -2
- package/dist/collection/components/mds-label/documentation.json +3 -3
- package/dist/collection/components/mds-label/mds-label.css +6 -1
- package/dist/collection/components/mds-label/mds-label.js +2 -24
- package/dist/collection/components/mds-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-list/documentation.json +2 -2
- package/dist/collection/components/mds-list/mds-list.js +1 -1
- package/dist/collection/components/mds-list-item/AGENTS.md +3 -3
- package/dist/collection/components/mds-list-item/documentation.json +12 -4
- package/dist/collection/components/mds-list-item/mds-list-item.js +3 -1
- package/dist/collection/components/mds-mention/AGENTS.md +2 -2
- package/dist/collection/components/mds-mention/documentation.json +3 -3
- package/dist/collection/components/mds-mention/mds-mention.css +2 -11
- package/dist/collection/components/mds-mention/mds-mention.js +4 -3
- package/dist/collection/components/mds-modal/AGENTS.md +7 -6
- package/dist/collection/components/mds-modal/documentation.json +16 -7
- package/dist/collection/components/mds-modal/mds-modal.css +18 -9
- package/dist/collection/components/mds-modal/mds-modal.js +25 -7
- package/dist/collection/components/mds-modal/pattern.md +1 -1
- package/dist/collection/components/mds-note/AGENTS.md +2 -1
- package/dist/collection/components/mds-note/documentation.json +8 -3
- package/dist/collection/components/mds-note/mds-note.css +4 -12
- package/dist/collection/components/mds-note/mds-note.js +13 -9
- package/dist/collection/components/mds-note/pattern.md +1 -0
- package/dist/collection/components/mds-notification/AGENTS.md +5 -5
- package/dist/collection/components/mds-notification/documentation.json +10 -5
- package/dist/collection/components/mds-notification/mds-notification.css +9 -2
- package/dist/collection/components/mds-notification/mds-notification.js +78 -13
- package/dist/collection/components/mds-paginator/AGENTS.md +4 -3
- package/dist/collection/components/mds-paginator/antipattern.md +2 -1
- package/dist/collection/components/mds-paginator/documentation.json +6 -6
- package/dist/collection/components/mds-paginator/mds-paginator.css +2 -2
- package/dist/collection/components/mds-paginator/mds-paginator.js +12 -1
- package/dist/collection/components/mds-paginator/pattern.md +9 -1
- package/dist/collection/components/mds-paginator-item/AGENTS.md +4 -4
- package/dist/collection/components/mds-paginator-item/antipattern.md +2 -1
- package/dist/collection/components/mds-paginator-item/documentation.json +6 -6
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +67 -70
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +19 -7
- package/dist/collection/components/mds-paginator-item/pattern.md +3 -1
- package/dist/collection/components/mds-policy-ai/AGENTS.md +3 -2
- package/dist/collection/components/mds-policy-ai/documentation.json +13 -5
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +13 -7
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +3 -2
- package/dist/collection/components/mds-policy-ai/pattern.md +6 -1
- package/dist/collection/components/mds-pref/AGENTS.md +5 -5
- package/dist/collection/components/mds-pref/antipattern.md +1 -1
- package/dist/collection/components/mds-pref/documentation.json +8 -8
- package/dist/collection/components/mds-pref/mds-pref.js +27 -9
- package/dist/collection/components/mds-pref/pattern.md +5 -5
- package/dist/collection/components/mds-pref-animation/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-animation/antipattern.md +1 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +5 -5
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +38 -5
- package/dist/collection/components/mds-pref-animation/pattern.md +6 -6
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-consumption/antipattern.md +1 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +5 -5
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +38 -5
- package/dist/collection/components/mds-pref-consumption/pattern.md +5 -6
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref-contrast/antipattern.md +2 -2
- package/dist/collection/components/mds-pref-contrast/documentation.json +5 -5
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +41 -29
- package/dist/collection/components/mds-pref-contrast/pattern.md +3 -3
- package/dist/collection/components/mds-pref-language/AGENTS.md +5 -5
- package/dist/collection/components/mds-pref-language/antipattern.md +2 -2
- package/dist/collection/components/mds-pref-language/documentation.json +17 -7
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +54 -20
- package/dist/collection/components/mds-pref-language/pattern.md +3 -3
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-pref-language-item/antipattern.md +1 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +10 -5
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +9 -6
- package/dist/collection/components/mds-pref-mode/AGENTS.md +11 -4
- package/dist/collection/components/mds-pref-mode/antipattern.md +4 -4
- package/dist/collection/components/mds-pref-mode/documentation.json +22 -6
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +1 -1
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +22 -23
- package/dist/collection/components/mds-pref-mode/pattern.md +5 -5
- package/dist/collection/components/mds-pref-theme/AGENTS.md +6 -5
- package/dist/collection/components/mds-pref-theme/antipattern.md +4 -4
- package/dist/collection/components/mds-pref-theme/documentation.json +17 -7
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +121 -30
- package/dist/collection/components/mds-pref-theme/pattern.md +3 -3
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-pref-theme-item/antipattern.md +1 -1
- package/dist/collection/components/mds-pref-theme-item/documentation.json +8 -4
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +20 -3
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +6 -2
- package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table/documentation.json +2 -2
- package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
- package/dist/collection/components/mds-price-table-features/AGENTS.md +3 -3
- package/dist/collection/components/mds-price-table-features/documentation.json +4 -4
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +2 -2
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +1 -1
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +2 -2
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +3 -3
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +5 -2
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +2 -2
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
- package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +2 -2
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
- package/dist/collection/components/mds-price-table-list/AGENTS.md +3 -3
- package/dist/collection/components/mds-price-table-list/documentation.json +3 -3
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +2 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +13 -3
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +3 -3
- package/dist/collection/components/mds-price-table-list-item/documentation.json +9 -5
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +5 -1
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +2 -1
- package/dist/collection/components/mds-price-table-list-item/pattern.md +1 -1
- package/dist/collection/components/mds-progress/AGENTS.md +3 -2
- package/dist/collection/components/mds-progress/documentation.json +4 -4
- package/dist/collection/components/mds-progress/mds-progress.css +2 -1
- package/dist/collection/components/mds-progress/mds-progress.js +42 -29
- package/dist/collection/components/mds-progress/pattern.md +1 -0
- package/dist/collection/components/mds-push-notification/AGENTS.md +4 -4
- package/dist/collection/components/mds-push-notification/documentation.json +4 -4
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +19 -12
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +4 -5
- package/dist/collection/components/mds-push-notification-item/documentation.json +18 -13
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +5 -88
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +17 -8
- package/dist/collection/components/mds-push-notification-item/pattern.md +2 -3
- package/dist/collection/components/mds-quote/AGENTS.md +1 -1
- package/dist/collection/components/mds-quote/documentation.json +2 -2
- package/dist/collection/components/mds-quote/mds-quote.js +1 -1
- package/dist/collection/components/mds-radial-menu/AGENTS.md +12 -11
- package/dist/collection/components/mds-radial-menu/antipattern.md +1 -1
- package/dist/collection/components/mds-radial-menu/documentation.json +19 -33
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +24 -7
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +46 -39
- package/dist/collection/components/mds-radial-menu/pattern.md +14 -1
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu-item/documentation.json +2 -2
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-progress/AGENTS.md +11 -1
- package/dist/collection/components/mds-radial-progress/antipattern.md +8 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +31 -5
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +9 -1
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
- package/dist/collection/components/mds-radial-progress/pattern.md +13 -1
- package/dist/collection/components/mds-separator/AGENTS.md +1 -1
- package/dist/collection/components/mds-separator/documentation.json +2 -2
- package/dist/collection/components/mds-separator/mds-separator.css +1 -1
- package/dist/collection/components/mds-separator/mds-separator.js +1 -1
- package/dist/collection/components/mds-spinner/AGENTS.md +2 -2
- package/dist/collection/components/mds-spinner/documentation.json +4 -4
- package/dist/collection/components/mds-spinner/mds-spinner.css +64 -13
- package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
- package/dist/collection/components/mds-spinner/pattern.md +1 -1
- package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-status-bar/antipattern.md +1 -1
- package/dist/collection/components/mds-status-bar/documentation.json +4 -4
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +11 -6
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +5 -6
- package/dist/collection/components/mds-status-bar/pattern.md +1 -1
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +5 -5
- package/dist/collection/components/mds-stepper-bar/documentation.json +8 -14
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +9 -27
- package/dist/collection/components/mds-stepper-bar/pattern.md +1 -1
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +4 -4
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +6 -6
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +22 -5
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +15 -3
- package/dist/collection/components/mds-stepper-bar-item/pattern.md +1 -1
- package/dist/collection/components/mds-tab/AGENTS.md +3 -3
- package/dist/collection/components/mds-tab/documentation.json +5 -5
- package/dist/collection/components/mds-tab/mds-tab.css +4 -4
- package/dist/collection/components/mds-tab/mds-tab.js +9 -3
- package/dist/collection/components/mds-tab/pattern.md +9 -0
- package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar/antipattern.md +1 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +3 -3
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +9 -3
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +3 -3
- package/dist/collection/components/mds-tab-bar-item/antipattern.md +2 -2
- package/dist/collection/components/mds-tab-bar-item/documentation.json +5 -5
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +22 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +22 -18
- package/dist/collection/components/mds-tab-bar-item/pattern.md +1 -1
- package/dist/collection/components/mds-tab-item/AGENTS.md +2 -2
- package/dist/collection/components/mds-tab-item/documentation.json +9 -4
- package/dist/collection/components/mds-tab-item/mds-tab-item.css +11 -1
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +4 -1
- package/dist/collection/components/mds-table/AGENTS.md +10 -8
- package/dist/collection/components/mds-table/antipattern.md +1 -1
- package/dist/collection/components/mds-table/documentation.json +41 -10
- package/dist/collection/components/mds-table/mds-table.css +20 -21
- package/dist/collection/components/mds-table/mds-table.js +97 -21
- package/dist/collection/components/mds-table/pattern.md +4 -1
- package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-body/documentation.json +2 -2
- package/dist/collection/components/mds-table-body/mds-table-body.css +4 -1
- package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
- package/dist/collection/components/mds-table-cell/AGENTS.md +5 -5
- package/dist/collection/components/mds-table-cell/antipattern.md +1 -1
- package/dist/collection/components/mds-table-cell/documentation.json +11 -7
- package/dist/collection/components/mds-table-cell/mds-table-cell.css +7 -11
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
- package/dist/collection/components/mds-table-cell/pattern.md +6 -0
- package/dist/collection/components/mds-table-footer/AGENTS.md +14 -4
- package/dist/collection/components/mds-table-footer/documentation.json +42 -9
- package/dist/collection/components/mds-table-footer/mds-table-footer.css +6 -1
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +41 -2
- package/dist/collection/components/mds-table-footer/pattern.md +2 -1
- package/dist/collection/components/mds-table-header/AGENTS.md +4 -3
- package/dist/collection/components/mds-table-header/documentation.json +49 -6
- package/dist/collection/components/mds-table-header/mds-table-header.css +7 -0
- package/dist/collection/components/mds-table-header/mds-table-header.js +36 -2
- package/dist/collection/components/mds-table-header/pattern.md +1 -1
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +3 -3
- package/dist/collection/components/mds-table-header-cell/documentation.json +20 -6
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +9 -2
- package/dist/collection/components/mds-table-row/AGENTS.md +3 -3
- package/dist/collection/components/mds-table-row/documentation.json +5 -5
- package/dist/collection/components/mds-table-row/mds-table-row.css +5 -4
- package/dist/collection/components/mds-table-row/mds-table-row.js +24 -5
- package/dist/collection/components/mds-table-row/pattern.md +1 -2
- package/dist/collection/components/mds-text/AGENTS.md +2 -2
- package/dist/collection/components/mds-text/documentation.json +3 -3
- package/dist/collection/components/mds-text/mds-text.css +86 -3
- package/dist/collection/components/mds-text/mds-text.js +1 -1
- package/dist/collection/components/mds-toast/AGENTS.md +13 -7
- package/dist/collection/components/mds-toast/antipattern.md +18 -0
- package/dist/collection/components/mds-toast/documentation.json +53 -13
- package/dist/collection/components/mds-toast/mds-toast.css +52 -3
- package/dist/collection/components/mds-toast/mds-toast.js +174 -35
- package/dist/collection/components/mds-toast/meta/event-detail.js +1 -0
- package/dist/collection/components/mds-toast/pattern.md +18 -4
- package/dist/collection/components/mds-toast-region/AGENTS.md +51 -0
- package/dist/collection/components/mds-toast-region/antipattern.md +62 -0
- package/dist/collection/components/mds-toast-region/documentation.json +136 -0
- package/dist/collection/components/mds-toast-region/mds-toast-region.css +31 -0
- package/dist/collection/components/mds-toast-region/mds-toast-region.js +177 -0
- package/dist/collection/components/mds-toast-region/pattern.md +82 -0
- package/dist/collection/components/mds-tooltip/AGENTS.md +7 -7
- package/dist/collection/components/mds-tooltip/documentation.json +18 -9
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +43 -8
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +73 -14
- package/dist/collection/components/mds-tooltip/pattern.md +2 -2
- package/dist/collection/components/mds-tree/AGENTS.md +6 -5
- package/dist/collection/components/mds-tree/documentation.json +13 -7
- package/dist/collection/components/mds-tree/mds-tree.css +5 -4
- package/dist/collection/components/mds-tree/mds-tree.js +41 -16
- package/dist/collection/components/mds-tree/pattern.md +5 -1
- package/dist/collection/components/mds-tree-item/AGENTS.md +7 -7
- package/dist/collection/components/mds-tree-item/documentation.json +7 -7
- package/dist/collection/components/mds-tree-item/mds-tree-item.css +47 -15
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +22 -8
- package/dist/collection/components/mds-tree-item/pattern.md +2 -1
- package/dist/collection/components/mds-url-view/AGENTS.md +2 -2
- package/dist/collection/components/mds-url-view/documentation.json +3 -3
- package/dist/collection/components/mds-url-view/mds-url-view.css +3 -2
- package/dist/collection/components/mds-url-view/mds-url-view.js +2 -2
- package/dist/collection/components/mds-usage/AGENTS.md +12 -10
- package/dist/collection/components/mds-usage/antipattern.md +1 -1
- package/dist/collection/components/mds-usage/documentation.json +21 -9
- package/dist/collection/components/mds-usage/mds-usage.css +5 -3
- package/dist/collection/components/mds-usage/mds-usage.js +5 -2
- package/dist/collection/components/mds-usage/pattern.md +4 -4
- package/dist/collection/components/mds-video-wall/AGENTS.md +2 -2
- package/dist/collection/components/mds-video-wall/documentation.json +3 -3
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +10 -5
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +2 -1
- package/dist/collection/components/mds-zero/AGENTS.md +1 -1
- package/dist/collection/components/mds-zero/documentation.json +2 -2
- package/dist/collection/components/mds-zero/mds-zero.css +2 -1
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-author.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-card-content.js +1 -1
- package/dist/components/mds-card-footer.js +1 -1
- package/dist/components/mds-card-header.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-emoji.js +7 -7
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +1 -1
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast-region.d.ts +11 -0
- package/dist/components/mds-toast-region.js +1 -0
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-tree.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/mds-video-wall.js +1 -1
- package/dist/components/mds-zero.js +1 -1
- package/dist/components/p-2gaGDQwL.js +1 -0
- package/dist/components/p-AFBkzOrP.js +1 -0
- package/dist/components/p-B1bYa-o0.js +1 -0
- package/dist/components/p-B2p5a1Y8.js +3 -0
- package/dist/components/p-B6B6q5kP.js +1 -0
- package/dist/components/{p--miH951G.js → p-B9dgiq4u.js} +1 -1
- package/dist/components/p-BFisF7aN.js +1 -0
- package/dist/components/p-BL220gRU.js +1 -0
- package/dist/components/p-BLiWCyrD.js +1 -0
- package/dist/components/p-BN5kmfLJ.js +8 -0
- package/dist/components/p-BUr3NqxM.js +1 -0
- package/dist/components/p-BaFfIZGB.js +1 -0
- package/dist/components/{p-faViX-qz.js → p-Bg5E4Wnq.js} +1 -1
- package/dist/components/p-BjFCjSw6.js +1 -0
- package/dist/components/{p-zHpei4x6.js → p-BlnEiKN4.js} +1 -1
- package/dist/components/p-CGrPq3C4.js +1 -0
- package/dist/components/p-CIWWmisz.js +1 -0
- package/dist/components/p-CJyTL7Mj.js +1 -0
- package/dist/components/p-Cvhn9asj.js +1 -0
- package/dist/components/p-CylHulxe.js +1 -0
- package/dist/components/p-D3_jgpKd.js +1 -0
- package/dist/components/p-D4JiVIoh.js +1 -0
- package/dist/components/{p-CUmJoPAI.js → p-DACnmwad.js} +1 -1
- package/dist/components/p-DGGk8PS_.js +1 -0
- package/dist/components/p-DSxDXNWp.js +1 -0
- package/dist/components/p-DWIIDHSa.js +1 -0
- package/dist/components/p-DYpfVn7a.js +1 -0
- package/dist/components/{p-qYRtWYC8.js → p-D_0rjNZp.js} +1 -1
- package/dist/components/p-DaptTdaU.js +1 -0
- package/dist/components/{p-DLCcW1Q5.js → p-DezdwzYQ.js} +1 -1
- package/dist/components/{p-BcUY-9n7.js → p-DhIGZbIo.js} +1 -1
- package/dist/components/{p-ay5NzZ_x.js → p-Didp833Z.js} +1 -1
- package/dist/components/p-Dleapw-k.js +1 -0
- package/dist/components/p-JPhOaOXe.js +1 -0
- package/dist/components/p-NOw8-OrM.js +1 -0
- package/dist/components/p-NlPseOAv.js +1 -0
- package/dist/components/{p-DmPLOktp.js → p-cIZniMh0.js} +1 -1
- package/dist/components/p-fhAmrBfl.js +1 -0
- package/dist/components/p-sM-eFjwq.js +1 -0
- package/dist/components/p-wHQGpA62.js +1 -0
- package/dist/documentation.json +1069 -462
- package/dist/esm/aria-Cvhn9asj.js +53 -0
- package/dist/esm/{floating-controller-D5-8D9mH.js → floating-controller-BV0E_Juq.js} +20 -11
- package/dist/esm/{floating-ui.dom-JMPfVnGv.js → floating-ui.dom-BaFfIZGB.js} +1 -115
- package/dist/esm/{icon-pNJmnrhq.js → icon-B7RVWU-q.js} +4 -2
- package/dist/esm/{index-BxPbQB28.js → index-CPRkNQdE.js} +89 -60
- package/dist/esm/{index-BhCZiGfL.js → index-DI_6NAg0.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/keyboard-manager-CGrPq3C4.js +73 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-CVJm6KFD.js → locale-DfpXg7qZ.js} +1 -1
- package/dist/esm/{locale.it-Cvxh7La5.js → locale.it-Diyps98n.js} +6 -1
- package/dist/esm/{datetime-BJtA1qmE.js → luxon-DbyXf6dF.js} +164 -64
- package/dist/esm/magma-components.js +4 -4
- package/dist/esm/mds-accordion-item.entry.js +3 -3
- package/dist/esm/mds-accordion-timer-item.entry.js +11 -10
- package/dist/esm/mds-accordion-timer.entry.js +16 -2
- package/dist/esm/mds-accordion.entry.js +36 -21
- package/dist/esm/mds-author.entry.js +2 -2
- package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm/mds-avatar-stack.entry.js +11 -5
- package/dist/esm/mds-avatar.entry.js +57 -90
- package/dist/esm/mds-badge.entry.js +4 -4
- package/dist/esm/mds-banner_3.entry.js +51 -69
- package/dist/esm/mds-benchmark-bar.entry.js +6 -3
- package/dist/esm/mds-bibliography.entry.js +23 -17
- package/dist/esm/mds-breadcrumb-item.entry.js +9 -5
- package/dist/esm/mds-breadcrumb.entry.js +17 -33
- package/dist/esm/mds-button-dropdown.entry.js +15 -6
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +54 -38
- package/dist/esm/mds-calendar_2.entry.js +50 -28
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +2 -2
- package/dist/esm/mds-card-media.entry.js +2 -2
- package/dist/esm/mds-card.entry.js +25 -16
- package/dist/esm/mds-details.entry.js +18 -8
- package/dist/esm/mds-dropdown.entry.js +31 -15
- package/dist/esm/mds-emoji.entry.js +191 -134
- package/dist/esm/mds-entity.entry.js +5 -5
- package/dist/esm/mds-file-preview.entry.js +30 -23
- package/dist/esm/mds-file.entry.js +25 -7
- package/dist/esm/mds-filter-item.entry.js +9 -21
- package/dist/esm/mds-filter.entry.js +10 -6
- package/dist/esm/mds-header-bar.entry.js +12 -11
- package/dist/esm/mds-header.entry.js +9 -11
- package/dist/esm/mds-horizontal-scroll.entry.js +10 -15
- package/dist/esm/mds-hr.entry.js +4 -4
- package/dist/esm/mds-img.entry.js +38 -46
- package/dist/esm/mds-input-date-range-preselection.entry.js +15 -7
- package/dist/esm/mds-input-date-range.entry.js +12 -8
- package/dist/esm/mds-input-date.entry.js +11 -8
- package/dist/esm/mds-input-field.entry.js +2 -2
- package/dist/esm/mds-input-otp.entry.js +57 -22
- package/dist/esm/mds-input-range.entry.js +4 -4
- package/dist/esm/mds-input-select.entry.js +7 -7
- package/dist/esm/mds-input-switch_2.entry.js +10 -10
- package/dist/esm/mds-input-tip_2.entry.js +9 -8
- package/dist/esm/mds-input-upload.entry.js +1097 -15
- package/dist/esm/mds-input.entry.js +8 -8
- package/dist/esm/mds-keyboard-key.entry.js +5 -5
- package/dist/esm/mds-keyboard.entry.js +15 -7
- package/dist/esm/mds-kpi-item.entry.js +17 -3
- package/dist/esm/mds-kpi.entry.js +2 -2
- package/dist/esm/mds-label.entry.js +13 -30
- package/dist/esm/mds-list-item.entry.js +2 -2
- package/dist/esm/mds-list.entry.js +2 -2
- package/dist/esm/mds-mention.entry.js +7 -6
- package/dist/esm/mds-modal.entry.js +28 -11
- package/dist/esm/mds-note.entry.js +18 -14
- package/dist/esm/mds-notification.entry.js +72 -15
- package/dist/esm/mds-paginator-item.entry.js +23 -11
- package/dist/esm/mds-paginator.entry.js +39 -4
- package/dist/esm/mds-policy-ai.entry.js +5 -5
- package/dist/esm/mds-pref-animation.entry.js +41 -8
- package/dist/esm/mds-pref-consumption.entry.js +41 -8
- package/dist/esm/mds-pref-contrast.entry.js +44 -32
- package/dist/esm/mds-pref-language-item.entry.js +8 -8
- package/dist/esm/mds-pref-language.entry.js +43 -21
- package/dist/esm/mds-pref-mode.entry.js +28 -24
- package/dist/esm/mds-pref-theme-item.entry.js +4 -3
- package/dist/esm/mds-pref-theme.entry.js +109 -31
- package/dist/esm/mds-pref.entry.js +28 -11
- package/dist/esm/mds-price-table-features-cell.entry.js +4 -4
- package/dist/esm/mds-price-table-features-row.entry.js +3 -3
- package/dist/esm/mds-price-table-features.entry.js +4 -4
- package/dist/esm/mds-price-table-header.entry.js +2 -2
- package/dist/esm/mds-price-table-list-item.entry.js +3 -3
- package/dist/esm/mds-price-table-list.entry.js +14 -6
- package/dist/esm/mds-price-table.entry.js +2 -2
- package/dist/esm/mds-progress_2.entry.js +46 -33
- package/dist/esm/mds-push-notification-item.entry.js +12 -9
- package/dist/esm/mds-push-notification.entry.js +36 -13
- package/dist/esm/mds-quote.entry.js +3 -3
- package/dist/esm/mds-radial-menu-item.entry.js +2 -2
- package/dist/esm/mds-radial-menu.entry.js +47 -38
- package/dist/esm/mds-separator.entry.js +4 -4
- package/dist/esm/mds-status-bar.entry.js +8 -9
- package/dist/esm/mds-stepper-bar-item.entry.js +18 -6
- package/dist/esm/mds-stepper-bar.entry.js +8 -17
- package/dist/esm/mds-tab-bar-item.entry.js +25 -16
- package/dist/esm/mds-tab-bar.entry.js +11 -5
- package/dist/esm/mds-tab_2.entry.js +16 -10
- package/dist/esm/mds-table-body.entry.js +4 -4
- package/dist/esm/mds-table-footer.entry.js +13 -4
- package/dist/esm/mds-table-header-cell.entry.js +3 -3
- package/dist/esm/mds-table-header.entry.js +13 -5
- package/dist/esm/mds-table-row.entry.js +35 -11
- package/dist/esm/mds-table.entry.js +80 -23
- package/dist/esm/mds-text.entry.js +4 -4
- package/dist/esm/mds-toast-region.entry.js +117 -0
- package/dist/esm/mds-toast.entry.js +163 -33
- package/dist/esm/mds-tooltip.entry.js +71 -16
- package/dist/esm/mds-tree-item.entry.js +24 -10
- package/dist/esm/mds-tree.entry.js +37 -15
- package/dist/esm/mds-url-view.entry.js +6 -6
- package/dist/esm/mds-usage.entry.js +5 -5
- package/dist/esm/mds-video-wall.entry.js +5 -4
- package/dist/esm/mds-zero.entry.js +4 -4
- package/dist/esm/{preference-DNNqH7BU.js → preference-Ch1zJnqq.js} +1 -1
- package/dist/esm/{slot-C0o_l0td.js → slot-AEckDMXh.js} +15 -1
- package/dist/esm-es5/aria-Cvhn9asj.js +6 -0
- package/dist/esm-es5/{floating-controller-D5-8D9mH.js → floating-controller-BV0E_Juq.js} +12 -3
- package/dist/esm-es5/{floating-ui.dom-JMPfVnGv.js → floating-ui.dom-BaFfIZGB.js} +40 -63
- package/dist/esm-es5/icon-B7RVWU-q.js +4 -0
- package/dist/esm-es5/{index-BxPbQB28.js → index-CPRkNQdE.js} +44 -42
- package/dist/esm-es5/{index-BhCZiGfL.js → index-DI_6NAg0.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/keyboard-manager-CGrPq3C4.js +9 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{locale-CVJm6KFD.js → locale-DfpXg7qZ.js} +1 -1
- package/dist/esm-es5/locale.it-Diyps98n.js +11 -0
- package/dist/esm-es5/{datetime-BJtA1qmE.js → luxon-DbyXf6dF.js} +51 -20
- package/dist/esm-es5/magma-components.js +3 -3
- package/dist/esm-es5/mds-accordion-item.entry.js +2 -2
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +7 -3
- package/dist/esm-es5/mds-accordion-timer.entry.js +12 -2
- package/dist/esm-es5/mds-accordion.entry.js +14 -2
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +4 -1
- package/dist/esm-es5/mds-avatar.entry.js +19 -6
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +19 -18
- package/dist/esm-es5/mds-benchmark-bar.entry.js +5 -2
- package/dist/esm-es5/mds-bibliography.entry.js +13 -2
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +4 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +8 -2
- package/dist/esm-es5/mds-button-dropdown.entry.js +6 -3
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +26 -11
- package/dist/esm-es5/mds-calendar_2.entry.js +20 -9
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +11 -5
- package/dist/esm-es5/mds-details.entry.js +7 -2
- package/dist/esm-es5/mds-dropdown.entry.js +26 -17
- package/dist/esm-es5/mds-emoji.entry.js +334 -302
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +15 -13
- package/dist/esm-es5/mds-file.entry.js +11 -4
- package/dist/esm-es5/mds-filter-item.entry.js +2 -5
- package/dist/esm-es5/mds-filter.entry.js +7 -3
- package/dist/esm-es5/mds-header-bar.entry.js +7 -5
- package/dist/esm-es5/mds-header.entry.js +7 -4
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +15 -12
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +17 -11
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +6 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +16 -12
- package/dist/esm-es5/mds-input-date.entry.js +6 -3
- package/dist/esm-es5/mds-input-field.entry.js +2 -2
- package/dist/esm-es5/mds-input-otp.entry.js +16 -6
- package/dist/esm-es5/mds-input-range.entry.js +3 -3
- package/dist/esm-es5/mds-input-select.entry.js +2 -2
- package/dist/esm-es5/mds-input-switch_2.entry.js +2 -2
- package/dist/esm-es5/mds-input-tip_2.entry.js +5 -4
- package/dist/esm-es5/mds-input-upload.entry.js +5 -3
- package/dist/esm-es5/mds-input.entry.js +3 -3
- package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
- package/dist/esm-es5/mds-keyboard.entry.js +7 -3
- package/dist/esm-es5/mds-kpi-item.entry.js +7 -2
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +2 -2
- package/dist/esm-es5/mds-list-item.entry.js +2 -2
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +4 -3
- package/dist/esm-es5/mds-modal.entry.js +19 -7
- package/dist/esm-es5/mds-note.entry.js +5 -2
- package/dist/esm-es5/mds-notification.entry.js +25 -5
- package/dist/esm-es5/mds-paginator-item.entry.js +8 -1
- package/dist/esm-es5/mds-paginator.entry.js +3 -3
- package/dist/esm-es5/mds-policy-ai.entry.js +2 -2
- package/dist/esm-es5/mds-pref-animation.entry.js +14 -4
- package/dist/esm-es5/mds-pref-consumption.entry.js +14 -4
- package/dist/esm-es5/mds-pref-contrast.entry.js +14 -7
- package/dist/esm-es5/mds-pref-language-item.entry.js +5 -5
- package/dist/esm-es5/mds-pref-language.entry.js +20 -6
- package/dist/esm-es5/mds-pref-mode.entry.js +10 -3
- package/dist/esm-es5/mds-pref-theme-item.entry.js +4 -3
- package/dist/esm-es5/mds-pref-theme.entry.js +38 -11
- package/dist/esm-es5/mds-pref.entry.js +13 -7
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-list.entry.js +5 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +18 -3
- package/dist/esm-es5/mds-push-notification-item.entry.js +7 -3
- package/dist/esm-es5/mds-push-notification.entry.js +9 -12
- package/dist/esm-es5/mds-quote.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu-item.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu.entry.js +8 -11
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +5 -3
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +9 -3
- package/dist/esm-es5/mds-stepper-bar.entry.js +9 -4
- package/dist/esm-es5/mds-tab-bar-item.entry.js +10 -3
- package/dist/esm-es5/mds-tab-bar.entry.js +5 -1
- package/dist/esm-es5/mds-tab_2.entry.js +6 -4
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +4 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +2 -2
- package/dist/esm-es5/mds-table-header.entry.js +10 -5
- package/dist/esm-es5/mds-table-row.entry.js +9 -3
- package/dist/esm-es5/mds-table.entry.js +33 -8
- package/dist/esm-es5/mds-text.entry.js +3 -3
- package/dist/esm-es5/mds-toast-region.entry.js +22 -0
- package/dist/esm-es5/mds-toast.entry.js +42 -5
- package/dist/esm-es5/mds-tooltip.entry.js +16 -6
- package/dist/esm-es5/mds-tree-item.entry.js +15 -4
- package/dist/esm-es5/mds-tree.entry.js +15 -2
- package/dist/esm-es5/mds-url-view.entry.js +2 -2
- package/dist/esm-es5/mds-usage.entry.js +3 -3
- package/dist/esm-es5/mds-video-wall.entry.js +2 -2
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/esm-es5/{preference-DNNqH7BU.js → preference-Ch1zJnqq.js} +4 -4
- package/dist/esm-es5/slot-AEckDMXh.js +30 -0
- package/dist/hydrate/index.js +4397 -1886
- package/dist/hydrate/index.mjs +4397 -1886
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/magma-components.js +1 -1
- package/dist/magma-components/p-007968a8.system.entry.js +47 -0
- package/dist/magma-components/p-028f3717.entry.js +1 -0
- package/dist/magma-components/{p-808f6796.entry.js → p-0727d8f9.entry.js} +1 -1
- package/dist/magma-components/p-0b5fe949.entry.js +1 -0
- package/dist/magma-components/p-0b7a884e.system.entry.js +29 -0
- package/dist/magma-components/{p-ed897125.entry.js → p-0bcf3bb6.entry.js} +1 -1
- package/dist/magma-components/{p-c34d9e61.system.entry.js → p-0c9bdfff.system.entry.js} +1 -1
- package/dist/magma-components/{p-514d0fcb.entry.js → p-0dd4b006.entry.js} +1 -1
- package/dist/magma-components/p-0f47fd37.system.entry.js +16 -0
- package/dist/magma-components/p-11e50140.system.entry.js +19 -0
- package/dist/magma-components/{p-c644c5fc.system.entry.js → p-11feeebf.system.entry.js} +4 -1
- package/dist/magma-components/p-1287fb51.entry.js +1 -0
- package/dist/magma-components/p-12a2f8e2.system.entry.js +13 -0
- package/dist/magma-components/p-14b40c21.entry.js +1 -0
- package/dist/magma-components/p-166c0190.entry.js +1 -0
- package/dist/magma-components/{p-a9736d68.system.entry.js → p-176e6d9d.system.entry.js} +1 -1
- package/dist/magma-components/{p-508e10b5.system.entry.js → p-1809e47d.system.entry.js} +455 -422
- package/dist/magma-components/p-1989c0b4.entry.js +8 -0
- package/dist/magma-components/p-1a5411a8.entry.js +1 -0
- package/dist/magma-components/p-1f5cd2b5.entry.js +1 -0
- package/dist/{components/p-B8BWxSho.js → magma-components/p-1f9ebc0d.entry.js} +1 -1
- package/dist/magma-components/{p-837fbbf7.system.entry.js → p-1fe66383.system.entry.js} +1 -1
- package/dist/magma-components/p-20469b7a.system.entry.js +1 -0
- package/dist/magma-components/p-20608f69.system.entry.js +35 -0
- package/dist/magma-components/p-2061e567.entry.js +1 -0
- package/dist/magma-components/p-21c2d7bd.entry.js +1 -0
- package/dist/magma-components/p-21fe0fef.system.entry.js +14 -0
- package/dist/magma-components/p-2294945a.system.entry.js +34 -0
- package/dist/magma-components/p-2362b91a.entry.js +1 -0
- package/dist/magma-components/p-23bf1afa.system.entry.js +27 -0
- package/dist/magma-components/{p-c575cb7b.entry.js → p-23ce0824.entry.js} +1 -1
- package/dist/magma-components/p-25576b51.system.entry.js +14 -0
- package/dist/magma-components/p-288f3cfe.entry.js +1 -0
- package/dist/magma-components/p-29d4605e.system.entry.js +10 -0
- package/dist/magma-components/p-2a2b7c43.entry.js +1 -0
- package/dist/magma-components/p-2aab3752.entry.js +1 -0
- package/dist/magma-components/p-2abfc393.entry.js +1 -0
- package/dist/magma-components/p-2c4d2717.entry.js +1 -0
- package/dist/magma-components/p-2d7d9e4f.entry.js +1 -0
- package/dist/magma-components/p-2f3c6105.entry.js +1 -0
- package/dist/magma-components/p-3093af30.system.entry.js +4 -0
- package/dist/magma-components/{p-35ee2d77.entry.js → p-32bfb09c.entry.js} +1 -1
- package/dist/magma-components/p-342770d2.system.entry.js +7 -0
- package/dist/magma-components/p-36ad5759.system.entry.js +10 -0
- package/dist/magma-components/p-3725c2c1.entry.js +1 -0
- package/dist/magma-components/p-37b801d0.system.entry.js +22 -0
- package/dist/magma-components/{p-2de5f5fe.entry.js → p-3871807a.entry.js} +1 -1
- package/dist/magma-components/{p-154aff83.entry.js → p-38a9e862.entry.js} +1 -1
- package/dist/magma-components/p-3a88fc9b.system.entry.js +1 -0
- package/dist/magma-components/p-3ac09ace.entry.js +1 -0
- package/dist/magma-components/p-3b36319a.entry.js +1 -0
- package/dist/magma-components/{p-8cdad12f.entry.js → p-3ba5ddae.entry.js} +1 -1
- package/dist/magma-components/p-3bb26611.entry.js +1 -0
- package/dist/magma-components/p-3e1b21bd.entry.js +1 -0
- package/dist/magma-components/p-3eaeb263.system.entry.js +25 -0
- package/dist/magma-components/p-3fb98529.system.entry.js +28 -0
- package/dist/magma-components/p-4116e328.system.entry.js +1 -0
- package/dist/magma-components/p-4191bf22.entry.js +1 -0
- package/dist/magma-components/p-4225484c.entry.js +1 -0
- package/dist/magma-components/p-4260da67.system.entry.js +12 -0
- package/dist/magma-components/p-43338a07.entry.js +1 -0
- package/dist/magma-components/p-4582aa3e.system.entry.js +16 -0
- package/dist/magma-components/p-47f7366c.entry.js +1 -0
- package/dist/magma-components/p-495a70e2.entry.js +1 -0
- package/dist/magma-components/p-4a051ef5.system.entry.js +46 -0
- package/dist/magma-components/p-4c2dad1e.system.entry.js +81 -0
- package/dist/magma-components/p-4d079b1a.system.entry.js +26 -0
- package/dist/magma-components/p-4ea00c22.entry.js +1 -0
- package/dist/magma-components/{p-8d2a6896.entry.js → p-4f24ccf3.entry.js} +1 -1
- package/dist/magma-components/{p-ed6e287d.system.entry.js → p-4fdda209.system.entry.js} +4 -4
- package/dist/magma-components/p-505fb7d4.entry.js +1 -0
- package/dist/magma-components/p-51a869ee.entry.js +1 -0
- package/dist/magma-components/p-5219eba6.system.entry.js +4 -0
- package/dist/magma-components/p-52a85b97.system.entry.js +9 -0
- package/dist/magma-components/p-52d5d104.system.entry.js +17 -0
- package/dist/magma-components/p-53bcfdbb.entry.js +1 -0
- package/dist/magma-components/{p-c4ceaef6.system.entry.js → p-5439125d.system.entry.js} +2 -2
- package/dist/magma-components/p-547f657e.system.entry.js +91 -0
- package/dist/magma-components/p-5a2deba5.entry.js +1 -0
- package/dist/magma-components/{p-e238e2eb.entry.js → p-5b21eb78.entry.js} +1 -1
- package/dist/magma-components/p-5d9b1fe5.entry.js +1 -0
- package/dist/magma-components/{p-4dfeb655.system.entry.js → p-5ea3be82.system.entry.js} +2 -2
- package/dist/magma-components/{p-DhhAXEdA.system.js → p-5vJawLPw.system.js} +21 -12
- package/dist/magma-components/p-62e65f3b.entry.js +1 -0
- package/dist/magma-components/p-648ec03b.system.entry.js +73 -0
- package/dist/magma-components/p-69b37755.system.entry.js +17 -0
- package/dist/magma-components/p-6b01ef3b.entry.js +1 -0
- package/dist/magma-components/p-6b2fff4b.system.entry.js +11 -0
- package/dist/magma-components/p-6bc4114c.system.entry.js +19 -0
- package/dist/magma-components/p-6c91b00d.system.entry.js +22 -0
- package/dist/magma-components/p-6da68fd5.entry.js +1 -0
- package/dist/magma-components/p-6ebbcd7b.system.entry.js +14 -0
- package/dist/magma-components/p-70a911e8.entry.js +1 -0
- package/dist/magma-components/p-70f5536c.system.entry.js +15 -0
- package/dist/magma-components/{p-c69ec735.system.entry.js → p-721b625a.system.entry.js} +13 -9
- package/dist/magma-components/p-72cc4977.system.entry.js +21 -0
- package/dist/magma-components/p-7497b39d.system.entry.js +7 -0
- package/dist/magma-components/{p-73e593a2.system.entry.js → p-765ff9a3.system.entry.js} +6 -3
- package/dist/magma-components/p-7a568cbf.entry.js +1 -0
- package/dist/magma-components/p-7d548a19.entry.js +1 -0
- package/dist/magma-components/p-7f776dff.entry.js +1 -0
- package/dist/magma-components/p-8059aa67.system.entry.js +17 -0
- package/dist/magma-components/p-811272a9.entry.js +1 -0
- package/dist/magma-components/p-87b15008.entry.js +1 -0
- package/dist/magma-components/p-88ac5d50.entry.js +1 -0
- package/dist/magma-components/{p-add1a8d0.system.entry.js → p-88be542e.system.entry.js} +2 -2
- package/dist/magma-components/{p-64f78149.system.entry.js → p-890bae38.system.entry.js} +1 -1
- package/dist/magma-components/p-8a4a2b5a.entry.js +1 -0
- package/dist/magma-components/p-8b081ba9.entry.js +1 -0
- package/dist/magma-components/{p-0a9fb138.system.entry.js → p-8ba250d6.system.entry.js} +1 -1
- package/dist/magma-components/p-8d8c9c90.entry.js +1 -0
- package/dist/magma-components/p-8e08ae08.system.entry.js +94 -0
- package/dist/magma-components/p-8f5f2dfe.system.entry.js +19 -0
- package/dist/magma-components/p-90fe332f.entry.js +1 -0
- package/dist/magma-components/p-911dc847.entry.js +1 -0
- package/dist/magma-components/p-916a26e4.entry.js +1 -0
- package/dist/magma-components/p-926ef760.entry.js +1 -0
- package/dist/magma-components/p-93d8b236.system.entry.js +10 -0
- package/dist/magma-components/p-95328cc7.system.entry.js +17 -0
- package/dist/magma-components/p-95486c6a.system.entry.js +5 -0
- package/dist/magma-components/{p-f5bb8c0c.entry.js → p-96f973e3.entry.js} +1 -1
- package/dist/magma-components/p-972ff8a9.entry.js +18 -0
- package/dist/magma-components/p-9a28bd8d.system.entry.js +20 -0
- package/dist/magma-components/p-9bdca8b4.entry.js +1 -0
- package/dist/magma-components/p-9caf411a.system.entry.js +13 -0
- package/dist/magma-components/p-9e4e1a86.system.entry.js +111 -0
- package/dist/magma-components/p-9e7d02e5.entry.js +1 -0
- package/dist/magma-components/p-AEckDMXh.js +1 -0
- package/dist/magma-components/p-B7RVWU-q.js +1 -0
- package/dist/magma-components/{p-CKfEQ187.system.js → p-BHS0WXNt.system.js} +1 -1
- package/dist/magma-components/p-BaFfIZGB.js +1 -0
- package/dist/magma-components/{p-RJ5ZA1kY.system.js → p-BeNKMPXR.system.js} +9 -2
- package/dist/magma-components/{p-Kv1yahtR.js → p-BmT_DEV2.js} +2 -2
- package/dist/magma-components/{p-BTF_aRDG.system.js → p-C1ailvfu.system.js} +28 -28
- package/dist/magma-components/{p-7-TP6wnI.js → p-C25F_FlB.js} +1 -1
- package/dist/magma-components/p-CDjzBTsk.js +1 -0
- package/dist/magma-components/p-CGrPq3C4.js +1 -0
- package/dist/magma-components/p-CPRkNQdE.js +3 -0
- package/dist/magma-components/{p-DaONbL_w.system.js → p-CmzGV0XD.system.js} +44 -44
- package/dist/magma-components/p-Cvhn9asj.js +1 -0
- package/dist/magma-components/{p-hVpoPUxI.system.js → p-D8596ytD.system.js} +8 -8
- package/dist/magma-components/p-D9J8lbUv.system.js +9 -0
- package/dist/magma-components/p-DAifcgtS.system.js +4 -0
- package/dist/magma-components/p-DbyXf6dF.js +1 -0
- package/dist/magma-components/p-JuViHg2B.system.js +11 -0
- package/dist/magma-components/{p-CdsZyFQ-.system.js → p-LUd56iG_.system.js} +1 -1
- package/dist/magma-components/p-QYez4sql.system.js +5 -0
- package/dist/magma-components/{p-BJKToXNf.system.js → p-WSL9tMdv.system.js} +81 -50
- package/dist/magma-components/p-ZaZnuNvg.js +1 -0
- package/dist/magma-components/{p-584a4ee8.system.entry.js → p-a08d20c2.system.entry.js} +1 -1
- package/dist/magma-components/{p-26c85354.system.entry.js → p-a136e6fe.system.entry.js} +6 -1
- package/dist/magma-components/p-a1443292.entry.js +1 -0
- package/dist/magma-components/{p-634727e6.system.entry.js → p-a1ca2441.system.entry.js} +2 -2
- package/dist/magma-components/{p-0d97e28d.system.entry.js → p-a2d10402.system.entry.js} +2 -2
- package/dist/magma-components/p-a2ec6eac.entry.js +1 -0
- package/dist/magma-components/{p-b626c69f.system.entry.js → p-a40443ca.system.entry.js} +1 -1
- package/dist/magma-components/{p-c7d84d1c.system.entry.js → p-a47a9f11.system.entry.js} +1 -1
- package/dist/magma-components/{p-e388f1f2.system.entry.js → p-a4f46de1.system.entry.js} +9 -4
- package/dist/magma-components/p-a51f849a.entry.js +1 -0
- package/dist/magma-components/{p-3fa6cf85.system.entry.js → p-a53f6a94.system.entry.js} +5 -1
- package/dist/magma-components/p-a61623f9.system.entry.js +52 -0
- package/dist/magma-components/p-a6fe6b4c.system.entry.js +1 -0
- package/dist/magma-components/p-a7bad4e8.entry.js +1 -0
- package/dist/magma-components/p-a8593847.entry.js +1 -0
- package/dist/magma-components/p-aa8653b1.system.entry.js +13 -0
- package/dist/magma-components/p-ac4109e3.entry.js +1 -0
- package/dist/magma-components/{p-bba04b08.system.entry.js → p-af704402.system.entry.js} +5 -2
- package/dist/magma-components/p-b36d54e1.system.entry.js +41 -0
- package/dist/magma-components/p-b40ef7ab.system.entry.js +23 -0
- package/dist/magma-components/{p-569cbe13.entry.js → p-b48fc62e.entry.js} +1 -1
- package/dist/magma-components/p-b509fb36.entry.js +1 -0
- package/dist/magma-components/p-b514bd3a.system.entry.js +1 -0
- package/dist/magma-components/p-b58363e2.system.entry.js +31 -0
- package/dist/magma-components/{p-22e9a507.entry.js → p-b62bbd07.entry.js} +1 -1
- package/dist/magma-components/p-b6b7dc40.entry.js +1 -0
- package/dist/magma-components/p-b728638c.system.entry.js +46 -0
- package/dist/magma-components/{p-ac873ab4.entry.js → p-b919ce62.entry.js} +1 -1
- package/dist/magma-components/p-b940888d.entry.js +1 -0
- package/dist/magma-components/p-b9e0b31d.entry.js +1 -0
- package/dist/magma-components/p-bba4c7eb.entry.js +1 -0
- package/dist/magma-components/p-bc30508b.entry.js +1 -0
- package/dist/magma-components/p-be32b7a9.system.entry.js +13 -0
- package/dist/magma-components/p-be741e35.entry.js +1 -0
- package/dist/magma-components/p-c1d8a25e.entry.js +1 -0
- package/dist/magma-components/p-c3622315.entry.js +1 -0
- package/dist/magma-components/p-c4286fb7.system.entry.js +1 -0
- package/dist/magma-components/p-c6db7a0f.system.entry.js +22 -0
- package/dist/magma-components/p-c89c2e30.entry.js +1 -0
- package/dist/magma-components/{p-cefdc01f.system.entry.js → p-ca8e0927.system.entry.js} +2 -2
- package/dist/magma-components/p-cc0cb701.entry.js +1 -0
- package/dist/magma-components/{p-121730d1.entry.js → p-cc109576.entry.js} +1 -1
- package/dist/magma-components/p-cc88c963.system.entry.js +1 -0
- package/dist/magma-components/p-ce2ef293.system.entry.js +48 -0
- package/dist/magma-components/p-d0c0c195.entry.js +1 -0
- package/dist/magma-components/p-d0f257d9.system.entry.js +80 -0
- package/dist/magma-components/p-d3678561.system.entry.js +35 -0
- package/dist/magma-components/p-d8d87750.system.entry.js +21 -0
- package/dist/magma-components/{p-574c2c13.system.entry.js → p-d9551916.system.entry.js} +4 -4
- package/dist/magma-components/p-da532544.system.entry.js +25 -0
- package/dist/magma-components/{p-69d6cc9e.system.entry.js → p-da6cf595.system.entry.js} +2 -2
- package/dist/magma-components/p-da9afc4b.system.entry.js +8 -0
- package/dist/magma-components/p-daf9c8ca.system.entry.js +4 -0
- package/dist/magma-components/p-db75bf05.system.entry.js +49 -0
- package/dist/magma-components/p-dba5a6da.entry.js +1 -0
- package/dist/magma-components/p-dbb82d72.system.entry.js +54 -0
- package/dist/magma-components/p-dbf69d54.system.entry.js +5 -0
- package/dist/magma-components/p-dc3ef031.system.entry.js +27 -0
- package/dist/magma-components/p-dd8fb2f8.system.entry.js +105 -0
- package/dist/magma-components/p-dfbecf72.system.entry.js +11 -0
- package/dist/magma-components/p-e032e77f.system.entry.js +1 -0
- package/dist/magma-components/p-e15a874b.entry.js +1 -0
- package/dist/magma-components/p-e471decd.system.entry.js +32 -0
- package/dist/magma-components/p-e49818c4.entry.js +1 -0
- package/dist/magma-components/{p-6f5a1248.entry.js → p-e5ab1f4f.entry.js} +1 -1
- package/dist/magma-components/p-e6ed6e12.entry.js +1 -0
- package/dist/magma-components/{p-2710ddc4.entry.js → p-e8b9d639.entry.js} +1 -1
- package/dist/magma-components/p-e954b5c5.entry.js +1 -0
- package/dist/magma-components/p-eba7cfb3.entry.js +1 -0
- package/dist/magma-components/p-ecb87d38.entry.js +1 -0
- package/dist/magma-components/p-eebf450c.system.entry.js +4 -0
- package/dist/magma-components/p-ef4d07ba.entry.js +1 -0
- package/dist/magma-components/p-f28e048b.system.entry.js +55 -0
- package/dist/magma-components/{p-789c1b93.system.entry.js → p-f30cdd34.system.entry.js} +1 -1
- package/dist/magma-components/p-f3763382.entry.js +1 -0
- package/dist/magma-components/p-f43379ef.entry.js +1 -0
- package/dist/magma-components/p-f454c06b.entry.js +1 -0
- package/dist/magma-components/p-f48843b7.system.entry.js +1 -0
- package/dist/magma-components/p-f5a08dca.system.entry.js +40 -0
- package/dist/magma-components/p-f7af41fb.system.entry.js +33 -0
- package/dist/magma-components/{p-5c17a324.entry.js → p-f7f6881a.entry.js} +1 -1
- package/dist/magma-components/p-f88c202e.entry.js +1 -0
- package/dist/magma-components/{p-1cb495d3.entry.js → p-f9b5a5ec.entry.js} +1 -1
- package/dist/magma-components/p-fcaa81b3.entry.js +1 -0
- package/dist/magma-components/{p-a462aadd.entry.js → p-fd53a51c.entry.js} +1 -1
- package/dist/magma-components/{p-94e9f2be.system.entry.js → p-ff4276d3.system.entry.js} +7 -2
- package/dist/magma-components/p-nFkaC8l_.system.js +210 -0
- package/dist/magma-components/p-sm_-_oFY.system.js +6 -0
- package/dist/magma-components/{p-8yWTOQiz.js → p-zQY2FlcD.js} +1 -1
- package/dist/stats.json +5466 -4158
- package/dist/types/common/aria.d.ts +8 -1
- package/dist/types/common/file.d.ts +5 -0
- package/dist/types/common/floating-controller.d.ts +8 -1
- package/dist/types/common/keyboard-manager.d.ts +8 -1
- package/dist/types/common/slot.d.ts +9 -1
- package/dist/types/components/mds-accordion/mds-accordion.d.ts +8 -1
- package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +6 -0
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +2 -1
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +13 -9
- package/dist/types/components/mds-avatar-stack/mds-avatar-stack.d.ts +2 -1
- package/dist/types/components/mds-bibliography/mds-bibliography.d.ts +10 -2
- package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +0 -3
- package/dist/types/components/mds-breadcrumb-item/mds-breadcrumb-item.d.ts +4 -1
- package/dist/types/components/mds-button/mds-button.d.ts +7 -1
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +7 -3
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +7 -0
- package/dist/types/components/mds-calendar-cell/mds-calendar-cell.d.ts +4 -1
- package/dist/types/components/mds-card/mds-card.d.ts +8 -0
- package/dist/types/components/mds-card-media/mds-card-media.d.ts +1 -0
- package/dist/types/components/mds-chip/mds-chip.d.ts +7 -5
- package/dist/types/components/mds-details/mds-details.d.ts +3 -1
- package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +8 -3
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +18 -10
- package/dist/types/components/mds-emoji/meta/gaze.d.ts +19 -0
- package/dist/types/components/mds-file/mds-file.d.ts +7 -1
- package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +15 -4
- package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +0 -2
- package/dist/types/components/mds-header/mds-header.d.ts +7 -5
- package/dist/types/components/mds-header/meta/event-detail.d.ts +2 -1
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +3 -2
- package/dist/types/components/mds-help/mds-help.d.ts +5 -2
- package/dist/types/components/mds-horizontal-scroll/mds-horizontal-scroll.d.ts +1 -0
- package/dist/types/components/mds-icon/mds-icon.d.ts +5 -0
- package/dist/types/components/mds-img/mds-img.d.ts +24 -14
- package/dist/types/components/mds-input/mds-input.d.ts +22 -7
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +6 -0
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +4 -0
- package/dist/types/components/mds-input-date-range-preselection/mds-input-date-range-preselection.d.ts +8 -1
- package/dist/types/components/mds-input-field/mds-input-field.d.ts +4 -1
- package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +8 -0
- package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +2 -1
- package/dist/types/components/mds-input-tip-item/meta/dictionary.d.ts +1 -2
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +3 -1
- package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +7 -0
- package/dist/types/components/mds-label/mds-label.d.ts +0 -9
- package/dist/types/components/mds-list-item/mds-list-item.d.ts +2 -0
- package/dist/types/components/mds-mention/mds-mention.d.ts +2 -1
- package/dist/types/components/mds-modal/mds-modal.d.ts +4 -1
- package/dist/types/components/mds-note/mds-note.d.ts +1 -0
- package/dist/types/components/mds-notification/mds-notification.d.ts +25 -2
- package/dist/types/components/mds-paginator/mds-paginator.d.ts +1 -0
- package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +7 -0
- package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +2 -1
- package/dist/types/components/mds-pref/mds-pref.d.ts +6 -1
- package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +8 -0
- package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +8 -0
- package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +8 -2
- package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +2 -2
- package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +1 -0
- package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +6 -1
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +16 -2
- package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +1 -0
- package/dist/types/components/mds-price-table-list/mds-price-table-list.d.ts +1 -0
- package/dist/types/components/mds-price-table-list-item/mds-price-table-list-item.d.ts +1 -0
- package/dist/types/components/mds-progress/mds-progress.d.ts +14 -4
- package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +4 -9
- package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +5 -2
- package/dist/types/components/mds-radial-menu/mds-radial-menu.d.ts +11 -5
- package/dist/types/components/mds-status-bar/mds-status-bar.d.ts +1 -2
- package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +4 -3
- package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +10 -2
- package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +4 -3
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +3 -0
- package/dist/types/components/mds-table/mds-table.d.ts +15 -2
- package/dist/types/components/mds-table-footer/mds-table-footer.d.ts +9 -1
- package/dist/types/components/mds-table-header/mds-table-header.d.ts +9 -1
- package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +5 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +1 -0
- package/dist/types/components/mds-toast/mds-toast.d.ts +39 -8
- package/dist/types/components/mds-toast/meta/event-detail.d.ts +3 -0
- package/dist/types/components/mds-toast-region/mds-toast-region.d.ts +36 -0
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +24 -5
- package/dist/types/components/mds-tree/mds-tree.d.ts +12 -2
- package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +7 -3
- package/dist/types/components/mds-url-view/mds-url-view.d.ts +2 -1
- package/dist/types/components/mds-usage/mds-usage.d.ts +3 -0
- package/dist/types/components.d.ts +253 -119
- package/dist/types/stencil-public-runtime.d.ts +61 -55
- package/package.json +18 -17
- package/dist/cjs/browser-C1BdXKu5.js +0 -10
- package/dist/cjs/keyboard-manager-C_Eaxw-C.js +0 -52
- package/dist/collection/components/mds-avatar/meta/variants.js +0 -20
- package/dist/components/p--5KZXaZp.js +0 -1
- package/dist/components/p--OCrgFeE.js +0 -1
- package/dist/components/p-6LGfUDQ4.js +0 -1
- package/dist/components/p-B9uIL9KO.js +0 -1
- package/dist/components/p-BBDliSai.js +0 -1
- package/dist/components/p-BCwcnHFh.js +0 -1
- package/dist/components/p-BRf-u585.js +0 -1
- package/dist/components/p-BSeokAdy.js +0 -1
- package/dist/components/p-BXUJgu8l.js +0 -1
- package/dist/components/p-BXYUyw7p.js +0 -1
- package/dist/components/p-BfgJ-hHQ.js +0 -1
- package/dist/components/p-CIfGjW_Z.js +0 -1
- package/dist/components/p-CMp9rP7L.js +0 -1
- package/dist/components/p-CSCy6TMW.js +0 -1
- package/dist/components/p-CZjHixVB.js +0 -1
- package/dist/components/p-Ck0q_n7I.js +0 -1
- package/dist/components/p-CrCa_6a1.js +0 -8
- package/dist/components/p-CsgCQiHG.js +0 -1
- package/dist/components/p-Cv7lqHIc.js +0 -1
- package/dist/components/p-Cw6_ooFx.js +0 -1
- package/dist/components/p-DGYRngAi.js +0 -1
- package/dist/components/p-DHu8X7zF.js +0 -1
- package/dist/components/p-DOzcuSrZ.js +0 -1
- package/dist/components/p-DZPHWQtD.js +0 -1
- package/dist/components/p-Dje8Mggf.js +0 -1
- package/dist/components/p-DlRjt7nE.js +0 -1
- package/dist/components/p-HSM_x8fD.js +0 -1
- package/dist/components/p-JMPfVnGv.js +0 -1
- package/dist/components/p-KRu9I7dw.js +0 -1
- package/dist/components/p-lNY_3s6S.js +0 -1
- package/dist/components/p-pBvN1uAc.js +0 -3
- package/dist/esm/aria-CSCy6TMW.js +0 -45
- package/dist/esm/browser-Dje8Mggf.js +0 -8
- package/dist/esm/keyboard-manager-KRu9I7dw.js +0 -50
- package/dist/esm-es5/aria-CSCy6TMW.js +0 -1
- package/dist/esm-es5/browser-Dje8Mggf.js +0 -1
- package/dist/esm-es5/icon-pNJmnrhq.js +0 -1
- package/dist/esm-es5/keyboard-manager-KRu9I7dw.js +0 -5
- package/dist/esm-es5/locale.it-Cvxh7La5.js +0 -6
- package/dist/esm-es5/slot-C0o_l0td.js +0 -23
- package/dist/magma-components/p-00ce5c81.entry.js +0 -1
- package/dist/magma-components/p-00ff586a.system.entry.js +0 -7
- package/dist/magma-components/p-01f05a56.entry.js +0 -1
- package/dist/magma-components/p-0345cbd0.system.entry.js +0 -83
- package/dist/magma-components/p-03a6a8bd.system.entry.js +0 -46
- package/dist/magma-components/p-05de42e1.system.entry.js +0 -1
- package/dist/magma-components/p-063bccb3.entry.js +0 -1
- package/dist/magma-components/p-0a38e4ce.system.entry.js +0 -1
- package/dist/magma-components/p-0c89c485.entry.js +0 -1
- package/dist/magma-components/p-0d94a2b8.entry.js +0 -8
- package/dist/magma-components/p-108e31e6.entry.js +0 -1
- package/dist/magma-components/p-114f0bb7.system.entry.js +0 -14
- package/dist/magma-components/p-137116df.entry.js +0 -1
- package/dist/magma-components/p-13b0babc.system.entry.js +0 -1
- package/dist/magma-components/p-14a108e8.system.entry.js +0 -8
- package/dist/magma-components/p-14eadf95.system.entry.js +0 -21
- package/dist/magma-components/p-155f79f4.system.entry.js +0 -47
- package/dist/magma-components/p-17b62839.entry.js +0 -1
- package/dist/magma-components/p-1802d6a7.entry.js +0 -1
- package/dist/magma-components/p-188d9770.system.entry.js +0 -4
- package/dist/magma-components/p-18ba4766.entry.js +0 -1
- package/dist/magma-components/p-1c63801f.system.entry.js +0 -11
- package/dist/magma-components/p-1c6a507c.system.entry.js +0 -17
- package/dist/magma-components/p-1e2388be.entry.js +0 -1
- package/dist/magma-components/p-24a9871a.system.entry.js +0 -1
- package/dist/magma-components/p-26332bce.system.entry.js +0 -1
- package/dist/magma-components/p-2708561b.system.entry.js +0 -10
- package/dist/magma-components/p-2723caa7.system.entry.js +0 -13
- package/dist/magma-components/p-294241fa.entry.js +0 -1
- package/dist/magma-components/p-2b2d0910.system.entry.js +0 -1
- package/dist/magma-components/p-2c940d19.entry.js +0 -1
- package/dist/magma-components/p-2e74231d.system.entry.js +0 -4
- package/dist/magma-components/p-2e83f801.system.entry.js +0 -1
- package/dist/magma-components/p-2f0815f3.entry.js +0 -18
- package/dist/magma-components/p-30d36dfe.entry.js +0 -1
- package/dist/magma-components/p-323c7aa4.system.entry.js +0 -25
- package/dist/magma-components/p-32e077c0.system.entry.js +0 -7
- package/dist/magma-components/p-334b305d.system.entry.js +0 -16
- package/dist/magma-components/p-341994b3.system.entry.js +0 -89
- package/dist/magma-components/p-35434d4b.system.entry.js +0 -32
- package/dist/magma-components/p-37495e03.entry.js +0 -1
- package/dist/magma-components/p-38e0379a.system.entry.js +0 -10
- package/dist/magma-components/p-3b91efd1.entry.js +0 -1
- package/dist/magma-components/p-3dc4db04.system.entry.js +0 -16
- package/dist/magma-components/p-3f0e82bc.entry.js +0 -1
- package/dist/magma-components/p-40e97485.entry.js +0 -1
- package/dist/magma-components/p-4159c306.entry.js +0 -1
- package/dist/magma-components/p-42411854.system.entry.js +0 -102
- package/dist/magma-components/p-42ebba8c.entry.js +0 -1
- package/dist/magma-components/p-4356d96e.system.entry.js +0 -21
- package/dist/magma-components/p-4577948d.system.entry.js +0 -12
- package/dist/magma-components/p-4658a200.entry.js +0 -1
- package/dist/magma-components/p-4cfa925a.entry.js +0 -1
- package/dist/magma-components/p-4ef19542.entry.js +0 -1
- package/dist/magma-components/p-4oB0woT9.system.js +0 -6
- package/dist/magma-components/p-522fd3d0.system.entry.js +0 -4
- package/dist/magma-components/p-528d913c.system.entry.js +0 -17
- package/dist/magma-components/p-595fde64.entry.js +0 -1
- package/dist/magma-components/p-5989cdf2.system.entry.js +0 -16
- package/dist/magma-components/p-5df91427.system.entry.js +0 -15
- package/dist/magma-components/p-5f1132b8.entry.js +0 -1
- package/dist/magma-components/p-5fcc1455.entry.js +0 -1
- package/dist/magma-components/p-61638aa3.entry.js +0 -1
- package/dist/magma-components/p-6465c8f4.entry.js +0 -1
- package/dist/magma-components/p-6764b13a.entry.js +0 -1
- package/dist/magma-components/p-6812f01b.entry.js +0 -1
- package/dist/magma-components/p-6901428b.system.entry.js +0 -1
- package/dist/magma-components/p-699a7926.entry.js +0 -1
- package/dist/magma-components/p-6a798061.entry.js +0 -1
- package/dist/magma-components/p-6d350c7c.entry.js +0 -1
- package/dist/magma-components/p-6fba5e6c.entry.js +0 -1
- package/dist/magma-components/p-6fd9a2ae.entry.js +0 -1
- package/dist/magma-components/p-6ff8be3e.system.entry.js +0 -30
- package/dist/magma-components/p-70caf05b.system.entry.js +0 -10
- package/dist/magma-components/p-70cc167f.entry.js +0 -1
- package/dist/magma-components/p-736c0e25.system.entry.js +0 -20
- package/dist/magma-components/p-7450a7a7.system.entry.js +0 -49
- package/dist/magma-components/p-7535328a.entry.js +0 -1
- package/dist/magma-components/p-76f02296.system.entry.js +0 -1
- package/dist/magma-components/p-79bc2e81.entry.js +0 -1
- package/dist/magma-components/p-79dc2243.entry.js +0 -1
- package/dist/magma-components/p-7b1c6eb0.entry.js +0 -1
- package/dist/magma-components/p-7b8b51c8.entry.js +0 -1
- package/dist/magma-components/p-7bc0a6c4.entry.js +0 -1
- package/dist/magma-components/p-7c8e79a7.system.entry.js +0 -4
- package/dist/magma-components/p-7c90298a.entry.js +0 -1
- package/dist/magma-components/p-7e02237b.entry.js +0 -1
- package/dist/magma-components/p-7f247e64.system.entry.js +0 -16
- package/dist/magma-components/p-82480df5.entry.js +0 -1
- package/dist/magma-components/p-842b1dfc.entry.js +0 -1
- package/dist/magma-components/p-88c7be3d.system.entry.js +0 -68
- package/dist/magma-components/p-89733d3a.system.entry.js +0 -14
- package/dist/magma-components/p-8c75425d.entry.js +0 -1
- package/dist/magma-components/p-8c76410b.entry.js +0 -1
- package/dist/magma-components/p-8d7835e2.system.entry.js +0 -10
- package/dist/magma-components/p-8f039ca0.system.entry.js +0 -7
- package/dist/magma-components/p-8f54cf62.system.entry.js +0 -4
- package/dist/magma-components/p-8f6bd147.entry.js +0 -1
- package/dist/magma-components/p-9017022c.system.entry.js +0 -15
- package/dist/magma-components/p-909f5b60.system.entry.js +0 -55
- package/dist/magma-components/p-976bb373.system.entry.js +0 -90
- package/dist/magma-components/p-97d82884.system.entry.js +0 -16
- package/dist/magma-components/p-97de86c6.system.entry.js +0 -16
- package/dist/magma-components/p-97e9a197.system.entry.js +0 -32
- package/dist/magma-components/p-9a936cae.system.entry.js +0 -45
- package/dist/magma-components/p-9c6d184f.entry.js +0 -1
- package/dist/magma-components/p-9db0a6e9.entry.js +0 -1
- package/dist/magma-components/p-9e662528.entry.js +0 -1
- package/dist/magma-components/p-9ff02a82.entry.js +0 -1
- package/dist/magma-components/p-B6mQg6yQ.js +0 -1
- package/dist/magma-components/p-BJqUjYIG.system.js +0 -1
- package/dist/magma-components/p-BJtA1qmE.js +0 -1
- package/dist/magma-components/p-BcYSdbK0.system.js +0 -233
- package/dist/magma-components/p-BeYLDgbf.js +0 -1
- package/dist/magma-components/p-BxPbQB28.js +0 -3
- package/dist/magma-components/p-C0o_l0td.js +0 -1
- package/dist/magma-components/p-CSCy6TMW.js +0 -1
- package/dist/magma-components/p-CYRMc5KW.system.js +0 -1
- package/dist/magma-components/p-Dje8Mggf.js +0 -1
- package/dist/magma-components/p-JMPfVnGv.js +0 -1
- package/dist/magma-components/p-KRu9I7dw.js +0 -1
- package/dist/magma-components/p-LerCJgfP.system.js +0 -5
- package/dist/magma-components/p-ZDRIVCAt.system.js +0 -5
- package/dist/magma-components/p-a3e3a653.system.entry.js +0 -81
- package/dist/magma-components/p-a41e52f7.entry.js +0 -1
- package/dist/magma-components/p-a4c26b4d.system.entry.js +0 -19
- package/dist/magma-components/p-a61c7ae9.system.entry.js +0 -7
- package/dist/magma-components/p-a653e096.entry.js +0 -1
- package/dist/magma-components/p-a8bf46cb.system.entry.js +0 -1
- package/dist/magma-components/p-ac4435e7.entry.js +0 -1
- package/dist/magma-components/p-acae292f.system.entry.js +0 -28
- package/dist/magma-components/p-b1a0e56e.system.entry.js +0 -42
- package/dist/magma-components/p-b33a6f7e.system.entry.js +0 -13
- package/dist/magma-components/p-b492dd4c.entry.js +0 -1
- package/dist/magma-components/p-b99cac43.entry.js +0 -1
- package/dist/magma-components/p-baf0359b.entry.js +0 -1
- package/dist/magma-components/p-bbd414dc.entry.js +0 -1
- package/dist/magma-components/p-be1aad5f.entry.js +0 -1
- package/dist/magma-components/p-bf05f9f3.entry.js +0 -1
- package/dist/magma-components/p-bf8c6647.system.entry.js +0 -11
- package/dist/magma-components/p-bfe19e4b.entry.js +0 -1
- package/dist/magma-components/p-c1a7266a.entry.js +0 -1
- package/dist/magma-components/p-c3585de7.system.entry.js +0 -7
- package/dist/magma-components/p-c45d9a64.system.entry.js +0 -32
- package/dist/magma-components/p-cb8b45fd.entry.js +0 -1
- package/dist/magma-components/p-cbfd8b10.system.entry.js +0 -16
- package/dist/magma-components/p-ce46191c.entry.js +0 -1
- package/dist/magma-components/p-cebe7b52.entry.js +0 -1
- package/dist/magma-components/p-d025a34f.system.entry.js +0 -15
- package/dist/magma-components/p-d1c47baa.entry.js +0 -1
- package/dist/magma-components/p-d269bfb0.entry.js +0 -1
- package/dist/magma-components/p-d42f267b.system.entry.js +0 -40
- package/dist/magma-components/p-d5bd6bef.entry.js +0 -1
- package/dist/magma-components/p-d65d8a09.system.entry.js +0 -1
- package/dist/magma-components/p-d6eca2ef.entry.js +0 -1
- package/dist/magma-components/p-d716efe9.system.entry.js +0 -1
- package/dist/magma-components/p-da6ccc03.entry.js +0 -1
- package/dist/magma-components/p-dbaf5368.system.entry.js +0 -7
- package/dist/magma-components/p-dc340618.entry.js +0 -1
- package/dist/magma-components/p-dc752e9b.entry.js +0 -1
- package/dist/magma-components/p-e2ef1d6f.entry.js +0 -1
- package/dist/magma-components/p-e50fdcee.entry.js +0 -1
- package/dist/magma-components/p-e779a67f.system.entry.js +0 -10
- package/dist/magma-components/p-e8ae4016.system.entry.js +0 -1
- package/dist/magma-components/p-e8d95868.system.entry.js +0 -14
- package/dist/magma-components/p-ed232c76.entry.js +0 -1
- package/dist/magma-components/p-ed87425c.system.entry.js +0 -13
- package/dist/magma-components/p-ee876b20.system.entry.js +0 -4
- package/dist/magma-components/p-efe0bb12.system.entry.js +0 -7
- package/dist/magma-components/p-f2412853.system.entry.js +0 -27
- package/dist/magma-components/p-f2743a2b.entry.js +0 -1
- package/dist/magma-components/p-f2f2945b.entry.js +0 -1
- package/dist/magma-components/p-f37f1343.entry.js +0 -1
- package/dist/magma-components/p-f3dd135e.system.entry.js +0 -32
- package/dist/magma-components/p-f5ce24e8.entry.js +0 -1
- package/dist/magma-components/p-f8a88f11.entry.js +0 -1
- package/dist/magma-components/p-f900fe90.entry.js +0 -1
- package/dist/magma-components/p-faa1f22c.entry.js +0 -1
- package/dist/magma-components/p-lozaO1BU.system.js +0 -1
- package/dist/magma-components/p-pNJmnrhq.js +0 -1
- package/dist/types/components/mds-avatar/meta/variants.d.ts +0 -2
|
@@ -1,162 +1,175 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function o(t){try{
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function o(t){try{a(n.next(t))}catch(t){s(t)}}function u(t){try{a(n["throw"](t))}catch(t){s(t)}}function a(t){t.done?e(t.value):r(t.value).then(o,u)}a((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(i){return a([t,i])}}function a(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(e=0)),e)try{if(n=1,r&&(s=u[0]&2?r["return"]:u[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;if(r=0,s)u=[u[0]&2,s.value];switch(u[0]){case 0:case 1:s=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;r=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){e.label=u[1];break}if(u[0]===6&&e.label<s[1]){e.label=s[1];s=u;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(u);break}if(s[2])e.ops.pop();e.trys.pop();continue}u=i.call(t,e)}catch(t){u=[6,t];r=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-CmzGV0XD.system.js","./p-_X0N_X__.system.js","./p-D8596ytD.system.js"],(function(t){"use strict";var i,e,n,r,s,o,u,a,f;return{setters:[function(t){i=t.r;e=t.h;n=t.e;r=t.g;s=t.B},function(t){o=t.b;u=t.d;a=t.a},function(t){f=t.a}],execute:function(){
|
|
2
|
+
/**
|
|
3
|
+
* Where the emoji looks, as the two signed fractions `rotate()` takes, in -1..1.
|
|
4
|
+
*
|
|
5
|
+
* The direction is the direction of the point from the centre of the emoji, and nothing
|
|
6
|
+
* else: the size of the emoji does not enter it. The intensity grows with the distance up
|
|
7
|
+
* to `reach` and stops there on the length of the vector, so a far point keeps its angle.
|
|
8
|
+
* Dividing each axis by half the size of the emoji and clamping it on its own (#800) made
|
|
9
|
+
* a small emoji saturate at once, and turned every far point into one of eight poses: a
|
|
10
|
+
* point at 20 degrees and one at 70 degrees below and to the right looked the same.
|
|
11
|
+
*/
|
|
12
|
+
var h=function(t,i,e){var n=Math.hypot(t,i);if(n===0||!(e>0))return{x:0,y:0};var r=Math.min(n/e,1);return{x:t/n*r,y:i/n*r}};
|
|
13
|
+
/**
|
|
14
|
+
* How far the point has to be for the emoji to turn all the way: half the short side of the
|
|
15
|
+
* viewport, whatever the size of the emoji.
|
|
16
|
+
*/var l=function(t,i){return Math.min(t,i)/2};function c(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function d(t,i){t.prototype=Object.create(i.prototype);t.prototype.constructor=t;t.__proto__=i}
|
|
2
17
|
/*!
|
|
3
|
-
* GSAP 3.
|
|
18
|
+
* GSAP 3.15.0
|
|
4
19
|
* https://gsap.com
|
|
5
20
|
*
|
|
6
|
-
* @license Copyright 2008-
|
|
21
|
+
* @license Copyright 2008-2026, GreenSock. All rights reserved.
|
|
7
22
|
* Subject to the terms at https://gsap.com/standard-license
|
|
8
23
|
* @author: Jack Doyle, jack@greensock.com
|
|
9
24
|
*/
|
|
10
|
-
/* eslint-disable */var
|
|
25
|
+
/* eslint-disable */var m={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},v={duration:.5,overwrite:false,delay:0},p,g,C,w=1e8,y=1/w,M=Math.PI*2,j=M/4,b=0,x=Math.sqrt,k=Math.cos,F=Math.sin,_=function t(i){return typeof i==="string"},P=function t(i){return typeof i==="function"},O=function t(i){return typeof i==="number"},Z=function t(i){return typeof i==="undefined"},E=function t(i){return typeof i==="object"},B=function t(i){return i!==false},T=function t(){return typeof window!=="undefined"},R=function t(i){return P(i)||_(i)},Y=typeof ArrayBuffer==="function"&&ArrayBuffer.isView||function(){},
|
|
11
26
|
// note: IE10 has ArrayBuffer, but NOT ArrayBuffer.isView().
|
|
12
|
-
|
|
27
|
+
S=Array.isArray,z=/random\([^)]+\)/g,H=/,\s*/g,I=/(?:-?\.?\d|\.)+/gi,
|
|
13
28
|
//only numbers (including negatives and decimals) but NOT relative values.
|
|
14
|
-
|
|
29
|
+
D=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,
|
|
15
30
|
//finds any numbers, including ones that start with += or -=, negative numbers, and ones in scientific notation like 1e-8.
|
|
16
|
-
|
|
31
|
+
L=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,X=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,
|
|
17
32
|
//duplicate so that while we're looping through matches from exec(), it doesn't contaminate the lastIndex of _numExp which we use to search for colors too.
|
|
18
|
-
|
|
33
|
+
V=/[+-]=-?[.\d]+/,A=/[^,'"\[\]\s]+/gi,
|
|
19
34
|
// previously /[#\-+.]*\b[a-z\d\-=+%.]+/gi but didn't catch special characters.
|
|
20
|
-
|
|
35
|
+
U=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,N,q,W,$,G={},Q={},J,K=function t(i){return(Q=Et(i,G))&&Ge},tt=function t(i,e){return console.warn("Invalid property",i,"set to",e,"Missing plugin? gsap.registerPlugin()")},it=function t(i,e){return!e&&console.warn(i)},et=function t(i,e){return i&&(G[i]=e)&&Q&&(Q[i]=e)||G},nt=function t(){return 0},rt={suppressEvents:true,isStart:true,kill:false},st={suppressEvents:true,kill:false},ot={suppressEvents:true},ut={},at=[],ft={},ht,lt={},ct={},dt=30,mt=[],vt="",pt=function t(i){var e=i[0],n,r;E(e)||P(e)||(i=[i]);if(!(n=(e._gsap||{}).harness)){
|
|
21
36
|
// find the first target with a harness. We assume targets passed into an animation will be of similar type, meaning the same kind of harness can be used for them all (performance optimization)
|
|
22
|
-
r=
|
|
37
|
+
r=mt.length;while(r--&&!mt[r].targetTest(e)){}n=mt[r]}r=i.length;while(r--){i[r]&&(i[r]._gsap||(i[r]._gsap=new oe(i[r],n)))||i.splice(r,1)}return i},gt=function t(i){return i._gsap||pt(mi(i))[0]._gsap},Ct=function t(i,e,n){return(n=i[e])&&P(n)?i[e]():Z(n)&&i.getAttribute&&i.getAttribute(e)||n},wt=function t(i,e){return(i=i.split(",")).forEach(e)||i},
|
|
23
38
|
//split a comma-delimited list of names into an array, then run a forEach() function and return the split array (this is just a way to consolidate/shorten some code).
|
|
24
|
-
|
|
39
|
+
yt=function t(i){return Math.round(i*1e5)/1e5||0},Mt=function t(i){return Math.round(i*1e7)/1e7||0},
|
|
25
40
|
// increased precision mostly for timing values.
|
|
26
|
-
|
|
41
|
+
jt=function t(i,e){var n=e.charAt(0),r=parseFloat(e.substr(2));i=parseFloat(i);return n==="+"?i+r:n==="-"?i-r:n==="*"?i*r:i/r},bt=function t(i,e){
|
|
27
42
|
//searches one array to find matches for any of the items in the toFind array. As soon as one is found, it returns true. It does NOT return all the matches; it's simply a boolean search.
|
|
28
|
-
var n=e.length,r=0;for(;i.indexOf(e[r])<0&&++r<n;){}return r<n},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
43
|
+
var n=e.length,r=0;for(;i.indexOf(e[r])<0&&++r<n;){}return r<n},xt=function t(){var i=at.length,e=at.slice(0),n,r;ft={};at.length=0;for(n=0;n<i;n++){r=e[n];r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],true)._lazy=0)}},kt=function t(i){return!!(i._initted||i._startAt||i.add)},Ft=function t(i,e,n,r){at.length&&!g&&xt();i.render(e,n,!!(g&&e<0&&kt(i)));at.length&&!g&&xt();//in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render.
|
|
44
|
+
},_t=function t(i){var e=parseFloat(i);return(e||e===0)&&(i+"").match(A).length<2?e:_(i)?i.trim():i},Pt=function t(i){return i},Ot=function t(i,e){for(var n in e){n in i||(i[n]=e[n])}return i},Zt=function t(i){return function(t,e){for(var n in e){n in t||n==="duration"&&i||n==="ease"||(t[n]=e[n])}}},Et=function t(i,e){for(var n in e){i[n]=e[n]}return i},Bt=function t(i,e){for(var n in e){n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(i[n]=E(e[n])?t(i[n]||(i[n]={}),e[n]):e[n])}return i},Tt=function t(i,e){var n={},r;for(r in i){r in e||(n[r]=i[r])}return n},Rt=function t(i){var e=i.parent||N,n=i.keyframes?Zt(S(i.keyframes)):Ot;if(B(i.inherit)){while(e){n(i,e.vars.defaults);e=e.parent||e._dp}}return i},Yt=function t(i,e){var n=i.length,r=n===e.length;while(r&&n--&&i[n]===e[n]){}return n<0},St=function t(i,e,n,r,s){var o=i[r],u;if(s){u=e[s];while(o&&o[s]>u){o=o._prev}}if(o){e._next=o._next;o._next=e}else{e._next=i[n];i[n]=e}if(e._next){e._next._prev=e}else{i[r]=e}e._prev=o;e.parent=e._dp=i;return e},zt=function t(i,e,n,r){if(n===void 0){n="_first"}if(r===void 0){r="_last"}var s=e._prev,o=e._next;if(s){s._next=o}else if(i[n]===e){i[n]=o}if(o){o._prev=s}else if(i[r]===e){i[r]=s}e._next=e._prev=e.parent=null;// don't delete the _dp just so we can revert if necessary. But parent should be null to indicate the item isn't in a linked list.
|
|
45
|
+
},Ht=function t(i,e){i.parent&&(!e||i.parent.autoRemoveChildren)&&i.parent.remove&&i.parent.remove(i);i._act=0},It=function t(i,e){if(i&&(!e||e._end>i._dur||e._start<0)){
|
|
31
46
|
// performance optimization: if a child animation is passed in we should only uncache if that child EXTENDS the animation (its end time is beyond the end)
|
|
32
|
-
var n=i;while(n){n._dirty=1;n=n.parent}}return i},
|
|
47
|
+
var n=i;while(n){n._dirty=1;n=n.parent}}return i},Dt=function t(i){var e=i.parent;while(e&&e.parent){
|
|
33
48
|
//sometimes we must force a re-sort of all children and update the duration/totalDuration of all ancestor timelines immediately in case, for example, in the middle of a render loop, one tween alters another tween's timeScale which shoves its startTime before 0, forcing the parent timeline to shift around and shiftChildren() which could affect that next tween's render (startTime). Doesn't matter for the root timeline though.
|
|
34
|
-
e._dirty=1;e.totalDuration();e=e.parent}return i},
|
|
49
|
+
e._dirty=1;e.totalDuration();e=e.parent}return i},Lt=function t(i,e,n,r){return i._startAt&&(g?i._startAt.revert(st):i.vars.immediateRender&&!i.vars.autoRevert||i._startAt.render(e,true,r))},Xt=function t(i){return!i||i._ts&&t(i.parent)},Vt=function t(i){return i._repeat?At(i._tTime,i=i.duration()+i._rDelay)*i:0},
|
|
35
50
|
// feed in the totalTime and cycleDuration and it'll return the cycle (iteration minus 1) and if the playhead is exactly at the very END, it will NOT bump up to the next cycle.
|
|
36
|
-
|
|
51
|
+
At=function t(i,e){var n=Math.floor(i=Mt(i/e));return i&&n===i?n-1:n},Ut=function t(i,e){return(i-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Nt=function t(i){return i._end=Mt(i._start+(i._tDur/Math.abs(i._ts||i._rts||y)||0))},qt=function t(i,e){
|
|
37
52
|
// adjusts the animation's _start and _end according to the provided totalTime (only if the parent's smoothChildTiming is true and the animation isn't paused). It doesn't do any rendering or forcing things back into parent timelines, etc. - that's what totalTime() is for.
|
|
38
|
-
var n=i._dp;if(n&&n.smoothChildTiming&&i._ts){i._start=
|
|
53
|
+
var n=i._dp;if(n&&n.smoothChildTiming&&i._ts){i._start=Mt(n._time-(i._ts>0?e/i._ts:((i._dirty?i.totalDuration():i._tDur)-e)/-i._ts));Nt(i);n._dirty||It(n,i);//for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here.
|
|
39
54
|
}return i},
|
|
40
55
|
/*
|
|
41
56
|
_totalTimeToTime = (clampedTotalTime, duration, repeat, repeatDelay, yoyo) => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
57
|
+
let cycleDuration = duration + repeatDelay,
|
|
58
|
+
time = _round(clampedTotalTime % cycleDuration);
|
|
59
|
+
if (time > duration) {
|
|
60
|
+
time = duration;
|
|
61
|
+
}
|
|
62
|
+
return (yoyo && (~~(clampedTotalTime / cycleDuration) & 1)) ? duration - time : time;
|
|
48
63
|
},
|
|
49
64
|
*/
|
|
50
|
-
|
|
65
|
+
Wt=function t(i,e){var n;if(e._time||!e._dur&&e._initted||e._start<i._time&&(e._dur||!e.add)){
|
|
51
66
|
// in case, for example, the _start is moved on a tween that has already rendered, or if it's being inserted into a timeline BEFORE where the playhead is currently. Imagine it's at its end state, then the startTime is moved WAY later (after the end of this timeline), it should render at its beginning. Special case: if it's a timeline (has .add() method) and no duration, we can skip rendering because the user may be populating it AFTER adding it to a parent timeline (unconventional, but possible, and we wouldn't want it to get removed if the parent's autoRemoveChildren is true).
|
|
52
|
-
n=
|
|
53
|
-
if(
|
|
67
|
+
n=Ut(i.rawTime(),e);if(!e._dur||ai(0,e.totalDuration(),n)-e._tTime>y){e.render(n,true)}}//if the timeline has already ended but the inserted tween/timeline extends the duration, we should enable this timeline again so that it renders properly. We should also align the playhead with the parent timeline's when appropriate.
|
|
68
|
+
if(It(i,e)._dp&&i._initted&&i._time>=i._dur&&i._ts){
|
|
54
69
|
//in case any of the ancestors had completed but should now be enabled...
|
|
55
70
|
if(i._dur<i.duration()){n=i;while(n._dp){n.rawTime()>=0&&n.totalTime(n._tTime);//moves the timeline (shifts its startTime) if necessary, and also enables it. If it's currently zero, though, it may not be scheduled to render until later so there's no need to force it to align with the current playhead position. Only move to catch up with the playhead.
|
|
56
|
-
n=n._dp}}i._zTime=-
|
|
57
|
-
}}
|
|
58
|
-
return i},
|
|
71
|
+
n=n._dp}}i._zTime=-y;// helps ensure that the next render() will be forced (crossingStart = true in render()), even if the duration hasn't changed (we're adding a child which would need to get rendered). Definitely an edge case. Note: we MUST do this AFTER the loop above where the totalTime() might trigger a render() because this _addToTimeline() method gets called from the Animation constructor, BEFORE tweens even record their targets, etc. so we wouldn't want things to get triggered in the wrong order.
|
|
72
|
+
}},$t=function t(i,e,n,r){e.parent&&Ht(e);e._start=Mt((O(n)?n:n||i!==N?si(i,n,e):i._time)+e._delay);e._end=Mt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0));St(i,e,"_first","_last",i._sort?"_start":0);Kt(e)||(i._recent=e);r||Wt(i,e);i._ts<0&&qt(i,i._tTime);// if the timeline is reversed and the new child makes it longer, we may need to adjust the parent's _start (push it back)
|
|
73
|
+
return i},Gt=function t(i,e){return(G.ScrollTrigger||tt("scrollTrigger",e))&&G.ScrollTrigger.create(e,i)},Qt=function t(i,e,n,r,s){ve(i,e,s);if(!i._initted){return 1}if(!n&&i._pt&&!g&&(i._dur&&i.vars.lazy!==false||!i._dur&&i.vars.lazy)&&ht!==Ni.frame){at.push(i);i._lazy=[s,r];return 1}},Jt=function t(i){var e=i.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||t(e))},
|
|
59
74
|
// check parent's _lock because when a timeline repeats/yoyos and does its artificial wrapping, we shouldn't force the ratio back to 0
|
|
60
|
-
|
|
75
|
+
Kt=function t(i){var e=i.data;return e==="isFromStart"||e==="isStart"},ti=function t(i,e,n,r){var s=i.ratio,o=e<0||!e&&(!i._start&&Jt(i)&&!(!i._initted&&Kt(i))||(i._ts<0||i._dp._ts<0)&&!Kt(i))?0:1,
|
|
61
76
|
// if the tween or its parent is reversed and the totalTime is 0, we should go to a ratio of 0. Edge case: if a from() or fromTo() stagger tween is placed later in a timeline, the "startAt" zero-duration tween could initially render at a time when the parent timeline's playhead is technically BEFORE where this tween is, so make sure that any "from" and "fromTo" startAt tweens are rendered the first time at a ratio of 1.
|
|
62
|
-
|
|
77
|
+
u=i._rDelay,a=0,f,h,l;if(u&&i._repeat){
|
|
63
78
|
// in case there's a zero-duration tween that has a repeat with a repeatDelay
|
|
64
|
-
|
|
79
|
+
a=ai(0,i._tDur,e);h=At(a,u);i._yoyo&&h&1&&(o=1-o);if(h!==At(i._tTime,u)){
|
|
65
80
|
// if iteration changed
|
|
66
|
-
s=1-o;i.vars.repeatRefresh&&i._initted&&i.invalidate()}}if(o!==s||
|
|
81
|
+
s=1-o;i.vars.repeatRefresh&&i._initted&&i.invalidate()}}if(o!==s||g||r||i._zTime===y||!e&&i._zTime){if(!i._initted&&Qt(i,e,r,n,a)){
|
|
67
82
|
// if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.
|
|
68
|
-
return}l=i._zTime;i._zTime=e||(n?
|
|
83
|
+
return}l=i._zTime;i._zTime=e||(n?y:0);// when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.
|
|
69
84
|
n||(n=e&&!l);// if it was rendered previously at exactly 0 (_zTime) and now the playhead is moving away, DON'T fire callbacks otherwise they'll seem like duplicates.
|
|
70
|
-
i.ratio=o;i._from&&(o=1-o);i._time=0;i._tTime=
|
|
85
|
+
i.ratio=o;i._from&&(o=1-o);i._time=0;i._tTime=a;f=i._pt;while(f){f.r(o,f.d);f=f._next}e<0&&Lt(i,e,n,true);i._onUpdate&&!n&&Ei(i,"onUpdate");a&&i._repeat&&!n&&i.parent&&Ei(i,"onRepeat");if((e>=i._tDur||e<0)&&i.ratio===o){o&&Ht(i,1);if(!n&&!g){Ei(i,o?"onComplete":"onReverseComplete",true);i._prom&&i._prom()}}}else if(!i._zTime){i._zTime=e}},ii=function t(i,e,n){var r;if(n>e){r=i._first;while(r&&r._start<=n){if(r.data==="isPause"&&r._start>e){return r}r=r._next}}else{r=i._last;while(r&&r._start>=n){if(r.data==="isPause"&&r._start<e){return r}r=r._prev}}},ei=function t(i,e,n,r){var s=i._repeat,o=Mt(e)||0,u=i._tTime/i._tDur;u&&!r&&(i._time*=o/i._dur);i._dur=o;i._tDur=!s?o:s<0?1e10:Mt(o*(s+1)+i._rDelay*s);u>0&&!r&&qt(i,i._tTime=i._tDur*u);i.parent&&Nt(i);n||It(i.parent,i);return i},ni=function t(i){return i instanceof ae?It(i):ei(i,i._dur)},ri={_start:0,endTime:nt,totalDuration:nt},si=function t(i,e,n){var r=i.labels,s=i._recent||ri,o=i.duration()>=w?s.endTime(false):i._dur,
|
|
71
86
|
//in case there's a child that infinitely repeats, users almost never intend for the insertion point of a new child to be based on a SUPER long value like that so we clip it and assume the most recently-added child's endTime should be used instead.
|
|
72
|
-
a,
|
|
87
|
+
u,a,f;if(_(e)&&(isNaN(e)||e in r)){
|
|
73
88
|
//if the string is a number like "1", check to see if there's a label with that name, otherwise interpret it as a number (absolute value).
|
|
74
|
-
|
|
89
|
+
a=e.charAt(0);f=e.substr(-1)==="%";u=e.indexOf("=");if(a==="<"||a===">"){u>=0&&(e=e.replace(/=/,""));return(a==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(e.substr(1))||0)*(f?(u<0?s:n).totalDuration()/100:1)}if(u<0){e in r||(r[e]=o);return r[e]}a=parseFloat(e.charAt(u-1)+e.substr(u+1));if(f&&n){a=a/100*(S(n)?n[0]:n).totalDuration()}return u>1?t(i,e.substr(0,u-1),n)+a:o+a}return e==null?o:+e},oi=function t(i,e,n){var r=O(e[1]),s=(r?2:1)+(i<2?0:1),o=e[s],u,a;r&&(o.duration=e[1]);o.parent=n;if(i){u=o;a=n;while(a&&!("immediateRender"in u)){
|
|
75
90
|
// inheritance hasn't happened yet, but someone may have set a default in an ancestor timeline. We could do vars.immediateRender = _isNotFalse(_inheritDefaults(vars).immediateRender) but that'd exact a slight performance penalty because _inheritDefaults() also runs in the Tween constructor. We're paying a small kb price here to gain speed.
|
|
76
|
-
a
|
|
77
|
-
}return new
|
|
91
|
+
u=a.vars.defaults||{};a=B(a.vars.inherit)&&a.parent}o.immediateRender=B(u.immediateRender);i<2?o.runBackwards=1:o.startAt=e[s-1];// "from" vars
|
|
92
|
+
}return new je(e[0],o,e[s+1])},ui=function t(i,e){return i||i===0?e(i):e},ai=function t(i,e,n){return n<i?i:n>e?e:n},fi=function t(i,e){return!_(i)||!(e=U.exec(i))?"":e[1]},
|
|
78
93
|
// note: protect against padded numbers as strings, like "100.100". That shouldn't return "00" as the unit. If it's numeric, return no unit.
|
|
79
|
-
|
|
80
|
-
//takes any value and returns an
|
|
81
|
-
|
|
94
|
+
hi=function t(i,e,n){return ui(n,(function(t){return ai(i,e,t)}))},li=[].slice,ci=function t(i,e){return i&&E(i)&&"length"in i&&(!e&&!i.length||i.length-1 in i&&E(i[0]))&&!i.nodeType&&i!==q},di=function t(i,e,n){if(n===void 0){n=[]}return i.forEach((function(t){var i;return _(t)&&!e||ci(t,1)?(i=n).push.apply(i,mi(t)):n.push(t)}))||n},
|
|
95
|
+
// takes any value and returns an Array. If it's a string (and leaveStrings isn't true), it'll use document.querySelectorAll() and convert that to an array. It'll also accept iterables like jQuery objects.
|
|
96
|
+
mi=function t(i,e,n){return C&&!e&&C.selector?C.selector(i):_(i)&&!n&&(W||!qi())?li.call((e||$).querySelectorAll(i),0):S(i)?di(i,n):ci(i)?li.call(i,0):i?[i]:[]},vi=function t(i){i=mi(i)[0]||it("Invalid scope")||{};return function(t){var e=i.current||i.nativeElement||i;return mi(t,e.querySelectorAll?e:e===i?it("Invalid scope")||$.createElement("div"):i)}},pi=function t(i){return i.sort((function(){return.5-Math.random()}))},
|
|
82
97
|
// alternative that's a bit faster and more reliably diverse but bigger: for (let j, v, i = a.length; i; j = (Math.random() * i) | 0, v = a[--i], a[i] = a[j], a[j] = v); return a;
|
|
83
|
-
//for distributing values across an
|
|
84
|
-
|
|
98
|
+
// for distributing values across an Array. Can accept a number, a function or (most commonly) an object which can contain the following properties: {base, amount, from, ease, grid, axis, length, each}. Returns a function that expects the following parameters: index, target, array.
|
|
99
|
+
gi=function t(i){if(P(i)){return i}var e=E(i)?i:{each:i},
|
|
85
100
|
//n:1 is just to indicate v was a number; we leverage that later to set v according to the length we get. If a number is passed in, we treat it like the old stagger value where 0.1, for example, would mean that things would be distributed with 0.1 between each element in the array rather than a total "amount" that's chunked out among them all.
|
|
86
|
-
n=
|
|
87
|
-
n=n&&c<0?
|
|
88
|
-
}},
|
|
101
|
+
n=ie(e.ease),r=e.from||0,s=parseFloat(e.base)||0,o={},u=r>0&&r<1,a=isNaN(r)||u,f=e.axis,h=r,l=r;if(_(r)){h=l={center:.5,edges:.5,end:1}[r]||0}else if(!u&&a){h=r[0];l=r[1]}return function(t,i,u){var c=(u||e).length,d=o[c],m,v,p,g,C,y,M,j,b;if(!d){b=e.grid==="auto"?0:(e.grid||[1,w])[1];if(!b){M=-w;while(M<(M=u[b++].getBoundingClientRect().left)&&b<c){}b<c&&b--}d=o[c]=[];m=a?Math.min(b,c)*h-.5:r%b;v=b===w?0:a?c*l/b-.5:r/b|0;M=0;j=w;for(y=0;y<c;y++){p=y%b-m;g=v-(y/b|0);d[y]=C=!f?x(p*p+g*g):Math.abs(f==="y"?g:p);C>M&&(M=C);C<j&&(j=C)}r==="random"&&pi(d);d.max=M-j;d.min=j;d.v=c=(parseFloat(e.amount)||parseFloat(e.each)*(b>c?c-1:!f?Math.max(b,c/b):f==="y"?c/b:b)||0)*(r==="edges"?-1:1);d.b=c<0?s-c:s;d.u=fi(e.amount||e.each)||0;//unit
|
|
102
|
+
n=n&&c<0?te(n):n}c=(d[t]-d.min)/d.max||0;return Mt(d.b+(n?n(c):c)*d.v)+d.u;//round in order to work around floating point errors
|
|
103
|
+
}},Ci=function t(i){
|
|
89
104
|
//pass in 0.1 get a function that'll round to the nearest tenth, or 5 to round to the closest 5, or 0.001 to the closest 1000th, etc.
|
|
90
105
|
var e=Math.pow(10,((i+"").split(".")[1]||"").length);//to avoid floating point math errors (like 24 * 0.1 == 2.4000000000000004), we chop off at a specific number of decimal places (much faster than toFixed())
|
|
91
|
-
return function(t){var n=
|
|
92
|
-
}},
|
|
93
|
-
}}else{i=
|
|
106
|
+
return function(t){var n=Mt(Math.round(parseFloat(t)/i)*i*e);return(n-n%1)/e+(O(t)?0:fi(t));// n - n % 1 replaces Math.floor() in order to handle negative values properly. For example, Math.floor(-150.00000000000003) is 151!
|
|
107
|
+
}},wi=function t(i,e){var n=S(i),r,s;if(!n&&E(i)){r=n=i.radius||w;if(i.values){i=mi(i.values);if(s=!O(i[0])){r*=r;//performance optimization so we don't have to Math.sqrt() in the loop.
|
|
108
|
+
}}else{i=Ci(i.increment)}}return ui(e,!n?Ci(i):P(i)?function(t){s=i(t);return Math.abs(s-t)<=r?s:t}:function(t){var e=parseFloat(s?t.x:t),n=parseFloat(s?t.y:0),o=w,u=0,a=i.length,f,h;while(a--){if(s){f=i[a].x-e;h=i[a].y-n;f=f*f+h*h}else{f=Math.abs(i[a]-e)}if(f<o){o=f;u=a}}u=!r||o<=r?i[u]:t;return s||u===t||O(t)?u:u+fi(t)})},yi=function t(i,e,n,r){return ui(S(i)?!e:n===true?!!(n=0):!r,(function(){return S(i)?i[~~(Math.random()*i.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((i-n/2+Math.random()*(e-i+n*.99))/n)*n*r)/r}))},Mi=function t(){for(var i=arguments.length,e=new Array(i),n=0;n<i;n++){e[n]=arguments[n]}return function(t){return e.reduce((function(t,i){return i(t)}),t)}},ji=function t(i,e){return function(t){return i(parseFloat(t))+(e||fi(t))}},bi=function t(i,e,n){return Pi(i,e,0,1,n)},xi=function t(i,e,n){return ui(n,(function(t){return i[~~e(t)]}))},ki=function t(i,e,n){
|
|
94
109
|
// NOTE: wrap() CANNOT be an arrow function! A very odd compiling bug causes problems (unrelated to GSAP).
|
|
95
|
-
var r=e-i;return
|
|
110
|
+
var r=e-i;return S(i)?xi(i,t(0,i.length),e):ui(n,(function(t){return(r+(t-i)%r)%r+i}))},Fi=function t(i,e,n){var r=e-i,s=r*2;return S(i)?xi(i,t(0,i.length-1),e):ui(n,(function(t){t=(s+(t-i)%s)%s||0;return i+(t>r?s-t:t)}))},_i=function t(i){return i.replace(z,(function(t){
|
|
96
111
|
//replaces all occurrences of random(...) in a string with the calculated random value. can be a range like random(-100, 100, 5) or an array like random([0, 100, 500])
|
|
97
|
-
var
|
|
98
|
-
}l--;s=function t(i){i*=l;var e=Math.min(c,~~i);return h[e](i-e)};n=e}else if(!r){i=
|
|
112
|
+
var i=t.indexOf("[")+1,e=t.substring(i||7,i?t.indexOf("]"):t.length-1).split(H);return yi(i?e:+e[0],i?0:+e[1],+e[2]||1e-5)}))},Pi=function t(i,e,n,r,s){var o=e-i,u=r-n;return ui(s,(function(t){return n+((t-i)/o*u||0)}))},Oi=function t(i,e,n,r){var s=isNaN(i+e)?0:function(t){return(1-t)*i+t*e};if(!s){var o=_(i),u={},a,f,h,l,c;n===true&&(r=1)&&(n=null);if(o){i={p:i};e={p:e}}else if(S(i)&&!S(e)){h=[];l=i.length;c=l-2;for(f=1;f<l;f++){h.push(t(i[f-1],i[f]));//build the interpolators up front as a performance optimization so that when the function is called many times, it can just reuse them.
|
|
113
|
+
}l--;s=function t(i){i*=l;var e=Math.min(c,~~i);return h[e](i-e)};n=e}else if(!r){i=Et(S(i)?[]:{},i)}if(!h){for(a in e){he.call(u,i,a,"get",e[a])}s=function t(e){return Ee(e,u)||(o?i.p:i)}}}return ui(n,s)},Zi=function t(i,e,n){
|
|
99
114
|
//used for nextLabel() and previousLabel()
|
|
100
|
-
var r=i.labels,s=
|
|
101
|
-
|
|
102
|
-
if(
|
|
115
|
+
var r=i.labels,s=w,o,u,a;for(o in r){u=r[o]-e;if(u<0===!!n&&u&&s>(u=Math.abs(u))){a=o;s=u}}return a},Ei=function t(i,e,n){var r=i.vars,s=r[e],o=C,u=i._ctx,a,f,h;if(!s){return}a=r[e+"Params"];f=r.callbackScope||i;n&&at.length&&xt();//in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values.
|
|
116
|
+
u&&(C=u);h=a?s.apply(f,a):s.call(f);C=o;return h},Bi=function t(i){Ht(i);i.scrollTrigger&&i.scrollTrigger.kill(!!g);i.progress()<1&&Ei(i,"onInterrupt");return i},Ti,Ri=[],Yi=function t(i){if(!i)return;i=!i.name&&i["default"]||i;// UMD packaging wraps things oddly, so for example MotionPathHelper becomes {MotionPathHelper:MotionPathHelper, default:MotionPathHelper}.
|
|
117
|
+
if(T()||i.headless){
|
|
103
118
|
// edge case: some build tools may pass in a null/undefined value
|
|
104
|
-
var e=i.name,n=
|
|
119
|
+
var e=i.name,n=P(i),r=e&&!n&&i.init?function(){this._props=[]}:i,
|
|
105
120
|
//in case someone passes in an object that's not a plugin, like CustomEase
|
|
106
|
-
s={init:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
121
|
+
s={init:nt,render:Ee,add:he,kill:Te,modifier:Be,rawVars:0},o={targetTest:0,get:0,getSetter:_e,aliases:{},register:0};qi();if(i!==r){if(lt[e]){return}Ot(r,Ot(Tt(i,s),o));//static methods
|
|
122
|
+
Et(r.prototype,Et(s,Tt(i,o)));//instance methods
|
|
123
|
+
lt[r.prop=e]=r;if(i.targetTest){mt.push(r);ut[e]=1}e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin";//for the global name. "motionPath" should become MotionPathPlugin
|
|
124
|
+
}et(e,r);i.register&&i.register(Ge,r,Se)}else{Ri.push(i)}},
|
|
110
125
|
/*
|
|
111
126
|
* --------------------------------------------------------------------------------------
|
|
112
127
|
* COLORS
|
|
113
128
|
* --------------------------------------------------------------------------------------
|
|
114
129
|
*/
|
|
115
|
-
|
|
130
|
+
Si=255,zi={aqua:[0,Si,Si],lime:[0,Si,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Si],navy:[0,0,128],white:[Si,Si,Si],olive:[128,128,0],yellow:[Si,Si,0],orange:[Si,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Si,0,0],pink:[Si,192,203],cyan:[0,Si,Si],transparent:[Si,Si,Si,0]},
|
|
116
131
|
// possible future idea to replace the hard-coded color name values - put this in the ticker.wake() where we set the _doc:
|
|
117
132
|
// let ctx = _doc.createElement("canvas").getContext("2d");
|
|
118
133
|
// _forEachName("aqua,lime,silver,black,maroon,teal,blue,navy,white,olive,yellow,orange,gray,purple,green,red,pink,cyan", color => {ctx.fillStyle = color; _colorLookup[color] = splitColor(ctx.fillStyle)});
|
|
119
|
-
|
|
134
|
+
Hi=function t(i,e,n){i+=i<0?1:i>1?-1:0;return(i*6<1?e+(n-e)*i*6:i<.5?n:i*3<2?e+(n-e)*(2/3-i)*6:e)*Si+.5|0},Ii=function t(i,e,n){var r=!i?zi.black:O(i)?[i>>16,i>>8&Si,i&Si]:0,s,o,u,a,f,h,l,c,d,m;if(!r){if(i.substr(-1)===","){
|
|
120
135
|
//sometimes a trailing comma is included and we should chop it off (typically from a comma-delimited list of values like a textShadow:"2px 2px 2px blue, 5px 5px 5px rgb(255,0,0)" - in this example "blue," has a trailing comma. We could strip it out inside parseComplex() but we'd need to do it to the beginning and ending values plus it wouldn't provide protection from other potential scenarios like if the user passes in a similar value.
|
|
121
|
-
i=i.substr(0,i.length-1)}if(
|
|
136
|
+
i=i.substr(0,i.length-1)}if(zi[i]){r=zi[i]}else if(i.charAt(0)==="#"){if(i.length<6){
|
|
122
137
|
//for shorthand like #9F0 or #9F0F (could have alpha)
|
|
123
|
-
s=i.charAt(1);o=i.charAt(2);
|
|
138
|
+
s=i.charAt(1);o=i.charAt(2);u=i.charAt(3);i="#"+s+s+o+o+u+u+(i.length===5?i.charAt(4)+i.charAt(4):"")}if(i.length===9){
|
|
124
139
|
// hex with alpha, like #fd5e53ff
|
|
125
|
-
r=parseInt(i.substr(1,6),16);return[r>>16,r>>8&
|
|
126
|
-
r[0]=
|
|
140
|
+
r=parseInt(i.substr(1,6),16);return[r>>16,r>>8&Si,r&Si,parseInt(i.substr(7),16)/255]}i=parseInt(i.substr(1),16);r=[i>>16,i>>8&Si,i&Si]}else if(i.substr(0,3)==="hsl"){r=m=i.match(I);if(!e){a=+r[0]%360/360;f=+r[1]/100;h=+r[2]/100;o=h<=.5?h*(f+1):h+f-h*f;s=h*2-o;r.length>3&&(r[3]*=1);//cast as number
|
|
141
|
+
r[0]=Hi(a+1/3,s,o);r[1]=Hi(a,s,o);r[2]=Hi(a-1/3,s,o)}else if(~i.indexOf("=")){
|
|
127
142
|
//if relative values are found, just return the raw strings with the relative prefixes in place.
|
|
128
|
-
r=i.match(
|
|
143
|
+
r=i.match(D);n&&r.length<4&&(r[3]=1);return r}}else{r=i.match(I)||zi.transparent}r=r.map(Number)}if(e&&!m){s=r[0]/Si;o=r[1]/Si;u=r[2]/Si;l=Math.max(s,o,u);c=Math.min(s,o,u);h=(l+c)/2;if(l===c){a=f=0}else{d=l-c;f=h>.5?d/(2-l-c):d/(l+c);a=l===s?(o-u)/d+(o<u?6:0):l===o?(u-s)/d+2:(s-o)/d+4;a*=60}r[0]=~~(a+.5);r[1]=~~(f*100+.5);r[2]=~~(h*100+.5)}n&&r.length<4&&(r[3]=1);return r},Di=function t(i){
|
|
129
144
|
// strips out the colors from the string, finds all the numeric slots (with units) and returns an array of those. The Array also has a "c" property which is an Array of the index values where the colors belong. This is to help work around issues where there's a mis-matched order of color/numeric data like drop-shadow(#f00 0px 1px 2px) and drop-shadow(0x 1px 2px #f00). This is basically a helper function used in _formatColors()
|
|
130
|
-
var e=[],n=[],r=-1;i.split(
|
|
145
|
+
var e=[],n=[],r=-1;i.split(Xi).forEach((function(t){var i=t.match(L)||[];e.push.apply(e,i);n.push(r+=i.length+1)}));e.c=n;return e},Li=function t(i,e,n){var r="",s=(i+r).match(Xi),o=e?"hsla(":"rgba(",u=0,a,f,h,l;if(!s){return i}s=s.map((function(t){return(t=Ii(t,e,1))&&o+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}));if(n){h=Di(i);a=n.c;if(a.join(r)!==h.c.join(r)){f=i.replace(Xi,"1").split(L);l=f.length-1;for(;u<l;u++){r+=f[u]+(~a.indexOf(u)?s.shift()||o+"0,0,0,0)":(h.length?h:s.length?s:n).shift())}}}if(!f){f=i.split(Xi);l=f.length-1;for(;u<l;u++){r+=f[u]+s[u]}}return r+f[l]},Xi=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",
|
|
131
146
|
//we'll dynamically build this Regular Expression to conserve file size. After building it, it will be able to find rgb(), rgba(), # (hexadecimal), and named color values like red, blue, purple, etc.,
|
|
132
|
-
i;for(i in
|
|
147
|
+
i;for(i in zi){t+="|"+i+"\\b"}return new RegExp(t+")","gi")}(),Vi=/hsl[a]?\(/,Ai=function t(i){var e=i.join(" "),n;Xi.lastIndex=0;if(Xi.test(e)){n=Vi.test(e);i[1]=Li(i[1],n);i[0]=Li(i[0],n,Di(i[1]));// make sure the order of numbers/colors match with the END value.
|
|
133
148
|
return true}},
|
|
134
149
|
/*
|
|
135
150
|
* --------------------------------------------------------------------------------------
|
|
136
151
|
* TICKER
|
|
137
152
|
* --------------------------------------------------------------------------------------
|
|
138
153
|
*/
|
|
139
|
-
|
|
140
|
-
if(C){for(d=0;d<
|
|
154
|
+
Ui,Ni=function(){var t=Date.now,i=500,e=33,n=t(),r=n,s=1e3/240,o=s,u=[],a,f,h,l,c,d,m=function h(m){var v=t()-r,p=m===true,g,C,w,y;(v>i||v<0)&&(n+=v-e);r+=v;w=r-n;g=w-o;if(g>0||p){y=++l.frame;c=w-l.time*1e3;l.time=w=w/1e3;o+=g+(g>=s?4:s-g);C=1}p||(a=f(h));//make sure the request is made before we dispatch the "tick" event so that timing is maintained. Otherwise, if processing the "tick" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise.
|
|
155
|
+
if(C){for(d=0;d<u.length;d++){
|
|
141
156
|
// use _i and check _listeners.length instead of a variable because a listener could get removed during the loop, and if that happens to an element less than the current index, it'd throw things off in the loop.
|
|
142
|
-
|
|
143
|
-
e=Math.min(r||33,i)},fps:function t(i){s=1e3/(i||240);o=l.time*1e3+s},add:function t(i,e,n){var r=e?function(t,e,n,s){i(t,e,n,s);l.remove(r)}:i;l.remove(i);
|
|
157
|
+
u[d](w,c,y,m)}}};l={time:0,frame:0,tick:function t(){m(true)},deltaRatio:function t(i){return c/(1e3/(i||60))},wake:function t(){if(J){if(!W&&T()){q=W=window;$=q.document||{};G.gsap=Ge;(q.gsapVersions||(q.gsapVersions=[])).push(Ge.version);K(Q||q.GreenSockGlobals||!q.gsap&&q||{});Ri.forEach(Yi)}h=typeof requestAnimationFrame!=="undefined"&&requestAnimationFrame;a&&l.sleep();f=h||function(t){return setTimeout(t,o-l.time*1e3+1|0)};Ui=1;m(2)}},sleep:function t(){(h?cancelAnimationFrame:clearTimeout)(a);Ui=0;f=nt},lagSmoothing:function t(n,r){i=n||Infinity;// zero should be interpreted as basically unlimited
|
|
158
|
+
e=Math.min(r||33,i)},fps:function t(i){s=1e3/(i||240);o=l.time*1e3+s},add:function t(i,e,n){var r=e?function(t,e,n,s){i(t,e,n,s);l.remove(r)}:i;l.remove(i);u[n?"unshift":"push"](r);qi();return r},remove:function t(i,e){~(e=u.indexOf(i))&&u.splice(e,1)&&d>=e&&d--},_listeners:u};return l}(),qi=function t(){return!Ui&&Ni.wake()},
|
|
144
159
|
//also ensures the core classes are initialized.
|
|
145
160
|
/*
|
|
146
161
|
* -------------------------------------------------
|
|
147
162
|
* EASING
|
|
148
163
|
* -------------------------------------------------
|
|
149
164
|
*/
|
|
150
|
-
|
|
165
|
+
Wi={},$i=/^[\d.\-M][\d.\-,\s]/,Gi=/["']/g,Qi=function t(i){
|
|
151
166
|
//takes a string like "{wiggles:10, type:anticipate})" and turns it into a real object. Notice it ends in ")" and includes the {} wrappers. This is because we only use this function for parsing ease configs and prioritized optimization rather than reusability.
|
|
152
|
-
var e={},n=i.substr(1,i.length-3).split(":"),r=n[0],s=1,o=n.length,a,
|
|
167
|
+
var e={},n=i.substr(1,i.length-3).split(":"),r=n[0],s=1,o=n.length,u,a,f;for(;s<o;s++){a=n[s];u=s!==o-1?a.lastIndexOf(","):a.length;f=a.substr(0,u);e[r]=isNaN(f)?f.replace(Gi,"").trim():+f;r=a.substr(u+1).trim()}return e},Ji=function t(i){var e=i.indexOf("(")+1,n=i.indexOf(")"),r=i.indexOf("(",e);return i.substring(e,~r&&r<n?i.indexOf(")",n+1):n)},Ki=function t(i){
|
|
153
168
|
//name can be a string like "elastic.out(1,0.5)", and pass in _easeMap as obj and it'll parse it out and call the actual function like _easeMap.Elastic.easeOut.config(1,0.5). It will also parse custom ease strings as long as CustomEase is loaded and registered (internally as _easeMap._CE).
|
|
154
|
-
var e=(i+"").split("("),n=
|
|
155
|
-
// allow yoyoEase to be set in children and have those affected when the parent/ancestor timeline yoyos.
|
|
156
|
-
Gi=function t(i,e){var n=i._first,r;while(n){if(n instanceof se){t(n,e)}else if(n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==e){if(n.timeline){t(n.timeline,e)}else{r=n._ease;n._ease=n._yEase;n._yEase=r;n._yoyo=e}}n=n._next}},Ji=function t(i,e){return!i?e:(F(i)?i:Ai[i]||$i(i))||e},Ki=function t(i,e,n,r){if(n===void 0){n=function t(i){return 1-e(1-i)}}if(r===void 0){r=function t(i){return i<.5?e(i*2)/2:1-e((1-i)*2)/2}}var s={easeIn:e,easeOut:n,easeInOut:r},o;vt(i,(function(t){Ai[t]=N[t]=s;Ai[o=t.toLowerCase()]=n;for(var i in s){Ai[o+(i==="easeIn"?".in":i==="easeOut"?".out":".inOut")]=Ai[t+"."+i]=s[i]}}));return s},te=function t(i){return function(t){return t<.5?(1-i(1-t*2))/2:.5+i((t-.5)*2)/2}},ie=function t(i,e,n){var r=e>=1?e:1,
|
|
169
|
+
var e=(i+"").split("("),n=Wi[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~i.indexOf("{")?[Qi(e[1])]:Ji(i).split(",").map(_t)):Wi._CE&&$i.test(i)?Wi._CE("",i):n},te=function t(i){return function(t){return 1-i(1-t)}},ie=function t(i,e){return!i?e:(P(i)?i:Wi[i]||Ki(i))||e},ee=function t(i,e,n,r){if(n===void 0){n=function t(i){return 1-e(1-i)}}if(r===void 0){r=function t(i){return i<.5?e(i*2)/2:1-e((1-i)*2)/2}}var s={easeIn:e,easeOut:n,easeInOut:r},o;wt(i,(function(t){Wi[t]=G[t]=s;Wi[o=t.toLowerCase()]=n;for(var i in s){Wi[o+(i==="easeIn"?".in":i==="easeOut"?".out":".inOut")]=Wi[t+"."+i]=s[i]}}));return s},ne=function t(i){return function(t){return t<.5?(1-i(1-t*2))/2:.5+i((t-.5)*2)/2}},re=function t(i,e,n){var r=e>=1?e:1,
|
|
157
170
|
//note: if amplitude is < 1, we simply adjust the period for a more natural feel. Otherwise the math doesn't work right and the curve starts at 1.
|
|
158
|
-
s=(n||(i?.3:.45))/(e<1?e:1),o=s/
|
|
159
|
-
|
|
171
|
+
s=(n||(i?.3:.45))/(e<1?e:1),o=s/M*(Math.asin(1/r)||0),u=function t(i){return i===1?1:r*Math.pow(2,-10*i)*F((i-o)*s)+1},a=i==="out"?u:i==="in"?function(t){return 1-u(1-t)}:ne(u);s=M/s;//precalculate to optimize
|
|
172
|
+
a.config=function(e,n){return t(i,e,n)};return a},se=function t(i,e){if(e===void 0){e=1.70158}var n=function t(i){return i?--i*i*((e+1)*i+e)+1:0},r=i==="out"?n:i==="in"?function(t){return 1-n(1-t)}:ne(n);r.config=function(e){return t(i,e)};return r};// a cheaper (kb and cpu) but more mild way to get a parameterized weighted ease by feeding in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.
|
|
160
173
|
// _weightedEase = ratio => {
|
|
161
174
|
// let y = 0.5 + ratio / 2;
|
|
162
175
|
// return p => (2 * (1 - p) * p * y + p * p);
|
|
@@ -169,69 +182,69 @@ u.config=function(e,n){return t(i,e,n)};return u},ee=function t(i,e){if(e===void
|
|
|
169
182
|
// c = ratio + o;
|
|
170
183
|
// return p => p === 1 ? p : 3 * b * (1 - p) * (1 - p) * p + 3 * c * (1 - p) * p * p + p * p * p;
|
|
171
184
|
// };
|
|
172
|
-
|
|
173
|
-
|
|
185
|
+
wt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,i){var e=i<5?i+1:i;ee(t+",Power"+(e-1),i?function(t){return Math.pow(t,e)}:function(t){return t},(function(t){return 1-Math.pow(1-t,e)}),(function(t){return t<.5?Math.pow(t*2,e)/2:1-Math.pow((1-t)*2,e)/2}))}));Wi.Linear.easeNone=Wi.none=Wi.Linear.easeIn;ee("Elastic",re("in"),re("out"),re());(function(t,i){var e=1/i,n=2*e,r=2.5*e,s=function s(o){return o<e?t*o*o:o<n?t*Math.pow(o-1.5/i,2)+.75:o<r?t*(o-=2.25/i)*o+.9375:t*Math.pow(o-2.625/i,2)+.984375};ee("Bounce",(function(t){return 1-s(1-t)}),s)})(7.5625,2.75);ee("Expo",(function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}));// previously 2 ** (10 * (p - 1)) but that doesn't end up with the value quite at the right spot so we do a blended ease to ensure it lands where it should perfectly.
|
|
186
|
+
ee("Circ",(function(t){return-(x(1-t*t)-1)}));ee("Sine",(function(t){return t===1?1:-k(t*j)+1}));ee("Back",se("in"),se("out"),se());Wi.SteppedEase=Wi.steps=G.SteppedEase={config:function t(i,e){if(i===void 0){i=1}var n=1/i,r=i+(e?0:1),s=e?1:0,o=1-y;return function(t){return((r*ai(0,o,t)|0)+s)*n}}};v.ease=Wi["quad.out"];wt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return vt+=t+","+t+"Params,"}));
|
|
174
187
|
/*
|
|
175
188
|
* --------------------------------------------------------------------------------------
|
|
176
189
|
* CACHE
|
|
177
190
|
* --------------------------------------------------------------------------------------
|
|
178
|
-
*/var
|
|
191
|
+
*/var oe=function t(i,e){this.id=b++;i._gsap=this;this.target=i;this.harness=e;this.get=e?e.get:Ct;this.set=e?e.getSetter:_e};
|
|
179
192
|
/*
|
|
180
193
|
* --------------------------------------------------------------------------------------
|
|
181
194
|
* ANIMATION
|
|
182
195
|
* --------------------------------------------------------------------------------------
|
|
183
|
-
*/var
|
|
196
|
+
*/var ue=function(){function t(t){this.vars=t;this._delay=+t.delay||0;if(this._repeat=t.repeat===Infinity?-2:t.repeat||0){
|
|
184
197
|
// TODO: repeat: Infinity on a timeline's children must flag that timeline internally and affect its totalDuration, otherwise it'll stop in the negative direction when reaching the start.
|
|
185
|
-
this._rDelay=t.repeatDelay||0;this._yoyo=!!t.yoyo||!!t.yoyoEase}this._ts=1;
|
|
198
|
+
this._rDelay=t.repeatDelay||0;this._yoyo=!!t.yoyo||!!t.yoyoEase}this._ts=1;ei(this,+t.duration,1,1);this.data=t.data;if(C){this._ctx=C;C.data.push(this)}Ui||Ni.wake()}var i=t.prototype;i.delay=function t(i){if(i||i===0){this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay);this._delay=i;return this}return this._delay};i.duration=function t(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur};i.totalDuration=function t(i){if(!arguments.length){return this._tDur}this._dirty=0;return ei(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))};i.totalTime=function t(i,e){qi();if(!arguments.length){return this._tTime}var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){qt(this,i);!n._dp||n.parent||Wt(n,this);// edge case: if this is a child of a timeline that already completed, for example, we must re-activate the parent.
|
|
186
199
|
//in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The start of that child would get pushed out, but one of the ancestors may have completed.
|
|
187
200
|
while(n&&n.parent){if(n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)){n.totalTime(n._tTime,true)}n=n.parent}if(!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)){
|
|
188
201
|
//if the animation doesn't have a parent, put it back into its last parent (recorded as _dp for exactly cases like this). Limit to parents with autoRemoveChildren (like globalTimeline) so that if the user manually removes an animation from a timeline and then alters its playhead, it doesn't get added back in.
|
|
189
|
-
|
|
202
|
+
$t(this._dp,this,this._start-this._delay)}}if(this._tTime!==i||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===y||!this._initted&&this._dur&&i||!i&&!this._initted&&(this.add||this._ptLookup)){
|
|
190
203
|
// check for _ptLookup on a Tween instance to ensure it has actually finished being instantiated, otherwise if this.reverse() gets called in the Animation constructor, it could trigger a render() here even though the _targets weren't populated, thus when _init() is called there won't be any PropTweens (it'll act like the tween is non-functional)
|
|
191
204
|
this._ts||(this._pTime=i);// otherwise, if an animation is paused, then the playhead is moved back to zero, then resumed, it'd revert back to the original time at the pause
|
|
192
205
|
//if (!this._lock) { // avoid endless recursion (not sure we need this yet or if it's worth the performance hit)
|
|
193
206
|
// this._lock = 1;
|
|
194
|
-
|
|
207
|
+
Ft(this,i,e);// this._lock = 0;
|
|
195
208
|
//}
|
|
196
|
-
}return this};i.time=function t(i,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+
|
|
197
|
-
};i.totalProgress=function t(i,e){return arguments.length?this.totalTime(this.totalDuration()*i,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0};i.progress=function t(i,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+
|
|
198
|
-
i.timeScale=function t(i,e){if(!arguments.length){return this._rts===-
|
|
199
|
-
}if(this._rts===i){return this}var n=this.parent&&this._ts?
|
|
209
|
+
}return this};i.time=function t(i,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+Vt(this))%(this._dur+this._rDelay)||(i?this._dur:0),e):this._time;// note: if the modulus results in 0, the playhead could be exactly at the end or the beginning, and we always defer to the END with a non-zero value, otherwise if you set the time() to the very end (duration()), it would render at the START!
|
|
210
|
+
};i.totalProgress=function t(i,e){return arguments.length?this.totalTime(this.totalDuration()*i,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0};i.progress=function t(i,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+Vt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0};i.iteration=function t(i,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*n,e):this._repeat?At(this._tTime,n)+1:1}// potential future addition:;
|
|
211
|
+
i.timeScale=function t(i,e){if(!arguments.length){return this._rts===-y?0:this._rts;// recorded timeScale. Special case: if someone calls reverse() on an animation with timeScale of 0, we assign it -_tinyNum to remember it's reversed.
|
|
212
|
+
}if(this._rts===i){return this}var n=this.parent&&this._ts?Ut(this.parent._time,this):this._tTime;// make sure to do the parentToChildTotalTime() BEFORE setting the new _ts because the old one must be used in that calculation.
|
|
200
213
|
// future addition? Up side: fast and minimal file size. Down side: only works on this animation; if a timeline is reversed, for example, its childrens' onReverse wouldn't get called.
|
|
201
214
|
//(+value < 0 && this._rts >= 0) && _callback(this, "onReverse", true);
|
|
202
215
|
// prioritize rendering where the parent's playhead lines up instead of this._tTime because there could be a tween that's animating another tween's timeScale in the same rendering loop (same parent), thus if the timeScale tween renders first, it would alter _start BEFORE _tTime was set on that tick (in the rendering loop), effectively freezing it until the timeScale tween finishes.
|
|
203
|
-
this._rts=+i||0;this._ts=this._ps||i===-
|
|
204
|
-
this.totalTime(
|
|
205
|
-
return
|
|
216
|
+
this._rts=+i||0;this._ts=this._ps||i===-y?0:this._rts;// _ts is the functional timeScale which would be 0 if the animation is paused.
|
|
217
|
+
this.totalTime(ai(-Math.abs(this._delay),this.totalDuration(),n),e!==false);Nt(this);// if parent.smoothChildTiming was false, the end time didn't get updated in the _alignPlayhead() method, so do it here.
|
|
218
|
+
return Dt(this)};i.paused=function t(i){if(!arguments.length){return this._ps}// possible future addition - if an animation is removed from its parent and then .restart() or .play() or .resume() is called, perhaps we should force it back into the globalTimeline but be careful because what if it's already at its end? We don't want it to just persist forever and not get released for GC.
|
|
206
219
|
// !this.parent && !value && this._tTime < this._tDur && this !== _globalTimeline && _globalTimeline.add(this);
|
|
207
220
|
if(this._ps!==i){this._ps=i;if(i){this._pTime=this._tTime||Math.max(-this._delay,this.rawTime());// if the pause occurs during the delay phase, make sure that's factored in when resuming.
|
|
208
221
|
this._ts=this._act=0;// _ts is the functional timeScale, so a paused tween would effectively have a timeScale of 0. We record the "real" timeScale as _rts (recorded time scale)
|
|
209
|
-
}else{
|
|
210
|
-
this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==
|
|
211
|
-
}}return this};i.startTime=function t(i){if(arguments.length){this._start=i;var e=this.parent||this._dp;e&&(e._sort||!this.parent)
|
|
212
|
-
return!e?this._tTime:i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):!this._ts?this._tTime:
|
|
213
|
-
};i.repeat=function t(i){if(arguments.length){this._repeat=i===Infinity?-2:i;return
|
|
214
|
-
return this};i.play=function t(i,e){i!=null&&this.seek(i,e);return this.reversed(false).paused(false)};i.reverse=function t(i,e){i!=null&&this.seek(i||this.totalDuration(),e);return this.reversed(true).paused(false)};i.pause=function t(i,e){i!=null&&this.seek(i,e);return this.paused(true)};i.resume=function t(){return this.paused(false)};i.reversed=function t(i){if(arguments.length){!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-
|
|
215
|
-
return this}return this._rts<0};i.invalidate=function t(){this._initted=this._act=0;this._zTime=-
|
|
216
|
-
|
|
222
|
+
}else{qi();this._ts=this._rts;//only defer to _pTime (pauseTime) if tTime is zero. Remember, someone could pause() an animation, then scrub the playhead and resume(). If the parent doesn't have smoothChildTiming, we render at the rawTime() because the startTime won't get updated.
|
|
223
|
+
this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==y&&(this._tTime-=y));// edge case: animation.progress(1).pause().play() wouldn't render again because the playhead is already at the end, but the call to totalTime() below will add it back to its parent...and not remove it again (since removing only happens upon rendering at a new time). Offsetting the _tTime slightly is done simply to cause the final render in totalTime() that'll pop it off its timeline (if autoRemoveChildren is true, of course). Check to make sure _zTime isn't -_tinyNum to avoid an edge case where the playhead is pushed to the end but INSIDE a tween/callback, the timeline itself is paused thus halting rendering and leaving a few unrendered. When resuming, it wouldn't render those otherwise.
|
|
224
|
+
}}return this};i.startTime=function t(i){if(arguments.length){this._start=Mt(i);var e=this.parent||this._dp;e&&(e._sort||!this.parent)&&$t(e,this,this._start-this._delay);return this}return this._start};i.endTime=function t(i){return this._start+(B(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)};i.rawTime=function t(i){var e=this.parent||this._dp;// _dp = detached parent
|
|
225
|
+
return!e?this._tTime:i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):!this._ts?this._tTime:Ut(e.rawTime(i),this)};i.revert=function t(i){if(i===void 0){i=ot}var e=g;g=i;if(kt(this)){this.timeline&&this.timeline.revert(i);this.totalTime(-.01,i.suppressEvents)}this.data!=="nested"&&i.kill!==false&&this.kill();g=e;return this};i.globalTime=function t(i){var e=this,n=arguments.length?i:e.rawTime();while(e){n=e._start+n/(Math.abs(e._ts)||1);e=e._dp}return!this.parent&&this._sat?this._sat.globalTime(i):n;// the _startAt tweens for .fromTo() and .from() that have immediateRender should always be FIRST in the timeline (important for context.revert()). "_sat" stands for _startAtTween, referring to the parent tween that created the _startAt. We must discern if that tween had immediateRender so that we can know whether or not to prioritize it in revert().
|
|
226
|
+
};i.repeat=function t(i){if(arguments.length){this._repeat=i===Infinity?-2:i;return ni(this)}return this._repeat===-2?Infinity:this._repeat};i.repeatDelay=function t(i){if(arguments.length){var e=this._time;this._rDelay=i;ni(this);return e?this.time(e):this}return this._rDelay};i.yoyo=function t(i){if(arguments.length){this._yoyo=i;return this}return this._yoyo};i.seek=function t(i,e){return this.totalTime(si(this,i),B(e))};i.restart=function t(i,e){this.play().totalTime(i?-this._delay:0,B(e));this._dur||(this._zTime=-y);// ensures onComplete fires on a zero-duration animation that gets restarted.
|
|
227
|
+
return this};i.play=function t(i,e){i!=null&&this.seek(i,e);return this.reversed(false).paused(false)};i.reverse=function t(i,e){i!=null&&this.seek(i||this.totalDuration(),e);return this.reversed(true).paused(false)};i.pause=function t(i,e){i!=null&&this.seek(i,e);return this.paused(true)};i.resume=function t(){return this.paused(false)};i.reversed=function t(i){if(arguments.length){!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-y:0));// in case timeScale is zero, reversing would have no effect so we use _tinyNum.
|
|
228
|
+
return this}return this._rts<0};i.invalidate=function t(){this._initted=this._act=0;this._zTime=-y;return this};i.isActive=function t(){var i=this.parent||this._dp,e=this._start,n;return!!(!i||this._ts&&this._initted&&i.isActive()&&(n=i.rawTime(true))>=e&&n<this.endTime(true)-y)};i.eventCallback=function t(i,e,n){var r=this.vars;if(arguments.length>1){if(!e){delete r[i]}else{r[i]=e;n&&(r[i+"Params"]=n);i==="onUpdate"&&(this._onUpdate=e)}return this}return r[i]};i.then=function t(i){var e=this,n=e._prom;return new Promise((function(t){var r=P(i)?i:Pt,s=function i(){var s=e.then;e.then=null;// temporarily null the then() method to avoid an infinite loop (see https://github.com/greensock/GSAP/issues/322)
|
|
229
|
+
n&&n();P(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=s);t(r);e.then=s};if(e._initted&&e.totalProgress()===1&&e._ts>=0||!e._tTime&&e._ts<0){s()}else{e._prom=s}}))};i.kill=function t(){Bi(this)};return t}();Ot(ue.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:false,parent:null,_initted:false,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-y,_prom:0,_ps:false,_rts:1});
|
|
217
230
|
/*
|
|
218
231
|
* -------------------------------------------------
|
|
219
232
|
* TIMELINE
|
|
220
233
|
* -------------------------------------------------
|
|
221
|
-
*/var
|
|
222
|
-
e.staggerTo=function t(i,e,n,r,s,o,
|
|
234
|
+
*/var ae=function(t){d(i,t);function i(i,e){var n;if(i===void 0){i={}}n=t.call(this,i)||this;n.labels={};n.smoothChildTiming=!!i.smoothChildTiming;n.autoRemoveChildren=!!i.autoRemoveChildren;n._sort=B(i.sortChildren);N&&$t(i.parent||N,c(n),e);i.reversed&&n.reverse();i.paused&&n.paused(true);i.scrollTrigger&&Gt(c(n),i.scrollTrigger);return n}var e=i.prototype;e.to=function t(i,e,n){oi(0,arguments,this);return this};e.from=function t(i,e,n){oi(1,arguments,this);return this};e.fromTo=function t(i,e,n,r){oi(2,arguments,this);return this};e.set=function t(i,e,n){e.duration=0;e.parent=this;Rt(e).repeatDelay||(e.repeat=0);e.immediateRender=!!e.immediateRender;new je(i,e,si(this,n),1);return this};e.call=function t(i,e,n){return $t(this,je.delayedCall(0,i,e),n)}//ONLY for backward compatibility! Maybe delete?;
|
|
235
|
+
e.staggerTo=function t(i,e,n,r,s,o,u){n.duration=e;n.stagger=n.stagger||r;n.onComplete=o;n.onCompleteParams=u;n.parent=this;new je(i,n,si(this,s));return this};e.staggerFrom=function t(i,e,n,r,s,o,u){n.runBackwards=1;Rt(n).immediateRender=B(n.immediateRender);return this.staggerTo(i,e,n,r,s,o,u)};e.staggerFromTo=function t(i,e,n,r,s,o,u,a){r.startAt=n;Rt(r).immediateRender=B(r.immediateRender);return this.staggerTo(i,e,r,s,o,u,a)};e.render=function t(i,e,n){var r=this._time,s=this._dirty?this.totalDuration():this._tDur,o=this._dur,u=i<=0?0:Mt(i),
|
|
223
236
|
// if a paused timeline is resumed (or its _start is updated for another reason...which rounds it), that could result in the playhead shifting a **tiny** amount and a zero-duration child at that spot may get rendered at a different ratio, like its totalTime in render() may be 1e-17 instead of 0, for example.
|
|
224
|
-
|
|
237
|
+
a=this._zTime<0!==i<0&&(this._initted||!o),f,h,l,c,d,m,v,p,C,w,M,j;this!==N&&u>s&&i>=0&&(u=s);if(u!==this._tTime||n||a){if(r!==this._time&&o){
|
|
225
238
|
//if totalDuration() finds a child with a negative startTime and smoothChildTiming is true, things get shifted around internally so we need to adjust the time accordingly. For example, if a tween starts at -30 we must shift EVERYTHING forward 30 seconds and move this timeline's startTime backward by 30 seconds so that things align with the playhead (no jump).
|
|
226
|
-
|
|
239
|
+
u+=this._time-r;i+=this._time-r}f=u;C=this._start;p=this._ts;m=!p;if(a){o||(r=this._zTime);//when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.
|
|
227
240
|
(i||!e)&&(this._zTime=i)}if(this._repeat){
|
|
228
241
|
//adjust the time for repeats and yoyos
|
|
229
|
-
M=this._yoyo;d=o+this._rDelay;if(this._repeat<-1&&i<0){return this.totalTime(d*100+i,e,n)}f=
|
|
230
|
-
if(
|
|
242
|
+
M=this._yoyo;d=o+this._rDelay;if(this._repeat<-1&&i<0){return this.totalTime(d*100+i,e,n)}f=Mt(u%d);//round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)
|
|
243
|
+
if(u===s){
|
|
231
244
|
// the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)
|
|
232
|
-
c=this._repeat;f=o}else{
|
|
233
|
-
c=~~
|
|
234
|
-
if(M&&c&1){f=o-f;
|
|
245
|
+
c=this._repeat;f=o}else{w=Mt(u/d);// full decimal version of iterations, not the previous iteration (we're reusing prevIteration variable for efficiency)
|
|
246
|
+
c=~~w;if(c&&c===w){f=o;c--}f>o&&(f=o)}w=At(this._tTime,d);!r&&this._tTime&&w!==c&&this._tTime-w*d-this._dur<=0&&(w=c);// edge case - if someone does addPause() at the very beginning of a repeating timeline, that pause is technically at the same spot as the end which causes this._time to get set to 0 when the totalTime would normally place the playhead at the end. See https://gsap.com/forums/topic/23823-closing-nav-animation-not-working-on-ie-and-iphone-6-maybe-other-older-browser/?tab=comments#comment-113005 also, this._tTime - prevIteration * cycleDuration - this._dur <= 0 just checks to make sure it wasn't previously in the "repeatDelay" portion
|
|
247
|
+
if(M&&c&1){f=o-f;j=1}
|
|
235
248
|
/*
|
|
236
249
|
make sure children at the end/beginning of the timeline are rendered properly. If, for example,
|
|
237
250
|
a 3-second long timeline rendered at 2.9 seconds previously, and now renders at 3.2 seconds (which
|
|
@@ -239,163 +252,162 @@ if(M&&c&1){f=o-f;b=1}
|
|
|
239
252
|
could be a callback or a short tween that's at 2.95 or 3 seconds in which wouldn't render. So
|
|
240
253
|
we need to push the timeline to the end (and/or beginning depending on its yoyo value). Also we must
|
|
241
254
|
ensure that zero-duration tweens at the very beginning or end of the Timeline work.
|
|
242
|
-
*/if(c!==
|
|
243
|
-
this._lock=1;this.render(r||(
|
|
244
|
-
!e&&this.parent&&
|
|
255
|
+
*/if(c!==w&&!this._lock){var b=M&&w&1,x=b===(M&&c&1);c<w&&(b=!b);r=b?0:u%o?o:u;// if the playhead is landing exactly at the end of an iteration, use that totalTime rather than only the duration, otherwise it'll skip the 2nd render since it's effectively at the same time.
|
|
256
|
+
this._lock=1;this.render(r||(j?0:Mt(c*d)),e,!o)._lock=0;this._tTime=u;// if a user gets the iteration() inside the onRepeat, for example, it should be accurate.
|
|
257
|
+
!e&&this.parent&&Ei(this,"onRepeat");if(this.vars.repeatRefresh&&!j){this.invalidate()._lock=1;w=c;// otherwise, the onStart() may fire on the 2nd iteration.
|
|
258
|
+
}if(r&&r!==this._time||m!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act){
|
|
245
259
|
// if prevTime is 0 and we render at the very end, _time will be the end, thus won't match. So in this edge case, prevTime won't match _time but that's okay. If it gets killed in the onRepeat, eject as well.
|
|
246
260
|
return this}o=this._dur;// in case the duration changed in the onRepeat
|
|
247
|
-
s=this._tDur;if(x){this._lock=2;r=
|
|
248
|
-
Gi(this,b)}}if(this._hasPause&&!this._forcing&&this._lock<2){p=Gt(this,gt(r),gt(f));if(p){a-=f-(f=p._start)}}this._tTime=a;this._time=f;this._act=!g;//as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.
|
|
261
|
+
s=this._tDur;if(x){this._lock=2;r=b?o:-1e-4;this.render(r,true);this.vars.repeatRefresh&&!j&&this.invalidate()}this._lock=0;if(!this._ts&&!m){return this}}}if(this._hasPause&&!this._forcing&&this._lock<2){v=ii(this,Mt(r),Mt(f));if(v){u-=f-(f=v._start)}}this._tTime=u;this._time=f;this._act=!!p;// as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.
|
|
249
262
|
if(!this._initted){this._onUpdate=this.vars.onUpdate;this._initted=1;this._zTime=i;r=0;// upon init, the playhead should always go forward; someone could invalidate() a completed timeline and then if they restart(), that would make child tweens render in reverse order which could lock in the wrong starting values if they build on each other, like tl.to(obj, {x: 100}).to(obj, {x: 0}).
|
|
250
|
-
}if(!r&&
|
|
263
|
+
}if(!r&&u&&o&&!e&&!w){Ei(this,"onStart");if(this._tTime!==u){
|
|
251
264
|
// in case the onStart triggered a render at a different spot, eject. Like if someone did animation.pause(0.5) or something inside the onStart.
|
|
252
|
-
return this}}if(f>=r&&i>=0){h=this._first;while(h){l=h._next;if((h._act||f>=h._start)&&h._ts&&
|
|
265
|
+
return this}}if(f>=r&&i>=0){h=this._first;while(h){l=h._next;if((h._act||f>=h._start)&&h._ts&&v!==h){if(h.parent!==this){
|
|
253
266
|
// an extreme edge case - the child's render could do something like kill() the "next" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.
|
|
254
267
|
return this.render(i,e,n)}h.render(h._ts>0?(f-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(f-h._start)*h._ts,e,n);if(f!==this._time||!this._ts&&!m){
|
|
255
268
|
//in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete
|
|
256
|
-
|
|
269
|
+
v=0;l&&(u+=this._zTime=-y);// it didn't finish rendering, so flag zTime as negative so that the next time render() is called it'll be forced (to render any remaining children)
|
|
257
270
|
break}}h=l}}else{h=this._last;var k=i<0?i:f;//when the playhead goes backward beyond the start of this timeline, we must pass that information down to the child animations so that zero-duration tweens know whether to render their starting or ending values.
|
|
258
|
-
while(h){l=h._prev;if((h._act||k<=h._end)&&h._ts&&
|
|
271
|
+
while(h){l=h._prev;if((h._act||k<=h._end)&&h._ts&&v!==h){if(h.parent!==this){
|
|
259
272
|
// an extreme edge case - the child's render could do something like kill() the "next" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.
|
|
260
|
-
return this.render(i,e,n)}h.render(h._ts>0?(k-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(k-h._start)*h._ts,e,n||
|
|
273
|
+
return this.render(i,e,n)}h.render(h._ts>0?(k-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(k-h._start)*h._ts,e,n||g&&kt(h));// if reverting, we should always force renders of initted tweens (but remember that .fromTo() or .from() may have a _startAt but not _initted yet). If, for example, a .fromTo() tween with a stagger (which creates an internal timeline) gets reverted BEFORE some of its child tweens render for the first time, it may not properly trigger them to revert.
|
|
261
274
|
if(f!==this._time||!this._ts&&!m){
|
|
262
275
|
//in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete
|
|
263
|
-
|
|
264
|
-
break}}h=l}}if(
|
|
276
|
+
v=0;l&&(u+=this._zTime=k?-y:y);// it didn't finish rendering, so adjust zTime so that so that the next time render() is called it'll be forced (to render any remaining children)
|
|
277
|
+
break}}h=l}}if(v&&!e){this.pause();v.render(f>=r?0:-y)._zTime=f>=r?1:-1;if(this._ts){
|
|
265
278
|
//the callback resumed playback! So since we may have held back the playhead due to where the pause is positioned, go ahead and jump to where it's SUPPOSED to be (if no pause happened).
|
|
266
|
-
this._start=
|
|
267
|
-
|
|
279
|
+
this._start=C;//if the pause was at an earlier time and the user resumed in the callback, it could reposition the timeline (changing its startTime), throwing things off slightly, so we make sure the _start doesn't shift.
|
|
280
|
+
Nt(this);return this.render(i,e,n)}}this._onUpdate&&!e&&Ei(this,"onUpdate",true);if(u===s&&this._tTime>=this.totalDuration()||!u&&r)if(C===this._start||Math.abs(p)!==Math.abs(this._ts))if(!this._lock){
|
|
268
281
|
// remember, a child's callback may alter this timeline's playhead or timeScale which is why we need to add some of these checks.
|
|
269
|
-
(i||!o)&&(
|
|
270
|
-
if(!e&&!(i<0&&!r)&&(
|
|
271
|
-
};e.getChildren=function t(i,e,n,r){if(i===void 0){i=true}if(e===void 0){e=true}if(n===void 0){n=true}if(r===void 0){r=-
|
|
282
|
+
(i||!o)&&(u===s&&this._ts>0||!u&&this._ts<0)&&Ht(this,1);// don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.
|
|
283
|
+
if(!e&&!(i<0&&!r)&&(u||r||!s)){Ei(this,u===s&&i>=0?"onComplete":"onReverseComplete",true);this._prom&&!(u<s&&this.timeScale()>0)&&this._prom()}}}return this};e.add=function t(i,e){var n=this;O(e)||(e=si(this,e,i));if(!(i instanceof ue)){if(S(i)){i.forEach((function(t){return n.add(t,e)}));return this}if(_(i)){return this.addLabel(i,e)}if(P(i)){i=je.delayedCall(0,i)}else{return this}}return this!==i?$t(this,i,e):this;//don't allow a timeline to be added to itself as a child!
|
|
284
|
+
};e.getChildren=function t(i,e,n,r){if(i===void 0){i=true}if(e===void 0){e=true}if(n===void 0){n=true}if(r===void 0){r=-w}var s=[],o=this._first;while(o){if(o._start>=r){if(o instanceof je){e&&s.push(o)}else{n&&s.push(o);i&&s.push.apply(s,o.getChildren(true,e,n))}}o=o._next}return s};e.getById=function t(i){var e=this.getChildren(1,1,1),n=e.length;while(n--){if(e[n].vars.id===i){return e[n]}}};e.remove=function t(i){if(_(i)){return this.removeLabel(i)}if(P(i)){return this.killTweensOf(i)}i.parent===this&&zt(this,i);if(i===this._recent){this._recent=this._last}return It(this)};e.totalTime=function i(e,n){if(!arguments.length){return this._tTime}this._forcing=1;if(!this._dp&&this._ts){
|
|
272
285
|
//special case for the global timeline (or any other that has no parent or detached parent).
|
|
273
|
-
this._start=
|
|
286
|
+
this._start=Mt(Ni.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))}t.prototype.totalTime.call(this,e,n);this._forcing=0;return this};e.addLabel=function t(i,e){this.labels[i]=si(this,e);return this};e.removeLabel=function t(i){delete this.labels[i];return this};e.addPause=function t(i,e,n){var r=je.delayedCall(0,e||nt,n);r.data="isPause";this._hasPause=1;return $t(this,r,si(this,i))};e.removePause=function t(i){var e=this._first;i=si(this,i);while(e){if(e._start===i&&e.data==="isPause"){Ht(e)}e=e._next}};e.killTweensOf=function t(i,e,n){var r=this.getTweensOf(i,n),s=r.length;while(s--){de!==r[s]&&r[s].kill(i,e)}return this};e.getTweensOf=function t(i,e){var n=[],r=mi(i),s=this._first,o=O(e),
|
|
274
287
|
// a number is interpreted as a global time. If the animation spans
|
|
275
|
-
|
|
288
|
+
u;while(s){if(s instanceof je){if(bt(s._targets,r)&&(o?(!de||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())){
|
|
276
289
|
// note: if this is for overwriting, it should only be for tweens that aren't paused and are initted.
|
|
277
|
-
n.push(s)}}else if((
|
|
278
|
-
e.tweenTo=function t(i,e){e=e||{};var n=this,r=
|
|
279
|
-
}},e));return f?l.render(0):l};e.tweenFromTo=function t(i,e,n){return this.tweenTo(e,
|
|
290
|
+
n.push(s)}}else if((u=s.getTweensOf(r,e)).length){n.push.apply(n,u)}s=s._next}return n}// potential future feature - targets() on timelines;
|
|
291
|
+
e.tweenTo=function t(i,e){e=e||{};var n=this,r=si(n,i),s=e,o=s.startAt,u=s.onStart,a=s.onStartParams,f=s.immediateRender,h,l=je.to(n,Ot({ease:e.ease||"none",lazy:false,immediateRender:false,time:r,overwrite:"auto",duration:e.duration||Math.abs((r-(o&&"time"in o?o.time:n._time))/n.timeScale())||y,onStart:function t(){n.pause();if(!h){var i=e.duration||Math.abs((r-(o&&"time"in o?o.time:n._time))/n.timeScale());l._dur!==i&&ei(l,i,0,1).render(l._time,true,true);h=1}u&&u.apply(l,a||[]);//in case the user had an onStart in the vars - we don't want to overwrite it.
|
|
292
|
+
}},e));return f?l.render(0):l};e.tweenFromTo=function t(i,e,n){return this.tweenTo(e,Ot({startAt:{time:si(this,i)}},n))};e.recent=function t(){return this._recent};e.nextLabel=function t(i){if(i===void 0){i=this._time}return Zi(this,si(this,i))};e.previousLabel=function t(i){if(i===void 0){i=this._time}return Zi(this,si(this,i),1)};e.currentLabel=function t(i){return arguments.length?this.seek(i,true):this.previousLabel(this._time+y)};e.shiftChildren=function t(i,e,n){if(n===void 0){n=0}var r=this._first,s=this.labels,o;i=Mt(i);while(r){if(r._start>=n){r._start+=i;r._end+=i}r=r._next}if(e){for(o in s){if(s[o]>=n){s[o]+=i}}}return It(this)};e.invalidate=function i(e){var n=this._first;this._lock=0;while(n){n.invalidate(e);n=n._next}return t.prototype.invalidate.call(this,e)};e.clear=function t(i){if(i===void 0){i=true}var e=this._first,n;while(e){n=e._next;this.remove(e);e=n}this._dp&&(this._time=this._tTime=this._pTime=0);i&&(this.labels={});return It(this)};e.totalDuration=function t(i){var e=0,n=this,r=n._last,s=w,o,u,a;if(arguments.length){return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-i:i))}if(n._dirty){a=n.parent;while(r){o=r._prev;//record it here in case the tween changes position in the sequence...
|
|
280
293
|
r._dirty&&r.totalDuration();//could change the tween._startTime, so make sure the animation's cache is clean before analyzing it.
|
|
281
|
-
|
|
294
|
+
u=r._start;if(u>s&&n._sort&&r._ts&&!n._lock){
|
|
282
295
|
//in case one of the tweens shifted out of order, it needs to be re-inserted into the correct position in the sequence
|
|
283
296
|
n._lock=1;//prevent endless recursive calls - there are methods that get triggered that check duration/totalDuration when we add().
|
|
284
|
-
|
|
297
|
+
$t(n,r,u-r._delay,1)._lock=0}else{s=u}if(u<0&&r._ts){
|
|
285
298
|
//children aren't allowed to have negative startTimes unless smoothChildTiming is true, so adjust here if one is found.
|
|
286
|
-
e-=
|
|
299
|
+
e-=u;if(!a&&!n._dp||a&&a.smoothChildTiming){n._start+=Mt(u/n._ts);n._time-=u;n._tTime-=u}n.shiftChildren(-u,false,-Infinity);s=0}r._end>e&&r._ts&&(e=r._end);r=o}ei(n,n===N&&n._time>e?n._time:e,1,1);n._dirty=0}return n._tDur};i.updateRoot=function t(i){if(N._ts){Ft(N,Ut(i,N));ht=Ni.frame}if(Ni.frame>=dt){dt+=m.autoSleep||120;var e=N._first;if(!e||!e._ts)if(m.autoSleep&&Ni._listeners.length<2){while(e&&!e._ts){e=e._next}e||Ni.sleep()}}};return i}(ue);Ot(ae.prototype,{_lock:0,_hasPause:0,_forcing:0});var fe=function t(i,e,n,r,s,o,u){
|
|
287
300
|
//note: we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus "this" would refer to the plugin.
|
|
288
|
-
var
|
|
289
|
-
r+="";if(g=~r.indexOf("random(")){r=
|
|
290
|
-
n=C[0];r=C[1]}c=n.match(
|
|
291
|
-
|
|
301
|
+
var a=new Se(this._pt,i,e,0,1,Ze,null,s),f=0,h=0,l,c,d,m,v,p,g,C;a.b=n;a.e=r;n+="";//ensure values are strings
|
|
302
|
+
r+="";if(g=~r.indexOf("random(")){r=_i(r)}if(o){C=[n,r];o(C,i,e);//pass an array with the starting and ending values and let the filter do whatever it needs to the values.
|
|
303
|
+
n=C[0];r=C[1]}c=n.match(X)||[];while(l=X.exec(r)){m=l[0];v=r.substring(f,l.index);if(d){d=(d+1)%5}else if(v.substr(-5)==="rgba("){d=1}if(m!==c[h++]){p=parseFloat(c[h-1])||0;//these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.
|
|
304
|
+
a._pt={_next:a._pt,p:v||h===1?v:",",
|
|
292
305
|
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
293
|
-
s:p,c:m.charAt(1)==="="?
|
|
294
|
-
|
|
295
|
-
}this._pt=
|
|
296
|
-
return
|
|
306
|
+
s:p,c:m.charAt(1)==="="?jt(p,m)-p:parseFloat(m)-p,m:d&&d<4?Math.round:0};f=X.lastIndex}}a.c=f<r.length?r.substring(f,r.length):"";//we use the "c" of the PropTween to store the final part of the string (after the last number)
|
|
307
|
+
a.fp=u;if(V.test(r)||g){a.e=0;//if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).
|
|
308
|
+
}this._pt=a;//start the linked list with this new PropTween. Remember, we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus "this" would refer to the plugin.
|
|
309
|
+
return a},he=function t(i,e,n,r,s,o,u,a,f,h){P(r)&&(r=r(s||0,i,o));var l=i[e],c=n!=="get"?n:!P(l)?l:f?i[e.indexOf("set")||!P(i["get"+e.substr(3)])?e:"get"+e.substr(3)](f):i[e](),d=!P(l)?be:f?ke:xe,v;if(_(r)){if(~r.indexOf("random(")){r=_i(r)}if(r.charAt(1)==="="){v=jt(c,r)+(fi(c)||0);if(v||v===0){
|
|
297
310
|
// to avoid isNaN, like if someone passes in a value like "!= whatever"
|
|
298
|
-
r=v}}}if(!h||
|
|
311
|
+
r=v}}}if(!h||c!==r||me){if(!isNaN(c*r)&&r!==""){
|
|
299
312
|
// fun fact: any number multiplied by "" is evaluated as the number 0!
|
|
300
|
-
v=new
|
|
313
|
+
v=new Se(this._pt,i,e,+c||0,r-(c||0),typeof l==="boolean"?Oe:Pe,0,d);f&&(v.fp=f);u&&v.modifier(u,this,i);return this._pt=v}!l&&!(e in i)&&tt(e,r);return fe.call(this,i,e,c,r,d,a||m.stringFilter,f)}},
|
|
301
314
|
//creates a copy of the vars object and processes any function-based values (putting the resulting values directly into the copy) as well as strings with "random()" in them. It does NOT process relative values.
|
|
302
|
-
|
|
303
|
-
h=
|
|
315
|
+
le=function t(i,e,n,r,s){P(i)&&(i=we(i,s,e,n,r));if(!E(i)||i.style&&i.nodeType||S(i)||Y(i)){return _(i)?we(i,s,e,n,r):i}var o={},u;for(u in i){o[u]=we(i[u],s,e,n,r)}return o},ce=function t(i,e,n,r,s,o){var u,a,f,h;if(lt[i]&&(u=new lt[i]).init(s,u.rawVars?e[i]:le(e[i],r,s,o,n),n,r,o)!==false){n._pt=a=new Se(n._pt,s,i,0,1,u.render,u,0,u.priority);if(n!==Ti){f=n._ptLookup[n._targets.indexOf(s)];//note: we can't use tween._ptLookup[index] because for staggered tweens, the index from the fullTargets array won't match what it is in each individual tween that spawns from the stagger.
|
|
316
|
+
h=u._props.length;while(h--){f[u._props[h]]=a}}}return u},de,
|
|
304
317
|
//store a reference temporarily so we can avoid overwriting itself.
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
l=i._yEase;i._yEase=i._ease;i._ease=l}i._from=!k&&!!r.runBackwards;//nested timelines should never run backwards - the backwards-ness is in the child tweens.
|
|
308
|
-
if(!k||c&&!r.stagger){
|
|
318
|
+
me,ve=function t(i,e,n){var r=i.vars,s=r.ease,o=r.startAt,u=r.immediateRender,a=r.lazy,f=r.onUpdate,h=r.runBackwards,l=r.yoyoEase,c=r.keyframes,d=r.autoRevert,m=i._dur,C=i._startAt,M=i._targets,j=i.parent,b=j&&j.data==="nested"?j.vars.targets:M,x=i._overwrite==="auto"&&!p,k=i.timeline,F=r.easeReverse||l,_,P,O,Z,E,T,R,Y,S,z,H,I,D;k&&(!c||!s)&&(s="none");i._ease=ie(s,v.ease);i._rEase=F&&(ie(F)||i._ease);i._from=!k&&!!r.runBackwards;//nested timelines should never run backwards - the backwards-ness is in the child tweens.
|
|
319
|
+
if(i._from)i.ratio=1;if(!k||c&&!r.stagger){
|
|
309
320
|
//if there's an internal timeline, skip all the parsing because we passed that task down the chain.
|
|
310
|
-
Y=M[0]?
|
|
311
|
-
|
|
312
|
-
e<0&&h&&
|
|
321
|
+
Y=M[0]?gt(M[0]).harness:0;I=Y&&r[Y.prop];//someone may need to specify CSS-specific values AND non-CSS values, like if the element has an "x" property plus it's a standard DOM element. We allow people to distinguish by wrapping plugin-specific stuff in a css:{} object for example.
|
|
322
|
+
_=Tt(r,ut);if(C){C._zTime<0&&C.progress(1);// in case it's a lazy startAt that hasn't rendered yet.
|
|
323
|
+
e<0&&h&&u&&!d?C.render(-1,true):C.revert(h&&m?st:rt);// if it's a "startAt" (not "from()" or runBackwards: true), we only need to do a shallow revert (keep transforms cached in CSSPlugin)
|
|
313
324
|
// don't just _removeFromParent(prevStartAt.render(-1, true)) because that'll leave inline styles. We're creating a new _startAt for "startAt" tweens that re-capture things to ensure that if the pre-tween values changed since the tween was created, they're recorded.
|
|
314
|
-
|
|
325
|
+
C._lazy=0}if(o){Ht(i._startAt=je.set(M,Ot({data:"isStart",overwrite:false,parent:j,immediateRender:true,lazy:!C&&B(a),startAt:null,delay:0,onUpdate:f&&function(){return Ei(i,"onUpdate")},stagger:0},o)));//copy the properties/values into a new object to avoid collisions, like var to = {x:0}, from = {x:500}; timeline.fromTo(e, from, to).fromTo(e, to, from);
|
|
315
326
|
i._startAt._dp=0;// don't allow it to get put back into root timeline! Like when revert() is called and totalTime() gets set.
|
|
316
327
|
i._startAt._sat=i;// used in globalTime(). _sat stands for _startAtTween
|
|
317
|
-
e<0&&(
|
|
318
|
-
if(
|
|
328
|
+
e<0&&(g||!u&&!d)&&i._startAt.revert(st);// rare edge case, like if a render is forced in the negative direction of a non-initted tween.
|
|
329
|
+
if(u){if(m&&e<=0&&n<=0){
|
|
319
330
|
// check tTime here because in the case of a yoyo tween whose playhead gets pushed to the end like tween.progress(1), we should allow it through so that the onComplete gets fired properly.
|
|
320
331
|
e&&(i._zTime=e);return;//we skip initialization here so that overwriting doesn't occur until the tween actually begins. Otherwise, if you create several immediateRender:true tweens of the same target/properties to drop into a Timeline, the last one created would overwrite the first ones because they didn't get placed into the timeline yet before the first render occurs and kicks in overwriting.
|
|
321
|
-
}}}else if(h&&
|
|
322
|
-
//from() tweens must be handled uniquely: their beginning values must be rendered but we don't want overwriting to occur yet (when time is still 0). Wait until the tween actually begins before doing all the routines like overwriting. At that time, we should render at the END of the tween to ensure that things initialize correctly (remember, from() tweens go backwards)
|
|
323
|
-
if(!
|
|
324
|
-
|
|
332
|
+
}}}else if(h&&m){
|
|
333
|
+
// from() tweens must be handled uniquely: their beginning values must be rendered but we don't want overwriting to occur yet (when time is still 0). Wait until the tween actually begins before doing all the routines like overwriting. At that time, we should render at the END of the tween to ensure that things initialize correctly (remember, from() tweens go backwards)
|
|
334
|
+
if(!C){e&&(u=false);//in rare cases (like if a from() tween runs and then is invalidate()-ed), immediateRender could be true but the initial forced-render gets skipped, so there's no need to force the render in this context when the _time is greater than 0
|
|
335
|
+
O=Ot({overwrite:false,data:"isFromStart",
|
|
325
336
|
//we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
|
|
326
|
-
lazy:
|
|
337
|
+
lazy:u&&!C&&B(a),immediateRender:u,
|
|
327
338
|
//zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
|
|
328
|
-
stagger:0,parent:
|
|
329
|
-
|
|
339
|
+
stagger:0,parent:j},_);I&&(O[Y.prop]=I);// in case someone does something like .from(..., {css:{}})
|
|
340
|
+
Ht(i._startAt=je.set(M,O));i._startAt._dp=0;// don't allow it to get put back into root timeline!
|
|
330
341
|
i._startAt._sat=i;// used in globalTime()
|
|
331
|
-
e<0&&(
|
|
332
|
-
}else if(!e){return}}}i._pt=i._ptCache=0;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}i._onUpdate=f;i._initted=(!i._op||i._pt)&&!
|
|
336
|
-
c&&e<=0&&k.render(
|
|
337
|
-
},
|
|
342
|
+
e<0&&(g?i._startAt.revert(st):i._startAt.render(-1,true));i._zTime=e;if(!u){t(i._startAt,y,y);//ensures that the initial values are recorded
|
|
343
|
+
}else if(!e){return}}}i._pt=i._ptCache=0;a=m&&B(a)||a&&!m;for(P=0;P<M.length;P++){E=M[P];R=E._gsap||pt(M)[P]._gsap;i._ptLookup[P]=z={};ft[R.id]&&at.length&&xt();//if other tweens of the same target have recently initted but haven't rendered yet, we've got to force the render so that the starting values are correct (imagine populating a timeline with a bunch of sequential tweens and then jumping to the end)
|
|
344
|
+
H=b===M?P:b.indexOf(E);if(Y&&(S=new Y).init(E,I||_,i,H,b)!==false){i._pt=Z=new Se(i._pt,E,S.name,0,1,S.render,S,0,S.priority);S._props.forEach((function(t){z[t]=Z}));S.priority&&(T=1)}if(!Y||I){for(O in _){if(lt[O]&&(S=ce(O,_,i,H,E,b))){S.priority&&(T=1)}else{z[O]=Z=he.call(i,E,O,"get",_[O],H,b,0,r.stringFilter)}}}i._op&&i._op[P]&&i.kill(E,i._op[P]);if(x&&i._pt){de=i;N.killTweensOf(E,z,i.globalTime(e));// make sure the overwriting doesn't overwrite THIS tween!!!
|
|
345
|
+
D=!i.parent;de=0}i._pt&&a&&(ft[R.id]=1)}T&&Ye(i);i._onInit&&i._onInit(i);//plugins like RoundProps must wait until ALL of the PropTweens are instantiated. In the plugin's init() function, it sets the _onInit on the tween instance. May not be pretty/intuitive, but it's fast and keeps file size down.
|
|
346
|
+
}i._onUpdate=f;i._initted=(!i._op||i._pt)&&!D;// if overwrittenProps resulted in the entire tween being killed, do NOT flag it as initted or else it may render for one tick.
|
|
347
|
+
c&&e<=0&&k.render(w,true,true);// if there's a 0% keyframe, it'll render in the "before" state for any staggered/delayed animations thus when the following tween initializes, it'll use the "before" state instead of the "after" state as the initial values.
|
|
348
|
+
},pe=function t(i,e,n,r,s,o,u,a){var f=(i._pt&&i._ptCache||(i._ptCache={}))[e],h,l,c,d;if(!f){f=i._ptCache[e]=[];c=i._ptLookup;d=i._targets.length;while(d--){h=c[d][e];if(h&&h.d&&h.d._pt){
|
|
338
349
|
// it's a plugin, so find the nested PropTween
|
|
339
350
|
h=h.d._pt;while(h&&h.p!==e&&h.fp!==e){
|
|
340
351
|
// "fp" is functionParam for things like setting CSS variables which require .setProperty("--var-name", value)
|
|
341
352
|
h=h._next}}if(!h){
|
|
342
353
|
// there is no PropTween associated with that property, so we must FORCE one to be created and ditch out of this
|
|
343
354
|
// if the tween has other properties that already rendered at new positions, we'd normally have to rewind to put them back like tween.render(0, true) before forcing an _initTween(), but that can create another edge case like tweening a timeline's progress would trigger onUpdates to fire which could move other things around. It's better to just inform users that .resetTo() should ONLY be used for tweens that already have that property. For example, you can't gsap.to(...{ y: 0 }) and then tween.restTo("x", 200) for example.
|
|
344
|
-
|
|
345
|
-
i.vars[e]="+=0";
|
|
355
|
+
me=1;// otherwise, when we _addPropTween() and it finds no change between the start and end values, it skips creating a PropTween (for efficiency...why tween when there's no difference?) but in this case we NEED that PropTween created so we can edit it.
|
|
356
|
+
i.vars[e]="+=0";ve(i,u);me=0;return a?it(e+" not eligible for reset. Try splitting into individual properties"):1;// if someone tries to do a quickTo() on a special property like borderRadius which must get split into 4 different properties, that's not eligible for .resetTo().
|
|
346
357
|
}f.push(h)}}d=f.length;while(d--){l=f[d];h=l._pt||l;// complex values may have nested PropTweens. We only accommodate the FIRST value.
|
|
347
|
-
h.s=(r||r===0)&&!s?r:h.s+(r||0)+o*h.c;h.c=n-h.s;l.e&&(l.e=
|
|
348
|
-
l.b&&(l.b=h.s+
|
|
349
|
-
}},
|
|
358
|
+
h.s=(r||r===0)&&!s?r:h.s+(r||0)+o*h.c;h.c=n-h.s;l.e&&(l.e=yt(n)+fi(l.e));// mainly for CSSPlugin (end value)
|
|
359
|
+
l.b&&(l.b=h.s+fi(l.b));// (beginning value)
|
|
360
|
+
}},ge=function t(i,e){var n=i[0]?gt(i[0]).harness:0,r=n&&n.aliases,s,o,u,a;if(!r){return e}s=Et({},e);for(o in r){if(o in s){a=r[o].split(",");u=a.length;while(u--){s[a[u]]=s[o]}}}return s},
|
|
350
361
|
// parses multiple formats, like {"0%": {x: 100}, {"50%": {x: -20}} and { x: {"0%": 100, "50%": -20} }, and an "ease" can be set on any object. We populate an "allProps" object with an Array for each property, like {x: [{}, {}], y:[{}, {}]} with data for each property tween. The objects have a "t" (time), "v", (value), and "e" (ease) property. This allows us to piece together a timeline later.
|
|
351
|
-
|
|
352
|
-
e.forEach((function(t,i){return
|
|
362
|
+
Ce=function t(i,e,n,r){var s=e.ease||r||"power1.inOut",o,u;if(S(e)){u=n[i]||(n[i]=[]);// t = time (out of 100), v = value, e = ease
|
|
363
|
+
e.forEach((function(t,i){return u.push({t:i/(e.length-1)*100,v:t,e:s})}))}else{for(o in e){u=n[o]||(n[o]=[]);o==="ease"||u.push({t:parseFloat(i),v:e[o],e:s})}}},we=function t(i,e,n,r,s){return P(i)?i.call(e,n,r,s):_(i)&&~i.indexOf("random(")?_i(i):i},ye=vt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",Me={};wt(ye+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return Me[t]=1}));
|
|
353
364
|
/*
|
|
354
365
|
* --------------------------------------------------------------------------------------
|
|
355
366
|
* TWEEN
|
|
356
367
|
* --------------------------------------------------------------------------------------
|
|
357
|
-
*/var
|
|
358
|
-
s._overwrite=
|
|
359
|
-
|
|
368
|
+
*/var je=function(t){d(i,t);function i(i,e,n,r){var s;if(typeof e==="number"){n.duration=e;e=n;n=null}s=t.call(this,r?e:Rt(e))||this;var o=s.vars,u=o.duration,a=o.delay,f=o.immediateRender,h=o.stagger,l=o.overwrite,d=o.keyframes,v=o.defaults,g=o.scrollTrigger,C=e.parent||N,w=(S(i)||Y(i)?O(i[0]):"length"in e)?[i]:mi(i),M,j,b,x,k,F,_,P;s._targets=w.length?pt(w):it("GSAP target "+i+" not found. https://gsap.com",!m.nullTargetWarn)||[];s._ptLookup=[];//PropTween lookup. An array containing an object for each target, having keys for each tweening property
|
|
369
|
+
s._overwrite=l;if(d||h||R(u)||R(a)){e=s.vars;var Z=e.easeReverse||e.yoyoEase;M=s.timeline=new ae({data:"nested",defaults:v||{},targets:C&&C.data==="nested"?C.vars.targets:w});// we need to store the targets because for staggers and keyframes, we end up creating an individual tween for each but function-based values need to know the index and the whole Array of targets.
|
|
370
|
+
M.kill();M.parent=M._dp=c(s);M._start=0;if(h||R(u)||R(a)){x=w.length;_=h&&gi(h);if(E(h)){
|
|
360
371
|
//users can pass in callbacks like onStart/onComplete in the stagger object. These should fire with each individual tween.
|
|
361
|
-
for(
|
|
362
|
-
|
|
372
|
+
for(k in h){if(~ye.indexOf(k)){P||(P={});P[k]=h[k]}}}for(j=0;j<x;j++){b=Tt(e,Me);b.stagger=0;Z&&(b.easeReverse=Z);P&&Et(b,P);F=w[j];//don't just copy duration or delay because if they're a string or function, we'd end up in an infinite loop because _isFuncOrString() would evaluate as true in the child tweens, entering this loop, etc. So we parse the value straight from vars and default to 0.
|
|
373
|
+
b.duration=+we(u,c(s),j,F,w);b.delay=(+we(a,c(s),j,F,w)||0)-s._delay;if(!h&&x===1&&b.delay){
|
|
363
374
|
// if someone does delay:"random(1, 5)", repeat:-1, for example, the delay shouldn't be inside the repeat.
|
|
364
|
-
s._delay=
|
|
365
|
-
}else if(
|
|
366
|
-
}else{
|
|
367
|
-
}}
|
|
368
|
-
}if(
|
|
369
|
-
s.render(Math.max(0,-
|
|
370
|
-
}g&&
|
|
375
|
+
s._delay=a=b.delay;s._start+=a;b.delay=0}M.to(F,b,_?_(j,F,w):0);M._ease=Wi.none}M.duration()?u=a=0:s.timeline=0;// if the timeline's duration is 0, we don't need a timeline internally!
|
|
376
|
+
}else if(d){Rt(Ot(M.vars.defaults,{ease:"none"}));M._ease=ie(d.ease||e.ease||"none");var T=0,z,H,I;if(S(d)){d.forEach((function(t){return M.to(w,t,">")}));M.duration();// to ensure tl._dur is cached because we tap into it for performance purposes in the render() method.
|
|
377
|
+
}else{b={};for(k in d){k==="ease"||k==="easeEach"||Ce(k,d[k],b,d.easeEach)}for(k in b){z=b[k].sort((function(t,i){return t.t-i.t}));T=0;for(j=0;j<z.length;j++){H=z[j];I={ease:H.e,duration:(H.t-(j?z[j-1].t:0))/100*u};I[k]=H.v;M.to(w,I,T);T+=I.duration}}M.duration()<u&&M.to({},{duration:u-M.duration()});// in case keyframes didn't go to 100%
|
|
378
|
+
}}u||s.duration(u=M.duration())}else{s.timeline=0;//speed optimization, faster lookups (no going up the prototype chain)
|
|
379
|
+
}if(l===true&&!p){de=c(s);N.killTweensOf(w);de=0}$t(C,c(s),n);e.reversed&&s.reverse();e.paused&&s.paused(true);if(f||!u&&!d&&s._start===Mt(C._time)&&B(f)&&Xt(c(s))&&C.data!=="nested"){s._tTime=-y;//forces a render without having to set the render() "force" parameter to true because we want to allow lazying by default (using the "force" parameter always forces an immediate full render)
|
|
380
|
+
s.render(Math.max(0,-a)||0);//in case delay is negative
|
|
381
|
+
}g&&Gt(c(s),g);return s}var e=i.prototype;e.render=function t(i,e,n){var r=this._time,s=this._tDur,o=this._dur,u=i<0,a=i>s-y&&!u?s:i<y?0:i,f,h,l,c,d,m,v,p;if(!o){ti(this,i,e,n)}else if(a!==this._tTime||!i||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u||this._lazy){
|
|
371
382
|
// this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)
|
|
372
|
-
f=
|
|
383
|
+
f=a;p=this.timeline;if(this._repeat){
|
|
373
384
|
//adjust the time for repeats and yoyos
|
|
374
|
-
c=o+this._rDelay;if(this._repeat<-1&&
|
|
375
|
-
if(
|
|
385
|
+
c=o+this._rDelay;if(this._repeat<-1&&u){return this.totalTime(c*100+i,e,n)}f=Mt(a%c);//round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)
|
|
386
|
+
if(a===s){
|
|
376
387
|
// the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)
|
|
377
|
-
l=this._repeat;f=o}else{d=
|
|
378
|
-
l=~~d;if(l&&l===d){f=o;l--}else if(f>o){f=o}}m=this._yoyo&&l&1;if(m)
|
|
388
|
+
l=this._repeat;f=o}else{d=Mt(a/c);// full decimal version of iterations, not the previous iteration (we're reusing prevIteration variable for efficiency)
|
|
389
|
+
l=~~d;if(l&&l===d){f=o;l--}else if(f>o){f=o}}m=this._yoyo&&l&1;if(m)f=o-f;d=At(this._tTime,c);if(f===r&&!n&&this._initted&&l===d){
|
|
379
390
|
//could be during the repeatDelay part. No need to render and fire callbacks.
|
|
380
|
-
this._tTime=
|
|
391
|
+
this._tTime=a;return this}if(l!==d){
|
|
392
|
+
//repeatRefresh functionality
|
|
381
393
|
if(this.vars.repeatRefresh&&!m&&!this._lock&&f!==c&&this._initted){
|
|
382
394
|
// this._time will === cycleDuration when we render at EXACTLY the end of an iteration. Without this condition, it'd often do the repeatRefresh render TWICE (again on the very next tick).
|
|
383
395
|
this._lock=n=1;//force, otherwise if lazy is true, the _attemptInitTween() will return and we'll jump out and get caught bouncing on each tick.
|
|
384
|
-
this.render(
|
|
396
|
+
this.render(Mt(c*l),true).invalidate()._lock=0}}}if(!this._initted){if(Qt(this,u?i:f,n,e,a)){this._tTime=0;// in constructor if immediateRender is true, we set _tTime to -_tinyNum to have the playhead cross the starting point but we can't leave _tTime as a negative number.
|
|
385
397
|
return this}if(r!==this._time&&!(n&&this.vars.repeatRefresh&&l!==d)){
|
|
386
398
|
// rare edge case - during initialization, an onUpdate in the _startAt (.fromTo()) might force this tween to render at a different spot in which case we should ditch this render() call so that it doesn't revert the values. But we also don't want to dump if we're doing a repeatRefresh render!
|
|
387
399
|
return this}if(o!==this._dur){
|
|
388
400
|
// while initting, a plugin like InertiaPlugin might alter the duration, so rerun from the start to ensure everything renders as it should.
|
|
389
|
-
return this.render(i,e,n)}}this._tTime=
|
|
390
|
-
this._lazy=0}
|
|
401
|
+
return this.render(i,e,n)}}if(this._rEase){var g=f<r;if(g!==this._inv){var C=g?r:o-r;this._inv=g;if(this._from)this.ratio=1-this.ratio;this._invRatio=this.ratio;this._invTime=r;this._invRecip=C?(g?-1:1)/C:0;this._invScale=g?-this.ratio:1-this.ratio;this._invEase=g?this._rEase:this._ease}this.ratio=v=this._invRatio+this._invScale*this._invEase((f-this._invTime)*this._invRecip)}else{this.ratio=v=this._ease(f/o)}if(this._from)this.ratio=v=1-v;this._tTime=a;this._time=f;if(!this._act&&this._ts){this._act=1;//as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.
|
|
402
|
+
this._lazy=0}if(!r&&a&&!e&&!d){Ei(this,"onStart");if(this._tTime!==a){
|
|
391
403
|
// in case the onStart triggered a render at a different spot, eject. Like if someone did animation.pause(0.5) or something inside the onStart.
|
|
392
|
-
return this}}h=this._pt;while(h){h.r(v,h.d);h=h._next}p&&p.render(i<0?i:p._dur*p._ease(f/this._dur),e,n)||this._startAt&&(this._zTime=i);if(this._onUpdate&&!e){
|
|
393
|
-
|
|
394
|
-
if(!e&&!(
|
|
404
|
+
return this}}h=this._pt;while(h){h.r(v,h.d);h=h._next}p&&p.render(i<0?i:p._dur*p._ease(f/this._dur),e,n)||this._startAt&&(this._zTime=i);if(this._onUpdate&&!e){u&&Lt(this,i,e,n);//note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.
|
|
405
|
+
Ei(this,"onUpdate")}this._repeat&&l!==d&&this.vars.onRepeat&&!e&&this.parent&&Ei(this,"onRepeat");if((a===this._tDur||!a)&&this._tTime===a){u&&!this._onUpdate&&Lt(this,i,true,true);(i||!o)&&(a===this._tDur&&this._ts>0||!a&&this._ts<0)&&Ht(this,1);// don't remove if we're rendering at exactly a time of 0, as there could be autoRevert values that should get set on the next tick (if the playhead goes backward beyond the startTime, negative totalTime). Don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.
|
|
406
|
+
if(!e&&!(u&&!r)&&(a||r||m)){
|
|
395
407
|
// if prevTime and tTime are zero, we shouldn't fire the onReverseComplete. This could happen if you gsap.to(... {paused:true}).play();
|
|
396
|
-
|
|
408
|
+
Ei(this,a===s?"onComplete":"onReverseComplete",true);this._prom&&!(a<s&&this.timeScale()>0)&&this._prom()}}}return this};e.targets=function t(){return this._targets};e.invalidate=function i(e){
|
|
397
409
|
// "soft" gives us a way to clear out everything EXCEPT the recorded pre-"from" portion of from() tweens. Otherwise, for example, if you tween.progress(1).render(0, true true).invalidate(), the "from" values would persist and then on the next render, the from() tweens would initialize and the current value would match the "from" values, thus animate from the same value to the same value (no animation). We tap into this in ScrollTrigger's refresh() where we must push a tween to completion and then back again but honor its init state in case the tween is dependent on another tween further up on the page.
|
|
398
|
-
(!e||!this.vars.runBackwards)&&(this._startAt=0);this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0;this._ptLookup=[];this.timeline&&this.timeline.invalidate(e);return t.prototype.invalidate.call(this,e)};e.resetTo=function t(i,e,n,r,s){
|
|
410
|
+
(!e||!this.vars.runBackwards)&&(this._startAt=0);this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0;this._ptLookup=[];this.timeline&&this.timeline.invalidate(e);return t.prototype.invalidate.call(this,e)};e.resetTo=function t(i,e,n,r,s){Ui||Ni.wake();this._ts||this.play();var o=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;this._initted||ve(this,o);u=this._ease(o/this._dur);// don't just get tween.ratio because it may not have rendered yet.
|
|
399
411
|
// possible future addition to allow an object with multiple values to update, like tween.resetTo({x: 100, y: 200}); At this point, it doesn't seem worth the added kb given the fact that most users will likely opt for the convenient gsap.quickTo() way of interacting with this method.
|
|
400
412
|
// if (_isObject(property)) { // performance optimization
|
|
401
413
|
// for (p in property) {
|
|
@@ -404,15 +416,15 @@ _i(this,u===s?"onComplete":"onReverseComplete",true);this._prom&&!(u<s&&this.tim
|
|
|
404
416
|
// }
|
|
405
417
|
// }
|
|
406
418
|
// } else {
|
|
407
|
-
if(
|
|
419
|
+
if(pe(this,i,e,n,r,u,o,s)){return this.resetTo(i,e,n,r,1);// if a PropTween wasn't found for the property, it'll get forced with a re-initialization so we need to jump out and start over again.
|
|
408
420
|
}//}
|
|
409
|
-
|
|
410
|
-
this.parent&&n!==this.timeline.totalDuration()&&
|
|
411
|
-
return this}var r=this._targets,s=i?
|
|
421
|
+
qt(this,0);this.parent||St(this._dp,this,"_first","_last",this._dp._sort?"_start":0);return this.render(0)};e.kill=function t(i,e){if(e===void 0){e="all"}if(!i&&(!e||e==="all")){this._lazy=this._pt=0;this.parent?Bi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!g);return this}if(this.timeline){var n=this.timeline.totalDuration();this.timeline.killTweensOf(i,e,de&&de.vars.overwrite!==true)._first||Bi(this);// if nothing is left tweening, interrupt.
|
|
422
|
+
this.parent&&n!==this.timeline.totalDuration()&&ei(this,this._dur*this.timeline._tDur/n,0,1);// if a nested tween is killed that changes the duration, it should affect this tween's duration. We must use the ratio, though, because sometimes the internal timeline is stretched like for keyframes where they don't all add up to whatever the parent tween's duration was set to.
|
|
423
|
+
return this}var r=this._targets,s=i?mi(i):r,o=this._ptLookup,u=this._pt,a,f,h,l,c,d,m;if((!e||e==="all")&&Yt(r,s)){e==="all"&&(this._pt=0);return Bi(this)}a=this._op=this._op||[];if(e!=="all"){
|
|
412
424
|
//so people can pass in a comma-delimited list of property names
|
|
413
|
-
if(
|
|
414
|
-
return this};i.to=function t(e,n){return new i(e,n,arguments[2])};i.from=function t(i,e){return
|
|
415
|
-
};i.fromTo=function t(i,e,n){return
|
|
425
|
+
if(_(e)){c={};wt(e,(function(t){return c[t]=1}));e=c}e=ge(r,e)}m=r.length;while(m--){if(~s.indexOf(r[m])){f=o[m];if(e==="all"){a[m]=e;l=f;h={}}else{h=a[m]=a[m]||{};l=e}for(c in l){d=f&&f[c];if(d){if(!("kill"in d.d)||d.d.kill(c)===true){zt(this,d,"_pt")}delete f[c]}if(h!=="all"){h[c]=1}}}}this._initted&&!this._pt&&u&&Bi(this);//if all tweening properties are killed, kill the tween. Without this line, if there's a tween with multiple targets and then you killTweensOf() each target individually, the tween would technically still remain active and fire its onComplete even though there aren't any more properties tweening.
|
|
426
|
+
return this};i.to=function t(e,n){return new i(e,n,arguments[2])};i.from=function t(i,e){return oi(1,arguments)};i.delayedCall=function t(e,n,r,s){return new i(n,0,{immediateRender:false,lazy:false,overwrite:false,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:s});// we must use onReverseComplete too for things like timeline.add(() => {...}) which should be triggered in BOTH directions (forward and reverse)
|
|
427
|
+
};i.fromTo=function t(i,e,n){return oi(2,arguments)};i.set=function t(e,n){n.duration=0;n.repeatDelay||(n.repeat=0);return new i(e,n)};i.killTweensOf=function t(i,e,n){return N.killTweensOf(i,e,n)};return i}(ue);Ot(je.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});//add the pertinent timeline methods to Tween instances so that users can chain conveniently and create a timeline automatically. (removed due to concerns that it'd ultimately add to more confusion especially for beginners)
|
|
416
428
|
// _forEachName("to,from,fromTo,set,call,add,addLabel,addPause", name => {
|
|
417
429
|
// Tween.prototype[name] = function() {
|
|
418
430
|
// let tl = new Timeline();
|
|
@@ -420,187 +432,189 @@ return this};i.to=function t(e,n){return new i(e,n,arguments[2])};i.from=functio
|
|
|
420
432
|
// }
|
|
421
433
|
// });
|
|
422
434
|
//for backward compatibility. Leverage the timeline calls.
|
|
423
|
-
|
|
435
|
+
wt("staggerTo,staggerFrom,staggerFromTo",(function(t){je[t]=function(){var i=new ae,e=li.call(arguments,0);e.splice(t==="staggerFromTo"?5:4,0,0);return i[t].apply(i,e)}}));
|
|
424
436
|
/*
|
|
425
437
|
* --------------------------------------------------------------------------------------
|
|
426
438
|
* PROPTWEEN
|
|
427
439
|
* --------------------------------------------------------------------------------------
|
|
428
|
-
*/var
|
|
440
|
+
*/var be=function t(i,e,n){return i[e]=n},xe=function t(i,e,n){return i[e](n)},ke=function t(i,e,n,r){return i[e](r.fp,n)},Fe=function t(i,e,n){return i.setAttribute(e,n)},_e=function t(i,e){return P(i[e])?xe:Z(i[e])&&i.setAttribute?Fe:be},Pe=function t(i,e){return e.set(e.t,e.p,Math.round((e.s+e.c*i)*1e6)/1e6,e)},Oe=function t(i,e){return e.set(e.t,e.p,!!(e.s+e.c*i),e)},Ze=function t(i,e){var n=e._pt,r="";if(!i&&e.b){
|
|
429
441
|
//b = beginning string
|
|
430
442
|
r=e.b}else if(i===1&&e.e){
|
|
431
443
|
//e = ending string
|
|
432
444
|
r=e.e}else{while(n){r=n.p+(n.m?n.m(n.s+n.c*i):Math.round((n.s+n.c*i)*1e4)/1e4)+r;//we use the "p" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.
|
|
433
445
|
n=n._next}r+=e.c;//we use the "c" of the PropTween to store the final chunk of non-numeric text.
|
|
434
|
-
}e.set(e.t,e.p,r,e)},
|
|
446
|
+
}e.set(e.t,e.p,r,e)},Ee=function t(i,e){var n=e._pt;while(n){n.r(i,n.d);n=n._next}},Be=function t(i,e,n,r){var s=this._pt,o;while(s){o=s._next;s.p===r&&s.modifier(i,e,n);s=o}},Te=function t(i){var e=this._pt,n,r;while(e){r=e._next;if(e.p===i&&!e.op||e.op===i){zt(this,e,"_pt")}else if(!e.dep){n=1}e=r}return!n},Re=function t(i,e,n,r){r.mSet(i,e,r.m.call(r.tween,n,r.mt),r)},Ye=function t(i){var e=i._pt,n,r,s,o;//sorts the PropTween linked list in order of priority because some plugins need to do their work after ALL of the PropTweens were created (like RoundPropsPlugin and ModifiersPlugin)
|
|
435
447
|
while(e){n=e._next;r=s;while(r&&r.pr>e.pr){r=r._next}if(e._prev=r?r._prev:o){e._prev._next=e}else{s=e}if(e._next=r){r._prev=e}else{o=e}e=n}i._pt=s};//PropTween key: t = target, p = prop, r = renderer, d = data, s = start, c = change, op = overwriteProperty (ONLY populated when it's different than p), pr = priority, _next/_prev for the linked list siblings, set = setter, m = modifier, mSet = modifierSetter (the original setter, before a modifier was added)
|
|
436
|
-
var
|
|
437
|
-
this.set=
|
|
448
|
+
var Se=function(){function t(t,i,e,n,r,s,o,u,a){this.t=i;this.s=n;this.c=r;this.p=e;this.r=s||Pe;this.d=o||this;this.set=u||be;this.pr=a||0;this._next=t;if(t){t._prev=this}}var i=t.prototype;i.modifier=function t(i,e,n){this.mSet=this.mSet||this.set;//in case it was already set (a PropTween can only have one modifier)
|
|
449
|
+
this.set=Re;this.m=i;this.mt=n;//modifier target
|
|
438
450
|
this.tween=e};return t}();//Initialization tasks
|
|
439
|
-
vt
|
|
440
|
-
r&&(o=1);if(r!==n[s]){n[s]=r;
|
|
441
|
-
this.isReverted=false;this.id=
|
|
451
|
+
wt(vt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",(function(t){return ut[t]=1}));G.TweenMax=G.TweenLite=je;G.TimelineLite=G.TimelineMax=ae;N=new ae({sortChildren:false,defaults:v,autoRemoveChildren:true,id:"root",smoothChildTiming:true});m.stringFilter=Ai;var ze=[],He={},Ie=[],De=0,Le=0,Xe=function t(i){return(He[i]||Ie).map((function(t){return t()}))},Ve=function t(){var i=Date.now(),e=[];if(i-De>2){Xe("matchMediaInit");ze.forEach((function(t){var i=t.queries,n=t.conditions,r,s,o,u;for(s in i){r=q.matchMedia(i[s]).matches;// Firefox doesn't update the "matches" property of the MediaQueryList object correctly - it only does so as it calls its change handler - so we must re-create a media query here to ensure it's accurate.
|
|
452
|
+
r&&(o=1);if(r!==n[s]){n[s]=r;u=1}}if(u){t.revert();o&&e.push(t)}}));Xe("matchMediaRevert");e.forEach((function(t){return t.onMatch(t,(function(i){return t.add(null,i)}))}));De=i;Xe("matchMedia")}};var Ae=function(){function t(t,i){this.selector=i&&vi(i);this.data=[];this._r=[];// returned/cleanup functions
|
|
453
|
+
this.isReverted=false;this.id=Le++;// to work around issues that frameworks like Vue cause by making things into Proxies which make it impossible to do something like _media.indexOf(this) because "this" would no longer refer to the Context instance itself - it'd refer to a Proxy! We needed a way to identify the context uniquely
|
|
442
454
|
t&&this.add(t)}var i=t.prototype;i.add=function t(i,e,n){
|
|
443
455
|
// possible future addition if we need the ability to add() an animation to a context and for whatever reason cannot create that animation inside of a context.add(() => {...}) function.
|
|
444
456
|
// if (name && _isFunction(name.revert)) {
|
|
445
457
|
// this.data.push(name);
|
|
446
458
|
// return (name._ctx = this);
|
|
447
459
|
// }
|
|
448
|
-
if(
|
|
460
|
+
if(P(i)){n=e;e=i;i=P}var r=this,s=function t(){var i=C,s=r.selector,o;i&&i!==r&&i.data.push(r);n&&(r.selector=vi(n));C=r;o=e.apply(r,arguments);P(o)&&r._r.push(o);C=i;r.selector=s;r.isReverted=false;return o};r.last=s;return i===P?s(r,(function(t){return r.add(null,t)})):i?r[i]=s:s};i.ignore=function t(i){var e=C;C=null;i(this);C=e};i.getTweens=function i(){var e=[];this.data.forEach((function(i){return i instanceof t?e.push.apply(e,i.getTweens()):i instanceof je&&!(i.parent&&i.parent.data==="nested")&&e.push(i)}));return e};i.clear=function t(){this._r.length=this.data.length=0};i.kill=function t(i,e){var n=this;if(i){(function(){var t=n.getTweens(),e=n.data.length,r;while(e--){
|
|
449
461
|
// Flip plugin tweens are very different in that they should actually be pushed to their end. The plugin replaces the timeline's .revert() method to do exactly that. But we also need to remove any of those nested tweens inside the flip timeline so that they don't get individually reverted.
|
|
450
462
|
r=n.data[e];if(r.data==="isFlip"){r.revert();r.getChildren(true,true,false).forEach((function(i){return t.splice(t.indexOf(i),1)}))}}// save as an object so that we can cache the globalTime for each tween to optimize performance during the sort
|
|
451
463
|
t.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-Infinity,t:t}})).sort((function(t,i){return i.g-t.g||-Infinity})).forEach((function(t){return t.t.revert(i)}));// note: all of the _startAt tweens should be reverted in reverse order that they were created, and they'll all have the same globalTime (-1) so the " || -1" in the sort keeps the order properly.
|
|
452
464
|
e=n.data.length;while(e--){
|
|
453
465
|
// make sure we loop backwards so that, for example, SplitTexts that were created later on the same element get reverted first
|
|
454
|
-
r=n.data[e];if(r instanceof
|
|
455
|
-
}}else{!(r instanceof
|
|
466
|
+
r=n.data[e];if(r instanceof ae){if(r.data!=="nested"){r.scrollTrigger&&r.scrollTrigger.revert();r.kill();// don't revert() the timeline because that's duplicating efforts since we already reverted all the tweens
|
|
467
|
+
}}else{!(r instanceof je)&&r.revert&&r.revert(i)}}n._r.forEach((function(t){return t(i,n)}));n.isReverted=true})()}else{this.data.forEach((function(t){return t.kill&&t.kill()}))}this.clear();if(e){var r=ze.length;while(r--){
|
|
456
468
|
// previously, we checked _media.indexOf(this), but some frameworks like Vue enforce Proxy objects that make it impossible to get the proper result that way, so we must use a unique ID number instead.
|
|
457
|
-
|
|
458
|
-
i.revert=function t(i){this.kill(i||{})};return t}();var
|
|
459
|
-
this.contexts.push(r);e=r.add("onMatch",e);r.queries=i;for(
|
|
469
|
+
ze[r].id===this.id&&ze.splice(r,1)}}}// killWithCleanup() {;
|
|
470
|
+
i.revert=function t(i){this.kill(i||{})};return t}();var Ue=function(){function t(t){this.contexts=[];this.scope=t;C&&C.data.push(this)}var i=t.prototype;i.add=function t(i,e,n){E(i)||(i={matches:i});var r=new Ae(0,n||this.scope),s=r.conditions={},o,u,a;C&&!r.selector&&(r.selector=C.selector);// in case a context is created inside a context. Like a gsap.matchMedia() that's inside a scoped gsap.context()
|
|
471
|
+
this.contexts.push(r);e=r.add("onMatch",e);r.queries=i;for(u in i){if(u==="all"){a=1}else{o=q.matchMedia(i[u]);if(o){ze.indexOf(r)<0&&ze.push(r);(s[u]=o.matches)&&(a=1);o.addListener?o.addListener(Ve):o.addEventListener("change",Ve)}}}a&&e(r,(function(t){return r.add(null,t)}));return this}// refresh() {;
|
|
460
472
|
i.revert=function t(i){this.kill(i||{})};i.kill=function t(i){this.contexts.forEach((function(t){return t.kill(i,true)}))};return t}();
|
|
461
473
|
/*
|
|
462
474
|
* --------------------------------------------------------------------------------------
|
|
463
475
|
* GSAP
|
|
464
476
|
* --------------------------------------------------------------------------------------
|
|
465
|
-
*/var
|
|
466
|
-
var s=
|
|
477
|
+
*/var Ne={registerPlugin:function t(){for(var i=arguments.length,e=new Array(i),n=0;n<i;n++){e[n]=arguments[n]}e.forEach((function(t){return Yi(t)}))},timeline:function t(i){return new ae(i)},getTweensOf:function t(i,e){return N.getTweensOf(i,e)},getProperty:function t(i,e,n,r){_(i)&&(i=mi(i)[0]);//in case selector text or an array is passed in
|
|
478
|
+
var s=gt(i||{}).get,o=n?Pt:_t;n==="native"&&(n="");return!i?i:!e?function(t,e,n){return o((lt[t]&<[t].get||s)(i,t,e,n))}:o((lt[e]&<[e].get||s)(i,e,n,r))},quickSetter:function t(i,e,n){i=mi(i);if(i.length>1){var r=i.map((function(t){return Ge.quickSetter(t,e,n)})),s=r.length;return function(t){var i=s;while(i--){r[i](t)}}}i=i[0]||{};var o=lt[e],u=gt(i),a=u.harness&&(u.harness.aliases||{})[e]||e,
|
|
467
479
|
// in case it's an alias, like "rotate" for "rotation".
|
|
468
|
-
f=o?function(t){var e=new o;
|
|
469
|
-
n._time=n._tTime=
|
|
470
|
-
var
|
|
480
|
+
f=o?function(t){var e=new o;Ti._pt=0;e.init(i,n?t+n:t,Ti,0,[i]);e.render(1,e);Ti._pt&&Ee(1,Ti)}:u.set(i,a);return o?f:function(t){return f(i,a,n?t+n:t,u,1)}},quickTo:function t(i,e,n){var r;var s=Ge.to(i,Ot((r={},r[e]="+=0.1",r.paused=true,r.stagger=0,r),n||{})),o=function t(i,n,r){return s.resetTo(e,i,n,r)};o.tween=s;return o},isTweening:function t(i){return N.getTweensOf(i,true).length>0},defaults:function t(i){i&&i.ease&&(i.ease=ie(i.ease,v.ease));return Bt(v,i||{})},config:function t(i){return Bt(m,i||{})},registerEffect:function t(i){var e=i.name,n=i.effect,r=i.plugins,s=i.defaults,o=i.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!lt[t]&&!G[t]&&it(e+" effect requires "+t+" plugin.")}));ct[e]=function(t,i,e){return n(mi(t),Ot(i||{},s),e)};if(o){ae.prototype[e]=function(t,i,n){return this.add(ct[e](t,E(i)?i:(n=i)&&{},this),n)}}},registerEase:function t(i,e){Wi[i]=ie(e)},parseEase:function t(i,e){return arguments.length?ie(i,e):Wi},getById:function t(i){return N.getById(i)},exportRoot:function t(i,e){if(i===void 0){i={}}var n=new ae(i),r,s;n.smoothChildTiming=B(i.smoothChildTiming);N.remove(n);n._dp=0;//otherwise it'll get re-activated when adding children and be re-introduced into _globalTimeline's linked list (then added to itself).
|
|
481
|
+
n._time=n._tTime=N._time;r=N._first;while(r){s=r._next;if(e||!(!r._dur&&r instanceof je&&r.vars.onComplete===r._targets[0])){$t(n,r,r._start-r._delay)}r=s}$t(N,n,0);return n},context:function t(i,e){return i?new Ae(i,e):C},matchMedia:function t(i){return new Ue(i)},matchMediaRefresh:function t(){return ze.forEach((function(t){var i=t.conditions,e,n;for(n in i){if(i[n]){i[n]=false;e=1}}e&&t.revert()}))||Ve()},addEventListener:function t(i,e){var n=He[i]||(He[i]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function t(i,e){var n=He[i],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:ki,wrapYoyo:Fi,distribute:gi,random:yi,snap:wi,normalize:bi,getUnit:fi,clamp:hi,splitColor:Ii,toArray:mi,selector:vi,mapRange:Pi,pipe:Mi,unitize:ji,interpolate:Oi,shuffle:pi},install:K,effects:ct,ticker:Ni,updateRoot:ae.updateRoot,plugins:lt,globalTimeline:N,core:{PropTween:Se,globals:et,Tween:je,Timeline:ae,Animation:ue,getCache:gt,_removeLinkedListItem:zt,reverting:function t(){return g},context:function t(i){if(i&&C){C.data.push(i);i._ctx=C}return C},suppressOverwrites:function t(i){return p=i}}};wt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Ne[t]=je[t]}));Ni.add(ae.updateRoot);Ti=Ne.to({},{duration:0});// ---- EXTRA PLUGINS --------------------------------------------------------
|
|
482
|
+
var qe=function t(i,e){var n=i._pt;while(n&&n.p!==e&&n.op!==e&&n.fp!==e){n=n._next}return n},We=function t(i,e){var n=i._targets,r,s,o;for(r in e){s=n.length;while(s--){o=i._ptLookup[s][r];if(o&&(o=o.d)){if(o._pt){
|
|
471
483
|
// is a plugin
|
|
472
|
-
o=
|
|
484
|
+
o=qe(o,r)}o&&o.modifier&&o.modifier(e[r],i,n[s],r)}}}},$e=function t(i,e){return{name:i,headless:1,rawVars:1,
|
|
473
485
|
//don't pre-process function-based values or "random()" strings.
|
|
474
|
-
init:function t(i,n,r){r._onInit=function(t){var i,r;if(
|
|
475
|
-
n=i}if(e){i={};for(r in n){i[r]=e(n[r])}n=i}
|
|
476
|
-
var
|
|
477
|
-
this._props.push(o)}},render:function t(i,e){var n=e._pt;while(n){
|
|
478
|
-
n=n._next}}},{name:"endArray",headless:1,init:function t(i,e){var n=e.length;while(n--){this.add(i,n,i[n]||0,e[n],0,0,0,0,0,1)}}}
|
|
479
|
-
|
|
486
|
+
init:function t(i,n,r){r._onInit=function(t){var i,r;if(_(n)){i={};wt(n,(function(t){return i[t]=1}));//if the user passes in a comma-delimited list of property names to roundProps, like "x,y", we round to whole numbers.
|
|
487
|
+
n=i}if(e){i={};for(r in n){i[r]=e(n[r])}n=i}We(t,n)}}}};//register core plugins
|
|
488
|
+
var Ge=Ne.registerPlugin({name:"attr",init:function t(i,e,n,r,s){var o,u,a;this.tween=n;for(o in e){a=i.getAttribute(o)||"";u=this.add(i,"setAttribute",(a||0)+"",e[o],r,s,0,0,o);u.op=o;u.b=a;// record the beginning value so we can revert()
|
|
489
|
+
this._props.push(o)}},render:function t(i,e){var n=e._pt;while(n){g?n.set(n.t,n.p,n.b,n):n.r(i,n.d);// if reverting, go back to the original (pt.b)
|
|
490
|
+
n=n._next}}},{name:"endArray",headless:1,init:function t(i,e){var n=e.length;while(n--){this.add(i,n,i[n]||0,e[n],0,0,0,0,0,1)}}},$e("roundProps",Ci),$e("modifiers"),$e("snap",wi))||Ne;//to prevent the core plugins from being dropped via aggressive tree shaking, we must include them in the variable declaration in this way.
|
|
491
|
+
je.version=ae.version=Ge.version="3.15.0";J=1;T()&&qi();
|
|
480
492
|
/*!
|
|
481
|
-
* CSSPlugin 3.
|
|
493
|
+
* CSSPlugin 3.15.0
|
|
482
494
|
* https://gsap.com
|
|
483
495
|
*
|
|
484
|
-
* Copyright 2008-
|
|
496
|
+
* Copyright 2008-2026, GreenSock. All rights reserved.
|
|
485
497
|
* Subject to the terms at https://gsap.com/standard-license
|
|
486
498
|
* @author: Jack Doyle, jack@greensock.com
|
|
487
|
-
*/var
|
|
499
|
+
*/var Qe,Je,Ke,tn,en,nn,rn,sn=function t(){return typeof window!=="undefined"},on={},un=180/Math.PI,an=Math.PI/180,fn=Math.atan2,hn=1e8,ln=/([A-Z])/g,cn=/(left|right|width|margin|padding|x)/i,dn=/[\s,\(]\S/,mn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},vn=function t(i,e){return e.set(e.t,e.p,Math.round((e.s+e.c*i)*1e4)/1e4+e.u,e)},pn=function t(i,e){return e.set(e.t,e.p,i===1?e.e:Math.round((e.s+e.c*i)*1e4)/1e4+e.u,e)},gn=function t(i,e){return e.set(e.t,e.p,i?Math.round((e.s+e.c*i)*1e4)/1e4+e.u:e.b,e)},
|
|
488
500
|
//if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)
|
|
489
|
-
|
|
490
|
-
|
|
501
|
+
Cn=function t(i,e){return e.set(e.t,e.p,i===1?e.e:i?Math.round((e.s+e.c*i)*1e4)/1e4+e.u:e.b,e)},
|
|
502
|
+
//if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)
|
|
503
|
+
wn=function t(i,e){var n=e.s+e.c*i;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},yn=function t(i,e){return e.set(e.t,e.p,i?e.e:e.b,e)},Mn=function t(i,e){return e.set(e.t,e.p,i!==1?e.b:e.e,e)},jn=function t(i,e,n){return i.style[e]=n},bn=function t(i,e,n){return i.style.setProperty(e,n)},xn=function t(i,e,n){return i._gsap[e]=n},kn=function t(i,e,n){return i._gsap.scaleX=i._gsap.scaleY=n},Fn=function t(i,e,n,r,s){var o=i._gsap;o.scaleX=o.scaleY=n;o.renderTransform(s,o)},_n=function t(i,e,n,r,s){var o=i._gsap;o[e]=n;o.renderTransform(s,o)},Pn="transform",On=Pn+"Origin",Zn=function t(i,e){var n=this;var r=this.target,s=r.style,o=r._gsap;if(i in on&&s){this.tfm=this.tfm||{};if(i!=="transform"){i=mn[i]||i;~i.indexOf(",")?i.split(",").forEach((function(t){return n.tfm[t]=$n(r,t)})):this.tfm[i]=o.x?o[i]:$n(r,i);// note: scale would map to "scaleX,scaleY", thus we loop and apply them both.
|
|
504
|
+
i===On&&(this.tfm.zOrigin=o.zOrigin)}else{return mn.transform.split(",").forEach((function(i){return t.call(n,i,e)}))}if(this.props.indexOf(Pn)>=0){return}if(o.svg){this.svgo=r.getAttribute("data-svg-origin");this.props.push(On,e,"")}i=Pn}(s||e)&&this.props.push(i,e,s[i])},En=function t(i){if(i.translate){i.removeProperty("translate");i.removeProperty("scale");i.removeProperty("rotate")}},Bn=function t(){var i=this.props,e=this.target,n=e.style,r=e._gsap,s,o;for(s=0;s<i.length;s+=3){
|
|
491
505
|
// stored like this: property, isNotCSS, value
|
|
492
|
-
if(!i[s+1]){i[s+2]?n[i[s]]=i[s+2]:n.removeProperty(i[s].substr(0,2)==="--"?i[s]:i[s].replace(
|
|
506
|
+
if(!i[s+1]){i[s+2]?n[i[s]]=i[s+2]:n.removeProperty(i[s].substr(0,2)==="--"?i[s]:i[s].replace(ln,"-$1").toLowerCase())}else if(i[s+1]===2){
|
|
493
507
|
// non-CSS value (function-based)
|
|
494
508
|
e[i[s]](i[s+2])}else{
|
|
495
509
|
// non-CSS value (not function-based)
|
|
496
|
-
e[i[s]]=i[s+2]}}if(this.tfm){for(o in this.tfm){r[o]=this.tfm[o]}if(r.svg){r.renderTransform();e.setAttribute("data-svg-origin",this.svgo||"")}s=
|
|
510
|
+
e[i[s]]=i[s+2]}}if(this.tfm){for(o in this.tfm){r[o]=this.tfm[o]}if(r.svg){r.renderTransform();e.setAttribute("data-svg-origin",this.svgo||"")}s=rn();if((!s||!s.isStart)&&!n[Pn]){En(n);if(r.zOrigin&&n[On]){n[On]+=" "+r.zOrigin+"px";// since we're uncaching, we must put the zOrigin back into the transformOrigin so that we can pull it out accurately when we parse again. Otherwise, we'd lose the z portion of the origin since we extract it to protect from Safari bugs.
|
|
497
511
|
r.zOrigin=0;r.renderTransform()}r.uncache=1;// if it's a startAt that's being reverted in the _initTween() of the core, we don't need to uncache transforms. This is purely a performance optimization.
|
|
498
|
-
}}},
|
|
512
|
+
}}},Tn=function t(i,e){var n={target:i,props:[],revert:Bn,save:Zn};i._gsap||Ge.core.getCache(i);// just make sure there's a _gsap cache defined because we read from it in _saveStyle() and it's more efficient to just check it here once.
|
|
499
513
|
e&&i.style&&i.nodeType&&e.split(",").forEach((function(t){return n.save(t)}));// make sure it's a DOM node too.
|
|
500
|
-
return n},
|
|
501
|
-
return n&&n.style?n
|
|
502
|
-
},
|
|
503
|
-
},
|
|
504
|
-
|
|
514
|
+
return n},Rn,Yn=function t(i,e){var n=Je.createElementNS?Je.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),i):Je.createElement(i);//some servers swap in https for http in the namespace which can break things, making "style" inaccessible.
|
|
515
|
+
return n&&n.style?n:Je.createElement(i);//some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://gsap.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).
|
|
516
|
+
},Sn=function t(i,e,n){var r=getComputedStyle(i);return r[e]||r.getPropertyValue(e.replace(ln,"-$1").toLowerCase())||r.getPropertyValue(e)||!n&&t(i,Hn(e)||e,1)||"";//css variables may not need caps swapped out for dashes and lowercase.
|
|
517
|
+
},zn="O,Moz,ms,Ms,Webkit".split(","),Hn=function t(i,e,n){var r=e||en,s=r.style,o=5;if(i in s&&!n){return i}i=i.charAt(0).toUpperCase()+i.substr(1);while(o--&&!(zn[o]+i in s)){}return o<0?null:(o===3?"ms":o>=0?zn[o]:"")+i},In=function t(){if(sn()&&window.document){Qe=window;Je=Qe.document;Ke=Je.documentElement;en=Yn("div")||{style:{}};Yn("div");Pn=Hn(Pn);On=Pn+"Origin";en.style.cssText="border-width:0;line-height:0;position:absolute;padding:0";//make sure to override certain properties that may contaminate measurements, in case the user has overreaching style sheets.
|
|
518
|
+
Rn=!!Hn("perspective");rn=Ge.core.reverting;tn=1}},Dn=function t(i){
|
|
505
519
|
//works around issues in some browsers (like Firefox) that don't correctly report getBBox() on SVG elements inside a <defs> element and/or <mask>. We try creating an SVG, adding it to the documentElement and toss the element in there so that it's definitely part of the rendering tree, then grab the bbox and if it works, we actually swap out the original getBBox() method for our own that does these extra steps whenever getBBox is needed. This helps ensure that performance is optimal (only do all these extra steps when absolutely necessary...most elements don't need it).
|
|
506
|
-
var e=i.ownerSVGElement,n=
|
|
507
|
-
}catch(t){e=
|
|
508
|
-
return e&&!e.width&&!e.x&&!e.y?{x:+
|
|
520
|
+
var e=i.ownerSVGElement,n=Yn("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=i.cloneNode(true),s;r.style.display="block";n.appendChild(r);Ke.appendChild(n);try{s=r.getBBox()}catch(t){}n.removeChild(r);Ke.removeChild(n);return s},Ln=function t(i,e){var n=e.length;while(n--){if(i.hasAttribute(e[n])){return i.getAttribute(e[n])}}},Xn=function t(i){var e,n;try{e=i.getBBox();//Firefox throws errors if you try calling getBBox() on an SVG element that's not rendered (like in a <symbol> or <defs>). https://bugzilla.mozilla.org/show_bug.cgi?id=612118
|
|
521
|
+
}catch(t){e=Dn(i);n=1}e&&(e.width||e.height)||n||(e=Dn(i));//some browsers (like Firefox) misreport the bounds if the element has zero width and height (it just assumes it's at x:0, y:0), thus we need to manually grab the position in that case.
|
|
522
|
+
return e&&!e.width&&!e.x&&!e.y?{x:+Ln(i,["x","cx","x1"])||0,y:+Ln(i,["y","cy","y1"])||0,width:0,height:0}:e},Vn=function t(i){return!!(i.getCTM&&(!i.parentNode||i.ownerSVGElement)&&Xn(i))},
|
|
509
523
|
//reports if the element is an SVG on which getBBox() actually works
|
|
510
|
-
|
|
524
|
+
An=function t(i,e){if(e){var n=i.style,r;if(e in on&&e!==On){e=Pn}if(n.removeProperty){r=e.substr(0,2);if(r==="ms"||e.substr(0,6)==="webkit"){
|
|
511
525
|
//Microsoft and some Webkit browsers don't conform to the standard of capitalizing the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be "ms-transform" instead of "-ms-transform" for IE9, for example)
|
|
512
|
-
e="-"+e}n.removeProperty(r==="--"?e:e.replace(
|
|
526
|
+
e="-"+e}n.removeProperty(r==="--"?e:e.replace(ln,"-$1").toLowerCase())}else{
|
|
513
527
|
//note: old versions of IE use "removeAttribute()" instead of "removeProperty()"
|
|
514
|
-
n.removeAttribute(e)}}},
|
|
528
|
+
n.removeAttribute(e)}}},Un=function t(i,e,n,r,s,o){var u=new Se(i._pt,e,n,0,1,o?Mn:yn);i._pt=u;u.b=r;u.e=s;i._props.push(n);return u},Nn={deg:1,rad:1,turn:1},qn={grid:1,flex:1},
|
|
515
529
|
//takes a single value like 20px and converts it to the unit specified, like "%", returning only the numeric amount.
|
|
516
|
-
|
|
530
|
+
Wn=function t(i,e,n,r){var s=parseFloat(n)||0,o=(n+"").trim().substr((s+"").length)||"px",
|
|
517
531
|
// some browsers leave extra whitespace at the beginning of CSS variables, hence the need to trim()
|
|
518
|
-
|
|
532
|
+
u=en.style,a=cn.test(e),f=i.tagName.toLowerCase()==="svg",h=(f?"client":"offset")+(a?"Width":"Height"),l=100,c=r==="px",d=r==="%",m,v,p,g;if(r===o||!s||Nn[r]||Nn[o]){return s}o!=="px"&&!c&&(s=t(i,e,n,"px"));g=i.getCTM&&Vn(i);if((d||o==="%")&&(on[e]||~e.indexOf("adius"))){m=g?i.getBBox()[a?"width":"height"]:i[h];return yt(d?s/m*l:s/100*m)}u[a?"width":"height"]=l+(c?o:r);v=r!=="rem"&&~e.indexOf("adius")||r==="em"&&i.appendChild&&!f?i:i.parentNode;if(g){v=(i.ownerSVGElement||{}).parentNode}if(!v||v===Je||!v.appendChild){v=Je.body}p=v._gsap;if(p&&d&&p.width&&a&&p.time===Ni.time&&!p.uncache){return yt(s/p.width*l)}else{if(d&&(e==="height"||e==="width")){
|
|
519
533
|
// if we're dealing with width/height that's inside a container with padding and/or it's a flexbox/grid container, we must apply it to the target itself rather than the _tempDiv in order to ensure complete accuracy, factoring in the parent's padding.
|
|
520
|
-
var C=i.style[e];i.style[e]=l+r;m=i[h];C?i.style[e]=C:
|
|
521
|
-
v.appendChild(
|
|
522
|
-
}}return n&&!~(s+"").trim().indexOf(" ")?
|
|
534
|
+
var C=i.style[e];i.style[e]=l+r;m=i[h];C?i.style[e]=C:An(i,e)}else{(d||o==="%")&&!qn[Sn(v,"display")]&&(u.position=Sn(i,"position"));v===i&&(u.position="static");// like for borderRadius, if it's a % we must have it relative to the target itself but that may not have position: relative or position: absolute in which case it'd go up the chain until it finds its offsetParent (bad). position: static protects against that.
|
|
535
|
+
v.appendChild(en);m=en[h];v.removeChild(en);u.position="absolute"}if(a&&d){p=gt(v);p.time=Ni.time;p.width=v[h]}}return yt(c?m*s/l:m&&s?l/m*s:0)},$n=function t(i,e,n,r){var s;tn||In();if(e in mn&&e!=="transform"){e=mn[e];if(~e.indexOf(",")){e=e.split(",")[0]}}if(on[e]&&e!=="transform"){s=ur(i,r);s=e!=="transformOrigin"?s[e]:s.svg?s.origin:ar(Sn(i,On))+" "+s.zOrigin+"px"}else{s=i.style[e];if(!s||s==="auto"||r||~(s+"").indexOf("calc(")){s=tr[e]&&tr[e](i,e,n)||Sn(i,e)||Ct(i,e)||(e==="opacity"?1:0);// note: some browsers, like Firefox, don't report borderRadius correctly! Instead, it only reports every corner like borderTopLeftRadius
|
|
536
|
+
}}return n&&!~(s+"").trim().indexOf(" ")?Wn(i,e,s,n)+n:s},Gn=function t(i,e,n,r){
|
|
523
537
|
// note: we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus "this" would refer to the plugin.
|
|
524
538
|
if(!n||n==="none"){
|
|
525
539
|
// some browsers like Safari actually PREFER the prefixed property and mis-report the unprefixed value like clipPath (BUG). In other words, even though clipPath exists in the style ("clipPath" in target.style) and it's set in the CSS properly (along with -webkit-clip-path), Safari reports clipPath as "none" whereas WebkitClipPath reports accurately like "ellipse(100% 0% at 50% 0%)", so in this case we must SWITCH to using the prefixed property instead. See https://gsap.com/forums/topic/18310-clippath-doesnt-work-on-ios/
|
|
526
|
-
var s=
|
|
527
|
-
}}var
|
|
528
|
-
r+="";if(r.substring(0,6)==="var(--"){r=
|
|
529
|
-
n=h[0];r=h[1];
|
|
540
|
+
var s=Hn(e,i,1),o=s&&Sn(i,s,1);if(o&&o!==n){e=s;n=o}else if(e==="borderColor"){n=Sn(i,"borderTopColor");// Firefox bug: always reports "borderColor" as "", so we must fall back to borderTopColor. See https://gsap.com/forums/topic/24583-how-to-return-colors-that-i-had-after-reverse/
|
|
541
|
+
}}var u=new Se(this._pt,i.style,e,0,1,Ze),a=0,f=0,h,l,c,d,v,p,g,C,w,y,M,j;u.b=n;u.e=r;n+="";// ensure values are strings
|
|
542
|
+
r+="";if(r.substring(0,6)==="var(--"){r=Sn(i,r.substring(4,r.indexOf(")")))}if(r==="auto"){p=i.style[e];i.style[e]=r;r=Sn(i,e)||r;p?i.style[e]=p:An(i,e)}h=[n,r];Ai(h);// pass an array with the starting and ending values and let the filter do whatever it needs to the values. If colors are found, it returns true and then we must match where the color shows up order-wise because for things like boxShadow, sometimes the browser provides the computed values with the color FIRST, but the user provides it with the color LAST, so flip them if necessary. Same for drop-shadow().
|
|
543
|
+
n=h[0];r=h[1];c=n.match(L)||[];j=r.match(L)||[];if(j.length){while(l=L.exec(r)){g=l[0];w=r.substring(a,l.index);if(v){v=(v+1)%5}else if(w.substr(-5)==="rgba("||w.substr(-5)==="hsla("){v=1}if(g!==(p=c[f++]||"")){d=parseFloat(p)||0;M=p.substr((d+"").length);g.charAt(1)==="="&&(g=jt(d,g)+M);C=parseFloat(g);y=g.substr((C+"").length);a=L.lastIndex-y.length;if(!y){
|
|
530
544
|
//if something like "perspective:300" is passed in and we must add a unit to the end
|
|
531
|
-
y=y||
|
|
532
|
-
|
|
545
|
+
y=y||m.units[e]||M;if(a===r.length){r+=y;u.e+=y}}if(M!==y){d=Wn(i,e,p,y)||0}// these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.
|
|
546
|
+
u._pt={_next:u._pt,p:w||f===1?w:",",
|
|
533
547
|
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
534
|
-
s:
|
|
535
|
-
}else{
|
|
536
|
-
this._pt=
|
|
537
|
-
return
|
|
548
|
+
s:d,c:C-d,m:v&&v<4||e==="zIndex"?Math.round:0}}}u.c=a<r.length?r.substring(a,r.length):"";//we use the "c" of the PropTween to store the final part of the string (after the last number)
|
|
549
|
+
}else{u.r=e==="display"&&r==="none"?Mn:yn}V.test(r)&&(u.e=0);//if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).
|
|
550
|
+
this._pt=u;//start the linked list with this new PropTween. Remember, we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within another plugin too, thus "this" would refer to the plugin.
|
|
551
|
+
return u},Qn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Jn=function t(i){var e=i.split(" "),n=e[0],r=e[1]||"50%";if(n==="top"||n==="bottom"||r==="left"||r==="right"){
|
|
538
552
|
//the user provided them in the wrong order, so flip them
|
|
539
|
-
i=n;n=r;r=i}e[0]=
|
|
540
|
-
o.uncache=1;
|
|
553
|
+
i=n;n=r;r=i}e[0]=Qn[n]||n;e[1]=Qn[r]||r;return e.join(" ")},Kn=function t(i,e){if(e.tween&&e.tween._time===e.tween._dur){var n=e.t,r=n.style,s=e.u,o=n._gsap,u,a,f;if(s==="all"||s===true){r.cssText="";a=1}else{s=s.split(",");f=s.length;while(--f>-1){u=s[f];if(on[u]){a=1;u=u==="transformOrigin"?On:Pn}An(n,u)}}if(a){An(n,Pn);if(o){o.svg&&n.removeAttribute("transform");r.scale=r.rotate=r.translate="none";ur(n,1);// force all the cached values back to "normal"/identity, otherwise if there's another tween that's already set to render transforms on this element, it could display the wrong values.
|
|
554
|
+
o.uncache=1;En(r)}}}},
|
|
541
555
|
// note: specialProps should return 1 if (and only if) they have a non-zero priority. It indicates we need to sort the linked list.
|
|
542
|
-
|
|
556
|
+
tr={clearProps:function t(i,e,n,r,s){if(s.data!=="isFromStart"){var o=i._pt=new Se(i._pt,e,n,0,0,Kn);o.u=r;o.pr=-10;o.tween=s;i._props.push(n);return 1}}
|
|
543
557
|
/* className feature (about 0.4kb gzipped).
|
|
544
558
|
, className(plugin, target, property, endValue, tween) {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
559
|
+
let _renderClassName = (ratio, data) => {
|
|
560
|
+
data.css.render(ratio, data.css);
|
|
561
|
+
if (!ratio || ratio === 1) {
|
|
562
|
+
let inline = data.rmv,
|
|
563
|
+
target = data.t,
|
|
564
|
+
p;
|
|
565
|
+
target.setAttribute("class", ratio ? data.e : data.b);
|
|
566
|
+
for (p in inline) {
|
|
567
|
+
_removeProperty(target, p);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
_getAllStyles = (target) => {
|
|
572
|
+
let styles = {},
|
|
573
|
+
computed = getComputedStyle(target),
|
|
574
|
+
p;
|
|
575
|
+
for (p in computed) {
|
|
576
|
+
if (isNaN(p) && p !== "cssText" && p !== "length") {
|
|
577
|
+
styles[p] = computed[p];
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
_setDefaults(styles, _parseTransform(target, 1));
|
|
581
|
+
return styles;
|
|
582
|
+
},
|
|
583
|
+
startClassList = target.getAttribute("class"),
|
|
584
|
+
style = target.style,
|
|
585
|
+
cssText = style.cssText,
|
|
586
|
+
cache = target._gsap,
|
|
587
|
+
classPT = cache.classPT,
|
|
588
|
+
inlineToRemoveAtEnd = {},
|
|
589
|
+
data = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== "=") ? endValue : startClassList.replace(new RegExp("(?:\\s|^)" + endValue.substr(2) + "(?![\\w-])"), "") + ((endValue.charAt(0) === "+") ? " " + endValue.substr(2) : "")},
|
|
590
|
+
changingVars = {},
|
|
591
|
+
startVars = _getAllStyles(target),
|
|
592
|
+
transformRelated = /(transform|perspective)/i,
|
|
593
|
+
endVars, p;
|
|
594
|
+
if (classPT) {
|
|
595
|
+
classPT.r(1, classPT.d);
|
|
596
|
+
_removeLinkedListItem(classPT.d.plugin, classPT, "_pt");
|
|
597
|
+
}
|
|
598
|
+
target.setAttribute("class", data.e);
|
|
599
|
+
endVars = _getAllStyles(target, true);
|
|
600
|
+
target.setAttribute("class", startClassList);
|
|
601
|
+
for (p in endVars) {
|
|
602
|
+
if (endVars[p] !== startVars[p] && !transformRelated.test(p)) {
|
|
603
|
+
changingVars[p] = endVars[p];
|
|
604
|
+
if (!style[p] && style[p] !== "0") {
|
|
605
|
+
inlineToRemoveAtEnd[p] = 1;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
cache.classPT = plugin._pt = new PropTween(plugin._pt, target, "className", 0, 0, _renderClassName, data, 0, -11);
|
|
610
|
+
if (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://gsap.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.
|
|
611
|
+
style.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).
|
|
612
|
+
}
|
|
613
|
+
_parseTransform(target, true); //to clear the caching of transforms
|
|
614
|
+
data.css = new gsap.plugins.css();
|
|
615
|
+
data.css.init(target, changingVars, tween);
|
|
616
|
+
plugin._props.push(...data.css._props);
|
|
617
|
+
return 1;
|
|
604
618
|
}
|
|
605
619
|
*/},
|
|
606
620
|
/*
|
|
@@ -608,87 +622,88 @@ Qn={clearProps:function t(i,e,n,r,s){if(s.data!=="isFromStart"){var o=i._pt=new
|
|
|
608
622
|
* TRANSFORMS
|
|
609
623
|
* --------------------------------------------------------------------------------------
|
|
610
624
|
*/
|
|
611
|
-
|
|
612
|
-
s=[
|
|
625
|
+
ir=[1,0,0,1,0,0],er={},nr=function t(i){return i==="matrix(1, 0, 0, 1, 0, 0)"||i==="none"||!i},rr=function t(i){var e=Sn(i,Pn);return nr(e)?ir:e.substr(7).match(D).map(yt)},sr=function t(i,e){var n=i._gsap||gt(i),r=i.style,s=rr(i),o,u,a,f;if(n.svg&&i.getAttribute("transform")){a=i.transform.baseVal.consolidate().matrix;//ensures that even complex values like "translate(50,60) rotate(135,0,0)" are parsed because it mashes it into a matrix.
|
|
626
|
+
s=[a.a,a.b,a.c,a.d,a.e,a.f];return s.join(",")==="1,0,0,1,0,0"?ir:s}else if(s===ir&&!i.offsetParent&&i!==Ke&&!n.svg){
|
|
613
627
|
//note: if offsetParent is null, that means the element isn't in the normal document flow, like if it has display:none or one of its ancestors has display:none). Firefox returns null for getComputedStyle() if the element is in an iframe that has display:none. https://bugzilla.mozilla.org/show_bug.cgi?id=548397
|
|
614
628
|
//browsers don't report transforms accurately unless the element is in the DOM and has a display value that's not "none". Firefox and Microsoft browsers have a partial bug where they'll report transforms even if display:none BUT not any percentage-based values like translate(-50%, 8px) will be reported as if it's translate(0, 8px).
|
|
615
|
-
|
|
629
|
+
a=r.display;r.display="block";o=i.parentNode;if(!o||!i.offsetParent&&!i.getBoundingClientRect().width){
|
|
616
630
|
// note: in 3.3.0 we switched target.offsetParent to _doc.body.contains(target) to avoid [sometimes unnecessary] MutationObserver calls but that wasn't adequate because there are edge cases where nested position: fixed elements need to get reparented to accurately sense transforms. See https://github.com/greensock/GSAP/issues/388 and https://github.com/greensock/GSAP/issues/375. Note: position: fixed elements report a null offsetParent but they could also be invisible because they're in an ancestor with display: none, so we check getBoundingClientRect(). We only want to alter the DOM if we absolutely have to because it can cause iframe content to reload, like a Vimeo video.
|
|
617
631
|
f=1;//flag
|
|
618
|
-
|
|
619
|
-
}s=
|
|
632
|
+
u=i.nextElementSibling;Ke.appendChild(i);//we must add it to the DOM in order to get values properly
|
|
633
|
+
}s=rr(i);a?r.display=a:An(i,"display");if(f){u?o.insertBefore(i,u):o?o.appendChild(i):Ke.removeChild(i)}}return e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s},or=function t(i,e,n,r,s,o){var u=i._gsap,a=s||sr(i,true),f=u.xOrigin||0,h=u.yOrigin||0,l=u.xOffset||0,c=u.yOffset||0,d=a[0],m=a[1],v=a[2],p=a[3],g=a[4],C=a[5],w=e.split(" "),y=parseFloat(w[0])||0,M=parseFloat(w[1])||0,j,b,x,k;if(!n){j=Xn(i);y=j.x+(~w[0].indexOf("%")?y/100*j.width:y);M=j.y+(~(w[1]||w[0]).indexOf("%")?M/100*j.height:M);// if (!("xOrigin" in cache) && (xOrigin || yOrigin)) { // added in 3.12.3, reverted in 3.12.4; requires more exploration
|
|
620
634
|
// xOrigin -= bounds.x;
|
|
621
635
|
// yOrigin -= bounds.y;
|
|
622
636
|
// }
|
|
623
|
-
}else if(
|
|
637
|
+
}else if(a!==ir&&(b=d*p-m*v)){
|
|
624
638
|
//if it's zero (like if scaleX and scaleY are zero), skip it to avoid errors with dividing by zero.
|
|
625
|
-
x=y*(p/
|
|
626
|
-
}if(r||r!==false&&
|
|
627
|
-
if(o){
|
|
639
|
+
x=y*(p/b)+M*(-v/b)+(v*C-p*g)/b;k=y*(-m/b)+M*(d/b)-(d*C-m*g)/b;y=x;M=k;// theory: we only had to do this for smoothing and it assumes that the previous one was not originIsAbsolute.
|
|
640
|
+
}if(r||r!==false&&u.smooth){g=y-f;C=M-h;u.xOffset=l+(g*d+C*v)-g;u.yOffset=c+(g*m+C*p)-C}else{u.xOffset=u.yOffset=0}u.xOrigin=y;u.yOrigin=M;u.smooth=!!r;u.origin=e;u.originIsAbsolute=!!n;i.style[On]="0px 0px";//otherwise, if someone sets an origin via CSS, it will likely interfere with the SVG transform attribute ones (because remember, we're baking the origin into the matrix() value).
|
|
641
|
+
if(o){Un(o,u,"xOrigin",f,y);Un(o,u,"yOrigin",h,M);Un(o,u,"xOffset",l,u.xOffset);Un(o,u,"yOffset",c,u.yOffset)}i.setAttribute("data-svg-origin",y+" "+M)},ur=function t(i,e){var n=i._gsap||new oe(i);if("x"in n&&!e&&!n.uncache){return n}var r=i.style,s=n.scaleX<0,o="px",u="deg",a=getComputedStyle(i),f=Sn(i,On)||"0",h,l,c,d,v,p,g,C,w,y,M,j,b,x,k,F,_,P,O,Z,E,B,T,R,Y,S,z,H,I,D,L,X;h=l=c=p=g=C=w=y=M=0;d=v=1;n.svg=!!(i.getCTM&&Vn(i));if(a.translate){
|
|
628
642
|
// accommodate independent transforms by combining them into normal ones.
|
|
629
|
-
if(
|
|
643
|
+
if(a.translate!=="none"||a.scale!=="none"||a.rotate!=="none"){r[Pn]=(a.translate!=="none"?"translate3d("+(a.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(a.rotate!=="none"?"rotate("+a.rotate+") ":"")+(a.scale!=="none"?"scale("+a.scale.split(" ").join(",")+") ":"")+(a[Pn]!=="none"?a[Pn]:"")}r.scale=r.rotate=r.translate="none"}x=sr(i,n.svg);if(n.svg){if(n.uncache){
|
|
630
644
|
// if cache.uncache is true (and maybe if origin is 0,0), we need to set element.style.transformOrigin = (cache.xOrigin - bbox.x) + "px " + (cache.yOrigin - bbox.y) + "px". Previously we let the data-svg-origin stay instead, but when introducing revert(), it complicated things.
|
|
631
|
-
|
|
632
|
-
}
|
|
645
|
+
Y=i.getBBox();f=n.xOrigin-Y.x+"px "+(n.yOrigin-Y.y)+"px";R=""}else{R=!e&&i.getAttribute("data-svg-origin");// Remember, to work around browser inconsistencies we always force SVG elements' transformOrigin to 0,0 and offset the translation accordingly.
|
|
646
|
+
}or(i,R||f,!!R||n.originIsAbsolute,n.smooth!==false,x)}j=n.xOrigin||0;b=n.yOrigin||0;if(x!==ir){P=x[0];//a11
|
|
633
647
|
O=x[1];//a21
|
|
634
648
|
Z=x[2];//a31
|
|
635
649
|
E=x[3];//a41
|
|
636
650
|
h=B=x[4];l=T=x[5];//2D matrix
|
|
637
|
-
if(x.length===6){
|
|
638
|
-
w=Z||E?
|
|
639
|
-
}else{
|
|
640
|
-
if(k){F=Math.cos(-k);_=Math.sin(-k);
|
|
641
|
-
k=
|
|
642
|
-
k=
|
|
651
|
+
if(x.length===6){d=Math.sqrt(P*P+O*O);v=Math.sqrt(E*E+Z*Z);p=P||O?fn(O,P)*un:0;//note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).
|
|
652
|
+
w=Z||E?fn(Z,E)*un+p:0;w&&(v*=Math.abs(Math.cos(w*an)));if(n.svg){h-=j-(j*P+b*Z);l-=b-(j*O+b*E)}//3D matrix
|
|
653
|
+
}else{X=x[6];D=x[7];z=x[8];H=x[9];I=x[10];L=x[11];h=x[12];l=x[13];c=x[14];k=fn(X,I);g=k*un;//rotationX
|
|
654
|
+
if(k){F=Math.cos(-k);_=Math.sin(-k);R=B*F+z*_;Y=T*F+H*_;S=X*F+I*_;z=B*-_+z*F;H=T*-_+H*F;I=X*-_+I*F;L=D*-_+L*F;B=R;T=Y;X=S}//rotationY
|
|
655
|
+
k=fn(-Z,I);C=k*un;if(k){F=Math.cos(-k);_=Math.sin(-k);R=P*F-z*_;Y=O*F-H*_;S=Z*F-I*_;L=E*_+L*F;P=R;O=Y;Z=S}//rotationZ
|
|
656
|
+
k=fn(O,P);p=k*un;if(k){F=Math.cos(k);_=Math.sin(k);R=P*F+O*_;Y=B*F+T*_;O=O*F-P*_;T=T*F-B*_;P=R;B=Y}if(g&&Math.abs(g)+Math.abs(p)>359.9){
|
|
643
657
|
//when rotationY is set, it will often be parsed as 180 degrees different than it should be, and rotationX and rotation both being 180 (it looks the same), so we adjust for that here.
|
|
644
|
-
g=p=0;C=180-C}
|
|
658
|
+
g=p=0;C=180-C}d=yt(Math.sqrt(P*P+O*O+Z*Z));v=yt(Math.sqrt(T*T+X*X));k=fn(B,T);w=Math.abs(k)>2e-4?k*un:0;M=L?1/(L<0?-L:L):0}if(n.svg){
|
|
645
659
|
//sense if there are CSS transforms applied on an SVG element in which case we must overwrite them when rendering. The transform attribute is more reliable cross-browser, but we can't just remove the CSS ones because they may be applied in a CSS rule somewhere (not just inline).
|
|
646
|
-
|
|
660
|
+
R=i.getAttribute("transform");n.forceCSS=i.setAttribute("transform","")||!nr(Sn(i,Pn));R&&i.setAttribute("transform",R)}}if(Math.abs(w)>90&&Math.abs(w)<270){if(s){d*=-1;w+=p<=0?180:-180;p+=p<=0?180:-180}else{v*=-1;w+=w<=0?180:-180}}e=e||n.uncache;n.x=h-((n.xPercent=h&&(!e&&n.xPercent||(Math.round(i.offsetWidth/2)===Math.round(-h)?-50:0)))?i.offsetWidth*n.xPercent/100:0)+o;n.y=l-((n.yPercent=l&&(!e&&n.yPercent||(Math.round(i.offsetHeight/2)===Math.round(-l)?-50:0)))?i.offsetHeight*n.yPercent/100:0)+o;n.z=c+o;n.scaleX=yt(d);n.scaleY=yt(v);n.rotation=yt(p)+u;n.rotationX=yt(g)+u;n.rotationY=yt(C)+u;n.skewX=w+u;n.skewY=y+u;n.transformPerspective=M+o;if(n.zOrigin=parseFloat(f.split(" ")[2])||!e&&n.zOrigin||0){r[On]=ar(f)}n.xOffset=n.yOffset=0;n.force3D=m.force3D;n.renderTransform=n.svg?vr:Rn?mr:hr;n.uncache=0;return n},ar=function t(i){return(i=i.split(" "))[0]+" "+i[1]},
|
|
647
661
|
//for handling transformOrigin values, stripping out the 3rd dimension
|
|
648
|
-
|
|
649
|
-
if(w&&(l!==
|
|
662
|
+
fr=function t(i,e,n){var r=fi(e);return yt(parseFloat(e)+parseFloat(Wn(i,"x",n+"px",r)))+r},hr=function t(i,e){e.z="0px";e.rotationY=e.rotationX="0deg";e.force3D=0;mr(i,e)},lr="0deg",cr="0px",dr=") ",mr=function t(i,e){var n=e||this,r=n.xPercent,s=n.yPercent,o=n.x,u=n.y,a=n.z,f=n.rotation,h=n.rotationY,l=n.rotationX,c=n.skewX,d=n.skewY,m=n.scaleX,v=n.scaleY,p=n.transformPerspective,g=n.force3D,C=n.target,w=n.zOrigin,y="",M=g==="auto"&&i&&i!==1||g===true;// Safari has a bug that causes it not to render 3D transform-origin values properly, so we force the z origin to 0, record it in the cache, and then do the math here to offset the translate values accordingly (basically do the 3D transform-origin part manually)
|
|
663
|
+
if(w&&(l!==lr||h!==lr)){var j=parseFloat(h)*an,b=Math.sin(j),x=Math.cos(j),k;j=parseFloat(l)*an;k=Math.cos(j);o=fr(C,o,b*k*-w);u=fr(C,u,-Math.sin(j)*-w);a=fr(C,a,x*k*-w+w)}if(p!==cr){y+="perspective("+p+dr}if(r||s){y+="translate("+r+"%, "+s+"%) "}if(M||o!==cr||u!==cr||a!==cr){y+=a!==cr||M?"translate3d("+o+", "+u+", "+a+") ":"translate("+o+", "+u+dr}if(f!==lr){y+="rotate("+f+dr}if(h!==lr){y+="rotateY("+h+dr}if(l!==lr){y+="rotateX("+l+dr}if(c!==lr||d!==lr){y+="skew("+c+", "+d+dr}if(m!==1||v!==1){y+="scale("+m+", "+v+dr}C.style[Pn]=y||"translate(0, 0)"},vr=function t(i,e){var n=e||this,r=n.xPercent,s=n.yPercent,o=n.x,u=n.y,a=n.rotation,f=n.skewX,h=n.skewY,l=n.scaleX,c=n.scaleY,d=n.target,m=n.xOrigin,v=n.yOrigin,p=n.xOffset,g=n.yOffset,C=n.forceCSS,w=parseFloat(o),y=parseFloat(u),M,j,b,x,k;a=parseFloat(a);f=parseFloat(f);h=parseFloat(h);if(h){
|
|
650
664
|
//for performance reasons, we combine all skewing into the skewX and rotation values. Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of 10 degrees.
|
|
651
|
-
h=parseFloat(h);f+=h;
|
|
665
|
+
h=parseFloat(h);f+=h;a+=h}if(a||f){a*=an;f*=an;M=Math.cos(a)*l;j=Math.sin(a)*l;b=Math.sin(a-f)*-c;x=Math.cos(a-f)*c;if(f){h*=an;k=Math.tan(f-h);k=Math.sqrt(1+k*k);b*=k;x*=k;if(h){k=Math.tan(h);k=Math.sqrt(1+k*k);M*=k;j*=k}}M=yt(M);j=yt(j);b=yt(b);x=yt(x)}else{M=l;x=c;j=b=0}if(w&&!~(o+"").indexOf("px")||y&&!~(u+"").indexOf("px")){w=Wn(d,"x",o,"px");y=Wn(d,"y",u,"px")}if(m||v||p||g){w=yt(w+m-(m*M+v*b)+p);y=yt(y+v-(m*j+v*x)+g)}if(r||s){
|
|
652
666
|
//The SVG spec doesn't support percentage-based translation in the "transform" attribute, so we merge it into the translation to simulate it.
|
|
653
|
-
k=d.getBBox();w=
|
|
654
|
-
},
|
|
667
|
+
k=d.getBBox();w=yt(w+r/100*k.width);y=yt(y+s/100*k.height)}k="matrix("+M+","+j+","+b+","+x+","+w+","+y+")";d.setAttribute("transform",k);C&&(d.style[Pn]=k);//some browsers prioritize CSS transforms over the transform attribute. When we sense that the user has CSS transforms applied, we must overwrite them this way (otherwise some browser simply won't render the transform attribute changes!)
|
|
668
|
+
},pr=function t(i,e,n,r,s){var o=360,u=_(s),a=parseFloat(s)*(u&&~s.indexOf("rad")?un:1),f=a-r,h=r+f+"deg",l,c;if(u){l=s.split("_")[1];if(l==="short"){f%=o;if(f!==f%(o/2)){f+=f<0?o:-o}}if(l==="cw"&&f<0){f=(f+o*hn)%o-~~(f/o)*o}else if(l==="ccw"&&f>0){f=(f-o*hn)%o-~~(f/o)*o}}i._pt=c=new Se(i._pt,e,n,r,f,pn);c.e=h;c.u="deg";i._props.push(n);return c},gr=function t(i,e){
|
|
655
669
|
// Internet Explorer doesn't have Object.assign(), so we recreate it here.
|
|
656
|
-
for(var n in e){i[n]=e[n]}return i},
|
|
670
|
+
for(var n in e){i[n]=e[n]}return i},Cr=function t(i,e,n){
|
|
657
671
|
//for handling cases where someone passes in a whole transform string, like transform: "scale(2, 3) rotate(20deg) translateY(30em)"
|
|
658
|
-
var r=
|
|
672
|
+
var r=gr({},n._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=n.style,u,a,f,h,l,c,d,m;if(r.svg){f=n.getAttribute("transform");n.setAttribute("transform","");o[Pn]=e;u=ur(n,1);An(n,Pn);n.setAttribute("transform",f)}else{f=getComputedStyle(n)[Pn];o[Pn]=e;u=ur(n,1);o[Pn]=f}for(a in on){f=r[a];h=u[a];if(f!==h&&s.indexOf(a)<0){
|
|
659
673
|
//tweening to no perspective gives very unintuitive results - just keep the same perspective in that case.
|
|
660
|
-
d=
|
|
661
|
-
|
|
674
|
+
d=fi(f);m=fi(h);l=d!==m?Wn(n,a,f,m):parseFloat(f);c=parseFloat(h);i._pt=new Se(i._pt,u,a,l,c-l,vn);i._pt.u=m||0;i._props.push(a)}}gr(u,r)};// handle splitting apart padding, margin, borderWidth, and borderRadius into their 4 components. Firefox, for example, won't report borderRadius correctly - it will only do borderTopLeftRadius and the other corners. We also want to handle paddingTop, marginLeft, borderRightWidth, etc.
|
|
675
|
+
wt("padding,margin,Width,Radius",(function(t,i){var e="Top",n="Right",r="Bottom",s="Left",o=(i<3?[e,n,r,s]:[e+s,e+n,r+n,r+s]).map((function(e){return i<2?t+e:"border"+e+t}));tr[i>1?"border"+t:t]=function(t,i,e,n,r){var s,u;if(arguments.length<4){
|
|
662
676
|
// getter, passed target, property, and unit (from _get())
|
|
663
|
-
s=o.map((function(i){return
|
|
664
|
-
this.styles=this.styles||
|
|
677
|
+
s=o.map((function(i){return $n(t,i,e)}));u=s.join(" ");return u.split(s[0]).length===5?s[0]:u}s=(n+"").split(" ");u={};o.forEach((function(t,i){return u[t]=s[i]=s[i]||s[(i-1)/2|0]}));t.init(i,u,r)}}));var wr={name:"css",register:In,targetTest:function t(i){return i.style&&i.nodeType},init:function t(i,e,n,r,s){var o=this._props,u=i.style,a=n.vars.startAt,f,h,l,c,d,v,p,g,C,w,y,M,j,b,x,k,F;tn||In();// we may call init() multiple times on the same plugin instance, like when adding special properties, so make sure we don't overwrite the revert data or inlineProps
|
|
678
|
+
this.styles=this.styles||Tn(i);k=this.styles.props;this.tween=n;for(p in e){if(p==="autoRound"){continue}h=e[p];if(lt[p]&&ce(p,e,n,r,i,s)){
|
|
665
679
|
// plugins
|
|
666
|
-
continue}
|
|
680
|
+
continue}d=typeof h;v=tr[p];if(d==="function"){h=h.call(n,r,i,s);d=typeof h}if(d==="string"&&~h.indexOf("random(")){h=_i(h)}if(v){v(this,i,p,h,n)&&(x=1)}else if(p.substr(0,2)==="--"){
|
|
667
681
|
//CSS variable
|
|
668
|
-
f=(getComputedStyle(i).getPropertyValue(p)+"").trim();h+="";
|
|
682
|
+
f=(getComputedStyle(i).getPropertyValue(p)+"").trim();h+="";Xi.lastIndex=0;if(!Xi.test(f)){
|
|
669
683
|
// colors don't have units
|
|
670
|
-
g=
|
|
684
|
+
g=fi(f);C=fi(h);C?g!==C&&(f=Wn(i,p,f,C)+C):g&&(h+=g)}this.add(u,"setProperty",f,h,r,s,0,0,p);o.push(p);k.push(p,0,u[p])}else if(d!=="undefined"){if(a&&p in a){
|
|
671
685
|
// in case someone hard-codes a complex value as the start, like top: "calc(2vh / 2)". Without this, it'd use the computed value (always in px)
|
|
672
|
-
f=typeof
|
|
673
|
-
(f+"").charAt(1)==="="&&(f
|
|
674
|
-
}else{f
|
|
686
|
+
f=typeof a[p]==="function"?a[p].call(n,r,i,s):a[p];_(f)&&~f.indexOf("random(")&&(f=_i(f));fi(f+"")||f==="auto"||(f+=m.units[p]||fi($n(i,p))||"");// for cases when someone passes in a unitless value like {x: 100}; if we try setting translate(100, 0px) it won't work.
|
|
687
|
+
(f+"").charAt(1)==="="&&(f=$n(i,p));// can't work with relative values
|
|
688
|
+
}else{f=$n(i,p)}c=parseFloat(f);w=d==="string"&&h.charAt(1)==="="&&h.substr(0,2);w&&(h=h.substr(2));l=parseFloat(h);if(p in mn){if(p==="autoAlpha"){
|
|
675
689
|
//special case where we control the visibility along with opacity. We still allow the opacity value to pass through and get tweened.
|
|
676
|
-
if(
|
|
690
|
+
if(c===1&&$n(i,"visibility")==="hidden"&&l){
|
|
677
691
|
//if visibility is initially set to "hidden", we should interpret that as intent to make opacity 0 (a convenience)
|
|
678
|
-
|
|
679
|
-
if(y){this.styles.save(p);
|
|
680
|
-
|
|
692
|
+
c=0}k.push("visibility",0,u.visibility);Un(this,u,"visibility",c?"inherit":"hidden",l?"inherit":"hidden",!l)}if(p!=="scale"&&p!=="transform"){p=mn[p];~p.indexOf(",")&&(p=p.split(",")[0])}}y=p in on;//--- TRANSFORM-RELATED ---
|
|
693
|
+
if(y){this.styles.save(p);F=h;// this is always the same as endValue except when it's a var(--) value, in which case we need to calculate the end value.
|
|
694
|
+
if(d==="string"&&h.substring(0,6)==="var(--"){h=Sn(i,h.substring(4,h.indexOf(")")));if(h.substring(0,5)==="calc("){var P=i.style.perspective;i.style.perspective=h;h=Sn(i,"perspective");P?i.style.perspective=P:An(i,"perspective")}l=parseFloat(h)}if(!M){j=i._gsap;j.renderTransform&&!e.parseTransform||ur(i,e.parseTransform);// if, for example, gsap.set(... {transform:"translateX(50vw)"}), the _get() call doesn't parse the transform, thus cache.renderTransform won't be set yet so force the parsing of the transform here.
|
|
695
|
+
b=e.smoothOrigin!==false&&j.smooth;M=this._pt=new Se(this._pt,u,Pn,0,1,j.renderTransform,j,0,-1);//the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)
|
|
681
696
|
M.dep=1;//flag it as dependent so that if things get killed/overwritten and this is the only PropTween left, we can safely kill the whole tween.
|
|
682
|
-
}if(p==="scale"){this._pt=new
|
|
683
|
-
if(
|
|
684
|
-
C!==
|
|
685
|
-
C=
|
|
697
|
+
}if(p==="scale"){this._pt=new Se(this._pt,j,"scaleY",j.scaleY,(w?jt(j.scaleY,w+l):l)-j.scaleY||0,vn);this._pt.u=0;o.push("scaleY",p);p+="X"}else if(p==="transformOrigin"){k.push(On,0,u[On]);h=Jn(h);//in case something like "left top" or "bottom right" is passed in. Convert to percentages.
|
|
698
|
+
if(j.svg){or(i,h,0,b,0,this)}else{C=parseFloat(h.split(" ")[2])||0;//handle the zOrigin separately!
|
|
699
|
+
C!==j.zOrigin&&Un(this,j,"zOrigin",j.zOrigin,C);Un(this,u,p,ar(f),ar(h))}continue}else if(p==="svgOrigin"){or(i,h,1,b,0,this);continue}else if(p in er){pr(this,j,p,c,w?jt(c,w+h):h);continue}else if(p==="smoothOrigin"){Un(this,j,"smooth",j.smooth,h);continue}else if(p==="force3D"){j[p]=h;continue}else if(p==="transform"){Cr(this,h,i);continue}}else if(!(p in u)){p=Hn(p)||p}if(y||(l||l===0)&&(c||c===0)&&!dn.test(h)&&p in u){g=(f+"").substr((c+"").length);l||(l=0);// protect against NaN
|
|
700
|
+
C=fi(h)||(p in m.units?m.units[p]:g);g!==C&&(c=Wn(i,p,f,C));this._pt=new Se(this._pt,y?j:u,p,c,(w?jt(c,w+l):l)-c,!y&&(C==="px"||p==="zIndex")&&e.autoRound!==false?wn:vn);this._pt.u=C||0;if(y&&F!==h){this._pt.b=f;this._pt.e=F;this._pt.r=Cn}else if(g!==C&&C!=="%"){
|
|
686
701
|
//when the tween goes all the way back to the beginning, we need to revert it to the OLD/ORIGINAL value (with those units). We record that as a "b" (beginning) property and point to a render method that handles that. (performance optimization)
|
|
687
|
-
this._pt.b=f;this._pt.r=
|
|
702
|
+
this._pt.b=f;this._pt.r=gn}}else if(!(p in u)){if(p in i){
|
|
688
703
|
//maybe it's not a style - it could be a property added directly to an element in which case we'll try to animate that.
|
|
689
|
-
this.add(i,p,f||i[p],w?w+h:h,r,s)}else if(p!=="parseTransform"){
|
|
704
|
+
this.add(i,p,f||i[p],w?w+h:h,r,s)}else if(p!=="parseTransform"){tt(p,h);continue}}else{Gn.call(this,i,p,f,w?w+h:h)}y||(p in u?k.push(p,0,u[p]):typeof i[p]==="function"?k.push(p,2,i[p]()):k.push(p,1,f||i[p]));o.push(p)}}x&&Ye(this)},render:function t(i,e){if(e.tween._time||!rn()){var n=e._pt;while(n){n.r(i,n.d);n=n._next}}else{e.styles.revert()}},get:$n,aliases:mn,getSetter:function t(i,e,n){
|
|
690
705
|
//returns a setter function that accepts target, property, value and applies it accordingly. Remember, properties like "x" aren't as simple as target.style.property = value because they've got to be applied to a proxy object and then merged into a transform string in a renderer.
|
|
691
|
-
var r=ln[e];r&&r.indexOf(",")<0&&(e=r);return e in nn&&e!==kn&&(i._gsap.x||Un(i,"x"))?n&&Ke===n?e==="scale"?Mn:yn:(Ke=n||{})&&(e==="scale"?bn:jn):i.style&&!P(i.style[e])?Cn:~e.indexOf("-")?wn:xe(i,e)},core:{_removeProperty:Ln,_getMatrix:ir}};qe.utils.checkPrefix=Yn;qe.core.getStyleSaver=On;(function(t,i,e,n){var r=vt(t+","+i+","+e,(function(t){nn[t]=1}));vt(i,(function(t){c.units[t]="deg";Jn[t]=1}));ln[r[13]]=t+","+i;vt(n,(function(t){var i=t.split(":");ln[i[1]]=r[i[0]]}))})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");vt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){c.units[t]="px"}));qe.registerPlugin(vr);var pr=qe.registerPlugin(vr)||qe;var gr='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g id="head-default">\n <path id="border-head" d="M15.8188 3C16.5046 3.00015 17.141 3.36269 17.4986 3.95703L21.7112 10.957C22.0963 11.5972 22.0963 12.4028 21.7112 13.043L17.4986 20.043C17.141 20.6373 16.5046 20.9998 15.8188 21H8.18127C7.49525 21 6.85822 20.6375 6.50049 20.043L2.28892 13.043C1.90369 12.4027 1.90369 11.5973 2.28892 10.957L6.50049 3.95703C6.85822 3.36252 7.49525 3 8.18127 3H15.8188Z" stroke="var(--mds-emoji-mia-head-stroke-color, rgb(194 160 251))" stroke-width="var(--mds-emoji-mia-head-stroke-width, 2px)" fill="var(--mds-emoji-mia-head-stroke-color, rgb(194 160 251))"/>\n <path id="path-head" d="M15.8188 3C16.5046 3.00015 17.141 3.36269 17.4986 3.95703L21.7112 10.957C22.0963 11.5972 22.0963 12.4028 21.7112 13.043L17.4986 20.043C17.141 20.6373 16.5046 20.9998 15.8188 21H8.18127C7.49525 21 6.85822 20.6375 6.50049 20.043L2.28892 13.043C1.90369 12.4027 1.90369 11.5973 2.28892 10.957L6.50049 3.95703C6.85822 3.36252 7.49525 3 8.18127 3H15.8188Z" fill="var(--mds-emoji-mia-head-color, rgb(224 207 253))"/>\n </g>\n <g id="eyes-default">\n <path id="left-eye" d="M8 8H10V12H8V8Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n <path id="right-eye" d="M14 8H16V12H14V8Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n </g>\n <g id="eyes-closed" style="visibility:hidden;">\n <path id="left-eye-closed" d="M6 10H10V12H6V10Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n <path id="right-eye-closed" d="M14 10H18V12H14V10Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n </g>\n <path id="mouth-default" d="M16.707 15.707C15.4771 16.937 13.6985 17.5 12 17.5C10.3015 17.5 8.52294 16.937 7.29297 15.707L8.70703 14.293C9.47706 15.063 10.6985 15.5 12 15.5C13.3015 15.5 14.5229 15.063 15.293 14.293L16.707 15.707Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="mouth-smile" style="visibility:hidden;" d="M16 14H8C8.33333 15.3333 9 18 12 18C15 18 15.6667 15.3333 16 14Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="mouth-serious" style="visibility:hidden;" d="M8 15H16V17H8V15Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="hand-think" style="visibility:hidden;" d="M6 16C6.55228 16 7 16.4477 7 17V18H13C13.5523 18 14 18.4477 14 19C14 19.5523 13.5523 20 13 20H10.3818C11.1252 20 11.6088 20.7824 11.2764 21.4473L10.2764 23.4473C10.107 23.786 9.76059 24 9.38184 24H4V20L5 18V16H6Z" fill="var(--mds-emoji-mia-hands-color, rgb(98 12 245))"/>\n</svg>\n';var Cr='<svg width="440" height="440" viewBox="0 0 440 440" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g id="ears-default">\n <g id="ear-right">\n <path id="ear-right-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M363.838 54.3257C339.126 44.6171 278.031 90.7244 256.023 111.557C205.523 159.363 303.523 209.826 358.387 195.099C380.992 189.032 391.095 169.008 388.672 165.367C386.734 162.454 374.135 161.322 368.078 161.12C376.962 129.567 388.551 64.0342 363.838 54.3257Z"/>\n <path id="ear-right-inner-shape" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M351.676 53.2891C356.294 52.7076 360.415 52.9806 363.838 54.3252C364.658 54.6472 365.437 55.0331 366.178 55.4746C368.347 56.9073 370.299 58.8573 372.053 61.2344C385.423 81.3621 375.744 133.891 368.078 161.119C374.135 161.321 386.734 162.455 388.672 165.367C391.094 169.008 380.992 189.032 358.387 195.1C357.17 195.426 355.929 195.687 354.667 195.888C317.523 201.796 244.693 161.119 265.859 130.788C281.528 108.336 324.274 59.2313 351.676 53.2891Z"/>\n <path id="ear-right-hole" fill="var(--mds-emoji-simi-skin-dark, #C3481B)" d="M350.023 84.8079C329.105 90.1196 311.307 114.384 305.023 125.853C299.251 136.387 303.53 147.927 311.277 155C320.553 163.469 334.801 165.535 342.726 151.808C361.778 118.808 355.529 93.3915 350.023 84.8079Z"/>\n <path id="ear-right-outline-border" stroke="var(--mds-emoji-simi-skin-dark, #C3481B)" stroke-width="9" stroke-linecap="round" d="M363.838 54.3257C339.126 44.6171 278.031 90.7244 256.023 111.557C205.523 159.363 303.523 209.826 358.387 195.099C380.992 189.032 391.095 169.008 388.672 165.367C386.734 162.454 374.135 161.322 368.078 161.12C376.962 129.567 388.551 64.0342 363.838 54.3257Z"/>\n <path id="ear-right-border" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M349.523 84.5C334.523 89 291.523 121 306.523 149"/>\n </g>\n <g id="ear-left">\n <path id="ear-left-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M77.1852 54.3257C101.898 44.6171 162.993 90.7244 185 111.557C235.5 159.363 137.5 209.826 82.6365 195.099C60.0315 189.032 49.9287 169.008 52.3515 165.367C54.2897 162.454 66.8883 161.322 72.9453 161.12C64.0617 129.567 52.4726 64.0342 77.1852 54.3257Z"/>\n <path id="ear-left-inner-shape" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M89.3476 53.2891C84.7294 52.7076 80.6085 52.9806 77.1855 54.3252C76.3658 54.6472 75.5869 55.0331 74.8457 55.4746C72.6763 56.9073 70.7246 58.8573 68.9707 61.2344C55.6008 81.3621 65.2794 133.891 72.9453 161.119C66.8883 161.321 54.2898 162.455 52.3516 165.367C49.9291 169.008 60.0319 189.032 82.6367 195.1C83.8533 195.426 85.0943 195.687 86.3564 195.888C123.5 201.796 196.33 161.119 175.164 130.788C159.496 108.336 116.75 59.2313 89.3476 53.2891Z"/>\n <path id="ear-left-hole" fill="var(--mds-emoji-simi-skin-dark, #C3481B)" d="M91 84.8079C111.919 90.1196 129.716 114.384 136 125.853C141.772 136.387 137.494 147.927 129.747 155C120.471 163.469 106.223 165.535 98.2973 151.808C79.2451 118.808 85.494 93.3915 91 84.8079Z"/>\n <path id="ear-left-outline-border" stroke="var(--mds-emoji-simi-skin-dark, #C3481B)" stroke-width="9" stroke-linecap="round" d="M77.1852 54.3257C101.898 44.6171 162.993 90.7244 185 111.557C235.5 159.363 137.5 209.826 82.6365 195.099C60.0315 189.032 49.9287 169.008 52.3515 165.367C54.2897 162.454 66.8883 161.322 72.9453 161.12C64.0617 129.567 52.4726 64.0342 77.1852 54.3257Z"/>\n <path id="ear-left-border" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M91.5 84.5C106.5 89 149.5 121 134.5 149"/>\n </g>\n </g>\n <g id="head-default">\n <path id="shape-head" fill="var(--mds-emoji-simi-skin, #F36320)" d="M378.732 217.557C340.98 122.357 268.622 107.557 219.909 107.557C171.197 107.557 98.8384 122.357 61.0863 217.557C50.181 245.057 52.6419 250.557 21.1818 271.057C19.6595 281.557 27.7783 295.057 42.4935 297.057C38.7724 298.224 30.5183 300.557 27.2708 300.557C23.2115 300.557 65.1456 387.557 219.909 387.557C374.673 387.557 416.789 300.057 412.729 300.057C409.482 300.057 401.228 297.724 397.507 296.557C412.222 294.557 420.34 281.057 418.818 270.557C387.358 250.057 389.637 245.057 378.732 217.557Z"/>\n <g id="ear-tufts">\n <g id="right-tuft">\n <path id="right-tuft-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M336.411 123.628C333.005 118.799 313.911 124.433 304.789 127.853C295.789 132.254 282.34 139.697 296.289 146.057C313.289 153.808 342.492 168.294 342.492 153.808C343.708 143.547 331.749 140.126 326.681 139.321C331.343 136.102 339.816 128.457 336.411 123.628Z"/>\n <path id="right-tuft-outline" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M304.789 127.853C313.911 124.433 333.005 118.799 336.411 123.628C339.816 128.457 331.343 136.102 326.681 139.321C331.749 140.126 343.708 143.547 342.492 153.808"/>\n </g>\n <g id="left-tuft">\n <path id="left-tuft-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M104.167 122.628C107.573 117.799 126.667 123.433 135.789 126.853C144.789 131.254 158.239 138.697 144.289 145.057C127.289 152.808 98.0863 167.294 98.0863 152.808C96.8701 142.547 108.83 139.126 113.897 138.321C109.235 135.102 100.762 127.457 104.167 122.628Z"/>\n <path id="left-tuft-outline" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M135.789 126.853C126.667 123.433 107.573 117.799 104.167 122.628C100.762 127.457 109.235 135.102 113.897 138.321C108.83 139.126 96.8701 142.547 98.0864 152.808"/>\n </g>\n </g>\n <g id="cheeks">\n <path id="right-cheek" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M380.5 290.057C364 262.557 340 266.355 318 279.057C344.5 305.557 344 327.557 330 361.557C384.8 341.157 386.5 305.39 380.5 290.057Z"/>\n <path id="left-cheek" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M59.3658 290.057C75.8658 262.557 99.8658 266.355 121.866 279.057C95.3658 305.557 95.8658 327.557 109.866 361.557C55.0658 341.157 53.3658 305.39 59.3658 290.057Z"/>\n </g>\n <path id="chin" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 372.557C256.675 372.557 286 352.186 286 327.057C286 301.928 256.675 260.557 220.5 260.557C184.325 260.557 155 301.928 155 327.057C155 352.186 184.325 372.557 220.5 372.557Z"/>\n </g>\n <g id="eyebrows-default">\n <path id="left-eyebrow" fill="var(--mds-emoji-simi-eyebrow, #FEEFD8)" d="M175.248 176.007C177.691 183.997 168.289 189.539 152.865 194.255C137.442 198.97 131.072 201.193 128.629 193.203C126.186 185.212 132.802 175.371 148.226 170.655C163.649 165.94 172.805 168.016 175.248 176.007Z"/>\n <path id="right-eyebrow" fill="var(--mds-emoji-simi-eyebrow, #FEEFD8)" d="M265.189 175.007C262.746 182.997 272.148 188.539 287.572 193.255C302.995 197.97 309.365 200.193 311.808 192.203C314.251 184.212 307.635 174.371 292.211 169.655C276.788 164.94 267.632 167.016 265.189 175.007Z"/>\n </g>\n <g id="eyes-default" style="transform-origin:50% 50%;">\n <g id="right-eye">\n <ellipse id="right-eye-inner-shape" fill="var(--mds-emoji-simi-eye, #40281B)" cx="287.002" cy="249.057" rx="18.5" ry="24.5" transform="rotate(12 287.002 249.057)"/>\n <circle id="right-eye-inner-light" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="291" cy="242.557" r="6"/>\n </g>\n <g id="left-eye">\n <ellipse id="left-eye-inner-shape" fill="var(--mds-emoji-simi-eye, #40281B)" cx="18.5" cy="24.5" rx="18.5" ry="24.5" transform="matrix(-0.978148 0.207912 0.207912 0.978148 165.139 221.541)"/>\n <circle id="left-eye-inner-light" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="6" cy="6" r="6" transform="matrix(-1 0 0 1 160.14 236.852)"/>\n </g>\n </g>\n <g id="eyes-closed" style="visibility: hidden;">\n <path id="left-eye-closed" stroke="var(--mds-emoji-simi-eye, #40281B)" stroke-width="12" stroke-linecap="round" d="M125 248.5C137.5 240.5 167.1 241.3 179.5 248.5"/>\n <path id="right-eye-closed" stroke="var(--mds-emoji-simi-eye, #40281B)" stroke-width="12" stroke-linecap="round" d="M315.5 248.5C303 240.5 273.4 241.3 261 248.5"/>\n </g>\n <g id="eyes-focused" style="visibility: hidden;">\n <g id="right-eye-focused">\n <ellipse id="right-eye-inner-shape-focused" fill="var(--mds-emoji-simi-eye, #40281B)" cx="287.002" cy="249.057" rx="18.5" ry="24.5" transform="rotate(-90 287.002 249.057)"/>\n <circle id="right-eye-inner-light-focused" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="291" cy="242.557" r="6"/>\n </g>\n <g id="left-eye-focused">\n <ellipse id="left-eye-inner-shape-focused" fill="var(--mds-emoji-simi-eye, #40281B)" cx="18.5" cy="24.5" rx="18.5" ry="24.5" transform="matrix(-4.37114e-08 1 1 4.37114e-08 127.637 230.852)"/>\n <circle id="left-eye-inner-light-focused" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="6" cy="6" r="6" transform="matrix(-1 0 0 1 160.14 236.852)"/>\n </g>\n </g>\n <path id="gadget-default" fill="var(--mds-emoji-simi-gadget, #2B1C15)" fill-rule="evenodd" clip-rule="evenodd" d="M296 186C327.723 186 353.88 209.825 357.557 240.558H367C370.314 240.558 373 243.244 373 246.558C373 249.871 370.314 252.558 367 252.558H357.834C355.501 284.671 328.709 310 296 310C262.189 310 234.7 282.936 234.014 249.289C230.711 246.983 225.885 245.558 220.5 245.558C215.114 245.558 210.288 246.983 206.985 249.289C206.299 282.936 178.811 310 145 310C112.291 310 85.4993 284.671 83.166 252.558H74C70.6864 252.558 68.0002 249.871 68 246.558C68 243.244 70.6863 240.558 74 240.558H83.4434C87.12 209.825 113.277 186 145 186C175.248 186 200.437 207.662 205.9 236.318C210.539 234.42 215.652 233.558 220.5 233.558C225.348 233.558 230.461 234.419 235.099 236.317C240.563 207.661 265.752 186 296 186ZM145 198C117.386 198 95 220.386 95 248C95 275.614 117.386 298 145 298C172.614 298 195 275.614 195 248C195 220.386 172.614 198 145 198ZM296 198C268.386 198 246 220.386 246 248C246 275.614 268.386 298 296 298C323.614 298 346 275.614 346 248C346 220.386 323.614 198 296 198Z"/>\n <g id="mouth-default">\n <path id="muzzle-shape-mouth-default" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-mouth-default" fill="var(--mds-emoji-simi-mouth, #2B1C15)" d="M220 298.057C221.933 298.057 223.5 299.624 223.5 301.557V324.914C224.677 325.612 226.31 326.349 228.29 326.949C231.08 327.793 234.312 328.287 237.507 328.095C240.693 327.903 243.74 327.039 246.322 325.27C248.871 323.524 251.171 320.758 252.696 316.401C253.335 314.576 255.332 313.615 257.156 314.253C258.981 314.892 259.942 316.889 259.304 318.713C257.329 324.356 254.159 328.386 250.278 331.044C246.43 333.681 242.086 334.832 237.928 335.083C233.778 335.332 229.713 334.694 226.262 333.649C223.943 332.947 221.784 332.025 220 330.976C218.216 332.025 216.057 332.947 213.738 333.649C210.287 334.694 206.221 335.332 202.072 335.083C197.914 334.832 193.57 333.681 189.722 331.044C185.841 328.386 182.671 324.356 180.696 318.713C180.058 316.889 181.019 314.892 182.844 314.253C184.668 313.615 186.665 314.576 187.304 316.401C188.829 320.758 191.128 323.524 193.678 325.27C196.26 327.039 199.307 327.903 202.493 328.095C205.688 328.287 208.919 327.793 211.71 326.949C213.689 326.35 215.323 325.612 216.5 324.914V301.557C216.5 299.624 218.067 298.057 220 298.057Z"/>\n <g id="nose-mouth-default">\n <path id="node-shape-mouth-default" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-default" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="mouth-smile" style="visibility: hidden;">\n <g id="inner-mouth">\n <ellipse id="throat-mouth-smile" fill="var(--mds-emoji-simi-mouth-throat, #C3481B)" cx="220.5" cy="326" rx="32.5" ry="29" />\n <path id="teeth-mouth-smile" fill="var(--mds-emoji-simi-mouth-teeth, #FFFFFF)" d="M220.5 329C235.689 329 248.003 331.686 248.003 335C248.003 338.314 235.689 341 220.5 341C205.311 341 192.997 338.314 192.997 335C192.997 331.686 205.311 329 220.5 329Z"/>\n <path id="lips-mouth-smile" stroke="var(--mds-emoji-simi-nose, #2B1C15)" stroke-width="7" d="M220.5 300.5C236.62 300.5 249.5 313.138 249.5 328.5C249.5 343.862 236.62 356.5 220.5 356.5C204.38 356.5 191.5 343.862 191.5 328.5C191.5 313.138 204.38 300.5 220.5 300.5Z" />\n </g>\n <path id="muzzle-shape-mouth-smile" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-smile" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M220 298.057C221.933 298.057 223.5 299.624 223.5 301.557V324.914C224.677 325.612 226.31 326.349 228.29 326.949C231.08 327.793 234.312 328.287 237.507 328.095C240.693 327.903 243.74 327.039 246.322 325.27C248.871 323.524 251.171 320.758 252.696 316.401C253.335 314.576 255.332 313.615 257.156 314.253C258.981 314.892 259.942 316.889 259.304 318.713C257.329 324.356 254.159 328.386 250.278 331.044C246.43 333.681 242.086 334.832 237.928 335.083C233.778 335.332 229.713 334.694 226.262 333.649C223.943 332.947 221.784 332.025 220 330.976C218.216 332.025 216.057 332.947 213.738 333.649C210.287 334.694 206.221 335.332 202.072 335.083C197.914 334.832 193.57 333.681 189.722 331.044C185.841 328.386 182.671 324.356 180.696 318.713C180.058 316.889 181.019 314.892 182.844 314.253C184.668 313.615 186.665 314.576 187.304 316.401C188.829 320.758 191.128 323.524 193.678 325.27C196.26 327.039 199.307 327.903 202.493 328.095C205.688 328.287 208.919 327.793 211.71 326.949C213.689 326.35 215.323 325.612 216.5 324.914V301.557C216.5 299.624 218.067 298.057 220 298.057Z"/>\n <g id="nose-mouth-smile">\n <path id="nose-shape-mouth-smile" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-smile" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="mouth-serious" style="visibility: hidden;">\n <path id="muzzle-shape-mouth-serious" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-serious" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M220 298C221.933 298 223.5 299.567 223.5 301.5V326.675C224.663 326.774 225.818 326.903 226.821 327.026C227.869 327.155 228.796 327.283 229.462 327.38C229.795 327.428 230.064 327.469 230.251 327.497C230.344 327.511 230.418 327.522 230.469 327.53C230.494 327.534 230.514 327.538 230.527 327.54C230.534 327.541 230.539 327.541 230.543 327.542C230.545 327.542 230.547 327.543 230.548 327.543H230.55C232.459 327.847 233.76 329.641 233.456 331.55C233.152 333.459 231.359 334.76 229.45 334.456C229.45 334.456 229.448 334.456 229.447 334.456C229.445 334.456 229.441 334.455 229.436 334.454C229.426 334.452 229.41 334.451 229.389 334.447C229.345 334.441 229.28 334.43 229.194 334.417C229.023 334.391 228.772 334.353 228.458 334.308C227.83 334.217 226.954 334.095 225.968 333.974C223.947 333.725 221.629 333.5 220 333.5C218.371 333.5 216.053 333.725 214.032 333.974C213.046 334.095 212.17 334.217 211.542 334.308C211.228 334.353 210.977 334.391 210.806 334.417C210.72 334.43 210.655 334.441 210.611 334.447C210.59 334.451 210.574 334.452 210.563 334.454C210.559 334.455 210.555 334.456 210.553 334.456C210.552 334.456 210.55 334.456 210.55 334.456C208.641 334.76 206.848 333.459 206.544 331.55C206.24 329.641 207.541 327.848 209.45 327.544L209.452 327.543C209.453 327.543 209.455 327.542 209.457 327.542C209.461 327.541 209.466 327.541 209.473 327.54C209.486 327.538 209.506 327.534 209.531 327.53C209.582 327.522 209.656 327.511 209.749 327.497C209.936 327.469 210.205 327.428 210.538 327.38C211.204 327.283 212.131 327.155 213.179 327.026C214.182 326.903 215.337 326.774 216.5 326.675V301.5C216.5 299.567 218.067 298 220 298Z" />\n <g id="nose-mouth-serious">\n <path id="nose-shape-mouth-serious" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-serious" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="hand-think" style="visibility: hidden;">\n <path id="shape-hand-think" fill="var(--mds-emoji-simi-skin, #F36320)" d="M237.5 438C238.5 435 241 428.5 243.5 421.5C257.989 413.451 258.739 397.302 255.5 383.467C278 367.934 263.5 350 255.5 350C251.5 340.4 242.5 339 238.5 339.5C244.5 324 233 323.5 229 323.5C225 323.5 202.5 323 189 351C183.4 374.6 195 400.833 201.5 411C200.667 411.5 199 414.5 195.5 420C211 426.5 204 423.5 237.5 438Z" />\n <path id="palm-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M251 369C267 409.5 249.5 416.5 242 423.5L236.5 437.5"/>\n <path id="finger-3-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M256 382.5C262.5 379.333 273.7 370.1 266.5 358.5C257.5 344 234 360 230 363"/>\n <path id="finger-2-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M256 350.5C256 338 236.1 329.9 208.5 357.5"/>\n <path id="finger-1-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M196.5 420.5L201.5 410.5C195.167 400 183.8 373.6 189 352C194.2 330.4 218.833 323.667 230.5 323C235.333 322.5 243.9 325.1 239.5 339.5"/>\n </g>\n</svg>\n';var wr=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-emoji-expression-follow-mouse-traits-duration:.2s;--mds-emoji-expression-follow-mouse-head-duration:.3s;--mds-emoji-expression-max-rotation:16deg;--mds-emoji-perspective:400px;align-items:stretch;aspect-ratio:1;display:flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:stretch;perspective:var(--mds-emoji-perspective,400px);perspective-origin:50%;width:calc(var(--spacing,.0025rem)*1200)}svg{height:100%;overflow:visible;transform-style:preserve-3d;transition:transform .2s ease-out;width:100%}:host([name=mia]){--mds-emoji-mia-eyes-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242)));--mds-emoji-mia-hands-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-mia-head-color:rgb(var(--magma-accent-ai-surface-hover,var(--variant-ai-08,219 205 252)));--mds-emoji-mia-head-stroke-color:rgb(var(--magma-accent-ai-border,var(--variant-ai-06,184 156 250)));--mds-emoji-mia-head-stroke-width:0px;--mds-emoji-mia-mouth-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-offset-eyes:1px;--mds-emoji-offset-gadget:1px;--mds-emoji-offset-hands:2px;--mds-emoji-offset-head:0;--mds-emoji-offset-mouth:1px;container-type:size}:host([name=simi]){--mds-emoji-offset-ears:0;--mds-emoji-offset-eyebrows:10px;--mds-emoji-offset-eyes:7px;--mds-emoji-offset-gadget:14px;--mds-emoji-offset-hands:18px;--mds-emoji-offset-head:5px;--mds-emoji-offset-mouth:16px;--mds-emoji-simi-eye-light:#fff;--mds-emoji-simi-eye:#40281b;--mds-emoji-simi-eyebrow:#feefd8;--mds-emoji-simi-gadget:#2b1c15;--mds-emoji-simi-mouth-teeth:#fff;--mds-emoji-simi-mouth-throat:#c3481b;--mds-emoji-simi-mouth:#2b1c15;--mds-emoji-simi-nose-light:#7e695f;--mds-emoji-simi-nose:#2b1c15;--mds-emoji-simi-outline:#2b1c15;--mds-emoji-simi-skin-dark:#c3481b;--mds-emoji-simi-skin-light:#feefd8;--mds-emoji-simi-skin:#f36320}"};var yr=t("mds_emoji",/** @class */function(){function t(t){var e=this;i(this,t);
|
|
706
|
+
var r=mn[e];r&&r.indexOf(",")<0&&(e=r);return e in on&&e!==On&&(i._gsap.x||$n(i,"x"))?n&&nn===n?e==="scale"?kn:xn:(nn=n||{})&&(e==="scale"?Fn:_n):i.style&&!Z(i.style[e])?jn:~e.indexOf("-")?bn:_e(i,e)},core:{_removeProperty:An,_getMatrix:sr}};Ge.utils.checkPrefix=Hn;Ge.core.getStyleSaver=Tn;(function(t,i,e,n){var r=wt(t+","+i+","+e,(function(t){on[t]=1}));wt(i,(function(t){m.units[t]="deg";er[t]=1}));mn[r[13]]=t+","+i;wt(n,(function(t){var i=t.split(":");mn[i[1]]=r[i[0]]}))})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");wt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){m.units[t]="px"}));Ge.registerPlugin(wr);var yr=Ge.registerPlugin(wr)||Ge;var Mr='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g id="head-default">\n <path id="border-head" d="M15.8188 3C16.5046 3.00015 17.141 3.36269 17.4986 3.95703L21.7112 10.957C22.0963 11.5972 22.0963 12.4028 21.7112 13.043L17.4986 20.043C17.141 20.6373 16.5046 20.9998 15.8188 21H8.18127C7.49525 21 6.85822 20.6375 6.50049 20.043L2.28892 13.043C1.90369 12.4027 1.90369 11.5973 2.28892 10.957L6.50049 3.95703C6.85822 3.36252 7.49525 3 8.18127 3H15.8188Z" stroke="var(--mds-emoji-mia-head-stroke-color, rgb(194 160 251))" stroke-width="var(--mds-emoji-mia-head-stroke-width, 2px)" fill="var(--mds-emoji-mia-head-stroke-color, rgb(194 160 251))"/>\n <path id="path-head" d="M15.8188 3C16.5046 3.00015 17.141 3.36269 17.4986 3.95703L21.7112 10.957C22.0963 11.5972 22.0963 12.4028 21.7112 13.043L17.4986 20.043C17.141 20.6373 16.5046 20.9998 15.8188 21H8.18127C7.49525 21 6.85822 20.6375 6.50049 20.043L2.28892 13.043C1.90369 12.4027 1.90369 11.5973 2.28892 10.957L6.50049 3.95703C6.85822 3.36252 7.49525 3 8.18127 3H15.8188Z" fill="var(--mds-emoji-mia-head-color, rgb(224 207 253))"/>\n </g>\n <g id="eyes-default">\n <path id="left-eye" d="M8 8H10V12H8V8Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n <path id="right-eye" d="M14 8H16V12H14V8Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n </g>\n <g id="eyes-closed" style="visibility:hidden;">\n <path id="left-eye-closed" d="M6 10H10V12H6V10Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n <path id="right-eye-closed" d="M14 10H18V12H14V10Z" fill="var(--mds-emoji-mia-eyes-color, rgb(81 9 207))"/>\n </g>\n <path id="mouth-default" d="M16.707 15.707C15.4771 16.937 13.6985 17.5 12 17.5C10.3015 17.5 8.52294 16.937 7.29297 15.707L8.70703 14.293C9.47706 15.063 10.6985 15.5 12 15.5C13.3015 15.5 14.5229 15.063 15.293 14.293L16.707 15.707Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="mouth-smile" style="visibility:hidden;" d="M16 14H8C8.33333 15.3333 9 18 12 18C15 18 15.6667 15.3333 16 14Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="mouth-serious" style="visibility:hidden;" d="M8 15H16V17H8V15Z" fill="var(--mds-emoji-mia-mouth-color, rgb(98 12 245))"/>\n <path id="hand-think" style="visibility:hidden;" d="M6 16C6.55228 16 7 16.4477 7 17V18H13C13.5523 18 14 18.4477 14 19C14 19.5523 13.5523 20 13 20H10.3818C11.1252 20 11.6088 20.7824 11.2764 21.4473L10.2764 23.4473C10.107 23.786 9.76059 24 9.38184 24H4V20L5 18V16H6Z" fill="var(--mds-emoji-mia-hands-color, rgb(98 12 245))"/>\n</svg>\n';var jr='<svg width="440" height="440" viewBox="0 0 440 440" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g id="ears-default">\n <g id="ear-right">\n <path id="ear-right-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M363.838 54.3257C339.126 44.6171 278.031 90.7244 256.023 111.557C205.523 159.363 303.523 209.826 358.387 195.099C380.992 189.032 391.095 169.008 388.672 165.367C386.734 162.454 374.135 161.322 368.078 161.12C376.962 129.567 388.551 64.0342 363.838 54.3257Z"/>\n <path id="ear-right-inner-shape" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M351.676 53.2891C356.294 52.7076 360.415 52.9806 363.838 54.3252C364.658 54.6472 365.437 55.0331 366.178 55.4746C368.347 56.9073 370.299 58.8573 372.053 61.2344C385.423 81.3621 375.744 133.891 368.078 161.119C374.135 161.321 386.734 162.455 388.672 165.367C391.094 169.008 380.992 189.032 358.387 195.1C357.17 195.426 355.929 195.687 354.667 195.888C317.523 201.796 244.693 161.119 265.859 130.788C281.528 108.336 324.274 59.2313 351.676 53.2891Z"/>\n <path id="ear-right-hole" fill="var(--mds-emoji-simi-skin-dark, #C3481B)" d="M350.023 84.8079C329.105 90.1196 311.307 114.384 305.023 125.853C299.251 136.387 303.53 147.927 311.277 155C320.553 163.469 334.801 165.535 342.726 151.808C361.778 118.808 355.529 93.3915 350.023 84.8079Z"/>\n <path id="ear-right-outline-border" stroke="var(--mds-emoji-simi-skin-dark, #C3481B)" stroke-width="9" stroke-linecap="round" d="M363.838 54.3257C339.126 44.6171 278.031 90.7244 256.023 111.557C205.523 159.363 303.523 209.826 358.387 195.099C380.992 189.032 391.095 169.008 388.672 165.367C386.734 162.454 374.135 161.322 368.078 161.12C376.962 129.567 388.551 64.0342 363.838 54.3257Z"/>\n <path id="ear-right-border" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M349.523 84.5C334.523 89 291.523 121 306.523 149"/>\n </g>\n <g id="ear-left">\n <path id="ear-left-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M77.1852 54.3257C101.898 44.6171 162.993 90.7244 185 111.557C235.5 159.363 137.5 209.826 82.6365 195.099C60.0315 189.032 49.9287 169.008 52.3515 165.367C54.2897 162.454 66.8883 161.322 72.9453 161.12C64.0617 129.567 52.4726 64.0342 77.1852 54.3257Z"/>\n <path id="ear-left-inner-shape" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M89.3476 53.2891C84.7294 52.7076 80.6085 52.9806 77.1855 54.3252C76.3658 54.6472 75.5869 55.0331 74.8457 55.4746C72.6763 56.9073 70.7246 58.8573 68.9707 61.2344C55.6008 81.3621 65.2794 133.891 72.9453 161.119C66.8883 161.321 54.2898 162.455 52.3516 165.367C49.9291 169.008 60.0319 189.032 82.6367 195.1C83.8533 195.426 85.0943 195.687 86.3564 195.888C123.5 201.796 196.33 161.119 175.164 130.788C159.496 108.336 116.75 59.2313 89.3476 53.2891Z"/>\n <path id="ear-left-hole" fill="var(--mds-emoji-simi-skin-dark, #C3481B)" d="M91 84.8079C111.919 90.1196 129.716 114.384 136 125.853C141.772 136.387 137.494 147.927 129.747 155C120.471 163.469 106.223 165.535 98.2973 151.808C79.2451 118.808 85.494 93.3915 91 84.8079Z"/>\n <path id="ear-left-outline-border" stroke="var(--mds-emoji-simi-skin-dark, #C3481B)" stroke-width="9" stroke-linecap="round" d="M77.1852 54.3257C101.898 44.6171 162.993 90.7244 185 111.557C235.5 159.363 137.5 209.826 82.6365 195.099C60.0315 189.032 49.9287 169.008 52.3515 165.367C54.2897 162.454 66.8883 161.322 72.9453 161.12C64.0617 129.567 52.4726 64.0342 77.1852 54.3257Z"/>\n <path id="ear-left-border" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M91.5 84.5C106.5 89 149.5 121 134.5 149"/>\n </g>\n </g>\n <g id="head-default">\n <path id="shape-head" fill="var(--mds-emoji-simi-skin, #F36320)" d="M378.732 217.557C340.98 122.357 268.622 107.557 219.909 107.557C171.197 107.557 98.8384 122.357 61.0863 217.557C50.181 245.057 52.6419 250.557 21.1818 271.057C19.6595 281.557 27.7783 295.057 42.4935 297.057C38.7724 298.224 30.5183 300.557 27.2708 300.557C23.2115 300.557 65.1456 387.557 219.909 387.557C374.673 387.557 416.789 300.057 412.729 300.057C409.482 300.057 401.228 297.724 397.507 296.557C412.222 294.557 420.34 281.057 418.818 270.557C387.358 250.057 389.637 245.057 378.732 217.557Z"/>\n <g id="ear-tufts">\n <g id="right-tuft">\n <path id="right-tuft-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M336.411 123.628C333.005 118.799 313.911 124.433 304.789 127.853C295.789 132.254 282.34 139.697 296.289 146.057C313.289 153.808 342.492 168.294 342.492 153.808C343.708 143.547 331.749 140.126 326.681 139.321C331.343 136.102 339.816 128.457 336.411 123.628Z"/>\n <path id="right-tuft-outline" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M304.789 127.853C313.911 124.433 333.005 118.799 336.411 123.628C339.816 128.457 331.343 136.102 326.681 139.321C331.749 140.126 343.708 143.547 342.492 153.808"/>\n </g>\n <g id="left-tuft">\n <path id="left-tuft-shape" fill="var(--mds-emoji-simi-skin, #F36320)" d="M104.167 122.628C107.573 117.799 126.667 123.433 135.789 126.853C144.789 131.254 158.239 138.697 144.289 145.057C127.289 152.808 98.0863 167.294 98.0863 152.808C96.8701 142.547 108.83 139.126 113.897 138.321C109.235 135.102 100.762 127.457 104.167 122.628Z"/>\n <path id="left-tuft-outline" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="7" stroke-linecap="round" d="M135.789 126.853C126.667 123.433 107.573 117.799 104.167 122.628C100.762 127.457 109.235 135.102 113.897 138.321C108.83 139.126 96.8701 142.547 98.0864 152.808"/>\n </g>\n </g>\n <g id="cheeks">\n <path id="right-cheek" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M380.5 290.057C364 262.557 340 266.355 318 279.057C344.5 305.557 344 327.557 330 361.557C384.8 341.157 386.5 305.39 380.5 290.057Z"/>\n <path id="left-cheek" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M59.3658 290.057C75.8658 262.557 99.8658 266.355 121.866 279.057C95.3658 305.557 95.8658 327.557 109.866 361.557C55.0658 341.157 53.3658 305.39 59.3658 290.057Z"/>\n </g>\n <path id="chin" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 372.557C256.675 372.557 286 352.186 286 327.057C286 301.928 256.675 260.557 220.5 260.557C184.325 260.557 155 301.928 155 327.057C155 352.186 184.325 372.557 220.5 372.557Z"/>\n </g>\n <g id="eyebrows-default">\n <path id="left-eyebrow" fill="var(--mds-emoji-simi-eyebrow, #FEEFD8)" d="M175.248 176.007C177.691 183.997 168.289 189.539 152.865 194.255C137.442 198.97 131.072 201.193 128.629 193.203C126.186 185.212 132.802 175.371 148.226 170.655C163.649 165.94 172.805 168.016 175.248 176.007Z"/>\n <path id="right-eyebrow" fill="var(--mds-emoji-simi-eyebrow, #FEEFD8)" d="M265.189 175.007C262.746 182.997 272.148 188.539 287.572 193.255C302.995 197.97 309.365 200.193 311.808 192.203C314.251 184.212 307.635 174.371 292.211 169.655C276.788 164.94 267.632 167.016 265.189 175.007Z"/>\n </g>\n <g id="eyes-default" style="transform-origin:50% 50%;">\n <g id="right-eye">\n <ellipse id="right-eye-inner-shape" fill="var(--mds-emoji-simi-eye, #40281B)" cx="287.002" cy="249.057" rx="18.5" ry="24.5" transform="rotate(12 287.002 249.057)"/>\n <circle id="right-eye-inner-light" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="291" cy="242.557" r="6"/>\n </g>\n <g id="left-eye">\n <ellipse id="left-eye-inner-shape" fill="var(--mds-emoji-simi-eye, #40281B)" cx="18.5" cy="24.5" rx="18.5" ry="24.5" transform="matrix(-0.978148 0.207912 0.207912 0.978148 165.139 221.541)"/>\n <circle id="left-eye-inner-light" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="6" cy="6" r="6" transform="matrix(-1 0 0 1 160.14 236.852)"/>\n </g>\n </g>\n <g id="eyes-closed" style="visibility: hidden;">\n <path id="left-eye-closed" stroke="var(--mds-emoji-simi-eye, #40281B)" stroke-width="12" stroke-linecap="round" d="M125 248.5C137.5 240.5 167.1 241.3 179.5 248.5"/>\n <path id="right-eye-closed" stroke="var(--mds-emoji-simi-eye, #40281B)" stroke-width="12" stroke-linecap="round" d="M315.5 248.5C303 240.5 273.4 241.3 261 248.5"/>\n </g>\n <g id="eyes-focused" style="visibility: hidden;">\n <g id="right-eye-focused">\n <ellipse id="right-eye-inner-shape-focused" fill="var(--mds-emoji-simi-eye, #40281B)" cx="287.002" cy="249.057" rx="18.5" ry="24.5" transform="rotate(-90 287.002 249.057)"/>\n <circle id="right-eye-inner-light-focused" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="291" cy="242.557" r="6"/>\n </g>\n <g id="left-eye-focused">\n <ellipse id="left-eye-inner-shape-focused" fill="var(--mds-emoji-simi-eye, #40281B)" cx="18.5" cy="24.5" rx="18.5" ry="24.5" transform="matrix(-4.37114e-08 1 1 4.37114e-08 127.637 230.852)"/>\n <circle id="left-eye-inner-light-focused" fill="var(--mds-emoji-simi-eye-light, #FFFFFF)" cx="6" cy="6" r="6" transform="matrix(-1 0 0 1 160.14 236.852)"/>\n </g>\n </g>\n <path id="gadget-default" fill="var(--mds-emoji-simi-gadget, #2B1C15)" fill-rule="evenodd" clip-rule="evenodd" d="M296 186C327.723 186 353.88 209.825 357.557 240.558H367C370.314 240.558 373 243.244 373 246.558C373 249.871 370.314 252.558 367 252.558H357.834C355.501 284.671 328.709 310 296 310C262.189 310 234.7 282.936 234.014 249.289C230.711 246.983 225.885 245.558 220.5 245.558C215.114 245.558 210.288 246.983 206.985 249.289C206.299 282.936 178.811 310 145 310C112.291 310 85.4993 284.671 83.166 252.558H74C70.6864 252.558 68.0002 249.871 68 246.558C68 243.244 70.6863 240.558 74 240.558H83.4434C87.12 209.825 113.277 186 145 186C175.248 186 200.437 207.662 205.9 236.318C210.539 234.42 215.652 233.558 220.5 233.558C225.348 233.558 230.461 234.419 235.099 236.317C240.563 207.661 265.752 186 296 186ZM145 198C117.386 198 95 220.386 95 248C95 275.614 117.386 298 145 298C172.614 298 195 275.614 195 248C195 220.386 172.614 198 145 198ZM296 198C268.386 198 246 220.386 246 248C246 275.614 268.386 298 296 298C323.614 298 346 275.614 346 248C346 220.386 323.614 198 296 198Z"/>\n <g id="mouth-default">\n <path id="muzzle-shape-mouth-default" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-mouth-default" fill="var(--mds-emoji-simi-mouth, #2B1C15)" d="M220 298.057C221.933 298.057 223.5 299.624 223.5 301.557V324.914C224.677 325.612 226.31 326.349 228.29 326.949C231.08 327.793 234.312 328.287 237.507 328.095C240.693 327.903 243.74 327.039 246.322 325.27C248.871 323.524 251.171 320.758 252.696 316.401C253.335 314.576 255.332 313.615 257.156 314.253C258.981 314.892 259.942 316.889 259.304 318.713C257.329 324.356 254.159 328.386 250.278 331.044C246.43 333.681 242.086 334.832 237.928 335.083C233.778 335.332 229.713 334.694 226.262 333.649C223.943 332.947 221.784 332.025 220 330.976C218.216 332.025 216.057 332.947 213.738 333.649C210.287 334.694 206.221 335.332 202.072 335.083C197.914 334.832 193.57 333.681 189.722 331.044C185.841 328.386 182.671 324.356 180.696 318.713C180.058 316.889 181.019 314.892 182.844 314.253C184.668 313.615 186.665 314.576 187.304 316.401C188.829 320.758 191.128 323.524 193.678 325.27C196.26 327.039 199.307 327.903 202.493 328.095C205.688 328.287 208.919 327.793 211.71 326.949C213.689 326.35 215.323 325.612 216.5 324.914V301.557C216.5 299.624 218.067 298.057 220 298.057Z"/>\n <g id="nose-mouth-default">\n <path id="node-shape-mouth-default" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-default" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="mouth-smile" style="visibility: hidden;">\n <g id="inner-mouth">\n <ellipse id="throat-mouth-smile" fill="var(--mds-emoji-simi-mouth-throat, #C3481B)" cx="220.5" cy="326" rx="32.5" ry="29" />\n <path id="teeth-mouth-smile" fill="var(--mds-emoji-simi-mouth-teeth, #FFFFFF)" d="M220.5 329C235.689 329 248.003 331.686 248.003 335C248.003 338.314 235.689 341 220.5 341C205.311 341 192.997 338.314 192.997 335C192.997 331.686 205.311 329 220.5 329Z"/>\n <path id="lips-mouth-smile" stroke="var(--mds-emoji-simi-nose, #2B1C15)" stroke-width="7" d="M220.5 300.5C236.62 300.5 249.5 313.138 249.5 328.5C249.5 343.862 236.62 356.5 220.5 356.5C204.38 356.5 191.5 343.862 191.5 328.5C191.5 313.138 204.38 300.5 220.5 300.5Z" />\n </g>\n <path id="muzzle-shape-mouth-smile" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-smile" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M220 298.057C221.933 298.057 223.5 299.624 223.5 301.557V324.914C224.677 325.612 226.31 326.349 228.29 326.949C231.08 327.793 234.312 328.287 237.507 328.095C240.693 327.903 243.74 327.039 246.322 325.27C248.871 323.524 251.171 320.758 252.696 316.401C253.335 314.576 255.332 313.615 257.156 314.253C258.981 314.892 259.942 316.889 259.304 318.713C257.329 324.356 254.159 328.386 250.278 331.044C246.43 333.681 242.086 334.832 237.928 335.083C233.778 335.332 229.713 334.694 226.262 333.649C223.943 332.947 221.784 332.025 220 330.976C218.216 332.025 216.057 332.947 213.738 333.649C210.287 334.694 206.221 335.332 202.072 335.083C197.914 334.832 193.57 333.681 189.722 331.044C185.841 328.386 182.671 324.356 180.696 318.713C180.058 316.889 181.019 314.892 182.844 314.253C184.668 313.615 186.665 314.576 187.304 316.401C188.829 320.758 191.128 323.524 193.678 325.27C196.26 327.039 199.307 327.903 202.493 328.095C205.688 328.287 208.919 327.793 211.71 326.949C213.689 326.35 215.323 325.612 216.5 324.914V301.557C216.5 299.624 218.067 298.057 220 298.057Z"/>\n <g id="nose-mouth-smile">\n <path id="nose-shape-mouth-smile" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-smile" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="mouth-serious" style="visibility: hidden;">\n <path id="muzzle-shape-mouth-serious" fill="var(--mds-emoji-simi-skin-light, #FEEFD8)" d="M220.5 328.5C238.5 341 263 324.813 263 307.312C263 289.812 243.972 261 220.5 261C197.028 261 178 289.812 178 307.312C178 324.813 201 341 220.5 328.5Z"/>\n <path id="shape-mouth-serious" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M220 298C221.933 298 223.5 299.567 223.5 301.5V326.675C224.663 326.774 225.818 326.903 226.821 327.026C227.869 327.155 228.796 327.283 229.462 327.38C229.795 327.428 230.064 327.469 230.251 327.497C230.344 327.511 230.418 327.522 230.469 327.53C230.494 327.534 230.514 327.538 230.527 327.54C230.534 327.541 230.539 327.541 230.543 327.542C230.545 327.542 230.547 327.543 230.548 327.543H230.55C232.459 327.847 233.76 329.641 233.456 331.55C233.152 333.459 231.359 334.76 229.45 334.456C229.45 334.456 229.448 334.456 229.447 334.456C229.445 334.456 229.441 334.455 229.436 334.454C229.426 334.452 229.41 334.451 229.389 334.447C229.345 334.441 229.28 334.43 229.194 334.417C229.023 334.391 228.772 334.353 228.458 334.308C227.83 334.217 226.954 334.095 225.968 333.974C223.947 333.725 221.629 333.5 220 333.5C218.371 333.5 216.053 333.725 214.032 333.974C213.046 334.095 212.17 334.217 211.542 334.308C211.228 334.353 210.977 334.391 210.806 334.417C210.72 334.43 210.655 334.441 210.611 334.447C210.59 334.451 210.574 334.452 210.563 334.454C210.559 334.455 210.555 334.456 210.553 334.456C210.552 334.456 210.55 334.456 210.55 334.456C208.641 334.76 206.848 333.459 206.544 331.55C206.24 329.641 207.541 327.848 209.45 327.544L209.452 327.543C209.453 327.543 209.455 327.542 209.457 327.542C209.461 327.541 209.466 327.541 209.473 327.54C209.486 327.538 209.506 327.534 209.531 327.53C209.582 327.522 209.656 327.511 209.749 327.497C209.936 327.469 210.205 327.428 210.538 327.38C211.204 327.283 212.131 327.155 213.179 327.026C214.182 326.903 215.337 326.774 216.5 326.675V301.5C216.5 299.567 218.067 298 220 298Z" />\n <g id="nose-mouth-serious">\n <path id="nose-shape-mouth-serious" fill="var(--mds-emoji-simi-nose, #2B1C15)" d="M219.5 273.557C207.626 273.557 198 280.105 198 288.182C198 296.259 207.626 309.557 219.5 309.557C231.374 309.557 241 296.259 241 288.182C241 280.105 231.374 273.557 219.5 273.557Z"/>\n <ellipse id="nose-light-mouth-serious" fill="var(--mds-emoji-simi-nose-light, #7E695F)" cx="220" cy="285.557" rx="11" ry="5"/>\n </g>\n </g>\n <g id="hand-think" style="visibility: hidden;">\n <path id="shape-hand-think" fill="var(--mds-emoji-simi-skin, #F36320)" d="M237.5 438C238.5 435 241 428.5 243.5 421.5C257.989 413.451 258.739 397.302 255.5 383.467C278 367.934 263.5 350 255.5 350C251.5 340.4 242.5 339 238.5 339.5C244.5 324 233 323.5 229 323.5C225 323.5 202.5 323 189 351C183.4 374.6 195 400.833 201.5 411C200.667 411.5 199 414.5 195.5 420C211 426.5 204 423.5 237.5 438Z" />\n <path id="palm-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M251 369C267 409.5 249.5 416.5 242 423.5L236.5 437.5"/>\n <path id="finger-3-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M256 382.5C262.5 379.333 273.7 370.1 266.5 358.5C257.5 344 234 360 230 363"/>\n <path id="finger-2-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M256 350.5C256 338 236.1 329.9 208.5 357.5"/>\n <path id="finger-1-hand-think" stroke="var(--mds-emoji-simi-outline, #2B1C15)" stroke-width="6" d="M196.5 420.5L201.5 410.5C195.167 400 183.8 373.6 189 352C194.2 330.4 218.833 323.667 230.5 323C235.333 322.5 243.9 325.1 239.5 339.5"/>\n </g>\n</svg>\n';var br=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-emoji-expression-follow-mouse-traits-duration:.2s;--mds-emoji-expression-follow-mouse-head-duration:.3s;--mds-emoji-expression-max-rotation:16deg;--mds-emoji-perspective:400px;align-items:stretch;aspect-ratio:1;display:flex;height:calc(var(--spacing,.0025rem)*1200);justify-content:stretch;perspective:var(--mds-emoji-perspective,400px);perspective-origin:50%;width:calc(var(--spacing,.0025rem)*1200)}svg{height:100%;overflow:visible;transform-style:preserve-3d;transition:transform .2s ease-out;width:100%}:host([name=mia]){--mds-emoji-mia-eyes-color:rgb(var(--magma-accent-ai-emphasis-hover,var(--variant-ai-03,87 20 242)));--mds-emoji-mia-hands-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-mia-head-color:rgb(var(--magma-accent-ai-surface-hover,var(--variant-ai-08,219 205 252)));--mds-emoji-mia-head-stroke-color:rgb(var(--magma-accent-ai-border,var(--variant-ai-06,184 156 250)));--mds-emoji-mia-head-stroke-width:0px;--mds-emoji-mia-mouth-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-emoji-offset-eyes:1px;--mds-emoji-offset-gadget:1px;--mds-emoji-offset-hands:2px;--mds-emoji-offset-head:0;--mds-emoji-offset-mouth:1px;container-type:size}:host([name=simi]){--mds-emoji-offset-ears:0;--mds-emoji-offset-eyebrows:10px;--mds-emoji-offset-eyes:7px;--mds-emoji-offset-gadget:14px;--mds-emoji-offset-hands:18px;--mds-emoji-offset-head:5px;--mds-emoji-offset-mouth:16px;--mds-emoji-simi-eye-light:#fff;--mds-emoji-simi-eye:#40281b;--mds-emoji-simi-eyebrow:#feefd8;--mds-emoji-simi-gadget:#2b1c15;--mds-emoji-simi-mouth-teeth:#fff;--mds-emoji-simi-mouth-throat:#c3481b;--mds-emoji-simi-mouth:#2b1c15;--mds-emoji-simi-nose-light:#7e695f;--mds-emoji-simi-nose:#2b1c15;--mds-emoji-simi-outline:#2b1c15;--mds-emoji-simi-skin-dark:#c3481b;--mds-emoji-simi-skin-light:#feefd8;--mds-emoji-simi-skin:#f36320}"};var xr=t("mds_emoji",/** @class */function(){function t(t){var e=this;i(this,t);
|
|
692
707
|
/**
|
|
693
708
|
* Specifies which emoji to display.
|
|
694
709
|
*/this.name="mia";this.isFollowingMouse=false;this.isBusy=false;this.isSmiling=false;this.isAgreeing=false;this.isThinking=false;this.isBlinking=false;this.isDisagreeing=false;
|
|
@@ -708,7 +723,11 @@ this.expressionAnimations=[];
|
|
|
708
723
|
this.handEntryOffset=25;this.wasFollowingMouse=false;this.wasBlinking=false;this.headOffsetX=0;this.headOffsetY=0;this.headOffset=0;this.eyesOffsetX=0;this.eyesOffsetY=0;this.eyesOffset=1;this.mouthOffsetX=0;this.mouthOffsetY=0;this.mouthOffset=1;this.handOffsetX=0;this.handOffsetY=0;this.handOffset=2;this.gadgetOffsetX=0;this.gadgetOffsetY=0;this.gadgetOffset=2;this.eyebrowsOffsetX=0;this.eyebrowsOffsetY=0;this.eyebrowsOffset=2;this.earsOffsetX=0;this.earsOffsetY=0;this.earsOffset=2;this.mouseX=0;this.mouseY=0;this.currentRotateX=0;this.currentRotateY=0;this.expressionAngleMax=16;// massimo angolo di rotazione della emoji
|
|
709
724
|
this.expressionFollowMouseHeadDuration=.3;// durata dell'animazione di rotazione della testa quando segue il mouse
|
|
710
725
|
this.expressionFollowMouseTraitsDuration=.2;// durata dell'animazione di rotazione degli occhi e della bocca quando segue il mouse
|
|
711
|
-
this.blinkTimeline=null;this.blinkDelay=null;this.svgLibrary={mia:
|
|
726
|
+
this.blinkTimeline=null;this.blinkDelay=null;this.svgLibrary={mia:Mr,simi:jr};
|
|
727
|
+
/**
|
|
728
|
+
* Stops the tracking and recentres the face, keeping whether it was on: an expression pauses
|
|
729
|
+
* it this way and restoreFollowMouse resumes it when the expression ends.
|
|
730
|
+
*/this.pauseFollowMouse=function(){if(!e.isFollowingMouse)return Promise.resolve();e.isFollowingMouse=false;e.rotate(0,0);return new Promise((function(t){return setTimeout(t,e.expressionFollowMouseTraitsDuration*1e3)}))};this.isEmojiName=function(t){return t!=null&&{}.hasOwnProperty.call(e.svgLibrary,t)};this.updateCSSCustomProps=function(){if(typeof window==="undefined")return;var t=window.getComputedStyle(e.host);e.expressionAngleMax=o(t.getPropertyValue("--mds-emoji-expression-max-rotation"),16);e.expressionFollowMouseHeadDuration=u(t.getPropertyValue("--mds-emoji-expression-follow-mouse-head-duration"));e.expressionFollowMouseTraitsDuration=u(t.getPropertyValue("--mds-emoji-expression-follow-mouse-traits-duration"));e.headOffset=a(t.getPropertyValue("--mds-emoji-offset-head"),1);e.eyesOffset=a(t.getPropertyValue("--mds-emoji-offset-eyes"),1);e.mouthOffset=a(t.getPropertyValue("--mds-emoji-offset-mouth"),1);e.handOffset=a(t.getPropertyValue("--mds-emoji-offset-hands"),1);e.gadgetOffset=a(t.getPropertyValue("--mds-emoji-offset-gadget"),1);e.eyebrowsOffset=a(t.getPropertyValue("--mds-emoji-offset-eyebrows"),1);e.earsOffset=a(t.getPropertyValue("--mds-emoji-offset-ears"),1)};this.updateSvgDictionary=function(t){if(typeof window==="undefined")return;var i=document.createElement("template");i.innerHTML=e.svgLibrary[t].trim();e.svgRootEl=i.content.firstElementChild;e.updateCSSCustomProps();
|
|
712
731
|
// The shadow DOM is fully replaced, so every cached node/setter/timeline now
|
|
713
732
|
// points at detached elements: drop them so they rebuild against the new SVG.
|
|
714
733
|
e.resetAnimationState();if(e.host.shadowRoot)e.host.shadowRoot.innerHTML=e.svgRootEl.outerHTML;if(e.isBlinking){e.blinkTimeline=e.buildBlinkTimeline();e.scheduleBlink()}
|
|
@@ -732,7 +751,7 @@ if(!s.isBrowser)return;e.resetEyesToDefault();if(e.isFollowingMouse){e.moveHead(
|
|
|
732
751
|
// the hand and the focused eyes belong to the state, not to the SVG that is
|
|
733
752
|
// leaving, so they are put back in place at once, without replaying the
|
|
734
753
|
// entrance on a face that is only now appearing.
|
|
735
|
-
if(e.isThinking)e.setStartThinkingAnimation(0)};this.resetAnimationState=function(){var t,i;e.killExpressionAnimations();(t=e.blinkDelay)===null||t===void 0?void 0:t.kill();e.blinkDelay=null;(i=e.blinkTimeline)===null||i===void 0?void 0:i.kill();e.blinkTimeline=null;e.headEl=null;e.eyesEl=null;e.handEl=null;e.mouthEl=null;e.gadgetEl=null;e.eyebrowsEl=null;e.earsEl=null};this.queryPart=function(t){var i,n,r;return(r=(n=(i=e.host.shadowRoot)===null||i===void 0?void 0:i.firstElementChild)===null||n===void 0?void 0:n.querySelector("[id='".concat(t,"']")))!==null&&r!==void 0?r:null};this.resetEyesToDefault=function(){e.svgPartState("eyes","default");var t=e.queryPart("eyes-default");if(t)
|
|
754
|
+
if(e.isThinking)e.setStartThinkingAnimation(0)};this.resetAnimationState=function(){var t,i;e.killExpressionAnimations();(t=e.blinkDelay)===null||t===void 0?void 0:t.kill();e.blinkDelay=null;(i=e.blinkTimeline)===null||i===void 0?void 0:i.kill();e.blinkTimeline=null;e.headEl=null;e.eyesEl=null;e.handEl=null;e.mouthEl=null;e.gadgetEl=null;e.eyebrowsEl=null;e.earsEl=null};this.queryPart=function(t){var i,n,r;return(r=(n=(i=e.host.shadowRoot)===null||i===void 0?void 0:i.firstElementChild)===null||n===void 0?void 0:n.querySelector("[id='".concat(t,"']")))!==null&&r!==void 0?r:null};this.resetEyesToDefault=function(){e.svgPartState("eyes","default");var t=e.queryPart("eyes-default");if(t)yr.set(t,{scaleY:1})};this.getEmojiCenter=function(){var t=e.host.getBoundingClientRect();return{centerX:t.left+t.width/2,centerY:t.top+t.height/2}};
|
|
736
755
|
// Takes the face over for a new expression: whatever was playing is stopped, the
|
|
737
756
|
// traits go back to their rest pose and the token that identifies the new owner
|
|
738
757
|
// is returned.
|
|
@@ -743,7 +762,7 @@ e.expressionAnimations=e.expressionAnimations.filter((function(t){return t.total
|
|
|
743
762
|
// Puts back to rest every property an expression is allowed to touch. Expressions
|
|
744
763
|
// animate the percentage, scale and rotation channel, while rotate() owns the
|
|
745
764
|
// translation one, so the pointer tracking pose goes through this untouched.
|
|
746
|
-
this.resetFaceToNeutral=function(){
|
|
765
|
+
this.resetFaceToNeutral=function(){yr.set(e.host,{yPercent:0,scaleX:1,scaleY:1});if(e.eyesEl)yr.set(e.eyesEl,{xPercent:0,yPercent:0});if(e.mouthEl)yr.set(e.mouthEl,{scaleY:1});if(e.eyebrowsEl)yr.set(e.eyebrowsEl,{yPercent:0});e.svgPartState("mouth","default");e.resetEyesToDefault()};
|
|
747
766
|
// Pulls the thinking hand out of the frame along the percentage channel its
|
|
748
767
|
// entrance comes in on, so the two are exact mirrors of each other. A duration of
|
|
749
768
|
// zero snaps it, which is what a face rebuilt from another SVG needs.
|
|
@@ -751,7 +770,7 @@ this.hideThinkingHand=function(t){var i=e.handEl instanceof NodeList?null:e.hand
|
|
|
751
770
|
// No overwrite is needed on either branch: every caller kills the tracked
|
|
752
771
|
// expression animations first, and rotate() drives the hand on the translation
|
|
753
772
|
// channel, which neither of these values touches.
|
|
754
|
-
var n={scale:0,rotateZ:45,xPercent:-e.handEntryOffset,yPercent:e.handEntryOffset};if(!t){
|
|
773
|
+
var n={scale:0,rotateZ:45,xPercent:-e.handEntryOffset,yPercent:e.handEntryOffset};if(!t){yr.set(i,n);i.style.visibility="hidden";return}e.trackExpression(yr.to(i,Object.assign(Object.assign({},n),{ease:"expo.inOut",duration:t,onComplete:function(){i.style.visibility="hidden"}})))};this.restoreReadyState=function(t){
|
|
755
774
|
// A superseded expression never hands the face back: its timeline may still be
|
|
756
775
|
// running when another one has already taken ownership.
|
|
757
776
|
if(!e.isCurrentExpression(t))return;e.isBusy=false;e.restoreFollowMouse();e.scheduleBlink()};this.restoreFollowMouse=function(){if(e.wasFollowingMouse){e.moveHead(e.mouseX,e.mouseY);e.startFollowMouse();return}
|
|
@@ -762,13 +781,13 @@ var t=e.getEmojiCenter(),i=t.centerX,n=t.centerY;e.moveHead(i,n)};this.stopConcu
|
|
|
762
781
|
// An expression owns the whole face: smile, agree, disagree and think must not
|
|
763
782
|
// play while the traits are still offset toward the last pointer position, so
|
|
764
783
|
// stop tracking and bring the emoji back to centre, where it looks straight at
|
|
765
|
-
// whoever is watching.
|
|
784
|
+
// whoever is watching. pauseFollowMouse self-guards on isFollowingMouse and
|
|
766
785
|
// already re-centres through rotate(0, 0), but it is a no-op when the pointer
|
|
767
786
|
// was never followed, hence the explicit moveHead.
|
|
768
787
|
// The centring used to be scattered: disagree and startThinking did it in the
|
|
769
788
|
// public method, smile inside setSmileAnimation, and agree not at all. Doing it
|
|
770
789
|
// here is the single place every expression goes through.
|
|
771
|
-
e.
|
|
790
|
+
e.pauseFollowMouse();
|
|
772
791
|
// Thinking is torn down here rather than through stopThinking(): that method
|
|
773
792
|
// hands the face back and schedules the blinking again, both of which would
|
|
774
793
|
// land in the middle of the expression that is starting right now.
|
|
@@ -781,52 +800,62 @@ var t=e.isThinking;e.isThinking=false;e.pauseBlinking();e.killExpressionAnimatio
|
|
|
781
800
|
var i=e.getEmojiCenter(),n=i.centerX,r=i.centerY;e.moveHead(n,r,true);
|
|
782
801
|
// The hand does not blink out of existence when an expression interrupts the
|
|
783
802
|
// thinking: it is pulled away over the opening of the animation taking over.
|
|
784
|
-
e.hideThinkingHand(t?.25:0)};
|
|
803
|
+
e.hideThinkingHand(t?.25:0)};
|
|
804
|
+
/**
|
|
805
|
+
* Under reduced motion an expression shows its face without moving it: the parts it swaps (a
|
|
806
|
+
* smiling mouth, closed eyes) stay for as long as the animation would have lasted, then the
|
|
807
|
+
* face is handed back. The head, the eyebrows and the bounces keep still, as the blinking and
|
|
808
|
+
* the following of the pointer do by not running at all.
|
|
809
|
+
*/this.holdStillExpression=function(t,i,n){i.forEach((function(t){var i=t[0],n=t[1];return e.svgPartState(i,n)}));e.trackExpression(yr.delayedCall(n/1e3,(function(){i.forEach((function(t){var i=t[0];return e.svgPartState(i)}));e.restoreReadyState(t)})));return new Promise((function(t){return setTimeout(t,n)}))};this.setAgreeAnimation=function(t){var i=1780;if(f())return e.holdStillExpression(t,[["mouth","smile"]],i);var n="expo.out";var r="auto";var s={value:0};
|
|
785
810
|
// head movement
|
|
786
|
-
var o=
|
|
811
|
+
var o=yr.timeline({defaults:{ease:n,overwrite:r},onComplete:function(){e.restoreReadyState(t)}}).to(s,{value:0,duration:.08,onUpdate:function(){e.rotate(0,s.value)}}).to(s,{value:-100,duration:.24,onUpdate:function(){e.rotate(0,s.value)}}).to(s,{value:50,duration:.18,onUpdate:function(){e.rotate(0,s.value)}}).to(s,{value:-25,duration:.12,onUpdate:function(){e.rotate(0,s.value)}}).to(s,{value:0,duration:.16,onUpdate:function(){e.rotate(0,s.value)}});e.trackExpression(o);
|
|
787
812
|
// eyebrows
|
|
788
|
-
if(e.eyebrowsEl){var
|
|
813
|
+
if(e.eyebrowsEl){var u=yr.timeline({defaults:{ease:"expo.out",overwrite:"auto"},onComplete:function(){u.reverse()}}).to(e.eyebrowsEl,{yPercent:-40,duration:.4});e.trackExpression(u)}
|
|
789
814
|
// mouth
|
|
790
|
-
e.svgPartState("mouth","smile");e.trackExpression(
|
|
815
|
+
e.svgPartState("mouth","smile");e.trackExpression(yr.timeline({defaults:{ease:n,overwrite:r},onComplete:function(){e.svgPartState("mouth","default")}}).to(e.mouthEl,{scaleY:1.2,duration:.2}).to(e.mouthEl,{scaleY:1,duration:.2}));return new Promise((function(t){return setTimeout(t,i)}))};this.setSmileAnimation=function(t){var i=750;if(f()){return e.holdStillExpression(t,[["mouth","smile"],["eyes","closed"]],i)}var n="expo.out";var r="auto";
|
|
791
816
|
// mouth
|
|
792
|
-
e.svgPartState("mouth","smile");e.trackExpression(
|
|
817
|
+
e.svgPartState("mouth","smile");e.trackExpression(yr.timeline({defaults:{ease:n,overwrite:r},onComplete:function(){e.svgPartState("mouth","default")}}).to(e.mouthEl,{scaleY:1,duration:.15}).to(e.mouthEl,{scaleY:.75,duration:.15}).to(e.mouthEl,{scaleY:1,duration:.15}).to(e.mouthEl,{scaleY:.75,duration:.15}).to(e.mouthEl,{scaleY:1,duration:.15}));
|
|
793
818
|
// eyes
|
|
794
|
-
e.svgPartState("eyes","closed");var s=
|
|
819
|
+
e.svgPartState("eyes","closed");var s=yr.timeline({defaults:{ease:n,duration:.25,overwrite:r},onComplete:function(){s.to(e.eyesEl,{yPercent:0,onComplete:function(){e.svgPartState("eyes")}})}}).to(e.eyesEl,{yPercent:-20}).to(e.eyesEl,{yPercent:10});e.trackExpression(s);
|
|
795
820
|
// eyebrows
|
|
796
|
-
if(e.eyebrowsEl){e.trackExpression(
|
|
821
|
+
if(e.eyebrowsEl){e.trackExpression(yr.timeline({defaults:{ease:n,overwrite:r}}).to(e.eyebrowsEl,{yPercent:"-=15",duration:.15}).to(e.eyebrowsEl,{yPercent:"+=10",duration:.15}))}
|
|
797
822
|
// emoji
|
|
798
|
-
var o=
|
|
823
|
+
var o=yr.timeline({defaults:{overwrite:r},onComplete:function(){e.svgPartState("mouth","default");e.restoreReadyState(t)}}).to(e.host,{yPercent:"-=".concat(e.host.getBoundingClientRect().height/10),scaleX:.95,duration:1,ease:"elastic.out"}).to(e.host,{yPercent:"+=".concat(e.host.getBoundingClientRect().height/10),scaleX:1,duration:.75,ease:"expo.out"});e.trackExpression(o);return new Promise((function(t){return setTimeout(t,i)}))};this.setDisagreeAnimation=function(t,i){if(t===void 0){t=0}if(f()){return e.holdStillExpression(i,[["mouth","serious"]],780+t)}var n={value:0};var r=yr.timeline({ease:"power2.inOut",onStart:function(){e.svgPartState("mouth","serious")},onComplete:function(){if(t>0){
|
|
799
824
|
// Tracked like every other step: an expression asked for while the
|
|
800
825
|
// emoji is still frowning has to cancel the pending smile too.
|
|
801
|
-
e.trackExpression(
|
|
826
|
+
e.trackExpression(yr.delayedCall(t/1e3,(function(){e.svgPartState("mouth","default");e.restoreReadyState(i)})));return}e.svgPartState("mouth","default");e.restoreReadyState(i)}}).to(n,{value:0,duration:.08,onUpdate:function(){e.rotate(n.value,0)}}).to(n,{value:-100,duration:.24,onUpdate:function(){e.rotate(n.value,0)}}).to(n,{value:50,duration:.18,onUpdate:function(){e.rotate(n.value,0)}}).to(n,{value:-25,duration:.12,onUpdate:function(){e.rotate(n.value,0)}}).to(n,{value:0,duration:.16,onUpdate:function(){e.rotate(n.value,0)}});e.trackExpression(r);return new Promise((function(i){return setTimeout(i,780+t)}))};this.setStartThinkingAnimation=function(t){if(t===void 0){t=.5}var i="expo.inOut";var n=e.handEl instanceof NodeList?null:e.handEl;
|
|
827
|
+
// under reduced motion the hand is simply there, and the eyes do not wander
|
|
828
|
+
var r=f();if(n&&r){yr.set(n,{xPercent:0,yPercent:0,scale:1,rotateZ:0});n.style.visibility="visible"}else if(n){n.style.visibility="visible";
|
|
802
829
|
// Only the percentage channel is animated, because rotate() owns the
|
|
803
830
|
// translation one. The hand therefore lands exactly where the SVG draws it,
|
|
804
831
|
// instead of keeping the offset it was carrying toward the pointer, and its
|
|
805
832
|
// entrance mirrors its exit: the two used to move it on different channels,
|
|
806
833
|
// with an amount scaled by the viewBox, so the leftover of one showed up as a
|
|
807
834
|
// displaced hand at the beginning of the next.
|
|
808
|
-
e.trackExpression(
|
|
835
|
+
e.trackExpression(yr.fromTo(n,{scale:0,rotateZ:45,xPercent:-e.handEntryOffset,yPercent:e.handEntryOffset},{xPercent:0,yPercent:0,scale:1,rotateZ:0,ease:i,duration:t,overwrite:"auto"}))}if(!r)e.moveEyesThinkAnimation();e.svgPartState("mouth","serious");e.svgPartState("eyes","focused");
|
|
809
836
|
// Settles even when there is no hand to show: an unresolved promise used to
|
|
810
837
|
// leave every caller awaiting startThinking hanging for good.
|
|
811
|
-
return new Promise((function(i){return setTimeout(i,t*1e3)}))};this.moveEyesThinkAnimation=function(){if(!e.eyesEl||!e.isThinking)return;var t=
|
|
838
|
+
return new Promise((function(i){return setTimeout(i,t*1e3)}))};this.moveEyesThinkAnimation=function(){if(!e.eyesEl||!e.isThinking)return;var t=yr.utils.random(.15,.3,.01,true)();var i="expo.out";
|
|
812
839
|
// 'auto' and not true: the eyes also carry the translation tween of rotate(),
|
|
813
840
|
// and killing that one outright is what left them looking toward the pointer,
|
|
814
841
|
// off centre, for the whole time the emoji was thinking.
|
|
815
|
-
var n={duration:t,ease:i,overwrite:"auto"};var r=5;var s=
|
|
842
|
+
var n={duration:t,ease:i,overwrite:"auto"};var r=5;var s=yr.utils.random(r*-1,r,.1);var o=yr.utils.random(r*-1,r,.1);e.trackExpression(yr.to(e.eyesEl,Object.assign(Object.assign({xPercent:s,yPercent:o},n),{onComplete:function(){
|
|
816
843
|
// Nothing to reset when the state is over: the exit animation, or the
|
|
817
844
|
// take-over of another expression, has already put the eyes back.
|
|
818
|
-
if(!e.isThinking)return;var t=
|
|
845
|
+
if(!e.isThinking)return;var t=yr.utils.random(.2,.7,.1);e.trackExpression(yr.delayedCall(t,e.moveEyesThinkAnimation))}})))};this.setStopThinkingAnimation=function(t){if(t===void 0){t=.5}
|
|
846
|
+
// under reduced motion the hand and the eyes are put back at once
|
|
847
|
+
var i=f()?0:t;e.hideThinkingHand(i);if(e.eyesEl){e.trackExpression(yr.to(e.eyesEl,{xPercent:0,yPercent:0,ease:"expo.out",duration:i,overwrite:"auto"}))}e.svgPartState("mouth","default");e.svgPartState("eyes","default");return new Promise((function(i){return setTimeout(i,t*1e3)}))};
|
|
819
848
|
// A single, reusable blink sequence. Built once and replayed via restart(),
|
|
820
849
|
// it never grows over time and is fully controlled by play/pause, unlike the
|
|
821
850
|
// previous recursive chain that died permanently the moment isBusy was set.
|
|
822
|
-
this.buildBlinkTimeline=function(){var t=e.queryPart("eyes-default");var i=e.queryPart("eyes-closed");if(!t||!i)return null;var n={ease:"expo.in",duration:.2};var r={ease:"expo.out",duration:.2};return
|
|
851
|
+
this.buildBlinkTimeline=function(){var t=e.queryPart("eyes-default");var i=e.queryPart("eyes-closed");if(!t||!i)return null;var n={ease:"expo.in",duration:.2};var r={ease:"expo.out",duration:.2};return yr.timeline({paused:true,onComplete:e.scheduleBlink}).to(t,Object.assign({scaleY:.5},n)).add((function(){e.svgPartState("eyes","closed")})).fromTo(i,{scaleY:.5},Object.assign({scaleY:1},r)).add((function(){e.svgPartState("eyes","default")})).fromTo(t,{scaleY:.75},Object.assign({scaleY:1},r))};
|
|
823
852
|
// Queues the next blink after a random idle delay. Gated on the blinking
|
|
824
853
|
// intent and isBusy, so it is a no-op while another animation owns the eyes
|
|
825
854
|
// and is simply called again once that animation finishes.
|
|
826
855
|
this.scheduleBlink=function(){var t;
|
|
827
856
|
// The two idle behaviours - blinking and following the pointer - are the ones that
|
|
828
857
|
// never stop on their own, and GSAP does not read a stylesheet: they ask here.
|
|
829
|
-
if(f())return;if(!e.isBlinking||e.isBusy||!e.blinkTimeline)return;(t=e.blinkDelay)===null||t===void 0?void 0:t.kill();e.blinkDelay=
|
|
858
|
+
if(f())return;if(!e.isBlinking||e.isBusy||!e.blinkTimeline)return;(t=e.blinkDelay)===null||t===void 0?void 0:t.kill();e.blinkDelay=yr.delayedCall(yr.utils.random(1,3,.1),(function(){if(!e.isBlinking||e.isBusy||!e.blinkTimeline)return;e.resetEyesToDefault();e.blinkTimeline.restart()}))};this.pauseBlinking=function(){var t;(t=e.blinkDelay)===null||t===void 0?void 0:t.kill();e.blinkDelay=null;if(!e.blinkTimeline)return;e.blinkTimeline.pause(0);
|
|
830
859
|
// pause(0) rewinds the tweens, but the visibility swaps are forward-only
|
|
831
860
|
// callbacks, so make sure the open eyes are the visible state again.
|
|
832
861
|
e.resetEyesToDefault()};this.handleFollowMouse=function(t){
|
|
@@ -837,34 +866,36 @@ e.resetEyesToDefault()};this.handleFollowMouse=function(t){
|
|
|
837
866
|
e.mouseX=t.clientX;e.mouseY=t.clientY;if(!e.isFollowingMouse)return;e.followMouse()};this.followMouse=function(){
|
|
838
867
|
// Reduced motion keeps the face still; stopFollowMouse still recentres it, because
|
|
839
868
|
// that is a state the caller asked for rather than an animation of its own.
|
|
840
|
-
if(f())return;
|
|
869
|
+
if(f())return;if(e.isFollowingMouse){e.moveHead(e.mouseX,e.mouseY);return}var t=e.getEmojiCenter(),i=t.centerX,n=t.centerY;e.moveHead(i,n)};
|
|
870
|
+
// The one place the pointer becomes a pose: the direction of the point from the centre,
|
|
871
|
+
// with a reach that depends on the viewport, not on the size of the emoji (#800).
|
|
872
|
+
this.moveHead=function(t,i,n){if(n===void 0){n=false}var r=e.getEmojiCenter(),s=r.centerX,o=r.centerY;var u=h(t-s,i-o,l(window.innerWidth,window.innerHeight));e.rotate(u.x,u.y,n)};this.rotate=function(t,i,n){if(n===void 0){n=false}var r="power1.out";
|
|
841
873
|
// The traits can be put in place at once instead of eased there: an expression
|
|
842
874
|
// about to take the face over owns them from this very frame, and a tween still
|
|
843
875
|
// on its way would be killed halfway through, leaving them offset toward the
|
|
844
876
|
// pointer for as long as that expression lasts.
|
|
845
|
-
var s=n?0:e.expressionFollowMouseTraitsDuration;var o=function(t,i){return
|
|
846
|
-
e.currentRotateY=o(e.expressionAngleMax,t);e.headOffsetX=o(e.headOffset,t);e.headOffsetY=o(e.headOffset,i);e.eyesOffsetX=o(e.eyesOffset,t);e.eyesOffsetY=o(e.eyesOffset,i);e.mouthOffsetX=o(e.mouthOffset,t);e.mouthOffsetY=o(e.mouthOffset,i);e.handOffsetX=o(e.handOffset,t);e.handOffsetY=o(e.handOffset,i);e.gadgetOffsetX=o(e.gadgetOffset,t);e.gadgetOffsetY=o(e.gadgetOffset,i);e.eyebrowsOffsetX=o(e.eyebrowsOffset,t);e.eyebrowsOffsetY=o(e.eyebrowsOffset,i);e.earsOffsetX=o(e.earsOffset,t);e.earsOffsetY=o(e.earsOffset,i);if(!e.headEl){e.headEl=e.svgPartState("head");e.eyebrowsEl=e.svgPartState("eyebrows");e.earsEl=e.svgPartState("ears");e.eyesEl=e.svgPartState("eyes");e.handEl=e.svgPartState("hand","think");if(e.handEl)e.handEl.style.visibility="hidden";e.mouthEl=e.svgPartState("mouth");e.gadgetEl=e.svgPartState("gadget")}var
|
|
877
|
+
var s=n?0:e.expressionFollowMouseTraitsDuration;var o=function(t,i){return yr.utils.clamp(-t,t,i*t)};e.currentRotateX=o(e.expressionAngleMax,-i);// Y invertito
|
|
878
|
+
e.currentRotateY=o(e.expressionAngleMax,t);e.headOffsetX=o(e.headOffset,t);e.headOffsetY=o(e.headOffset,i);e.eyesOffsetX=o(e.eyesOffset,t);e.eyesOffsetY=o(e.eyesOffset,i);e.mouthOffsetX=o(e.mouthOffset,t);e.mouthOffsetY=o(e.mouthOffset,i);e.handOffsetX=o(e.handOffset,t);e.handOffsetY=o(e.handOffset,i);e.gadgetOffsetX=o(e.gadgetOffset,t);e.gadgetOffsetY=o(e.gadgetOffset,i);e.eyebrowsOffsetX=o(e.eyebrowsOffset,t);e.eyebrowsOffsetY=o(e.eyebrowsOffset,i);e.earsOffsetX=o(e.earsOffset,t);e.earsOffsetY=o(e.earsOffset,i);if(!e.headEl){e.headEl=e.svgPartState("head");e.eyebrowsEl=e.svgPartState("eyebrows");e.earsEl=e.svgPartState("ears");e.eyesEl=e.svgPartState("eyes");e.handEl=e.svgPartState("hand","think");if(e.handEl)e.handEl.style.visibility="hidden";e.mouthEl=e.svgPartState("mouth");e.gadgetEl=e.svgPartState("gadget")}var u={duration:s,ease:r,
|
|
847
879
|
// 'auto' overwrite drops only the x and y left over from the previous pointer
|
|
848
880
|
// update, and leaves alone the percentage channel the expressions animate.
|
|
849
881
|
overwrite:"auto"};
|
|
850
882
|
// Each facial element is tweened independently with its own offset so they
|
|
851
883
|
// move by different amounts, giving the emoji a layered, parallax-like depth.
|
|
852
|
-
|
|
884
|
+
yr.to(e.host,{rotateX:e.currentRotateX,rotateY:e.currentRotateY,transformOrigin:"50% 50%",duration:e.expressionFollowMouseHeadDuration,ease:r});if(e.eyesEl){yr.to(e.eyesEl,Object.assign({translateX:e.eyesOffsetX,translateY:e.eyesOffsetY,transformOrigin:"50% 50%"},u))}if(e.handEl){yr.to(e.handEl,Object.assign({translateX:e.handOffsetX,translateY:e.handOffsetY,transformOrigin:"50% 50%"},u))}if(e.headEl){yr.to(e.headEl,Object.assign({translateX:e.headOffsetX,translateY:e.headOffsetY,transformOrigin:"0% 100%"},u))}if(e.mouthEl){yr.to(e.mouthEl,Object.assign({translateX:e.mouthOffsetX,translateY:e.mouthOffsetY,transformOrigin:"50% 50%"},u))}if(e.gadgetEl){yr.to(e.gadgetEl,Object.assign({translateX:e.gadgetOffsetX,translateY:e.gadgetOffsetY,transformOrigin:"50% 50%"},u))}if(e.eyebrowsEl){yr.to(e.eyebrowsEl,Object.assign({translateX:e.eyebrowsOffsetX,translateY:e.eyebrowsOffsetY,transformOrigin:"50% 50%"},u))}if(e.earsEl){yr.to(e.earsEl,Object.assign({translateX:e.earsOffsetX,translateY:e.earsOffsetY,transformOrigin:"50% 50%"},u))}}}t.prototype.componentDidLoad=function(){if(typeof window==="undefined")return;this.updateCSSCustomProps();window.addEventListener("mousemove",this.handleFollowMouse);this.checkNameChanged(this.name)};t.prototype.disconnectedCallback=function(){var t,i;if(typeof window==="undefined")return;window.removeEventListener("mousemove",this.handleFollowMouse);this.isThinking=false;this.isBlinking=false;this.isFollowingMouse=false;this.killExpressionAnimations();(t=this.blinkDelay)===null||t===void 0?void 0:t.kill();(i=this.blinkTimeline)===null||i===void 0?void 0:i.kill();[this.host,this.eyesEl,this.handEl,this.headEl,this.mouthEl,this.gadgetEl,this.eyebrowsEl,this.earsEl].forEach((function(t){return t&&yr.killTweensOf(t)}))};
|
|
853
885
|
/**
|
|
854
|
-
* @returns Promise<void>
|
|
855
886
|
* Emoji agrees, useful for confirm actions.
|
|
856
887
|
*/t.prototype.agree=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:t=this.beginExpression();return[4/*yield*/,this.setAgreeAnimation(t)];case 1:i.sent();return[2/*return*/,Promise.resolve()]}}))}))};
|
|
857
888
|
/**
|
|
858
|
-
* @returns Promise<void>
|
|
859
889
|
* Emoji smiles, useful for confirm actions.
|
|
860
890
|
*/t.prototype.smile=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:t=this.beginExpression();return[4/*yield*/,this.setSmileAnimation(t)];case 1:i.sent();return[2/*return*/,Promise.resolve()]}}))}))};
|
|
861
891
|
/**
|
|
862
|
-
* @returns Promise<void>
|
|
863
892
|
* Emoji disagrees, useful for errors or unwanted results.
|
|
893
|
+
* @param turnHappyDelay how long the mouth stays serious after the head shake, in
|
|
894
|
+
* milliseconds; 0 brings the smile back at once
|
|
864
895
|
*/t.prototype.disagree=function(){return __awaiter(this,arguments,void 0,(function(t){var i;if(t===void 0){t=0}return __generator(this,(function(e){switch(e.label){case 0:i=this.beginExpression();return[4/*yield*/,this.setDisagreeAnimation(t,i)];case 1:e.sent();return[2/*return*/,Promise.resolve()]}}))}))};
|
|
865
896
|
/**
|
|
866
|
-
*
|
|
867
|
-
*
|
|
897
|
+
* Emoji starts thinking, useful for pending requests.
|
|
898
|
+
* @param duration the duration of the entrance of the hand, in seconds
|
|
868
899
|
*/t.prototype.startThinking=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=.5}return __generator(this,(function(i){switch(i.label){case 0:
|
|
869
900
|
// Thinking is a state, not a one shot expression: asking for it again while it
|
|
870
901
|
// is already running must not replay the entrance, or the second call leaves
|
|
@@ -882,24 +913,26 @@ if(!this.isThinking)return[2/*return*/,Promise.resolve()];i=this.expressionToken
|
|
|
882
913
|
// animation starts, so the two never fight over the same properties.
|
|
883
914
|
this.killExpressionAnimations();this.isBusy=false;this.restoreFollowMouse();return[4/*yield*/,this.setStopThinkingAnimation(t)];case 1:e.sent();if(this.isCurrentExpression(i))this.scheduleBlink();return[2/*return*/,Promise.resolve()]}}))}))};
|
|
884
915
|
/**
|
|
885
|
-
* @returns Promise<void>
|
|
886
916
|
* Eyes start blinking.
|
|
887
917
|
*/t.prototype.startBlinking=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.isBlinking=true;if(!this.blinkTimeline)this.blinkTimeline=this.buildBlinkTimeline();
|
|
888
918
|
// scheduleBlink is gated on isBusy, so blinking will start now if idle, or
|
|
889
919
|
// automatically resume once the current animation (think, smile, ...) ends.
|
|
890
920
|
this.scheduleBlink();return[2/*return*/,Promise.resolve()]}))}))};
|
|
891
921
|
/**
|
|
892
|
-
* @returns Promise<void>
|
|
893
922
|
* Eyes stop blinking.
|
|
894
923
|
*/t.prototype.stopBlinking=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(e){this.isBlinking=false;(t=this.blinkDelay)===null||t===void 0?void 0:t.kill();this.blinkDelay=null;(i=this.blinkTimeline)===null||i===void 0?void 0:i.pause(0);this.resetEyesToDefault();return[2/*return*/,Promise.resolve()]}))}))};
|
|
895
924
|
/**
|
|
896
|
-
* @returns Promise<void>
|
|
897
925
|
* Stops following mouse with CSS 3D transform.
|
|
898
|
-
*/t.prototype.stopFollowMouse=function(){return __awaiter(this,void 0,void 0,(function(){
|
|
926
|
+
*/t.prototype.stopFollowMouse=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){
|
|
927
|
+
// the caller's choice: an expression that ends later must not turn the tracking back on,
|
|
928
|
+
// which it did when only the pause below ran
|
|
929
|
+
this.wasFollowingMouse=false;return[2/*return*/,this.pauseFollowMouse()]}))}))};
|
|
899
930
|
/**
|
|
900
|
-
* @returns Promise<void>
|
|
901
931
|
* Starts following mouse with CSS 3D transform.
|
|
902
|
-
*/t.prototype.startFollowMouse=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.isFollowingMouse)return[2/*return*/,Promise.resolve()];this.isFollowingMouse=true;this.wasFollowingMouse=true;this.followMouse();return[2/*return*/,Promise.resolve()]}))}))};t.prototype.checkNameChanged=function(t){
|
|
932
|
+
*/t.prototype.startFollowMouse=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.isFollowingMouse)return[2/*return*/,Promise.resolve()];this.isFollowingMouse=true;this.wasFollowingMouse=true;this.followMouse();return[2/*return*/,Promise.resolve()]}))}))};t.prototype.checkNameChanged=function(t,i){
|
|
933
|
+
// a name outside the dictionary is ignored, it used to throw (#825): the emoji goes back to
|
|
934
|
+
// the face it shows, and on load it shows none
|
|
935
|
+
if(!this.isEmojiName(t)){if(t!=null){console.warn('mds-emoji: ignoring the unknown name "'.concat(t,'", use one of: ').concat(Object.keys(this.svgLibrary).join(", ")))}if(this.isEmojiName(i))this.host.setAttribute("name",i);return}
|
|
903
936
|
// Stencil reflects a prop onto its attribute during the next render, but this
|
|
904
937
|
// watcher runs synchronously, before that render. Every per-emoji value lives in
|
|
905
938
|
// a :host([name='...']) rule, so updateSvgDictionary -> updateCSSCustomProps would
|
|
@@ -910,4 +943,4 @@ this.scheduleBlink();return[2/*return*/,Promise.resolve()]}))}))};
|
|
|
910
943
|
// attributeChangedCallback is a no-op because the value did not change.
|
|
911
944
|
if(this.host.getAttribute("name")!==t)this.host.setAttribute("name",t);this.updateSvgDictionary(t)};t.prototype.svgPartState=function(t,i){var e,n,r,s;var o=(n=(e=this.host.shadowRoot)===null||e===void 0?void 0:e.firstElementChild)===null||n===void 0?void 0:n.querySelectorAll("[id^='".concat(t,"-']"));if(!o||o.length===0)return null;if((i===undefined||i==="")&&o){o===null||o===void 0?void 0:o.forEach((function(t){
|
|
912
945
|
// const currentState = el.id.split('-')[1]
|
|
913
|
-
t.style.visibility="hidden";if(t.id.split("-")[1]==="default")t.style.visibility="visible"}));return o}var
|
|
946
|
+
t.style.visibility="hidden";if(t.id.split("-")[1]==="default")t.style.visibility="visible"}));return o}var u=(s=(r=this.host.shadowRoot)===null||r===void 0?void 0:r.firstElementChild)===null||s===void 0?void 0:s.querySelector("[id='".concat(t,"-default']"));o===null||o===void 0?void 0:o.forEach((function(t){t.style.visibility="hidden";if(t.id.split("-")[1]===i){u=t}}));if(!u)return null;u.style.visibility="visible";return u};t.prototype.render=function(){return e(n,{key:"675f1b4d903aace1d61bf4b9a5e10fda8e947109"})};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{name:[{checkNameChanged:0}]}},enumerable:false,configurable:true});return t}());xr.style=br()}}}));
|