@esri/solutions-components 0.10.24 → 0.10.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-block_5.cjs.entry.js +5 -7
- package/dist/cjs/{calcite-carousel.cjs.entry.js → calcite-carousel_2.cjs.entry.js} +52 -18
- package/dist/cjs/instant-apps-app-guide.cjs.entry.js +106 -0
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-export-views.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +8 -3
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +7 -7
- package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +34 -14
- package/dist/cjs/instant-apps-measurement.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-popover.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-time-filter.cjs.entry.js +59 -29
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/{utils-9343bd5b.js → utils-62072741.js} +23 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/components/calcite-carousel-item.js +1 -54
- package/dist/components/calcite-carousel.js +1 -517
- package/dist/{esm/calcite-carousel-item.entry.js → components/carousel-item.js} +28 -9
- package/dist/{esm/calcite-carousel.entry.js → components/carousel.js} +76 -19
- package/dist/components/instant-apps-app-guide.js +184 -0
- package/dist/components/instant-apps-ckeditor-wrapper2.js +1 -1
- package/dist/components/instant-apps-control-panel.js +1 -1
- package/dist/components/instant-apps-export-views.js +1 -1
- package/dist/components/instant-apps-export.js +1 -1
- package/dist/components/instant-apps-filter-list2.js +3 -5
- package/dist/components/instant-apps-header2.js +1 -1
- package/dist/components/instant-apps-interactive-legend-classic2.js +8 -3
- package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +2 -2
- package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +2 -2
- package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +1 -1
- package/dist/components/instant-apps-interactive-legend-layer-element2.js +2 -2
- package/dist/components/instant-apps-interactive-legend-legend-element2.js +1 -1
- package/dist/components/instant-apps-interactive-legend-relationship2.js +2 -2
- package/dist/components/instant-apps-keyboard-shortcuts.js +1 -1
- package/dist/components/instant-apps-landing-page.js +1 -1
- package/dist/components/instant-apps-language-switcher.js +3 -3
- package/dist/components/instant-apps-language-translator-item2.js +1 -1
- package/dist/components/instant-apps-language-translator-search2.js +1 -1
- package/dist/components/instant-apps-language-translator2.js +33 -13
- package/dist/components/instant-apps-measurement-tool2.js +2 -2
- package/dist/components/instant-apps-measurement.js +1 -1
- package/dist/components/instant-apps-popover.js +1 -1
- package/dist/components/instant-apps-scoreboard.js +1 -1
- package/dist/components/instant-apps-sign-in2.js +1 -1
- package/dist/components/instant-apps-social-share2.js +2 -2
- package/dist/components/instant-apps-splash.js +1 -1
- package/dist/components/instant-apps-time-filter.js +59 -29
- package/dist/components/utils4.js +22 -1
- package/dist/esm/{ExpandToggle-9289b7ca.js → ExpandToggle-076b4360.js} +1 -1
- package/dist/esm/{ar-8dded5d5.js → ar-3e3c0d14.js} +8 -8
- package/dist/esm/{bg-c1cdf619.js → bg-a872736b.js} +8 -8
- package/dist/esm/{bs-a40506a4.js → bs-fe545c28.js} +8 -8
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/{ca-67879a0c.js → ca-8a2abdaa.js} +8 -8
- package/dist/esm/calcite-accordion_2.entry.js +1 -1
- package/dist/esm/calcite-action-bar.entry.js +4 -4
- package/dist/esm/calcite-action-group.entry.js +3 -3
- package/dist/esm/calcite-action-menu_2.entry.js +3 -3
- package/dist/esm/calcite-action-pad_2.entry.js +6 -6
- package/dist/esm/calcite-action_2.entry.js +6 -6
- package/dist/esm/calcite-alert_5.entry.js +4 -4
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block-section.entry.js +3 -3
- package/dist/esm/calcite-block_5.entry.js +14 -16
- package/dist/esm/calcite-button.entry.js +5 -5
- package/dist/esm/calcite-card-group.entry.js +1 -1
- package/dist/esm/calcite-card.entry.js +3 -3
- package/dist/esm/calcite-carousel_2.entry.js +500 -0
- package/dist/esm/calcite-checkbox.entry.js +3 -3
- package/dist/esm/calcite-chip-group.entry.js +1 -1
- package/dist/esm/calcite-chip_2.entry.js +4 -4
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
- package/dist/esm/calcite-color-picker.entry.js +3 -3
- package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
- package/dist/esm/calcite-combobox_3.entry.js +8 -8
- package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
- package/dist/esm/calcite-dialog.entry.js +5 -5
- package/dist/esm/calcite-dropdown_2.entry.js +3 -3
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter_5.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +4 -4
- package/dist/esm/calcite-icon_2.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +4 -4
- package/dist/esm/calcite-input-number.entry.js +5 -5
- package/dist/esm/calcite-input-text.entry.js +5 -5
- package/dist/esm/{calcite-input-time-picker-37845feb.js → calcite-input-time-picker-2fbabd28.js} +56 -56
- package/dist/esm/calcite-input-time-picker.entry.js +8 -8
- package/dist/esm/calcite-input-time-zone.entry.js +5 -5
- package/dist/esm/calcite-input_2.entry.js +5 -5
- package/dist/esm/calcite-label.entry.js +2 -2
- package/dist/esm/calcite-link.entry.js +1 -1
- package/dist/esm/calcite-menu-item.entry.js +3 -3
- package/dist/esm/calcite-menu.entry.js +3 -3
- package/dist/esm/calcite-meter.entry.js +3 -3
- package/dist/esm/calcite-modal_3.entry.js +5 -5
- package/dist/esm/calcite-navigation.entry.js +1 -1
- package/dist/esm/calcite-notice.entry.js +4 -4
- package/dist/esm/calcite-option_2.entry.js +3 -3
- package/dist/esm/calcite-pagination.entry.js +3 -3
- package/dist/esm/calcite-pick-list-group.entry.js +1 -1
- package/dist/esm/calcite-pick-list-item.entry.js +3 -3
- package/dist/esm/calcite-pick-list.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm/calcite-radio-button.entry.js +3 -3
- package/dist/esm/calcite-rating.entry.js +5 -5
- package/dist/esm/calcite-scrim.entry.js +3 -3
- package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
- package/dist/esm/calcite-sheet.entry.js +3 -3
- package/dist/esm/calcite-shell-center-row.entry.js +1 -1
- package/dist/esm/calcite-shell-panel_14.entry.js +4 -4
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-stepper-item.entry.js +3 -3
- package/dist/esm/calcite-stepper.entry.js +3 -3
- package/dist/esm/calcite-switch.entry.js +3 -3
- package/dist/esm/calcite-table-cell_2.entry.js +3 -3
- package/dist/esm/calcite-table-row.entry.js +1 -1
- package/dist/esm/calcite-table.entry.js +3 -3
- package/dist/esm/calcite-text-area.entry.js +5 -5
- package/dist/esm/calcite-tile-group.entry.js +1 -1
- package/dist/esm/calcite-tile.entry.js +1 -1
- package/dist/esm/calcite-time-picker.entry.js +4 -4
- package/dist/esm/calcite-tip-manager.entry.js +3 -3
- package/dist/esm/calcite-tip.entry.js +3 -3
- package/dist/esm/calcite-tooltip.entry.js +3 -3
- package/dist/esm/calcite-tree_2.entry.js +1 -1
- package/dist/esm/{cs-b01aecfc.js → cs-f9bfb6dd.js} +8 -8
- package/dist/esm/{da-87ac64be.js → da-0528de8d.js} +8 -8
- package/dist/esm/{date-7a1345c1.js → date-f0c83d13.js} +1 -1
- package/dist/esm/{de-at-2db1a5d5.js → de-at-c7c45014.js} +8 -8
- package/dist/esm/{de-ch-063c0a6b.js → de-ch-e9338f1b.js} +8 -8
- package/dist/esm/{de-0eb6c065.js → de-d149b983.js} +8 -8
- package/dist/esm/{dom-451ed293.js → dom-42a638f6.js} +1 -1
- package/dist/esm/{el-eb29e645.js → el-d86fff8e.js} +8 -8
- package/dist/esm/{en-au-00f884ad.js → en-au-e722c119.js} +8 -8
- package/dist/esm/{en-ca-1e7456d7.js → en-ca-8f38a3b8.js} +8 -8
- package/dist/esm/{en-gb-60a33692.js → en-gb-24dd064c.js} +8 -8
- package/dist/esm/{es-74f8b164.js → es-39a9e113.js} +8 -8
- package/dist/esm/{es-mx-2bfa704a.js → es-mx-fa0cbd42.js} +8 -8
- package/dist/esm/{et-b1a2d978.js → et-51eabe80.js} +8 -8
- package/dist/esm/{fi-70441d5b.js → fi-64ca8666.js} +8 -8
- package/dist/esm/{floating-ui-4b1f5138.js → floating-ui-a14930d0.js} +1 -1
- package/dist/esm/{focusTrapComponent-b9709e71.js → focusTrapComponent-c1def619.js} +1 -1
- package/dist/esm/{form-fa4c471b.js → form-46367137.js} +1 -1
- package/dist/esm/{fr-ch-8faa2fcf.js → fr-ch-6fe6a6e6.js} +8 -8
- package/dist/esm/{fr-cea05ec9.js → fr-e20306bf.js} +8 -8
- package/dist/esm/{he-058ece46.js → he-32ec6cce.js} +8 -8
- package/dist/esm/{hi-163a268e.js → hi-da2b085c.js} +8 -8
- package/dist/esm/{hr-2b69b2ad.js → hr-5a52222a.js} +8 -8
- package/dist/esm/{hu-e46e0cb6.js → hu-d3bbacef.js} +8 -8
- package/dist/esm/{id-ebccdbbb.js → id-dcdac250.js} +8 -8
- package/dist/esm/instant-apps-app-guide.entry.js +102 -0
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +3 -3
- package/dist/esm/instant-apps-control-panel.entry.js +1 -1
- package/dist/esm/instant-apps-export-views.entry.js +1 -1
- package/dist/esm/instant-apps-export.entry.js +1 -1
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +8 -3
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +7 -7
- package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +1 -1
- package/dist/esm/instant-apps-landing-page.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +3 -3
- package/dist/esm/instant-apps-language-translator.entry.js +34 -14
- package/dist/esm/instant-apps-measurement.entry.js +1 -1
- package/dist/esm/instant-apps-popover.entry.js +1 -1
- package/dist/esm/instant-apps-scoreboard.entry.js +1 -1
- package/dist/esm/instant-apps-sign-in.entry.js +1 -1
- package/dist/esm/instant-apps-splash.entry.js +1 -1
- package/dist/esm/instant-apps-time-filter.entry.js +59 -29
- package/dist/esm/{it-813be6d0.js → it-360f430f.js} +8 -8
- package/dist/esm/{it-ch-bc95119e.js → it-ch-0ec68776.js} +8 -8
- package/dist/esm/{ja-3488d28c.js → ja-a95cae4c.js} +8 -8
- package/dist/esm/{ko-54faa268.js → ko-f0edd78f.js} +8 -8
- package/dist/esm/{label-414f1003.js → label-f2ec1100.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-337dc231.js → locale-a53a7bc6.js} +1 -1
- package/dist/esm/{lt-8c773940.js → lt-bff432da.js} +8 -8
- package/dist/esm/{lv-4882a326.js → lv-0c7edf32.js} +8 -8
- package/dist/esm/{mk-d045a827.js → mk-876446b8.js} +8 -8
- package/dist/esm/{nb-529fd6f8.js → nb-25537e87.js} +8 -8
- package/dist/esm/{nl-ebd398ac.js → nl-8be84da3.js} +8 -8
- package/dist/esm/{openCloseComponent-80c6ee4b.js → openCloseComponent-9d44719e.js} +1 -1
- package/dist/esm/{pl-4cd334ed.js → pl-8d4fe5a7.js} +8 -8
- package/dist/esm/{pt-br-29226fc3.js → pt-br-3015e62b.js} +8 -8
- package/dist/esm/{pt-be0c86a5.js → pt-dcc887b4.js} +8 -8
- package/dist/esm/{ro-6555f5dd.js → ro-b973c654.js} +8 -8
- package/dist/esm/{ru-67b5c59c.js → ru-59a7f10b.js} +8 -8
- package/dist/esm/{shared-list-render-c8da5fde.js → shared-list-render-097ee366.js} +1 -1
- package/dist/esm/{sk-81f19081.js → sk-a00e5b97.js} +8 -8
- package/dist/esm/{sl-4b892d99.js → sl-55c8a748.js} +8 -8
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/{sr-6cb6f797.js → sr-e4fc3293.js} +8 -8
- package/dist/esm/{sv-aacab364.js → sv-f0782d2a.js} +8 -8
- package/dist/esm/{t9n-7d4462c0.js → t9n-b33c486a.js} +1 -1
- package/dist/esm/{th-6b423678.js → th-d2abb499.js} +8 -8
- package/dist/esm/{time-b0bba3f9.js → time-f99aceff.js} +1 -1
- package/dist/esm/{tr-0e2b854e.js → tr-512413e1.js} +8 -8
- package/dist/esm/{uk-af0a30cc.js → uk-79fe44f1.js} +8 -8
- package/dist/esm/{utils-6493bff2.js → utils-6f13e31e.js} +22 -1
- package/dist/esm/{utils-37bc2853.js → utils-d67a6d71.js} +1 -1
- package/dist/esm/{vi-62071c6f.js → vi-53b51e7a.js} +8 -8
- package/dist/esm/{zh-cn-8f53db2f.js → zh-cn-7d19a53a.js} +8 -8
- package/dist/esm/{zh-hk-a8c68b9c.js → zh-hk-4fb6c3eb.js} +8 -8
- package/dist/esm/{zh-tw-3006115d.js → zh-tw-6a5d2c2b.js} +8 -8
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-app-guide/instant-apps-app-guide.css +75 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator.css +16 -0
- package/dist/solutions-components/{p-bb9492ed.js → p-022d51db.js} +1 -1
- package/dist/solutions-components/{p-beba6703.js → p-03f3cf77.js} +1 -1
- package/dist/solutions-components/{p-3955461a.js → p-03ffbb1b.js} +1 -1
- package/dist/solutions-components/{p-db2c82ad.js → p-0a1a9ff1.js} +1 -1
- package/dist/solutions-components/p-0a64be62.js +6 -0
- package/dist/solutions-components/{p-a0ef9cee.js → p-0ded20f0.js} +1 -1
- package/dist/solutions-components/{p-abc30e04.js → p-12be6545.js} +1 -1
- package/dist/solutions-components/{p-6384a9a5.entry.js → p-1692858b.entry.js} +1 -1
- package/dist/solutions-components/{p-4182a628.js → p-174aa4da.js} +3 -3
- package/dist/solutions-components/{p-981afe9e.entry.js → p-1826154b.entry.js} +1 -1
- package/dist/solutions-components/{p-109cabd8.entry.js → p-18307307.entry.js} +1 -1
- package/dist/solutions-components/{p-593a6f17.js → p-1a047db6.js} +1 -1
- package/dist/solutions-components/{p-d1371897.js → p-1df2d94d.js} +1 -1
- package/dist/solutions-components/{p-8badcaf5.entry.js → p-216ae423.entry.js} +1 -1
- package/dist/solutions-components/{p-7586e1de.entry.js → p-219f0273.entry.js} +1 -1
- package/dist/solutions-components/{p-ae8ed06a.entry.js → p-283e344a.entry.js} +1 -1
- package/dist/solutions-components/{p-7f090468.entry.js → p-2a059548.entry.js} +1 -1
- package/dist/solutions-components/{p-118e1989.entry.js → p-2bb9b365.entry.js} +1 -1
- package/dist/solutions-components/{p-fd730974.js → p-2caf1f94.js} +2 -2
- package/dist/solutions-components/{p-92de7cd3.entry.js → p-2cb47eff.entry.js} +2 -2
- package/dist/solutions-components/{p-e5736093.entry.js → p-2d2b06db.entry.js} +1 -1
- package/dist/solutions-components/{p-4d97016e.js → p-2d2dcf8a.js} +1 -1
- package/dist/solutions-components/{p-472be784.js → p-2d5e428d.js} +1 -1
- package/dist/solutions-components/{p-89ddc916.js → p-2e7d005f.js} +1 -1
- package/dist/solutions-components/{p-ef360459.entry.js → p-3016bf77.entry.js} +1 -1
- package/dist/solutions-components/{p-a2d4c97e.js → p-3244e59a.js} +2 -2
- package/dist/solutions-components/{p-54fa7a94.js → p-365169c2.js} +1 -1
- package/dist/solutions-components/{p-e013e797.js → p-372e4640.js} +1 -1
- package/dist/solutions-components/p-3d6f8c9e.entry.js +29 -0
- package/dist/solutions-components/{p-458a3f01.entry.js → p-3de85f54.entry.js} +1 -1
- package/dist/solutions-components/{p-5fe92f6e.entry.js → p-3e9a487b.entry.js} +1 -1
- package/dist/solutions-components/{p-2756e4ac.entry.js → p-42710186.entry.js} +1 -1
- package/dist/solutions-components/{p-16d721ef.entry.js → p-44270ade.entry.js} +1 -1
- package/dist/solutions-components/{p-d6c50190.entry.js → p-47398e76.entry.js} +1 -1
- package/dist/solutions-components/{p-20393dcf.entry.js → p-4881885b.entry.js} +3 -3
- package/dist/solutions-components/{p-5a76a4c8.entry.js → p-496b7a1f.entry.js} +1 -1
- package/dist/solutions-components/{p-89f14b8a.entry.js → p-4aafcac7.entry.js} +1 -1
- package/dist/solutions-components/{p-5d4efa42.entry.js → p-4cfe3d80.entry.js} +1 -1
- package/dist/solutions-components/{p-19697807.entry.js → p-4feaf7db.entry.js} +1 -1
- package/dist/solutions-components/{p-c8325ead.entry.js → p-50323300.entry.js} +1 -1
- package/dist/solutions-components/{p-f4e30ab2.js → p-50ab7903.js} +1 -1
- package/dist/solutions-components/{p-960a4993.entry.js → p-50c2d3e5.entry.js} +1 -1
- package/dist/solutions-components/{p-33fe9a28.js → p-50e2a33b.js} +1 -1
- package/dist/solutions-components/{p-6e0b76ce.js → p-51abfcb7.js} +1 -1
- package/dist/solutions-components/{p-1a7c4e9a.js → p-524a996f.js} +1 -1
- package/dist/solutions-components/{p-00cfce5b.entry.js → p-54879c84.entry.js} +1 -1
- package/dist/solutions-components/{p-8ae73529.entry.js → p-5550f101.entry.js} +2 -2
- package/dist/solutions-components/{p-040b6e44.entry.js → p-5714f5ca.entry.js} +1 -1
- package/dist/solutions-components/{p-67392838.entry.js → p-57be85fb.entry.js} +1 -1
- package/dist/solutions-components/{p-48c58b28.js → p-58d8ee47.js} +1 -1
- package/dist/solutions-components/{p-71c0a413.js → p-5959580d.js} +1 -1
- package/dist/solutions-components/{p-acf135cc.js → p-59695ccc.js} +1 -1
- package/dist/solutions-components/{p-116927af.entry.js → p-59b3e946.entry.js} +3 -3
- package/dist/solutions-components/{p-9c6f2672.entry.js → p-5a997dc9.entry.js} +1 -1
- package/dist/solutions-components/{p-c58ec2d0.js → p-5ba9df82.js} +3 -3
- package/dist/solutions-components/{p-78c438c0.entry.js → p-5d398871.entry.js} +1 -1
- package/dist/solutions-components/{p-5d8a5e53.entry.js → p-5d58d70c.entry.js} +1 -1
- package/dist/solutions-components/{p-4336e44a.js → p-62dadb51.js} +1 -1
- package/dist/solutions-components/{p-981ab7fc.entry.js → p-62ed6a7a.entry.js} +1 -1
- package/dist/solutions-components/{p-ea119eee.js → p-63f9004a.js} +1 -1
- package/dist/solutions-components/{p-b955a19b.entry.js → p-64906bb5.entry.js} +2 -2
- package/dist/solutions-components/{p-f7680693.js → p-65fe42ef.js} +1 -1
- package/dist/solutions-components/{p-441f1992.js → p-66cee72b.js} +1 -1
- package/dist/solutions-components/{p-da6e25cb.entry.js → p-6b1d1546.entry.js} +1 -1
- package/dist/solutions-components/{p-f14d11f1.js → p-6b21efce.js} +1 -1
- package/dist/solutions-components/{p-a8d4a522.entry.js → p-6cf1225a.entry.js} +1 -1
- package/dist/solutions-components/{p-a9f65057.entry.js → p-6d4db88b.entry.js} +8 -2
- package/dist/solutions-components/{p-c3782a7e.entry.js → p-6d894d47.entry.js} +1 -1
- package/dist/solutions-components/{p-26a3ba5e.entry.js → p-6e0439fa.entry.js} +1 -1
- package/dist/solutions-components/{p-16261018.js → p-6e118057.js} +2 -2
- package/dist/solutions-components/{p-0bd7752a.entry.js → p-6f594492.entry.js} +2 -2
- package/dist/solutions-components/{p-30903105.entry.js → p-70f2898c.entry.js} +1 -1
- package/dist/solutions-components/p-72bce122.entry.js +6 -0
- package/dist/solutions-components/{p-ddc97e93.entry.js → p-72ee63b0.entry.js} +1 -1
- package/dist/solutions-components/{p-24192cfe.js → p-754a5334.js} +1 -1
- package/dist/solutions-components/{p-fbf86656.entry.js → p-76efd680.entry.js} +1 -1
- package/dist/solutions-components/{p-5c0d42e9.entry.js → p-7758a533.entry.js} +1 -1
- package/dist/solutions-components/{p-c1242d4b.js → p-7a820f38.js} +1 -1
- package/dist/solutions-components/{p-a68f4775.entry.js → p-7b122a6e.entry.js} +1 -1
- package/dist/solutions-components/{p-3fb350ea.js → p-7e762fa7.js} +1 -1
- package/dist/solutions-components/{p-004d601f.entry.js → p-7f147e8b.entry.js} +1 -1
- package/dist/solutions-components/{p-41744516.entry.js → p-82185ebf.entry.js} +1 -1
- package/dist/solutions-components/{p-a16449b2.entry.js → p-827037ce.entry.js} +1 -1
- package/dist/solutions-components/{p-8419b5a1.entry.js → p-88c6ece3.entry.js} +1 -1
- package/dist/solutions-components/{p-cba777d2.js → p-8a683cdc.js} +1 -1
- package/dist/solutions-components/{p-42552409.js → p-8d453a3a.js} +1 -1
- package/dist/solutions-components/{p-886fbbe3.entry.js → p-8ef003ec.entry.js} +1 -1
- package/dist/solutions-components/p-8fb651e5.entry.js +6 -0
- package/dist/solutions-components/{p-4a35785b.js → p-92008b90.js} +1 -1
- package/dist/solutions-components/{p-203b4081.js → p-94397114.js} +1 -1
- package/dist/solutions-components/{p-50203a2d.entry.js → p-94805d7f.entry.js} +1 -1
- package/dist/solutions-components/p-94c518ff.entry.js +6 -0
- package/dist/solutions-components/{p-c5520bba.js → p-97aa6766.js} +1 -1
- package/dist/solutions-components/{p-2afb3a2b.js → p-984ce9da.js} +1 -1
- package/dist/solutions-components/{p-96919110.js → p-99e6cb74.js} +1 -1
- package/dist/solutions-components/{p-075a3c9d.entry.js → p-9d12b3f1.entry.js} +1 -1
- package/dist/solutions-components/{p-ff96d7ee.entry.js → p-9ee72dba.entry.js} +3 -3
- package/dist/solutions-components/{p-86ca6cfe.entry.js → p-9f3aebd0.entry.js} +1 -1
- package/dist/solutions-components/p-a1093fee.entry.js +6 -0
- package/dist/solutions-components/{p-bc86c87d.entry.js → p-a2a2c6a2.entry.js} +2 -2
- package/dist/solutions-components/{p-b9eefee6.entry.js → p-a2dbc38b.entry.js} +2 -2
- package/dist/solutions-components/{p-f4d6771a.js → p-a4255b97.js} +1 -1
- package/dist/solutions-components/{p-6518727d.js → p-a4e73041.js} +1 -1
- package/dist/solutions-components/{p-6e3f1d71.js → p-a5fc6ab7.js} +1 -1
- package/dist/solutions-components/{p-25ee25ea.entry.js → p-a60a2c8b.entry.js} +2 -2
- package/dist/solutions-components/{p-254f6e23.entry.js → p-a6a0df5c.entry.js} +1 -1
- package/dist/solutions-components/p-a7395caf.js +6 -0
- package/dist/solutions-components/{p-8eacc640.js → p-a7761371.js} +1 -1
- package/dist/solutions-components/{p-bdc425fc.js → p-a8b70e9a.js} +1 -1
- package/dist/solutions-components/{p-728ec094.entry.js → p-a8d83bc3.entry.js} +1 -1
- package/dist/solutions-components/p-aa36f70e.entry.js +6 -0
- package/dist/solutions-components/{p-57b673e2.js → p-ac92679c.js} +1 -1
- package/dist/solutions-components/{p-dbcfdc6d.entry.js → p-ad441ffa.entry.js} +1 -1
- package/dist/solutions-components/{p-01510268.entry.js → p-add869b6.entry.js} +1 -1
- package/dist/solutions-components/{p-9232245b.entry.js → p-b310402f.entry.js} +1 -1
- package/dist/solutions-components/{p-996daf05.entry.js → p-b4d708cd.entry.js} +1 -1
- package/dist/solutions-components/{p-6f39a13f.js → p-b7e63ac2.js} +1 -1
- package/dist/solutions-components/{p-c26ac7d9.entry.js → p-b9b2f7a9.entry.js} +1 -1
- package/dist/solutions-components/{p-2fafe489.entry.js → p-bb040eab.entry.js} +1 -1
- package/dist/solutions-components/{p-c5d26e3a.js → p-bcc2d4ff.js} +1 -1
- package/dist/solutions-components/{p-8846430d.entry.js → p-bcce9d28.entry.js} +3 -3
- package/dist/solutions-components/{p-b6b4c707.entry.js → p-c60c5991.entry.js} +1 -1
- package/dist/solutions-components/{p-ec59efb8.js → p-c6ef8cca.js} +1 -1
- package/dist/solutions-components/{p-7b63f249.entry.js → p-c718930a.entry.js} +1 -1
- package/dist/solutions-components/{p-d8a54947.js → p-c94b0e1a.js} +1 -1
- package/dist/solutions-components/{p-e5ec69a4.js → p-cba6953c.js} +1 -1
- package/dist/solutions-components/{p-976ad17d.entry.js → p-d00ca970.entry.js} +1 -1
- package/dist/solutions-components/p-d2033cfa.entry.js +6 -0
- package/dist/solutions-components/{p-4993c7b1.js → p-d2ee8b82.js} +1 -1
- package/dist/solutions-components/{p-228c3bf3.entry.js → p-d4ab82e3.entry.js} +1 -1
- package/dist/solutions-components/{p-8f840208.entry.js → p-d7711a84.entry.js} +1 -1
- package/dist/solutions-components/{p-b7a49673.entry.js → p-d7871f0d.entry.js} +1 -1
- package/dist/solutions-components/{p-1794a1aa.entry.js → p-dc264663.entry.js} +1 -1
- package/dist/solutions-components/{p-2ace1fe7.entry.js → p-dcaae1e9.entry.js} +2 -2
- package/dist/solutions-components/{p-7f31be6a.js → p-dcebc541.js} +1 -1
- package/dist/solutions-components/{p-faf7740b.entry.js → p-de3719f2.entry.js} +1 -1
- package/dist/solutions-components/{p-32cf5a71.entry.js → p-e068dfb9.entry.js} +1 -1
- package/dist/solutions-components/{p-1cfc581f.js → p-e0b65115.js} +1 -1
- package/dist/solutions-components/{p-9901e971.js → p-e0fd4006.js} +1 -1
- package/dist/solutions-components/{p-bd3c130b.entry.js → p-e26cf5f5.entry.js} +1 -1
- package/dist/solutions-components/{p-e3bb02cc.js → p-e6798e38.js} +1 -1
- package/dist/solutions-components/{p-546a2802.js → p-ea8d2558.js} +1 -1
- package/dist/solutions-components/{p-d726e895.js → p-ef187f1d.js} +1 -1
- package/dist/solutions-components/{p-b4d92441.entry.js → p-efca5cea.entry.js} +1 -1
- package/dist/solutions-components/{p-ab8f4820.entry.js → p-f4360468.entry.js} +2 -2
- package/dist/solutions-components/{p-35f33a32.js → p-f4d7f757.js} +1 -1
- package/dist/solutions-components/{p-2b212cd0.entry.js → p-f72fa647.entry.js} +1 -1
- package/dist/solutions-components/{p-328fbcb5.js → p-f7e45464.js} +1 -1
- package/dist/solutions-components/{p-4f4f00a9.js → p-f7ffcd95.js} +1 -1
- package/dist/solutions-components/{p-30b555dc.entry.js → p-fa7c50f8.entry.js} +1 -1
- package/dist/solutions-components/{p-fb95ec69.entry.js → p-fd9fb1ba.entry.js} +1 -1
- package/dist/solutions-components/{p-9957c7b8.entry.js → p-fdb201ff.entry.js} +1 -1
- package/dist/solutions-components/{p-b3b042df.js → p-fe0add26.js} +1 -1
- package/dist/solutions-components/{p-3f6d5f14.entry.js → p-ff105078.entry.js} +1 -1
- package/dist/solutions-components/{p-451b483d.entry.js → p-ff639390.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/preact.d.ts +2 -0
- package/package.json +2 -2
- package/dist/cjs/calcite-carousel-item.cjs.entry.js +0 -46
- package/dist/solutions-components/p-27a25ece.entry.js +0 -6
- package/dist/solutions-components/p-2c00221b.js +0 -6
- package/dist/solutions-components/p-41c34a67.js +0 -6
- package/dist/solutions-components/p-72d0eda0.entry.js +0 -29
- package/dist/solutions-components/p-743ad3a7.entry.js +0 -6
- package/dist/solutions-components/p-93d8ef73.entry.js +0 -6
- package/dist/solutions-components/p-a0b62b46.entry.js +0 -6
- package/dist/solutions-components/p-aef41a6d.entry.js +0 -11
- package/dist/solutions-components/p-af8a7aff.entry.js +0 -6
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,h as e,H as n,g as r}from"./p-6eb37ed2.js";import{c as o}from"./p-d4056c1c.js";import{t as a,f as s}from"./p-441f1992.js";import{c,d as u,u as l,a as h}from"./p-4182a628.js";import{s as f,a as v,c as d}from"./p-3e828614.js";import{c as p}from"./p-1c249530.js";import{o as g}from"./p-16261018.js";import{c as m,d as y}from"./p-42552409.js";import{s as b,c as x,d as w,u as k}from"./p-6e3f1d71.js";import{c as z}from"./p-27d462c0.js";import{S as M}from"./p-2230d4cc.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-0ef9d36b.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";var E,O={exports:{}};(E=O).exports=function(){function t(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function i(i){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?t(Object(n),!0).forEach((function(t){a(i,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(n,t))}))}return i}function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function r(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function o(t,i,e){return i&&r(t.prototype,i),e&&r(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,i,e){return(i=v(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function s(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&u(t,i)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,i){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},u(t,i)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=c(t);if(i){var r=c(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(t,i){if(i&&("object"==typeof i||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,e)}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,i,e){var n=function(t,i){for(;!Object.prototype.hasOwnProperty.call(t,i)&&null!==(t=c(t)););return t}(t,i);if(n){var r=Object.getOwnPropertyDescriptor(n,i);return r.get?r.get.call(arguments.length<3?t:e):r.value}},f.apply(this,arguments)}function v(t){var i=function(t){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:i+""}var d=function(t){return!(!t||!t.Window)&&t instanceof t.Window},p=void 0,g=void 0;function m(t){p=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(i)===i&&(t=t.wrap(t)),g=t}function y(t){return d(t)?t:(t.ownerDocument||t).defaultView||g.window}"undefined"!=typeof window&&window&&m(window);var b=function(t){return!!t&&"object"===e(t)},x=function(t){return"function"==typeof t},w={window:function(t){return t===g||d(t)},docFrag:function(t){return b(t)&&11===t.nodeType},object:b,func:x,number:function(t){return"number"==typeof t},bool:function(t){return"boolean"==typeof t},string:function(t){return"string"==typeof t},element:function(t){if(!t||"object"!==e(t))return!1;var i=y(t)||g;return/object|function/.test("undefined"==typeof Element?"undefined":e(Element))?t instanceof Element||t instanceof i.Element:1===t.nodeType&&"string"==typeof t.nodeName},plainObject:function(t){return b(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return b(t)&&void 0!==t.length&&x(t.splice)}};function k(t){var i=t.interaction;if("drag"===i.prepared.name){var e=i.prepared.axis;"x"===e?(i.coords.cur.page.y=i.coords.start.page.y,i.coords.cur.client.y=i.coords.start.client.y,i.coords.velocity.client.y=0,i.coords.velocity.page.y=0):"y"===e&&(i.coords.cur.page.x=i.coords.start.page.x,i.coords.cur.client.x=i.coords.start.client.x,i.coords.velocity.client.x=0,i.coords.velocity.page.x=0)}}function z(t){var i=t.iEvent,e=t.interaction;if("drag"===e.prepared.name){var n=e.prepared.axis;if("x"===n||"y"===n){var r="x"===n?"y":"x";i.page[r]=e.coords.start.page[r],i.client[r]=e.coords.start.client[r],i.delta[r]=0}}}var M={id:"actions/drag",install:function(t){var i=t.actions,e=t.defaults;t.Interactable.prototype.draggable=M.draggable,i.map.drag=M,i.methodDict.drag="draggable",e.actions.drag=M.defaults},listeners:{"interactions:before-action-move":k,"interactions:action-resume":k,"interactions:action-move":z,"auto-start:check":function(t){var i=t.interaction,e=t.interactable,n=t.buttons,r=e.options.drag;if(r&&r.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||n&e.options.drag.mouseButtons))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(t){return w.object(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):w.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:k,move:z,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return 0===t.search("drag")}},O=M,S={init:function(t){var i=t;S.document=i.document,S.DocumentFragment=i.DocumentFragment||T,S.SVGElement=i.SVGElement||T,S.SVGSVGElement=i.SVGSVGElement||T,S.SVGElementInstance=i.SVGElementInstance||T,S.Element=i.Element||T,S.HTMLElement=i.HTMLElement||S.Element,S.Event=i.Event,S.Touch=i.Touch||T,S.PointerEvent=i.PointerEvent||i.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function T(){}var j=S,I={init:function(t){var i=j.Element,e=t.navigator||{};I.supportsTouch="ontouchstart"in t||w.func(t.DocumentTouch)&&j.document instanceof t.DocumentTouch,I.supportsPointerEvent=!1!==e.pointerEnabled&&!!j.PointerEvent,I.isIOS=/iP(hone|od|ad)/.test(e.platform),I.isIOS7=/iP(hone|od|ad)/.test(e.platform)&&/OS 7[^\d]/.test(e.appVersion),I.isIe9=/MSIE 9/.test(e.userAgent),I.isOperaMobile="Opera"===e.appName&&I.supportsTouch&&/Presto/.test(e.userAgent),I.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",I.pEventTypes=I.supportsPointerEvent?j.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,I.wheelEvent=j.document&&"onmousewheel"in j.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},P=I;function D(t,i){if(t.contains)return t.contains(i);for(;i;){if(i===t)return!0;i=i.parentNode}return!1}function C(t,i){for(;w.element(t);){if(R(t,i))return t;t=A(t)}return null}function A(t){var i=t.parentNode;if(w.docFrag(i)){for(;(i=i.host)&&w.docFrag(i););return i}return i}function R(t,i){return g!==p&&(i=i.replace(/\/deep\//g," ")),t[P.prefixedMatchesSelector](i)}var _=function(t){return t.parentNode||t.host};function F(t,i){for(var e,n=[],r=t;(e=_(r))&&r!==i&&e!==r.ownerDocument;)n.unshift(r),r=e;return n}function L(t,i,e){for(;w.element(t);){if(R(t,i))return!0;if((t=A(t))===e)return R(t,i)}return!1}function $(t){return t.correspondingUseElement||t}function B(t){var i=t instanceof j.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return i&&{left:i.left,right:i.right,top:i.top,bottom:i.bottom,width:i.width||i.right-i.left,height:i.height||i.bottom-i.top}}function X(t){var i,e=B(t);if(!P.isIOS7&&e){var n={x:(i=(i=y(t))||g).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};e.left+=n.x,e.right+=n.x,e.top+=n.y,e.bottom+=n.y}return e}function Y(t){for(var i=[];t;)i.push(t),t=A(t);return i}function U(t){return!!w.string(t)&&(j.document.querySelector(t),!0)}function V(t,i){for(var e in i)t[e]=i[e];return t}function N(t,i,e){return"parent"===t?A(e):"self"===t?i.getRect(e):C(e,t)}function q(t,i,e,n){var r=t;return w.string(r)?r=N(r,i,e):w.func(r)&&(r=r.apply(void 0,n)),w.element(r)&&(r=X(r)),r}function H(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function G(t){return!t||"x"in t&&"y"in t||((t=V({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function K(t,i,e){t.left&&(i.left+=e.x),t.right&&(i.right+=e.x),t.top&&(i.top+=e.y),t.bottom&&(i.bottom+=e.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function W(t,i,e){var n=e&&t.options[e];return H(q(n&&n.origin||t.options.origin,t,i,[t&&i]))||{x:0,y:0}}function J(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},n=arguments.length>3?arguments[3]:void 0;if(n=n||{},w.string(t)&&-1!==t.search(" ")&&(t=Q(t)),w.array(t))return t.forEach((function(t){return J(t,i,e,n)})),n;if(w.object(t)&&(i=t,t=""),w.func(i)&&e(t))n[t]=n[t]||[],n[t].push(i);else if(w.array(i))for(var r=0,o=i;r<o.length;r++)J(t,o[r],e,n);else if(w.object(i))for(var a in i)J(Q(a).map((function(i){return"".concat(t).concat(i)})),i[a],e,n);return n}function Q(t){return t.trim().split(/ +/)}var Z=function(t,i){return Math.sqrt(t*t+i*i)},tt=["webkit","moz"];function it(t,i){t.__set||(t.__set={});var e=function(e){if(tt.some((function(t){return 0===e.indexOf(t)})))return 1;"function"!=typeof t[e]&&"__set"!==e&&Object.defineProperty(t,e,{get:function(){return e in t.__set?t.__set[e]:t.__set[e]=i[e]},set:function(i){t.__set[e]=i},configurable:!0})};for(var n in i)e(n);return t}function et(t,i){t.page=t.page||{},t.page.x=i.page.x,t.page.y=i.page.y,t.client=t.client||{},t.client.x=i.client.x,t.client.y=i.client.y,t.timeStamp=i.timeStamp}function nt(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function rt(t){return t instanceof j.Event||t instanceof j.Touch}function ot(t,i,e){return(e=e||{}).x=i[(t=t||"page")+"X"],e.y=i[t+"Y"],e}function at(t,i){return i=i||{x:0,y:0},P.isOperaMobile&&rt(t)?(ot("screen",t,i),i.x+=window.scrollX,i.y+=window.scrollY):ot("page",t,i),i}function st(t){return w.number(t.pointerId)?t.pointerId:t.identifier}function ct(t){var i=[];return w.array(t)?(i[0]=t[0],i[1]=t[1]):"touchend"===t.type?1===t.touches.length?(i[0]=t.touches[0],i[1]=t.changedTouches[0]):0===t.touches.length&&(i[0]=t.changedTouches[0],i[1]=t.changedTouches[1]):(i[0]=t.touches[0],i[1]=t.touches[1]),i}function ut(t){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},e=0;e<t.length;e++){var n=t[e];for(var r in i)i[r]+=n[r]}for(var o in i)i[o]/=t.length;return i}function lt(t){if(!t.length)return null;var i=ct(t),e=Math.min(i[0].pageX,i[1].pageX),n=Math.min(i[0].pageY,i[1].pageY),r=Math.max(i[0].pageX,i[1].pageX),o=Math.max(i[0].pageY,i[1].pageY);return{x:e,y:n,left:e,top:n,right:r,bottom:o,width:r-e,height:o-n}}function ht(t,i){var e=i+"X",n=i+"Y",r=ct(t);return Z(r[0][e]-r[1][e],r[0][n]-r[1][n])}function ft(t,i){var e=i+"X",n=i+"Y",r=ct(t);return 180*Math.atan2(r[1][n]-r[0][n],r[1][e]-r[0][e])/Math.PI}function vt(t){return w.string(t.pointerType)?t.pointerType:w.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof j.Touch?"touch":"mouse"}function dt(t){var i=w.func(t.composedPath)?t.composedPath():t.path;return[$(i?i[0]:t.target),$(t.currentTarget)]}var pt=function(){function t(i){n(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return o(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(pt.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var gt=function(t,i){for(var e=0;e<i.length;e++)t.push(i[e]);return t},mt=function(t){return gt([],t)},yt=function(t,i){for(var e=0;e<t.length;e++)if(i(t[e],e,t))return e;return-1},bt=function(t,i){return t[yt(t,i)]},xt=function(t){s(e,t);var i=h(e);function e(t,r,o){var a;n(this,e),(a=i.call(this,r._interaction)).dropzone=void 0,a.dragEvent=void 0,a.relatedTarget=void 0,a.draggable=void 0,a.propagationStopped=!1,a.immediatePropagationStopped=!1;var s="dragleave"===o?t.prev:t.cur,c=s.element,u=s.dropzone;return a.type=o,a.target=c,a.currentTarget=c,a.dropzone=u,a.dragEvent=r,a.relatedTarget=r.target,a.draggable=r.interactable,a.timeStamp=r.timeStamp,a}return o(e,[{key:"reject",value:function(){var t=this,i=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&i.cur.dropzone===this.dropzone&&i.cur.element===this.target)if(i.prev.dropzone=this.dropzone,i.prev.element=this.target,i.rejected=!0,i.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=yt(i.activeDrops,(function(i){return i.dropzone===t.dropzone&&i.element===t.target}));i.activeDrops.splice(n,1);var r=new e(i,this.dragEvent,"dropdeactivate");r.dropzone=this.dropzone,r.target=this.target,this.dropzone.fire(r)}else this.dropzone.fire(new e(i,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),e}(pt);function wt(t,i){for(var e=0,n=t.slice();e<n.length;e++){var r=n[e],o=r.dropzone,a=r.element;i.dropzone=o,i.target=a,o.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function kt(t,i){for(var e=function(t,i){for(var e=[],n=0,r=t.interactables.list;n<r.length;n++){var o=r[n];if(o.options.drop.enabled){var a=o.options.drop.accept;if(!(w.element(a)&&a!==i||w.string(a)&&!R(i,a)||w.func(a)&&!a({dropzone:o,draggableElement:i})))for(var s=0,c=o.getAllElements();s<c.length;s++){var u=c[s];u!==i&&e.push({dropzone:o,element:u,rect:o.getRect(u)})}}}return e}(t,i),n=0;n<e.length;n++){var r=e[n];r.rect=r.dropzone.getRect(r.element)}return e}function zt(t,i,e){for(var n=t.dropState,r=t.interactable,o=t.element,a=[],s=0,c=n.activeDrops;s<c.length;s++){var u=c[s],l=u.element,h=u.dropzone.dropCheck(i,e,r,o,l,u.rect);a.push(h?l:null)}var f=function(t){for(var i,e,n,r=[],o=0;o<t.length;o++){var a=t[o],s=t[i];if(a&&o!==i)if(s){var c=_(a),u=_(s);if(c!==a.ownerDocument)if(u!==a.ownerDocument)if(c!==u){r=r.length?r:F(s);var l=void 0;if(s instanceof j.HTMLElement&&a instanceof j.SVGElement&&!(a instanceof j.SVGSVGElement)){if(a===u)continue;l=a.ownerSVGElement}else l=a;for(var h=F(l,s.ownerDocument),f=0;h[f]&&h[f]===r[f];)f++;var v=[h[f-1],h[f],r[f]];if(v[0])for(var d=v[0].lastChild;d;){if(d===v[1]){i=o,r=h;break}if(d===v[2])break;d=d.previousSibling}}else n=s,(parseInt(y(e=a).getComputedStyle(e).zIndex,10)||0)>=(parseInt(y(n).getComputedStyle(n).zIndex,10)||0)&&(i=o);else i=o}else i=o}return i}(a);return n.activeDrops[f]||null}function Mt(t,i,e){var n=t.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===e.type&&(r.activate=new xt(n,e,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===e.type&&(r.deactivate=new xt(n,e,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),n.rejected||(n.cur.element!==n.prev.element&&(n.prev.dropzone&&(r.leave=new xt(n,e,"dragleave"),e.dragLeave=r.leave.target=n.prev.element,e.prevDropzone=r.leave.dropzone=n.prev.dropzone),n.cur.dropzone&&(r.enter=new xt(n,e,"dragenter"),e.dragEnter=n.cur.element,e.dropzone=n.cur.dropzone)),"dragend"===e.type&&n.cur.dropzone&&(r.drop=new xt(n,e,"drop"),e.dropzone=n.cur.dropzone,e.relatedTarget=n.cur.element),"dragmove"===e.type&&n.cur.dropzone&&(r.move=new xt(n,e,"dropmove"),e.dropzone=n.cur.dropzone)),r}function Et(t,i){var e=t.dropState,n=e.activeDrops,r=e.cur;i.leave&&e.prev.dropzone.fire(i.leave),i.enter&&r.dropzone.fire(i.enter),i.move&&r.dropzone.fire(i.move),i.drop&&r.dropzone.fire(i.drop),i.deactivate&&wt(n,i.deactivate),e.prev.dropzone=r.dropzone,e.prev.element=r.element}function Ot(t,i){var e=t.interaction,n=t.iEvent,r=t.event;if("dragmove"===n.type||"dragend"===n.type){var o=e.dropState;i.dynamicDrop&&(o.activeDrops=kt(i,e.element));var a=n,s=zt(e,a,r);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=Mt(e,0,a)}}var St={id:"actions/drop",install:function(t){var i=t.actions,e=t.interactStatic,n=t.Interactable,r=t.defaults;t.usePlugin(O),n.prototype.dropzone=function(t){return function(t,i){if(w.object(i)){if(t.options.drop.enabled=!1!==i.enabled,i.listeners){var e=J(i.listeners),n=Object.keys(e).reduce((function(t,i){return t[/^(enter|leave)/.test(i)?"drag".concat(i):/^(activate|deactivate|move)/.test(i)?"drop".concat(i):i]=e[i],t}),{}),r=t.options.drop.listeners;r&&t.off(r),t.on(n),t.options.drop.listeners=n}return w.func(i.ondrop)&&t.on("drop",i.ondrop),w.func(i.ondropactivate)&&t.on("dropactivate",i.ondropactivate),w.func(i.ondropdeactivate)&&t.on("dropdeactivate",i.ondropdeactivate),w.func(i.ondragenter)&&t.on("dragenter",i.ondragenter),w.func(i.ondragleave)&&t.on("dragleave",i.ondragleave),w.func(i.ondropmove)&&t.on("dropmove",i.ondropmove),/^(pointer|center)$/.test(i.overlap)?t.options.drop.overlap=i.overlap:w.number(i.overlap)&&(t.options.drop.overlap=Math.max(Math.min(1,i.overlap),0)),"accept"in i&&(t.options.drop.accept=i.accept),"checker"in i&&(t.options.drop.checker=i.checker),t}return w.bool(i)?(t.options.drop.enabled=i,t):t.options.drop}(this,t)},n.prototype.dropCheck=function(t,i,e,n,r,o){return function(t,i,e,n,r,o,a){var s=!1;if(!(a=a||t.getRect(o)))return!!t.options.drop.checker&&t.options.drop.checker(i,e,s,t,o,n,r);var c=t.options.drop.overlap;if("pointer"===c){var u=W(n,r,"drag"),l=at(i);l.x+=u.x,l.y+=u.y,s=l.x>a.left&&l.x<a.right&&l.y>a.top&&l.y<a.bottom}var h=n.getRect(r);if(h&&"center"===c){var f=h.left+h.width/2,v=h.top+h.height/2;s=f>=a.left&&f<=a.right&&v>=a.top&&v<=a.bottom}return h&&w.number(c)&&(s=Math.max(0,Math.min(a.right,h.right)-Math.max(a.left,h.left))*Math.max(0,Math.min(a.bottom,h.bottom)-Math.max(a.top,h.top))/(h.width*h.height)>=c),t.options.drop.checker&&(s=t.options.drop.checker(i,e,s,t,o,n,r)),s}(this,t,i,e,n,r,o)},e.dynamicDrop=function(i){return w.bool(i)?(t.dynamicDrop=i,e):t.dynamicDrop},V(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",t.dynamicDrop=!1,r.actions.drop=St.defaults},listeners:{"interactions:before-action-start":function(t){var i=t.interaction;"drag"===i.prepared.name&&(i.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,i){var e=t.interaction,n=t.iEvent;if("drag"===e.prepared.name){var r=e.dropState;r.activeDrops=[],r.events={},r.activeDrops=kt(i,e.element),r.events=Mt(e,0,n),r.events.activate&&(wt(r.activeDrops,r.events.activate),i.fire("actions/drop:start",{interaction:e,dragEvent:n}))}},"interactions:action-move":Ot,"interactions:after-action-move":function(t,i){var e=t.interaction,n=t.iEvent;if("drag"===e.prepared.name){var r=e.dropState;Et(e,r.events),i.fire("actions/drop:move",{interaction:e,dragEvent:n}),r.events={}}},"interactions:action-end":function(t,i){if("drag"===t.interaction.prepared.name){var e=t.interaction,n=t.iEvent;Ot(t,i),Et(e,e.dropState.events),i.fire("actions/drop:end",{interaction:e,dragEvent:n})}},"interactions:stop":function(t){var i=t.interaction;if("drag"===i.prepared.name){var e=i.dropState;e&&(e.activeDrops=null,e.events=null,e.cur.dropzone=null,e.cur.element=null,e.prev.dropzone=null,e.prev.element=null,e.rejected=!1)}}},getActiveDrops:kt,getDrop:zt,getDropEvents:Mt,fireDropEvents:Et,filterEventType:function(t){return 0===t.search("drag")||0===t.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Tt=St;function jt(t){var i=t.interaction,e=t.iEvent,n=t.phase;if("gesture"===i.prepared.name){var r=i.pointers.map((function(t){return t.pointer})),o="start"===n,a="end"===n,s=i.interactable.options.deltaSource;if(e.touches=[r[0],r[1]],o)e.distance=ht(r,s),e.box=lt(r),e.scale=1,e.ds=0,e.angle=ft(r,s),e.da=0,i.gesture.startDistance=e.distance,i.gesture.startAngle=e.angle;else if(a||i.pointers.length<2){var c=i.prevEvent;e.distance=c.distance,e.box=c.box,e.scale=c.scale,e.ds=0,e.angle=c.angle,e.da=0}else e.distance=ht(r,s),e.box=lt(r),e.scale=e.distance/i.gesture.startDistance,e.angle=ft(r,s),e.ds=e.scale-i.gesture.scale,e.da=e.angle-i.gesture.angle;i.gesture.distance=e.distance,i.gesture.angle=e.angle,w.number(e.scale)&&e.scale!==1/0&&!isNaN(e.scale)&&(i.gesture.scale=e.scale)}}var It={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var i=t.actions,e=t.defaults;t.Interactable.prototype.gesturable=function(t){return w.object(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):w.bool(t)?(this.options.gesture.enabled=t,this):this.options.gesture},i.map.gesture=It,i.methodDict.gesture="gesturable",e.actions.gesture=It.defaults},listeners:{"interactions:action-start":jt,"interactions:action-move":jt,"interactions:action-end":jt,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var i=t.interactable.options.gesture;if(i&&i.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return 0===t.search("gesture")}},Pt=It;function Dt(t,i,e,n,r,o,a){if(!i)return!1;if(!0===i){var s=w.number(o.width)?o.width:o.right-o.left,c=w.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs(("left"===t||"right"===t?s:c)/2)),s<0&&("left"===t?t="right":"right"===t&&(t="left")),c<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t)return e.x<(s>=0?o.left:o.right)+a;if("top"===t)return e.y<(c>=0?o.top:o.bottom)+a;if("right"===t)return e.x>(s>=0?o.right:o.left)-a;if("bottom"===t)return e.y>(c>=0?o.bottom:o.top)-a}return!!w.element(n)&&(w.element(i)?i===n:L(n,i,r))}function Ct(t){var i=t.interaction;if("resize"===i.prepared.name&&i.resizeAxes){var e=t.iEvent;i.interactable.options.resize.square?("y"===i.resizeAxes?e.delta.x=e.delta.y:e.delta.y=e.delta.x,e.axes="xy"):(e.axes=i.resizeAxes,"x"===i.resizeAxes?e.delta.y=0:"y"===i.resizeAxes&&(e.delta.x=0))}}var At,Rt,_t={id:"actions/resize",before:["actions/drag"],install:function(t){var i=t.actions,e=t.browser,n=t.Interactable,r=t.defaults;_t.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(e),_t.defaultMargin=e.supportsTouch||e.supportsPointerEvent?20:10,n.prototype.resizable=function(i){return function(t,i,e){return w.object(i)?(t.options.resize.enabled=!1!==i.enabled,t.setPerAction("resize",i),t.setOnEvents("resize",i),w.string(i.axis)&&/^x$|^y$|^xy$/.test(i.axis)?t.options.resize.axis=i.axis:null===i.axis&&(t.options.resize.axis=e.defaults.actions.resize.axis),w.bool(i.preserveAspectRatio)?t.options.resize.preserveAspectRatio=i.preserveAspectRatio:w.bool(i.square)&&(t.options.resize.square=i.square),t):w.bool(i)?(t.options.resize.enabled=i,t):t.options.resize}(this,i,t)},i.map.resize=_t,i.methodDict.resize="resizable",r.actions.resize=_t.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent,n=i.rect;i._rects={start:V({},n),corrected:V({},n),previous:V({},n),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},e.edges=i.prepared.edges,e.rect=i._rects.corrected,e.deltaRect=i._rects.delta}}(t),Ct(t)},"interactions:action-move":function(t){!function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent,n=i.interactable.options.resize.invert,r="reposition"===n||"negate"===n,o=i.rect,a=i._rects,s=a.start,c=a.corrected,u=a.delta,l=a.previous;if(V(l,c),r){if(V(c,o),"reposition"===n){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var f=c.left;c.left=c.right,c.right=f}}}else c.top=Math.min(o.top,s.bottom),c.bottom=Math.max(o.bottom,s.top),c.left=Math.min(o.left,s.right),c.right=Math.max(o.right,s.left);for(var v in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[v]=c[v]-l[v];e.edges=i.prepared.edges,e.rect=c,e.deltaRect=u}}(t),Ct(t)},"interactions:action-end":function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent;e.edges=i.prepared.edges,e.rect=i._rects.corrected,e.deltaRect=i._rects.delta}},"auto-start:check":function(t){var i=t.interaction,e=t.interactable,n=t.element,r=t.rect,o=t.buttons;if(r){var a=V({},i.coords.cur.page),s=e.options.resize;if(s&&s.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||o&s.mouseButtons)){if(w.object(s.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=Dt(u,s.edges[u],a,i._latestPointer.eventTarget,n,r,s.margin||_t.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(t.action={name:"resize",edges:c})}else{var l="y"!==s.axis&&a.x>r.right-_t.defaultMargin,h="x"!==s.axis&&a.y>r.bottom-_t.defaultMargin;(l||h)&&(t.action={name:"resize",axes:(l?"x":"")+(h?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var i=t.edges,e=t.axis,n=_t.cursors,r=null;if(e)r=n[t.name+e];else if(i){for(var o="",a=0,s=["top","bottom","left","right"];a<s.length;a++){var c=s[a];i[c]&&(o+=c)}r=n[o]}return r},filterEventType:function(t){return 0===t.search("resize")},defaultMargin:null},Ft=_t,Lt={id:"actions",install:function(t){t.usePlugin(Pt),t.usePlugin(Ft),t.usePlugin(O),t.usePlugin(Tt)}},$t=0,Bt=function(t){return At(t)},Xt=function(t){return Rt(t)},Yt=function(t){if(Rt=t.cancelAnimationFrame,!(At=t.requestAnimationFrame))for(var i=["ms","moz","webkit","o"],e=0;e<i.length;e++){var n=i[e];At=t["".concat(n,"RequestAnimationFrame")],Rt=t["".concat(n,"CancelAnimationFrame")]||t["".concat(n,"CancelRequestAnimationFrame")]}At=At&&At.bind(t),Rt=Rt&&Rt.bind(t),At||(At=function(i){var e=Date.now(),n=Math.max(0,16-(e-$t)),r=t.setTimeout((function(){i(e+n)}),n);return $t=e+n,r},Rt=function(t){return clearTimeout(t)})},Ut={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){Ut.isScrolling=!0,Xt(Ut.i),t.autoScroll=Ut,Ut.interaction=t,Ut.prevTime=Ut.now(),Ut.i=Bt(Ut.scroll)},stop:function(){Ut.isScrolling=!1,Ut.interaction&&(Ut.interaction.autoScroll=null),Xt(Ut.i)},scroll:function(){var t=Ut.interaction,i=t.interactable,e=t.element,n=i.options[t.prepared.name].autoScroll,r=Vt(n.container,i,e),o=Ut.now(),a=n.speed*((o-Ut.prevTime)/1e3);if(a>=1){var s={x:Ut.x*a,y:Ut.y*a};if(s.x||s.y){var c=Nt(r);w.window(r)?r.scrollBy(s.x,s.y):r&&(r.scrollLeft+=s.x,r.scrollTop+=s.y);var u=Nt(r),l={x:u.x-c.x,y:u.y-c.y};(l.x||l.y)&&i.fire({type:"autoscroll",target:e,interactable:i,delta:l,interaction:t,container:r})}Ut.prevTime=o}Ut.isScrolling&&(Xt(Ut.i),Ut.i=Bt(Ut.scroll))},check:function(t,i){var e;return null==(e=t.options[i].autoScroll)?void 0:e.enabled},onInteractionMove:function(t){var i=t.interaction,e=t.pointer;if(i.interacting()&&Ut.check(i.interactable,i.prepared.name))if(i.simulation)Ut.x=Ut.y=0;else{var n,r,o,a,s=i.interactable,c=s.options[i.prepared.name].autoScroll,u=Vt(c.container,s,i.element);if(w.window(u))a=e.clientX<Ut.margin,n=e.clientY<Ut.margin,r=e.clientX>u.innerWidth-Ut.margin,o=e.clientY>u.innerHeight-Ut.margin;else{var l=B(u);a=e.clientX<l.left+Ut.margin,n=e.clientY<l.top+Ut.margin,r=e.clientX>l.right-Ut.margin,o=e.clientY>l.bottom-Ut.margin}Ut.x=r?1:a?-1:0,Ut.y=o?1:n?-1:0,Ut.isScrolling||(Ut.margin=c.margin,Ut.speed=c.speed,Ut.start(i))}}};function Vt(t,i,e){return(w.string(t)?N(t,i,e):t)||y(e)}function Nt(t){return w.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var qt={id:"auto-scroll",install:function(t){var i=t.defaults,e=t.actions;t.autoScroll=Ut,Ut.now=function(){return t.now()},e.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=Ut.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,Ut.stop(),Ut.interaction&&(Ut.interaction=null)},"interactions:stop":Ut.stop,"interactions:action-move":function(t){return Ut.onInteractionMove(t)}}},Ht=qt;function Gt(t,i){var e=!1;return function(){return e||(g.console.warn(i),e=!0),t.apply(this,arguments)}}function Kt(t,i){return t.name=i.name,t.axis=i.axis,t.edges=i.edges,t}function Wt(t){return w.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function Jt(t){return w.func(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}var Qt={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(i,e,n,r){var o=function(t,i,e,n,r){var o=t.getRect(n),a={action:null,interactable:t,interaction:e,element:n,rect:o,buttons:i.buttons||{0:1,1:4,3:8,4:16}[i.button]};return r.fire("auto-start:check",a),a.action}(this,e,n,r,t);return this.options.actionChecker?this.options.actionChecker(i,e,o,this,r,n):o},i.prototype.ignoreFrom=Gt((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=Gt((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=Jt,i.prototype.styleCursor=Wt}};function Zt(t,i,e,n,r){return i.testIgnoreAllow(i.options[t.name],e,n)&&i.options[t.name].enabled&&ni(i,e,t,r)?t:null}function ti(t,i,e,n,r,o,a){for(var s=0,c=n.length;s<c;s++){var u=n[s],l=r[s],h=u.getAction(i,e,t,l);if(h){var f=Zt(h,u,l,o,a);if(f)return{action:f,interactable:u,element:l}}}return{action:null,interactable:null,element:null}}function ii(t,i,e,n,r){var o=[],a=[],s=n;function c(t){o.push(t),a.push(s)}for(;w.element(s);){o=[],a=[],r.interactables.forEachMatch(s,c);var u=ti(t,i,e,o,a,n,r);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;s=A(s)}return{action:null,interactable:null,element:null}}function ei(t,i,e){var n=i.action,r=i.interactable,o=i.element;n=n||{name:null},t.interactable=r,t.element=o,Kt(t.prepared,n),t.rect=r&&n.name?r.getRect(o):null,ai(t,e),e.fire("autoStart:prepared",{interaction:t})}function ni(t,i,e,n){var r=t.options,o=r[e.name].max,a=r[e.name].maxPerElement,s=n.autoStart.maxInteractions,c=0,u=0,l=0;if(!(o&&a&&s))return!1;for(var h=0,f=n.interactions.list;h<f.length;h++){var v=f[h],d=v.prepared.name;if(v.interacting()){if(++c>=s)return!1;if(v.interactable===t){if((u+=d===e.name?1:0)>=o)return!1;if(v.element===i&&(l++,d===e.name&&l>=a))return!1}}}return s>0}function ri(t,i){return w.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function oi(t,i,e){var n=e.autoStart.cursorElement;n&&n!==t&&(n.style.cursor=""),t.ownerDocument.documentElement.style.cursor=i,t.style.cursor=i,e.autoStart.cursorElement=i?t:null}function ai(t,i){var e=t.interactable,n=t.element,r=t.prepared;if("mouse"===t.pointerType&&e&&e.options.styleCursor){var o="";if(r.name){var a=e.options[r.name].cursorChecker;o=w.func(a)?a(r,e,n,t._interacting):i.actions.map[r.name].getCursor(r)}oi(t.element,o||"",i)}else i.autoStart.cursorElement&&oi(i.autoStart.cursorElement,"",i)}var si={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,e=t.defaults;t.usePlugin(Qt),e.base.actionChecker=null,e.base.styleCursor=!0,V(e.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(i){return ri(i,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:ni,cursorElement:null}},listeners:{"interactions:down":function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;e.interacting()||ei(e,ii(e,n,r,o,i),i)},"interactions:move":function(t,i){!function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;"mouse"!==e.pointerType||e.pointerIsDown||e.interacting()||ei(e,ii(e,n,r,o,i),i)}(t,i),function(t,i){var e=t.interaction;if(e.pointerIsDown&&!e.interacting()&&e.pointerWasMoved&&e.prepared.name){i.fire("autoStart:before-start",t);var n=e.interactable,r=e.prepared.name;r&&n&&(n.options[r].manualStart||!ni(n,e.element,e.prepared,i)?e.stop():(e.start(e.prepared,n,e.element),ai(e,i)))}}(t,i)},"interactions:stop":function(t,i){var e=t.interaction,n=e.interactable;n&&n.options.styleCursor&&oi(e.element,"",i)}},maxInteractions:ri,withinInteractionLimit:ni,validateAction:Zt},ci=si,ui={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,i){var e=t.interaction,n=t.eventTarget,r=t.dy;if("drag"===e.prepared.name){var o=Math.abs(t.dx),a=Math.abs(r),s=e.interactable.options.drag,c=s.startAxis,u=o>a?"x":o<a?"y":"xy";if(e.prepared.axis="start"===s.lockAxis?u[0]:s.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){e.prepared.name=null;for(var l=n,h=function(t){if(t!==e.interactable){var r=e.interactable.options.drag;if(!r.manualStart&&t.testIgnoreAllow(r,l,n)){var o=t.getAction(e.downPointer,e.downEvent,e,l);if(o&&"drag"===o.name&&function(t,i){if(!i)return!1;var e=i.options.drag.startAxis;return"xy"===t||"xy"===e||e===t}(u,t)&&ci.validateAction(o,t,l,n,i))return t}}};w.element(l);){var f=i.interactables.forEachMatch(l,h);if(f){e.prepared.name="drag",e.interactable=f,e.element=l;break}l=A(l)}}}}}};function li(t){var i=t.prepared&&t.prepared.name;if(!i)return null;var e=t.interactable.options;return e[i].hold||e[i].delay}var hi={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(ci),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var i=t.interaction,e=li(i);e>0&&(i.autoStartHoldTimer=setTimeout((function(){i.start(i.prepared,i.interactable,i.element)}),e))},"interactions:move":function(t){var i=t.interaction;i.autoStartHoldTimer&&i.pointerWasMoved&&!t.duplicate&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var i=t.interaction;li(i)>0&&(i.prepared.name=null)}},getHoldDuration:li},fi=hi,vi={id:"auto-start",install:function(t){t.usePlugin(ci),t.usePlugin(fi),t.usePlugin(ui)}},di=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):w.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function pi(t){var i=t.interaction;i.interactable&&i.interactable.checkAndPreventDefault(t.event)}var gi={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=di,i.prototype.checkAndPreventDefault=function(i){return function(t,i,e){var n=t.options.preventDefault;if("never"!==n)if("always"!==n){if(i.events.supportsPassive&&/^touch(start|move)$/.test(e.type)){var r=y(e.target).document,o=i.getDocOptions(r);if(!o||!o.events||!1!==o.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(e.type)||w.element(e.target)&&R(e.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||e.preventDefault()}else e.preventDefault()}(this,t,i)},t.interactions.docEvents.push({type:"dragstart",listener:function(i){for(var e=0,n=t.interactions.list;e<n.length;e++){var r=n[e];if(r.element&&(r.element===i.target||D(r.element,i.target)))return void r.interactable.checkAndPreventDefault(i)}}})},listeners:["down","move","up","cancel"].reduce((function(t,i){return t["interactions:".concat(i)]=pi,t}),{})};function mi(t,i){if(i.phaselessTypes[t])return!0;for(var e in i.map)if(0===t.indexOf(e)&&t.substr(e.length)in i.phases)return!0;return!1}function yi(t){var i={};for(var e in t){var n=t[e];i[e]=w.plainObject(n)?yi(n):w.array(n)?mt(n):n}return i}var bi=function(){function t(i){n(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=i,this.result=xi(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return o(t,[{key:"start",value:function(t,i){var e,n,r=t.phase,o=this.interaction,a=function(t){var i=t.interactable.options[t.prepared.name],e=i.modifiers;return e&&e.length?e:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(t){var e=i[t];return e&&e.enabled&&{options:e,methods:e._methods}})).filter((function(t){return!!t}))}(o);this.prepareStates(a),this.startEdges=V({},o.edges),this.edges=V({},this.startEdges),this.startOffset=(n=i,(e=o.rect)?{left:n.x-e.left,top:n.y-e.top,right:e.right-n.x,bottom:e.bottom-n.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var s=this.fillArg({phase:r,pageCoords:i,preEnd:!1});return this.result=xi(),this.startAll(s),this.result=this.setAll(s)}},{key:"fillArg",value:function(t){var i=this.interaction;return t.interaction=i,t.interactable=i.interactable,t.element=i.element,t.rect||(t.rect=i.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var i=0,e=this.states;i<e.length;i++){var n=e[i];n.methods.start&&(t.state=n,n.methods.start(t))}}},{key:"setAll",value:function(t){var i=t.phase,e=t.preEnd,n=t.skipModifiers,r=t.rect,o=t.edges;t.coords=V({},t.pageCoords),t.rect=V({},r),t.edges=V({},o);for(var a=n?this.states.slice(n):this.states,s=xi(t.coords,t.rect),c=0;c<a.length;c++){var u,l=a[c],h=l.options,f=V({},t.coords),v=null;null!=(u=l.methods)&&u.set&&this.shouldDo(h,e,i)&&(t.state=l,v=l.methods.set(t),K(t.edges,t.rect,{x:t.coords.x-f.x,y:t.coords.y-f.y})),s.eventProps.push(v)}V(this.edges,t.edges),s.delta.x=t.coords.x-t.pageCoords.x,s.delta.y=t.coords.y-t.pageCoords.y,s.rectDelta.left=t.rect.left-r.left,s.rectDelta.right=t.rect.right-r.right,s.rectDelta.top=t.rect.top-r.top,s.rectDelta.bottom=t.rect.bottom-r.bottom;var d=this.result.coords,p=this.result.rect;return d&&p&&(s.changed=s.rect.left!==p.left||s.rect.right!==p.right||s.rect.top!==p.top||s.rect.bottom!==p.bottom||d.x!==s.coords.x||d.y!==s.coords.y),s}},{key:"applyToInteraction",value:function(t){var i=this.interaction,e=i.coords.cur,n=i.coords.start,r=this.result,o=this.startDelta,a=r.delta;"start"===t.phase&&V(this.startDelta,r.delta);for(var s=0,c=[[n,o],[e,a]];s<c.length;s++){var u=c[s],l=u[0],h=u[1];l.page.x+=h.x,l.page.y+=h.y,l.client.x+=h.x,l.client.y+=h.y}var f=this.result.rectDelta,v=t.rect||i.rect;v.left+=f.left,v.right+=f.right,v.top+=f.top,v.bottom+=f.bottom,v.width=v.right-v.left,v.height=v.bottom-v.top}},{key:"setAndApply",value:function(t){var i=this.interaction,e=t.skipModifiers,n=this.setAll(this.fillArg({preEnd:t.preEnd,phase:t.phase,pageCoords:t.modifiedCoords||i.coords.cur.page}));if(this.result=n,!n.changed&&(!e||e<this.states.length)&&i.interacting())return!1;if(t.modifiedCoords){var r=i.coords.cur.page,o={x:t.modifiedCoords.x-r.x,y:t.modifiedCoords.y-r.y};n.coords.x+=o.x,n.coords.y+=o.y,n.delta.x+=o.x,n.delta.y+=o.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var i=t.interaction,e=t.event,n=this.states;if(n&&n.length){for(var r=!1,o=0;o<n.length;o++){var a=n[o];t.state=a;var s=a.options,c=a.methods,u=c.beforeEnd&&c.beforeEnd(t);if(u)return this.endResult=u,!1;r=r||!r&&this.shouldDo(s,!0,t.phase,!0)}r&&i.move({event:e,preEnd:!0})}}},{key:"stop",value:function(t){var i=t.interaction;if(this.states&&this.states.length){var e=V({states:this.states,interactable:i.interactable,element:i.element,rect:null},t);this.fillArg(e);for(var n=0,r=this.states;n<r.length;n++){var o=r[n];e.state=o,o.methods.stop&&o.methods.stop(e)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var i=0;i<t.length;i++){var e=t[i];this.states.push({options:e.options,methods:e.methods,index:i,name:e.name})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var i=t.interaction,e=i.coords,n=i.rect,r=i.modification;if(r.result){for(var o=r.result,a=o.rectDelta,s=0,c=[[e.start,r.startDelta],[e.cur,o.delta]];s<c.length;s++){var u=c[s],l=u[0],h=u[1];l.page.x-=h.x,l.page.y-=h.y,l.client.x-=h.x,l.client.y-=h.y}n.left-=a.left,n.right-=a.right,n.top-=a.top,n.bottom-=a.bottom}}},{key:"shouldDo",value:function(t,i,e,n){return!(!t||!1===t.enabled||n&&!t.endOnly||t.endOnly&&!i||"start"===e&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map((function(t){return yi(t)})),this.result=xi(V({},t.result.coords),V({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),t}();function xi(t,i){return{rect:i,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function wi(t,i){var e=t.defaults,n={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=function(t){var r=t||{};for(var o in r.enabled=!1!==r.enabled,e)o in r||(r[o]=e[o]);var a={options:r,methods:n,name:i,enable:function(){return r.enabled=!0,a},disable:function(){return r.enabled=!1,a}};return a};return i&&"string"==typeof i&&(r._defaults=e,r._methods=n),r}function ki(t){var i=t.interaction.modification.result;i&&(t.iEvent.modifiers=i.eventProps)}var zi={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new bi(i)},"interactions:before-action-start":function(t){var i=t.interaction,e=t.interaction.modification;e.start(t,i.coords.start.page),i.edges=e.edges,e.applyToInteraction(t)},"interactions:before-action-move":function(t){var i=t.interaction,e=i.modification,n=e.setAndApply(t);return i.edges=e.edges,n},"interactions:before-action-end":function(t){var i=t.interaction,e=i.modification,n=e.beforeEnd(t);return i.edges=e.startEdges,n},"interactions:action-start":ki,"interactions:action-move":ki,"interactions:action-end":ki,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},Mi=zi,Ei={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Oi=function(t){s(e,t);var i=h(e);function e(t,r,o,a,s,c,u){var h;n(this,e),(h=i.call(this,t)).relatedTarget=null,h.screenX=void 0,h.screenY=void 0,h.button=void 0,h.buttons=void 0,h.ctrlKey=void 0,h.shiftKey=void 0,h.altKey=void 0,h.metaKey=void 0,h.page=void 0,h.client=void 0,h.delta=void 0,h.rect=void 0,h.x0=void 0,h.y0=void 0,h.t0=void 0,h.dt=void 0,h.duration=void 0,h.clientX0=void 0,h.clientY0=void 0,h.velocity=void 0,h.speed=void 0,h.swipe=void 0,h.axes=void 0,h.preEnd=void 0;var f=t.interactable,v=(f&&f.options||Ei).deltaSource,d=W(f,s=s||t.element,o),p="start"===a,g="end"===a,m=p?l(h):t.prevEvent,y=p?t.coords.start:g?{page:m.page,client:m.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return h.page=V({},y.page),h.client=V({},y.client),h.rect=V({},t.rect),h.timeStamp=y.timeStamp,g||(h.page.x-=d.x,h.page.y-=d.y,h.client.x-=d.x,h.client.y-=d.y),h.ctrlKey=r.ctrlKey,h.altKey=r.altKey,h.shiftKey=r.shiftKey,h.metaKey=r.metaKey,h.button=r.button,h.buttons=r.buttons,h.target=s,h.currentTarget=s,h.preEnd=c,h.type=u||o+(a||""),h.interactable=f,h.t0=p?t.pointers[t.pointers.length-1].downTime:m.t0,h.x0=t.coords.start.page.x-d.x,h.y0=t.coords.start.page.y-d.y,h.clientX0=t.coords.start.client.x-d.x,h.clientY0=t.coords.start.client.y-d.y,h.delta=p||g?{x:0,y:0}:{x:h[v].x-m[v].x,y:h[v].y-m[v].y},h.dt=t.coords.delta.timeStamp,h.duration=h.timeStamp-h.t0,h.velocity=V({},t.coords.velocity[v]),h.speed=Z(h.velocity.x,h.velocity.y),h.swipe=g||"inertiastart"===a?h.getSwipe():null,h}return o(e,[{key:"getSwipe",value:function(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var i=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;i<0&&(i+=360);var e=112.5<=i&&i<247.5,n=202.5<=i&&i<337.5;return{up:n,down:!n&&22.5<=i&&i<157.5,left:e,right:!e&&(292.5<=i||i<67.5),angle:i,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),e}(pt);Object.defineProperties(Oi.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var Si=o((function t(i,e,r,o,a){n(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=i,this.pointer=e,this.event=r,this.downTime=o,this.downTarget=a})),Ti=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),ji=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Ii=0,Pi=function(){function t(i){var e=this,r=i.pointerType,o=i.scopeFire;n(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Gt((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Ii++,this._scopeFire=o,this.pointerType=r;var a=this;this._proxy={};var s=function(t){Object.defineProperty(e._proxy,t,{get:function(){return a[t]}})};for(var c in Ti)s(c);var u=function(t){Object.defineProperty(e._proxy,t,{value:function(){return a[t].apply(a,arguments)}})};for(var l in ji)u(l);this._scopeFire("interactions:new",{interaction:this})}return o(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,i,e){var n=this.updatePointer(t,i,e,!0);this._scopeFire("interactions:down",{pointer:t,event:i,eventTarget:e,pointerIndex:n,pointerInfo:this.pointers[n],type:"down",interaction:this})}},{key:"start",value:function(t,i,e){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!i.options[t.name].enabled)&&(Kt(this.prepared,t),this.interactable=i,this.element=e,this.rect=i.getRect(e),this.edges=this.prepared.edges?V({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,i,e){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,i,e,!1);var n,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(this.pointerWasMoved=Z(n=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y)>this.pointerMoveTolerance);var a,s,c,u=this.getPointerIndex(t),l={pointer:t,pointerIndex:u,pointerInfo:this.pointers[u],event:i,type:"move",eventTarget:e,dx:n,dy:r,duplicate:o,interaction:this};o||(a=this.coords.velocity,s=this.coords.delta,c=Math.max(s.timeStamp/1e3,.001),a.page.x=s.page.x/c,a.page.y=s.page.y/c,a.client.x=s.client.x/c,a.client.y=s.client.y/c,a.timeStamp=c),this._scopeFire("interactions:move",l),o||this.simulation||(this.interacting()&&(l.type=null,this.move(l)),this.pointerWasMoved&&et(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||nt(this.coords.delta),(t=V({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,i,e,n){var r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,i,e,!1));var o=/cancel$/i.test(i.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:i,eventTarget:e,type:o,curEventTarget:n,interaction:this}),this.simulation||this.end(i),this.removePointer(t,i)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var i;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(i=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===i&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var i=st(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:yt(this.pointers,(function(t){return t.id===i}))}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,i,e,n){var r,o,a,s=st(t),c=this.getPointerIndex(t),u=this.pointers[c];return n=!1!==n&&(n||/(down|start)$/i.test(i.type)),u?u.pointer=t:(u=new Si(s,t,i,null,null),c=this.pointers.length,this.pointers.push(u)),function(t,i,e){var n=i.length>1?ut(i):i[0];at(n,t.page),function(t,i){i=i||{},P.isOperaMobile&&rt(t)?ot("screen",t,i):ot("client",t,i)}(n,t.client),t.timeStamp=e}(this.coords.cur,this.pointers.map((function(t){return t.pointer})),this._now()),(r=this.coords.delta).page.x=(a=this.coords.cur).page.x-(o=this.coords.prev).page.x,r.page.y=a.page.y-o.page.y,r.client.x=a.client.x-o.client.x,r.client.y=a.client.y-o.client.y,r.timeStamp=a.timeStamp-o.timeStamp,n&&(this.pointerIsDown=!0,u.downTime=this.coords.cur.timeStamp,u.downTarget=e,it(this.downPointer,t),this.interacting()||(et(this.coords.start,this.coords.cur),et(this.coords.prev,this.coords.cur),this.downEvent=i,this.pointerWasMoved=!1)),this._updateLatestPointer(t,i,e),this._scopeFire("interactions:update-pointer",{pointer:t,event:i,eventTarget:e,down:n,pointerInfo:u,pointerIndex:c,interaction:this}),c}},{key:"removePointer",value:function(t,i){var e=this.getPointerIndex(t);-1!==e&&(this._scopeFire("interactions:remove-pointer",{pointer:t,event:i,eventTarget:null,pointerIndex:e,pointerInfo:this.pointers[e],interaction:this}),this.pointers.splice(e,1),this.pointerIsDown=!1)}},{key:"_updateLatestPointer",value:function(t,i,e){this._latestPointer.pointer=t,this._latestPointer.event=i,this._latestPointer.eventTarget=e}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,i,e,n){return new Oi(this,t,this.prepared.name,i,this.element,e,n)}},{key:"_fireEvent",value:function(t){var i;null==(i=this.interactable)||i.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var i=t.event,e=t.phase,n=t.preEnd,r=t.type,o=this.rect;if(o&&"move"===e&&(K(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(e),t))return!1;var a=t.iEvent=this._createPreparedEvent(i,e,n,r);return this._scopeFire("interactions:action-".concat(e),t),"start"===e&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(e),t),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Di(t){Ci(t.interaction)}function Ci(t){if(!function(t){return!(!t.offset.pending.x&&!t.offset.pending.y)}(t))return!1;var i=t.offset.pending;return Ri(t.coords.cur,i),Ri(t.coords.delta,i),K(t.edges,t.rect,i),i.x=0,i.y=0,!0}function Ai(t){var i=t.x,e=t.y;this.offset.pending.x+=i,this.offset.pending.y+=e,this.offset.total.x+=i,this.offset.total.y+=e}function Ri(t,i){var e=t.page,n=t.client,r=i.x,o=i.y;e.x+=r,e.y+=o,n.x+=r,n.y+=o}ji.offsetBy="";var _i={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Ai},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(t){t.pointerIsDown&&(Ri(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Di,"interactions:before-action-move":Di,"interactions:before-action-end":function(t){var i=t.interaction;if(Ci(i))return i.move({offset:!0}),i.end(),!1},"interactions:stop":function(t){var i=t.interaction;i.offset.total.x=0,i.offset.total.y=0,i.offset.pending.x=0,i.offset.pending.y=0}}},Fi=_i,Li=function(){function t(i){n(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=i}return o(t,[{key:"start",value:function(t){var i=this.interaction,e=$i(i);if(!e||!e.enabled)return!1;var n=i.coords.velocity.client,r=Z(n.x,n.y),o=this.modification||(this.modification=new bi(i));if(o.copyFrom(i.modification),this.t0=i._now(),this.allowResume=e.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=i.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-i.coords.cur.timeStamp<50&&r>e.minSpeed&&r>e.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return i.modification.result.rect=null,i.offsetBy(this.targetOffset),i._doPhase({interaction:i,event:t,phase:"inertiastart"}),i.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),i.modification.result.rect=null,this.active=!0,i.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,i=this.interaction.coords.velocity.client,e=$i(this.interaction),n=e.resistance,r=-Math.log(e.endSpeed/this.v0)/n;this.targetOffset={x:(i.x-r)/n,y:(i.y-r)/n},this.te=r,this.lambda_v0=n/this.v0,this.one_ve_v0=1-e.endSpeed/this.v0;var o=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(a),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return t.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return t.smoothEndTick()}))}},{key:"onNextFrame",value:function(t){var i=this;this.timeout=Bt((function(){i.active&&t()}))}},{key:"inertiaTick",value:function(){var t,i,e,n=this,r=this.interaction,o=$i(r).resistance,a=(r._now()-this.t0)/1e3;if(a<this.te){var s,c=1-(Math.exp(-o*a)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=this.targetOffset.y,i=this.modifiedOffset.y,s={x:Xi(e=c,0,this.targetOffset.x,this.modifiedOffset.x),y:Xi(e,0,t,i)}):s={x:this.targetOffset.x*c,y:this.targetOffset.y*c};var u={x:s.x-this.currentOffset.x,y:s.y-this.currentOffset.y};this.currentOffset.x+=u.x,this.currentOffset.y+=u.y,r.offsetBy(u),r.move(),this.onNextFrame((function(){return n.inertiaTick()}))}else r.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,i=this.interaction,e=i._now()-this.t0,n=$i(i).smoothEndDuration;if(e<n){var r={x:Yi(e,0,this.targetOffset.x,n),y:Yi(e,0,this.targetOffset.y,n)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,i.offsetBy(o),i.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return t.smoothEndTick()}))}else i.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var i=t.pointer,e=t.event,n=t.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(i,e,n,!0),r._doPhase({interaction:r,event:e,phase:"resume"}),et(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Xt(this.timeout)}}]),t}();function $i(t){var i=t.interactable,e=t.prepared;return i&&i.options&&e.name&&i.options[e.name].inertia}var Bi={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(Fi),t.usePlugin(Mi),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,i.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var i=t.interaction;i.inertia=new Li(i)},"interactions:before-action-end":function(t){var i=t.interaction;return(!i._interacting||i.simulation||!i.inertia.start(t.event))&&null},"interactions:down":function(t){var i=t.interaction,e=i.inertia;if(e.active)for(var n=t.eventTarget;w.element(n);){if(n===i.element){e.resume(t);break}n=A(n)}},"interactions:stop":function(t){var i=t.interaction.inertia;i.active&&i.stop()},"interactions:before-action-resume":function(t){var i=t.interaction.modification;i.stop(t),i.start(t,t.interaction.coords.cur.page),i.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":ki,"interactions:action-inertiastart":ki,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Xi(t,i,e,n){var r=1-t;return r*r*i+2*r*t*e+t*t*n}function Yi(t,i,e,n){return-e*(t/=n)*(t-2)+i}var Ui=Bi;function Vi(t,i){for(var e=0;e<i.length;e++){var n=i[e];if(t.immediatePropagationStopped)break;n(t)}}var Ni=function(){function t(i){n(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=V({},i||{})}return o(t,[{key:"fire",value:function(t){var i,e=this.global;(i=this.types[t.type])&&Vi(t,i),!t.propagationStopped&&e&&(i=e[t.type])&&Vi(t,i)}},{key:"on",value:function(t,i){var e=J(t,i);for(t in e)this.types[t]=gt(this.types[t]||[],e[t])}},{key:"off",value:function(t,i){var e=J(t,i);for(t in e){var n=this.types[t];if(n&&n.length)for(var r=0,o=e[t];r<o.length;r++){var a=n.indexOf(o[r]);-1!==a&&n.splice(a,1)}}}},{key:"getRect",value:function(){return null}}]),t}(),qi=function(){function t(i){n(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,it(this,i)}return o(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function Hi(t){return w.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function Gi(t,i){return t===i||("boolean"==typeof t?!!i.capture===t&&0==!!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Ki={id:"events",install:function(t){var i,e=[],n={},r=[],o={add:a,remove:s,addDelegate:function(t,i,e,o,s){var l=Hi(s);if(!n[e]){n[e]=[];for(var h=0;h<r.length;h++){var f=r[h];a(f,e,c),a(f,e,u,!0)}}var v=n[e],d=bt(v,(function(e){return e.selector===t&&e.context===i}));d||v.push(d={selector:t,context:i,listeners:[]}),d.listeners.push({func:o,options:l})},removeDelegate:function(t,i,e,r,o){var a,l=Hi(o),h=n[e],f=!1;if(h)for(a=h.length-1;a>=0;a--){var v=h[a];if(v.selector===t&&v.context===i){for(var d=v.listeners,p=d.length-1;p>=0;p--){var g=d[p];if(g.func===r&&Gi(g.options,l)){d.splice(p,1),d.length||(h.splice(a,1),s(i,e,c),s(i,e,u,!0)),f=!0;break}}if(f)break}}},delegateListener:c,delegateUseCapture:u,delegatedEvents:n,documents:r,targets:e,supportsOptions:!1,supportsPassive:!1};function a(t,i,n,r){if(t.addEventListener){var a=Hi(r),s=bt(e,(function(i){return i.eventTarget===t}));s||e.push(s={eventTarget:t,events:{}}),s.events[i]||(s.events[i]=[]),bt(s.events[i],(function(t){return t.func===n&&Gi(t.options,a)}))||(t.addEventListener(i,n,o.supportsOptions?a:a.capture),s.events[i].push({func:n,options:a}))}}function s(t,i,n,r){if(t.addEventListener&&t.removeEventListener){var a=yt(e,(function(i){return i.eventTarget===t})),c=e[a];if(c&&c.events)if("all"!==i){var u=!1,l=c.events[i];if(l){if("all"===n){for(var h=l.length-1;h>=0;h--){var f=l[h];s(t,i,f.func,f.options)}return}for(var v=Hi(r),d=0;d<l.length;d++){var p=l[d];if(p.func===n&&Gi(p.options,v)){t.removeEventListener(i,n,o.supportsOptions?v:v.capture),l.splice(d,1),0===l.length&&(delete c.events[i],u=!0);break}}}u&&!Object.keys(c.events).length&&e.splice(a,1)}else for(i in c.events)c.events.hasOwnProperty(i)&&s(t,i,"all")}}function c(t,i){for(var e=Hi(i),r=new qi(t),o=n[t.type],a=dt(t)[0],s=a;w.element(s);){for(var c=0;c<o.length;c++){var u=o[c],l=u.context;if(R(s,u.selector)&&D(l,a)&&D(l,s)){var h=u.listeners;r.currentTarget=s;for(var f=0;f<h.length;f++){var v=h[f];Gi(v.options,e)&&v.func(r)}}}s=A(s)}}function u(t){return c(t,!0)}return null==(i=t.document)||i.createElement("div").addEventListener("test",null,{get capture(){return o.supportsOptions=!0},get passive(){return o.supportsPassive=!0}}),t.events=o,o}},Wi={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,e=Wi.methodOrder;i<e.length;i++){var n=Wi[e[i]](t);if(n)return n}return null},simulationResume:function(t){var i=t.pointerType,e=t.eventTarget,n=t.scope;if(!/down|start/i.test(t.eventType))return null;for(var r=0,o=n.interactions.list;r<o.length;r++){var a=o[r],s=e;if(a.simulation&&a.simulation.allowResume&&a.pointerType===i)for(;s;){if(s===a.element)return a;s=A(s)}}return null},mouseOrPen:function(t){var i,e=t.pointerId,n=t.pointerType,r=t.eventType,o=t.scope;if("mouse"!==n&&"pen"!==n)return null;for(var a=0,s=o.interactions.list;a<s.length;a++){var c=s[a];if(c.pointerType===n){if(c.simulation&&!Ji(c,e))continue;if(c.interacting())return c;i||(i=c)}}if(i)return i;for(var u=0,l=o.interactions.list;u<l.length;u++){var h=l[u];if(!(h.pointerType!==n||/down/i.test(r)&&h.simulation))return h}return null},hasPointer:function(t){for(var i=t.pointerId,e=0,n=t.scope.interactions.list;e<n.length;e++){var r=n[e];if(Ji(r,i))return r}return null},idle:function(t){for(var i=t.pointerType,e=0,n=t.scope.interactions.list;e<n.length;e++){var r=n[e];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&i===r.pointerType)return r}return null}};function Ji(t,i){return t.pointers.some((function(t){return t.id===i}))}var Qi=Wi,Zi=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function te(t,i){return function(e){var n=i.interactions.list,r=vt(e),o=dt(e),a=o[0],s=o[1],c=[];if(/^touch/.test(e.type)){i.prevTouchTime=i.now();for(var u=0,l=e.changedTouches;u<l.length;u++){var h=l[u],f={pointer:h,pointerId:st(h),pointerType:r,eventType:e.type,eventTarget:a,curEventTarget:s,scope:i},v=ie(f);c.push([f.pointer,f.eventTarget,f.curEventTarget,v])}}else{var d=!1;if(!P.supportsPointerEvent&&/mouse/.test(e.type)){for(var p=0;p<n.length&&!d;p++)d="mouse"!==n[p].pointerType&&n[p].pointerIsDown;d=d||i.now()-i.prevTouchTime<500||0===e.timeStamp}if(!d){var g={pointer:e,pointerId:st(e),pointerType:r,eventType:e.type,curEventTarget:s,eventTarget:a,scope:i},m=ie(g);c.push([g.pointer,g.eventTarget,g.curEventTarget,m])}}for(var y=0;y<c.length;y++){var b=c[y];b[3][t](b[0],e,b[1],b[2])}}}function ie(t){var i=t.pointerType,e=t.scope,n={interaction:Qi.search(t),searchDetails:t};return e.fire("interactions:find",n),n.interaction||e.interactions.new({pointerType:i})}function ee(t,i){var e=t.doc,n=t.scope,r=t.options,o=n.interactions.docEvents,a=n.events,s=a[i];for(var c in n.browser.isIOS&&!r.events&&(r.events={passive:!1}),a.delegatedEvents)s(e,c,a.delegateListener),s(e,c,a.delegateUseCapture,!0);for(var u=r&&r.events,l=0;l<o.length;l++){var h=o[l];s(e,h.type,h.listener,u)}}var ne={id:"core/interactions",install:function(t){for(var i={},e=0;e<Zi.length;e++){var r=Zi[e];i[r]=te(r,t)}var a,c=P.pEventTypes;function u(){for(var i=0,e=t.interactions.list;i<e.length;i++){var n=e[i];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var r=function(){var i=a[o];t.documents.some((function(t){return D(t.doc,i.downTarget)}))||n.removePointer(i.pointer,i.event)},o=0,a=n.pointers;o<a.length;o++)r()}}(a=j.PointerEvent?[{type:c.down,listener:u},{type:c.down,listener:i.pointerDown},{type:c.move,listener:i.pointerMove},{type:c.up,listener:i.pointerUp},{type:c.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:u},{type:"touchstart",listener:i.pointerDown},{type:"touchmove",listener:i.pointerMove},{type:"touchend",listener:i.pointerUp},{type:"touchcancel",listener:i.pointerUp}]).push({type:"blur",listener:function(i){for(var e=0,n=t.interactions.list;e<n.length;e++)n[e].documentBlur(i)}}),t.prevTouchTime=0,t.Interaction=function(i){s(r,i);var e=h(r);function r(){return n(this,r),e.apply(this,arguments)}return o(r,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(i){t.interactions.pointerMoveTolerance=i}},{key:"_now",value:function(){return t.now()}}]),r}(Pi),t.interactions={list:[],new:function(i){i.scopeFire=function(i,e){return t.fire(i,e)};var e=new t.Interaction(i);return t.interactions.list.push(e),e},listeners:i,docEvents:a,pointerMoveTolerance:1},t.usePlugin(gi)},listeners:{"scope:add-document":function(t){return ee(t,"add")},"scope:remove-document":function(t){return ee(t,"remove")},"interactable:unset":function(t,i){for(var e=t.interactable,n=i.interactions.list.length-1;n>=0;n--){var r=i.interactions.list[n];r.interactable===e&&(r.stop(),i.fire("interactions:destroy",{interaction:r}),r.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(n,1))}}},onDocSignal:ee,doOnInteractions:te,methodNames:Zi},re=ne,oe=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(oe||{}),ae=function(){function t(i,e,r,o){n(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Ni,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=e.actions,this.target=i,this._context=e.context||r,this._win=y(U(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=o,this.set(e)}return o(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,i){return w.func(i.onstart)&&this.on("".concat(t,"start"),i.onstart),w.func(i.onmove)&&this.on("".concat(t,"move"),i.onmove),w.func(i.onend)&&this.on("".concat(t,"end"),i.onend),w.func(i.oninertiastart)&&this.on("".concat(t,"inertiastart"),i.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,i,e){var n,r=this,o=null==(n=this._actions.map[t])?void 0:n.filterEventType,a=function(t){return(null==o||o(t))&&mi(t,r._actions)};(w.array(i)||w.object(i))&&this._onOff(oe.Off,t,i,void 0,a),(w.array(e)||w.object(e))&&this._onOff(oe.On,t,e,void 0,a)}},{key:"setPerAction",value:function(t,i){var e=this._defaults;for(var n in i){var r=n,o=this.options[t],a=i[r];"listeners"===r&&this.updatePerActionListeners(t,o.listeners,a),w.array(a)?o[r]=mt(a):w.plainObject(a)?(o[r]=V(o[r]||{},yi(a)),w.object(e.perAction[r])&&"enabled"in e.perAction[r]&&(o[r].enabled=!1!==a.enabled)):w.bool(a)&&w.object(e.perAction[r])?o[r].enabled=a:o[r]=a}}},{key:"getRect",value:function(t){return t=t||(w.element(this.target)?this.target:null),w.string(this.target)&&(t=t||this._context.querySelector(this.target)),X(t)}},{key:"rectChecker",value:function(t){var i=this;return w.func(t)?(this.getRect=function(e){var n=V({},t.apply(i,e));return"width"in n||(n.width=n.right-n.left,n.height=n.bottom-n.top),n},this):null===t?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,i){if(U(i)||w.object(i)){for(var e in this.options[t]=i,this._actions.map)this.options[e][t]=i;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return w.string(t)?Array.from(this._context.querySelectorAll(t)):w.func(t)&&t.getAllElements?t.getAllElements():w.element(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||D(this._context,t)}},{key:"testIgnoreAllow",value:function(t,i,e){return!this.testIgnore(t.ignoreFrom,i,e)&&this.testAllow(t.allowFrom,i,e)}},{key:"testAllow",value:function(t,i,e){return!t||!!w.element(e)&&(w.string(t)?L(e,t,i):!!w.element(t)&&D(t,e))}},{key:"testIgnore",value:function(t,i,e){return!(!t||!w.element(e))&&(w.string(t)?L(e,t,i):!!w.element(t)&&D(t,e))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,i,e,n,r){w.object(i)&&!w.array(i)&&(n=e,e=null);var o=J(i,e,r);for(var a in o){"wheel"===a&&(a=P.wheelEvent);for(var s=0,c=o[a];s<c.length;s++){var u=c[s];mi(a,this._actions)?this.events[t===oe.On?"on":"off"](a,u):w.string(this.target)?this._scopeEvents[t===oe.On?"addDelegate":"removeDelegate"](this.target,this._context,a,u,n):this._scopeEvents[t===oe.On?"add":"remove"](this.target,a,u,n)}}return this}},{key:"on",value:function(t,i,e){return this._onOff(oe.On,t,i,e)}},{key:"off",value:function(t,i,e){return this._onOff(oe.Off,t,i,e)}},{key:"set",value:function(t){var i=this._defaults;for(var e in w.object(t)||(t={}),this.options=yi(i.base),this._actions.methodDict){var n=e,r=this._actions.methodDict[n];this.options[n]={},this.setPerAction(n,V(V({},i.perAction),i.actions[n])),this[r](t[n])}for(var o in t)"getRect"!==o?w.func(this[o])&&this[o](t[o]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(w.string(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var i=this._scopeEvents.delegatedEvents[t],e=i.length-1;e>=0;e--){var n=i[e],r=n.listeners;n.selector===this.target&&n.context===this._context&&i.splice(e,1);for(var o=r.length-1;o>=0;o--)this._scopeEvents.removeDelegate(this.target,this._context,t,r[o][0],r[o][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),se=function(){function t(i){var e=this;n(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(t){var i=t.interactable,n=i.target,r=w.string(n)?e.selectorMap[n]:n[e.scope.id],o=yt(r,(function(t){return t===i}));r.splice(o,1)}})}return o(t,[{key:"new",value:function(t,i){i=V(i||{},{actions:this.scope.actions});var e=new this.scope.Interactable(t,i,this.scope.document,this.scope.events);return this.scope.addDocument(e._doc),this.list.push(e),w.string(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(e)):(e.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(e)),this.scope.fire("interactable:new",{target:t,options:i,interactable:e,win:this.scope._win}),e}},{key:"getExisting",value:function(t,i){var e=i&&i.context||this.scope.document,n=w.string(t),r=n?this.selectorMap[t]:t[this.scope.id];if(r)return bt(r,(function(i){return i._context===e&&(n||i.inContext(t))}))}},{key:"forEachMatch",value:function(t,i){for(var e=0,n=this.list;e<n.length;e++){var r=n[e],o=void 0;if((w.string(r.target)?w.element(t)&&R(t,r.target):t===r.target)&&r.inContext(t)&&(o=i(r)),void 0!==o)return o}}}]),t}(),ce=function(){function t(){var i=this;n(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=P,this.defaults=yi(Ei),this.Eventable=Ni,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){var i=function i(e,n){var r=t.interactables.getExisting(e,n);return r||((r=t.interactables.new(e,n)).events.global=i.globalEvents),r};return i.getPointerAverage=ut,i.getTouchBBox=lt,i.getTouchDistance=ht,i.getTouchAngle=ft,i.getElementRect=X,i.getElementClientRect=B,i.matchesSelector=R,i.closest=C,i.globalEvents={},i.version="1.10.27",i.scope=t,i.use=function(t,i){return this.scope.usePlugin(t,i),this},i.isSet=function(t,i){return!!this.scope.interactables.get(t,i&&i.context)},i.on=Gt((function(t,i,e){if(w.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),w.array(t)){for(var n=0,r=t;n<r.length;n++)this.on(r[n],i,e);return this}if(w.object(t)){for(var o in t)this.on(o,t[o],i);return this}return mi(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(i):this.globalEvents[t]=[i]:this.scope.events.add(this.scope.document,t,i,{options:e}),this}),"The interact.on() method is being deprecated"),i.off=Gt((function(t,i,e){if(w.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),w.array(t)){for(var n=0,r=t;n<r.length;n++)this.off(r[n],i,e);return this}if(w.object(t)){for(var o in t)this.off(o,t[o],i);return this}var a;return mi(t,this.scope.actions)?t in this.globalEvents&&-1!==(a=this.globalEvents[t].indexOf(i))&&this.globalEvents[t].splice(a,1):this.scope.events.remove(this.scope.document,t,i,e),this}),"The interact.off() method is being deprecated"),i.debug=function(){return this.scope},i.supportsTouch=function(){return P.supportsTouch},i.supportsPointerEvent=function(){return P.supportsPointerEvent},i.stop=function(){for(var t=0,i=this.scope.interactions.list;t<i.length;t++)i[t].stop();return this},i.pointerMoveTolerance=function(t){return w.number(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},i.addDocument=function(t,i){this.scope.addDocument(t,i)},i.removeDocument=function(t){this.scope.removeDocument(t)},i}(this),this.InteractEvent=Oi,this.Interactable=void 0,this.interactables=new se(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(t){return i.removeDocument(t.target)};var e=this;this.Interactable=function(t){s(r,t);var i=h(r);function r(){return n(this,r),i.apply(this,arguments)}return o(r,[{key:"_defaults",get:function(){return e.defaults}},{key:"set",value:function(t){return f(c(r.prototype),"set",this).call(this,t),e.fire("interactable:set",{options:t,interactable:this}),this}},{key:"unset",value:function(){f(c(r.prototype),"unset",this).call(this);var t=e.interactables.list.indexOf(this);t<0||(e.interactables.list.splice(t,1),e.fire("interactable:unset",{interactable:this}))}}]),r}(ae)}return o(t,[{key:"addListeners",value:function(t,i){this.listenerMaps.push({id:i,map:t})}},{key:"fire",value:function(t,i){for(var e=0,n=this.listenerMaps;e<n.length;e++){var r=n[e].map[t];if(r&&!1===r(i,this,t))return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(t,i){return t.isInitialized=!0,w.window(i)&&m(i),j.init(i),P.init(i),Yt(i),t.window=i,t.document=i.document,t.usePlugin(re),t.usePlugin(Ki),t}(this,t)}},{key:"pluginIsInstalled",value:function(t){var i=t.id;return i?!!this._plugins.map[i]:-1!==this._plugins.list.indexOf(t)}},{key:"usePlugin",value:function(t,i){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,i),t.listeners&&t.before){for(var e=0,n=this.listenerMaps.length,r=t.before.reduce((function(t,i){return t[i]=!0,t[ue(i)]=!0,t}),{});e<n;e++){var o=this.listenerMaps[e].id;if(o&&(r[o]||r[ue(o)]))break}this.listenerMaps.splice(e,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,i){if(-1!==this.getDocIndex(t))return!1;var e=y(t);i=i?V({},i):{},this.documents.push({doc:t,options:i}),this.events.documents.push(t),t!==this.document&&this.events.add(e,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:e,scope:this,options:i})}},{key:"removeDocument",value:function(t){var i=this.getDocIndex(t),e=y(t),n=this.documents[i].options;this.events.remove(e,"unload",this.onWindowUnload),this.documents.splice(i,1),this.events.documents.splice(i,1),this.fire("scope:remove-document",{doc:t,window:e,scope:this,options:n})}},{key:"getDocIndex",value:function(t){for(var i=0;i<this.documents.length;i++)if(this.documents[i].doc===t)return i;return-1}},{key:"getDocOptions",value:function(t){var i=this.getDocIndex(t);return-1===i?null:this.documents[i].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function ue(t){return t&&t.replace(/\/.*$/,"")}var le=new ce,he=le.interactStatic,fe="undefined"!=typeof globalThis?globalThis:window;le.init(fe);var ve=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(i){return i[0]in t||i[1]in t})),e=function(e,n){for(var r=t.limits,o=void 0===r?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:r,a=t.offset,s=void 0===a?{x:0,y:0}:a,c={range:t.range,grid:t,x:null,y:null},u=0;u<i.length;u++){var l=i[u],h=l[0],f=l[1],v=Math.round((e-s.x)/t[h]),d=Math.round((n-s.y)/t[f]);c[h]=Math.max(o.left,Math.min(o.right,v*t[h]+s.x)),c[f]=Math.max(o.top,Math.min(o.bottom,d*t[f]+s.y))}return c};return e.grid=t,e.coordFields=i,e}}),de={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=V(i.snappers||{},ve),i.createSnapGrid=i.snappers.grid}},pe=de,ge={start:function(t){var e=t.state,n=t.rect,r=t.edges,o=e.options,a=o.ratio,s=o.enabled,c=e.options,u=c.equalDelta,l=c.modifiers;"preserve"===a&&(a=n.width/n.height),e.startCoords=V({},t.pageCoords),e.startRect=V({},n),e.ratio=a,e.equalDelta=u;var h=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta){var f=(h.left?1:-1)*(h.top?1:-1);e.edgeSign={x:f,y:f}}else e.edgeSign={x:h.left?-1:1,y:h.top?-1:1};if(!1!==s&&V(r,h),null!=l&&l.length){var v=new bi(t.interaction);v.copyFrom(t.interaction.modification),v.prepareStates(l),e.subModification=v,v.startAll(i({},t))}},set:function(t){var e=t.state,n=t.rect,r=t.coords,o=e.linkedEdges,a=V({},r),s=e.equalDelta?me:ye;if(V(t.edges,o),s(e,e.xIsPrimaryAxis,r,n),!e.subModification)return null;var c=V({},n);K(o,c,{x:r.x-a.x,y:r.y-a.y});var u=e.subModification.setAll(i(i({},t),{},{rect:c,edges:o,pageCoords:r,prevCoords:r,prevRect:c})),l=u.delta;return u.changed&&(s(e,Math.abs(l.x)>Math.abs(l.y),u.coords,u.rect),V(r,u.coords)),u.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function me(t,i,e){var n=t.startCoords,r=t.edgeSign;i?e.y=n.y+(e.x-n.x)*r.y:e.x=n.x+(e.y-n.y)*r.x}function ye(t,i,e,n){var r=t.startRect,o=t.startCoords,a=t.ratio,s=t.edgeSign;i?e.y=o.y+(n.width/a-r.height)*s.y:e.x=o.x+(n.height*a-r.width)*s.x}var be=wi(ge,"aspectRatio"),xe=function(){};xe._defaults={};var we=xe;function ke(t,i,e){return w.func(t)?q(t,i.interactable,i.element,[e.x,e.y,i]):q(t,i.interactable,i.element)}var ze={start:function(t){var i=t.rect,e=t.startOffset,n=t.state,r=t.interaction,o=t.pageCoords,a=n.options,s=a.elementRect,c=V({left:0,top:0,right:0,bottom:0},a.offset||{});if(i&&s){var u=ke(a.restriction,r,o);if(u){var l=u.right-u.left-i.width,h=u.bottom-u.top-i.height;l<0&&(c.left+=l,c.right+=l),h<0&&(c.top+=h,c.bottom+=h)}c.left+=e.left-i.width*s.left,c.top+=e.top-i.height*s.top,c.right+=e.right-i.width*(1-s.right),c.bottom+=e.bottom-i.height*(1-s.bottom)}n.offset=c},set:function(t){var i=t.coords,e=t.state,n=e.offset,r=ke(e.options.restriction,t.interaction,i);if(r){var o=function(t){return!t||"left"in t&&"top"in t||((t=V({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(r);i.x=Math.max(Math.min(o.right-n.right,i.x),o.left+n.left),i.y=Math.max(Math.min(o.bottom-n.bottom,i.y),o.top+n.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Me=wi(ze,"restrict"),Ee={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Oe={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Se(t,i){for(var e=0,n=["top","left","bottom","right"];e<n.length;e++){var r=n[e];r in t||(t[r]=i[r])}return t}var Te={noInner:Ee,noOuter:Oe,start:function(t){var i,e=t.interaction,n=t.startOffset,r=t.state,o=r.options;o&&(i=H(ke(o.offset,e,e.coords.start.page))),r.offset={top:(i=i||{x:0,y:0}).y+n.top,left:i.x+n.left,bottom:i.y-n.bottom,right:i.x-n.right}},set:function(t){var i=t.coords,e=t.edges,n=t.interaction,r=t.state,o=r.offset,a=r.options;if(e){var s=V({},i),c=ke(a.inner,n,s)||{},u=ke(a.outer,n,s)||{};Se(c,Ee),Se(u,Oe),e.top?i.y=Math.min(Math.max(u.top+o.top,s.y),c.top+o.top):e.bottom&&(i.y=Math.max(Math.min(u.bottom+o.bottom,s.y),c.bottom+o.bottom)),e.left?i.x=Math.min(Math.max(u.left+o.left,s.x),c.left+o.left):e.right&&(i.x=Math.max(Math.min(u.right+o.right,s.x),c.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},je=wi(Te,"restrictEdges"),Ie=V({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},ze.defaults),Pe=wi({start:ze.start,set:ze.set,defaults:Ie},"restrictRect"),De={width:-1/0,height:-1/0},Ce={width:1/0,height:1/0},Ae=wi({start:function(t){return Te.start(t)},set:function(t){var i=t.interaction,e=t.state,n=t.rect,r=t.edges,o=e.options;if(r){var a=G(ke(o.min,i,t.coords))||De,s=G(ke(o.max,i,t.coords))||Ce;e.options={endOnly:o.endOnly,inner:V({},Te.noInner),outer:V({},Te.noOuter)},r.top?(e.options.inner.top=n.bottom-a.height,e.options.outer.top=n.bottom-s.height):r.bottom&&(e.options.inner.bottom=n.top+a.height,e.options.outer.bottom=n.top+s.height),r.left?(e.options.inner.left=n.right-a.width,e.options.outer.left=n.right-s.width):r.right&&(e.options.inner.right=n.left+a.width,e.options.outer.right=n.left+s.width),Te.set(t),e.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Re={start:function(t){var i,e=t.interaction,n=t.interactable,r=t.element,o=t.rect,a=t.state,s=t.startOffset,c=a.options,u=c.offsetWithOrigin?function(t){var i=t.interaction.element;return H(q(t.state.options.origin,null,null,[i]))||W(t.interactable,i,t.interaction.prepared.name)}(t):{x:0,y:0};if("startCoords"===c.offset)i={x:e.coords.start.page.x,y:e.coords.start.page.y};else{var l=q(c.offset,n,r,[e]);(i=H(l)||{x:0,y:0}).x+=u.x,i.y+=u.y}var h=c.relativePoints;a.offsets=o&&h&&h.length?h.map((function(t,e){return{index:e,relativePoint:t,x:s.left-o.width*t.x+i.x,y:s.top-o.height*t.y+i.y}})):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(t){var i=t.interaction,e=t.coords,n=t.state,r=n.options,o=n.offsets,a=W(i.interactable,i.element,i.prepared.name),s=V({},e),c=[];r.offsetWithOrigin||(s.x-=a.x,s.y-=a.y);for(var u=0,l=o;u<l.length;u++)for(var h=l[u],f=s.x-h.x,v=s.y-h.y,d=0,p=r.targets.length;d<p;d++){var g,m=r.targets[d];(g=w.func(m)?m(f,v,i._proxy,h,d):m)&&c.push({x:(w.number(g.x)?g.x:f)+h.x,y:(w.number(g.y)?g.y:v)+h.y,range:w.number(g.range)?g.range:r.range,source:m,index:d,offset:h})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<c.length;b++){var x=c[b],k=x.range,z=x.x-s.x,M=x.y-s.y,E=Z(z,M),O=E<=k;k===1/0&&y.inRange&&y.range!==1/0&&(O=!1),y.target&&!(O?y.inRange&&k!==1/0?E/k<y.distance/y.range:k===1/0&&y.range!==1/0||E<y.distance:!y.inRange&&E<y.distance)||(y.target=x,y.distance=E,y.range=k,y.inRange=O,y.delta.x=z,y.delta.y=M)}return y.inRange&&(e.x=y.target.x,e.y=y.target.y),n.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},_e=wi(Re,"snap"),Fe={start:function(t){var i=t.state,e=t.edges,n=i.options;if(!e)return null;t.state={options:{targets:null,relativePoints:[{x:e.left?0:1,y:e.top?0:1}],offset:n.offset||"self",origin:{x:0,y:0},range:n.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],Re.start(t),i.offsets=t.state.offsets,t.state=i},set:function(t){var i=t.interaction,e=t.state,n=t.coords,r=e.options,o=e.offsets,a={x:n.x-o[0].x,y:n.y-o[0].y};e.options=V({},r),e.options.targets=[];for(var s=0,c=r.targets||[];s<c.length;s++){var u=c[s],l=void 0;if(l=w.func(u)?u(a.x,a.y,i):u){for(var h=0,f=e.targetFields;h<f.length;h++){var v=f[h],d=v[0],p=v[1];if(d in l||p in l){l.x=l[d],l.y=l[p];break}}e.options.targets.push(l)}}var g=Re.set(t);return e.options=r,g},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Le=wi(Fe,"snapSize"),$e={aspectRatio:be,restrictEdges:je,restrict:Me,restrictRect:Pe,restrictSize:Ae,snapEdges:wi({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],Fe.start(t)):null},set:Fe.set,defaults:V(yi(Fe.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:_e,snapSize:Le,spring:we,avoid:we,transform:we,rubberband:we},Be={id:"modifiers",install:function(t){var i=t.interactStatic;for(var e in t.usePlugin(Mi),t.usePlugin(pe),i.modifiers=$e,$e){var n=$e[e],r=n._defaults;r._methods=n._methods,t.defaults.perAction[e]=r}}},Xe=Be,Ye=function(t){s(e,t);var i=h(e);function e(t,r,o,a,s,c){var u;if(n(this,e),it(l(u=i.call(this,s)),o),o!==r&&it(l(u),r),u.timeStamp=c,u.originalEvent=o,u.type=t,u.pointerId=st(r),u.pointerType=vt(r),u.target=a,u.currentTarget=null,"tap"===t){var h=s.getPointerIndex(r);u.dt=u.timeStamp-s.pointers[h].downTime,u.double=!!s.prevTap&&"doubletap"!==s.prevTap.type&&s.prevTap.target===u.target&&u.timeStamp-s.tapTime<500}else"doubletap"===t&&(u.dt=r.timeStamp-s.tapTime,u.double=!0);return u}return o(e,[{key:"_subtractOrigin",value:function(t){var i=t.x,e=t.y;return this.pageX-=i,this.pageY-=e,this.clientX-=i,this.clientY-=e,this}},{key:"_addOrigin",value:function(t){var i=t.x,e=t.y;return this.pageX+=i,this.pageY+=e,this.clientX+=i,this.clientY+=e,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),e}(pt),Ue={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Ue,t.defaults.actions.pointerEvents=Ue.defaults,V(t.actions.phaselessTypes,Ue.types)},listeners:{"interactions:new":function(t){var i=t.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(t){var i=t.pointerInfo;!t.down&&i.hold||(i.hold={duration:1/0,timeout:null})},"interactions:move":function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;t.duplicate||e.pointerIsDown&&!e.pointerWasMoved||(e.pointerIsDown&&qe(t),Ve({interaction:e,pointer:n,event:r,eventTarget:o,type:"move"},i))},"interactions:down":function(t,i){!function(t,i){for(var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=e.pointers[t.pointerIndex].hold,s=Y(o),c={interaction:e,pointer:n,event:r,eventTarget:o,type:"hold",targets:[],path:s,node:null},u=0;u<s.length;u++)c.node=s[u],i.fire("pointerEvents:collect-targets",c);if(c.targets.length){for(var l=1/0,h=0,f=c.targets;h<f.length;h++){var v=f[h].eventable.options.holdDuration;v<l&&(l=v)}a.duration=l,a.timeout=setTimeout((function(){Ve({interaction:e,eventTarget:o,pointer:n,event:r,type:"hold"},i)}),l)}}(t,i),Ve(t,i)},"interactions:up":function(t,i){qe(t),Ve(t,i),function(t,i){var e=t.interaction;e.pointerWasMoved||Ve({interaction:e,eventTarget:t.eventTarget,pointer:t.pointer,event:t.event,type:"tap"},i)}(t,i)},"interactions:cancel":function(t,i){qe(t),Ve(t,i)}},PointerEvent:Ye,fire:Ve,collectEventTargets:Ne,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Ve(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=t.type,s=t.targets,c=void 0===s?Ne(t,i):s,u=new Ye(a,n,r,o,e,i.now());i.fire("pointerEvents:new",{pointerEvent:u});for(var l={interaction:e,pointer:n,event:r,eventTarget:o,targets:c,type:a,pointerEvent:u},h=0;h<c.length;h++){var f=c[h];for(var v in f.props||{})u[v]=f.props[v];var d=W(f.eventable,f.node);if(u._subtractOrigin(d),u.eventable=f.eventable,u.currentTarget=f.node,f.eventable.fire(u),u._addOrigin(d),u.immediatePropagationStopped||u.propagationStopped&&h+1<c.length&&c[h+1].node!==u.currentTarget)break}if(i.fire("pointerEvents:fired",l),"tap"===a){var p=u.double?Ve({interaction:e,pointer:n,event:r,eventTarget:o,type:"doubletap"},i):u;e.prevTap=p,e.tapTime=p.timeStamp}return u}function Ne(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=t.type,s=e.getPointerIndex(n),c=e.pointers[s];if("tap"===a&&(e.pointerWasMoved||!c||c.downTarget!==o))return[];for(var u=Y(o),l={interaction:e,pointer:n,event:r,eventTarget:o,type:a,path:u,targets:[],node:null},h=0;h<u.length;h++)l.node=u[h],i.fire("pointerEvents:collect-targets",l);return"hold"===a&&(l.targets=l.targets.filter((function(t){var i,n;return t.eventable.options.holdDuration===(null==(i=e.pointers[s])||null==(n=i.hold)?void 0:n.duration)}))),l.targets}function qe(t){var i=t.interaction.pointers[t.pointerIndex].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var He=Object.freeze({__proto__:null,default:Ue});function Ge(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Ke={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Ue);var i=t.pointerEvents;i.defaults.holdRepeatInterval=0,i.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(t,i){return t["pointerEvents:".concat(i)]=Ge,t}),{"pointerEvents:new":function(t){var i=t.pointerEvent;"hold"===i.type&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(t,i){var e=t.interaction,n=t.pointerEvent,r=t.eventTarget,o=t.targets;if("hold"===n.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(e.holdIntervalHandle=setTimeout((function(){i.pointerEvents.fire({interaction:e,eventTarget:r,type:"hold",pointer:n,event:n},i)}),a))}}})},We=Ke,Je={id:"pointer-events/interactableTargets",install:function(t){var i=t.Interactable;i.prototype.pointerEvents=function(t){return V(this.events.options,t),this};var e=i.prototype._backCompatOption;i.prototype._backCompatOption=function(t,i){var n=e.call(this,t,i);return n===this&&(this.events.options[t]=i),n}},listeners:{"pointerEvents:collect-targets":function(t,i){var e=t.targets,n=t.node,r=t.type,o=t.eventTarget;i.interactables.forEachMatch(n,(function(t){var i=t.events;i.types[r]&&i.types[r].length&&t.testIgnoreAllow(i.options,n,o)&&e.push({node:n,eventable:i,props:{interactable:t}})}))},"interactable:new":function(t){var i=t.interactable;i.events.getRect=function(t){return i.getRect(t)}},"interactable:set":function(t,i){var e=t.interactable,n=t.options;V(e.events.options,i.pointerEvents.defaults),V(e.events.options,n.pointerEvents||{})}}},Qe=Je,Ze={id:"pointer-events",install:function(t){t.usePlugin(He),t.usePlugin(We),t.usePlugin(Qe)}},tn=Ze,en={id:"reflow",install:function(t){var i=t.Interactable;t.actions.phases.reflow=!0,i.prototype.reflow=function(i){return function(t,i,e){for(var n=t.getAllElements(),r=e.window.Promise,o=r?[]:null,a=function(){var a=n[s],c=t.getRect(a);if(!c)return 1;var u,l=bt(e.interactions.list,(function(e){return e.interacting()&&e.interactable===t&&e.element===a&&e.prepared.name===i.name}));if(l)l.move(),o&&(u=l._reflowPromise||new r((function(t){l._reflowResolve=t})));else{var h=G(c),f=function(t){return{coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:h.x,y:h.y},client:{x:h.x,y:h.y},timeStamp:e.now()});u=function(t,i,e,n,r){var o=t.interactions.new({pointerType:"reflow"}),a={interaction:o,event:r,pointer:r,eventTarget:e,phase:"reflow"};o.interactable=i,o.element=e,o.prevEvent=r,o.updatePointer(r,r,e,!0),nt(o.coords.delta),Kt(o.prepared,n),o._doPhase(a);var s=t.window.Promise,c=s?new s((function(t){o._reflowResolve=t})):void 0;return o._reflowPromise=c,o.start(n,i,e),o._interacting?(o.move(a),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),c}(e,t,a,i,f)}o&&o.push(u)},s=0;s<n.length&&!a();s++);return o&&r.all(o).then((function(){return t}))}(this,i,t)}},listeners:{"interactions:stop":function(t,i){var e=t.interaction;"reflow"===e.pointerType&&(e._reflowResolve&&e._reflowResolve(),function(t,i){t.splice(t.indexOf(i),1)}(i.interactions.list,e))}}},nn=en;if(he.use(gi),he.use(Fi),he.use(tn),he.use(Ui),he.use(Xe),he.use(vi),he.use(Lt),he.use(Ht),he.use(nn),he.default=he,"object"===e(E)&&E)try{E.exports=he}catch(t){}return he.default=he,he}();const S=O.exports,T="container",j="container--open",I="container--embedded",P=25,D={x:0,y:0},C={top:0,right:0,bottom:0,left:0};
|
6
|
+
import{r as t,c as i,h as e,H as n,g as r}from"./p-6eb37ed2.js";import{c as o}from"./p-d4056c1c.js";import{t as a,f as s}from"./p-66cee72b.js";import{c,d as u,u as l,a as h}from"./p-174aa4da.js";import{s as f,a as v,c as d}from"./p-3e828614.js";import{c as p}from"./p-1c249530.js";import{o as g}from"./p-6e118057.js";import{c as m,d as y}from"./p-8d453a3a.js";import{s as b,c as x,d as w,u as k}from"./p-a5fc6ab7.js";import{c as z}from"./p-27d462c0.js";import{S as M}from"./p-2230d4cc.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-0ef9d36b.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";var E,O={exports:{}};(E=O).exports=function(){function t(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function i(i){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?t(Object(n),!0).forEach((function(t){a(i,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(n,t))}))}return i}function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function r(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function o(t,i,e){return i&&r(t.prototype,i),e&&r(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,i,e){return(i=v(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function s(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&u(t,i)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,i){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},u(t,i)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=c(t);if(i){var r=c(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(t,i){if(i&&("object"==typeof i||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,e)}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,i,e){var n=function(t,i){for(;!Object.prototype.hasOwnProperty.call(t,i)&&null!==(t=c(t)););return t}(t,i);if(n){var r=Object.getOwnPropertyDescriptor(n,i);return r.get?r.get.call(arguments.length<3?t:e):r.value}},f.apply(this,arguments)}function v(t){var i=function(t){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof i?i:i+""}var d=function(t){return!(!t||!t.Window)&&t instanceof t.Window},p=void 0,g=void 0;function m(t){p=t;var i=t.document.createTextNode("");i.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(i)===i&&(t=t.wrap(t)),g=t}function y(t){return d(t)?t:(t.ownerDocument||t).defaultView||g.window}"undefined"!=typeof window&&window&&m(window);var b=function(t){return!!t&&"object"===e(t)},x=function(t){return"function"==typeof t},w={window:function(t){return t===g||d(t)},docFrag:function(t){return b(t)&&11===t.nodeType},object:b,func:x,number:function(t){return"number"==typeof t},bool:function(t){return"boolean"==typeof t},string:function(t){return"string"==typeof t},element:function(t){if(!t||"object"!==e(t))return!1;var i=y(t)||g;return/object|function/.test("undefined"==typeof Element?"undefined":e(Element))?t instanceof Element||t instanceof i.Element:1===t.nodeType&&"string"==typeof t.nodeName},plainObject:function(t){return b(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},array:function(t){return b(t)&&void 0!==t.length&&x(t.splice)}};function k(t){var i=t.interaction;if("drag"===i.prepared.name){var e=i.prepared.axis;"x"===e?(i.coords.cur.page.y=i.coords.start.page.y,i.coords.cur.client.y=i.coords.start.client.y,i.coords.velocity.client.y=0,i.coords.velocity.page.y=0):"y"===e&&(i.coords.cur.page.x=i.coords.start.page.x,i.coords.cur.client.x=i.coords.start.client.x,i.coords.velocity.client.x=0,i.coords.velocity.page.x=0)}}function z(t){var i=t.iEvent,e=t.interaction;if("drag"===e.prepared.name){var n=e.prepared.axis;if("x"===n||"y"===n){var r="x"===n?"y":"x";i.page[r]=e.coords.start.page[r],i.client[r]=e.coords.start.client[r],i.delta[r]=0}}}var M={id:"actions/drag",install:function(t){var i=t.actions,e=t.defaults;t.Interactable.prototype.draggable=M.draggable,i.map.drag=M,i.methodDict.drag="draggable",e.actions.drag=M.defaults},listeners:{"interactions:before-action-move":k,"interactions:action-resume":k,"interactions:action-move":z,"auto-start:check":function(t){var i=t.interaction,e=t.interactable,n=t.buttons,r=e.options.drag;if(r&&r.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||n&e.options.drag.mouseButtons))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(t){return w.object(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):w.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:k,move:z,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return 0===t.search("drag")}},O=M,S={init:function(t){var i=t;S.document=i.document,S.DocumentFragment=i.DocumentFragment||T,S.SVGElement=i.SVGElement||T,S.SVGSVGElement=i.SVGSVGElement||T,S.SVGElementInstance=i.SVGElementInstance||T,S.Element=i.Element||T,S.HTMLElement=i.HTMLElement||S.Element,S.Event=i.Event,S.Touch=i.Touch||T,S.PointerEvent=i.PointerEvent||i.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function T(){}var j=S,I={init:function(t){var i=j.Element,e=t.navigator||{};I.supportsTouch="ontouchstart"in t||w.func(t.DocumentTouch)&&j.document instanceof t.DocumentTouch,I.supportsPointerEvent=!1!==e.pointerEnabled&&!!j.PointerEvent,I.isIOS=/iP(hone|od|ad)/.test(e.platform),I.isIOS7=/iP(hone|od|ad)/.test(e.platform)&&/OS 7[^\d]/.test(e.appVersion),I.isIe9=/MSIE 9/.test(e.userAgent),I.isOperaMobile="Opera"===e.appName&&I.supportsTouch&&/Presto/.test(e.userAgent),I.prefixedMatchesSelector="matches"in i.prototype?"matches":"webkitMatchesSelector"in i.prototype?"webkitMatchesSelector":"mozMatchesSelector"in i.prototype?"mozMatchesSelector":"oMatchesSelector"in i.prototype?"oMatchesSelector":"msMatchesSelector",I.pEventTypes=I.supportsPointerEvent?j.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,I.wheelEvent=j.document&&"onmousewheel"in j.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},P=I;function D(t,i){if(t.contains)return t.contains(i);for(;i;){if(i===t)return!0;i=i.parentNode}return!1}function C(t,i){for(;w.element(t);){if(R(t,i))return t;t=A(t)}return null}function A(t){var i=t.parentNode;if(w.docFrag(i)){for(;(i=i.host)&&w.docFrag(i););return i}return i}function R(t,i){return g!==p&&(i=i.replace(/\/deep\//g," ")),t[P.prefixedMatchesSelector](i)}var _=function(t){return t.parentNode||t.host};function F(t,i){for(var e,n=[],r=t;(e=_(r))&&r!==i&&e!==r.ownerDocument;)n.unshift(r),r=e;return n}function L(t,i,e){for(;w.element(t);){if(R(t,i))return!0;if((t=A(t))===e)return R(t,i)}return!1}function $(t){return t.correspondingUseElement||t}function B(t){var i=t instanceof j.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return i&&{left:i.left,right:i.right,top:i.top,bottom:i.bottom,width:i.width||i.right-i.left,height:i.height||i.bottom-i.top}}function X(t){var i,e=B(t);if(!P.isIOS7&&e){var n={x:(i=(i=y(t))||g).scrollX||i.document.documentElement.scrollLeft,y:i.scrollY||i.document.documentElement.scrollTop};e.left+=n.x,e.right+=n.x,e.top+=n.y,e.bottom+=n.y}return e}function Y(t){for(var i=[];t;)i.push(t),t=A(t);return i}function U(t){return!!w.string(t)&&(j.document.querySelector(t),!0)}function V(t,i){for(var e in i)t[e]=i[e];return t}function N(t,i,e){return"parent"===t?A(e):"self"===t?i.getRect(e):C(e,t)}function q(t,i,e,n){var r=t;return w.string(r)?r=N(r,i,e):w.func(r)&&(r=r.apply(void 0,n)),w.element(r)&&(r=X(r)),r}function H(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function G(t){return!t||"x"in t&&"y"in t||((t=V({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function K(t,i,e){t.left&&(i.left+=e.x),t.right&&(i.right+=e.x),t.top&&(i.top+=e.y),t.bottom&&(i.bottom+=e.y),i.width=i.right-i.left,i.height=i.bottom-i.top}function W(t,i,e){var n=e&&t.options[e];return H(q(n&&n.origin||t.options.origin,t,i,[t&&i]))||{x:0,y:0}}function J(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},n=arguments.length>3?arguments[3]:void 0;if(n=n||{},w.string(t)&&-1!==t.search(" ")&&(t=Q(t)),w.array(t))return t.forEach((function(t){return J(t,i,e,n)})),n;if(w.object(t)&&(i=t,t=""),w.func(i)&&e(t))n[t]=n[t]||[],n[t].push(i);else if(w.array(i))for(var r=0,o=i;r<o.length;r++)J(t,o[r],e,n);else if(w.object(i))for(var a in i)J(Q(a).map((function(i){return"".concat(t).concat(i)})),i[a],e,n);return n}function Q(t){return t.trim().split(/ +/)}var Z=function(t,i){return Math.sqrt(t*t+i*i)},tt=["webkit","moz"];function it(t,i){t.__set||(t.__set={});var e=function(e){if(tt.some((function(t){return 0===e.indexOf(t)})))return 1;"function"!=typeof t[e]&&"__set"!==e&&Object.defineProperty(t,e,{get:function(){return e in t.__set?t.__set[e]:t.__set[e]=i[e]},set:function(i){t.__set[e]=i},configurable:!0})};for(var n in i)e(n);return t}function et(t,i){t.page=t.page||{},t.page.x=i.page.x,t.page.y=i.page.y,t.client=t.client||{},t.client.x=i.client.x,t.client.y=i.client.y,t.timeStamp=i.timeStamp}function nt(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function rt(t){return t instanceof j.Event||t instanceof j.Touch}function ot(t,i,e){return(e=e||{}).x=i[(t=t||"page")+"X"],e.y=i[t+"Y"],e}function at(t,i){return i=i||{x:0,y:0},P.isOperaMobile&&rt(t)?(ot("screen",t,i),i.x+=window.scrollX,i.y+=window.scrollY):ot("page",t,i),i}function st(t){return w.number(t.pointerId)?t.pointerId:t.identifier}function ct(t){var i=[];return w.array(t)?(i[0]=t[0],i[1]=t[1]):"touchend"===t.type?1===t.touches.length?(i[0]=t.touches[0],i[1]=t.changedTouches[0]):0===t.touches.length&&(i[0]=t.changedTouches[0],i[1]=t.changedTouches[1]):(i[0]=t.touches[0],i[1]=t.touches[1]),i}function ut(t){for(var i={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},e=0;e<t.length;e++){var n=t[e];for(var r in i)i[r]+=n[r]}for(var o in i)i[o]/=t.length;return i}function lt(t){if(!t.length)return null;var i=ct(t),e=Math.min(i[0].pageX,i[1].pageX),n=Math.min(i[0].pageY,i[1].pageY),r=Math.max(i[0].pageX,i[1].pageX),o=Math.max(i[0].pageY,i[1].pageY);return{x:e,y:n,left:e,top:n,right:r,bottom:o,width:r-e,height:o-n}}function ht(t,i){var e=i+"X",n=i+"Y",r=ct(t);return Z(r[0][e]-r[1][e],r[0][n]-r[1][n])}function ft(t,i){var e=i+"X",n=i+"Y",r=ct(t);return 180*Math.atan2(r[1][n]-r[0][n],r[1][e]-r[0][e])/Math.PI}function vt(t){return w.string(t.pointerType)?t.pointerType:w.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof j.Touch?"touch":"mouse"}function dt(t){var i=w.func(t.composedPath)?t.composedPath():t.path;return[$(i?i[0]:t.target),$(t.currentTarget)]}var pt=function(){function t(i){n(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=i}return o(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(pt.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var gt=function(t,i){for(var e=0;e<i.length;e++)t.push(i[e]);return t},mt=function(t){return gt([],t)},yt=function(t,i){for(var e=0;e<t.length;e++)if(i(t[e],e,t))return e;return-1},bt=function(t,i){return t[yt(t,i)]},xt=function(t){s(e,t);var i=h(e);function e(t,r,o){var a;n(this,e),(a=i.call(this,r._interaction)).dropzone=void 0,a.dragEvent=void 0,a.relatedTarget=void 0,a.draggable=void 0,a.propagationStopped=!1,a.immediatePropagationStopped=!1;var s="dragleave"===o?t.prev:t.cur,c=s.element,u=s.dropzone;return a.type=o,a.target=c,a.currentTarget=c,a.dropzone=u,a.dragEvent=r,a.relatedTarget=r.target,a.draggable=r.interactable,a.timeStamp=r.timeStamp,a}return o(e,[{key:"reject",value:function(){var t=this,i=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&i.cur.dropzone===this.dropzone&&i.cur.element===this.target)if(i.prev.dropzone=this.dropzone,i.prev.element=this.target,i.rejected=!0,i.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=yt(i.activeDrops,(function(i){return i.dropzone===t.dropzone&&i.element===t.target}));i.activeDrops.splice(n,1);var r=new e(i,this.dragEvent,"dropdeactivate");r.dropzone=this.dropzone,r.target=this.target,this.dropzone.fire(r)}else this.dropzone.fire(new e(i,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),e}(pt);function wt(t,i){for(var e=0,n=t.slice();e<n.length;e++){var r=n[e],o=r.dropzone,a=r.element;i.dropzone=o,i.target=a,o.fire(i),i.propagationStopped=i.immediatePropagationStopped=!1}}function kt(t,i){for(var e=function(t,i){for(var e=[],n=0,r=t.interactables.list;n<r.length;n++){var o=r[n];if(o.options.drop.enabled){var a=o.options.drop.accept;if(!(w.element(a)&&a!==i||w.string(a)&&!R(i,a)||w.func(a)&&!a({dropzone:o,draggableElement:i})))for(var s=0,c=o.getAllElements();s<c.length;s++){var u=c[s];u!==i&&e.push({dropzone:o,element:u,rect:o.getRect(u)})}}}return e}(t,i),n=0;n<e.length;n++){var r=e[n];r.rect=r.dropzone.getRect(r.element)}return e}function zt(t,i,e){for(var n=t.dropState,r=t.interactable,o=t.element,a=[],s=0,c=n.activeDrops;s<c.length;s++){var u=c[s],l=u.element,h=u.dropzone.dropCheck(i,e,r,o,l,u.rect);a.push(h?l:null)}var f=function(t){for(var i,e,n,r=[],o=0;o<t.length;o++){var a=t[o],s=t[i];if(a&&o!==i)if(s){var c=_(a),u=_(s);if(c!==a.ownerDocument)if(u!==a.ownerDocument)if(c!==u){r=r.length?r:F(s);var l=void 0;if(s instanceof j.HTMLElement&&a instanceof j.SVGElement&&!(a instanceof j.SVGSVGElement)){if(a===u)continue;l=a.ownerSVGElement}else l=a;for(var h=F(l,s.ownerDocument),f=0;h[f]&&h[f]===r[f];)f++;var v=[h[f-1],h[f],r[f]];if(v[0])for(var d=v[0].lastChild;d;){if(d===v[1]){i=o,r=h;break}if(d===v[2])break;d=d.previousSibling}}else n=s,(parseInt(y(e=a).getComputedStyle(e).zIndex,10)||0)>=(parseInt(y(n).getComputedStyle(n).zIndex,10)||0)&&(i=o);else i=o}else i=o}return i}(a);return n.activeDrops[f]||null}function Mt(t,i,e){var n=t.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===e.type&&(r.activate=new xt(n,e,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===e.type&&(r.deactivate=new xt(n,e,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),n.rejected||(n.cur.element!==n.prev.element&&(n.prev.dropzone&&(r.leave=new xt(n,e,"dragleave"),e.dragLeave=r.leave.target=n.prev.element,e.prevDropzone=r.leave.dropzone=n.prev.dropzone),n.cur.dropzone&&(r.enter=new xt(n,e,"dragenter"),e.dragEnter=n.cur.element,e.dropzone=n.cur.dropzone)),"dragend"===e.type&&n.cur.dropzone&&(r.drop=new xt(n,e,"drop"),e.dropzone=n.cur.dropzone,e.relatedTarget=n.cur.element),"dragmove"===e.type&&n.cur.dropzone&&(r.move=new xt(n,e,"dropmove"),e.dropzone=n.cur.dropzone)),r}function Et(t,i){var e=t.dropState,n=e.activeDrops,r=e.cur;i.leave&&e.prev.dropzone.fire(i.leave),i.enter&&r.dropzone.fire(i.enter),i.move&&r.dropzone.fire(i.move),i.drop&&r.dropzone.fire(i.drop),i.deactivate&&wt(n,i.deactivate),e.prev.dropzone=r.dropzone,e.prev.element=r.element}function Ot(t,i){var e=t.interaction,n=t.iEvent,r=t.event;if("dragmove"===n.type||"dragend"===n.type){var o=e.dropState;i.dynamicDrop&&(o.activeDrops=kt(i,e.element));var a=n,s=zt(e,a,r);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=Mt(e,0,a)}}var St={id:"actions/drop",install:function(t){var i=t.actions,e=t.interactStatic,n=t.Interactable,r=t.defaults;t.usePlugin(O),n.prototype.dropzone=function(t){return function(t,i){if(w.object(i)){if(t.options.drop.enabled=!1!==i.enabled,i.listeners){var e=J(i.listeners),n=Object.keys(e).reduce((function(t,i){return t[/^(enter|leave)/.test(i)?"drag".concat(i):/^(activate|deactivate|move)/.test(i)?"drop".concat(i):i]=e[i],t}),{}),r=t.options.drop.listeners;r&&t.off(r),t.on(n),t.options.drop.listeners=n}return w.func(i.ondrop)&&t.on("drop",i.ondrop),w.func(i.ondropactivate)&&t.on("dropactivate",i.ondropactivate),w.func(i.ondropdeactivate)&&t.on("dropdeactivate",i.ondropdeactivate),w.func(i.ondragenter)&&t.on("dragenter",i.ondragenter),w.func(i.ondragleave)&&t.on("dragleave",i.ondragleave),w.func(i.ondropmove)&&t.on("dropmove",i.ondropmove),/^(pointer|center)$/.test(i.overlap)?t.options.drop.overlap=i.overlap:w.number(i.overlap)&&(t.options.drop.overlap=Math.max(Math.min(1,i.overlap),0)),"accept"in i&&(t.options.drop.accept=i.accept),"checker"in i&&(t.options.drop.checker=i.checker),t}return w.bool(i)?(t.options.drop.enabled=i,t):t.options.drop}(this,t)},n.prototype.dropCheck=function(t,i,e,n,r,o){return function(t,i,e,n,r,o,a){var s=!1;if(!(a=a||t.getRect(o)))return!!t.options.drop.checker&&t.options.drop.checker(i,e,s,t,o,n,r);var c=t.options.drop.overlap;if("pointer"===c){var u=W(n,r,"drag"),l=at(i);l.x+=u.x,l.y+=u.y,s=l.x>a.left&&l.x<a.right&&l.y>a.top&&l.y<a.bottom}var h=n.getRect(r);if(h&&"center"===c){var f=h.left+h.width/2,v=h.top+h.height/2;s=f>=a.left&&f<=a.right&&v>=a.top&&v<=a.bottom}return h&&w.number(c)&&(s=Math.max(0,Math.min(a.right,h.right)-Math.max(a.left,h.left))*Math.max(0,Math.min(a.bottom,h.bottom)-Math.max(a.top,h.top))/(h.width*h.height)>=c),t.options.drop.checker&&(s=t.options.drop.checker(i,e,s,t,o,n,r)),s}(this,t,i,e,n,r,o)},e.dynamicDrop=function(i){return w.bool(i)?(t.dynamicDrop=i,e):t.dynamicDrop},V(i.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),i.methodDict.drop="dropzone",t.dynamicDrop=!1,r.actions.drop=St.defaults},listeners:{"interactions:before-action-start":function(t){var i=t.interaction;"drag"===i.prepared.name&&(i.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,i){var e=t.interaction,n=t.iEvent;if("drag"===e.prepared.name){var r=e.dropState;r.activeDrops=[],r.events={},r.activeDrops=kt(i,e.element),r.events=Mt(e,0,n),r.events.activate&&(wt(r.activeDrops,r.events.activate),i.fire("actions/drop:start",{interaction:e,dragEvent:n}))}},"interactions:action-move":Ot,"interactions:after-action-move":function(t,i){var e=t.interaction,n=t.iEvent;if("drag"===e.prepared.name){var r=e.dropState;Et(e,r.events),i.fire("actions/drop:move",{interaction:e,dragEvent:n}),r.events={}}},"interactions:action-end":function(t,i){if("drag"===t.interaction.prepared.name){var e=t.interaction,n=t.iEvent;Ot(t,i),Et(e,e.dropState.events),i.fire("actions/drop:end",{interaction:e,dragEvent:n})}},"interactions:stop":function(t){var i=t.interaction;if("drag"===i.prepared.name){var e=i.dropState;e&&(e.activeDrops=null,e.events=null,e.cur.dropzone=null,e.cur.element=null,e.prev.dropzone=null,e.prev.element=null,e.rejected=!1)}}},getActiveDrops:kt,getDrop:zt,getDropEvents:Mt,fireDropEvents:Et,filterEventType:function(t){return 0===t.search("drag")||0===t.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Tt=St;function jt(t){var i=t.interaction,e=t.iEvent,n=t.phase;if("gesture"===i.prepared.name){var r=i.pointers.map((function(t){return t.pointer})),o="start"===n,a="end"===n,s=i.interactable.options.deltaSource;if(e.touches=[r[0],r[1]],o)e.distance=ht(r,s),e.box=lt(r),e.scale=1,e.ds=0,e.angle=ft(r,s),e.da=0,i.gesture.startDistance=e.distance,i.gesture.startAngle=e.angle;else if(a||i.pointers.length<2){var c=i.prevEvent;e.distance=c.distance,e.box=c.box,e.scale=c.scale,e.ds=0,e.angle=c.angle,e.da=0}else e.distance=ht(r,s),e.box=lt(r),e.scale=e.distance/i.gesture.startDistance,e.angle=ft(r,s),e.ds=e.scale-i.gesture.scale,e.da=e.angle-i.gesture.angle;i.gesture.distance=e.distance,i.gesture.angle=e.angle,w.number(e.scale)&&e.scale!==1/0&&!isNaN(e.scale)&&(i.gesture.scale=e.scale)}}var It={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var i=t.actions,e=t.defaults;t.Interactable.prototype.gesturable=function(t){return w.object(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):w.bool(t)?(this.options.gesture.enabled=t,this):this.options.gesture},i.map.gesture=It,i.methodDict.gesture="gesturable",e.actions.gesture=It.defaults},listeners:{"interactions:action-start":jt,"interactions:action-move":jt,"interactions:action-end":jt,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var i=t.interactable.options.gesture;if(i&&i.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return 0===t.search("gesture")}},Pt=It;function Dt(t,i,e,n,r,o,a){if(!i)return!1;if(!0===i){var s=w.number(o.width)?o.width:o.right-o.left,c=w.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs(("left"===t||"right"===t?s:c)/2)),s<0&&("left"===t?t="right":"right"===t&&(t="left")),c<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t)return e.x<(s>=0?o.left:o.right)+a;if("top"===t)return e.y<(c>=0?o.top:o.bottom)+a;if("right"===t)return e.x>(s>=0?o.right:o.left)-a;if("bottom"===t)return e.y>(c>=0?o.bottom:o.top)-a}return!!w.element(n)&&(w.element(i)?i===n:L(n,i,r))}function Ct(t){var i=t.interaction;if("resize"===i.prepared.name&&i.resizeAxes){var e=t.iEvent;i.interactable.options.resize.square?("y"===i.resizeAxes?e.delta.x=e.delta.y:e.delta.y=e.delta.x,e.axes="xy"):(e.axes=i.resizeAxes,"x"===i.resizeAxes?e.delta.y=0:"y"===i.resizeAxes&&(e.delta.x=0))}}var At,Rt,_t={id:"actions/resize",before:["actions/drag"],install:function(t){var i=t.actions,e=t.browser,n=t.Interactable,r=t.defaults;_t.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(e),_t.defaultMargin=e.supportsTouch||e.supportsPointerEvent?20:10,n.prototype.resizable=function(i){return function(t,i,e){return w.object(i)?(t.options.resize.enabled=!1!==i.enabled,t.setPerAction("resize",i),t.setOnEvents("resize",i),w.string(i.axis)&&/^x$|^y$|^xy$/.test(i.axis)?t.options.resize.axis=i.axis:null===i.axis&&(t.options.resize.axis=e.defaults.actions.resize.axis),w.bool(i.preserveAspectRatio)?t.options.resize.preserveAspectRatio=i.preserveAspectRatio:w.bool(i.square)&&(t.options.resize.square=i.square),t):w.bool(i)?(t.options.resize.enabled=i,t):t.options.resize}(this,i,t)},i.map.resize=_t,i.methodDict.resize="resizable",r.actions.resize=_t.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent,n=i.rect;i._rects={start:V({},n),corrected:V({},n),previous:V({},n),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},e.edges=i.prepared.edges,e.rect=i._rects.corrected,e.deltaRect=i._rects.delta}}(t),Ct(t)},"interactions:action-move":function(t){!function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent,n=i.interactable.options.resize.invert,r="reposition"===n||"negate"===n,o=i.rect,a=i._rects,s=a.start,c=a.corrected,u=a.delta,l=a.previous;if(V(l,c),r){if(V(c,o),"reposition"===n){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var f=c.left;c.left=c.right,c.right=f}}}else c.top=Math.min(o.top,s.bottom),c.bottom=Math.max(o.bottom,s.top),c.left=Math.min(o.left,s.right),c.right=Math.max(o.right,s.left);for(var v in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[v]=c[v]-l[v];e.edges=i.prepared.edges,e.rect=c,e.deltaRect=u}}(t),Ct(t)},"interactions:action-end":function(t){var i=t.interaction;if("resize"===i.prepared.name&&i.prepared.edges){var e=t.iEvent;e.edges=i.prepared.edges,e.rect=i._rects.corrected,e.deltaRect=i._rects.delta}},"auto-start:check":function(t){var i=t.interaction,e=t.interactable,n=t.element,r=t.rect,o=t.buttons;if(r){var a=V({},i.coords.cur.page),s=e.options.resize;if(s&&s.enabled&&(!i.pointerIsDown||!/mouse|pointer/.test(i.pointerType)||o&s.mouseButtons)){if(w.object(s.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=Dt(u,s.edges[u],a,i._latestPointer.eventTarget,n,r,s.margin||_t.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(t.action={name:"resize",edges:c})}else{var l="y"!==s.axis&&a.x>r.right-_t.defaultMargin,h="x"!==s.axis&&a.y>r.bottom-_t.defaultMargin;(l||h)&&(t.action={name:"resize",axes:(l?"x":"")+(h?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var i=t.edges,e=t.axis,n=_t.cursors,r=null;if(e)r=n[t.name+e];else if(i){for(var o="",a=0,s=["top","bottom","left","right"];a<s.length;a++){var c=s[a];i[c]&&(o+=c)}r=n[o]}return r},filterEventType:function(t){return 0===t.search("resize")},defaultMargin:null},Ft=_t,Lt={id:"actions",install:function(t){t.usePlugin(Pt),t.usePlugin(Ft),t.usePlugin(O),t.usePlugin(Tt)}},$t=0,Bt=function(t){return At(t)},Xt=function(t){return Rt(t)},Yt=function(t){if(Rt=t.cancelAnimationFrame,!(At=t.requestAnimationFrame))for(var i=["ms","moz","webkit","o"],e=0;e<i.length;e++){var n=i[e];At=t["".concat(n,"RequestAnimationFrame")],Rt=t["".concat(n,"CancelAnimationFrame")]||t["".concat(n,"CancelRequestAnimationFrame")]}At=At&&At.bind(t),Rt=Rt&&Rt.bind(t),At||(At=function(i){var e=Date.now(),n=Math.max(0,16-(e-$t)),r=t.setTimeout((function(){i(e+n)}),n);return $t=e+n,r},Rt=function(t){return clearTimeout(t)})},Ut={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){Ut.isScrolling=!0,Xt(Ut.i),t.autoScroll=Ut,Ut.interaction=t,Ut.prevTime=Ut.now(),Ut.i=Bt(Ut.scroll)},stop:function(){Ut.isScrolling=!1,Ut.interaction&&(Ut.interaction.autoScroll=null),Xt(Ut.i)},scroll:function(){var t=Ut.interaction,i=t.interactable,e=t.element,n=i.options[t.prepared.name].autoScroll,r=Vt(n.container,i,e),o=Ut.now(),a=n.speed*((o-Ut.prevTime)/1e3);if(a>=1){var s={x:Ut.x*a,y:Ut.y*a};if(s.x||s.y){var c=Nt(r);w.window(r)?r.scrollBy(s.x,s.y):r&&(r.scrollLeft+=s.x,r.scrollTop+=s.y);var u=Nt(r),l={x:u.x-c.x,y:u.y-c.y};(l.x||l.y)&&i.fire({type:"autoscroll",target:e,interactable:i,delta:l,interaction:t,container:r})}Ut.prevTime=o}Ut.isScrolling&&(Xt(Ut.i),Ut.i=Bt(Ut.scroll))},check:function(t,i){var e;return null==(e=t.options[i].autoScroll)?void 0:e.enabled},onInteractionMove:function(t){var i=t.interaction,e=t.pointer;if(i.interacting()&&Ut.check(i.interactable,i.prepared.name))if(i.simulation)Ut.x=Ut.y=0;else{var n,r,o,a,s=i.interactable,c=s.options[i.prepared.name].autoScroll,u=Vt(c.container,s,i.element);if(w.window(u))a=e.clientX<Ut.margin,n=e.clientY<Ut.margin,r=e.clientX>u.innerWidth-Ut.margin,o=e.clientY>u.innerHeight-Ut.margin;else{var l=B(u);a=e.clientX<l.left+Ut.margin,n=e.clientY<l.top+Ut.margin,r=e.clientX>l.right-Ut.margin,o=e.clientY>l.bottom-Ut.margin}Ut.x=r?1:a?-1:0,Ut.y=o?1:n?-1:0,Ut.isScrolling||(Ut.margin=c.margin,Ut.speed=c.speed,Ut.start(i))}}};function Vt(t,i,e){return(w.string(t)?N(t,i,e):t)||y(e)}function Nt(t){return w.window(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var qt={id:"auto-scroll",install:function(t){var i=t.defaults,e=t.actions;t.autoScroll=Ut,Ut.now=function(){return t.now()},e.phaselessTypes.autoscroll=!0,i.perAction.autoScroll=Ut.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,Ut.stop(),Ut.interaction&&(Ut.interaction=null)},"interactions:stop":Ut.stop,"interactions:action-move":function(t){return Ut.onInteractionMove(t)}}},Ht=qt;function Gt(t,i){var e=!1;return function(){return e||(g.console.warn(i),e=!0),t.apply(this,arguments)}}function Kt(t,i){return t.name=i.name,t.axis=i.axis,t.edges=i.edges,t}function Wt(t){return w.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function Jt(t){return w.func(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}var Qt={id:"auto-start/interactableMethods",install:function(t){var i=t.Interactable;i.prototype.getAction=function(i,e,n,r){var o=function(t,i,e,n,r){var o=t.getRect(n),a={action:null,interactable:t,interaction:e,element:n,rect:o,buttons:i.buttons||{0:1,1:4,3:8,4:16}[i.button]};return r.fire("auto-start:check",a),a.action}(this,e,n,r,t);return this.options.actionChecker?this.options.actionChecker(i,e,o,this,r,n):o},i.prototype.ignoreFrom=Gt((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),i.prototype.allowFrom=Gt((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),i.prototype.actionChecker=Jt,i.prototype.styleCursor=Wt}};function Zt(t,i,e,n,r){return i.testIgnoreAllow(i.options[t.name],e,n)&&i.options[t.name].enabled&&ni(i,e,t,r)?t:null}function ti(t,i,e,n,r,o,a){for(var s=0,c=n.length;s<c;s++){var u=n[s],l=r[s],h=u.getAction(i,e,t,l);if(h){var f=Zt(h,u,l,o,a);if(f)return{action:f,interactable:u,element:l}}}return{action:null,interactable:null,element:null}}function ii(t,i,e,n,r){var o=[],a=[],s=n;function c(t){o.push(t),a.push(s)}for(;w.element(s);){o=[],a=[],r.interactables.forEachMatch(s,c);var u=ti(t,i,e,o,a,n,r);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;s=A(s)}return{action:null,interactable:null,element:null}}function ei(t,i,e){var n=i.action,r=i.interactable,o=i.element;n=n||{name:null},t.interactable=r,t.element=o,Kt(t.prepared,n),t.rect=r&&n.name?r.getRect(o):null,ai(t,e),e.fire("autoStart:prepared",{interaction:t})}function ni(t,i,e,n){var r=t.options,o=r[e.name].max,a=r[e.name].maxPerElement,s=n.autoStart.maxInteractions,c=0,u=0,l=0;if(!(o&&a&&s))return!1;for(var h=0,f=n.interactions.list;h<f.length;h++){var v=f[h],d=v.prepared.name;if(v.interacting()){if(++c>=s)return!1;if(v.interactable===t){if((u+=d===e.name?1:0)>=o)return!1;if(v.element===i&&(l++,d===e.name&&l>=a))return!1}}}return s>0}function ri(t,i){return w.number(t)?(i.autoStart.maxInteractions=t,this):i.autoStart.maxInteractions}function oi(t,i,e){var n=e.autoStart.cursorElement;n&&n!==t&&(n.style.cursor=""),t.ownerDocument.documentElement.style.cursor=i,t.style.cursor=i,e.autoStart.cursorElement=i?t:null}function ai(t,i){var e=t.interactable,n=t.element,r=t.prepared;if("mouse"===t.pointerType&&e&&e.options.styleCursor){var o="";if(r.name){var a=e.options[r.name].cursorChecker;o=w.func(a)?a(r,e,n,t._interacting):i.actions.map[r.name].getCursor(r)}oi(t.element,o||"",i)}else i.autoStart.cursorElement&&oi(i.autoStart.cursorElement,"",i)}var si={id:"auto-start/base",before:["actions"],install:function(t){var i=t.interactStatic,e=t.defaults;t.usePlugin(Qt),e.base.actionChecker=null,e.base.styleCursor=!0,V(e.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),i.maxInteractions=function(i){return ri(i,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:ni,cursorElement:null}},listeners:{"interactions:down":function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;e.interacting()||ei(e,ii(e,n,r,o,i),i)},"interactions:move":function(t,i){!function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;"mouse"!==e.pointerType||e.pointerIsDown||e.interacting()||ei(e,ii(e,n,r,o,i),i)}(t,i),function(t,i){var e=t.interaction;if(e.pointerIsDown&&!e.interacting()&&e.pointerWasMoved&&e.prepared.name){i.fire("autoStart:before-start",t);var n=e.interactable,r=e.prepared.name;r&&n&&(n.options[r].manualStart||!ni(n,e.element,e.prepared,i)?e.stop():(e.start(e.prepared,n,e.element),ai(e,i)))}}(t,i)},"interactions:stop":function(t,i){var e=t.interaction,n=e.interactable;n&&n.options.styleCursor&&oi(e.element,"",i)}},maxInteractions:ri,withinInteractionLimit:ni,validateAction:Zt},ci=si,ui={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,i){var e=t.interaction,n=t.eventTarget,r=t.dy;if("drag"===e.prepared.name){var o=Math.abs(t.dx),a=Math.abs(r),s=e.interactable.options.drag,c=s.startAxis,u=o>a?"x":o<a?"y":"xy";if(e.prepared.axis="start"===s.lockAxis?u[0]:s.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){e.prepared.name=null;for(var l=n,h=function(t){if(t!==e.interactable){var r=e.interactable.options.drag;if(!r.manualStart&&t.testIgnoreAllow(r,l,n)){var o=t.getAction(e.downPointer,e.downEvent,e,l);if(o&&"drag"===o.name&&function(t,i){if(!i)return!1;var e=i.options.drag.startAxis;return"xy"===t||"xy"===e||e===t}(u,t)&&ci.validateAction(o,t,l,n,i))return t}}};w.element(l);){var f=i.interactables.forEachMatch(l,h);if(f){e.prepared.name="drag",e.interactable=f,e.element=l;break}l=A(l)}}}}}};function li(t){var i=t.prepared&&t.prepared.name;if(!i)return null;var e=t.interactable.options;return e[i].hold||e[i].delay}var hi={id:"auto-start/hold",install:function(t){var i=t.defaults;t.usePlugin(ci),i.perAction.hold=0,i.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var i=t.interaction,e=li(i);e>0&&(i.autoStartHoldTimer=setTimeout((function(){i.start(i.prepared,i.interactable,i.element)}),e))},"interactions:move":function(t){var i=t.interaction;i.autoStartHoldTimer&&i.pointerWasMoved&&!t.duplicate&&(clearTimeout(i.autoStartHoldTimer),i.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var i=t.interaction;li(i)>0&&(i.prepared.name=null)}},getHoldDuration:li},fi=hi,vi={id:"auto-start",install:function(t){t.usePlugin(ci),t.usePlugin(fi),t.usePlugin(ui)}},di=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):w.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function pi(t){var i=t.interaction;i.interactable&&i.interactable.checkAndPreventDefault(t.event)}var gi={id:"core/interactablePreventDefault",install:function(t){var i=t.Interactable;i.prototype.preventDefault=di,i.prototype.checkAndPreventDefault=function(i){return function(t,i,e){var n=t.options.preventDefault;if("never"!==n)if("always"!==n){if(i.events.supportsPassive&&/^touch(start|move)$/.test(e.type)){var r=y(e.target).document,o=i.getDocOptions(r);if(!o||!o.events||!1!==o.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(e.type)||w.element(e.target)&&R(e.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||e.preventDefault()}else e.preventDefault()}(this,t,i)},t.interactions.docEvents.push({type:"dragstart",listener:function(i){for(var e=0,n=t.interactions.list;e<n.length;e++){var r=n[e];if(r.element&&(r.element===i.target||D(r.element,i.target)))return void r.interactable.checkAndPreventDefault(i)}}})},listeners:["down","move","up","cancel"].reduce((function(t,i){return t["interactions:".concat(i)]=pi,t}),{})};function mi(t,i){if(i.phaselessTypes[t])return!0;for(var e in i.map)if(0===t.indexOf(e)&&t.substr(e.length)in i.phases)return!0;return!1}function yi(t){var i={};for(var e in t){var n=t[e];i[e]=w.plainObject(n)?yi(n):w.array(n)?mt(n):n}return i}var bi=function(){function t(i){n(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=i,this.result=xi(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return o(t,[{key:"start",value:function(t,i){var e,n,r=t.phase,o=this.interaction,a=function(t){var i=t.interactable.options[t.prepared.name],e=i.modifiers;return e&&e.length?e:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(t){var e=i[t];return e&&e.enabled&&{options:e,methods:e._methods}})).filter((function(t){return!!t}))}(o);this.prepareStates(a),this.startEdges=V({},o.edges),this.edges=V({},this.startEdges),this.startOffset=(n=i,(e=o.rect)?{left:n.x-e.left,top:n.y-e.top,right:e.right-n.x,bottom:e.bottom-n.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var s=this.fillArg({phase:r,pageCoords:i,preEnd:!1});return this.result=xi(),this.startAll(s),this.result=this.setAll(s)}},{key:"fillArg",value:function(t){var i=this.interaction;return t.interaction=i,t.interactable=i.interactable,t.element=i.element,t.rect||(t.rect=i.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var i=0,e=this.states;i<e.length;i++){var n=e[i];n.methods.start&&(t.state=n,n.methods.start(t))}}},{key:"setAll",value:function(t){var i=t.phase,e=t.preEnd,n=t.skipModifiers,r=t.rect,o=t.edges;t.coords=V({},t.pageCoords),t.rect=V({},r),t.edges=V({},o);for(var a=n?this.states.slice(n):this.states,s=xi(t.coords,t.rect),c=0;c<a.length;c++){var u,l=a[c],h=l.options,f=V({},t.coords),v=null;null!=(u=l.methods)&&u.set&&this.shouldDo(h,e,i)&&(t.state=l,v=l.methods.set(t),K(t.edges,t.rect,{x:t.coords.x-f.x,y:t.coords.y-f.y})),s.eventProps.push(v)}V(this.edges,t.edges),s.delta.x=t.coords.x-t.pageCoords.x,s.delta.y=t.coords.y-t.pageCoords.y,s.rectDelta.left=t.rect.left-r.left,s.rectDelta.right=t.rect.right-r.right,s.rectDelta.top=t.rect.top-r.top,s.rectDelta.bottom=t.rect.bottom-r.bottom;var d=this.result.coords,p=this.result.rect;return d&&p&&(s.changed=s.rect.left!==p.left||s.rect.right!==p.right||s.rect.top!==p.top||s.rect.bottom!==p.bottom||d.x!==s.coords.x||d.y!==s.coords.y),s}},{key:"applyToInteraction",value:function(t){var i=this.interaction,e=i.coords.cur,n=i.coords.start,r=this.result,o=this.startDelta,a=r.delta;"start"===t.phase&&V(this.startDelta,r.delta);for(var s=0,c=[[n,o],[e,a]];s<c.length;s++){var u=c[s],l=u[0],h=u[1];l.page.x+=h.x,l.page.y+=h.y,l.client.x+=h.x,l.client.y+=h.y}var f=this.result.rectDelta,v=t.rect||i.rect;v.left+=f.left,v.right+=f.right,v.top+=f.top,v.bottom+=f.bottom,v.width=v.right-v.left,v.height=v.bottom-v.top}},{key:"setAndApply",value:function(t){var i=this.interaction,e=t.skipModifiers,n=this.setAll(this.fillArg({preEnd:t.preEnd,phase:t.phase,pageCoords:t.modifiedCoords||i.coords.cur.page}));if(this.result=n,!n.changed&&(!e||e<this.states.length)&&i.interacting())return!1;if(t.modifiedCoords){var r=i.coords.cur.page,o={x:t.modifiedCoords.x-r.x,y:t.modifiedCoords.y-r.y};n.coords.x+=o.x,n.coords.y+=o.y,n.delta.x+=o.x,n.delta.y+=o.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var i=t.interaction,e=t.event,n=this.states;if(n&&n.length){for(var r=!1,o=0;o<n.length;o++){var a=n[o];t.state=a;var s=a.options,c=a.methods,u=c.beforeEnd&&c.beforeEnd(t);if(u)return this.endResult=u,!1;r=r||!r&&this.shouldDo(s,!0,t.phase,!0)}r&&i.move({event:e,preEnd:!0})}}},{key:"stop",value:function(t){var i=t.interaction;if(this.states&&this.states.length){var e=V({states:this.states,interactable:i.interactable,element:i.element,rect:null},t);this.fillArg(e);for(var n=0,r=this.states;n<r.length;n++){var o=r[n];e.state=o,o.methods.stop&&o.methods.stop(e)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var i=0;i<t.length;i++){var e=t[i];this.states.push({options:e.options,methods:e.methods,index:i,name:e.name})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var i=t.interaction,e=i.coords,n=i.rect,r=i.modification;if(r.result){for(var o=r.result,a=o.rectDelta,s=0,c=[[e.start,r.startDelta],[e.cur,o.delta]];s<c.length;s++){var u=c[s],l=u[0],h=u[1];l.page.x-=h.x,l.page.y-=h.y,l.client.x-=h.x,l.client.y-=h.y}n.left-=a.left,n.right-=a.right,n.top-=a.top,n.bottom-=a.bottom}}},{key:"shouldDo",value:function(t,i,e,n){return!(!t||!1===t.enabled||n&&!t.endOnly||t.endOnly&&!i||"start"===e&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map((function(t){return yi(t)})),this.result=xi(V({},t.result.coords),V({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),t}();function xi(t,i){return{rect:i,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function wi(t,i){var e=t.defaults,n={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=function(t){var r=t||{};for(var o in r.enabled=!1!==r.enabled,e)o in r||(r[o]=e[o]);var a={options:r,methods:n,name:i,enable:function(){return r.enabled=!0,a},disable:function(){return r.enabled=!1,a}};return a};return i&&"string"==typeof i&&(r._defaults=e,r._methods=n),r}function ki(t){var i=t.interaction.modification.result;i&&(t.iEvent.modifiers=i.eventProps)}var zi={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var i=t.interaction;i.modification=new bi(i)},"interactions:before-action-start":function(t){var i=t.interaction,e=t.interaction.modification;e.start(t,i.coords.start.page),i.edges=e.edges,e.applyToInteraction(t)},"interactions:before-action-move":function(t){var i=t.interaction,e=i.modification,n=e.setAndApply(t);return i.edges=e.edges,n},"interactions:before-action-end":function(t){var i=t.interaction,e=i.modification,n=e.beforeEnd(t);return i.edges=e.startEdges,n},"interactions:action-start":ki,"interactions:action-move":ki,"interactions:action-end":ki,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},Mi=zi,Ei={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Oi=function(t){s(e,t);var i=h(e);function e(t,r,o,a,s,c,u){var h;n(this,e),(h=i.call(this,t)).relatedTarget=null,h.screenX=void 0,h.screenY=void 0,h.button=void 0,h.buttons=void 0,h.ctrlKey=void 0,h.shiftKey=void 0,h.altKey=void 0,h.metaKey=void 0,h.page=void 0,h.client=void 0,h.delta=void 0,h.rect=void 0,h.x0=void 0,h.y0=void 0,h.t0=void 0,h.dt=void 0,h.duration=void 0,h.clientX0=void 0,h.clientY0=void 0,h.velocity=void 0,h.speed=void 0,h.swipe=void 0,h.axes=void 0,h.preEnd=void 0;var f=t.interactable,v=(f&&f.options||Ei).deltaSource,d=W(f,s=s||t.element,o),p="start"===a,g="end"===a,m=p?l(h):t.prevEvent,y=p?t.coords.start:g?{page:m.page,client:m.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return h.page=V({},y.page),h.client=V({},y.client),h.rect=V({},t.rect),h.timeStamp=y.timeStamp,g||(h.page.x-=d.x,h.page.y-=d.y,h.client.x-=d.x,h.client.y-=d.y),h.ctrlKey=r.ctrlKey,h.altKey=r.altKey,h.shiftKey=r.shiftKey,h.metaKey=r.metaKey,h.button=r.button,h.buttons=r.buttons,h.target=s,h.currentTarget=s,h.preEnd=c,h.type=u||o+(a||""),h.interactable=f,h.t0=p?t.pointers[t.pointers.length-1].downTime:m.t0,h.x0=t.coords.start.page.x-d.x,h.y0=t.coords.start.page.y-d.y,h.clientX0=t.coords.start.client.x-d.x,h.clientY0=t.coords.start.client.y-d.y,h.delta=p||g?{x:0,y:0}:{x:h[v].x-m[v].x,y:h[v].y-m[v].y},h.dt=t.coords.delta.timeStamp,h.duration=h.timeStamp-h.t0,h.velocity=V({},t.coords.velocity[v]),h.speed=Z(h.velocity.x,h.velocity.y),h.swipe=g||"inertiastart"===a?h.getSwipe():null,h}return o(e,[{key:"getSwipe",value:function(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var i=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;i<0&&(i+=360);var e=112.5<=i&&i<247.5,n=202.5<=i&&i<337.5;return{up:n,down:!n&&22.5<=i&&i<157.5,left:e,right:!e&&(292.5<=i||i<67.5),angle:i,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),e}(pt);Object.defineProperties(Oi.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var Si=o((function t(i,e,r,o,a){n(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=i,this.pointer=e,this.event=r,this.downTime=o,this.downTarget=a})),Ti=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),ji=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Ii=0,Pi=function(){function t(i){var e=this,r=i.pointerType,o=i.scopeFire;n(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Gt((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Ii++,this._scopeFire=o,this.pointerType=r;var a=this;this._proxy={};var s=function(t){Object.defineProperty(e._proxy,t,{get:function(){return a[t]}})};for(var c in Ti)s(c);var u=function(t){Object.defineProperty(e._proxy,t,{value:function(){return a[t].apply(a,arguments)}})};for(var l in ji)u(l);this._scopeFire("interactions:new",{interaction:this})}return o(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,i,e){var n=this.updatePointer(t,i,e,!0);this._scopeFire("interactions:down",{pointer:t,event:i,eventTarget:e,pointerIndex:n,pointerInfo:this.pointers[n],type:"down",interaction:this})}},{key:"start",value:function(t,i,e){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!i.options[t.name].enabled)&&(Kt(this.prepared,t),this.interactable=i,this.element=e,this.rect=i.getRect(e),this.edges=this.prepared.edges?V({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,i,e){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,i,e,!1);var n,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(this.pointerWasMoved=Z(n=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y)>this.pointerMoveTolerance);var a,s,c,u=this.getPointerIndex(t),l={pointer:t,pointerIndex:u,pointerInfo:this.pointers[u],event:i,type:"move",eventTarget:e,dx:n,dy:r,duplicate:o,interaction:this};o||(a=this.coords.velocity,s=this.coords.delta,c=Math.max(s.timeStamp/1e3,.001),a.page.x=s.page.x/c,a.page.y=s.page.y/c,a.client.x=s.client.x/c,a.client.y=s.client.y/c,a.timeStamp=c),this._scopeFire("interactions:move",l),o||this.simulation||(this.interacting()&&(l.type=null,this.move(l)),this.pointerWasMoved&&et(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||nt(this.coords.delta),(t=V({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,i,e,n){var r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,i,e,!1));var o=/cancel$/i.test(i.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:i,eventTarget:e,type:o,curEventTarget:n,interaction:this}),this.simulation||this.end(i),this.removePointer(t,i)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var i;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(i=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===i&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var i=st(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:yt(this.pointers,(function(t){return t.id===i}))}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,i,e,n){var r,o,a,s=st(t),c=this.getPointerIndex(t),u=this.pointers[c];return n=!1!==n&&(n||/(down|start)$/i.test(i.type)),u?u.pointer=t:(u=new Si(s,t,i,null,null),c=this.pointers.length,this.pointers.push(u)),function(t,i,e){var n=i.length>1?ut(i):i[0];at(n,t.page),function(t,i){i=i||{},P.isOperaMobile&&rt(t)?ot("screen",t,i):ot("client",t,i)}(n,t.client),t.timeStamp=e}(this.coords.cur,this.pointers.map((function(t){return t.pointer})),this._now()),(r=this.coords.delta).page.x=(a=this.coords.cur).page.x-(o=this.coords.prev).page.x,r.page.y=a.page.y-o.page.y,r.client.x=a.client.x-o.client.x,r.client.y=a.client.y-o.client.y,r.timeStamp=a.timeStamp-o.timeStamp,n&&(this.pointerIsDown=!0,u.downTime=this.coords.cur.timeStamp,u.downTarget=e,it(this.downPointer,t),this.interacting()||(et(this.coords.start,this.coords.cur),et(this.coords.prev,this.coords.cur),this.downEvent=i,this.pointerWasMoved=!1)),this._updateLatestPointer(t,i,e),this._scopeFire("interactions:update-pointer",{pointer:t,event:i,eventTarget:e,down:n,pointerInfo:u,pointerIndex:c,interaction:this}),c}},{key:"removePointer",value:function(t,i){var e=this.getPointerIndex(t);-1!==e&&(this._scopeFire("interactions:remove-pointer",{pointer:t,event:i,eventTarget:null,pointerIndex:e,pointerInfo:this.pointers[e],interaction:this}),this.pointers.splice(e,1),this.pointerIsDown=!1)}},{key:"_updateLatestPointer",value:function(t,i,e){this._latestPointer.pointer=t,this._latestPointer.event=i,this._latestPointer.eventTarget=e}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,i,e,n){return new Oi(this,t,this.prepared.name,i,this.element,e,n)}},{key:"_fireEvent",value:function(t){var i;null==(i=this.interactable)||i.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var i=t.event,e=t.phase,n=t.preEnd,r=t.type,o=this.rect;if(o&&"move"===e&&(K(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(e),t))return!1;var a=t.iEvent=this._createPreparedEvent(i,e,n,r);return this._scopeFire("interactions:action-".concat(e),t),"start"===e&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(e),t),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Di(t){Ci(t.interaction)}function Ci(t){if(!function(t){return!(!t.offset.pending.x&&!t.offset.pending.y)}(t))return!1;var i=t.offset.pending;return Ri(t.coords.cur,i),Ri(t.coords.delta,i),K(t.edges,t.rect,i),i.x=0,i.y=0,!0}function Ai(t){var i=t.x,e=t.y;this.offset.pending.x+=i,this.offset.pending.y+=e,this.offset.total.x+=i,this.offset.total.y+=e}function Ri(t,i){var e=t.page,n=t.client,r=i.x,o=i.y;e.x+=r,e.y+=o,n.x+=r,n.y+=o}ji.offsetBy="";var _i={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Ai},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(t){t.pointerIsDown&&(Ri(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Di,"interactions:before-action-move":Di,"interactions:before-action-end":function(t){var i=t.interaction;if(Ci(i))return i.move({offset:!0}),i.end(),!1},"interactions:stop":function(t){var i=t.interaction;i.offset.total.x=0,i.offset.total.y=0,i.offset.pending.x=0,i.offset.pending.y=0}}},Fi=_i,Li=function(){function t(i){n(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=i}return o(t,[{key:"start",value:function(t){var i=this.interaction,e=$i(i);if(!e||!e.enabled)return!1;var n=i.coords.velocity.client,r=Z(n.x,n.y),o=this.modification||(this.modification=new bi(i));if(o.copyFrom(i.modification),this.t0=i._now(),this.allowResume=e.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=i.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-i.coords.cur.timeStamp<50&&r>e.minSpeed&&r>e.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return i.modification.result.rect=null,i.offsetBy(this.targetOffset),i._doPhase({interaction:i,event:t,phase:"inertiastart"}),i.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),i.modification.result.rect=null,this.active=!0,i.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,i=this.interaction.coords.velocity.client,e=$i(this.interaction),n=e.resistance,r=-Math.log(e.endSpeed/this.v0)/n;this.targetOffset={x:(i.x-r)/n,y:(i.y-r)/n},this.te=r,this.lambda_v0=n/this.v0,this.one_ve_v0=1-e.endSpeed/this.v0;var o=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(a),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return t.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return t.smoothEndTick()}))}},{key:"onNextFrame",value:function(t){var i=this;this.timeout=Bt((function(){i.active&&t()}))}},{key:"inertiaTick",value:function(){var t,i,e,n=this,r=this.interaction,o=$i(r).resistance,a=(r._now()-this.t0)/1e3;if(a<this.te){var s,c=1-(Math.exp(-o*a)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=this.targetOffset.y,i=this.modifiedOffset.y,s={x:Xi(e=c,0,this.targetOffset.x,this.modifiedOffset.x),y:Xi(e,0,t,i)}):s={x:this.targetOffset.x*c,y:this.targetOffset.y*c};var u={x:s.x-this.currentOffset.x,y:s.y-this.currentOffset.y};this.currentOffset.x+=u.x,this.currentOffset.y+=u.y,r.offsetBy(u),r.move(),this.onNextFrame((function(){return n.inertiaTick()}))}else r.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,i=this.interaction,e=i._now()-this.t0,n=$i(i).smoothEndDuration;if(e<n){var r={x:Yi(e,0,this.targetOffset.x,n),y:Yi(e,0,this.targetOffset.y,n)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,i.offsetBy(o),i.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return t.smoothEndTick()}))}else i.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var i=t.pointer,e=t.event,n=t.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(i,e,n,!0),r._doPhase({interaction:r,event:e,phase:"resume"}),et(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Xt(this.timeout)}}]),t}();function $i(t){var i=t.interactable,e=t.prepared;return i&&i.options&&e.name&&i.options[e.name].inertia}var Bi={id:"inertia",before:["modifiers","actions"],install:function(t){var i=t.defaults;t.usePlugin(Fi),t.usePlugin(Mi),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,i.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var i=t.interaction;i.inertia=new Li(i)},"interactions:before-action-end":function(t){var i=t.interaction;return(!i._interacting||i.simulation||!i.inertia.start(t.event))&&null},"interactions:down":function(t){var i=t.interaction,e=i.inertia;if(e.active)for(var n=t.eventTarget;w.element(n);){if(n===i.element){e.resume(t);break}n=A(n)}},"interactions:stop":function(t){var i=t.interaction.inertia;i.active&&i.stop()},"interactions:before-action-resume":function(t){var i=t.interaction.modification;i.stop(t),i.start(t,t.interaction.coords.cur.page),i.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":ki,"interactions:action-inertiastart":ki,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Xi(t,i,e,n){var r=1-t;return r*r*i+2*r*t*e+t*t*n}function Yi(t,i,e,n){return-e*(t/=n)*(t-2)+i}var Ui=Bi;function Vi(t,i){for(var e=0;e<i.length;e++){var n=i[e];if(t.immediatePropagationStopped)break;n(t)}}var Ni=function(){function t(i){n(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=V({},i||{})}return o(t,[{key:"fire",value:function(t){var i,e=this.global;(i=this.types[t.type])&&Vi(t,i),!t.propagationStopped&&e&&(i=e[t.type])&&Vi(t,i)}},{key:"on",value:function(t,i){var e=J(t,i);for(t in e)this.types[t]=gt(this.types[t]||[],e[t])}},{key:"off",value:function(t,i){var e=J(t,i);for(t in e){var n=this.types[t];if(n&&n.length)for(var r=0,o=e[t];r<o.length;r++){var a=n.indexOf(o[r]);-1!==a&&n.splice(a,1)}}}},{key:"getRect",value:function(){return null}}]),t}(),qi=function(){function t(i){n(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=i,it(this,i)}return o(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function Hi(t){return w.object(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function Gi(t,i){return t===i||("boolean"==typeof t?!!i.capture===t&&0==!!i.passive:!!t.capture==!!i.capture&&!!t.passive==!!i.passive)}var Ki={id:"events",install:function(t){var i,e=[],n={},r=[],o={add:a,remove:s,addDelegate:function(t,i,e,o,s){var l=Hi(s);if(!n[e]){n[e]=[];for(var h=0;h<r.length;h++){var f=r[h];a(f,e,c),a(f,e,u,!0)}}var v=n[e],d=bt(v,(function(e){return e.selector===t&&e.context===i}));d||v.push(d={selector:t,context:i,listeners:[]}),d.listeners.push({func:o,options:l})},removeDelegate:function(t,i,e,r,o){var a,l=Hi(o),h=n[e],f=!1;if(h)for(a=h.length-1;a>=0;a--){var v=h[a];if(v.selector===t&&v.context===i){for(var d=v.listeners,p=d.length-1;p>=0;p--){var g=d[p];if(g.func===r&&Gi(g.options,l)){d.splice(p,1),d.length||(h.splice(a,1),s(i,e,c),s(i,e,u,!0)),f=!0;break}}if(f)break}}},delegateListener:c,delegateUseCapture:u,delegatedEvents:n,documents:r,targets:e,supportsOptions:!1,supportsPassive:!1};function a(t,i,n,r){if(t.addEventListener){var a=Hi(r),s=bt(e,(function(i){return i.eventTarget===t}));s||e.push(s={eventTarget:t,events:{}}),s.events[i]||(s.events[i]=[]),bt(s.events[i],(function(t){return t.func===n&&Gi(t.options,a)}))||(t.addEventListener(i,n,o.supportsOptions?a:a.capture),s.events[i].push({func:n,options:a}))}}function s(t,i,n,r){if(t.addEventListener&&t.removeEventListener){var a=yt(e,(function(i){return i.eventTarget===t})),c=e[a];if(c&&c.events)if("all"!==i){var u=!1,l=c.events[i];if(l){if("all"===n){for(var h=l.length-1;h>=0;h--){var f=l[h];s(t,i,f.func,f.options)}return}for(var v=Hi(r),d=0;d<l.length;d++){var p=l[d];if(p.func===n&&Gi(p.options,v)){t.removeEventListener(i,n,o.supportsOptions?v:v.capture),l.splice(d,1),0===l.length&&(delete c.events[i],u=!0);break}}}u&&!Object.keys(c.events).length&&e.splice(a,1)}else for(i in c.events)c.events.hasOwnProperty(i)&&s(t,i,"all")}}function c(t,i){for(var e=Hi(i),r=new qi(t),o=n[t.type],a=dt(t)[0],s=a;w.element(s);){for(var c=0;c<o.length;c++){var u=o[c],l=u.context;if(R(s,u.selector)&&D(l,a)&&D(l,s)){var h=u.listeners;r.currentTarget=s;for(var f=0;f<h.length;f++){var v=h[f];Gi(v.options,e)&&v.func(r)}}}s=A(s)}}function u(t){return c(t,!0)}return null==(i=t.document)||i.createElement("div").addEventListener("test",null,{get capture(){return o.supportsOptions=!0},get passive(){return o.supportsPassive=!0}}),t.events=o,o}},Wi={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var i=0,e=Wi.methodOrder;i<e.length;i++){var n=Wi[e[i]](t);if(n)return n}return null},simulationResume:function(t){var i=t.pointerType,e=t.eventTarget,n=t.scope;if(!/down|start/i.test(t.eventType))return null;for(var r=0,o=n.interactions.list;r<o.length;r++){var a=o[r],s=e;if(a.simulation&&a.simulation.allowResume&&a.pointerType===i)for(;s;){if(s===a.element)return a;s=A(s)}}return null},mouseOrPen:function(t){var i,e=t.pointerId,n=t.pointerType,r=t.eventType,o=t.scope;if("mouse"!==n&&"pen"!==n)return null;for(var a=0,s=o.interactions.list;a<s.length;a++){var c=s[a];if(c.pointerType===n){if(c.simulation&&!Ji(c,e))continue;if(c.interacting())return c;i||(i=c)}}if(i)return i;for(var u=0,l=o.interactions.list;u<l.length;u++){var h=l[u];if(!(h.pointerType!==n||/down/i.test(r)&&h.simulation))return h}return null},hasPointer:function(t){for(var i=t.pointerId,e=0,n=t.scope.interactions.list;e<n.length;e++){var r=n[e];if(Ji(r,i))return r}return null},idle:function(t){for(var i=t.pointerType,e=0,n=t.scope.interactions.list;e<n.length;e++){var r=n[e];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&i===r.pointerType)return r}return null}};function Ji(t,i){return t.pointers.some((function(t){return t.id===i}))}var Qi=Wi,Zi=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function te(t,i){return function(e){var n=i.interactions.list,r=vt(e),o=dt(e),a=o[0],s=o[1],c=[];if(/^touch/.test(e.type)){i.prevTouchTime=i.now();for(var u=0,l=e.changedTouches;u<l.length;u++){var h=l[u],f={pointer:h,pointerId:st(h),pointerType:r,eventType:e.type,eventTarget:a,curEventTarget:s,scope:i},v=ie(f);c.push([f.pointer,f.eventTarget,f.curEventTarget,v])}}else{var d=!1;if(!P.supportsPointerEvent&&/mouse/.test(e.type)){for(var p=0;p<n.length&&!d;p++)d="mouse"!==n[p].pointerType&&n[p].pointerIsDown;d=d||i.now()-i.prevTouchTime<500||0===e.timeStamp}if(!d){var g={pointer:e,pointerId:st(e),pointerType:r,eventType:e.type,curEventTarget:s,eventTarget:a,scope:i},m=ie(g);c.push([g.pointer,g.eventTarget,g.curEventTarget,m])}}for(var y=0;y<c.length;y++){var b=c[y];b[3][t](b[0],e,b[1],b[2])}}}function ie(t){var i=t.pointerType,e=t.scope,n={interaction:Qi.search(t),searchDetails:t};return e.fire("interactions:find",n),n.interaction||e.interactions.new({pointerType:i})}function ee(t,i){var e=t.doc,n=t.scope,r=t.options,o=n.interactions.docEvents,a=n.events,s=a[i];for(var c in n.browser.isIOS&&!r.events&&(r.events={passive:!1}),a.delegatedEvents)s(e,c,a.delegateListener),s(e,c,a.delegateUseCapture,!0);for(var u=r&&r.events,l=0;l<o.length;l++){var h=o[l];s(e,h.type,h.listener,u)}}var ne={id:"core/interactions",install:function(t){for(var i={},e=0;e<Zi.length;e++){var r=Zi[e];i[r]=te(r,t)}var a,c=P.pEventTypes;function u(){for(var i=0,e=t.interactions.list;i<e.length;i++){var n=e[i];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var r=function(){var i=a[o];t.documents.some((function(t){return D(t.doc,i.downTarget)}))||n.removePointer(i.pointer,i.event)},o=0,a=n.pointers;o<a.length;o++)r()}}(a=j.PointerEvent?[{type:c.down,listener:u},{type:c.down,listener:i.pointerDown},{type:c.move,listener:i.pointerMove},{type:c.up,listener:i.pointerUp},{type:c.cancel,listener:i.pointerUp}]:[{type:"mousedown",listener:i.pointerDown},{type:"mousemove",listener:i.pointerMove},{type:"mouseup",listener:i.pointerUp},{type:"touchstart",listener:u},{type:"touchstart",listener:i.pointerDown},{type:"touchmove",listener:i.pointerMove},{type:"touchend",listener:i.pointerUp},{type:"touchcancel",listener:i.pointerUp}]).push({type:"blur",listener:function(i){for(var e=0,n=t.interactions.list;e<n.length;e++)n[e].documentBlur(i)}}),t.prevTouchTime=0,t.Interaction=function(i){s(r,i);var e=h(r);function r(){return n(this,r),e.apply(this,arguments)}return o(r,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(i){t.interactions.pointerMoveTolerance=i}},{key:"_now",value:function(){return t.now()}}]),r}(Pi),t.interactions={list:[],new:function(i){i.scopeFire=function(i,e){return t.fire(i,e)};var e=new t.Interaction(i);return t.interactions.list.push(e),e},listeners:i,docEvents:a,pointerMoveTolerance:1},t.usePlugin(gi)},listeners:{"scope:add-document":function(t){return ee(t,"add")},"scope:remove-document":function(t){return ee(t,"remove")},"interactable:unset":function(t,i){for(var e=t.interactable,n=i.interactions.list.length-1;n>=0;n--){var r=i.interactions.list[n];r.interactable===e&&(r.stop(),i.fire("interactions:destroy",{interaction:r}),r.destroy(),i.interactions.list.length>2&&i.interactions.list.splice(n,1))}}},onDocSignal:ee,doOnInteractions:te,methodNames:Zi},re=ne,oe=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(oe||{}),ae=function(){function t(i,e,r,o){n(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Ni,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=e.actions,this.target=i,this._context=e.context||r,this._win=y(U(i)?this._context:i),this._doc=this._win.document,this._scopeEvents=o,this.set(e)}return o(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,i){return w.func(i.onstart)&&this.on("".concat(t,"start"),i.onstart),w.func(i.onmove)&&this.on("".concat(t,"move"),i.onmove),w.func(i.onend)&&this.on("".concat(t,"end"),i.onend),w.func(i.oninertiastart)&&this.on("".concat(t,"inertiastart"),i.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,i,e){var n,r=this,o=null==(n=this._actions.map[t])?void 0:n.filterEventType,a=function(t){return(null==o||o(t))&&mi(t,r._actions)};(w.array(i)||w.object(i))&&this._onOff(oe.Off,t,i,void 0,a),(w.array(e)||w.object(e))&&this._onOff(oe.On,t,e,void 0,a)}},{key:"setPerAction",value:function(t,i){var e=this._defaults;for(var n in i){var r=n,o=this.options[t],a=i[r];"listeners"===r&&this.updatePerActionListeners(t,o.listeners,a),w.array(a)?o[r]=mt(a):w.plainObject(a)?(o[r]=V(o[r]||{},yi(a)),w.object(e.perAction[r])&&"enabled"in e.perAction[r]&&(o[r].enabled=!1!==a.enabled)):w.bool(a)&&w.object(e.perAction[r])?o[r].enabled=a:o[r]=a}}},{key:"getRect",value:function(t){return t=t||(w.element(this.target)?this.target:null),w.string(this.target)&&(t=t||this._context.querySelector(this.target)),X(t)}},{key:"rectChecker",value:function(t){var i=this;return w.func(t)?(this.getRect=function(e){var n=V({},t.apply(i,e));return"width"in n||(n.width=n.right-n.left,n.height=n.bottom-n.top),n},this):null===t?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,i){if(U(i)||w.object(i)){for(var e in this.options[t]=i,this._actions.map)this.options[e][t]=i;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return w.string(t)?Array.from(this._context.querySelectorAll(t)):w.func(t)&&t.getAllElements?t.getAllElements():w.element(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||D(this._context,t)}},{key:"testIgnoreAllow",value:function(t,i,e){return!this.testIgnore(t.ignoreFrom,i,e)&&this.testAllow(t.allowFrom,i,e)}},{key:"testAllow",value:function(t,i,e){return!t||!!w.element(e)&&(w.string(t)?L(e,t,i):!!w.element(t)&&D(t,e))}},{key:"testIgnore",value:function(t,i,e){return!(!t||!w.element(e))&&(w.string(t)?L(e,t,i):!!w.element(t)&&D(t,e))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,i,e,n,r){w.object(i)&&!w.array(i)&&(n=e,e=null);var o=J(i,e,r);for(var a in o){"wheel"===a&&(a=P.wheelEvent);for(var s=0,c=o[a];s<c.length;s++){var u=c[s];mi(a,this._actions)?this.events[t===oe.On?"on":"off"](a,u):w.string(this.target)?this._scopeEvents[t===oe.On?"addDelegate":"removeDelegate"](this.target,this._context,a,u,n):this._scopeEvents[t===oe.On?"add":"remove"](this.target,a,u,n)}}return this}},{key:"on",value:function(t,i,e){return this._onOff(oe.On,t,i,e)}},{key:"off",value:function(t,i,e){return this._onOff(oe.Off,t,i,e)}},{key:"set",value:function(t){var i=this._defaults;for(var e in w.object(t)||(t={}),this.options=yi(i.base),this._actions.methodDict){var n=e,r=this._actions.methodDict[n];this.options[n]={},this.setPerAction(n,V(V({},i.perAction),i.actions[n])),this[r](t[n])}for(var o in t)"getRect"!==o?w.func(this[o])&&this[o](t[o]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(w.string(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var i=this._scopeEvents.delegatedEvents[t],e=i.length-1;e>=0;e--){var n=i[e],r=n.listeners;n.selector===this.target&&n.context===this._context&&i.splice(e,1);for(var o=r.length-1;o>=0;o--)this._scopeEvents.removeDelegate(this.target,this._context,t,r[o][0],r[o][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),se=function(){function t(i){var e=this;n(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=i,i.addListeners({"interactable:unset":function(t){var i=t.interactable,n=i.target,r=w.string(n)?e.selectorMap[n]:n[e.scope.id],o=yt(r,(function(t){return t===i}));r.splice(o,1)}})}return o(t,[{key:"new",value:function(t,i){i=V(i||{},{actions:this.scope.actions});var e=new this.scope.Interactable(t,i,this.scope.document,this.scope.events);return this.scope.addDocument(e._doc),this.list.push(e),w.string(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(e)):(e.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(e)),this.scope.fire("interactable:new",{target:t,options:i,interactable:e,win:this.scope._win}),e}},{key:"getExisting",value:function(t,i){var e=i&&i.context||this.scope.document,n=w.string(t),r=n?this.selectorMap[t]:t[this.scope.id];if(r)return bt(r,(function(i){return i._context===e&&(n||i.inContext(t))}))}},{key:"forEachMatch",value:function(t,i){for(var e=0,n=this.list;e<n.length;e++){var r=n[e],o=void 0;if((w.string(r.target)?w.element(t)&&R(t,r.target):t===r.target)&&r.inContext(t)&&(o=i(r)),void 0!==o)return o}}}]),t}(),ce=function(){function t(){var i=this;n(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=P,this.defaults=yi(Ei),this.Eventable=Ni,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){var i=function i(e,n){var r=t.interactables.getExisting(e,n);return r||((r=t.interactables.new(e,n)).events.global=i.globalEvents),r};return i.getPointerAverage=ut,i.getTouchBBox=lt,i.getTouchDistance=ht,i.getTouchAngle=ft,i.getElementRect=X,i.getElementClientRect=B,i.matchesSelector=R,i.closest=C,i.globalEvents={},i.version="1.10.27",i.scope=t,i.use=function(t,i){return this.scope.usePlugin(t,i),this},i.isSet=function(t,i){return!!this.scope.interactables.get(t,i&&i.context)},i.on=Gt((function(t,i,e){if(w.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),w.array(t)){for(var n=0,r=t;n<r.length;n++)this.on(r[n],i,e);return this}if(w.object(t)){for(var o in t)this.on(o,t[o],i);return this}return mi(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(i):this.globalEvents[t]=[i]:this.scope.events.add(this.scope.document,t,i,{options:e}),this}),"The interact.on() method is being deprecated"),i.off=Gt((function(t,i,e){if(w.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),w.array(t)){for(var n=0,r=t;n<r.length;n++)this.off(r[n],i,e);return this}if(w.object(t)){for(var o in t)this.off(o,t[o],i);return this}var a;return mi(t,this.scope.actions)?t in this.globalEvents&&-1!==(a=this.globalEvents[t].indexOf(i))&&this.globalEvents[t].splice(a,1):this.scope.events.remove(this.scope.document,t,i,e),this}),"The interact.off() method is being deprecated"),i.debug=function(){return this.scope},i.supportsTouch=function(){return P.supportsTouch},i.supportsPointerEvent=function(){return P.supportsPointerEvent},i.stop=function(){for(var t=0,i=this.scope.interactions.list;t<i.length;t++)i[t].stop();return this},i.pointerMoveTolerance=function(t){return w.number(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},i.addDocument=function(t,i){this.scope.addDocument(t,i)},i.removeDocument=function(t){this.scope.removeDocument(t)},i}(this),this.InteractEvent=Oi,this.Interactable=void 0,this.interactables=new se(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(t){return i.removeDocument(t.target)};var e=this;this.Interactable=function(t){s(r,t);var i=h(r);function r(){return n(this,r),i.apply(this,arguments)}return o(r,[{key:"_defaults",get:function(){return e.defaults}},{key:"set",value:function(t){return f(c(r.prototype),"set",this).call(this,t),e.fire("interactable:set",{options:t,interactable:this}),this}},{key:"unset",value:function(){f(c(r.prototype),"unset",this).call(this);var t=e.interactables.list.indexOf(this);t<0||(e.interactables.list.splice(t,1),e.fire("interactable:unset",{interactable:this}))}}]),r}(ae)}return o(t,[{key:"addListeners",value:function(t,i){this.listenerMaps.push({id:i,map:t})}},{key:"fire",value:function(t,i){for(var e=0,n=this.listenerMaps;e<n.length;e++){var r=n[e].map[t];if(r&&!1===r(i,this,t))return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(t,i){return t.isInitialized=!0,w.window(i)&&m(i),j.init(i),P.init(i),Yt(i),t.window=i,t.document=i.document,t.usePlugin(re),t.usePlugin(Ki),t}(this,t)}},{key:"pluginIsInstalled",value:function(t){var i=t.id;return i?!!this._plugins.map[i]:-1!==this._plugins.list.indexOf(t)}},{key:"usePlugin",value:function(t,i){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,i),t.listeners&&t.before){for(var e=0,n=this.listenerMaps.length,r=t.before.reduce((function(t,i){return t[i]=!0,t[ue(i)]=!0,t}),{});e<n;e++){var o=this.listenerMaps[e].id;if(o&&(r[o]||r[ue(o)]))break}this.listenerMaps.splice(e,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,i){if(-1!==this.getDocIndex(t))return!1;var e=y(t);i=i?V({},i):{},this.documents.push({doc:t,options:i}),this.events.documents.push(t),t!==this.document&&this.events.add(e,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:e,scope:this,options:i})}},{key:"removeDocument",value:function(t){var i=this.getDocIndex(t),e=y(t),n=this.documents[i].options;this.events.remove(e,"unload",this.onWindowUnload),this.documents.splice(i,1),this.events.documents.splice(i,1),this.fire("scope:remove-document",{doc:t,window:e,scope:this,options:n})}},{key:"getDocIndex",value:function(t){for(var i=0;i<this.documents.length;i++)if(this.documents[i].doc===t)return i;return-1}},{key:"getDocOptions",value:function(t){var i=this.getDocIndex(t);return-1===i?null:this.documents[i].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function ue(t){return t&&t.replace(/\/.*$/,"")}var le=new ce,he=le.interactStatic,fe="undefined"!=typeof globalThis?globalThis:window;le.init(fe);var ve=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var i=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(i){return i[0]in t||i[1]in t})),e=function(e,n){for(var r=t.limits,o=void 0===r?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:r,a=t.offset,s=void 0===a?{x:0,y:0}:a,c={range:t.range,grid:t,x:null,y:null},u=0;u<i.length;u++){var l=i[u],h=l[0],f=l[1],v=Math.round((e-s.x)/t[h]),d=Math.round((n-s.y)/t[f]);c[h]=Math.max(o.left,Math.min(o.right,v*t[h]+s.x)),c[f]=Math.max(o.top,Math.min(o.bottom,d*t[f]+s.y))}return c};return e.grid=t,e.coordFields=i,e}}),de={id:"snappers",install:function(t){var i=t.interactStatic;i.snappers=V(i.snappers||{},ve),i.createSnapGrid=i.snappers.grid}},pe=de,ge={start:function(t){var e=t.state,n=t.rect,r=t.edges,o=e.options,a=o.ratio,s=o.enabled,c=e.options,u=c.equalDelta,l=c.modifiers;"preserve"===a&&(a=n.width/n.height),e.startCoords=V({},t.pageCoords),e.startRect=V({},n),e.ratio=a,e.equalDelta=u;var h=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta){var f=(h.left?1:-1)*(h.top?1:-1);e.edgeSign={x:f,y:f}}else e.edgeSign={x:h.left?-1:1,y:h.top?-1:1};if(!1!==s&&V(r,h),null!=l&&l.length){var v=new bi(t.interaction);v.copyFrom(t.interaction.modification),v.prepareStates(l),e.subModification=v,v.startAll(i({},t))}},set:function(t){var e=t.state,n=t.rect,r=t.coords,o=e.linkedEdges,a=V({},r),s=e.equalDelta?me:ye;if(V(t.edges,o),s(e,e.xIsPrimaryAxis,r,n),!e.subModification)return null;var c=V({},n);K(o,c,{x:r.x-a.x,y:r.y-a.y});var u=e.subModification.setAll(i(i({},t),{},{rect:c,edges:o,pageCoords:r,prevCoords:r,prevRect:c})),l=u.delta;return u.changed&&(s(e,Math.abs(l.x)>Math.abs(l.y),u.coords,u.rect),V(r,u.coords)),u.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function me(t,i,e){var n=t.startCoords,r=t.edgeSign;i?e.y=n.y+(e.x-n.x)*r.y:e.x=n.x+(e.y-n.y)*r.x}function ye(t,i,e,n){var r=t.startRect,o=t.startCoords,a=t.ratio,s=t.edgeSign;i?e.y=o.y+(n.width/a-r.height)*s.y:e.x=o.x+(n.height*a-r.width)*s.x}var be=wi(ge,"aspectRatio"),xe=function(){};xe._defaults={};var we=xe;function ke(t,i,e){return w.func(t)?q(t,i.interactable,i.element,[e.x,e.y,i]):q(t,i.interactable,i.element)}var ze={start:function(t){var i=t.rect,e=t.startOffset,n=t.state,r=t.interaction,o=t.pageCoords,a=n.options,s=a.elementRect,c=V({left:0,top:0,right:0,bottom:0},a.offset||{});if(i&&s){var u=ke(a.restriction,r,o);if(u){var l=u.right-u.left-i.width,h=u.bottom-u.top-i.height;l<0&&(c.left+=l,c.right+=l),h<0&&(c.top+=h,c.bottom+=h)}c.left+=e.left-i.width*s.left,c.top+=e.top-i.height*s.top,c.right+=e.right-i.width*(1-s.right),c.bottom+=e.bottom-i.height*(1-s.bottom)}n.offset=c},set:function(t){var i=t.coords,e=t.state,n=e.offset,r=ke(e.options.restriction,t.interaction,i);if(r){var o=function(t){return!t||"left"in t&&"top"in t||((t=V({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(r);i.x=Math.max(Math.min(o.right-n.right,i.x),o.left+n.left),i.y=Math.max(Math.min(o.bottom-n.bottom,i.y),o.top+n.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Me=wi(ze,"restrict"),Ee={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Oe={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Se(t,i){for(var e=0,n=["top","left","bottom","right"];e<n.length;e++){var r=n[e];r in t||(t[r]=i[r])}return t}var Te={noInner:Ee,noOuter:Oe,start:function(t){var i,e=t.interaction,n=t.startOffset,r=t.state,o=r.options;o&&(i=H(ke(o.offset,e,e.coords.start.page))),r.offset={top:(i=i||{x:0,y:0}).y+n.top,left:i.x+n.left,bottom:i.y-n.bottom,right:i.x-n.right}},set:function(t){var i=t.coords,e=t.edges,n=t.interaction,r=t.state,o=r.offset,a=r.options;if(e){var s=V({},i),c=ke(a.inner,n,s)||{},u=ke(a.outer,n,s)||{};Se(c,Ee),Se(u,Oe),e.top?i.y=Math.min(Math.max(u.top+o.top,s.y),c.top+o.top):e.bottom&&(i.y=Math.max(Math.min(u.bottom+o.bottom,s.y),c.bottom+o.bottom)),e.left?i.x=Math.min(Math.max(u.left+o.left,s.x),c.left+o.left):e.right&&(i.x=Math.max(Math.min(u.right+o.right,s.x),c.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},je=wi(Te,"restrictEdges"),Ie=V({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},ze.defaults),Pe=wi({start:ze.start,set:ze.set,defaults:Ie},"restrictRect"),De={width:-1/0,height:-1/0},Ce={width:1/0,height:1/0},Ae=wi({start:function(t){return Te.start(t)},set:function(t){var i=t.interaction,e=t.state,n=t.rect,r=t.edges,o=e.options;if(r){var a=G(ke(o.min,i,t.coords))||De,s=G(ke(o.max,i,t.coords))||Ce;e.options={endOnly:o.endOnly,inner:V({},Te.noInner),outer:V({},Te.noOuter)},r.top?(e.options.inner.top=n.bottom-a.height,e.options.outer.top=n.bottom-s.height):r.bottom&&(e.options.inner.bottom=n.top+a.height,e.options.outer.bottom=n.top+s.height),r.left?(e.options.inner.left=n.right-a.width,e.options.outer.left=n.right-s.width):r.right&&(e.options.inner.right=n.left+a.width,e.options.outer.right=n.left+s.width),Te.set(t),e.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Re={start:function(t){var i,e=t.interaction,n=t.interactable,r=t.element,o=t.rect,a=t.state,s=t.startOffset,c=a.options,u=c.offsetWithOrigin?function(t){var i=t.interaction.element;return H(q(t.state.options.origin,null,null,[i]))||W(t.interactable,i,t.interaction.prepared.name)}(t):{x:0,y:0};if("startCoords"===c.offset)i={x:e.coords.start.page.x,y:e.coords.start.page.y};else{var l=q(c.offset,n,r,[e]);(i=H(l)||{x:0,y:0}).x+=u.x,i.y+=u.y}var h=c.relativePoints;a.offsets=o&&h&&h.length?h.map((function(t,e){return{index:e,relativePoint:t,x:s.left-o.width*t.x+i.x,y:s.top-o.height*t.y+i.y}})):[{index:0,relativePoint:null,x:i.x,y:i.y}]},set:function(t){var i=t.interaction,e=t.coords,n=t.state,r=n.options,o=n.offsets,a=W(i.interactable,i.element,i.prepared.name),s=V({},e),c=[];r.offsetWithOrigin||(s.x-=a.x,s.y-=a.y);for(var u=0,l=o;u<l.length;u++)for(var h=l[u],f=s.x-h.x,v=s.y-h.y,d=0,p=r.targets.length;d<p;d++){var g,m=r.targets[d];(g=w.func(m)?m(f,v,i._proxy,h,d):m)&&c.push({x:(w.number(g.x)?g.x:f)+h.x,y:(w.number(g.y)?g.y:v)+h.y,range:w.number(g.range)?g.range:r.range,source:m,index:d,offset:h})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<c.length;b++){var x=c[b],k=x.range,z=x.x-s.x,M=x.y-s.y,E=Z(z,M),O=E<=k;k===1/0&&y.inRange&&y.range!==1/0&&(O=!1),y.target&&!(O?y.inRange&&k!==1/0?E/k<y.distance/y.range:k===1/0&&y.range!==1/0||E<y.distance:!y.inRange&&E<y.distance)||(y.target=x,y.distance=E,y.range=k,y.inRange=O,y.delta.x=z,y.delta.y=M)}return y.inRange&&(e.x=y.target.x,e.y=y.target.y),n.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},_e=wi(Re,"snap"),Fe={start:function(t){var i=t.state,e=t.edges,n=i.options;if(!e)return null;t.state={options:{targets:null,relativePoints:[{x:e.left?0:1,y:e.top?0:1}],offset:n.offset||"self",origin:{x:0,y:0},range:n.range}},i.targetFields=i.targetFields||[["width","height"],["x","y"]],Re.start(t),i.offsets=t.state.offsets,t.state=i},set:function(t){var i=t.interaction,e=t.state,n=t.coords,r=e.options,o=e.offsets,a={x:n.x-o[0].x,y:n.y-o[0].y};e.options=V({},r),e.options.targets=[];for(var s=0,c=r.targets||[];s<c.length;s++){var u=c[s],l=void 0;if(l=w.func(u)?u(a.x,a.y,i):u){for(var h=0,f=e.targetFields;h<f.length;h++){var v=f[h],d=v[0],p=v[1];if(d in l||p in l){l.x=l[d],l.y=l[p];break}}e.options.targets.push(l)}}var g=Re.set(t);return e.options=r,g},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Le=wi(Fe,"snapSize"),$e={aspectRatio:be,restrictEdges:je,restrict:Me,restrictRect:Pe,restrictSize:Ae,snapEdges:wi({start:function(t){var i=t.edges;return i?(t.state.targetFields=t.state.targetFields||[[i.left?"left":"right",i.top?"top":"bottom"]],Fe.start(t)):null},set:Fe.set,defaults:V(yi(Fe.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:_e,snapSize:Le,spring:we,avoid:we,transform:we,rubberband:we},Be={id:"modifiers",install:function(t){var i=t.interactStatic;for(var e in t.usePlugin(Mi),t.usePlugin(pe),i.modifiers=$e,$e){var n=$e[e],r=n._defaults;r._methods=n._methods,t.defaults.perAction[e]=r}}},Xe=Be,Ye=function(t){s(e,t);var i=h(e);function e(t,r,o,a,s,c){var u;if(n(this,e),it(l(u=i.call(this,s)),o),o!==r&&it(l(u),r),u.timeStamp=c,u.originalEvent=o,u.type=t,u.pointerId=st(r),u.pointerType=vt(r),u.target=a,u.currentTarget=null,"tap"===t){var h=s.getPointerIndex(r);u.dt=u.timeStamp-s.pointers[h].downTime,u.double=!!s.prevTap&&"doubletap"!==s.prevTap.type&&s.prevTap.target===u.target&&u.timeStamp-s.tapTime<500}else"doubletap"===t&&(u.dt=r.timeStamp-s.tapTime,u.double=!0);return u}return o(e,[{key:"_subtractOrigin",value:function(t){var i=t.x,e=t.y;return this.pageX-=i,this.pageY-=e,this.clientX-=i,this.clientY-=e,this}},{key:"_addOrigin",value:function(t){var i=t.x,e=t.y;return this.pageX+=i,this.pageY+=e,this.clientX+=i,this.clientY+=e,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),e}(pt),Ue={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=Ue,t.defaults.actions.pointerEvents=Ue.defaults,V(t.actions.phaselessTypes,Ue.types)},listeners:{"interactions:new":function(t){var i=t.interaction;i.prevTap=null,i.tapTime=0},"interactions:update-pointer":function(t){var i=t.pointerInfo;!t.down&&i.hold||(i.hold={duration:1/0,timeout:null})},"interactions:move":function(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget;t.duplicate||e.pointerIsDown&&!e.pointerWasMoved||(e.pointerIsDown&&qe(t),Ve({interaction:e,pointer:n,event:r,eventTarget:o,type:"move"},i))},"interactions:down":function(t,i){!function(t,i){for(var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=e.pointers[t.pointerIndex].hold,s=Y(o),c={interaction:e,pointer:n,event:r,eventTarget:o,type:"hold",targets:[],path:s,node:null},u=0;u<s.length;u++)c.node=s[u],i.fire("pointerEvents:collect-targets",c);if(c.targets.length){for(var l=1/0,h=0,f=c.targets;h<f.length;h++){var v=f[h].eventable.options.holdDuration;v<l&&(l=v)}a.duration=l,a.timeout=setTimeout((function(){Ve({interaction:e,eventTarget:o,pointer:n,event:r,type:"hold"},i)}),l)}}(t,i),Ve(t,i)},"interactions:up":function(t,i){qe(t),Ve(t,i),function(t,i){var e=t.interaction;e.pointerWasMoved||Ve({interaction:e,eventTarget:t.eventTarget,pointer:t.pointer,event:t.event,type:"tap"},i)}(t,i)},"interactions:cancel":function(t,i){qe(t),Ve(t,i)}},PointerEvent:Ye,fire:Ve,collectEventTargets:Ne,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function Ve(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=t.type,s=t.targets,c=void 0===s?Ne(t,i):s,u=new Ye(a,n,r,o,e,i.now());i.fire("pointerEvents:new",{pointerEvent:u});for(var l={interaction:e,pointer:n,event:r,eventTarget:o,targets:c,type:a,pointerEvent:u},h=0;h<c.length;h++){var f=c[h];for(var v in f.props||{})u[v]=f.props[v];var d=W(f.eventable,f.node);if(u._subtractOrigin(d),u.eventable=f.eventable,u.currentTarget=f.node,f.eventable.fire(u),u._addOrigin(d),u.immediatePropagationStopped||u.propagationStopped&&h+1<c.length&&c[h+1].node!==u.currentTarget)break}if(i.fire("pointerEvents:fired",l),"tap"===a){var p=u.double?Ve({interaction:e,pointer:n,event:r,eventTarget:o,type:"doubletap"},i):u;e.prevTap=p,e.tapTime=p.timeStamp}return u}function Ne(t,i){var e=t.interaction,n=t.pointer,r=t.event,o=t.eventTarget,a=t.type,s=e.getPointerIndex(n),c=e.pointers[s];if("tap"===a&&(e.pointerWasMoved||!c||c.downTarget!==o))return[];for(var u=Y(o),l={interaction:e,pointer:n,event:r,eventTarget:o,type:a,path:u,targets:[],node:null},h=0;h<u.length;h++)l.node=u[h],i.fire("pointerEvents:collect-targets",l);return"hold"===a&&(l.targets=l.targets.filter((function(t){var i,n;return t.eventable.options.holdDuration===(null==(i=e.pointers[s])||null==(n=i.hold)?void 0:n.duration)}))),l.targets}function qe(t){var i=t.interaction.pointers[t.pointerIndex].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var He=Object.freeze({__proto__:null,default:Ue});function Ge(t){var i=t.interaction;i.holdIntervalHandle&&(clearInterval(i.holdIntervalHandle),i.holdIntervalHandle=null)}var Ke={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin(Ue);var i=t.pointerEvents;i.defaults.holdRepeatInterval=0,i.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(t,i){return t["pointerEvents:".concat(i)]=Ge,t}),{"pointerEvents:new":function(t){var i=t.pointerEvent;"hold"===i.type&&(i.count=(i.count||0)+1)},"pointerEvents:fired":function(t,i){var e=t.interaction,n=t.pointerEvent,r=t.eventTarget,o=t.targets;if("hold"===n.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(e.holdIntervalHandle=setTimeout((function(){i.pointerEvents.fire({interaction:e,eventTarget:r,type:"hold",pointer:n,event:n},i)}),a))}}})},We=Ke,Je={id:"pointer-events/interactableTargets",install:function(t){var i=t.Interactable;i.prototype.pointerEvents=function(t){return V(this.events.options,t),this};var e=i.prototype._backCompatOption;i.prototype._backCompatOption=function(t,i){var n=e.call(this,t,i);return n===this&&(this.events.options[t]=i),n}},listeners:{"pointerEvents:collect-targets":function(t,i){var e=t.targets,n=t.node,r=t.type,o=t.eventTarget;i.interactables.forEachMatch(n,(function(t){var i=t.events;i.types[r]&&i.types[r].length&&t.testIgnoreAllow(i.options,n,o)&&e.push({node:n,eventable:i,props:{interactable:t}})}))},"interactable:new":function(t){var i=t.interactable;i.events.getRect=function(t){return i.getRect(t)}},"interactable:set":function(t,i){var e=t.interactable,n=t.options;V(e.events.options,i.pointerEvents.defaults),V(e.events.options,n.pointerEvents||{})}}},Qe=Je,Ze={id:"pointer-events",install:function(t){t.usePlugin(He),t.usePlugin(We),t.usePlugin(Qe)}},tn=Ze,en={id:"reflow",install:function(t){var i=t.Interactable;t.actions.phases.reflow=!0,i.prototype.reflow=function(i){return function(t,i,e){for(var n=t.getAllElements(),r=e.window.Promise,o=r?[]:null,a=function(){var a=n[s],c=t.getRect(a);if(!c)return 1;var u,l=bt(e.interactions.list,(function(e){return e.interacting()&&e.interactable===t&&e.element===a&&e.prepared.name===i.name}));if(l)l.move(),o&&(u=l._reflowPromise||new r((function(t){l._reflowResolve=t})));else{var h=G(c),f=function(t){return{coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:h.x,y:h.y},client:{x:h.x,y:h.y},timeStamp:e.now()});u=function(t,i,e,n,r){var o=t.interactions.new({pointerType:"reflow"}),a={interaction:o,event:r,pointer:r,eventTarget:e,phase:"reflow"};o.interactable=i,o.element=e,o.prevEvent=r,o.updatePointer(r,r,e,!0),nt(o.coords.delta),Kt(o.prepared,n),o._doPhase(a);var s=t.window.Promise,c=s?new s((function(t){o._reflowResolve=t})):void 0;return o._reflowPromise=c,o.start(n,i,e),o._interacting?(o.move(a),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),c}(e,t,a,i,f)}o&&o.push(u)},s=0;s<n.length&&!a();s++);return o&&r.all(o).then((function(){return t}))}(this,i,t)}},listeners:{"interactions:stop":function(t,i){var e=t.interaction;"reflow"===e.pointerType&&(e._reflowResolve&&e._reflowResolve(),function(t,i){t.splice(t.indexOf(i),1)}(i.interactions.list,e))}}},nn=en;if(he.use(gi),he.use(Fi),he.use(tn),he.use(Ui),he.use(Xe),he.use(vi),he.use(Lt),he.use(Ht),he.use(nn),he.default=he,"object"===e(E)&&E)try{E.exports=he}catch(t){}return he.default=he,he}();const S=O.exports,T="container",j="container--open",I="container--embedded",P=25,D={x:0,y:0},C={top:0,right:0,bottom:0,left:0};
|
7
7
|
/*!
|
8
8
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
9
9
|
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as a}from"./p-
|
6
|
+
import{d as a}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";function e(a,e,t,s){var p={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:["%d minuti","%d minutit"],h:["ühe tunni","tund aega","üks tund"],hh:["%d tunni","%d tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:["%d kuu","%d kuud"],y:["ühe aasta","aasta","üks aasta"],yy:["%d aasta","%d aastat"]};return e?(p[t][2]?p[t][2]:p[t][1]).replace("%d",a):(s?p[t][0]:p[t][1]).replace("%d",a)}var t={name:"et",weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),ordinal:function(a){return a+"."},weekStart:1,relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};a.locale(t,null,!0);export{t as default}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as e}from"./p-
|
6
|
+
import{d as e}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";function r(e){return e%100==2}function t(e){return e%100==3||e%100==4}function m(e,m,a,s){var n=e+" ";switch(a){case"s":return m||s?"nekaj sekund":"nekaj sekundami";case"m":return m?"ena minuta":"eno minuto";case"mm":return r(e)?n+(m||s?"minuti":"minutama"):t(e)?n+(m||s?"minute":"minutami"):n+(m||s?"minut":"minutami");case"h":return m?"ena ura":"eno uro";case"hh":return r(e)?n+(m||s?"uri":"urama"):t(e)?n+(m||s?"ure":"urami"):n+(m||s?"ur":"urami");case"d":return m||s?"en dan":"enim dnem";case"dd":return r(e)?n+(m||s?"dneva":"dnevoma"):n+(m||s?"dni":"dnevi");case"M":return m||s?"en mesec":"enim mesecem";case"MM":return r(e)?n+(m||s?"meseca":"mesecema"):t(e)?n+(m||s?"mesece":"meseci"):n+(m||s?"mesecev":"meseci");case"y":return m||s?"eno leto":"enim letom";case"yy":return r(e)?n+(m||s?"leti":"letoma"):t(e)?n+(m||s?"leta":"leti"):n+(m||s?"let":"leti")}}var a={name:"sl",weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),weekStart:1,weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"čez %s",past:"pred %s",s:m,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m}};e.locale(a,null,!0);export{a as default}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{d as e}from"./p-
|
6
|
+
import{d as e}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var m={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"}};e.locale(m,null,!0);export{m as default}
|