@yoobic/yobi 7.7.107 → 7.7.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ResizeObserver.es-2edf4ecd.js → ResizeObserver.es-c7052b0e.js} +45 -31
- package/dist/cjs/{common-helpers-797be2a6.js → common-helpers-5ccc8eb4.js} +1 -1
- package/dist/cjs/{draggable-dots-helpers-9fc36b3b.js → draggable-dots-helpers-e1fec27e.js} +2 -2
- package/dist/cjs/{form-helpers-ec3c2d29.js → form-helpers-5ee40d7d.js} +1 -1
- package/dist/cjs/{form-input-helpers-9e98c0e6.js → form-input-helpers-eabbacc7.js} +1 -1
- package/dist/cjs/{grid-renderers-450b84ec.js → grid-renderers-5fb7952e.js} +3 -3
- package/dist/cjs/{hammer-gestures-3d3ed244.js → hammer-gestures-a0a4eac6.js} +1 -1
- package/dist/cjs/{index-72dc3f3e.js → index-0db4c149.js} +1 -1
- package/dist/cjs/index.cjs.js +10 -10
- package/dist/cjs/{localForage-82b6f557.js → localForage-8f44550d.js} +1 -1
- package/dist/cjs/{map-helpers-021bd715.js → map-helpers-e85f34e7.js} +1 -1
- package/dist/cjs/{observer-helpers-b02f15af.js → observer-helpers-8b7883b6.js} +1 -1
- package/dist/cjs/{video-player-helpers-658b4a9a.js → video-player-helpers-5ba6bee1.js} +1 -1
- package/dist/cjs/yoo-accordion.cjs.entry.js +2 -2
- package/dist/cjs/yoo-action-sheet-controller_15.cjs.entry.js +6 -6
- package/dist/cjs/yoo-action-sheet.cjs.entry.js +2 -2
- package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +10 -10
- package/dist/cjs/yoo-alert.cjs.entry.js +2 -2
- package/dist/cjs/yoo-audio-recorder-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-avatar_5.cjs.entry.js +4 -4
- package/dist/cjs/yoo-background-blur.cjs.entry.js +2 -2
- package/dist/cjs/yoo-background.cjs.entry.js +2 -2
- package/dist/cjs/yoo-battle-count-down.cjs.entry.js +2 -2
- package/dist/cjs/yoo-battle-user-stats.cjs.entry.js +2 -2
- package/dist/cjs/yoo-camera-preview-dialog_7.cjs.entry.js +4 -4
- package/dist/cjs/yoo-campaign-heading.cjs.entry.js +1 -1
- package/dist/cjs/yoo-card-header.cjs.entry.js +1 -1
- package/dist/cjs/yoo-card-incentive.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-list-image_12.cjs.entry.js +7 -7
- package/dist/cjs/yoo-chat-message-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-chat-message_3.cjs.entry.js +2 -2
- package/dist/cjs/yoo-chat.cjs.entry.js +2 -2
- package/dist/cjs/yoo-context-menu-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-count-down.cjs.entry.js +2 -2
- package/dist/cjs/yoo-course-detail.cjs.entry.js +2 -2
- package/dist/cjs/yoo-course-summary.cjs.entry.js +2 -2
- package/dist/cjs/yoo-detail-bar.cjs.entry.js +1 -1
- package/dist/cjs/yoo-entity-search.cjs.entry.js +2 -2
- package/dist/cjs/yoo-feed-detail.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-calendar-dialog_2.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-categorize-words.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-checklist.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-choice_4.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-color-field.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-connect.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-block-expandable.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-creator-block-simple_4.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-card_2.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-creator-field-selector_8.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-translate-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-creator.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-daterange.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-emailreport.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-feed-preview.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-formula.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-image-tagging-creator.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-image-tagging.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-incentive-targets.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-json.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-location.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-missing-word.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-missionfield.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-multi-input.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-permissions.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-phone-number.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-plan-assign.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-pricecheck.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-product-batch.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-products-sales.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-qrcode.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-query-builder.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-range.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-ranking.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-reorder.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-scorm.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-shopping.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-signature-pad-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-signature-pad.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-sorts.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-stripe-card.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +5 -5
- package/dist/cjs/yoo-form-table.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-text-editor.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-timeslots.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-todo-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-todo-list-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-todo-list.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-todo-single.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-todo.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-uploader.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-videoplayer.cjs.entry.js +3 -3
- package/dist/cjs/yoo-header_7.cjs.entry.js +3 -3
- package/dist/cjs/yoo-healthscore-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-incentive-detail.cjs.entry.js +2 -2
- package/dist/cjs/yoo-input-bar.cjs.entry.js +45 -17
- package/dist/cjs/yoo-ion-modal.cjs.entry.js +2 -2
- package/dist/cjs/yoo-kpi-container.cjs.entry.js +3 -3
- package/dist/cjs/yoo-lesson-detail.cjs.entry.js +2 -2
- package/dist/cjs/yoo-lesson-heading_2.cjs.entry.js +2 -2
- package/dist/cjs/yoo-location-heading.cjs.entry.js +2 -2
- package/dist/cjs/yoo-location-map.cjs.entry.js +2 -2
- package/dist/cjs/yoo-mission-detail.cjs.entry.js +2 -2
- package/dist/cjs/yoo-mission-heading_3.cjs.entry.js +2 -2
- package/dist/cjs/yoo-mission-results.cjs.entry.js +2 -2
- package/dist/cjs/yoo-mission-todo.cjs.entry.js +1 -1
- package/dist/cjs/yoo-mobile-tabbar.cjs.entry.js +2 -2
- package/dist/cjs/yoo-modal.cjs.entry.js +2 -2
- package/dist/cjs/yoo-podium.cjs.entry.js +2 -2
- package/dist/cjs/yoo-profile-summary.cjs.entry.js +2 -2
- package/dist/cjs/yoo-scratch-card.cjs.entry.js +1 -1
- package/dist/cjs/yoo-side-menu.cjs.entry.js +2 -2
- package/dist/cjs/yoo-slides-media.cjs.entry.js +2 -2
- package/dist/cjs/yoo-start-meeting-popup.cjs.entry.js +2 -2
- package/dist/cjs/yoo-tappable.cjs.entry.js +2 -2
- package/dist/cjs/yoo-text-sequence.cjs.entry.js +2 -2
- package/dist/cjs/yoo-user-picker.cjs.entry.js +2 -2
- package/dist/cjs/yoo-user-profile.cjs.entry.js +2 -2
- package/dist/cjs/yoo-user-wizard.cjs.entry.js +2 -2
- package/dist/cjs/yoo-videoplayer-dailymotion.cjs.entry.js +3 -3
- package/dist/cjs/yoo-videoplayer-videojs.cjs.entry.js +5 -5
- package/dist/cjs/yoo-videoplayer-vimeo.cjs.entry.js +3 -3
- package/dist/cjs/yoo-videoplayer-youtube.cjs.entry.js +3 -3
- package/dist/cjs/yoo-walkthrough.cjs.entry.js +1 -1
- package/dist/cjs/yoo-web-menu.cjs.entry.js +2 -2
- package/dist/cjs/yoo-welcome-banner.cjs.entry.js +2 -2
- package/dist/collection/components/core/input-bar/input-bar.js +44 -16
- package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.css +4 -5
- package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.js +1 -2
- package/dist/collection/utils/helpers/camera-helpers.js +7 -29
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-d2d9ca4d.entry.js → p-00a6db3f.entry.js} +1 -1
- package/dist/design-system/{p-c193b6bd.js → p-033ae1e2.js} +1 -1
- package/dist/design-system/{p-aea4fec9.entry.js → p-09793983.entry.js} +1 -1
- package/dist/design-system/{p-c110a939.entry.js → p-0987bb6a.entry.js} +1 -1
- package/dist/design-system/{p-2cc78238.entry.js → p-0bf911f7.entry.js} +1 -1
- package/dist/design-system/{p-432e8458.js → p-0cd26616.js} +1 -1
- package/dist/design-system/{p-e057d533.entry.js → p-0e29c2ee.entry.js} +1 -1
- package/dist/design-system/{p-b721594f.js → p-1039e3dd.js} +1 -1
- package/dist/design-system/{p-b068e04c.entry.js → p-122b00fb.entry.js} +1 -1
- package/dist/design-system/{p-9c7bd396.entry.js → p-12c145ad.entry.js} +1 -1
- package/dist/design-system/{p-0771216c.entry.js → p-13105bcc.entry.js} +1 -1
- package/dist/design-system/{p-2d82b9f1.entry.js → p-1607f53f.entry.js} +1 -1
- package/dist/design-system/{p-04ba2b29.entry.js → p-1d06d6f0.entry.js} +1 -1
- package/dist/design-system/{p-16c62346.entry.js → p-21e17de1.entry.js} +1 -1
- package/dist/design-system/{p-cf48729c.entry.js → p-260825e9.entry.js} +1 -1
- package/dist/design-system/{p-6200c6ed.entry.js → p-273fedf7.entry.js} +1 -1
- package/dist/design-system/{p-bb89a480.entry.js → p-290ff01b.entry.js} +1 -1
- package/dist/design-system/{p-7274cb11.entry.js → p-2a925818.entry.js} +1 -1
- package/dist/design-system/{p-79fc0259.entry.js → p-2ceed4a4.entry.js} +1 -1
- package/dist/design-system/{p-7c3767ae.entry.js → p-2edb0dcc.entry.js} +1 -1
- package/dist/design-system/{p-b289eb9a.js → p-30b0cd27.js} +1 -1
- package/dist/design-system/{p-956a9d6d.entry.js → p-3581611e.entry.js} +1 -1
- package/dist/design-system/{p-5128c967.entry.js → p-36cd2e2c.entry.js} +1 -1
- package/dist/design-system/{p-026e9ca1.entry.js → p-3758283e.entry.js} +1 -1
- package/dist/design-system/{p-9cc0e77b.entry.js → p-3aaa413f.entry.js} +1 -1
- package/dist/design-system/{p-4a781fc3.entry.js → p-3befd6be.entry.js} +1 -1
- package/dist/design-system/{p-4e1b0f43.entry.js → p-3bfb80f7.entry.js} +1 -1
- package/dist/design-system/{p-a65f0eb2.entry.js → p-3c09a1b8.entry.js} +1 -1
- package/dist/design-system/{p-0d22fbb3.entry.js → p-3cdee426.entry.js} +1 -1
- package/dist/design-system/p-3e63c67b.entry.js +1 -0
- package/dist/design-system/{p-f9455ba7.entry.js → p-3eb0f72d.entry.js} +1 -1
- package/dist/design-system/{p-253900ce.entry.js → p-3ece7352.entry.js} +1 -1
- package/dist/design-system/{p-59a83f00.entry.js → p-436665b2.entry.js} +1 -1
- package/dist/design-system/{p-d8a21ddf.entry.js → p-456973bb.entry.js} +1 -1
- package/dist/design-system/{p-ef235f17.entry.js → p-4a576200.entry.js} +1 -1
- package/dist/design-system/{p-ab8304e5.entry.js → p-4e5e75cf.entry.js} +1 -1
- package/dist/design-system/{p-ce96ce99.entry.js → p-52fc48d6.entry.js} +1 -1
- package/dist/design-system/{p-bf6acbfe.js → p-539eee79.js} +1 -1
- package/dist/design-system/{p-af2c5b72.entry.js → p-546fb3f8.entry.js} +1 -1
- package/dist/design-system/{p-6bc1375d.entry.js → p-57306ff7.entry.js} +1 -1
- package/dist/design-system/{p-33b2d3a2.js → p-5795afcd.js} +1 -1
- package/dist/design-system/{p-ad6a2766.entry.js → p-58d2f0a0.entry.js} +1 -1
- package/dist/design-system/{p-df60248d.entry.js → p-5c089b30.entry.js} +1 -1
- package/dist/design-system/{p-8e7364b6.entry.js → p-5c262b83.entry.js} +1 -1
- package/dist/design-system/{p-ead8e0b6.entry.js → p-63c986d3.entry.js} +1 -1
- package/dist/design-system/{p-7690b828.entry.js → p-647ad98a.entry.js} +1 -1
- package/dist/design-system/p-665536ff.js +1 -0
- package/dist/design-system/{p-ce9c6894.entry.js → p-6aed7688.entry.js} +1 -1
- package/dist/design-system/{p-96bf4ad0.entry.js → p-6c3b3475.entry.js} +1 -1
- package/dist/design-system/{p-5cf0e905.entry.js → p-6fc412ed.entry.js} +1 -1
- package/dist/design-system/{p-a812571b.entry.js → p-7208f242.entry.js} +1 -1
- package/dist/design-system/{p-fc91b395.entry.js → p-72d14863.entry.js} +1 -1
- package/dist/design-system/{p-e15d7eb8.entry.js → p-735215b4.entry.js} +1 -1
- package/dist/design-system/{p-78c797f6.entry.js → p-74ab1950.entry.js} +1 -1
- package/dist/design-system/{p-1926d761.entry.js → p-7ca745f5.entry.js} +1 -1
- package/dist/design-system/{p-cdfab8ed.js → p-7d00bc99.js} +1 -1
- package/dist/design-system/{p-2dffd4c7.entry.js → p-82ed2112.entry.js} +1 -1
- package/dist/design-system/{p-ceda2745.entry.js → p-836dd95f.entry.js} +1 -1
- package/dist/design-system/{p-8e4919d0.entry.js → p-87ed3e4e.entry.js} +1 -1
- package/dist/design-system/{p-592eb8f1.js → p-8862da79.js} +1 -1
- package/dist/design-system/{p-7520fc98.entry.js → p-88a22cb3.entry.js} +1 -1
- package/dist/design-system/{p-e51ba93b.entry.js → p-8a73ce1b.entry.js} +1 -1
- package/dist/design-system/{p-585e3450.entry.js → p-8cd2dc46.entry.js} +1 -1
- package/dist/design-system/{p-ae86ade4.entry.js → p-8d30f9d1.entry.js} +1 -1
- package/dist/design-system/{p-c396ac23.entry.js → p-90e076e3.entry.js} +1 -1
- package/dist/design-system/{p-eb0012d4.entry.js → p-987b87c2.entry.js} +1 -1
- package/dist/design-system/{p-3f8e475e.entry.js → p-9895624b.entry.js} +1 -1
- package/dist/design-system/{p-f64cd6da.entry.js → p-99346742.entry.js} +1 -1
- package/dist/design-system/{p-dd6a7076.entry.js → p-9a6cbcb2.entry.js} +1 -1
- package/dist/design-system/{p-6504133f.entry.js → p-9e7a0156.entry.js} +1 -1
- package/dist/design-system/{p-c96d1f99.entry.js → p-9ed3b5f5.entry.js} +1 -1
- package/dist/design-system/{p-4ec349c7.entry.js → p-a111d402.entry.js} +1 -1
- package/dist/design-system/{p-df069b9e.entry.js → p-a2166116.entry.js} +1 -1
- package/dist/design-system/{p-3e248f61.entry.js → p-a4526fc7.entry.js} +1 -1
- package/dist/design-system/{p-052b2ec8.entry.js → p-a510e9c8.entry.js} +1 -1
- package/dist/design-system/{p-e3aca5ab.entry.js → p-a91491cc.entry.js} +1 -1
- package/dist/design-system/{p-5ec3da0a.entry.js → p-a9643cc6.entry.js} +1 -1
- package/dist/design-system/{p-09a764f9.entry.js → p-ac872ce6.entry.js} +1 -1
- package/dist/design-system/{p-87a03c30.entry.js → p-ad4cb9bb.entry.js} +1 -1
- package/dist/design-system/{p-671b34db.entry.js → p-ad5e6328.entry.js} +1 -1
- package/dist/design-system/{p-993c2e15.entry.js → p-ae23e19e.entry.js} +1 -1
- package/dist/design-system/{p-b5241164.js → p-ae3b4d28.js} +5 -5
- package/dist/design-system/{p-ea0e9ed5.entry.js → p-af15a6c5.entry.js} +1 -1
- package/dist/design-system/{p-a52adcd7.entry.js → p-afe140b6.entry.js} +1 -1
- package/dist/design-system/{p-28dc1ff3.entry.js → p-b0d0e1e5.entry.js} +1 -1
- package/dist/design-system/{p-45147a7d.js → p-bc3c56ff.js} +1 -1
- package/dist/design-system/{p-b11d6b7c.entry.js → p-c12f7be5.entry.js} +1 -1
- package/dist/design-system/{p-1a35b509.entry.js → p-c1f3cc8a.entry.js} +1 -1
- package/dist/design-system/{p-ee705d84.entry.js → p-c206ad13.entry.js} +1 -1
- package/dist/design-system/{p-2b0b863b.entry.js → p-c392f1e6.entry.js} +1 -1
- package/dist/design-system/{p-b6e3273a.entry.js → p-c3e15dac.entry.js} +1 -1
- package/dist/design-system/{p-caf3515c.entry.js → p-c9c2813f.entry.js} +1 -1
- package/dist/design-system/{p-4b57e1f4.entry.js → p-cb8e168c.entry.js} +1 -1
- package/dist/design-system/{p-47861cfc.entry.js → p-cc8daf9f.entry.js} +1 -1
- package/dist/design-system/{p-5d4aeb7c.entry.js → p-cd32b037.entry.js} +1 -1
- package/dist/design-system/{p-427fdaa0.entry.js → p-cf0b682b.entry.js} +1 -1
- package/dist/design-system/{p-ba945d21.entry.js → p-d13e9686.entry.js} +1 -1
- package/dist/design-system/{p-c85bcd68.entry.js → p-d1750c1b.entry.js} +1 -1
- package/dist/design-system/{p-ec91fd78.entry.js → p-d1ea23f4.entry.js} +1 -1
- package/dist/design-system/{p-ee4535bb.entry.js → p-d675c7bc.entry.js} +1 -1
- package/dist/design-system/{p-2b4281d6.entry.js → p-d6ec6dcb.entry.js} +1 -1
- package/dist/design-system/{p-2ff2757f.entry.js → p-d7eef0e1.entry.js} +1 -1
- package/dist/design-system/{p-be2ae101.entry.js → p-d982b759.entry.js} +1 -1
- package/dist/design-system/{p-fb884de6.entry.js → p-daeaee42.entry.js} +1 -1
- package/dist/design-system/{p-07a5ef3b.entry.js → p-dc36ccb6.entry.js} +1 -1
- package/dist/design-system/{p-32308e62.entry.js → p-dc788376.entry.js} +1 -1
- package/dist/design-system/{p-15666fc0.entry.js → p-de2d8a3d.entry.js} +1 -1
- package/dist/design-system/{p-3da8db69.entry.js → p-df64f316.entry.js} +1 -1
- package/dist/design-system/{p-67806011.entry.js → p-df79b367.entry.js} +1 -1
- package/dist/design-system/{p-a1429f43.entry.js → p-e029e86e.entry.js} +1 -1
- package/dist/design-system/{p-9db853c3.js → p-e05da912.js} +1 -1
- package/dist/design-system/{p-86801867.entry.js → p-e42a761c.entry.js} +1 -1
- package/dist/design-system/p-e579fe56.entry.js +1 -0
- package/dist/design-system/{p-ed08b7a7.entry.js → p-eb55476b.entry.js} +1 -1
- package/dist/design-system/{p-3f8e79c8.entry.js → p-eb8970c0.entry.js} +1 -1
- package/dist/design-system/{p-7cd177ea.entry.js → p-ecd97e25.entry.js} +1 -1
- package/dist/design-system/{p-bbc12d63.entry.js → p-ede4e19a.entry.js} +1 -1
- package/dist/design-system/{p-33515ae1.entry.js → p-f0884705.entry.js} +1 -1
- package/dist/design-system/{p-c8e49847.entry.js → p-f1d69b76.entry.js} +1 -1
- package/dist/design-system/{p-ce31e8ab.entry.js → p-f3ff1443.entry.js} +1 -1
- package/dist/design-system/{p-7b7a391f.entry.js → p-f4560bcd.entry.js} +1 -1
- package/dist/design-system/{p-b685989c.entry.js → p-f4eb9207.entry.js} +1 -1
- package/dist/design-system/{p-f41b2115.entry.js → p-f9cfb02a.entry.js} +1 -1
- package/dist/design-system/{p-767c64e2.entry.js → p-fef82254.entry.js} +1 -1
- package/dist/esm/{ResizeObserver.es-a8772c31.js → ResizeObserver.es-96c82103.js} +45 -31
- package/dist/esm/{common-helpers-f3296dd7.js → common-helpers-aa52b9d6.js} +1 -1
- package/dist/esm/{draggable-dots-helpers-85f6fb56.js → draggable-dots-helpers-974a181a.js} +2 -2
- package/dist/esm/{form-helpers-d54ae23e.js → form-helpers-cf4d1af3.js} +1 -1
- package/dist/esm/{form-input-helpers-da854059.js → form-input-helpers-8eb15c63.js} +1 -1
- package/dist/esm/{grid-renderers-725cb52a.js → grid-renderers-41e51023.js} +3 -3
- package/dist/esm/{hammer-gestures-3023c759.js → hammer-gestures-f6c5db65.js} +1 -1
- package/dist/esm/{index-023b3ea8.js → index-11f9d6f7.js} +1 -1
- package/dist/esm/index.js +10 -10
- package/dist/esm/{localForage-fb0baf03.js → localForage-6964fc6d.js} +1 -1
- package/dist/esm/{map-helpers-50f15184.js → map-helpers-dacc6a93.js} +1 -1
- package/dist/esm/{observer-helpers-2c5c0591.js → observer-helpers-1ea8f851.js} +1 -1
- package/dist/esm/{video-player-helpers-866ceaa0.js → video-player-helpers-ec048116.js} +1 -1
- package/dist/esm/yoo-accordion.entry.js +2 -2
- package/dist/esm/yoo-action-sheet-controller_15.entry.js +6 -6
- package/dist/esm/yoo-action-sheet.entry.js +2 -2
- package/dist/esm/yoo-ag-grid_96.entry.js +10 -10
- package/dist/esm/yoo-alert.entry.js +2 -2
- package/dist/esm/yoo-audio-recorder-dialog.entry.js +2 -2
- package/dist/esm/yoo-avatar_5.entry.js +4 -4
- package/dist/esm/yoo-background-blur.entry.js +2 -2
- package/dist/esm/yoo-background.entry.js +2 -2
- package/dist/esm/yoo-battle-count-down.entry.js +2 -2
- package/dist/esm/yoo-battle-user-stats.entry.js +2 -2
- package/dist/esm/yoo-camera-preview-dialog_7.entry.js +4 -4
- package/dist/esm/yoo-campaign-heading.entry.js +1 -1
- package/dist/esm/yoo-card-header.entry.js +1 -1
- package/dist/esm/yoo-card-incentive.entry.js +2 -2
- package/dist/esm/yoo-card-list-image_12.entry.js +7 -7
- package/dist/esm/yoo-chat-message-dialog.entry.js +2 -2
- package/dist/esm/yoo-chat-message_3.entry.js +2 -2
- package/dist/esm/yoo-chat.entry.js +2 -2
- package/dist/esm/yoo-context-menu-dialog.entry.js +2 -2
- package/dist/esm/yoo-count-down.entry.js +2 -2
- package/dist/esm/yoo-course-detail.entry.js +2 -2
- package/dist/esm/yoo-course-summary.entry.js +2 -2
- package/dist/esm/yoo-detail-bar.entry.js +1 -1
- package/dist/esm/yoo-entity-search.entry.js +2 -2
- package/dist/esm/yoo-feed-detail.entry.js +2 -2
- package/dist/esm/yoo-form-calendar-dialog_2.entry.js +3 -3
- package/dist/esm/yoo-form-categorize-words.entry.js +3 -3
- package/dist/esm/yoo-form-checklist.entry.js +3 -3
- package/dist/esm/yoo-form-choice_4.entry.js +4 -4
- package/dist/esm/yoo-form-color-field.entry.js +3 -3
- package/dist/esm/yoo-form-connect.entry.js +3 -3
- package/dist/esm/yoo-form-creator-block-expandable.entry.js +2 -2
- package/dist/esm/yoo-form-creator-block-simple_4.entry.js +3 -3
- package/dist/esm/yoo-form-creator-card_2.entry.js +2 -2
- package/dist/esm/yoo-form-creator-field-selector_8.entry.js +3 -3
- package/dist/esm/yoo-form-creator-translate-dialog.entry.js +2 -2
- package/dist/esm/yoo-form-creator.entry.js +3 -3
- package/dist/esm/yoo-form-daterange.entry.js +3 -3
- package/dist/esm/yoo-form-emailreport.entry.js +3 -3
- package/dist/esm/yoo-form-feed-preview.entry.js +3 -3
- package/dist/esm/yoo-form-formula.entry.js +3 -3
- package/dist/esm/yoo-form-image-tagging-creator.entry.js +3 -3
- package/dist/esm/yoo-form-image-tagging.entry.js +3 -3
- package/dist/esm/yoo-form-incentive-targets.entry.js +3 -3
- package/dist/esm/yoo-form-json.entry.js +4 -4
- package/dist/esm/yoo-form-location.entry.js +3 -3
- package/dist/esm/yoo-form-missing-word.entry.js +3 -3
- package/dist/esm/yoo-form-missionfield.entry.js +3 -3
- package/dist/esm/yoo-form-multi-input.entry.js +3 -3
- package/dist/esm/yoo-form-permissions.entry.js +2 -2
- package/dist/esm/yoo-form-phone-number.entry.js +1 -1
- package/dist/esm/yoo-form-plan-assign.entry.js +3 -3
- package/dist/esm/yoo-form-pricecheck.entry.js +3 -3
- package/dist/esm/yoo-form-product-batch.entry.js +3 -3
- package/dist/esm/yoo-form-products-sales.entry.js +3 -3
- package/dist/esm/yoo-form-qrcode.entry.js +3 -3
- package/dist/esm/yoo-form-query-builder.entry.js +3 -3
- package/dist/esm/yoo-form-range.entry.js +3 -3
- package/dist/esm/yoo-form-ranking.entry.js +3 -3
- package/dist/esm/yoo-form-reorder.entry.js +3 -3
- package/dist/esm/yoo-form-scorm.entry.js +3 -3
- package/dist/esm/yoo-form-shopping.entry.js +3 -3
- package/dist/esm/yoo-form-signature-pad-dialog.entry.js +2 -2
- package/dist/esm/yoo-form-signature-pad.entry.js +3 -3
- package/dist/esm/yoo-form-sorts.entry.js +3 -3
- package/dist/esm/yoo-form-stripe-card.entry.js +3 -3
- package/dist/esm/yoo-form-swipe-cards.entry.js +5 -5
- package/dist/esm/yoo-form-table.entry.js +3 -3
- package/dist/esm/yoo-form-text-editor.entry.js +3 -3
- package/dist/esm/yoo-form-timeslots.entry.js +3 -3
- package/dist/esm/yoo-form-todo-dialog.entry.js +2 -2
- package/dist/esm/yoo-form-todo-list-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-todo-list.entry.js +3 -3
- package/dist/esm/yoo-form-todo-single.entry.js +2 -2
- package/dist/esm/yoo-form-todo.entry.js +3 -3
- package/dist/esm/yoo-form-uploader.entry.js +3 -3
- package/dist/esm/yoo-form-videoplayer.entry.js +3 -3
- package/dist/esm/yoo-header_7.entry.js +3 -3
- package/dist/esm/yoo-healthscore-dialog.entry.js +2 -2
- package/dist/esm/yoo-incentive-detail.entry.js +2 -2
- package/dist/esm/yoo-input-bar.entry.js +45 -17
- package/dist/esm/yoo-ion-modal.entry.js +2 -2
- package/dist/esm/yoo-kpi-container.entry.js +3 -3
- package/dist/esm/yoo-lesson-detail.entry.js +2 -2
- package/dist/esm/yoo-lesson-heading_2.entry.js +2 -2
- package/dist/esm/yoo-location-heading.entry.js +2 -2
- package/dist/esm/yoo-location-map.entry.js +2 -2
- package/dist/esm/yoo-mission-detail.entry.js +2 -2
- package/dist/esm/yoo-mission-heading_3.entry.js +2 -2
- package/dist/esm/yoo-mission-results.entry.js +2 -2
- package/dist/esm/yoo-mission-todo.entry.js +1 -1
- package/dist/esm/yoo-mobile-tabbar.entry.js +2 -2
- package/dist/esm/yoo-modal.entry.js +2 -2
- package/dist/esm/yoo-podium.entry.js +2 -2
- package/dist/esm/yoo-profile-summary.entry.js +2 -2
- package/dist/esm/yoo-scratch-card.entry.js +1 -1
- package/dist/esm/yoo-side-menu.entry.js +2 -2
- package/dist/esm/yoo-slides-media.entry.js +2 -2
- package/dist/esm/yoo-start-meeting-popup.entry.js +2 -2
- package/dist/esm/yoo-tappable.entry.js +2 -2
- package/dist/esm/yoo-text-sequence.entry.js +2 -2
- package/dist/esm/yoo-user-picker.entry.js +2 -2
- package/dist/esm/yoo-user-profile.entry.js +2 -2
- package/dist/esm/yoo-user-wizard.entry.js +2 -2
- package/dist/esm/yoo-videoplayer-dailymotion.entry.js +3 -3
- package/dist/esm/yoo-videoplayer-videojs.entry.js +5 -5
- package/dist/esm/yoo-videoplayer-vimeo.entry.js +3 -3
- package/dist/esm/yoo-videoplayer-youtube.entry.js +3 -3
- package/dist/esm/yoo-walkthrough.entry.js +1 -1
- package/dist/esm/yoo-web-menu.entry.js +2 -2
- package/dist/esm/yoo-welcome-banner.entry.js +2 -2
- package/dist/types/components/core/input-bar/input-bar.d.ts +2 -0
- package/dist/types/utils/helpers/camera-helpers.d.ts +1 -1
- package/package.json +1 -1
- package/dist/design-system/p-44a59b00.entry.js +0 -1
- package/dist/design-system/p-ac47a6c5.entry.js +0 -1
- package/dist/design-system/p-ca6c9677.js +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import{c as t,d as n,e as i,f as r,I as e,g as o,h as u,j as
|
|
1
|
+
import{c as t,d as n,e as i,f as r,I as e,g as o,h as u,j as a,k as c,i as f,D as s,l as h,m as v,s as l,b as d,n as p,o as y,p as m,q as g}from"./p-a966475f.js";import{i as b}from"./p-bd19a341.js";import{i as w}from"./p-0bb947fc.js";import"./p-4d956bd4.js";var E=t((function(t){
|
|
2
2
|
/*!
|
|
3
3
|
localForage -- Offline Storage, Improved
|
|
4
4
|
Version 1.9.0
|
|
5
5
|
https://localforage.github.io/localForage
|
|
6
6
|
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
7
7
|
*/
|
|
8
|
-
t.exports=function t(n,r,e){function o(f,c){if(!r[f]){if(!n[f]){var s="function"==typeof i&&i;if(!c&&s)return s(f,!0);if(u)return u(f,!0);var a=new Error("Cannot find module '"+f+"'");throw a.code="MODULE_NOT_FOUND",a}var h=r[f]={exports:{}};n[f][0].call(h.exports,(function(t){return o(n[f][1][t]||t)}),h,h.exports,t,n,r,e)}return r[f].exports}for(var u="function"==typeof i&&i,f=0;f<e.length;f++)o(e[f]);return o}({1:[function(t,i){(function(t){var n,r,e=t.MutationObserver||t.WebKitMutationObserver;if(e){var o=0,u=new e(a),f=t.document.createTextNode("");u.observe(f,{characterData:!0}),n=function(){f.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var n=t.document.createElement("script");n.onreadystatechange=function(){a(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},t.document.documentElement.appendChild(n)}:function(){setTimeout(a,0)};else{var c=new t.MessageChannel;c.port1.onmessage=a,n=function(){c.port2.postMessage(0)}}var s=[];function a(){var t,n;r=!0;for(var i=s.length;i;){for(n=s,s=[],t=-1;++t<i;)n[t]();i=s.length}r=!1}i.exports=function(t){1!==s.push(t)||r||n()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,n){var i=t(1);function r(){}var e={},o=["REJECTED"],u=["FULFILLED"],f=["PENDING"];function c(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,t!==r&&v(this,t)}function s(t,n,i){this.promise=t,"function"==typeof n&&(this.onFulfilled=n,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function a(t,n,r){i((function(){var i;try{i=n(r)}catch(n){return e.reject(t,n)}i===t?e.reject(t,new TypeError("Cannot resolve promise with itself")):e.resolve(t,i)}))}function h(t){var n=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof n)return function(){n.apply(t,arguments)}}function v(t,n){var i=!1;function r(n){i||(i=!0,e.reject(t,n))}function o(n){i||(i=!0,e.resolve(t,n))}var u=l((function(){n(o,r)}));"error"===u.status&&r(u.value)}function l(t,n){var i={};try{i.value=t(n),i.status="success"}catch(t){i.status="error",i.value=t}return i}n.exports=c,c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,n){if("function"!=typeof t&&this.state===u||"function"!=typeof n&&this.state===o)return this;var i=new this.constructor(r);return this.state!==f?a(i,this.state===u?t:n,this.outcome):this.queue.push(new s(i,t,n)),i},s.prototype.callFulfilled=function(t){e.resolve(this.promise,t)},s.prototype.otherCallFulfilled=function(t){a(this.promise,this.onFulfilled,t)},s.prototype.callRejected=function(t){e.reject(this.promise,t)},s.prototype.otherCallRejected=function(t){a(this.promise,this.onRejected,t)},e.resolve=function(t,n){var i=l(h,n);if("error"===i.status)return e.reject(t,i.value);var r=i.value;if(r)v(t,r);else{t.state=u,t.outcome=n;for(var o=-1,f=t.queue.length;++o<f;)t.queue[o].callFulfilled(n)}return t},e.reject=function(t,n){t.state=o,t.outcome=n;for(var i=-1,r=t.queue.length;++i<r;)t.queue[i].callRejected(n);return t},c.resolve=function(t){return t instanceof this?t:e.resolve(new this(r),t)},c.reject=function(t){var n=new this(r);return e.reject(n,t)},c.all=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,o=!1;if(!i)return this.resolve([]);for(var u=new Array(i),f=0,c=-1,s=new this(r);++c<i;)a(t[c],c);return s;function a(t,r){n.resolve(t).then((function(t){u[r]=t,++f!==i||o||(o=!0,e.resolve(s,u))}),(function(t){o||(o=!0,e.reject(s,t))}))}},c.race=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,o=!1;if(!i)return this.resolve([]);for(var u=-1,f=new this(r);++u<i;)n.resolve(t[u]).then((function(t){o||(o=!0,e.resolve(f,t))}),(function(t){o||(o=!0,e.reject(f,t))}));return f}},{1:1}],3:[function(t){(function(n){"function"!=typeof n.Promise&&(n.Promise=t(2))}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(t,n){var i="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};var r=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(t){return}}();function e(t,n){t=t||[],n=n||{};try{return new Blob(t,n)}catch(e){if("TypeError"!==e.name)throw e;for(var i=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<t.length;r+=1)i.append(t[r]);return i.getBlob(n.type)}}"undefined"==typeof Promise&&t(3);var o=Promise;function u(t,n){n&&t.then((function(t){n(null,t)}),(function(t){n(t)}))}function f(t,n,i){"function"==typeof n&&t.then(n),"function"==typeof i&&t.catch(i)}function c(t){return"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t)),t}function s(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var a="local-forage-detect-blob-support",h=void 0,v={},l=Object.prototype.toString,d="readonly",p="readwrite";function y(t){for(var n=t.length,i=new ArrayBuffer(n),r=new Uint8Array(i),e=0;e<n;e++)r[e]=t.charCodeAt(e);return i}function m(t){return"boolean"==typeof h?o.resolve(h):function(t){return new o((function(n){var i=t.transaction(a,p),r=e([""]);i.objectStore(a).put(r,"key"),i.onabort=function(t){t.preventDefault(),t.stopPropagation(),n(!1)},i.oncomplete=function(){var t=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);n(i||!t||parseInt(t[1],10)>=43)}})).catch((function(){return!1}))}(t).then((function(t){return h=t}))}function g(t){var n=v[t.name],i={};i.promise=new o((function(t,n){i.resolve=t,i.reject=n})),n.deferredOperations.push(i),n.dbReady=n.dbReady?n.dbReady.then((function(){return i.promise})):i.promise}function w(t){var n=v[t.name].deferredOperations.pop();if(n)return n.resolve(),n.promise}function b(t,n){var i=v[t.name].deferredOperations.pop();if(i)return i.reject(n),i.promise}function E(t,n){return new o((function(i,e){if(v[t.name]=v[t.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},t.db){if(!n)return i(t.db);g(t),t.db.close()}var o=[t.name];n&&o.push(t.version);var u=r.open.apply(r,o);n&&(u.onupgradeneeded=function(n){var i=u.result;try{i.createObjectStore(t.storeName),n.oldVersion<=1&&i.createObjectStore(a)}catch(i){if("ConstraintError"!==i.name)throw i;console.warn('The database "'+t.name+'" has been upgraded from version '+n.oldVersion+" to version "+n.newVersion+', but the storage "'+t.storeName+'" already exists.')}}),u.onerror=function(t){t.preventDefault(),e(u.error)},u.onsuccess=function(){i(u.result),w(t)}}))}function T(t){return E(t,!1)}function A(t){return E(t,!0)}function O(t,n){if(!t.db)return!0;var i=!t.db.objectStoreNames.contains(t.storeName),r=t.version>t.db.version;if(t.version<t.db.version&&(t.version!==n&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),r||i){if(i){var e=t.db.version+1;e>t.version&&(t.version=e)}return!0}return!1}function I(t){return e([y(atob(t.data))],{type:t.type})}function S(t){return t&&t.__local_forage_encoded_blob}function R(t){var n=this,i=n._initReady().then((function(){var t=v[n._dbInfo.name];if(t&&t.dbReady)return t.dbReady}));return f(i,t,t),i}function _(t,n,i,r){void 0===r&&(r=1);try{var e=t.db.transaction(t.storeName,n);i(null,e)}catch(e){if(r>0&&(!t.db||"InvalidStateError"===e.name||"NotFoundError"===e.name))return o.resolve().then((function(){if(!t.db||"NotFoundError"===e.name&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version)return t.db&&(t.version=t.db.version+1),A(t)})).then((function(){return function(t){g(t);for(var n=v[t.name],i=n.forages,r=0;r<i.length;r++){var e=i[r];e._dbInfo.db&&(e._dbInfo.db.close(),e._dbInfo.db=null)}return t.db=null,T(t).then((function(n){return t.db=n,O(t)?A(t):n})).then((function(r){t.db=n.db=r;for(var e=0;e<i.length;e++)i[e]._dbInfo.db=r})).catch((function(n){throw b(t,n),n}))}(t).then((function(){_(t,n,i,r-1)}))})).catch(i);i(e)}}var M={_driver:"asyncStorage",_initStorage:function(t){var n=this,i={db:null};if(t)for(var r in t)i[r]=t[r];var e=v[i.name];e||(v[i.name]=e={forages:[],db:null,dbReady:null,deferredOperations:[]}),e.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=R);var u=[];function f(){return o.resolve()}for(var c=0;c<e.forages.length;c++){var s=e.forages[c];s!==n&&u.push(s._initReady().catch(f))}var a=e.forages.slice(0);return o.all(u).then((function(){return i.db=e.db,T(i)})).then((function(t){return i.db=t,O(i,n._defaultConfig.version)?A(i):t})).then((function(t){i.db=e.db=t,n._dbInfo=i;for(var r=0;r<a.length;r++){var o=a[r];o!==n&&(o._dbInfo.db=i.db,o._dbInfo.version=i.version)}}))},_support:function(){try{if(!r||!r.open)return!1;var t="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),n="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!t||n)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(t){return!1}}(),iterate:function(t,n){var i=this,r=new o((function(n,r){i.ready().then((function(){_(i._dbInfo,d,(function(e,o){if(e)return r(e);try{var u=o.objectStore(i._dbInfo.storeName).openCursor(),f=1;u.onsuccess=function(){var i=u.result;if(i){var r=i.value;S(r)&&(r=I(r));var e=t(r,i.key,f++);void 0!==e?n(e):i.continue()}else n()},u.onerror=function(){r(u.error)}}catch(t){r(t)}}))})).catch(r)}));return u(r,n),r},getItem:function(t,n){var i=this;t=c(t);var r=new o((function(n,r){i.ready().then((function(){_(i._dbInfo,d,(function(e,o){if(e)return r(e);try{var u=o.objectStore(i._dbInfo.storeName).get(t);u.onsuccess=function(){var t=u.result;void 0===t&&(t=null),S(t)&&(t=I(t)),n(t)},u.onerror=function(){r(u.error)}}catch(t){r(t)}}))})).catch(r)}));return u(r,n),r},setItem:function(t,n,i){var r=this;t=c(t);var e=new o((function(i,e){var u;r.ready().then((function(){return u=r._dbInfo,"[object Blob]"===l.call(n)?m(u.db).then((function(t){return t?n:(i=n,new o((function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:i.type})},r.readAsBinaryString(i)})));var i})):n})).then((function(n){_(r._dbInfo,p,(function(o,u){if(o)return e(o);try{var f=u.objectStore(r._dbInfo.storeName);null===n&&(n=void 0);var c=f.put(n,t);u.oncomplete=function(){void 0===n&&(n=null),i(n)},u.onabort=u.onerror=function(){e(c.error?c.error:c.transaction.error)}}catch(t){e(t)}}))})).catch(e)}));return u(e,i),e},removeItem:function(t,n){var i=this;t=c(t);var r=new o((function(n,r){i.ready().then((function(){_(i._dbInfo,p,(function(e,o){if(e)return r(e);try{var u=o.objectStore(i._dbInfo.storeName).delete(t);o.oncomplete=function(){n()},o.onerror=function(){r(u.error)},o.onabort=function(){r(u.error?u.error:u.transaction.error)}}catch(t){r(t)}}))})).catch(r)}));return u(r,n),r},clear:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){_(n._dbInfo,p,(function(r,e){if(r)return i(r);try{var o=e.objectStore(n._dbInfo.storeName).clear();e.oncomplete=function(){t()},e.onabort=e.onerror=function(){i(o.error?o.error:o.transaction.error)}}catch(t){i(t)}}))})).catch(i)}));return u(i,t),i},length:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){_(n._dbInfo,d,(function(r,e){if(r)return i(r);try{var o=e.objectStore(n._dbInfo.storeName).count();o.onsuccess=function(){t(o.result)},o.onerror=function(){i(o.error)}}catch(t){i(t)}}))})).catch(i)}));return u(i,t),i},key:function(t,n){var i=this,r=new o((function(n,r){t<0?n(null):i.ready().then((function(){_(i._dbInfo,d,(function(e,o){if(e)return r(e);try{var u=o.objectStore(i._dbInfo.storeName),f=!1,c=u.openKeyCursor();c.onsuccess=function(){var i=c.result;i?0===t||f?n(i.key):(f=!0,i.advance(t)):n(null)},c.onerror=function(){r(c.error)}}catch(t){r(t)}}))})).catch(r)}));return u(r,n),r},keys:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){_(n._dbInfo,d,(function(r,e){if(r)return i(r);try{var o=e.objectStore(n._dbInfo.storeName).openKeyCursor(),u=[];o.onsuccess=function(){var n=o.result;n?(u.push(n.key),n.continue()):t(u)},o.onerror=function(){i(o.error)}}catch(t){i(t)}}))})).catch(i)}));return u(i,t),i},dropInstance:function(t,n){n=s.apply(this,arguments);var i=this.config();(t="function"!=typeof t&&t||{}).name||(t.name=t.name||i.name,t.storeName=t.storeName||i.storeName);var e,f=this;if(t.name){var c=t.name===i.name&&f._dbInfo.db?o.resolve(f._dbInfo.db):T(t).then((function(n){var i=v[t.name],r=i.forages;i.db=n;for(var e=0;e<r.length;e++)r[e]._dbInfo.db=n;return n}));e=c.then(t.storeName?function(n){if(n.objectStoreNames.contains(t.storeName)){var i=n.version+1;g(t);var e=v[t.name],u=e.forages;n.close();for(var f=0;f<u.length;f++){var c=u[f];c._dbInfo.db=null,c._dbInfo.version=i}return new o((function(n,e){var o=r.open(t.name,i);o.onerror=function(t){o.result.close(),e(t)},o.onupgradeneeded=function(){o.result.deleteObjectStore(t.storeName)},o.onsuccess=function(){var t=o.result;t.close(),n(t)}})).then((function(t){e.db=t;for(var n=0;n<u.length;n++){var i=u[n];i._dbInfo.db=t,w(i._dbInfo)}})).catch((function(n){throw(b(t,n)||o.resolve()).catch((function(){})),n}))}}:function(n){g(t);var i=v[t.name],e=i.forages;n.close();for(var u=0;u<e.length;u++)e[u]._dbInfo.db=null;return new o((function(n,i){var e=r.deleteDatabase(t.name);e.onerror=e.onblocked=function(t){var n=e.result;n&&n.close(),i(t)},e.onsuccess=function(){var t=e.result;t&&t.close(),n(t)}})).then((function(t){i.db=t;for(var n=0;n<e.length;n++)w(e[n]._dbInfo)})).catch((function(n){throw(b(t,n)||o.resolve()).catch((function(){})),n}))})}else e=o.reject("Invalid arguments");return u(e,n),e}};var D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=/^~~local_forage_type~([^~]+)~/,N="__lfsc__:",C=N.length,j="arbf",L="blob",B="si08",F="ui08",x="uic8",k="si16",U="si32",W="ur16",z="ui32",q="fl32",G="fl64",Y=C+j.length,H=Object.prototype.toString;function V(t){var n,i,r,e,o,u=.75*t.length,f=t.length,c=0;"="===t[t.length-1]&&(u--,"="===t[t.length-2]&&u--);var s=new ArrayBuffer(u),a=new Uint8Array(s);for(n=0;n<f;n+=4)i=D.indexOf(t[n]),r=D.indexOf(t[n+1]),e=D.indexOf(t[n+2]),o=D.indexOf(t[n+3]),a[c++]=i<<2|r>>4,a[c++]=(15&r)<<4|e>>2,a[c++]=(3&e)<<6|63&o;return s}function $(t){var n,i=new Uint8Array(t),r="";for(n=0;n<i.length;n+=3)r+=D[i[n]>>2],r+=D[(3&i[n])<<4|i[n+1]>>4],r+=D[(15&i[n+1])<<2|i[n+2]>>6],r+=D[63&i[n+2]];return i.length%3==2?r=r.substring(0,r.length-1)+"=":i.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var K={serialize:function(t,n){var i="";if(t&&(i=H.call(t)),t&&("[object ArrayBuffer]"===i||t.buffer&&"[object ArrayBuffer]"===H.call(t.buffer))){var r,e=N;t instanceof ArrayBuffer?(r=t,e+=j):(r=t.buffer,"[object Int8Array]"===i?e+=B:"[object Uint8Array]"===i?e+=F:"[object Uint8ClampedArray]"===i?e+=x:"[object Int16Array]"===i?e+=k:"[object Uint16Array]"===i?e+=W:"[object Int32Array]"===i?e+=U:"[object Uint32Array]"===i?e+=z:"[object Float32Array]"===i?e+=q:"[object Float64Array]"===i?e+=G:n(new Error("Failed to get type for BinaryArray"))),n(e+$(r))}else if("[object Blob]"===i){var o=new FileReader;o.onload=function(){var i="~~local_forage_type~"+t.type+"~"+$(this.result);n("__lfsc__:blob"+i)},o.readAsArrayBuffer(t)}else try{n(JSON.stringify(t))}catch(i){console.error("Couldn't convert value into a JSON string: ",t),n(null,i)}},deserialize:function(t){if(t.substring(0,C)!==N)return JSON.parse(t);var n,i=t.substring(Y),r=t.substring(C,Y);if(r===L&&P.test(i)){var o=i.match(P);n=o[1],i=i.substring(o[0].length)}var u=V(i);switch(r){case j:return u;case L:return e([u],{type:n});case B:return new Int8Array(u);case F:return new Uint8Array(u);case x:return new Uint8ClampedArray(u);case k:return new Int16Array(u);case W:return new Uint16Array(u);case U:return new Int32Array(u);case z:return new Uint32Array(u);case q:return new Float32Array(u);case G:return new Float64Array(u);default:throw new Error("Unkown type: "+r)}},stringToBuffer:V,bufferToString:$};function X(t,n,i,r){t.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],i,r)}function Z(t,n,i,r,e,o){t.executeSql(i,r,e,(function(t,u){u.code===u.SYNTAX_ERR?t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[n.storeName],(function(t,f){f.rows.length?o(t,u):X(t,n,(function(){t.executeSql(i,r,e,o)}),o)}),o):o(t,u)}),o)}function J(t,n,i,r){var e=this;t=c(t);var f=new o((function(o,u){e.ready().then((function(){void 0===n&&(n=null);var f=n,c=e._dbInfo;c.serializer.serialize(n,(function(n,s){s?u(s):c.db.transaction((function(i){Z(i,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[t,n],(function(){o(f)}),(function(t,n){u(n)}))}),(function(n){if(n.code===n.QUOTA_ERR){if(r>0)return void o(J.apply(e,[t,f,i,r-1]));u(n)}}))}))})).catch(u)}));return u(f,i),f}function Q(t){return new o((function(n,i){t.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(i,r){for(var e=[],o=0;o<r.rows.length;o++)e.push(r.rows.item(o).name);n({db:t,storeNames:e})}),(function(t,n){i(n)}))}),(function(t){i(t)}))}))}var tt={_driver:"webSQLStorage",_initStorage:function(t){var n=this,i={db:null};if(t)for(var r in t)i[r]="string"!=typeof t[r]?t[r].toString():t[r];var e=new o((function(t,r){try{i.db=openDatabase(i.name,String(i.version),i.description,i.size)}catch(t){return r(t)}i.db.transaction((function(e){X(e,i,(function(){n._dbInfo=i,t()}),(function(t,n){r(n)}))}),r)}));return i.serializer=K,e},_support:"function"==typeof openDatabase,iterate:function(t,n){var i=this,r=new o((function(n,r){i.ready().then((function(){var e=i._dbInfo;e.db.transaction((function(i){Z(i,e,"SELECT * FROM "+e.storeName,[],(function(i,r){for(var o=r.rows,u=o.length,f=0;f<u;f++){var c=o.item(f),s=c.value;if(s&&(s=e.serializer.deserialize(s)),void 0!==(s=t(s,c.key,f+1)))return void n(s)}n()}),(function(t,n){r(n)}))}))})).catch(r)}));return u(r,n),r},getItem:function(t,n){var i=this;t=c(t);var r=new o((function(n,r){i.ready().then((function(){var e=i._dbInfo;e.db.transaction((function(i){Z(i,e,"SELECT * FROM "+e.storeName+" WHERE key = ? LIMIT 1",[t],(function(t,i){var r=i.rows.length?i.rows.item(0).value:null;r&&(r=e.serializer.deserialize(r)),n(r)}),(function(t,n){r(n)}))}))})).catch(r)}));return u(r,n),r},setItem:function(t,n,i){return J.apply(this,[t,n,i,1])},removeItem:function(t,n){var i=this;t=c(t);var r=new o((function(n,r){i.ready().then((function(){var e=i._dbInfo;e.db.transaction((function(i){Z(i,e,"DELETE FROM "+e.storeName+" WHERE key = ?",[t],(function(){n()}),(function(t,n){r(n)}))}))})).catch(r)}));return u(r,n),r},clear:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){var r=n._dbInfo;r.db.transaction((function(n){Z(n,r,"DELETE FROM "+r.storeName,[],(function(){t()}),(function(t,n){i(n)}))}))})).catch(i)}));return u(i,t),i},length:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){var r=n._dbInfo;r.db.transaction((function(n){Z(n,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(n,i){var r=i.rows.item(0).c;t(r)}),(function(t,n){i(n)}))}))})).catch(i)}));return u(i,t),i},key:function(t,n){var i=this,r=new o((function(n,r){i.ready().then((function(){var e=i._dbInfo;e.db.transaction((function(i){Z(i,e,"SELECT key FROM "+e.storeName+" WHERE id = ? LIMIT 1",[t+1],(function(t,i){var r=i.rows.length?i.rows.item(0).key:null;n(r)}),(function(t,n){r(n)}))}))})).catch(r)}));return u(r,n),r},keys:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){var r=n._dbInfo;r.db.transaction((function(n){Z(n,r,"SELECT key FROM "+r.storeName,[],(function(n,i){for(var r=[],e=0;e<i.rows.length;e++)r.push(i.rows.item(e).key);t(r)}),(function(t,n){i(n)}))}))})).catch(i)}));return u(i,t),i},dropInstance:function(t,n){n=s.apply(this,arguments);var i=this.config();(t="function"!=typeof t&&t||{}).name||(t.name=t.name||i.name,t.storeName=t.storeName||i.storeName);var r,e=this;return u(r=t.name?new o((function(n){var r;r=t.name===i.name?e._dbInfo.db:openDatabase(t.name,"","",0),n(t.storeName?{db:r,storeNames:[t.storeName]}:Q(r))})).then((function(t){return new o((function(n,i){t.db.transaction((function(r){function e(t){return new o((function(n,i){r.executeSql("DROP TABLE IF EXISTS "+t,[],(function(){n()}),(function(t,n){i(n)}))}))}for(var u=[],f=0,c=t.storeNames.length;f<c;f++)u.push(e(t.storeNames[f]));o.all(u).then((function(){n()})).catch((function(t){i(t)}))}),(function(t){i(t)}))}))})):o.reject("Invalid arguments"),n),r}};function nt(t,n){var i=t.name+"/";return t.storeName!==n.storeName&&(i+=t.storeName+"/"),i}function it(){return!function(){var t="_localforage_support_test";try{return localStorage.setItem(t,!0),localStorage.removeItem(t),!1}catch(t){return!0}}()||localStorage.length>0}var rt={_driver:"localStorageWrapper",_initStorage:function(t){var n={};if(t)for(var i in t)n[i]=t[i];return n.keyPrefix=nt(t,this._defaultConfig),it()?(this._dbInfo=n,n.serializer=K,o.resolve()):o.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(t){return!1}}(),iterate:function(t,n){var i=this,r=i.ready().then((function(){for(var n=i._dbInfo,r=n.keyPrefix,e=r.length,o=localStorage.length,u=1,f=0;f<o;f++){var c=localStorage.key(f);if(0===c.indexOf(r)){var s=localStorage.getItem(c);if(s&&(s=n.serializer.deserialize(s)),void 0!==(s=t(s,c.substring(e),u++)))return s}}}));return u(r,n),r},getItem:function(t,n){var i=this;t=c(t);var r=i.ready().then((function(){var n=i._dbInfo,r=localStorage.getItem(n.keyPrefix+t);return r&&(r=n.serializer.deserialize(r)),r}));return u(r,n),r},setItem:function(t,n,i){var r=this;t=c(t);var e=r.ready().then((function(){void 0===n&&(n=null);var i=n;return new o((function(e,o){var u=r._dbInfo;u.serializer.serialize(n,(function(n,r){if(r)o(r);else try{localStorage.setItem(u.keyPrefix+t,n),e(i)}catch(t){"QuotaExceededError"!==t.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==t.name||o(t),o(t)}}))}))}));return u(e,i),e},removeItem:function(t,n){var i=this;t=c(t);var r=i.ready().then((function(){localStorage.removeItem(i._dbInfo.keyPrefix+t)}));return u(r,n),r},clear:function(t){var n=this,i=n.ready().then((function(){for(var t=n._dbInfo.keyPrefix,i=localStorage.length-1;i>=0;i--){var r=localStorage.key(i);0===r.indexOf(t)&&localStorage.removeItem(r)}}));return u(i,t),i},length:function(t){var n=this.keys().then((function(t){return t.length}));return u(n,t),n},key:function(t,n){var i=this,r=i.ready().then((function(){var n,r=i._dbInfo;try{n=localStorage.key(t)}catch(t){n=null}return n&&(n=n.substring(r.keyPrefix.length)),n}));return u(r,n),r},keys:function(t){var n=this,i=n.ready().then((function(){for(var t=n._dbInfo,i=localStorage.length,r=[],e=0;e<i;e++){var o=localStorage.key(e);0===o.indexOf(t.keyPrefix)&&r.push(o.substring(t.keyPrefix.length))}return r}));return u(i,t),i},dropInstance:function(t,n){if(n=s.apply(this,arguments),!(t="function"!=typeof t&&t||{}).name){var i=this.config();t.name=t.name||i.name,t.storeName=t.storeName||i.storeName}var r,e=this;return u(r=t.name?new o((function(n){n(t.storeName?nt(t,e._defaultConfig):t.name+"/")})).then((function(t){for(var n=localStorage.length-1;n>=0;n--){var i=localStorage.key(n);0===i.indexOf(t)&&localStorage.removeItem(i)}})):o.reject("Invalid arguments"),n),r}},et=function(t,n){for(var i=t.length,r=0;r<i;){if((e=t[r])===(o=n)||"number"==typeof e&&"number"==typeof o&&isNaN(e)&&isNaN(o))return!0;r++}var e,o;return!1},ot=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},ut={},ft={},ct={INDEXEDDB:M,WEBSQL:tt,LOCALSTORAGE:rt},st=[ct.INDEXEDDB._driver,ct.WEBSQL._driver,ct.LOCALSTORAGE._driver],at=["dropInstance"],ht=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(at),vt={description:"",driver:st.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function lt(t,n){t[n]=function(){var i=arguments;return t.ready().then((function(){return t[n].apply(t,i)}))}}function dt(){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n)for(var i in n)n.hasOwnProperty(i)&&(arguments[0][i]=ot(n[i])?n[i].slice():n[i])}return arguments[0]}var pt=new(function(){function t(n){for(var i in function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),ct)if(ct.hasOwnProperty(i)){var r=ct[i],e=r._driver;this[i]=e,ut[e]||this.defineDriver(r)}this._defaultConfig=dt({},vt),this._config=dt({},this._defaultConfig,n),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return t.prototype.config=function(t){if("object"===(void 0===t?"undefined":i(t))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var n in t){if("storeName"===n&&(t[n]=t[n].replace(/\W/g,"_")),"version"===n&&"number"!=typeof t[n])return new Error("Database version must be a number.");this._config[n]=t[n]}return!("driver"in t)||!t.driver||this.setDriver(this._config.driver)}return"string"==typeof t?this._config[t]:this._config},t.prototype.defineDriver=function(t,n,i){var r=new o((function(n,i){try{var r=t._driver,e=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver)return void i(e);for(var f=ht.concat("_initStorage"),c=0,s=f.length;c<s;c++){var a=f[c];if((!et(at,a)||t[a])&&"function"!=typeof t[a])return void i(e)}!function(){for(var n=function(t){return function(){var n=new Error("Method "+t+" is not implemented by the current driver"),i=o.reject(n);return u(i,arguments[arguments.length-1]),i}},i=0,r=at.length;i<r;i++){var e=at[i];t[e]||(t[e]=n(e))}}();var h=function(i){ut[r]&&console.info("Redefining LocalForage driver: "+r),ut[r]=t,ft[r]=i,n()};"_support"in t?t._support&&"function"==typeof t._support?t._support().then(h,i):h(!!t._support):h(!0)}catch(t){i(t)}}));return f(r,n,i),r},t.prototype.driver=function(){return this._driver||null},t.prototype.getDriver=function(t,n,i){var r=ut[t]?o.resolve(ut[t]):o.reject(new Error("Driver not found."));return f(r,n,i),r},t.prototype.getSerializer=function(t){var n=o.resolve(K);return f(n,t),n},t.prototype.ready=function(t){var n=this,i=n._driverSet.then((function(){return null===n._ready&&(n._ready=n._initDriver()),n._ready}));return f(i,t,t),i},t.prototype.setDriver=function(t,n,i){var r=this;ot(t)||(t=[t]);var e=this._getSupportedDrivers(t);function u(){r._config.driver=r.driver()}function c(t){return r._extend(t),u(),r._ready=r._initStorage(r._config),r._ready}var s=null!==this._driverSet?this._driverSet.catch((function(){return o.resolve()})):o.resolve();return this._driverSet=s.then((function(){var t=e[0];return r._dbInfo=null,r._ready=null,r.getDriver(t).then((function(t){r._driver=t._driver,u(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(t){return function(){var n=0;return function i(){for(;n<t.length;){var e=t[n];return n++,r._dbInfo=null,r._ready=null,r.getDriver(e).then(c).catch(i)}u();var f=new Error("No available storage method found.");return r._driverSet=o.reject(f),r._driverSet}()}}(e)}))})).catch((function(){u();var t=new Error("No available storage method found.");return r._driverSet=o.reject(t),r._driverSet})),f(this._driverSet,n,i),this._driverSet},t.prototype.supports=function(t){return!!ft[t]},t.prototype._extend=function(t){dt(this,t)},t.prototype._getSupportedDrivers=function(t){for(var n=[],i=0,r=t.length;i<r;i++){var e=t[i];this.supports(e)&&n.push(e)}return n},t.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0,n=ht.length;t<n;t++)lt(this,ht[t])},t.prototype.createInstance=function(n){return new t(n)},t}());n.exports=pt},{3:3}]},{},[4])(4)}));function T(t){return T.result?T.result:t&&"function"==typeof t.getSerializer?T.result=t.getSerializer():Promise.reject(new Error("localforage.getSerializer() was not available! localforage v1.4+ is required!"))}function A(t,n){return(A.result=A.result||{})[n]?A.result[n]:t&&"function"==typeof t.getDriver?A.result[n]=t.getDriver(n):Promise.reject(new Error("localforage.getDriver() was not available! localforage v1.4+ is required!"))}function O(t){return A(t,t.WEBSQL)}var I=new Promise((function(t,n){"undefined"!=typeof sqlitePlugin?t():"undefined"==typeof cordova?n(new Error("cordova is not defined.")):document.addEventListener("deviceready",(function(){return t()}),!1)})).catch((function(){return Promise.resolve()}));function S(){return I.then((function(){if("undefined"!=typeof sqlitePlugin&&"function"==typeof sqlitePlugin.openDatabase)return sqlitePlugin.openDatabase;throw new Error("SQLite plugin is not present.")}))}var R={_driver:"cordovaSQLiteDriver",_initStorage:function(t){var n=this,i={db:null};if(t)for(var r in t)i[r]="string"!=typeof t[r]?t[r].toString():t[r];var e=S().then((function(t){return new Promise((function(r,e){try{i.location=i.location||"default",i.db=t({name:i.name,version:String(i.version),description:i.description,size:i.size,key:i.dbKey,location:i.location})}catch(t){e(t)}i.db.transaction((function(t){t.executeSql("CREATE TABLE IF NOT EXISTS "+i.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],(function(){n._dbInfo=i,r()}),(function(t,n){e(n)}))}))}))})),o=T(n),u=O(n);return Promise.all([o,u,e]).then((function(t){return i.serializer=t[0],e}))},_support:function(){return S().then((function(t){return!!t})).catch((function(){return!1}))}};!function(t){var n=["clear","getItem","iterate","key","keys","length","removeItem","setItem","dropInstance"];function i(t,n){t[n]=function(){var t=this,i=arguments;return O(t).then((function(r){return r[n].apply(t,i)}))}}for(var r=0,e=n.length;r<e;r++)i(t,n[r])}(R);var _,M=t((function(t){
|
|
8
|
+
t.exports=function t(n,r,e){function o(a,c){if(!r[a]){if(!n[a]){var f="function"==typeof i&&i;if(!c&&f)return f(a,!0);if(u)return u(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var h=r[a]={exports:{}};n[a][0].call(h.exports,(function(t){return o(n[a][1][t]||t)}),h,h.exports,t,n,r,e)}return r[a].exports}for(var u="function"==typeof i&&i,a=0;a<e.length;a++)o(e[a]);return o}({1:[function(t,i){(function(t){var n,r,e=t.MutationObserver||t.WebKitMutationObserver;if(e){var o=0,u=new e(s),a=t.document.createTextNode("");u.observe(a,{characterData:!0}),n=function(){a.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var n=t.document.createElement("script");n.onreadystatechange=function(){s(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},t.document.documentElement.appendChild(n)}:function(){setTimeout(s,0)};else{var c=new t.MessageChannel;c.port1.onmessage=s,n=function(){c.port2.postMessage(0)}}var f=[];function s(){var t,n;r=!0;for(var i=f.length;i;){for(n=f,f=[],t=-1;++t<i;)n[t]();i=f.length}r=!1}i.exports=function(t){1!==f.push(t)||r||n()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,n){var i=t(1);function r(){}var e={},o=["REJECTED"],u=["FULFILLED"],a=["PENDING"];function c(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,t!==r&&v(this,t)}function f(t,n,i){this.promise=t,"function"==typeof n&&(this.onFulfilled=n,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function s(t,n,r){i((function(){var i;try{i=n(r)}catch(n){return e.reject(t,n)}i===t?e.reject(t,new TypeError("Cannot resolve promise with itself")):e.resolve(t,i)}))}function h(t){var n=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof n)return function(){n.apply(t,arguments)}}function v(t,n){var i=!1;function r(n){i||(i=!0,e.reject(t,n))}function o(n){i||(i=!0,e.resolve(t,n))}var u=l((function(){n(o,r)}));"error"===u.status&&r(u.value)}function l(t,n){var i={};try{i.value=t(n),i.status="success"}catch(t){i.status="error",i.value=t}return i}n.exports=c,c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,n){if("function"!=typeof t&&this.state===u||"function"!=typeof n&&this.state===o)return this;var i=new this.constructor(r);return this.state!==a?s(i,this.state===u?t:n,this.outcome):this.queue.push(new f(i,t,n)),i},f.prototype.callFulfilled=function(t){e.resolve(this.promise,t)},f.prototype.otherCallFulfilled=function(t){s(this.promise,this.onFulfilled,t)},f.prototype.callRejected=function(t){e.reject(this.promise,t)},f.prototype.otherCallRejected=function(t){s(this.promise,this.onRejected,t)},e.resolve=function(t,n){var i=l(h,n);if("error"===i.status)return e.reject(t,i.value);var r=i.value;if(r)v(t,r);else{t.state=u,t.outcome=n;for(var o=-1,a=t.queue.length;++o<a;)t.queue[o].callFulfilled(n)}return t},e.reject=function(t,n){t.state=o,t.outcome=n;for(var i=-1,r=t.queue.length;++i<r;)t.queue[i].callRejected(n);return t},c.resolve=function(t){return t instanceof this?t:e.resolve(new this(r),t)},c.reject=function(t){var n=new this(r);return e.reject(n,t)},c.all=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,o=!1;if(!i)return this.resolve([]);for(var u=new Array(i),a=0,c=-1,f=new this(r);++c<i;)s(t[c],c);return f;function s(t,r){n.resolve(t).then((function(t){u[r]=t,++a!==i||o||(o=!0,e.resolve(f,u))}),(function(t){o||(o=!0,e.reject(f,t))}))}},c.race=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,o=!1;if(!i)return this.resolve([]);for(var u=-1,a=new this(r);++u<i;)n.resolve(t[u]).then((function(t){o||(o=!0,e.resolve(a,t))}),(function(t){o||(o=!0,e.reject(a,t))}));return a}},{1:1}],3:[function(t){(function(n){"function"!=typeof n.Promise&&(n.Promise=t(2))}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(t,n){var i="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};var r=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(t){return}}();function e(t,n){t=t||[],n=n||{};try{return new Blob(t,n)}catch(e){if("TypeError"!==e.name)throw e;for(var i=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<t.length;r+=1)i.append(t[r]);return i.getBlob(n.type)}}"undefined"==typeof Promise&&t(3);var o=Promise;function u(t,n){n&&t.then((function(t){n(null,t)}),(function(t){n(t)}))}function a(t,n,i){"function"==typeof n&&t.then(n),"function"==typeof i&&t.catch(i)}function c(t){return"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t)),t}function f(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var s="local-forage-detect-blob-support",h=void 0,v={},l=Object.prototype.toString,d="readonly",p="readwrite";function y(t){for(var n=t.length,i=new ArrayBuffer(n),r=new Uint8Array(i),e=0;e<n;e++)r[e]=t.charCodeAt(e);return i}function m(t){return"boolean"==typeof h?o.resolve(h):function(t){return new o((function(n){var i=t.transaction(s,p),r=e([""]);i.objectStore(s).put(r,"key"),i.onabort=function(t){t.preventDefault(),t.stopPropagation(),n(!1)},i.oncomplete=function(){var t=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);n(i||!t||parseInt(t[1],10)>=43)}})).catch((function(){return!1}))}(t).then((function(t){return h=t}))}function g(t){var n=v[t.name],i={};i.promise=new o((function(t,n){i.resolve=t,i.reject=n})),n.deferredOperations.push(i),n.dbReady=n.dbReady?n.dbReady.then((function(){return i.promise})):i.promise}function b(t){var n=v[t.name].deferredOperations.pop();if(n)return n.resolve(),n.promise}function w(t,n){var i=v[t.name].deferredOperations.pop();if(i)return i.reject(n),i.promise}function E(t,n){return new o((function(i,e){if(v[t.name]=v[t.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},t.db){if(!n)return i(t.db);g(t),t.db.close()}var o=[t.name];n&&o.push(t.version);var u=r.open.apply(r,o);n&&(u.onupgradeneeded=function(n){var i=u.result;try{i.createObjectStore(t.storeName),n.oldVersion<=1&&i.createObjectStore(s)}catch(i){if("ConstraintError"!==i.name)throw i;console.warn('The database "'+t.name+'" has been upgraded from version '+n.oldVersion+" to version "+n.newVersion+', but the storage "'+t.storeName+'" already exists.')}}),u.onerror=function(t){t.preventDefault(),e(u.error)},u.onsuccess=function(){i(u.result),b(t)}}))}function T(t){return E(t,!1)}function A(t){return E(t,!0)}function O(t,n){if(!t.db)return!0;var i=!t.db.objectStoreNames.contains(t.storeName),r=t.version>t.db.version;if(t.version<t.db.version&&(t.version!==n&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),r||i){if(i){var e=t.db.version+1;e>t.version&&(t.version=e)}return!0}return!1}function I(t){return e([y(atob(t.data))],{type:t.type})}function S(t){return t&&t.__local_forage_encoded_blob}function R(t){var n=this,i=n._initReady().then((function(){var t=v[n._dbInfo.name];if(t&&t.dbReady)return t.dbReady}));return a(i,t,t),i}function _(t,n,i,r){void 0===r&&(r=1);try{var e=t.db.transaction(t.storeName,n);i(null,e)}catch(e){if(r>0&&(!t.db||"InvalidStateError"===e.name||"NotFoundError"===e.name))return o.resolve().then((function(){if(!t.db||"NotFoundError"===e.name&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version)return t.db&&(t.version=t.db.version+1),A(t)})).then((function(){return function(t){g(t);for(var n=v[t.name],i=n.forages,r=0;r<i.length;r++){var e=i[r];e._dbInfo.db&&(e._dbInfo.db.close(),e._dbInfo.db=null)}return t.db=null,T(t).then((function(n){return t.db=n,O(t)?A(t):n})).then((function(r){t.db=n.db=r;for(var e=0;e<i.length;e++)i[e]._dbInfo.db=r})).catch((function(n){throw w(t,n),n}))}(t).then((function(){_(t,n,i,r-1)}))})).catch(i);i(e)}}var M={_driver:"asyncStorage",_initStorage:function(t){var n=this,i={db:null};if(t)for(var r in t)i[r]=t[r];var e=v[i.name];e||(v[i.name]=e={forages:[],db:null,dbReady:null,deferredOperations:[]}),e.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=R);var u=[];function a(){return o.resolve()}for(var c=0;c<e.forages.length;c++){var f=e.forages[c];f!==n&&u.push(f._initReady().catch(a))}var s=e.forages.slice(0);return o.all(u).then((function(){return i.db=e.db,T(i)})).then((function(t){return i.db=t,O(i,n._defaultConfig.version)?A(i):t})).then((function(t){i.db=e.db=t,n._dbInfo=i;for(var r=0;r<s.length;r++){var o=s[r];o!==n&&(o._dbInfo.db=i.db,o._dbInfo.version=i.version)}}))},_support:function(){try{if(!r||!r.open)return!1;var t="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),n="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!t||n)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(t){return!1}}(),iterate:function(t,n){var i=this,r=new o((function(n,r){i.ready().then((function(){_(i._dbInfo,d,(function(e,o){if(e)return r(e);try{var u=o.objectStore(i._dbInfo.storeName).openCursor(),a=1;u.onsuccess=function(){var i=u.result;if(i){var r=i.value;S(r)&&(r=I(r));var e=t(r,i.key,a++);void 0!==e?n(e):i.continue()}else n()},u.onerror=function(){r(u.error)}}catch(t){r(t)}}))})).catch(r)}));return u(r,n),r},getItem:function(t,n){var i=this;t=c(t);var r=new o((function(n,r){i.ready().then((function(){_(i._dbInfo,d,(function(e,o){if(e)return r(e);try{var u=o.objectStore(i._dbInfo.storeName).get(t);u.onsuccess=function(){var t=u.result;void 0===t&&(t=null),S(t)&&(t=I(t)),n(t)},u.onerror=function(){r(u.error)}}catch(t){r(t)}}))})).catch(r)}));return u(r,n),r},setItem:function(t,n,i){var r=this;t=c(t);var e=new o((function(i,e){var u;r.ready().then((function(){return u=r._dbInfo,"[object Blob]"===l.call(n)?m(u.db).then((function(t){return t?n:(i=n,new o((function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:i.type})},r.readAsBinaryString(i)})));var i})):n})).then((function(n){_(r._dbInfo,p,(function(o,u){if(o)return e(o);try{var a=u.objectStore(r._dbInfo.storeName);null===n&&(n=void 0);var c=a.put(n,t);u.oncomplete=function(){void 0===n&&(n=null),i(n)},u.onabort=u.onerror=function(){e(c.error?c.error:c.transaction.error)}}catch(t){e(t)}}))})).catch(e)}));return u(e,i),e},removeItem:function(t,n){var i=this;t=c(t);var r=new o((function(n,r){i.ready().then((function(){_(i._dbInfo,p,(function(e,o){if(e)return r(e);try{var u=o.objectStore(i._dbInfo.storeName).delete(t);o.oncomplete=function(){n()},o.onerror=function(){r(u.error)},o.onabort=function(){r(u.error?u.error:u.transaction.error)}}catch(t){r(t)}}))})).catch(r)}));return u(r,n),r},clear:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){_(n._dbInfo,p,(function(r,e){if(r)return i(r);try{var o=e.objectStore(n._dbInfo.storeName).clear();e.oncomplete=function(){t()},e.onabort=e.onerror=function(){i(o.error?o.error:o.transaction.error)}}catch(t){i(t)}}))})).catch(i)}));return u(i,t),i},length:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){_(n._dbInfo,d,(function(r,e){if(r)return i(r);try{var o=e.objectStore(n._dbInfo.storeName).count();o.onsuccess=function(){t(o.result)},o.onerror=function(){i(o.error)}}catch(t){i(t)}}))})).catch(i)}));return u(i,t),i},key:function(t,n){var i=this,r=new o((function(n,r){t<0?n(null):i.ready().then((function(){_(i._dbInfo,d,(function(e,o){if(e)return r(e);try{var u=o.objectStore(i._dbInfo.storeName),a=!1,c=u.openKeyCursor();c.onsuccess=function(){var i=c.result;i?0===t||a?n(i.key):(a=!0,i.advance(t)):n(null)},c.onerror=function(){r(c.error)}}catch(t){r(t)}}))})).catch(r)}));return u(r,n),r},keys:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){_(n._dbInfo,d,(function(r,e){if(r)return i(r);try{var o=e.objectStore(n._dbInfo.storeName).openKeyCursor(),u=[];o.onsuccess=function(){var n=o.result;n?(u.push(n.key),n.continue()):t(u)},o.onerror=function(){i(o.error)}}catch(t){i(t)}}))})).catch(i)}));return u(i,t),i},dropInstance:function(t,n){n=f.apply(this,arguments);var i=this.config();(t="function"!=typeof t&&t||{}).name||(t.name=t.name||i.name,t.storeName=t.storeName||i.storeName);var e,a=this;if(t.name){var c=t.name===i.name&&a._dbInfo.db?o.resolve(a._dbInfo.db):T(t).then((function(n){var i=v[t.name],r=i.forages;i.db=n;for(var e=0;e<r.length;e++)r[e]._dbInfo.db=n;return n}));e=c.then(t.storeName?function(n){if(n.objectStoreNames.contains(t.storeName)){var i=n.version+1;g(t);var e=v[t.name],u=e.forages;n.close();for(var a=0;a<u.length;a++){var c=u[a];c._dbInfo.db=null,c._dbInfo.version=i}return new o((function(n,e){var o=r.open(t.name,i);o.onerror=function(t){o.result.close(),e(t)},o.onupgradeneeded=function(){o.result.deleteObjectStore(t.storeName)},o.onsuccess=function(){var t=o.result;t.close(),n(t)}})).then((function(t){e.db=t;for(var n=0;n<u.length;n++){var i=u[n];i._dbInfo.db=t,b(i._dbInfo)}})).catch((function(n){throw(w(t,n)||o.resolve()).catch((function(){})),n}))}}:function(n){g(t);var i=v[t.name],e=i.forages;n.close();for(var u=0;u<e.length;u++)e[u]._dbInfo.db=null;return new o((function(n,i){var e=r.deleteDatabase(t.name);e.onerror=e.onblocked=function(t){var n=e.result;n&&n.close(),i(t)},e.onsuccess=function(){var t=e.result;t&&t.close(),n(t)}})).then((function(t){i.db=t;for(var n=0;n<e.length;n++)b(e[n]._dbInfo)})).catch((function(n){throw(w(t,n)||o.resolve()).catch((function(){})),n}))})}else e=o.reject("Invalid arguments");return u(e,n),e}};var P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D=/^~~local_forage_type~([^~]+)~/,N="__lfsc__:",C=N.length,L="arbf",j="blob",B="si08",F="ui08",k="uic8",x="si16",U="si32",W="ur16",z="ui32",G="fl32",q="fl64",Y=C+L.length,H=Object.prototype.toString;function V(t){var n,i,r,e,o,u=.75*t.length,a=t.length,c=0;"="===t[t.length-1]&&(u--,"="===t[t.length-2]&&u--);var f=new ArrayBuffer(u),s=new Uint8Array(f);for(n=0;n<a;n+=4)i=P.indexOf(t[n]),r=P.indexOf(t[n+1]),e=P.indexOf(t[n+2]),o=P.indexOf(t[n+3]),s[c++]=i<<2|r>>4,s[c++]=(15&r)<<4|e>>2,s[c++]=(3&e)<<6|63&o;return f}function $(t){var n,i=new Uint8Array(t),r="";for(n=0;n<i.length;n+=3)r+=P[i[n]>>2],r+=P[(3&i[n])<<4|i[n+1]>>4],r+=P[(15&i[n+1])<<2|i[n+2]>>6],r+=P[63&i[n+2]];return i.length%3==2?r=r.substring(0,r.length-1)+"=":i.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var K={serialize:function(t,n){var i="";if(t&&(i=H.call(t)),t&&("[object ArrayBuffer]"===i||t.buffer&&"[object ArrayBuffer]"===H.call(t.buffer))){var r,e=N;t instanceof ArrayBuffer?(r=t,e+=L):(r=t.buffer,"[object Int8Array]"===i?e+=B:"[object Uint8Array]"===i?e+=F:"[object Uint8ClampedArray]"===i?e+=k:"[object Int16Array]"===i?e+=x:"[object Uint16Array]"===i?e+=W:"[object Int32Array]"===i?e+=U:"[object Uint32Array]"===i?e+=z:"[object Float32Array]"===i?e+=G:"[object Float64Array]"===i?e+=q:n(new Error("Failed to get type for BinaryArray"))),n(e+$(r))}else if("[object Blob]"===i){var o=new FileReader;o.onload=function(){var i="~~local_forage_type~"+t.type+"~"+$(this.result);n("__lfsc__:blob"+i)},o.readAsArrayBuffer(t)}else try{n(JSON.stringify(t))}catch(i){console.error("Couldn't convert value into a JSON string: ",t),n(null,i)}},deserialize:function(t){if(t.substring(0,C)!==N)return JSON.parse(t);var n,i=t.substring(Y),r=t.substring(C,Y);if(r===j&&D.test(i)){var o=i.match(D);n=o[1],i=i.substring(o[0].length)}var u=V(i);switch(r){case L:return u;case j:return e([u],{type:n});case B:return new Int8Array(u);case F:return new Uint8Array(u);case k:return new Uint8ClampedArray(u);case x:return new Int16Array(u);case W:return new Uint16Array(u);case U:return new Int32Array(u);case z:return new Uint32Array(u);case G:return new Float32Array(u);case q:return new Float64Array(u);default:throw new Error("Unkown type: "+r)}},stringToBuffer:V,bufferToString:$};function X(t,n,i,r){t.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],i,r)}function Z(t,n,i,r,e,o){t.executeSql(i,r,e,(function(t,u){u.code===u.SYNTAX_ERR?t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[n.storeName],(function(t,a){a.rows.length?o(t,u):X(t,n,(function(){t.executeSql(i,r,e,o)}),o)}),o):o(t,u)}),o)}function J(t,n,i,r){var e=this;t=c(t);var a=new o((function(o,u){e.ready().then((function(){void 0===n&&(n=null);var a=n,c=e._dbInfo;c.serializer.serialize(n,(function(n,f){f?u(f):c.db.transaction((function(i){Z(i,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[t,n],(function(){o(a)}),(function(t,n){u(n)}))}),(function(n){if(n.code===n.QUOTA_ERR){if(r>0)return void o(J.apply(e,[t,a,i,r-1]));u(n)}}))}))})).catch(u)}));return u(a,i),a}function Q(t){return new o((function(n,i){t.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(i,r){for(var e=[],o=0;o<r.rows.length;o++)e.push(r.rows.item(o).name);n({db:t,storeNames:e})}),(function(t,n){i(n)}))}),(function(t){i(t)}))}))}var tt={_driver:"webSQLStorage",_initStorage:function(t){var n=this,i={db:null};if(t)for(var r in t)i[r]="string"!=typeof t[r]?t[r].toString():t[r];var e=new o((function(t,r){try{i.db=openDatabase(i.name,String(i.version),i.description,i.size)}catch(t){return r(t)}i.db.transaction((function(e){X(e,i,(function(){n._dbInfo=i,t()}),(function(t,n){r(n)}))}),r)}));return i.serializer=K,e},_support:"function"==typeof openDatabase,iterate:function(t,n){var i=this,r=new o((function(n,r){i.ready().then((function(){var e=i._dbInfo;e.db.transaction((function(i){Z(i,e,"SELECT * FROM "+e.storeName,[],(function(i,r){for(var o=r.rows,u=o.length,a=0;a<u;a++){var c=o.item(a),f=c.value;if(f&&(f=e.serializer.deserialize(f)),void 0!==(f=t(f,c.key,a+1)))return void n(f)}n()}),(function(t,n){r(n)}))}))})).catch(r)}));return u(r,n),r},getItem:function(t,n){var i=this;t=c(t);var r=new o((function(n,r){i.ready().then((function(){var e=i._dbInfo;e.db.transaction((function(i){Z(i,e,"SELECT * FROM "+e.storeName+" WHERE key = ? LIMIT 1",[t],(function(t,i){var r=i.rows.length?i.rows.item(0).value:null;r&&(r=e.serializer.deserialize(r)),n(r)}),(function(t,n){r(n)}))}))})).catch(r)}));return u(r,n),r},setItem:function(t,n,i){return J.apply(this,[t,n,i,1])},removeItem:function(t,n){var i=this;t=c(t);var r=new o((function(n,r){i.ready().then((function(){var e=i._dbInfo;e.db.transaction((function(i){Z(i,e,"DELETE FROM "+e.storeName+" WHERE key = ?",[t],(function(){n()}),(function(t,n){r(n)}))}))})).catch(r)}));return u(r,n),r},clear:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){var r=n._dbInfo;r.db.transaction((function(n){Z(n,r,"DELETE FROM "+r.storeName,[],(function(){t()}),(function(t,n){i(n)}))}))})).catch(i)}));return u(i,t),i},length:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){var r=n._dbInfo;r.db.transaction((function(n){Z(n,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(n,i){var r=i.rows.item(0).c;t(r)}),(function(t,n){i(n)}))}))})).catch(i)}));return u(i,t),i},key:function(t,n){var i=this,r=new o((function(n,r){i.ready().then((function(){var e=i._dbInfo;e.db.transaction((function(i){Z(i,e,"SELECT key FROM "+e.storeName+" WHERE id = ? LIMIT 1",[t+1],(function(t,i){var r=i.rows.length?i.rows.item(0).key:null;n(r)}),(function(t,n){r(n)}))}))})).catch(r)}));return u(r,n),r},keys:function(t){var n=this,i=new o((function(t,i){n.ready().then((function(){var r=n._dbInfo;r.db.transaction((function(n){Z(n,r,"SELECT key FROM "+r.storeName,[],(function(n,i){for(var r=[],e=0;e<i.rows.length;e++)r.push(i.rows.item(e).key);t(r)}),(function(t,n){i(n)}))}))})).catch(i)}));return u(i,t),i},dropInstance:function(t,n){n=f.apply(this,arguments);var i=this.config();(t="function"!=typeof t&&t||{}).name||(t.name=t.name||i.name,t.storeName=t.storeName||i.storeName);var r,e=this;return u(r=t.name?new o((function(n){var r;r=t.name===i.name?e._dbInfo.db:openDatabase(t.name,"","",0),n(t.storeName?{db:r,storeNames:[t.storeName]}:Q(r))})).then((function(t){return new o((function(n,i){t.db.transaction((function(r){function e(t){return new o((function(n,i){r.executeSql("DROP TABLE IF EXISTS "+t,[],(function(){n()}),(function(t,n){i(n)}))}))}for(var u=[],a=0,c=t.storeNames.length;a<c;a++)u.push(e(t.storeNames[a]));o.all(u).then((function(){n()})).catch((function(t){i(t)}))}),(function(t){i(t)}))}))})):o.reject("Invalid arguments"),n),r}};function nt(t,n){var i=t.name+"/";return t.storeName!==n.storeName&&(i+=t.storeName+"/"),i}function it(){return!function(){var t="_localforage_support_test";try{return localStorage.setItem(t,!0),localStorage.removeItem(t),!1}catch(t){return!0}}()||localStorage.length>0}var rt={_driver:"localStorageWrapper",_initStorage:function(t){var n={};if(t)for(var i in t)n[i]=t[i];return n.keyPrefix=nt(t,this._defaultConfig),it()?(this._dbInfo=n,n.serializer=K,o.resolve()):o.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(t){return!1}}(),iterate:function(t,n){var i=this,r=i.ready().then((function(){for(var n=i._dbInfo,r=n.keyPrefix,e=r.length,o=localStorage.length,u=1,a=0;a<o;a++){var c=localStorage.key(a);if(0===c.indexOf(r)){var f=localStorage.getItem(c);if(f&&(f=n.serializer.deserialize(f)),void 0!==(f=t(f,c.substring(e),u++)))return f}}}));return u(r,n),r},getItem:function(t,n){var i=this;t=c(t);var r=i.ready().then((function(){var n=i._dbInfo,r=localStorage.getItem(n.keyPrefix+t);return r&&(r=n.serializer.deserialize(r)),r}));return u(r,n),r},setItem:function(t,n,i){var r=this;t=c(t);var e=r.ready().then((function(){void 0===n&&(n=null);var i=n;return new o((function(e,o){var u=r._dbInfo;u.serializer.serialize(n,(function(n,r){if(r)o(r);else try{localStorage.setItem(u.keyPrefix+t,n),e(i)}catch(t){"QuotaExceededError"!==t.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==t.name||o(t),o(t)}}))}))}));return u(e,i),e},removeItem:function(t,n){var i=this;t=c(t);var r=i.ready().then((function(){localStorage.removeItem(i._dbInfo.keyPrefix+t)}));return u(r,n),r},clear:function(t){var n=this,i=n.ready().then((function(){for(var t=n._dbInfo.keyPrefix,i=localStorage.length-1;i>=0;i--){var r=localStorage.key(i);0===r.indexOf(t)&&localStorage.removeItem(r)}}));return u(i,t),i},length:function(t){var n=this.keys().then((function(t){return t.length}));return u(n,t),n},key:function(t,n){var i=this,r=i.ready().then((function(){var n,r=i._dbInfo;try{n=localStorage.key(t)}catch(t){n=null}return n&&(n=n.substring(r.keyPrefix.length)),n}));return u(r,n),r},keys:function(t){var n=this,i=n.ready().then((function(){for(var t=n._dbInfo,i=localStorage.length,r=[],e=0;e<i;e++){var o=localStorage.key(e);0===o.indexOf(t.keyPrefix)&&r.push(o.substring(t.keyPrefix.length))}return r}));return u(i,t),i},dropInstance:function(t,n){if(n=f.apply(this,arguments),!(t="function"!=typeof t&&t||{}).name){var i=this.config();t.name=t.name||i.name,t.storeName=t.storeName||i.storeName}var r,e=this;return u(r=t.name?new o((function(n){n(t.storeName?nt(t,e._defaultConfig):t.name+"/")})).then((function(t){for(var n=localStorage.length-1;n>=0;n--){var i=localStorage.key(n);0===i.indexOf(t)&&localStorage.removeItem(i)}})):o.reject("Invalid arguments"),n),r}},et=function(t,n){for(var i=t.length,r=0;r<i;){if((e=t[r])===(o=n)||"number"==typeof e&&"number"==typeof o&&isNaN(e)&&isNaN(o))return!0;r++}var e,o;return!1},ot=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},ut={},at={},ct={INDEXEDDB:M,WEBSQL:tt,LOCALSTORAGE:rt},ft=[ct.INDEXEDDB._driver,ct.WEBSQL._driver,ct.LOCALSTORAGE._driver],st=["dropInstance"],ht=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(st),vt={description:"",driver:ft.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function lt(t,n){t[n]=function(){var i=arguments;return t.ready().then((function(){return t[n].apply(t,i)}))}}function dt(){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n)for(var i in n)n.hasOwnProperty(i)&&(arguments[0][i]=ot(n[i])?n[i].slice():n[i])}return arguments[0]}var pt=new(function(){function t(n){for(var i in function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),ct)if(ct.hasOwnProperty(i)){var r=ct[i],e=r._driver;this[i]=e,ut[e]||this.defineDriver(r)}this._defaultConfig=dt({},vt),this._config=dt({},this._defaultConfig,n),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return t.prototype.config=function(t){if("object"===(void 0===t?"undefined":i(t))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var n in t){if("storeName"===n&&(t[n]=t[n].replace(/\W/g,"_")),"version"===n&&"number"!=typeof t[n])return new Error("Database version must be a number.");this._config[n]=t[n]}return!("driver"in t)||!t.driver||this.setDriver(this._config.driver)}return"string"==typeof t?this._config[t]:this._config},t.prototype.defineDriver=function(t,n,i){var r=new o((function(n,i){try{var r=t._driver,e=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver)return void i(e);for(var a=ht.concat("_initStorage"),c=0,f=a.length;c<f;c++){var s=a[c];if((!et(st,s)||t[s])&&"function"!=typeof t[s])return void i(e)}!function(){for(var n=function(t){return function(){var n=new Error("Method "+t+" is not implemented by the current driver"),i=o.reject(n);return u(i,arguments[arguments.length-1]),i}},i=0,r=st.length;i<r;i++){var e=st[i];t[e]||(t[e]=n(e))}}();var h=function(i){ut[r]&&console.info("Redefining LocalForage driver: "+r),ut[r]=t,at[r]=i,n()};"_support"in t?t._support&&"function"==typeof t._support?t._support().then(h,i):h(!!t._support):h(!0)}catch(t){i(t)}}));return a(r,n,i),r},t.prototype.driver=function(){return this._driver||null},t.prototype.getDriver=function(t,n,i){var r=ut[t]?o.resolve(ut[t]):o.reject(new Error("Driver not found."));return a(r,n,i),r},t.prototype.getSerializer=function(t){var n=o.resolve(K);return a(n,t),n},t.prototype.ready=function(t){var n=this,i=n._driverSet.then((function(){return null===n._ready&&(n._ready=n._initDriver()),n._ready}));return a(i,t,t),i},t.prototype.setDriver=function(t,n,i){var r=this;ot(t)||(t=[t]);var e=this._getSupportedDrivers(t);function u(){r._config.driver=r.driver()}function c(t){return r._extend(t),u(),r._ready=r._initStorage(r._config),r._ready}var f=null!==this._driverSet?this._driverSet.catch((function(){return o.resolve()})):o.resolve();return this._driverSet=f.then((function(){var t=e[0];return r._dbInfo=null,r._ready=null,r.getDriver(t).then((function(t){r._driver=t._driver,u(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(t){return function(){var n=0;return function i(){for(;n<t.length;){var e=t[n];return n++,r._dbInfo=null,r._ready=null,r.getDriver(e).then(c).catch(i)}u();var a=new Error("No available storage method found.");return r._driverSet=o.reject(a),r._driverSet}()}}(e)}))})).catch((function(){u();var t=new Error("No available storage method found.");return r._driverSet=o.reject(t),r._driverSet})),a(this._driverSet,n,i),this._driverSet},t.prototype.supports=function(t){return!!at[t]},t.prototype._extend=function(t){dt(this,t)},t.prototype._getSupportedDrivers=function(t){for(var n=[],i=0,r=t.length;i<r;i++){var e=t[i];this.supports(e)&&n.push(e)}return n},t.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0,n=ht.length;t<n;t++)lt(this,ht[t])},t.prototype.createInstance=function(n){return new t(n)},t}());n.exports=pt},{3:3}]},{},[4])(4)}));function T(t){return T.result?T.result:t&&"function"==typeof t.getSerializer?T.result=t.getSerializer():Promise.reject(new Error("localforage.getSerializer() was not available! localforage v1.4+ is required!"))}function A(t,n){return(A.result=A.result||{})[n]?A.result[n]:t&&"function"==typeof t.getDriver?A.result[n]=t.getDriver(n):Promise.reject(new Error("localforage.getDriver() was not available! localforage v1.4+ is required!"))}function O(t){return A(t,t.WEBSQL)}var I=new Promise((function(t,n){"undefined"!=typeof sqlitePlugin?t():"undefined"==typeof cordova?n(new Error("cordova is not defined.")):document.addEventListener("deviceready",(function(){return t()}),!1)})).catch((function(){return Promise.resolve()}));function S(){return I.then((function(){if("undefined"!=typeof sqlitePlugin&&"function"==typeof sqlitePlugin.openDatabase)return sqlitePlugin.openDatabase;throw new Error("SQLite plugin is not present.")}))}var R={_driver:"cordovaSQLiteDriver",_initStorage:function(t){var n=this,i={db:null};if(t)for(var r in t)i[r]="string"!=typeof t[r]?t[r].toString():t[r];var e=S().then((function(t){return new Promise((function(r,e){try{i.location=i.location||"default",i.db=t({name:i.name,version:String(i.version),description:i.description,size:i.size,key:i.dbKey,location:i.location})}catch(t){e(t)}i.db.transaction((function(t){t.executeSql("CREATE TABLE IF NOT EXISTS "+i.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],(function(){n._dbInfo=i,r()}),(function(t,n){e(n)}))}))}))})),o=T(n),u=O(n);return Promise.all([o,u,e]).then((function(t){return i.serializer=t[0],e}))},_support:function(){return S().then((function(t){return!!t})).catch((function(){return!1}))}};!function(t){var n=["clear","getItem","iterate","key","keys","length","removeItem","setItem","dropInstance"];function i(t,n){t[n]=function(){var t=this,i=arguments;return O(t).then((function(r){return r[n].apply(t,i)}))}}for(var r=0,e=n.length;r<e;r++)i(t,n[r])}(R);var _,M=t((function(t){
|
|
9
9
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
10
10
|
* http://hammerjs.github.io/
|
|
11
11
|
*
|
|
12
12
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
13
13
|
* Licensed under the MIT license */
|
|
14
|
-
!function(n,i,r,e){var o,u=["","webkit","Moz","MS","ms","o"],f=i.createElement("div"),c=Math.round,s=Math.abs,a=Date.now;function h(t,n,i){return setTimeout(g(t,i),n)}function v(t,n,i){return!!Array.isArray(t)&&(l(t,i[n],i),!0)}function l(t,n,i){var r;if(t)if(t.forEach)t.forEach(n,i);else if(t.length!==e)for(r=0;r<t.length;)n.call(i,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&n.call(i,t[r],r,t)}function d(t,i,r){var e="DEPRECATED METHOD: "+i+"\n"+r+" AT \n";return function(){var i=new Error("get-stack-trace"),r=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=n.console&&(n.console.warn||n.console.log);return o&&o.call(n.console,e,r),t.apply(this,arguments)}}o="function"!=typeof Object.assign?function(t){if(t===e||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(r!==e&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])}return n}:Object.assign;var p=d((function(t,n,i){for(var r=Object.keys(n),o=0;o<r.length;)(!i||i&&t[r[o]]===e)&&(t[r[o]]=n[r[o]]),o++;return t}),"extend","Use `assign`."),y=d((function(t,n){return p(t,n,!0)}),"merge","Use `assign`.");function m(t,n,i){var r,e=n.prototype;(r=t.prototype=Object.create(e)).constructor=t,r._super=e,i&&o(r,i)}function g(t,n){return function(){return t.apply(n,arguments)}}function w(t,n){return"function"==typeof t?t.apply(n&&n[0]||e,n):t}function b(t,n){return t===e?n:t}function E(t,n,i){l(I(n),(function(n){t.addEventListener(n,i,!1)}))}function T(t,n,i){l(I(n),(function(n){t.removeEventListener(n,i,!1)}))}function A(t,n){for(;t;){if(t==n)return!0;t=t.parentNode}return!1}function O(t,n){return t.indexOf(n)>-1}function I(t){return t.trim().split(/\s+/g)}function S(t,n,i){if(t.indexOf&&!i)return t.indexOf(n);for(var r=0;r<t.length;){if(i&&t[r][i]==n||!i&&t[r]===n)return r;r++}return-1}function R(t){return Array.prototype.slice.call(t,0)}function _(t,n,i){for(var r=[],e=[],o=0;o<t.length;){var u=n?t[o][n]:t[o];S(e,u)<0&&r.push(t[o]),e[o]=u,o++}return i&&(r=n?r.sort((function(t,i){return t[n]>i[n]})):r.sort()),r}function M(t,n){for(var i,r,o=n[0].toUpperCase()+n.slice(1),f=0;f<u.length;){if((r=(i=u[f])?i+o:n)in t)return r;f++}return e}var D=1;function P(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||n}var N="ontouchstart"in n,C=M(n,"PointerEvent")!==e,j=N&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),L="touch",B="mouse",F=["x","y"],x=["clientX","clientY"];function k(t,n){var i=this;this.manager=t,this.callback=n,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(n){w(t.options.enable,[t])&&i.handler(n)},this.init()}function U(t,n,i){var r=i.pointers.length,o=i.changedPointers.length,u=1&n&&r-o==0,f=12&n&&r-o==0;i.isFirst=!!u,i.isFinal=!!f,u&&(t.session={}),i.eventType=n,function(t,n){var i=t.session,r=n.pointers,o=r.length;i.firstInput||(i.firstInput=W(n)),o>1&&!i.firstMultiple?i.firstMultiple=W(n):1===o&&(i.firstMultiple=!1);var u=i.firstInput,f=i.firstMultiple,c=f?f.center:u.center,h=n.center=z(r);n.timeStamp=a(),n.deltaTime=n.timeStamp-u.timeStamp,n.angle=H(c,h),n.distance=Y(c,h),function(t,n){var i=n.center,r=t.offsetDelta||{},e=t.prevDelta||{},o=t.prevInput||{};1!==n.eventType&&4!==o.eventType||(e=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:i.x,y:i.y}),n.deltaX=e.x+(i.x-r.x),n.deltaY=e.y+(i.y-r.y)}(i,n),n.offsetDirection=G(n.deltaX,n.deltaY);var v,l,d=q(n.deltaTime,n.deltaX,n.deltaY);n.overallVelocityX=d.x,n.overallVelocityY=d.y,n.overallVelocity=s(d.x)>s(d.y)?d.x:d.y,n.scale=f?(v=f.pointers,Y((l=r)[0],l[1],x)/Y(v[0],v[1],x)):1,n.rotation=f?function(t,n){return H(n[1],n[0],x)+H(t[1],t[0],x)}(f.pointers,r):0,n.maxPointers=i.prevInput?n.pointers.length>i.prevInput.maxPointers?n.pointers.length:i.prevInput.maxPointers:n.pointers.length,function(t,n){var i,r,o,u,f=t.lastInterval||n,c=n.timeStamp-f.timeStamp;if(8!=n.eventType&&(c>25||f.velocity===e)){var a=n.deltaX-f.deltaX,h=n.deltaY-f.deltaY,v=q(c,a,h);r=v.x,o=v.y,i=s(v.x)>s(v.y)?v.x:v.y,u=G(a,h),t.lastInterval=n}else i=f.velocity,r=f.velocityX,o=f.velocityY,u=f.direction;n.velocity=i,n.velocityX=r,n.velocityY=o,n.direction=u}(i,n);var p=t.element;A(n.srcEvent.target,p)&&(p=n.srcEvent.target),n.target=p}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function W(t){for(var n=[],i=0;i<t.pointers.length;)n[i]={clientX:c(t.pointers[i].clientX),clientY:c(t.pointers[i].clientY)},i++;return{timeStamp:a(),pointers:n,center:z(n),deltaX:t.deltaX,deltaY:t.deltaY}}function z(t){var n=t.length;if(1===n)return{x:c(t[0].clientX),y:c(t[0].clientY)};for(var i=0,r=0,e=0;e<n;)i+=t[e].clientX,r+=t[e].clientY,e++;return{x:c(i/n),y:c(r/n)}}function q(t,n,i){return{x:n/t||0,y:i/t||0}}function G(t,n){return t===n?1:s(t)>=s(n)?t<0?2:4:n<0?8:16}function Y(t,n,i){i||(i=F);var r=n[i[0]]-t[i[0]],e=n[i[1]]-t[i[1]];return Math.sqrt(r*r+e*e)}function H(t,n,i){return i||(i=F),180*Math.atan2(n[i[1]]-t[i[1]],n[i[0]]-t[i[0]])/Math.PI}k.prototype={handler:function(){},init:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(P(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(P(this.element),this.evWin,this.domHandler)}};var V={mousedown:1,mousemove:2,mouseup:4},$="mousedown",K="mousemove mouseup";function X(){this.evEl=$,this.evWin=K,this.pressed=!1,k.apply(this,arguments)}m(X,k,{handler:function(t){var n=V[t.type];1&n&&0===t.button&&(this.pressed=!0),2&n&&1!==t.which&&(n=4),this.pressed&&(4&n&&(this.pressed=!1),this.callback(this.manager,n,{pointers:[t],changedPointers:[t],pointerType:B,srcEvent:t}))}});var Z={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:L,3:"pen",4:B,5:"kinect"},Q="pointerdown",tt="pointermove pointerup pointercancel";function nt(){this.evEl=Q,this.evWin=tt,k.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}n.MSPointerEvent&&!n.PointerEvent&&(Q="MSPointerDown",tt="MSPointerMove MSPointerUp MSPointerCancel"),m(nt,k,{handler:function(t){var n=this.store,i=!1,r=t.type.toLowerCase().replace("ms",""),e=Z[r],o=J[t.pointerType]||t.pointerType,u=o==L,f=S(n,t.pointerId,"pointerId");1&e&&(0===t.button||u)?f<0&&(n.push(t),f=n.length-1):12&e&&(i=!0),f<0||(n[f]=t,this.callback(this.manager,e,{pointers:n,changedPointers:[t],pointerType:o,srcEvent:t}),i&&n.splice(f,1))}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8},rt="touchstart",et="touchstart touchmove touchend touchcancel";function ot(){this.evTarget=rt,this.evWin=et,this.started=!1,k.apply(this,arguments)}function ut(t,n){var i=R(t.touches),r=R(t.changedTouches);return 12&n&&(i=_(i.concat(r),"identifier",!0)),[i,r]}m(ot,k,{handler:function(t){var n=it[t.type];if(1===n&&(this.started=!0),this.started){var i=ut.call(this,t,n);12&n&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,n,{pointers:i[0],changedPointers:i[1],pointerType:L,srcEvent:t})}}});var ft={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ct="touchstart touchmove touchend touchcancel";function st(){this.evTarget=ct,this.targetIds={},k.apply(this,arguments)}function at(t,n){var i=R(t.touches),r=this.targetIds;if(3&n&&1===i.length)return r[i[0].identifier]=!0,[i,i];var e,o,u=R(t.changedTouches),f=[],c=this.target;if(o=i.filter((function(t){return A(t.target,c)})),1===n)for(e=0;e<o.length;)r[o[e].identifier]=!0,e++;for(e=0;e<u.length;)r[u[e].identifier]&&f.push(u[e]),12&n&&delete r[u[e].identifier],e++;return f.length?[_(o.concat(f),"identifier",!0),f]:void 0}function ht(){k.apply(this,arguments);var t=g(this.handler,this);this.touch=new st(this.manager,t),this.mouse=new X(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function vt(t,n){1&t?(this.primaryTouch=n.changedPointers[0].identifier,lt.call(this,n)):12&t&<.call(this,n)}function lt(t){var n=t.changedPointers[0];if(n.identifier===this.primaryTouch){var i={x:n.clientX,y:n.clientY};this.lastTouches.push(i);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(i);t>-1&&r.splice(t,1)}),2500)}}function dt(t){for(var n=t.srcEvent.clientX,i=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var e=this.lastTouches[r],o=Math.abs(n-e.x),u=Math.abs(i-e.y);if(o<=25&&u<=25)return!0}return!1}m(st,k,{handler:function(t){var n=ft[t.type],i=at.call(this,t,n);i&&this.callback(this.manager,n,{pointers:i[0],changedPointers:i[1],pointerType:L,srcEvent:t})}}),m(ht,k,{handler:function(t,n,i){var r=i.pointerType==B;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(i.pointerType==L)vt.call(this,n,i);else if(r&&dt.call(this,i))return;this.callback(t,n,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var pt=M(f.style,"touchAction"),yt=pt!==e,mt="compute",gt="auto",wt="manipulation",bt="none",Et="pan-x",Tt="pan-y",At=function(){if(!yt)return!1;var t={},i=n.CSS&&n.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){t[r]=!i||n.CSS.supports("touch-action",r)})),t}();function Ot(t,n){this.manager=t,this.set(n)}Ot.prototype={set:function(t){t==mt&&(t=this.compute()),yt&&this.manager.element.style&&At[t]&&(this.manager.element.style[pt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return l(this.manager.recognizers,(function(n){w(n.options.enable,[n])&&(t=t.concat(n.getTouchAction()))})),function(t){if(O(t,bt))return bt;var n=O(t,Et),i=O(t,Tt);return n&&i?bt:n||i?n?Et:Tt:O(t,wt)?wt:gt}(t.join(" "))},preventDefaults:function(t){var n=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)n.preventDefault();else{var r=this.actions,e=O(r,bt)&&!At.none,o=O(r,Tt)&&!At["pan-y"],u=O(r,Et)&&!At["pan-x"];if(e&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!u||!o)return e||o&&6&i||u&&24&i?this.preventSrc(n):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var It=32;function St(t){this.options=o({},this.defaults,t||{}),this.id=D++,this.manager=null,this.options.enable=b(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Rt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function _t(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Mt(t,n){var i=n.manager;return i?i.get(t):t}function Dt(){St.apply(this,arguments)}function Pt(){Dt.apply(this,arguments),this.pX=null,this.pY=null}function Nt(){Dt.apply(this,arguments)}function Ct(){St.apply(this,arguments),this._timer=null,this._input=null}function jt(){Dt.apply(this,arguments)}function Lt(){Dt.apply(this,arguments)}function Bt(){St.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ft(t,n){return(n=n||{}).recognizers=b(n.recognizers,Ft.defaults.preset),new xt(t,n)}function xt(t,n){this.options=o({},Ft.defaults,n||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(C?nt:j?st:N?ht:X))(this,U),this.touchAction=new Ot(this,this.options.touchAction),kt(this,!0),l(this.options.recognizers,(function(t){var n=this.add(new t[0](t[1]));t[2]&&n.recognizeWith(t[2]),t[3]&&n.requireFailure(t[3])}),this)}function kt(t,n){var i,r=t.element;r.style&&(l(t.options.cssProps,(function(e,o){i=M(r.style,o),n?(t.oldCssProps[i]=r.style[i],r.style[i]=e):r.style[i]=t.oldCssProps[i]||""})),n||(t.oldCssProps={}))}St.prototype={defaults:{},set:function(t){return o(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(v(t,"recognizeWith",this))return this;var n=this.simultaneous;return n[(t=Mt(t,this)).id]||(n[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return v(t,"dropRecognizeWith",this)||(t=Mt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(v(t,"requireFailure",this))return this;var n=this.requireFail;return-1===S(n,t=Mt(t,this))&&(n.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(v(t,"dropRequireFailure",this))return this;t=Mt(t,this);var n=S(this.requireFail,t);return n>-1&&this.requireFail.splice(n,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var n=this,i=this.state;function r(i){n.manager.emit(i,t)}i<8&&r(n.options.event+Rt(i)),r(n.options.event),t.additionalEvent&&r(t.additionalEvent),i>=8&&r(n.options.event+Rt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=It},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var n=o({},t);if(!w(this.options.enable,[this,n]))return this.reset(),void(this.state=It);56&this.state&&(this.state=1),this.state=this.process(n),30&this.state&&this.tryEmit(n)},process:function(){},getTouchAction:function(){},reset:function(){}},m(Dt,St,{defaults:{pointers:1},attrTest:function(t){var n=this.options.pointers;return 0===n||t.pointers.length===n},process:function(t){var n=this.state,i=t.eventType,r=6&n,e=this.attrTest(t);return r&&(8&i||!e)?16|n:r||e?4&i?8|n:2&n?4|n:2:It}}),m(Pt,Dt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,n=[];return 6&t&&n.push(Tt),24&t&&n.push(Et),n},directionTest:function(t){var n=this.options,i=!0,r=t.distance,e=t.direction,o=t.deltaX,u=t.deltaY;return e&n.direction||(6&n.direction?(e=0===o?1:o<0?2:4,i=o!=this.pX,r=Math.abs(t.deltaX)):(e=0===u?1:u<0?8:16,i=u!=this.pY,r=Math.abs(t.deltaY))),t.direction=e,i&&r>n.threshold&&e&n.direction},attrTest:function(t){return Dt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var n=_t(t.direction);n&&(t.additionalEvent=this.options.event+n),this._super.emit.call(this,t)}}),m(Nt,Dt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),m(Ct,St,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[gt]},process:function(t){var n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,e=t.deltaTime>n.time;if(this._input=t,!r||!i||12&t.eventType&&!e)this.reset();else if(1&t.eventType)this.reset(),this._timer=h((function(){this.state=8,this.tryEmit()}),n.time,this);else if(4&t.eventType)return 8;return It},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=a(),this.manager.emit(this.options.event,this._input)))}}),m(jt,Dt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),m(Lt,Dt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Pt.prototype.getTouchAction.call(this)},attrTest:function(t){var n,i=this.options.direction;return 30&i?n=t.overallVelocity:6&i?n=t.overallVelocityX:24&i&&(n=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&s(n)>this.options.velocity&&4&t.eventType},emit:function(t){var n=_t(t.offsetDirection);n&&this.manager.emit(this.options.event+n,t),this.manager.emit(this.options.event,t)}}),m(Bt,St,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[wt]},process:function(t){var n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,e=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&e&&i){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<n.interval,u=!this.pCenter||Y(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,u&&o?this.count+=1:this.count=1,this._input=t,0==this.count%n.taps)return this.hasRequireFailures()?(this._timer=h((function(){this.state=8,this.tryEmit()}),n.interval,this),2):8}return It},failTimeout:function(){return this._timer=h((function(){this.state=It}),this.options.interval,this),It},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ft.VERSION="2.0.7",Ft.defaults={domEvents:!1,touchAction:mt,enable:!0,inputTarget:null,inputClass:null,preset:[[jt,{enable:!1}],[Nt,{enable:!1},["rotate"]],[Lt,{direction:6}],[Pt,{direction:6},["swipe"]],[Bt],[Bt,{event:"doubletap",taps:2},["tap"]],[Ct]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},xt.prototype={set:function(t){return o(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var n=this.session;if(!n.stopped){var i;this.touchAction.preventDefaults(t);var r=this.recognizers,e=n.curRecognizer;(!e||e&&8&e.state)&&(e=n.curRecognizer=null);for(var o=0;o<r.length;)i=r[o],2===n.stopped||e&&i!=e&&!i.canRecognizeWith(e)?i.reset():i.recognize(t),!e&&14&i.state&&(e=n.curRecognizer=i),o++}},get:function(t){if(t instanceof St)return t;for(var n=this.recognizers,i=0;i<n.length;i++)if(n[i].options.event==t)return n[i];return null},add:function(t){if(v(t,"add",this))return this;var n=this.get(t.options.event);return n&&this.remove(n),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(v(t,"remove",this))return this;if(t=this.get(t)){var n=this.recognizers,i=S(n,t);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},on:function(t,n){if(t!==e&&n!==e){var i=this.handlers;return l(I(t),(function(t){i[t]=i[t]||[],i[t].push(n)})),this}},off:function(t,n){if(t!==e){var i=this.handlers;return l(I(t),(function(t){n?i[t]&&i[t].splice(S(i[t],n),1):delete i[t]})),this}},emit:function(t,n){this.options.domEvents&&function(t,n){var r=i.createEvent("Event");r.initEvent(t,!0,!0),r.gesture=n,n.target.dispatchEvent(r)}(t,n);var r=this.handlers[t]&&this.handlers[t].slice();if(r&&r.length){n.type=t,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var e=0;e<r.length;)r[e](n),e++}},destroy:function(){this.element&&kt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Ft,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:It,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:xt,Input:k,TouchAction:Ot,TouchInput:st,MouseInput:X,PointerEventInput:nt,TouchMouseInput:ht,SingleTouchInput:ot,Recognizer:St,AttrRecognizer:Dt,Tap:Bt,Pan:Pt,Swipe:Lt,Pinch:Nt,Rotate:jt,Press:Ct,on:E,off:T,each:l,merge:y,extend:p,assign:o,inherit:m,bindFn:g,prefixed:M}),(void 0!==n?n:"undefined"!=typeof self?self:{}).Hammer=Ft,t.exports?t.exports=Ft:n.Hammer=Ft}(window,document)}));function D(t){var n;return w(null===(n=null==t?void 0:t.description)||void 0===n?void 0:n.minValue)?"finished"===t.status:"finished"===t.status&&t.validated}function P(t,n){var i,r,e;const o=!w(t.validated),u=!0===(null==t?void 0:t.locked),f=!0===(null===(i=null==t?void 0:t.description)||void 0===i?void 0:i.preventRetry),c=b(null===(r=null==t?void 0:t.description)||void 0===r?void 0:r.points),s=(null===(e=null==t?void 0:t.description)||void 0===e?void 0:e.points)||0,a=b(n);return o&&!u&&!f&&(!a||!c||!(n===s))}!function(t){t.CUSTOMER_HERO="customerhero",t.INSTORE_EXPERT="instoreexpert",t.ONBOARDING="onboarding",t.OUTSTANDING_LEARNER="outstandinglearner",t.PRODUCT_EXPERT="productexpert",t.CROSS_SELLING_GENIUS="crosssellinggenius"}(_||(_={}));var N,C,j,L,B,F,x,k=(N=function(t,n){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){function i(){this.constructor=t}N(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)});!function(t){t[t.DATA_URL=0]="DATA_URL",t[t.FILE_URL=1]="FILE_URL",t[t.NATIVE_URI=2]="NATIVE_URI"}(C||(C={})),function(t){t[t.JPEG=0]="JPEG",t[t.PNG=1]="PNG"}(j||(j={})),function(t){t[t.PICTURE=0]="PICTURE",t[t.VIDEO=1]="VIDEO",t[t.ALLMEDIA=2]="ALLMEDIA"}(L||(L={})),function(t){t[t.PHOTOLIBRARY=0]="PHOTOLIBRARY",t[t.CAMERA=1]="CAMERA",t[t.SAVEDPHOTOALBUM=2]="SAVEDPHOTOALBUM"}(B||(B={})),function(t){t[t.ARROW_UP=1]="ARROW_UP",t[t.ARROW_DOWN=2]="ARROW_DOWN",t[t.ARROW_LEFT=3]="ARROW_LEFT",t[t.ARROW_RIGHT=4]="ARROW_RIGHT",t[t.ARROW_ANY=5]="ARROW_ANY"}(F||(F={})),function(t){t[t.BACK=0]="BACK",t[t.FRONT=1]="FRONT"}(x||(x={}));var U,W=new(function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.DestinationType={DATA_URL:0,FILE_URI:1,NATIVE_URI:2},n.EncodingType={JPEG:0,PNG:1},n.MediaType={PICTURE:0,VIDEO:1,ALLMEDIA:2},n.PictureSourceType={PHOTOLIBRARY:0,CAMERA:1,SAVEDPHOTOALBUM:2},n.PopoverArrowDirection={ARROW_UP:1,ARROW_DOWN:2,ARROW_LEFT:4,ARROW_RIGHT:8,ARROW_ANY:15},n.Direction={BACK:0,FRONT:1},n}return k(n,t),n.prototype.getPicture=function(t){return r(this,"getPicture",{callbackOrder:"reverse"},arguments)},n.prototype.cleanup=function(){return r(this,"cleanup",{platforms:["iOS"]},arguments)},n.pluginName="Camera",n.plugin="cordova-plugin-camera",n.pluginRef="navigator.camera",n.repo="https://github.com/apache/cordova-plugin-camera",n.platforms=["Android","Browser","iOS","Windows"],n}(e)),z=function(){var t=function(n,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(n,i)};return function(n,i){function r(){this.constructor=n}t(n,i),n.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),q=new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return z(n,t),n.prototype.captureAudio=function(t){return r(this,"captureAudio",{callbackOrder:"reverse"},arguments)},n.prototype.captureImage=function(t){return r(this,"captureImage",{callbackOrder:"reverse"},arguments)},n.prototype.captureVideo=function(t){return r(this,"captureVideo",{callbackOrder:"reverse"},arguments)},n.prototype.onPendingCaptureResult=function(){return r(this,"onPendingCaptureResult",{eventObservable:!0,event:"pendingcaptureresult"},arguments)},n.prototype.onPendingCaptureError=function(){return r(this,"onPendingCaptureError",{eventObservable:!0,event:"pendingcaptureerror"},arguments)},Object.defineProperty(n.prototype,"supportedImageModes",{get:function(){return o(this,"supportedImageModes")},set:function(t){u(this,"supportedImageModes",t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"supportedAudioModes",{get:function(){return o(this,"supportedAudioModes")},set:function(t){u(this,"supportedAudioModes",t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"supportedVideoModes",{get:function(){return o(this,"supportedVideoModes")},set:function(t){u(this,"supportedVideoModes",t)},enumerable:!1,configurable:!0}),n.pluginName="MediaCapture",n.plugin="cordova-plugin-media-capture",n.pluginRef="navigator.device.capture",n.repo="https://github.com/apache/cordova-plugin-media-capture",n.platforms=["Android","Browser","iOS","Windows"],n}(e));function G(t,n){return f().user&&f().user.photoMaxWidth>0?f().user.photoMaxWidth:c()&&s()&&("MC40N0"===a.model||"ET1"===a.model||"SM-T580"===a.model||"blackberry10"===a.platform||"SM-A310F"===a.model||"SM-A510F"===a.model||"SM-J320FN"===a.model)?1280:t?2048:n||2048}function Y(t,n=U.IMAGE,i=h(),r){var e;return(null===(e=window)||void 0===e?void 0:e.MediaPicker)?new Promise((e=>{window.MediaPicker.getMedias({selectMode:n,maxSelectCount:t},(t=>{if(i){const n=t.map((t=>function(t,n=99){return new Promise((i=>{window.MediaPicker.compressImage(Object.assign(Object.assign({},t),{quality:n}),(t=>i(t.uri)),(()=>i(t.uri)))}))}(t,r)));Promise.all(n).then((t=>{e(t)}))}else e(t.map((t=>t.uri)))}),(()=>{e([])}))})):Promise.resolve([])}function H(t,n,i,r=!1,e=0,o=!1,u=1,c=!1){var s;if(r)return q.captureImage({limit:u});{const r=!1,u=-1!==(null===(s=f().user)||void 0===s?void 0:s.photoMaxWidth)&&!c;return W.getPicture(Object.assign({destinationType:C.FILE_URL,correctOrientation:!v(),encodingType:j.JPEG,saveToPhotoAlbum:!(f().user&&f().user.deletePhotos||n===B.PHOTOLIBRARY),quality:t,sourceType:n,mediaType:i,allowEdit:r},u&&{targetWidth:G(o,e),targetHeight:G(o,e)}))}}function V(t){return t?new Promise((n=>{var i,r;(null===(r=null===(i=navigator)||void 0===i?void 0:i.device)||void 0===r?void 0:r.capture)&&navigator.device.capture.captureVideo((t=>{n(t)}),(t=>{n(t)}),t)})):q.captureVideo({})}async function $(){const t=y();if(t)return(await t.enumerateDevices()).filter((t=>"videoinput"===t.kind)).map(((t,n)=>({_id:t.deviceId,deviceId:t.deviceId,label:t.label||"webcam "+n,kind:t.kind})))}function K(){const t=document.createElement("yoo-audio-recorder-dialog");return l(t,{height:"medium"},"",p("Enter","Y"),p("Leave","Y"),d())}!function(t){t.ALLMEDIA="101",t.IMAGE="100",t.VIDEO="102"}(U||(U={}));var X=function(){var t=function(n,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(n,i)};return function(n,i){function r(){this.constructor=n}t(n,i),n.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Z=new(function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.ORIENTATIONS={PORTRAIT_PRIMARY:"portrait-primary",PORTRAIT_SECONDARY:"portrait-secondary",LANDSCAPE_PRIMARY:"landscape-primary",LANDSCAPE_SECONDARY:"landscape-secondary",PORTRAIT:"portrait",LANDSCAPE:"landscape",ANY:"any"},n}return X(n,t),n.prototype.onChange=function(){return r(this,"onChange",{eventObservable:!0,event:"orientationchange",element:"window"},arguments)},n.prototype.lock=function(t){return r(this,"lock",{otherPromise:!0},arguments)},n.prototype.unlock=function(){return r(this,"unlock",{sync:!0},arguments)},Object.defineProperty(n.prototype,"type",{get:function(){return o(this,"type")},set:function(t){u(this,"type",t)},enumerable:!1,configurable:!0}),n.pluginName="ScreenOrientation",n.plugin="cordova-plugin-screen-orientation",n.pluginRef="screen.orientation",n.repo="https://github.com/apache/cordova-plugin-screen-orientation",n.platforms=["Android","iOS","Windows"],n}(e));const J=m(t((function(t){
|
|
14
|
+
!function(n,i,r,e){var o,u=["","webkit","Moz","MS","ms","o"],a=i.createElement("div"),c=Math.round,f=Math.abs,s=Date.now;function h(t,n,i){return setTimeout(g(t,i),n)}function v(t,n,i){return!!Array.isArray(t)&&(l(t,i[n],i),!0)}function l(t,n,i){var r;if(t)if(t.forEach)t.forEach(n,i);else if(t.length!==e)for(r=0;r<t.length;)n.call(i,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&n.call(i,t[r],r,t)}function d(t,i,r){var e="DEPRECATED METHOD: "+i+"\n"+r+" AT \n";return function(){var i=new Error("get-stack-trace"),r=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=n.console&&(n.console.warn||n.console.log);return o&&o.call(n.console,e,r),t.apply(this,arguments)}}o="function"!=typeof Object.assign?function(t){if(t===e||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(r!==e&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])}return n}:Object.assign;var p=d((function(t,n,i){for(var r=Object.keys(n),o=0;o<r.length;)(!i||i&&t[r[o]]===e)&&(t[r[o]]=n[r[o]]),o++;return t}),"extend","Use `assign`."),y=d((function(t,n){return p(t,n,!0)}),"merge","Use `assign`.");function m(t,n,i){var r,e=n.prototype;(r=t.prototype=Object.create(e)).constructor=t,r._super=e,i&&o(r,i)}function g(t,n){return function(){return t.apply(n,arguments)}}function b(t,n){return"function"==typeof t?t.apply(n&&n[0]||e,n):t}function w(t,n){return t===e?n:t}function E(t,n,i){l(I(n),(function(n){t.addEventListener(n,i,!1)}))}function T(t,n,i){l(I(n),(function(n){t.removeEventListener(n,i,!1)}))}function A(t,n){for(;t;){if(t==n)return!0;t=t.parentNode}return!1}function O(t,n){return t.indexOf(n)>-1}function I(t){return t.trim().split(/\s+/g)}function S(t,n,i){if(t.indexOf&&!i)return t.indexOf(n);for(var r=0;r<t.length;){if(i&&t[r][i]==n||!i&&t[r]===n)return r;r++}return-1}function R(t){return Array.prototype.slice.call(t,0)}function _(t,n,i){for(var r=[],e=[],o=0;o<t.length;){var u=n?t[o][n]:t[o];S(e,u)<0&&r.push(t[o]),e[o]=u,o++}return i&&(r=n?r.sort((function(t,i){return t[n]>i[n]})):r.sort()),r}function M(t,n){for(var i,r,o=n[0].toUpperCase()+n.slice(1),a=0;a<u.length;){if((r=(i=u[a])?i+o:n)in t)return r;a++}return e}var P=1;function D(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||n}var N="ontouchstart"in n,C=M(n,"PointerEvent")!==e,L=N&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j="touch",B="mouse",F=["x","y"],k=["clientX","clientY"];function x(t,n){var i=this;this.manager=t,this.callback=n,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(n){b(t.options.enable,[t])&&i.handler(n)},this.init()}function U(t,n,i){var r=i.pointers.length,o=i.changedPointers.length,u=1&n&&r-o==0,a=12&n&&r-o==0;i.isFirst=!!u,i.isFinal=!!a,u&&(t.session={}),i.eventType=n,function(t,n){var i=t.session,r=n.pointers,o=r.length;i.firstInput||(i.firstInput=W(n)),o>1&&!i.firstMultiple?i.firstMultiple=W(n):1===o&&(i.firstMultiple=!1);var u=i.firstInput,a=i.firstMultiple,c=a?a.center:u.center,h=n.center=z(r);n.timeStamp=s(),n.deltaTime=n.timeStamp-u.timeStamp,n.angle=H(c,h),n.distance=Y(c,h),function(t,n){var i=n.center,r=t.offsetDelta||{},e=t.prevDelta||{},o=t.prevInput||{};1!==n.eventType&&4!==o.eventType||(e=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:i.x,y:i.y}),n.deltaX=e.x+(i.x-r.x),n.deltaY=e.y+(i.y-r.y)}(i,n),n.offsetDirection=q(n.deltaX,n.deltaY);var v,l,d=G(n.deltaTime,n.deltaX,n.deltaY);n.overallVelocityX=d.x,n.overallVelocityY=d.y,n.overallVelocity=f(d.x)>f(d.y)?d.x:d.y,n.scale=a?(v=a.pointers,Y((l=r)[0],l[1],k)/Y(v[0],v[1],k)):1,n.rotation=a?function(t,n){return H(n[1],n[0],k)+H(t[1],t[0],k)}(a.pointers,r):0,n.maxPointers=i.prevInput?n.pointers.length>i.prevInput.maxPointers?n.pointers.length:i.prevInput.maxPointers:n.pointers.length,function(t,n){var i,r,o,u,a=t.lastInterval||n,c=n.timeStamp-a.timeStamp;if(8!=n.eventType&&(c>25||a.velocity===e)){var s=n.deltaX-a.deltaX,h=n.deltaY-a.deltaY,v=G(c,s,h);r=v.x,o=v.y,i=f(v.x)>f(v.y)?v.x:v.y,u=q(s,h),t.lastInterval=n}else i=a.velocity,r=a.velocityX,o=a.velocityY,u=a.direction;n.velocity=i,n.velocityX=r,n.velocityY=o,n.direction=u}(i,n);var p=t.element;A(n.srcEvent.target,p)&&(p=n.srcEvent.target),n.target=p}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function W(t){for(var n=[],i=0;i<t.pointers.length;)n[i]={clientX:c(t.pointers[i].clientX),clientY:c(t.pointers[i].clientY)},i++;return{timeStamp:s(),pointers:n,center:z(n),deltaX:t.deltaX,deltaY:t.deltaY}}function z(t){var n=t.length;if(1===n)return{x:c(t[0].clientX),y:c(t[0].clientY)};for(var i=0,r=0,e=0;e<n;)i+=t[e].clientX,r+=t[e].clientY,e++;return{x:c(i/n),y:c(r/n)}}function G(t,n,i){return{x:n/t||0,y:i/t||0}}function q(t,n){return t===n?1:f(t)>=f(n)?t<0?2:4:n<0?8:16}function Y(t,n,i){i||(i=F);var r=n[i[0]]-t[i[0]],e=n[i[1]]-t[i[1]];return Math.sqrt(r*r+e*e)}function H(t,n,i){return i||(i=F),180*Math.atan2(n[i[1]]-t[i[1]],n[i[0]]-t[i[0]])/Math.PI}x.prototype={handler:function(){},init:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(D(this.element),this.evWin,this.domHandler)}};var V={mousedown:1,mousemove:2,mouseup:4},$="mousedown",K="mousemove mouseup";function X(){this.evEl=$,this.evWin=K,this.pressed=!1,x.apply(this,arguments)}m(X,x,{handler:function(t){var n=V[t.type];1&n&&0===t.button&&(this.pressed=!0),2&n&&1!==t.which&&(n=4),this.pressed&&(4&n&&(this.pressed=!1),this.callback(this.manager,n,{pointers:[t],changedPointers:[t],pointerType:B,srcEvent:t}))}});var Z={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:j,3:"pen",4:B,5:"kinect"},Q="pointerdown",tt="pointermove pointerup pointercancel";function nt(){this.evEl=Q,this.evWin=tt,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}n.MSPointerEvent&&!n.PointerEvent&&(Q="MSPointerDown",tt="MSPointerMove MSPointerUp MSPointerCancel"),m(nt,x,{handler:function(t){var n=this.store,i=!1,r=t.type.toLowerCase().replace("ms",""),e=Z[r],o=J[t.pointerType]||t.pointerType,u=o==j,a=S(n,t.pointerId,"pointerId");1&e&&(0===t.button||u)?a<0&&(n.push(t),a=n.length-1):12&e&&(i=!0),a<0||(n[a]=t,this.callback(this.manager,e,{pointers:n,changedPointers:[t],pointerType:o,srcEvent:t}),i&&n.splice(a,1))}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8},rt="touchstart",et="touchstart touchmove touchend touchcancel";function ot(){this.evTarget=rt,this.evWin=et,this.started=!1,x.apply(this,arguments)}function ut(t,n){var i=R(t.touches),r=R(t.changedTouches);return 12&n&&(i=_(i.concat(r),"identifier",!0)),[i,r]}m(ot,x,{handler:function(t){var n=it[t.type];if(1===n&&(this.started=!0),this.started){var i=ut.call(this,t,n);12&n&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,n,{pointers:i[0],changedPointers:i[1],pointerType:j,srcEvent:t})}}});var at={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ct="touchstart touchmove touchend touchcancel";function ft(){this.evTarget=ct,this.targetIds={},x.apply(this,arguments)}function st(t,n){var i=R(t.touches),r=this.targetIds;if(3&n&&1===i.length)return r[i[0].identifier]=!0,[i,i];var e,o,u=R(t.changedTouches),a=[],c=this.target;if(o=i.filter((function(t){return A(t.target,c)})),1===n)for(e=0;e<o.length;)r[o[e].identifier]=!0,e++;for(e=0;e<u.length;)r[u[e].identifier]&&a.push(u[e]),12&n&&delete r[u[e].identifier],e++;return a.length?[_(o.concat(a),"identifier",!0),a]:void 0}function ht(){x.apply(this,arguments);var t=g(this.handler,this);this.touch=new ft(this.manager,t),this.mouse=new X(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function vt(t,n){1&t?(this.primaryTouch=n.changedPointers[0].identifier,lt.call(this,n)):12&t&<.call(this,n)}function lt(t){var n=t.changedPointers[0];if(n.identifier===this.primaryTouch){var i={x:n.clientX,y:n.clientY};this.lastTouches.push(i);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(i);t>-1&&r.splice(t,1)}),2500)}}function dt(t){for(var n=t.srcEvent.clientX,i=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var e=this.lastTouches[r],o=Math.abs(n-e.x),u=Math.abs(i-e.y);if(o<=25&&u<=25)return!0}return!1}m(ft,x,{handler:function(t){var n=at[t.type],i=st.call(this,t,n);i&&this.callback(this.manager,n,{pointers:i[0],changedPointers:i[1],pointerType:j,srcEvent:t})}}),m(ht,x,{handler:function(t,n,i){var r=i.pointerType==B;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(i.pointerType==j)vt.call(this,n,i);else if(r&&dt.call(this,i))return;this.callback(t,n,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var pt=M(a.style,"touchAction"),yt=pt!==e,mt="compute",gt="auto",bt="manipulation",wt="none",Et="pan-x",Tt="pan-y",At=function(){if(!yt)return!1;var t={},i=n.CSS&&n.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){t[r]=!i||n.CSS.supports("touch-action",r)})),t}();function Ot(t,n){this.manager=t,this.set(n)}Ot.prototype={set:function(t){t==mt&&(t=this.compute()),yt&&this.manager.element.style&&At[t]&&(this.manager.element.style[pt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return l(this.manager.recognizers,(function(n){b(n.options.enable,[n])&&(t=t.concat(n.getTouchAction()))})),function(t){if(O(t,wt))return wt;var n=O(t,Et),i=O(t,Tt);return n&&i?wt:n||i?n?Et:Tt:O(t,bt)?bt:gt}(t.join(" "))},preventDefaults:function(t){var n=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)n.preventDefault();else{var r=this.actions,e=O(r,wt)&&!At.none,o=O(r,Tt)&&!At["pan-y"],u=O(r,Et)&&!At["pan-x"];if(e&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!u||!o)return e||o&&6&i||u&&24&i?this.preventSrc(n):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var It=32;function St(t){this.options=o({},this.defaults,t||{}),this.id=P++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Rt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function _t(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Mt(t,n){var i=n.manager;return i?i.get(t):t}function Pt(){St.apply(this,arguments)}function Dt(){Pt.apply(this,arguments),this.pX=null,this.pY=null}function Nt(){Pt.apply(this,arguments)}function Ct(){St.apply(this,arguments),this._timer=null,this._input=null}function Lt(){Pt.apply(this,arguments)}function jt(){Pt.apply(this,arguments)}function Bt(){St.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ft(t,n){return(n=n||{}).recognizers=w(n.recognizers,Ft.defaults.preset),new kt(t,n)}function kt(t,n){this.options=o({},Ft.defaults,n||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(C?nt:L?ft:N?ht:X))(this,U),this.touchAction=new Ot(this,this.options.touchAction),xt(this,!0),l(this.options.recognizers,(function(t){var n=this.add(new t[0](t[1]));t[2]&&n.recognizeWith(t[2]),t[3]&&n.requireFailure(t[3])}),this)}function xt(t,n){var i,r=t.element;r.style&&(l(t.options.cssProps,(function(e,o){i=M(r.style,o),n?(t.oldCssProps[i]=r.style[i],r.style[i]=e):r.style[i]=t.oldCssProps[i]||""})),n||(t.oldCssProps={}))}St.prototype={defaults:{},set:function(t){return o(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(v(t,"recognizeWith",this))return this;var n=this.simultaneous;return n[(t=Mt(t,this)).id]||(n[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return v(t,"dropRecognizeWith",this)||(t=Mt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(v(t,"requireFailure",this))return this;var n=this.requireFail;return-1===S(n,t=Mt(t,this))&&(n.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(v(t,"dropRequireFailure",this))return this;t=Mt(t,this);var n=S(this.requireFail,t);return n>-1&&this.requireFail.splice(n,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var n=this,i=this.state;function r(i){n.manager.emit(i,t)}i<8&&r(n.options.event+Rt(i)),r(n.options.event),t.additionalEvent&&r(t.additionalEvent),i>=8&&r(n.options.event+Rt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=It},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var n=o({},t);if(!b(this.options.enable,[this,n]))return this.reset(),void(this.state=It);56&this.state&&(this.state=1),this.state=this.process(n),30&this.state&&this.tryEmit(n)},process:function(){},getTouchAction:function(){},reset:function(){}},m(Pt,St,{defaults:{pointers:1},attrTest:function(t){var n=this.options.pointers;return 0===n||t.pointers.length===n},process:function(t){var n=this.state,i=t.eventType,r=6&n,e=this.attrTest(t);return r&&(8&i||!e)?16|n:r||e?4&i?8|n:2&n?4|n:2:It}}),m(Dt,Pt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,n=[];return 6&t&&n.push(Tt),24&t&&n.push(Et),n},directionTest:function(t){var n=this.options,i=!0,r=t.distance,e=t.direction,o=t.deltaX,u=t.deltaY;return e&n.direction||(6&n.direction?(e=0===o?1:o<0?2:4,i=o!=this.pX,r=Math.abs(t.deltaX)):(e=0===u?1:u<0?8:16,i=u!=this.pY,r=Math.abs(t.deltaY))),t.direction=e,i&&r>n.threshold&&e&n.direction},attrTest:function(t){return Pt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var n=_t(t.direction);n&&(t.additionalEvent=this.options.event+n),this._super.emit.call(this,t)}}),m(Nt,Pt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),m(Ct,St,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[gt]},process:function(t){var n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,e=t.deltaTime>n.time;if(this._input=t,!r||!i||12&t.eventType&&!e)this.reset();else if(1&t.eventType)this.reset(),this._timer=h((function(){this.state=8,this.tryEmit()}),n.time,this);else if(4&t.eventType)return 8;return It},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=s(),this.manager.emit(this.options.event,this._input)))}}),m(Lt,Pt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),m(jt,Pt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Dt.prototype.getTouchAction.call(this)},attrTest:function(t){var n,i=this.options.direction;return 30&i?n=t.overallVelocity:6&i?n=t.overallVelocityX:24&i&&(n=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(n)>this.options.velocity&&4&t.eventType},emit:function(t){var n=_t(t.offsetDirection);n&&this.manager.emit(this.options.event+n,t),this.manager.emit(this.options.event,t)}}),m(Bt,St,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[bt]},process:function(t){var n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,e=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&e&&i){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<n.interval,u=!this.pCenter||Y(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,u&&o?this.count+=1:this.count=1,this._input=t,0==this.count%n.taps)return this.hasRequireFailures()?(this._timer=h((function(){this.state=8,this.tryEmit()}),n.interval,this),2):8}return It},failTimeout:function(){return this._timer=h((function(){this.state=It}),this.options.interval,this),It},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ft.VERSION="2.0.7",Ft.defaults={domEvents:!1,touchAction:mt,enable:!0,inputTarget:null,inputClass:null,preset:[[Lt,{enable:!1}],[Nt,{enable:!1},["rotate"]],[jt,{direction:6}],[Dt,{direction:6},["swipe"]],[Bt],[Bt,{event:"doubletap",taps:2},["tap"]],[Ct]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},kt.prototype={set:function(t){return o(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var n=this.session;if(!n.stopped){var i;this.touchAction.preventDefaults(t);var r=this.recognizers,e=n.curRecognizer;(!e||e&&8&e.state)&&(e=n.curRecognizer=null);for(var o=0;o<r.length;)i=r[o],2===n.stopped||e&&i!=e&&!i.canRecognizeWith(e)?i.reset():i.recognize(t),!e&&14&i.state&&(e=n.curRecognizer=i),o++}},get:function(t){if(t instanceof St)return t;for(var n=this.recognizers,i=0;i<n.length;i++)if(n[i].options.event==t)return n[i];return null},add:function(t){if(v(t,"add",this))return this;var n=this.get(t.options.event);return n&&this.remove(n),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(v(t,"remove",this))return this;if(t=this.get(t)){var n=this.recognizers,i=S(n,t);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},on:function(t,n){if(t!==e&&n!==e){var i=this.handlers;return l(I(t),(function(t){i[t]=i[t]||[],i[t].push(n)})),this}},off:function(t,n){if(t!==e){var i=this.handlers;return l(I(t),(function(t){n?i[t]&&i[t].splice(S(i[t],n),1):delete i[t]})),this}},emit:function(t,n){this.options.domEvents&&function(t,n){var r=i.createEvent("Event");r.initEvent(t,!0,!0),r.gesture=n,n.target.dispatchEvent(r)}(t,n);var r=this.handlers[t]&&this.handlers[t].slice();if(r&&r.length){n.type=t,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var e=0;e<r.length;)r[e](n),e++}},destroy:function(){this.element&&xt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Ft,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:It,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:kt,Input:x,TouchAction:Ot,TouchInput:ft,MouseInput:X,PointerEventInput:nt,TouchMouseInput:ht,SingleTouchInput:ot,Recognizer:St,AttrRecognizer:Pt,Tap:Bt,Pan:Dt,Swipe:jt,Pinch:Nt,Rotate:Lt,Press:Ct,on:E,off:T,each:l,merge:y,extend:p,assign:o,inherit:m,bindFn:g,prefixed:M}),(void 0!==n?n:"undefined"!=typeof self?self:{}).Hammer=Ft,t.exports?t.exports=Ft:n.Hammer=Ft}(window,document)}));function P(t){var n;return b(null===(n=null==t?void 0:t.description)||void 0===n?void 0:n.minValue)?"finished"===t.status:"finished"===t.status&&t.validated}function D(t,n){var i,r,e;const o=!b(t.validated),u=!0===(null==t?void 0:t.locked),a=!0===(null===(i=null==t?void 0:t.description)||void 0===i?void 0:i.preventRetry),c=w(null===(r=null==t?void 0:t.description)||void 0===r?void 0:r.points),f=(null===(e=null==t?void 0:t.description)||void 0===e?void 0:e.points)||0,s=w(n);return o&&!u&&!a&&(!s||!c||!(n===f))}!function(t){t.CUSTOMER_HERO="customerhero",t.INSTORE_EXPERT="instoreexpert",t.ONBOARDING="onboarding",t.OUTSTANDING_LEARNER="outstandinglearner",t.PRODUCT_EXPERT="productexpert",t.CROSS_SELLING_GENIUS="crosssellinggenius"}(_||(_={}));var N,C,L,j,B,F,k,x=(N=function(t,n){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)},function(t,n){function i(){this.constructor=t}N(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)});!function(t){t[t.DATA_URL=0]="DATA_URL",t[t.FILE_URL=1]="FILE_URL",t[t.NATIVE_URI=2]="NATIVE_URI"}(C||(C={})),function(t){t[t.JPEG=0]="JPEG",t[t.PNG=1]="PNG"}(L||(L={})),function(t){t[t.PICTURE=0]="PICTURE",t[t.VIDEO=1]="VIDEO",t[t.ALLMEDIA=2]="ALLMEDIA"}(j||(j={})),function(t){t[t.PHOTOLIBRARY=0]="PHOTOLIBRARY",t[t.CAMERA=1]="CAMERA",t[t.SAVEDPHOTOALBUM=2]="SAVEDPHOTOALBUM"}(B||(B={})),function(t){t[t.ARROW_UP=1]="ARROW_UP",t[t.ARROW_DOWN=2]="ARROW_DOWN",t[t.ARROW_LEFT=3]="ARROW_LEFT",t[t.ARROW_RIGHT=4]="ARROW_RIGHT",t[t.ARROW_ANY=5]="ARROW_ANY"}(F||(F={})),function(t){t[t.BACK=0]="BACK",t[t.FRONT=1]="FRONT"}(k||(k={}));var U,W=new(function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.DestinationType={DATA_URL:0,FILE_URI:1,NATIVE_URI:2},n.EncodingType={JPEG:0,PNG:1},n.MediaType={PICTURE:0,VIDEO:1,ALLMEDIA:2},n.PictureSourceType={PHOTOLIBRARY:0,CAMERA:1,SAVEDPHOTOALBUM:2},n.PopoverArrowDirection={ARROW_UP:1,ARROW_DOWN:2,ARROW_LEFT:4,ARROW_RIGHT:8,ARROW_ANY:15},n.Direction={BACK:0,FRONT:1},n}return x(n,t),n.prototype.getPicture=function(t){return r(this,"getPicture",{callbackOrder:"reverse"},arguments)},n.prototype.cleanup=function(){return r(this,"cleanup",{platforms:["iOS"]},arguments)},n.pluginName="Camera",n.plugin="cordova-plugin-camera",n.pluginRef="navigator.camera",n.repo="https://github.com/apache/cordova-plugin-camera",n.platforms=["Android","Browser","iOS","Windows"],n}(e)),z=function(){var t=function(n,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(n,i)};return function(n,i){function r(){this.constructor=n}t(n,i),n.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();!function(t){t[t.FILE_URL=0]="FILE_URL",t[t.DATA_URL=1]="DATA_URL"}(U||(U={}));var G,q=new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return z(n,t),n.prototype.getPictures=function(t){return r(this,"getPictures",{callbackOrder:"reverse"},arguments)},n.prototype.hasReadPermission=function(){return r(this,"hasReadPermission",{platforms:["Android"]},arguments)},n.prototype.requestReadPermission=function(){return r(this,"requestReadPermission",{platforms:["Android"]},arguments)},n.pluginName="ImagePicker",n.plugin="cordova-plugin-telerik-imagepicker",n.pluginRef="window.imagePicker",n.repo="https://github.com/Telerik-Verified-Plugins/ImagePicker",n.install='ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="your usage message"',n.installVariables=["PHOTO_LIBRARY_USAGE_DESCRIPTION"],n.platforms=["Android","iOS"],n}(e)),Y=function(){var t=function(n,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(n,i)};return function(n,i){function r(){this.constructor=n}t(n,i),n.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),H=new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.prototype.captureAudio=function(t){return r(this,"captureAudio",{callbackOrder:"reverse"},arguments)},n.prototype.captureImage=function(t){return r(this,"captureImage",{callbackOrder:"reverse"},arguments)},n.prototype.captureVideo=function(t){return r(this,"captureVideo",{callbackOrder:"reverse"},arguments)},n.prototype.onPendingCaptureResult=function(){return r(this,"onPendingCaptureResult",{eventObservable:!0,event:"pendingcaptureresult"},arguments)},n.prototype.onPendingCaptureError=function(){return r(this,"onPendingCaptureError",{eventObservable:!0,event:"pendingcaptureerror"},arguments)},Object.defineProperty(n.prototype,"supportedImageModes",{get:function(){return o(this,"supportedImageModes")},set:function(t){u(this,"supportedImageModes",t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"supportedAudioModes",{get:function(){return o(this,"supportedAudioModes")},set:function(t){u(this,"supportedAudioModes",t)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"supportedVideoModes",{get:function(){return o(this,"supportedVideoModes")},set:function(t){u(this,"supportedVideoModes",t)},enumerable:!1,configurable:!0}),n.pluginName="MediaCapture",n.plugin="cordova-plugin-media-capture",n.pluginRef="navigator.device.capture",n.repo="https://github.com/apache/cordova-plugin-media-capture",n.platforms=["Android","Browser","iOS","Windows"],n}(e));function V(t,n){return a().user&&a().user.photoMaxWidth>0?a().user.photoMaxWidth:c()&&f()&&("MC40N0"===s.model||"ET1"===s.model||"SM-T580"===s.model||"blackberry10"===s.platform||"SM-A310F"===s.model||"SM-A510F"===s.model||"SM-J320FN"===s.model)?1280:t?2048:n||2048}async function $(t,n=h(),i){return await q.getPictures({maximumImagesCount:t||15,quality:n?i:100,disable_popover:!0})}function K(t,n,i,r=!1,e=0,o=!1,u=1,c=!1){var f;if(r)return H.captureImage({limit:u});{const r=!1,u=-1!==(null===(f=a().user)||void 0===f?void 0:f.photoMaxWidth)&&!c;return W.getPicture(Object.assign({destinationType:C.FILE_URL,correctOrientation:!v(),encodingType:L.JPEG,saveToPhotoAlbum:!(a().user&&a().user.deletePhotos||n===B.PHOTOLIBRARY),quality:t,sourceType:n,mediaType:i,allowEdit:r},u&&{targetWidth:V(o,e),targetHeight:V(o,e)}))}}function X(t){return t?new Promise((n=>{var i,r;(null===(r=null===(i=navigator)||void 0===i?void 0:i.device)||void 0===r?void 0:r.capture)&&navigator.device.capture.captureVideo((t=>{n(t)}),(t=>{n(t)}),t)})):H.captureVideo({})}async function Z(){const t=y();if(t)return(await t.enumerateDevices()).filter((t=>"videoinput"===t.kind)).map(((t,n)=>({_id:t.deviceId,deviceId:t.deviceId,label:t.label||"webcam "+n,kind:t.kind})))}function J(){const t=document.createElement("yoo-audio-recorder-dialog");return l(t,{height:"medium"},"",p("Enter","Y"),p("Leave","Y"),d())}!function(t){t.ALLMEDIA="101",t.IMAGE="100",t.VIDEO="102"}(G||(G={}));var Q=function(){var t=function(n,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(n,i)};return function(n,i){function r(){this.constructor=n}t(n,i),n.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),tt=new(function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.ORIENTATIONS={PORTRAIT_PRIMARY:"portrait-primary",PORTRAIT_SECONDARY:"portrait-secondary",LANDSCAPE_PRIMARY:"landscape-primary",LANDSCAPE_SECONDARY:"landscape-secondary",PORTRAIT:"portrait",LANDSCAPE:"landscape",ANY:"any"},n}return Q(n,t),n.prototype.onChange=function(){return r(this,"onChange",{eventObservable:!0,event:"orientationchange",element:"window"},arguments)},n.prototype.lock=function(t){return r(this,"lock",{otherPromise:!0},arguments)},n.prototype.unlock=function(){return r(this,"unlock",{sync:!0},arguments)},Object.defineProperty(n.prototype,"type",{get:function(){return o(this,"type")},set:function(t){u(this,"type",t)},enumerable:!1,configurable:!0}),n.pluginName="ScreenOrientation",n.plugin="cordova-plugin-screen-orientation",n.pluginRef="screen.orientation",n.repo="https://github.com/apache/cordova-plugin-screen-orientation",n.platforms=["Android","iOS","Windows"],n}(e));const nt=m(t((function(t){
|
|
15
15
|
/**
|
|
16
16
|
* @file postscribe
|
|
17
17
|
* @description Asynchronously write javascript, even with document.write.
|
|
@@ -21,7 +21,7 @@ t.exports=function t(n,r,e){function o(f,c){if(!r[f]){if(!n[f]){var s="function"
|
|
|
21
21
|
* @author Derek Brans
|
|
22
22
|
* @copyright 2016 Krux Digital, Inc
|
|
23
23
|
*/
|
|
24
|
-
var n;n=function(){return function(t){var n={};function i(r){if(n[r])return n[r].exports;var e=n[r]={exports:{},id:r,loaded:!1};return t[r].call(e.exports,e,e.exports,i),e.loaded=!0,e.exports}return i.m=t,i.c=n,i.p="",i(0)}([function(t,n,i){var r,e=(r=i(1))&&r.__esModule?r:{default:r};t.exports=e.default},function(t,n,i){n.__esModule=!0;var r=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t};n.default=d;var e,o=(e=i(2))&&e.__esModule?e:{default:e},u=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n.default=t,n}(i(4));function
|
|
24
|
+
var n;n=function(){return function(t){var n={};function i(r){if(n[r])return n[r].exports;var e=n[r]={exports:{},id:r,loaded:!1};return t[r].call(e.exports,e,e.exports,i),e.loaded=!0,e.exports}return i.m=t,i.c=n,i.p="",i(0)}([function(t,n,i){var r,e=(r=i(1))&&r.__esModule?r:{default:r};t.exports=e.default},function(t,n,i){n.__esModule=!0;var r=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t};n.default=d;var e,o=(e=i(2))&&e.__esModule?e:{default:e},u=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n.default=t,n}(i(4));function a(){}var c={afterAsync:a,afterDequeue:a,afterStreamStart:a,afterWrite:a,autoFix:!0,beforeEnqueue:a,beforeWriteToken:function(t){return t},beforeWrite:function(t){return t},done:a,error:function(t){throw new Error(t.msg)},releaseAsync:!1},f=0,s=[],h=null;function v(){var t=s.shift();if(t){var n=u.last(t);n.afterDequeue(),t.stream=l.apply(void 0,t),n.afterStreamStart()}}function l(t,n,i){(h=new o.default(t,i)).id=f++,h.name=i.name||h.id,d.streams[h.name]=h;var e=t.ownerDocument,u={close:e.close,open:e.open,write:e.write,writeln:e.writeln};function c(t){t=i.beforeWrite(t),h.write(t),i.afterWrite(t)}r(e,{close:a,open:a,write:function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return c(n.join(""))},writeln:function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return c(n.join("")+"\n")}});var s=h.win.onerror||a;return h.win.onerror=function(t,n,r){i.error({msg:t+" - "+n+": "+r}),s.apply(h.win,[t,n,r])},h.write(n,(function(){r(e,u),h.win.onerror=s,i.done(),h=null,v()})),h}function d(t,n,i){if(u.isFunction(i))i={done:i};else if("clear"===i)return s=[],h=null,void(f=0);i=u.defaults(i,c);var r=[t=/^#/.test(t)?window.document.getElementById(t.substr(1)):t.jquery?t[0]:t,n,i];return t.postscribe={cancel:function(){r.stream?r.stream.abort():r[1]=a}},i.beforeEnqueue(r),s.push(r),h||v(),t.postscribe}r(d,{streams:{},queue:s,WriteStream:o.default})},function(t,n,i){n.__esModule=!0;var r,e=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},o=(r=i(3))&&r.__esModule?r:{default:r},u=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n.default=t,n}(i(4));function a(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var c="data-ps-",f="ps-style",s="ps-script";function h(t,n){var i=t.getAttribute(c+n);return u.existy(i)?String(i):i}function v(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=c+n;u.existy(i)&&""!==i?t.setAttribute(r,i):t.removeAttribute(r)}var l=function(){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t),this.root=n,this.options=i,this.doc=n.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new o.default("",{autoFix:i.autoFix}),this.actuals=[n],this.proxyHistory="",this.proxyRoot=this.doc.createElement(n.nodeName),this.scriptStack=[],this.writeQueue=[],v(this.proxyRoot,"proxyof",0)}return t.prototype.write=function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&&this.writeQueue.length;){var n=this.writeQueue.shift();u.isFunction(n)?this._callFunction(n):this._writeImpl(n)}},t.prototype._callFunction=function(t){var n={type:"function",value:t.name||t.toString()};this._onScriptStart(n),t.call(this.win,this.doc),this._onScriptDone(n)},t.prototype._writeImpl=function(t){this.parser.append(t);for(var n=void 0,i=void 0,r=void 0,e=[];(n=this.parser.readToken())&&!(i=u.isScript(n))&&!(r=u.isStyle(n));)(n=this.options.beforeWriteToken(n))&&e.push(n);e.length>0&&this._writeStaticTokens(e),i&&this._handleScriptToken(n),r&&this._handleStyleToken(n)},t.prototype._writeStaticTokens=function(t){var n=this._buildChunk(t);return n.actual?(n.html=this.proxyHistory+n.actual,this.proxyHistory+=n.proxy,this.proxyRoot.innerHTML=n.html,this._walkChunk(),n):null},t.prototype._buildChunk=function(t){for(var n=this.actuals.length,i=[],r=[],e=[],o=t.length,u=0;u<o;u++){var a=t[u],c=a.toString();if(i.push(c),a.attrs){if(!/^noscript$/i.test(a.tagName)){var h=n++;r.push(c.replace(/(\/?>)/," data-ps-id="+h+" $1")),a.attrs.id!==s&&a.attrs.id!==f&&e.push("atomicTag"===a.type?"":"<"+a.tagName+" data-ps-proxyof="+h+(a.unary?" />":">"))}}else r.push(c),e.push("endTag"===a.type?c:"")}return{tokens:t,raw:i.join(""),actual:r.join(""),proxy:e.join("")}},t.prototype._walkChunk=function(){for(var t=void 0,n=[this.proxyRoot];u.existy(t=n.shift());){var i=1===t.nodeType;if(!i||!h(t,"proxyof")){i&&(this.actuals[h(t,"id")]=t,v(t,"id"));var r=t.parentNode&&h(t.parentNode,"proxyof");r&&this.actuals[r].appendChild(t)}n.unshift.apply(n,u.toArray(t.childNodes))}},t.prototype._handleScriptToken=function(t){var n=this,i=this.parser.clear();i&&this.writeQueue.unshift(i),t.src=t.attrs.src||t.attrs.SRC,(t=this.options.beforeWriteToken(t))&&(t.src&&this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,(function(){n._onScriptDone(t)})))},t.prototype._handleStyleToken=function(t){var n=this.parser.clear();n&&this.writeQueue.unshift(n),t.type=t.attrs.type||t.attrs.TYPE||"text/css",(t=this.options.beforeWriteToken(t))&&this._writeStyleToken(t),n&&this.write()},t.prototype._writeStyleToken=function(t){var n=this._buildStyle(t);this._insertCursor(n,f),t.content&&(n.styleSheet&&!n.sheet?n.styleSheet.cssText=t.content:n.appendChild(this.doc.createTextNode(t.content)))},t.prototype._buildStyle=function(t){var n=this.doc.createElement(t.tagName);return n.setAttribute("type",t.type),u.eachKey(t.attrs,(function(t,i){n.setAttribute(t,i)})),n},t.prototype._insertCursor=function(t,n){this._writeImpl('<span id="'+n+'"/>');var i=this.doc.getElementById(n);i&&i.parentNode.replaceChild(t,i)},t.prototype._onScriptStart=function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)},t.prototype._onScriptDone=function(t){t===this.scriptStack[0]?(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)):this.options.error({msg:"Bad script nesting or script finished twice"})},t.prototype._writeScriptToken=function(t,n){var i=this._buildScript(t),r=this._shouldRelease(i),e=this.options.afterAsync;t.src&&(i.src=t.src,this._scriptLoadHandler(i,r?e:function(){n(),e()}));try{this._insertCursor(i,s),i.src&&!r||n()}catch(t){this.options.error(t),n()}},t.prototype._buildScript=function(t){var n=this.doc.createElement(t.tagName);return u.eachKey(t.attrs,(function(t,i){n.setAttribute(t,i)})),t.content&&(n.text=t.content),n},t.prototype._scriptLoadHandler=function(t,n){function i(){t=t.onload=t.onreadystatechange=t.onerror=null}var r=this.options.error;function o(){i(),null!=n&&n(),n=null}function u(t){i(),r(t),null!=n&&n(),n=null}function a(t,n){var i=t["on"+n];null!=i&&(t["_on"+n]=i)}a(t,"load"),a(t,"error"),e(t,{onload:function(){if(t._onload)try{t._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(n){u({msg:"onload handler failed "+n+" @ "+t.src})}o()},onerror:function(){if(t._onerror)try{t._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(n){return void u({msg:"onerror handler failed "+n+" @ "+t.src})}u({msg:"remote script failed "+t.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(t.readyState)&&o()}})},t.prototype._shouldRelease=function(t){return!/^script$/i.test(t.nodeName)||!!(this.options.releaseAsync&&t.src&&t.hasAttribute("async"))},t}();n.default=l},function(t){
|
|
25
25
|
/**
|
|
26
26
|
* @file prescribe
|
|
27
27
|
* @description Tiny, forgiving HTML parser
|
|
@@ -31,4 +31,4 @@ var n;n=function(){return function(t){var n={};function i(r){if(n[r])return n[r]
|
|
|
31
31
|
* @author Derek Brans
|
|
32
32
|
* @copyright 2016 Krux Digital, Inc
|
|
33
33
|
*/
|
|
34
|
-
var n;n=function(){return function(t){var n={};function i(r){if(n[r])return n[r].exports;var e=n[r]={exports:{},id:r,loaded:!1};return t[r].call(e.exports,e,e.exports,i),e.loaded=!0,e.exports}return i.m=t,i.c=n,i.p="",i(0)}([function(t,n,i){var r,e=(r=i(1))&&r.__esModule?r:{default:r};t.exports=e.default},function(t,n,i){n.__esModule=!0;var r,e=c(i(2)),o=c(i(3)),u=(r=i(6))&&r.__esModule?r:{default:r},f=i(5);function c(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n.default=t,n}function s(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var a={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},h=function(){function t(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,t),this.stream=i;var o=!1,f={};for(var c in e)e.hasOwnProperty(c)&&(r.autoFix&&(f[c+"Fix"]=!0),o=o||f[c+"Fix"]);o?(this._readToken=(0,u.default)(this,f,(function(){return n._readTokenImpl()})),this._peekToken=(0,u.default)(this,f,(function(){return n._peekTokenImpl()}))):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return t.prototype.append=function(t){this.stream+=t},t.prototype.prepend=function(t){this.stream=t+this.stream},t.prototype._readTokenImpl=function(){var t=this._peekTokenImpl();if(t)return this.stream=this.stream.slice(t.length),t},t.prototype._peekTokenImpl=function(){for(var t in a)if(a.hasOwnProperty(t)&&a[t].test(this.stream)){var n=o[t](this.stream);if(n)return"startTag"===n.type&&/script|style/i.test(n.tagName)?null:(n.text=this.stream.substr(0,n.length),n)}},t.prototype.peekToken=function(){return this._peekToken()},t.prototype.readToken=function(){return this._readToken()},t.prototype.readTokens=function(t){for(var n=void 0;n=this.readToken();)if(t[n.type]&&!1===t[n.type](n))return},t.prototype.clear=function(){var t=this.stream;return this.stream="",t},t.prototype.rest=function(){return this.stream},t}();for(var v in n.default=h,h.tokenToString=function(t){return t.toString()},h.escapeAttributes=function(t){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=(0,f.escapeQuotes)(t[i],null));return n},h.supports=e,e)e.hasOwnProperty(v)&&(h.browserHasFlaw=h.browserHasFlaw||!e[v]&&v)},function(t,n){n.__esModule=!0;var i=!1,r=!1,e=window.document.createElement("div");try{var o="<P><I></P></I>";e.innerHTML=o,n.tagSoup=i=e.innerHTML!==o}catch(t){n.tagSoup=i=!1}try{e.innerHTML="<P><i><P></P></i></P>",n.selfClose=r=2===e.childNodes.length}catch(t){n.selfClose=r=!1}e=null,n.tagSoup=i,n.selfClose=r},function(t,n,i){n.__esModule=!0;var r="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};n.comment=function(t){var n=t.indexOf("--\x3e");if(n>=0)return new e.CommentToken(t.substr(4,n-1),n+3)},n.chars=function(t){var n=t.indexOf("<");return new e.CharsToken(n>=0?n:t.length)},n.startTag=u,n.atomicTag=function(t){var n=u(t);if(n){var i=t.slice(n.length);if(i.match(new RegExp("</\\s*"+n.tagName+"\\s*>","i"))){var r=i.match(new RegExp("([\\s\\S]*?)</\\s*"+n.tagName+"\\s*>","i"));if(r)return new e.AtomicTagToken(n.tagName,r[0].length+n.length,n.attrs,n.booleanAttrs,r[1])}}},n.endTag=function(t){var n=t.match(o.endTag);if(n)return new e.EndTagToken(n[1],n[0].length)};var e=i(4),o={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i};function u(t){var n,i,u;if(-1!==t.indexOf(">")){var f=t.match(o.startTag);if(f){var c=(n={},i={},u=f[2],f[2].replace(o.attr,(function(t,r){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(n[arguments[5]]="",i[arguments[5]]=!0):n[r]=arguments[2]||arguments[3]||arguments[4]||o.fillAttr.test(r)&&r||"":n[r]="",u=u.replace(t,"")})),{v:new e.StartTagToken(f[1],f[0].length,n,i,!!f[3],u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))});if("object"===(void 0===c?"undefined":r(c)))return c.v}}}},function(t,n,i){n.__esModule=!0,n.EndTagToken=n.AtomicTagToken=n.StartTagToken=n.TagToken=n.CharsToken=n.CommentToken=n.Token=void 0;var r=i(5);function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}n.Token=function t(n,i){e(this,t),this.type=n,this.length=i,this.text=""},n.CommentToken=function(){function t(n,i){e(this,t),this.type="comment",this.length=i||(n?n.length:0),this.text="",this.content=n}return t.prototype.toString=function(){return"\x3c!--"+this.content},t}(),n.CharsToken=function(){function t(n){e(this,t),this.type="chars",this.length=n,this.text=""}return t.prototype.toString=function(){return this.text},t}();var o=n.TagToken=function(){function t(n,i,r,o,u){e(this,t),this.type=n,this.length=r,this.text="",this.tagName=i,this.attrs=o,this.booleanAttrs=u,this.unary=!1,this.html5Unary=!1}return t.formatTag=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i="<"+t.tagName;for(var e in t.attrs)if(t.attrs.hasOwnProperty(e)){i+=" "+e;var o=t.attrs[e];void 0!==t.booleanAttrs&&void 0!==t.booleanAttrs[e]||(i+='="'+(0,r.escapeQuotes)(o)+'"')}return t.rest&&(i+=" "+t.rest),i+=t.unary&&!t.html5Unary?"/>":">",null!=n&&(i+=n+"</"+t.tagName+">"),i},t}();n.StartTagToken=function(){function t(n,i,r,o,u,f){e(this,t),this.type="startTag",this.length=i,this.text="",this.tagName=n,this.attrs=r,this.booleanAttrs=o,this.html5Unary=!1,this.unary=u,this.rest=f}return t.prototype.toString=function(){return o.formatTag(this)},t}(),n.AtomicTagToken=function(){function t(n,i,r,o,u){e(this,t),this.type="atomicTag",this.length=i,this.text="",this.tagName=n,this.attrs=r,this.booleanAttrs=o,this.unary=!1,this.html5Unary=!1,this.content=u}return t.prototype.toString=function(){return o.formatTag(this,this.content)},t}(),n.EndTagToken=function(){function t(n,i){e(this,t),this.type="endTag",this.length=i,this.text="",this.tagName=n}return t.prototype.toString=function(){return"</"+this.tagName+">"},t}()},function(t,n){n.__esModule=!0,n.escapeQuotes=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?t.replace(/([^"]*)"/g,(function(t,n){return/\\/.test(n)?n+'"':n+'\\"'})):n}},function(t,n){n.__esModule=!0,n.default=function(t,n,i){var u=function(){var t=[];return t.last=function(){return this[this.length-1]},t.lastTagNameEq=function(t){var n=this.last();return n&&n.tagName&&n.tagName.toUpperCase()===t.toUpperCase()},t.containsTagName=function(t){for(var n,i=0;n=this[i];i++)if(n.tagName===t)return!0;return!1},t}(),f={startTag:function(i){var e=i.tagName;"TR"===e.toUpperCase()&&u.lastTagNameEq("TABLE")?(t.prepend("<TBODY>"),c()):n.selfCloseFix&&r.test(e)&&u.containsTagName(e)?u.lastTagNameEq(e)?o(t,u):(t.prepend("</"+i.tagName+">"),c()):i.unary||u.push(i)},endTag:function(r){u.last()?n.tagSoupFix&&!u.lastTagNameEq(r.tagName)?o(t,u):u.pop():n.tagSoupFix&&(i(),c())}};function c(){var n=function(t,n){var i=t.stream,r=e(n());return t.stream=i,r}(t,i);n&&f[n.type]&&f[n.type](n)}return function(){return c(),e(i())}};var i=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,r=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i;function e(t){return t&&"startTag"===t.type&&(t.unary=i.test(t.tagName)||t.unary,t.html5Unary=!/\/>$/.test(t.text)),t}function o(t,n){var i=n.pop();t.prepend("</"+i.tagName+">")}}])},t.exports=n()},function(t,n){n.__esModule=!0;var i="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};function r(t){return null!=t}function e(t,n,i){var r=void 0,e=t&&t.length||0;for(r=0;r<e;r++)n.call(i,t[r],r)}function o(t,n,i){for(var r in t)t.hasOwnProperty(r)&&n.call(i,r,t[r])}function u(t,n){return!(!t||"startTag"!==t.type&&"atomicTag"!==t.type||!("tagName"in t)||!~t.tagName.toLowerCase().indexOf(n))}n.existy=r,n.isFunction=function(t){return"function"==typeof t},n.each=e,n.eachKey=o,n.defaults=function(t,n){return t=t||{},o(n,(function(n,i){r(t[n])||(t[n]=i)})),t},n.toArray=function(t){try{return Array.prototype.slice.call(t)}catch(o){var n=(r=[],e(t,(function(t){r.push(t)})),{v:r});if("object"===(void 0===n?"undefined":i(n)))return n.v}var r},n.last=function(t){return t[t.length-1]},n.isTag=u,n.isScript=function(t){return u(t,"script")},n.isStyle=function(t){return u(t,"style")}}])},t.exports=n()})));var Q=function(){var t=function(n,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(n,i)};return function(n,i){function r(){this.constructor=n}t(n,i),n.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),tt=new(function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.APP={USER_SELECT:"user_select",APPLE_MAPS:"apple_maps",GOOGLE_MAPS:"google_maps",WAZE:"waze",CITYMAPPER:"citymapper",NAVIGON:"navigon",TRANSIT_APP:"transit_app",YANDEX:"yandex",UBER:"uber",TOMTOM:"tomtom",BING_MAPS:"bing_maps",SYGIC:"sygic",HERE_MAPS:"here_maps",MOOVIT:"moovit"},n.TRANSPORT_MODE={DRIVING:"driving",WALKING:"walking",BICYCLING:"bicycling",TRANSIT:"transit"},n}return Q(n,t),n.prototype.navigate=function(t,n){return r(this,"navigate",{successIndex:2,errorIndex:3},arguments)},n.prototype.isAppAvailable=function(t){return r(this,"isAppAvailable",{},arguments)},n.prototype.availableApps=function(){return r(this,"availableApps",{},arguments)},n.prototype.getAppDisplayName=function(t){return r(this,"getAppDisplayName",{sync:!0},arguments)},n.prototype.getAppsForPlatform=function(t){return r(this,"getAppsForPlatform",{sync:!0},arguments)},n.prototype.supportsTransportMode=function(t,n){return r(this,"supportsTransportMode",{sync:!0},arguments)},n.prototype.getTransportModes=function(t,n){return r(this,"getTransportModes",{sync:!0},arguments)},n.prototype.supportsDestName=function(t,n){return r(this,"supportsDestName",{sync:!0},arguments)},n.prototype.supportsStart=function(t,n){return r(this,"supportsStart",{sync:!0},arguments)},n.prototype.supportsStartName=function(t,n){return r(this,"supportsStartName",{sync:!0},arguments)},n.prototype.supportsLaunchMode=function(t,n){return r(this,"supportsLaunchMode",{sync:!0},arguments)},n.prototype.userSelect=function(t,n){return r(this,"userSelect",{sync:!0},arguments)},Object.defineProperty(n.prototype,"appSelection",{get:function(){return o(this,"appSelection")},set:function(t){u(this,"appSelection",t)},enumerable:!1,configurable:!0}),n.pluginName="LaunchNavigator",n.plugin="uk.co.workingedge.phonegap.plugin.launchnavigator",n.pluginRef="launchnavigator",n.repo="https://github.com/dpa99c/phonegap-launch-navigator",n.platforms=["Android","iOS","Windows","Windows Phone 8"],n}(e)),nt=function(){if("undefined"!=typeof Map)return Map;function t(t,n){var i=-1;return t.some((function(t,r){return t[0]===n&&(i=r,!0)})),i}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(n){var i=t(this.__entries__,n),r=this.__entries__[i];return r&&r[1]},n.prototype.set=function(n,i){var r=t(this.__entries__,n);~r?this.__entries__[r][1]=i:this.__entries__.push([n,i])},n.prototype.delete=function(n){var i=this.__entries__,r=t(i,n);~r&&i.splice(r,1)},n.prototype.has=function(n){return!!~t(this.__entries__,n)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(t,n){void 0===n&&(n=null);for(var i=0,r=this.__entries__;i<r.length;i++){var e=r[i];t.call(n,e[1],e[0])}},n}()}(),it="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,rt=void 0!==g&&g.Math===Math?g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),et="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(rt):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},ot=["top","right","bottom","left","width","height","size","weight"],ut="undefined"!=typeof MutationObserver,ft=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t){var n=!1,i=!1,r=0;function e(){n&&(n=!1,t()),i&&u()}function o(){et(e)}function u(){var t=Date.now();if(n){if(t-r<2)return;i=!0}else n=!0,i=!1,setTimeout(o,20);r=t}return u}(this.refresh.bind(this))}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var n=this.observers_,i=n.indexOf(t);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){it&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ut?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){it&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=void 0===n?"":n;ot.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),ct=function(t,n){for(var i=0,r=Object.keys(n);i<r.length;i++){var e=r[i];Object.defineProperty(t,e,{value:n[e],enumerable:!1,writable:!1,configurable:!0})}return t},st=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||rt},at=pt(0,0,0,0);function ht(t){return parseFloat(t)||0}function vt(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.reduce((function(n,i){return n+ht(t["border-"+i+"-width"])}),0)}var lt="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof st(t).SVGGraphicsElement}:function(t){return t instanceof st(t).SVGElement&&"function"==typeof t.getBBox};function dt(t){return it?lt(t)?function(t){var n=t.getBBox();return pt(0,0,n.width,n.height)}(t):function(t){var n=t.clientWidth,i=t.clientHeight;if(!n&&!i)return at;var r=st(t).getComputedStyle(t),e=function(t){for(var n={},i=0,r=["top","right","bottom","left"];i<r.length;i++){var e=r[i];n[e]=ht(t["padding-"+e])}return n}(r),o=e.left+e.right,u=e.top+e.bottom,f=ht(r.width),c=ht(r.height);if("border-box"===r.boxSizing&&(Math.round(f+o)!==n&&(f-=vt(r,"left","right")+o),Math.round(c+u)!==i&&(c-=vt(r,"top","bottom")+u)),!function(t){return t===st(t).document.documentElement}(t)){var s=Math.round(f+o)-n,a=Math.round(c+u)-i;1!==Math.abs(s)&&(f-=s),1!==Math.abs(a)&&(c-=a)}return pt(e.left,e.top,f,c)}(t):at}function pt(t,n,i,r){return{x:t,y:n,width:i,height:r}}var yt=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=pt(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=dt(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),mt=function(t,n){var i,r,e,o,u,f,c,s=(r=(i=n).x,e=i.y,o=i.width,u=i.height,f="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(f.prototype),ct(c,{x:r,y:e,width:o,height:u,top:e,right:r+o,bottom:u+e,left:r}),c);ct(this,{target:t,contentRect:s})},gt=function(){function t(t,n,i){if(this.activeObservations_=[],this.observations_=new nt,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof st(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new yt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof st(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(n){n.isActive()&&t.activeObservations_.push(n)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map((function(t){return new mt(t.target,t.broadcastRect())}));this.callback_.call(t,n,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),wt="undefined"!=typeof WeakMap?new WeakMap:new nt,bt=function t(n){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=ft.getInstance(),r=new gt(n,i,this);wt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){bt.prototype[t]=function(){var n;return(n=wt.get(this))[t].apply(n,arguments)}}));var Et=void 0!==rt.ResizeObserver?rt.ResizeObserver:bt;export{_ as D,tt as L,U as M,B as P,Z as S,Y as a,H as b,P as c,V as d,$ as e,R as f,G as g,M as h,D as i,Et as j,L as k,E as l,q as m,J as p,K as s}
|
|
34
|
+
var n;n=function(){return function(t){var n={};function i(r){if(n[r])return n[r].exports;var e=n[r]={exports:{},id:r,loaded:!1};return t[r].call(e.exports,e,e.exports,i),e.loaded=!0,e.exports}return i.m=t,i.c=n,i.p="",i(0)}([function(t,n,i){var r,e=(r=i(1))&&r.__esModule?r:{default:r};t.exports=e.default},function(t,n,i){n.__esModule=!0;var r,e=c(i(2)),o=c(i(3)),u=(r=i(6))&&r.__esModule?r:{default:r},a=i(5);function c(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n.default=t,n}function f(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var s={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},h=function(){function t(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,t),this.stream=i;var o=!1,a={};for(var c in e)e.hasOwnProperty(c)&&(r.autoFix&&(a[c+"Fix"]=!0),o=o||a[c+"Fix"]);o?(this._readToken=(0,u.default)(this,a,(function(){return n._readTokenImpl()})),this._peekToken=(0,u.default)(this,a,(function(){return n._peekTokenImpl()}))):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return t.prototype.append=function(t){this.stream+=t},t.prototype.prepend=function(t){this.stream=t+this.stream},t.prototype._readTokenImpl=function(){var t=this._peekTokenImpl();if(t)return this.stream=this.stream.slice(t.length),t},t.prototype._peekTokenImpl=function(){for(var t in s)if(s.hasOwnProperty(t)&&s[t].test(this.stream)){var n=o[t](this.stream);if(n)return"startTag"===n.type&&/script|style/i.test(n.tagName)?null:(n.text=this.stream.substr(0,n.length),n)}},t.prototype.peekToken=function(){return this._peekToken()},t.prototype.readToken=function(){return this._readToken()},t.prototype.readTokens=function(t){for(var n=void 0;n=this.readToken();)if(t[n.type]&&!1===t[n.type](n))return},t.prototype.clear=function(){var t=this.stream;return this.stream="",t},t.prototype.rest=function(){return this.stream},t}();for(var v in n.default=h,h.tokenToString=function(t){return t.toString()},h.escapeAttributes=function(t){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=(0,a.escapeQuotes)(t[i],null));return n},h.supports=e,e)e.hasOwnProperty(v)&&(h.browserHasFlaw=h.browserHasFlaw||!e[v]&&v)},function(t,n){n.__esModule=!0;var i=!1,r=!1,e=window.document.createElement("div");try{var o="<P><I></P></I>";e.innerHTML=o,n.tagSoup=i=e.innerHTML!==o}catch(t){n.tagSoup=i=!1}try{e.innerHTML="<P><i><P></P></i></P>",n.selfClose=r=2===e.childNodes.length}catch(t){n.selfClose=r=!1}e=null,n.tagSoup=i,n.selfClose=r},function(t,n,i){n.__esModule=!0;var r="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};n.comment=function(t){var n=t.indexOf("--\x3e");if(n>=0)return new e.CommentToken(t.substr(4,n-1),n+3)},n.chars=function(t){var n=t.indexOf("<");return new e.CharsToken(n>=0?n:t.length)},n.startTag=u,n.atomicTag=function(t){var n=u(t);if(n){var i=t.slice(n.length);if(i.match(new RegExp("</\\s*"+n.tagName+"\\s*>","i"))){var r=i.match(new RegExp("([\\s\\S]*?)</\\s*"+n.tagName+"\\s*>","i"));if(r)return new e.AtomicTagToken(n.tagName,r[0].length+n.length,n.attrs,n.booleanAttrs,r[1])}}},n.endTag=function(t){var n=t.match(o.endTag);if(n)return new e.EndTagToken(n[1],n[0].length)};var e=i(4),o={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i};function u(t){var n,i,u;if(-1!==t.indexOf(">")){var a=t.match(o.startTag);if(a){var c=(n={},i={},u=a[2],a[2].replace(o.attr,(function(t,r){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(n[arguments[5]]="",i[arguments[5]]=!0):n[r]=arguments[2]||arguments[3]||arguments[4]||o.fillAttr.test(r)&&r||"":n[r]="",u=u.replace(t,"")})),{v:new e.StartTagToken(a[1],a[0].length,n,i,!!a[3],u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))});if("object"===(void 0===c?"undefined":r(c)))return c.v}}}},function(t,n,i){n.__esModule=!0,n.EndTagToken=n.AtomicTagToken=n.StartTagToken=n.TagToken=n.CharsToken=n.CommentToken=n.Token=void 0;var r=i(5);function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}n.Token=function t(n,i){e(this,t),this.type=n,this.length=i,this.text=""},n.CommentToken=function(){function t(n,i){e(this,t),this.type="comment",this.length=i||(n?n.length:0),this.text="",this.content=n}return t.prototype.toString=function(){return"\x3c!--"+this.content},t}(),n.CharsToken=function(){function t(n){e(this,t),this.type="chars",this.length=n,this.text=""}return t.prototype.toString=function(){return this.text},t}();var o=n.TagToken=function(){function t(n,i,r,o,u){e(this,t),this.type=n,this.length=r,this.text="",this.tagName=i,this.attrs=o,this.booleanAttrs=u,this.unary=!1,this.html5Unary=!1}return t.formatTag=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i="<"+t.tagName;for(var e in t.attrs)if(t.attrs.hasOwnProperty(e)){i+=" "+e;var o=t.attrs[e];void 0!==t.booleanAttrs&&void 0!==t.booleanAttrs[e]||(i+='="'+(0,r.escapeQuotes)(o)+'"')}return t.rest&&(i+=" "+t.rest),i+=t.unary&&!t.html5Unary?"/>":">",null!=n&&(i+=n+"</"+t.tagName+">"),i},t}();n.StartTagToken=function(){function t(n,i,r,o,u,a){e(this,t),this.type="startTag",this.length=i,this.text="",this.tagName=n,this.attrs=r,this.booleanAttrs=o,this.html5Unary=!1,this.unary=u,this.rest=a}return t.prototype.toString=function(){return o.formatTag(this)},t}(),n.AtomicTagToken=function(){function t(n,i,r,o,u){e(this,t),this.type="atomicTag",this.length=i,this.text="",this.tagName=n,this.attrs=r,this.booleanAttrs=o,this.unary=!1,this.html5Unary=!1,this.content=u}return t.prototype.toString=function(){return o.formatTag(this,this.content)},t}(),n.EndTagToken=function(){function t(n,i){e(this,t),this.type="endTag",this.length=i,this.text="",this.tagName=n}return t.prototype.toString=function(){return"</"+this.tagName+">"},t}()},function(t,n){n.__esModule=!0,n.escapeQuotes=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?t.replace(/([^"]*)"/g,(function(t,n){return/\\/.test(n)?n+'"':n+'\\"'})):n}},function(t,n){n.__esModule=!0,n.default=function(t,n,i){var u=function(){var t=[];return t.last=function(){return this[this.length-1]},t.lastTagNameEq=function(t){var n=this.last();return n&&n.tagName&&n.tagName.toUpperCase()===t.toUpperCase()},t.containsTagName=function(t){for(var n,i=0;n=this[i];i++)if(n.tagName===t)return!0;return!1},t}(),a={startTag:function(i){var e=i.tagName;"TR"===e.toUpperCase()&&u.lastTagNameEq("TABLE")?(t.prepend("<TBODY>"),c()):n.selfCloseFix&&r.test(e)&&u.containsTagName(e)?u.lastTagNameEq(e)?o(t,u):(t.prepend("</"+i.tagName+">"),c()):i.unary||u.push(i)},endTag:function(r){u.last()?n.tagSoupFix&&!u.lastTagNameEq(r.tagName)?o(t,u):u.pop():n.tagSoupFix&&(i(),c())}};function c(){var n=function(t,n){var i=t.stream,r=e(n());return t.stream=i,r}(t,i);n&&a[n.type]&&a[n.type](n)}return function(){return c(),e(i())}};var i=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,r=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i;function e(t){return t&&"startTag"===t.type&&(t.unary=i.test(t.tagName)||t.unary,t.html5Unary=!/\/>$/.test(t.text)),t}function o(t,n){var i=n.pop();t.prepend("</"+i.tagName+">")}}])},t.exports=n()},function(t,n){n.__esModule=!0;var i="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};function r(t){return null!=t}function e(t,n,i){var r=void 0,e=t&&t.length||0;for(r=0;r<e;r++)n.call(i,t[r],r)}function o(t,n,i){for(var r in t)t.hasOwnProperty(r)&&n.call(i,r,t[r])}function u(t,n){return!(!t||"startTag"!==t.type&&"atomicTag"!==t.type||!("tagName"in t)||!~t.tagName.toLowerCase().indexOf(n))}n.existy=r,n.isFunction=function(t){return"function"==typeof t},n.each=e,n.eachKey=o,n.defaults=function(t,n){return t=t||{},o(n,(function(n,i){r(t[n])||(t[n]=i)})),t},n.toArray=function(t){try{return Array.prototype.slice.call(t)}catch(o){var n=(r=[],e(t,(function(t){r.push(t)})),{v:r});if("object"===(void 0===n?"undefined":i(n)))return n.v}var r},n.last=function(t){return t[t.length-1]},n.isTag=u,n.isScript=function(t){return u(t,"script")},n.isStyle=function(t){return u(t,"style")}}])},t.exports=n()})));var it=function(){var t=function(n,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(n,i)};return function(n,i){function r(){this.constructor=n}t(n,i),n.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),rt=new(function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.APP={USER_SELECT:"user_select",APPLE_MAPS:"apple_maps",GOOGLE_MAPS:"google_maps",WAZE:"waze",CITYMAPPER:"citymapper",NAVIGON:"navigon",TRANSIT_APP:"transit_app",YANDEX:"yandex",UBER:"uber",TOMTOM:"tomtom",BING_MAPS:"bing_maps",SYGIC:"sygic",HERE_MAPS:"here_maps",MOOVIT:"moovit"},n.TRANSPORT_MODE={DRIVING:"driving",WALKING:"walking",BICYCLING:"bicycling",TRANSIT:"transit"},n}return it(n,t),n.prototype.navigate=function(t,n){return r(this,"navigate",{successIndex:2,errorIndex:3},arguments)},n.prototype.isAppAvailable=function(t){return r(this,"isAppAvailable",{},arguments)},n.prototype.availableApps=function(){return r(this,"availableApps",{},arguments)},n.prototype.getAppDisplayName=function(t){return r(this,"getAppDisplayName",{sync:!0},arguments)},n.prototype.getAppsForPlatform=function(t){return r(this,"getAppsForPlatform",{sync:!0},arguments)},n.prototype.supportsTransportMode=function(t,n){return r(this,"supportsTransportMode",{sync:!0},arguments)},n.prototype.getTransportModes=function(t,n){return r(this,"getTransportModes",{sync:!0},arguments)},n.prototype.supportsDestName=function(t,n){return r(this,"supportsDestName",{sync:!0},arguments)},n.prototype.supportsStart=function(t,n){return r(this,"supportsStart",{sync:!0},arguments)},n.prototype.supportsStartName=function(t,n){return r(this,"supportsStartName",{sync:!0},arguments)},n.prototype.supportsLaunchMode=function(t,n){return r(this,"supportsLaunchMode",{sync:!0},arguments)},n.prototype.userSelect=function(t,n){return r(this,"userSelect",{sync:!0},arguments)},Object.defineProperty(n.prototype,"appSelection",{get:function(){return o(this,"appSelection")},set:function(t){u(this,"appSelection",t)},enumerable:!1,configurable:!0}),n.pluginName="LaunchNavigator",n.plugin="uk.co.workingedge.phonegap.plugin.launchnavigator",n.pluginRef="launchnavigator",n.repo="https://github.com/dpa99c/phonegap-launch-navigator",n.platforms=["Android","iOS","Windows","Windows Phone 8"],n}(e)),et=function(){if("undefined"!=typeof Map)return Map;function t(t,n){var i=-1;return t.some((function(t,r){return t[0]===n&&(i=r,!0)})),i}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(n){var i=t(this.__entries__,n),r=this.__entries__[i];return r&&r[1]},n.prototype.set=function(n,i){var r=t(this.__entries__,n);~r?this.__entries__[r][1]=i:this.__entries__.push([n,i])},n.prototype.delete=function(n){var i=this.__entries__,r=t(i,n);~r&&i.splice(r,1)},n.prototype.has=function(n){return!!~t(this.__entries__,n)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(t,n){void 0===n&&(n=null);for(var i=0,r=this.__entries__;i<r.length;i++){var e=r[i];t.call(n,e[1],e[0])}},n}()}(),ot="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ut=void 0!==g&&g.Math===Math?g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),at="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ut):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},ct=["top","right","bottom","left","width","height","size","weight"],ft="undefined"!=typeof MutationObserver,st=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t){var n=!1,i=!1,r=0;function e(){n&&(n=!1,t()),i&&u()}function o(){at(e)}function u(){var t=Date.now();if(n){if(t-r<2)return;i=!0}else n=!0,i=!1,setTimeout(o,20);r=t}return u}(this.refresh.bind(this))}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var n=this.observers_,i=n.indexOf(t);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){ot&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ft?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){ot&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=void 0===n?"":n;ct.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),ht=function(t,n){for(var i=0,r=Object.keys(n);i<r.length;i++){var e=r[i];Object.defineProperty(t,e,{value:n[e],enumerable:!1,writable:!1,configurable:!0})}return t},vt=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ut},lt=gt(0,0,0,0);function dt(t){return parseFloat(t)||0}function pt(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.reduce((function(n,i){return n+dt(t["border-"+i+"-width"])}),0)}var yt="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof vt(t).SVGGraphicsElement}:function(t){return t instanceof vt(t).SVGElement&&"function"==typeof t.getBBox};function mt(t){return ot?yt(t)?function(t){var n=t.getBBox();return gt(0,0,n.width,n.height)}(t):function(t){var n=t.clientWidth,i=t.clientHeight;if(!n&&!i)return lt;var r=vt(t).getComputedStyle(t),e=function(t){for(var n={},i=0,r=["top","right","bottom","left"];i<r.length;i++){var e=r[i];n[e]=dt(t["padding-"+e])}return n}(r),o=e.left+e.right,u=e.top+e.bottom,a=dt(r.width),c=dt(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==n&&(a-=pt(r,"left","right")+o),Math.round(c+u)!==i&&(c-=pt(r,"top","bottom")+u)),!function(t){return t===vt(t).document.documentElement}(t)){var f=Math.round(a+o)-n,s=Math.round(c+u)-i;1!==Math.abs(f)&&(a-=f),1!==Math.abs(s)&&(c-=s)}return gt(e.left,e.top,a,c)}(t):lt}function gt(t,n,i,r){return{x:t,y:n,width:i,height:r}}var bt=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=gt(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=mt(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),wt=function(t,n){var i,r,e,o,u,a,c,f=(r=(i=n).x,e=i.y,o=i.width,u=i.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),ht(c,{x:r,y:e,width:o,height:u,top:e,right:r+o,bottom:u+e,left:r}),c);ht(this,{target:t,contentRect:f})},Et=function(){function t(t,n,i){if(this.activeObservations_=[],this.observations_=new et,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof vt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new bt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof vt(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(n){n.isActive()&&t.activeObservations_.push(n)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map((function(t){return new wt(t.target,t.broadcastRect())}));this.callback_.call(t,n,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Tt="undefined"!=typeof WeakMap?new WeakMap:new et,At=function t(n){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=st.getInstance(),r=new Et(n,i,this);Tt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){At.prototype[t]=function(){var n;return(n=Tt.get(this))[t].apply(n,arguments)}}));var Ot=void 0!==ut.ResizeObserver?ut.ResizeObserver:At;export{_ as D,rt as L,G as M,B as P,tt as S,$ as a,K as b,D as c,X as d,Z as e,R as f,V as g,M as h,P as i,Ot as j,j as k,E as l,H as m,nt as p,J as s}
|