@ozdao/prometheus-framework 0.2.112 → 0.2.113
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/common.schema-BFhpUXUt.js +12 -0
- package/dist/common.schema-ChBVARrs.mjs +13 -0
- package/dist/community.server.js +6 -4
- package/dist/community.server.mjs +4 -2
- package/dist/engagement.schema-CI2ifjXN.mjs +28 -0
- package/dist/engagement.schema-fdLNO2_6.js +27 -0
- package/dist/events.server.js +6 -4
- package/dist/events.server.mjs +4 -2
- package/dist/files.server.js +81 -29
- package/dist/files.server.mjs +81 -29
- package/dist/gallery.server.js +66 -39
- package/dist/gallery.server.mjs +66 -39
- package/dist/main-8APITHuW.mjs +14201 -0
- package/dist/main-8N2Jmsuk.js +2 -2
- package/dist/main-BJvlNekm.mjs +5 -5
- package/dist/main-BQisDfLk.js +2 -2
- package/dist/main-BV1Yv9Hy.js +2 -2
- package/dist/main-Bw0PvTs-.mjs +5 -5
- package/dist/main-ByCtZbHD.mjs +5 -5
- package/dist/main-CX2ISR43.mjs +5 -5
- package/dist/main-CXObXjv-.js +2 -2
- package/dist/main-CkeuHuCY.mjs +5 -5
- package/dist/main-CnfcBov2.mjs +5 -5
- package/dist/main-D50VqYhy.js +2 -2
- package/dist/main-D8gNZLSa.js +2 -2
- package/dist/main-DPsHxX0l.mjs +5 -5
- package/dist/main-DTlUA63C.mjs +5 -5
- package/dist/main-DfD5hLQo.mjs +5 -5
- package/dist/main-Dh6Zfei9.js +2 -2
- package/dist/main-DmNP-t33.mjs +5 -5
- package/dist/main-DwyUYWFX.js +2 -2
- package/dist/main-VcxO-jAt.js +92 -0
- package/dist/main-cffh4bbv.js +2 -2
- package/dist/main-pGo7JpSP.js +2 -2
- package/dist/main.css +1 -1
- package/dist/metadata.schema-6slGhpQS.js +40 -0
- package/dist/metadata.schema-CK5e2O3f.mjs +41 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +410 -407
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +469 -456
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +5 -2
- package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/index.js +45 -42
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/version.js +1 -1
- package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/web3.js +40 -37
- package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_config.js +28 -18
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +56 -53
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +100 -87
- package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/error_codes.js +97 -95
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +8 -8
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +20 -20
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +4 -4
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +2 -2
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +33 -27
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +33 -12
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +183 -179
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +10 -10
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +45 -44
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +59 -57
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +43 -43
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +31 -31
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +26 -26
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +53 -51
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +25 -23
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +103 -101
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +2 -2
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +159 -156
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +11 -8
- package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/index.js +3 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +5 -2
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +19 -16
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +5 -2
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +50 -47
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/net.js +27 -27
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/converters.js +100 -83
- package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/formatter.js +123 -104
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/utils.js +21 -21
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +10 -10
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +30 -28
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +56 -59
- package/dist/organizations.server.mjs +56 -59
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +17 -17
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +4 -4
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +33 -30
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -9
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +165 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +22 -19
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +132 -64
- package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +1 -0
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +9 -9
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +12 -12
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +16 -16
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +14 -13
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +8 -8
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +29 -36
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +26 -26
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +45 -45
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +19 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +213 -213
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +167 -202
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +73 -165
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +96 -77
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +36 -36
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +53 -53
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +33 -33
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +41 -41
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -36
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +20 -20
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +15 -15
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +32 -32
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +30 -26
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +34 -34
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +41 -41
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +13 -10
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/queryProcessor-BJoJAetd.mjs +162 -0
- package/dist/queryProcessor-DWf9tsis.js +161 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/dist/web-TGdVOTnw.js +1 -0
- package/dist/web-_W9a_nWD.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/AskToLogin/AskToLogin.vue +1 -1
- package/src/components/Block/Block.vue +1 -1
- package/src/components/Checkbox/Checkbox.vue +40 -43
- package/src/components/Chips/Chips.vue +2 -2
- package/src/components/DatePicker/Calendar.vue +29 -31
- package/src/components/Dropdown/Dropdown.vue +5 -11
- package/src/components/Feed/Feed.vue +98 -15
- package/src/components/FieldTags/BlockTags.vue +3 -3
- package/src/components/FieldTags/FieldTags.vue +1 -1
- package/src/components/FieldTags/vue-tags-input.scss +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/LocationSelection/LocationSelection.vue +5 -30
- package/src/components/Map/LoaderGMaps.js +66 -0
- package/src/components/Map/Map.vue +2 -1
- package/src/components/Marquee/Marquee.vue +1 -1
- package/src/components/Radio/Radio.vue +36 -13
- package/src/configurator/components/pages/Styles.vue +1 -1
- package/src/modules/auth/components/layouts/Auth.vue +1 -1
- package/src/modules/auth/components/pages/EnterCode.vue +4 -4
- package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
- package/src/modules/auth/components/pages/Invite.vue +2 -2
- package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
- package/src/modules/auth/components/pages/SignIn.vue +4 -4
- package/src/modules/auth/components/pages/SignUp.vue +3 -3
- package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
- package/src/modules/backoffice/components/admin/Pages.vue +1 -1
- package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/Users.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/layouts/Community.vue +2 -2
- package/src/modules/community/components/pages/BlogPost.vue +2 -2
- package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
- package/src/modules/community/components/sections/Comments.vue +2 -2
- package/src/modules/community/components/sections/Feed.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/constructor/components/elements/Image.vue +1 -1
- package/src/modules/constructor/components/elements/Video.vue +2 -2
- package/src/modules/events/components/blocks/CardEvent.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +32 -32
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Event.vue +3 -3
- package/src/modules/events/components/pages/Events.vue +4 -3
- package/src/modules/events/components/sections/Feed.vue +3 -3
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/files/controllers/files.controller.js +8 -6
- package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
- package/src/modules/files/routes/files.routes.js +11 -9
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
- package/src/modules/gallery/controllers/gallery.controller.js +57 -38
- package/src/modules/gallery/models/photo.model.js +20 -11
- package/src/modules/gallery/routes/gallery.routes.js +3 -3
- package/src/modules/gallery/store/gallery.js +3 -78
- package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
- package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
- package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
- package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
- package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
- package/src/modules/globals/components/layouts/Client.vue +273 -0
- package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
- package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
- package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
- package/src/modules/globals/models/common.schema.js +1 -1
- package/src/modules/globals/services/globals.store.js +11 -6
- package/src/modules/globals/store/globals.js +12 -10
- package/src/modules/icons/logos/Logotype.vue +23 -19
- package/src/modules/icons/navigation/IconCalendar.vue +18 -0
- package/src/modules/icons/navigation/IconFilter.vue +18 -0
- package/src/modules/icons/navigation/IconSearch.vue +1 -3
- package/src/modules/icons/navigation/IconSort.vue +21 -0
- package/src/modules/landing/components/pages/Home.vue +4 -4
- package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
- package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
- package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
- package/src/modules/landing/landing.client.js +2 -0
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/legal/components/pages/Legal.vue +2 -2
- package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
- package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
- package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
- package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
- package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
- package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
- package/src/modules/marketplace/components/sections/Filters.vue +63 -115
- package/src/modules/marketplace/store/marketplace.js +22 -167
- package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
- package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
- package/src/modules/orders/components/pages/Order.vue +8 -8
- package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
- package/src/modules/orders/components/pages/Orders.vue +3 -5
- package/src/modules/orders/components/partials/ShopCart.vue +5 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
- package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
- package/src/modules/orders/store/applications.js +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
- package/src/modules/organizations/components/pages/Department.vue +3 -3
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
- package/src/modules/organizations/components/pages/Members.vue +4 -4
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
- package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
- package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
- package/src/modules/organizations/components/sections/Feed.vue +2 -2
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/components/sections/Publics.vue +1 -1
- package/src/modules/organizations/controllers/organizations.controller.js +103 -93
- package/src/modules/organizations/models/organization.model.js +10 -7
- package/src/modules/organizations/store/organizations.js +3 -34
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
- package/src/modules/products/components/pages/Categories.vue +1 -1
- package/src/modules/products/components/pages/EditLeftover.vue +1 -1
- package/src/modules/products/components/pages/Leftovers.vue +4 -4
- package/src/modules/products/components/pages/Product.vue +1 -5
- package/src/modules/products/components/pages/ProductEdit.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +2 -2
- package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
- package/src/modules/products/components/sections/MenuSection.vue +2 -2
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +3 -3
- package/src/modules/products/products.client.js +0 -2
- package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
- package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
- package/src/modules/spots/components/layouts/Spots.vue +0 -2
- package/src/modules/spots/components/pages/Spot.vue +4 -4
- package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
- package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
- package/src/modules/spots/components/sections/Places.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +5 -5
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/modules/users/components/pages/ProfileComments.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
- package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
- package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
- package/src/modules/users/components/sections/FeaturedUsers.vue +3 -3
- package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
- package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
- package/src/styles/base/borders.scss +4 -0
- package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
- package/src/styles/config.scss +15 -9
- package/src/styles/layout.scss +37 -8
- package/src/styles/typography.scss +24 -24
- package/src/modules/products/components/sections/SortProducts.vue +0 -74
- /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -1,13 +1,13 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
var
|
1
|
+
import { defineComponent as co, ref as we, watch as We, onMounted as uo, onUnmounted as lo, computed as Rt, openBlock as fo, createElementBlock as ho, createElementVNode as nt, normalizeStyle as po, withDirectives as vo, vShow as mo, renderSlot as yo } from "vue";
|
2
|
+
var Sr = (r, i, a) => {
|
3
3
|
if (!i.has(r))
|
4
4
|
throw TypeError("Cannot " + a);
|
5
|
-
}, pr = (r, i, a) => (
|
5
|
+
}, pr = (r, i, a) => (Sr(r, i, "read from private field"), a ? a.call(r) : i.get(r)), go = (r, i, a) => {
|
6
6
|
if (i.has(r))
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
8
8
|
i instanceof WeakSet ? i.add(r) : i.set(r, a);
|
9
|
-
},
|
10
|
-
const
|
9
|
+
}, wo = (r, i, a, c) => (Sr(r, i, "write to private field"), i.set(r, a), a);
|
10
|
+
const Pr = [
|
11
11
|
["aztec", "Aztec"],
|
12
12
|
["code_128", "Code128"],
|
13
13
|
["code_39", "Code39"],
|
@@ -29,47 +29,47 @@ const Sr = [
|
|
29
29
|
["upc_e", "UPC-E"],
|
30
30
|
["linear_codes", "Linear-Codes"],
|
31
31
|
["matrix_codes", "Matrix-Codes"]
|
32
|
-
],
|
33
|
-
|
32
|
+
], bo = [...Pr, ["unknown"]].map((r) => r[0]), ot = new Map(
|
33
|
+
Pr
|
34
34
|
);
|
35
|
-
function
|
35
|
+
function Co(r) {
|
36
36
|
for (const [i, a] of ot)
|
37
37
|
if (r === a)
|
38
38
|
return i;
|
39
39
|
return "unknown";
|
40
40
|
}
|
41
|
-
function
|
42
|
-
if (
|
41
|
+
function To(r) {
|
42
|
+
if (_r(r))
|
43
43
|
return {
|
44
44
|
width: r.naturalWidth,
|
45
45
|
height: r.naturalHeight
|
46
46
|
};
|
47
|
-
if (
|
47
|
+
if (Er(r))
|
48
48
|
return {
|
49
49
|
width: r.width.baseVal.value,
|
50
50
|
height: r.height.baseVal.value
|
51
51
|
};
|
52
|
-
if (
|
52
|
+
if (Or(r))
|
53
53
|
return {
|
54
54
|
width: r.videoWidth,
|
55
55
|
height: r.videoHeight
|
56
56
|
};
|
57
|
-
if (
|
57
|
+
if (Ar(r))
|
58
58
|
return {
|
59
59
|
width: r.width,
|
60
60
|
height: r.height
|
61
61
|
};
|
62
|
-
if (
|
62
|
+
if (jr(r))
|
63
63
|
return {
|
64
64
|
width: r.displayWidth,
|
65
65
|
height: r.displayHeight
|
66
66
|
};
|
67
|
-
if (
|
67
|
+
if (Mr(r))
|
68
68
|
return {
|
69
69
|
width: r.width,
|
70
70
|
height: r.height
|
71
71
|
};
|
72
|
-
if (
|
72
|
+
if (xr(r))
|
73
73
|
return {
|
74
74
|
width: r.width,
|
75
75
|
height: r.height
|
@@ -78,70 +78,70 @@ function Co(r) {
|
|
78
78
|
"The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'."
|
79
79
|
);
|
80
80
|
}
|
81
|
-
function
|
81
|
+
function _r(r) {
|
82
82
|
try {
|
83
83
|
return r instanceof HTMLImageElement;
|
84
84
|
} catch {
|
85
85
|
return !1;
|
86
86
|
}
|
87
87
|
}
|
88
|
-
function
|
88
|
+
function Er(r) {
|
89
89
|
try {
|
90
90
|
return r instanceof SVGImageElement;
|
91
91
|
} catch {
|
92
92
|
return !1;
|
93
93
|
}
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function Or(r) {
|
96
96
|
try {
|
97
97
|
return r instanceof HTMLVideoElement;
|
98
98
|
} catch {
|
99
99
|
return !1;
|
100
100
|
}
|
101
101
|
}
|
102
|
-
function
|
102
|
+
function Mr(r) {
|
103
103
|
try {
|
104
104
|
return r instanceof HTMLCanvasElement;
|
105
105
|
} catch {
|
106
106
|
return !1;
|
107
107
|
}
|
108
108
|
}
|
109
|
-
function
|
109
|
+
function Ar(r) {
|
110
110
|
try {
|
111
111
|
return r instanceof ImageBitmap;
|
112
112
|
} catch {
|
113
113
|
return !1;
|
114
114
|
}
|
115
115
|
}
|
116
|
-
function
|
116
|
+
function xr(r) {
|
117
117
|
try {
|
118
118
|
return r instanceof OffscreenCanvas;
|
119
119
|
} catch {
|
120
120
|
return !1;
|
121
121
|
}
|
122
122
|
}
|
123
|
-
function
|
123
|
+
function jr(r) {
|
124
124
|
try {
|
125
125
|
return r instanceof VideoFrame;
|
126
126
|
} catch {
|
127
127
|
return !1;
|
128
128
|
}
|
129
129
|
}
|
130
|
-
function
|
130
|
+
function Dr(r) {
|
131
131
|
try {
|
132
132
|
return r instanceof Blob;
|
133
133
|
} catch {
|
134
134
|
return !1;
|
135
135
|
}
|
136
136
|
}
|
137
|
-
function
|
137
|
+
function $o(r) {
|
138
138
|
try {
|
139
139
|
return r instanceof ImageData;
|
140
140
|
} catch {
|
141
141
|
return !1;
|
142
142
|
}
|
143
143
|
}
|
144
|
-
function
|
144
|
+
function So(r, i) {
|
145
145
|
try {
|
146
146
|
const a = new OffscreenCanvas(r, i);
|
147
147
|
if (a.getContext("2d") instanceof OffscreenCanvasRenderingContext2D)
|
@@ -152,30 +152,30 @@ function $o(r, i) {
|
|
152
152
|
return c.width = r, c.height = i, c;
|
153
153
|
}
|
154
154
|
}
|
155
|
-
async function
|
156
|
-
if (
|
155
|
+
async function Rr(r) {
|
156
|
+
if (_r(r) && !await Oo(r))
|
157
157
|
throw new DOMException(
|
158
158
|
"Failed to load or decode HTMLImageElement.",
|
159
159
|
"InvalidStateError"
|
160
160
|
);
|
161
|
-
if (
|
161
|
+
if (Er(r) && !await Mo(r))
|
162
162
|
throw new DOMException(
|
163
163
|
"Failed to load or decode SVGImageElement.",
|
164
164
|
"InvalidStateError"
|
165
165
|
);
|
166
|
-
if (
|
166
|
+
if (jr(r) && Ao(r))
|
167
167
|
throw new DOMException("VideoFrame is closed.", "InvalidStateError");
|
168
|
-
if (
|
168
|
+
if (Or(r) && (r.readyState === 0 || r.readyState === 1))
|
169
169
|
throw new DOMException("Invalid element or state.", "InvalidStateError");
|
170
|
-
if (
|
170
|
+
if (Ar(r) && jo(r))
|
171
171
|
throw new DOMException(
|
172
172
|
"The image source is detached.",
|
173
173
|
"InvalidStateError"
|
174
174
|
);
|
175
|
-
const { width: i, height: a } =
|
175
|
+
const { width: i, height: a } = To(r);
|
176
176
|
if (i === 0 || a === 0)
|
177
177
|
return null;
|
178
|
-
const c =
|
178
|
+
const c = So(i, a).getContext("2d");
|
179
179
|
c.drawImage(r, 0, 0);
|
180
180
|
try {
|
181
181
|
return c.getImageData(0, 0, i, a);
|
@@ -183,7 +183,7 @@ async function Dr(r) {
|
|
183
183
|
throw new DOMException("Source would taint origin.", "SecurityError");
|
184
184
|
}
|
185
185
|
}
|
186
|
-
async function
|
186
|
+
async function Po(r) {
|
187
187
|
let i;
|
188
188
|
try {
|
189
189
|
if (globalThis.createImageBitmap)
|
@@ -204,9 +204,9 @@ async function So(r) {
|
|
204
204
|
"InvalidStateError"
|
205
205
|
);
|
206
206
|
}
|
207
|
-
return await
|
207
|
+
return await Rr(i);
|
208
208
|
}
|
209
|
-
function
|
209
|
+
function _o(r) {
|
210
210
|
const { width: i, height: a } = r;
|
211
211
|
if (i === 0 || a === 0)
|
212
212
|
return null;
|
@@ -217,27 +217,27 @@ function Po(r) {
|
|
217
217
|
throw new DOMException("Source would taint origin.", "SecurityError");
|
218
218
|
}
|
219
219
|
}
|
220
|
-
async function
|
221
|
-
if (
|
222
|
-
return await
|
223
|
-
if (
|
224
|
-
if (
|
220
|
+
async function Eo(r) {
|
221
|
+
if (Dr(r))
|
222
|
+
return await Po(r);
|
223
|
+
if ($o(r)) {
|
224
|
+
if (xo(r))
|
225
225
|
throw new DOMException(
|
226
226
|
"The image data has been detached.",
|
227
227
|
"InvalidStateError"
|
228
228
|
);
|
229
229
|
return r;
|
230
230
|
}
|
231
|
-
return
|
231
|
+
return Mr(r) || xr(r) ? _o(r) : await Rr(r);
|
232
232
|
}
|
233
|
-
async function
|
233
|
+
async function Oo(r) {
|
234
234
|
try {
|
235
235
|
return await r.decode(), !0;
|
236
236
|
} catch {
|
237
237
|
return !1;
|
238
238
|
}
|
239
239
|
}
|
240
|
-
async function
|
240
|
+
async function Mo(r) {
|
241
241
|
var i;
|
242
242
|
try {
|
243
243
|
return await ((i = r.decode) == null ? void 0 : i.call(r)), !0;
|
@@ -245,13 +245,13 @@ async function Oo(r) {
|
|
245
245
|
return !1;
|
246
246
|
}
|
247
247
|
}
|
248
|
-
function
|
248
|
+
function Ao(r) {
|
249
249
|
return r.format === null;
|
250
250
|
}
|
251
|
-
function
|
251
|
+
function xo(r) {
|
252
252
|
return r.data.buffer.byteLength === 0;
|
253
253
|
}
|
254
|
-
function
|
254
|
+
function jo(r) {
|
255
255
|
return r.width === 0 && r.height === 0;
|
256
256
|
}
|
257
257
|
function vr(r, i) {
|
@@ -281,10 +281,10 @@ const mr = [
|
|
281
281
|
"UPC-A",
|
282
282
|
"UPC-E"
|
283
283
|
];
|
284
|
-
function
|
284
|
+
function Do(r) {
|
285
285
|
return r.join("|");
|
286
286
|
}
|
287
|
-
function
|
287
|
+
function Ro(r) {
|
288
288
|
const i = yr(r);
|
289
289
|
let a = 0, c = mr.length - 1;
|
290
290
|
for (; a <= c; ) {
|
@@ -298,13 +298,13 @@ function Do(r) {
|
|
298
298
|
function yr(r) {
|
299
299
|
return r.toLowerCase().replace(/_-\[\]/g, "");
|
300
300
|
}
|
301
|
-
function
|
301
|
+
function ko(r, i) {
|
302
302
|
return r.Binarizer[i];
|
303
303
|
}
|
304
|
-
function
|
304
|
+
function Fo(r, i) {
|
305
305
|
return r.CharacterSet[i];
|
306
306
|
}
|
307
|
-
const
|
307
|
+
const Io = [
|
308
308
|
"Text",
|
309
309
|
"Binary",
|
310
310
|
"Mixed",
|
@@ -312,13 +312,13 @@ const Fo = [
|
|
312
312
|
"ISO15434",
|
313
313
|
"UnknownECI"
|
314
314
|
];
|
315
|
-
function
|
316
|
-
return
|
315
|
+
function Wo(r) {
|
316
|
+
return Io[r.value];
|
317
317
|
}
|
318
|
-
function
|
318
|
+
function Uo(r, i) {
|
319
319
|
return r.EanAddOnSymbol[i];
|
320
320
|
}
|
321
|
-
function
|
321
|
+
function Lo(r, i) {
|
322
322
|
return r.TextMode[i];
|
323
323
|
}
|
324
324
|
const Ee = {
|
@@ -342,31 +342,31 @@ const Ee = {
|
|
342
342
|
textMode: "Plain",
|
343
343
|
characterSet: "Unknown"
|
344
344
|
};
|
345
|
-
function
|
345
|
+
function kr(r, i) {
|
346
346
|
return {
|
347
347
|
...i,
|
348
|
-
formats:
|
349
|
-
binarizer:
|
350
|
-
eanAddOnSymbol:
|
348
|
+
formats: Do(i.formats),
|
349
|
+
binarizer: ko(r, i.binarizer),
|
350
|
+
eanAddOnSymbol: Uo(
|
351
351
|
r,
|
352
352
|
i.eanAddOnSymbol
|
353
353
|
),
|
354
|
-
textMode:
|
355
|
-
characterSet:
|
354
|
+
textMode: Lo(r, i.textMode),
|
355
|
+
characterSet: Fo(
|
356
356
|
r,
|
357
357
|
i.characterSet
|
358
358
|
)
|
359
359
|
};
|
360
360
|
}
|
361
|
-
function
|
361
|
+
function Fr(r) {
|
362
362
|
return {
|
363
363
|
...r,
|
364
|
-
format:
|
364
|
+
format: Ro(r.format),
|
365
365
|
eccLevel: r.eccLevel,
|
366
|
-
contentType:
|
366
|
+
contentType: Wo(r.contentType)
|
367
367
|
};
|
368
368
|
}
|
369
|
-
const
|
369
|
+
const Ho = {
|
370
370
|
locateFile: (r, i) => {
|
371
371
|
const a = r.match(/_(.+?)\.wasm$/);
|
372
372
|
return a ? `https://fastly.jsdelivr.net/npm/zxing-wasm@1.1.3/dist/${a[1]}/${r}` : i + r;
|
@@ -378,7 +378,7 @@ function Ft(r, i) {
|
|
378
378
|
const c = gr.get(r);
|
379
379
|
if (c != null && c.modulePromise && i === void 0)
|
380
380
|
return c.modulePromise;
|
381
|
-
const f = (a = c == null ? void 0 : c.moduleOverrides) != null ? a :
|
381
|
+
const f = (a = c == null ? void 0 : c.moduleOverrides) != null ? a : Ho, v = r({
|
382
382
|
...f
|
383
383
|
});
|
384
384
|
return gr.set(r, {
|
@@ -386,7 +386,7 @@ function Ft(r, i) {
|
|
386
386
|
modulePromise: v
|
387
387
|
}), v;
|
388
388
|
}
|
389
|
-
async function
|
389
|
+
async function No(r, i, a = Ee) {
|
390
390
|
const c = {
|
391
391
|
...Ee,
|
392
392
|
...a
|
@@ -395,17 +395,17 @@ async function Ho(r, i, a = Ee) {
|
|
395
395
|
const h = f.readBarcodesFromImage(
|
396
396
|
S,
|
397
397
|
v,
|
398
|
-
|
398
|
+
kr(f, c)
|
399
399
|
);
|
400
400
|
f._free(S);
|
401
401
|
const w = [];
|
402
402
|
for (let T = 0; T < h.size(); ++T)
|
403
403
|
w.push(
|
404
|
-
|
404
|
+
Fr(h.get(T))
|
405
405
|
);
|
406
406
|
return w;
|
407
407
|
}
|
408
|
-
async function
|
408
|
+
async function Vo(r, i, a = Ee) {
|
409
409
|
const c = {
|
410
410
|
...Ee,
|
411
411
|
...a
|
@@ -420,13 +420,13 @@ async function No(r, i, a = Ee) {
|
|
420
420
|
w,
|
421
421
|
y,
|
422
422
|
S,
|
423
|
-
|
423
|
+
kr(f, c)
|
424
424
|
);
|
425
425
|
f._free(w);
|
426
426
|
const b = [];
|
427
427
|
for (let j = 0; j < T.size(); ++j)
|
428
428
|
b.push(
|
429
|
-
|
429
|
+
Fr(T.get(j))
|
430
430
|
);
|
431
431
|
return b;
|
432
432
|
}
|
@@ -527,7 +527,7 @@ var It = (() => {
|
|
527
527
|
j(`failed to asynchronously prepare wasm: ${o}`), X(o);
|
528
528
|
});
|
529
529
|
}
|
530
|
-
function
|
530
|
+
function Xr(e, t, n, o) {
|
531
531
|
return !e && typeof WebAssembly.instantiateStreaming == "function" && !He(t) && typeof fetch == "function" ? fetch(t, {
|
532
532
|
credentials: "same-origin"
|
533
533
|
}).then((s) => {
|
@@ -537,12 +537,12 @@ var It = (() => {
|
|
537
537
|
});
|
538
538
|
}) : Ve(t, n, o);
|
539
539
|
}
|
540
|
-
function
|
540
|
+
function Kr() {
|
541
541
|
var e = {
|
542
|
-
a:
|
542
|
+
a: La
|
543
543
|
};
|
544
544
|
function t(o, s) {
|
545
|
-
return
|
545
|
+
return q = o.exports, x = q.ia, be(), Jt = q.ma, dt(q.ja), de(), q;
|
546
546
|
}
|
547
547
|
ft();
|
548
548
|
function n(o) {
|
@@ -554,17 +554,17 @@ var It = (() => {
|
|
554
554
|
} catch (o) {
|
555
555
|
j(`Module.instantiateWasm callback failed with error: ${o}`), f(o);
|
556
556
|
}
|
557
|
-
return
|
557
|
+
return Xr(D, fe, e, n).catch(f), {};
|
558
558
|
}
|
559
559
|
var vt = (e) => {
|
560
560
|
for (; e.length > 0; )
|
561
561
|
e.shift()(a);
|
562
562
|
};
|
563
563
|
a.noExitRuntime;
|
564
|
-
var Be = [], ze = 0,
|
564
|
+
var Be = [], ze = 0, Zr = (e) => {
|
565
565
|
var t = new mt(e);
|
566
566
|
return t.get_caught() || (t.set_caught(!0), ze--), t.set_rethrown(!1), Be.push(t), sr(t.excPtr), t.get_exception_ptr();
|
567
|
-
}, oe = 0,
|
567
|
+
}, oe = 0, en = () => {
|
568
568
|
W(0, 0);
|
569
569
|
var e = Be.pop();
|
570
570
|
ir(e.excPtr), oe = 0;
|
@@ -600,7 +600,7 @@ var It = (() => {
|
|
600
600
|
return n !== 0 ? n : this.excPtr;
|
601
601
|
};
|
602
602
|
}
|
603
|
-
var
|
603
|
+
var tn = (e) => {
|
604
604
|
throw oe || (oe = e), oe;
|
605
605
|
}, yt = (e) => {
|
606
606
|
var t = oe;
|
@@ -620,15 +620,15 @@ var It = (() => {
|
|
620
620
|
return Ie(u), t;
|
621
621
|
}
|
622
622
|
return Ie(o), t;
|
623
|
-
},
|
623
|
+
}, rn = () => yt([]), nn = (e) => yt([e]), an = (e, t) => yt([e, t]), on = () => {
|
624
624
|
var e = Be.pop();
|
625
625
|
e || X("no exception to throw");
|
626
626
|
var t = e.excPtr;
|
627
627
|
throw e.get_rethrown() || (Be.push(e), e.set_rethrown(!0), e.set_caught(!1), ze++), oe = t, oe;
|
628
|
-
},
|
628
|
+
}, sn = (e, t, n) => {
|
629
629
|
var o = new mt(e);
|
630
630
|
throw o.init(t, n), oe = e, ze++, oe;
|
631
|
-
},
|
631
|
+
}, cn = () => ze, qe = {}, gt = (e) => {
|
632
632
|
for (; e.length; ) {
|
633
633
|
var t = e.pop(), n = e.pop();
|
634
634
|
n(t);
|
@@ -637,7 +637,7 @@ var It = (() => {
|
|
637
637
|
function wt(e) {
|
638
638
|
return this.fromWireType(O[e >> 2]);
|
639
639
|
}
|
640
|
-
var Te = {}, ye = {}, Je = {}, Wt,
|
640
|
+
var Te = {}, ye = {}, Je = {}, Wt, Ge = (e) => {
|
641
641
|
throw new Wt(e);
|
642
642
|
}, ge = (e, t, n) => {
|
643
643
|
e.forEach(function(d) {
|
@@ -645,7 +645,7 @@ var It = (() => {
|
|
645
645
|
});
|
646
646
|
function o(d) {
|
647
647
|
var p = n(d);
|
648
|
-
p.length !== e.length &&
|
648
|
+
p.length !== e.length && Ge("Mismatched type converter count");
|
649
649
|
for (var g = 0; g < e.length; ++g)
|
650
650
|
te(e[g], p[g]);
|
651
651
|
}
|
@@ -655,19 +655,19 @@ var It = (() => {
|
|
655
655
|
s[p] = ye[d], ++l, l === u.length && o(s);
|
656
656
|
}));
|
657
657
|
}), u.length === 0 && o(s);
|
658
|
-
},
|
659
|
-
var t =
|
660
|
-
delete
|
658
|
+
}, un = (e) => {
|
659
|
+
var t = qe[e];
|
660
|
+
delete qe[e];
|
661
661
|
var n = t.rawConstructor, o = t.rawDestructor, s = t.fields, u = s.map((l) => l.getterReturnType).concat(s.map((l) => l.setterArgumentType));
|
662
662
|
ge([e], u, (l) => {
|
663
663
|
var d = {};
|
664
664
|
return s.forEach((p, g) => {
|
665
665
|
var C = p.fieldName, P = l[g], _ = p.getter, E = p.getterContext, U = l[g + s.length], V = p.setter, k = p.setterContext;
|
666
666
|
d[C] = {
|
667
|
-
read: (
|
668
|
-
write: (
|
667
|
+
read: (Y) => P.fromWireType(_(E, Y)),
|
668
|
+
write: (Y, m) => {
|
669
669
|
var $ = [];
|
670
|
-
V(k,
|
670
|
+
V(k, Y, U.toWireType($, m)), gt($);
|
671
671
|
}
|
672
672
|
};
|
673
673
|
}), [{
|
@@ -692,19 +692,19 @@ var It = (() => {
|
|
692
692
|
destructorFunction: o
|
693
693
|
}];
|
694
694
|
});
|
695
|
-
},
|
696
|
-
},
|
695
|
+
}, ln = (e, t, n, o, s) => {
|
696
|
+
}, dn = () => {
|
697
697
|
for (var e = new Array(256), t = 0; t < 256; ++t)
|
698
698
|
e[t] = String.fromCharCode(t);
|
699
699
|
Ut = e;
|
700
|
-
}, Ut,
|
700
|
+
}, Ut, G = (e) => {
|
701
701
|
for (var t = "", n = e; z[n]; )
|
702
702
|
t += Ut[z[n++]];
|
703
703
|
return t;
|
704
704
|
}, $e, A = (e) => {
|
705
705
|
throw new $e(e);
|
706
706
|
};
|
707
|
-
function
|
707
|
+
function fn(e, t) {
|
708
708
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
709
709
|
var o = t.name;
|
710
710
|
if (e || A(`type "${o}" must have a positive integer typeid pointer`), ye.hasOwnProperty(e)) {
|
@@ -721,10 +721,10 @@ var It = (() => {
|
|
721
721
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
722
722
|
if (!("argPackAdvance" in t))
|
723
723
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
724
|
-
return
|
724
|
+
return fn(e, t, n);
|
725
725
|
}
|
726
|
-
var re = 8,
|
727
|
-
t =
|
726
|
+
var re = 8, hn = (e, t, n, o) => {
|
727
|
+
t = G(t), te(e, {
|
728
728
|
name: t,
|
729
729
|
fromWireType: function(s) {
|
730
730
|
return !!s;
|
@@ -738,7 +738,7 @@ var It = (() => {
|
|
738
738
|
},
|
739
739
|
destructorFunction: null
|
740
740
|
});
|
741
|
-
},
|
741
|
+
}, pn = (e) => ({
|
742
742
|
count: e.count,
|
743
743
|
deleteScheduled: e.deleteScheduled,
|
744
744
|
preservePointerOnDelete: e.preservePointerOnDelete,
|
@@ -752,12 +752,12 @@ var It = (() => {
|
|
752
752
|
}
|
753
753
|
A(t(e) + " instance already deleted");
|
754
754
|
}, Ct = !1, Lt = (e) => {
|
755
|
-
},
|
755
|
+
}, vn = (e) => {
|
756
756
|
e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr);
|
757
757
|
}, Ht = (e) => {
|
758
758
|
e.count.value -= 1;
|
759
759
|
var t = e.count.value === 0;
|
760
|
-
t &&
|
760
|
+
t && vn(e);
|
761
761
|
}, Nt = (e, t, n) => {
|
762
762
|
if (t === n)
|
763
763
|
return e;
|
@@ -765,7 +765,7 @@ var It = (() => {
|
|
765
765
|
return null;
|
766
766
|
var o = Nt(e, t, n.baseClass);
|
767
767
|
return o === null ? null : n.downcast(o);
|
768
|
-
}, Vt = {},
|
768
|
+
}, Vt = {}, mn = () => Object.keys(De).length, yn = () => {
|
769
769
|
var e = [];
|
770
770
|
for (var t in De)
|
771
771
|
De.hasOwnProperty(t) && e.push(De[t]);
|
@@ -775,18 +775,18 @@ var It = (() => {
|
|
775
775
|
var e = xe.pop();
|
776
776
|
e.$$.deleteScheduled = !1, e.delete();
|
777
777
|
}
|
778
|
-
}, je,
|
778
|
+
}, je, gn = (e) => {
|
779
779
|
je = e, xe.length && je && je(Tt);
|
780
|
-
},
|
781
|
-
a.getInheritedInstanceCount =
|
782
|
-
}, De = {},
|
780
|
+
}, wn = () => {
|
781
|
+
a.getInheritedInstanceCount = mn, a.getLiveInheritedInstances = yn, a.flushPendingDeletes = Tt, a.setDelayFunction = gn;
|
782
|
+
}, De = {}, bn = (e, t) => {
|
783
783
|
for (t === void 0 && A("ptr should not be undefined"); e.baseClass; )
|
784
784
|
t = e.upcast(t), e = e.baseClass;
|
785
785
|
return t;
|
786
|
-
},
|
787
|
-
(!t.ptrType || !t.ptr) &&
|
786
|
+
}, Cn = (e, t) => (t = bn(e, t), De[t]), Ye = (e, t) => {
|
787
|
+
(!t.ptrType || !t.ptr) && Ge("makeClassHandle requires ptr and ptrType");
|
788
788
|
var n = !!t.smartPtrType, o = !!t.smartPtr;
|
789
|
-
return n !== o &&
|
789
|
+
return n !== o && Ge("Both smartPtrType and smartPtr must be specified"), t.count = {
|
790
790
|
value: 1
|
791
791
|
}, Re(Object.create(e, {
|
792
792
|
$$: {
|
@@ -795,11 +795,11 @@ var It = (() => {
|
|
795
795
|
}
|
796
796
|
}));
|
797
797
|
};
|
798
|
-
function
|
798
|
+
function Tn(e) {
|
799
799
|
var t = this.getPointee(e);
|
800
800
|
if (!t)
|
801
801
|
return this.destructor(e), null;
|
802
|
-
var n =
|
802
|
+
var n = Cn(this.registeredClass, t);
|
803
803
|
if (n !== void 0) {
|
804
804
|
if (n.$$.count.value === 0)
|
805
805
|
return n.$$.ptr = t, n.$$.smartPtr = e, n.clone();
|
@@ -807,12 +807,12 @@ var It = (() => {
|
|
807
807
|
return this.destructor(e), o;
|
808
808
|
}
|
809
809
|
function s() {
|
810
|
-
return this.isSmartPointer ?
|
810
|
+
return this.isSmartPointer ? Ye(this.registeredClass.instancePrototype, {
|
811
811
|
ptrType: this.pointeeType,
|
812
812
|
ptr: t,
|
813
813
|
smartPtrType: this,
|
814
814
|
smartPtr: e
|
815
|
-
}) :
|
815
|
+
}) : Ye(this.registeredClass.instancePrototype, {
|
816
816
|
ptrType: this,
|
817
817
|
ptr: e
|
818
818
|
});
|
@@ -823,12 +823,12 @@ var It = (() => {
|
|
823
823
|
var d;
|
824
824
|
this.isConst ? d = l.constPointerType : d = l.pointerType;
|
825
825
|
var p = Nt(t, this.registeredClass, d.registeredClass);
|
826
|
-
return p === null ? s.call(this) : this.isSmartPointer ?
|
826
|
+
return p === null ? s.call(this) : this.isSmartPointer ? Ye(d.registeredClass.instancePrototype, {
|
827
827
|
ptrType: d,
|
828
828
|
ptr: p,
|
829
829
|
smartPtrType: this,
|
830
830
|
smartPtr: e
|
831
|
-
}) :
|
831
|
+
}) : Ye(d.registeredClass.instancePrototype, {
|
832
832
|
ptrType: d,
|
833
833
|
ptr: p
|
834
834
|
});
|
@@ -844,7 +844,7 @@ var It = (() => {
|
|
844
844
|
Ct.register(t, s, t);
|
845
845
|
}
|
846
846
|
return t;
|
847
|
-
}, Lt = (t) => Ct.unregister(t), Re(e)),
|
847
|
+
}, Lt = (t) => Ct.unregister(t), Re(e)), $n = () => {
|
848
848
|
Object.assign(Qe.prototype, {
|
849
849
|
isAliasOf(e) {
|
850
850
|
if (!(this instanceof Qe) || !(e instanceof Qe))
|
@@ -862,7 +862,7 @@ var It = (() => {
|
|
862
862
|
return this.$$.count.value += 1, this;
|
863
863
|
var e = Re(Object.create(Object.getPrototypeOf(this), {
|
864
864
|
$$: {
|
865
|
-
value:
|
865
|
+
value: pn(this.$$)
|
866
866
|
}
|
867
867
|
}));
|
868
868
|
return e.$$.count.value += 1, e.$$.deleteScheduled = !1, e;
|
@@ -891,14 +891,14 @@ var It = (() => {
|
|
891
891
|
}
|
892
892
|
}, $t = (e, t, n) => {
|
893
893
|
a.hasOwnProperty(e) ? ((n === void 0 || a[e].overloadTable !== void 0 && a[e].overloadTable[n] !== void 0) && A(`Cannot register public name '${e}' twice`), Bt(a, e, e), a.hasOwnProperty(n) && A(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`), a[e].overloadTable[n] = t) : (a[e] = t, n !== void 0 && (a[e].numArguments = n));
|
894
|
-
},
|
894
|
+
}, Sn = 48, Pn = 57, _n = (e) => {
|
895
895
|
if (e === void 0)
|
896
896
|
return "_unknown";
|
897
897
|
e = e.replace(/[^a-zA-Z0-9_]/g, "$");
|
898
898
|
var t = e.charCodeAt(0);
|
899
|
-
return t >=
|
899
|
+
return t >= Sn && t <= Pn ? `_${e}` : e;
|
900
900
|
};
|
901
|
-
function
|
901
|
+
function En(e, t, n, o, s, u, l, d) {
|
902
902
|
this.name = e, this.constructor = t, this.instancePrototype = n, this.rawDestructor = o, this.baseClass = s, this.getActualType = u, this.upcast = l, this.downcast = d, this.pureVirtualFunctions = [];
|
903
903
|
}
|
904
904
|
var St = (e, t, n) => {
|
@@ -906,14 +906,14 @@ var It = (() => {
|
|
906
906
|
t.upcast || A(`Expected null or instance of ${n.name}, got an instance of ${t.name}`), e = t.upcast(e), t = t.baseClass;
|
907
907
|
return e;
|
908
908
|
};
|
909
|
-
function
|
909
|
+
function On(e, t) {
|
910
910
|
if (t === null)
|
911
911
|
return this.isReference && A(`null is not a valid ${this.name}`), 0;
|
912
912
|
t.$$ || A(`Cannot pass "${Mt(t)}" as a ${this.name}`), t.$$.ptr || A(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
913
913
|
var n = t.$$.ptrType.registeredClass, o = St(t.$$.ptr, n, this.registeredClass);
|
914
914
|
return o;
|
915
915
|
}
|
916
|
-
function
|
916
|
+
function Mn(e, t) {
|
917
917
|
var n;
|
918
918
|
if (t === null)
|
919
919
|
return this.isReference && A(`null is not a valid ${this.name}`), this.isSmartPointer ? (n = this.rawConstructor(), e !== null && e.push(this.rawDestructor, n), n) : 0;
|
@@ -940,7 +940,7 @@ var It = (() => {
|
|
940
940
|
}
|
941
941
|
return n;
|
942
942
|
}
|
943
|
-
function
|
943
|
+
function An(e, t) {
|
944
944
|
if (t === null)
|
945
945
|
return this.isReference && A(`null is not a valid ${this.name}`), 0;
|
946
946
|
t.$$ || A(`Cannot pass "${Mt(t)}" as a ${this.name}`), t.$$.ptr || A(`Cannot pass deleted object as a pointer of type ${this.name}`), t.$$.ptrType.isConst && A(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);
|
@@ -950,7 +950,7 @@ var It = (() => {
|
|
950
950
|
function zt(e) {
|
951
951
|
return this.fromWireType(M[e >> 2]);
|
952
952
|
}
|
953
|
-
var
|
953
|
+
var xn = () => {
|
954
954
|
Object.assign(Xe.prototype, {
|
955
955
|
getPointee(e) {
|
956
956
|
return this.rawGetPointee && (e = this.rawGetPointee(e)), e;
|
@@ -964,38 +964,38 @@ var It = (() => {
|
|
964
964
|
deleteObject(e) {
|
965
965
|
e !== null && e.delete();
|
966
966
|
},
|
967
|
-
fromWireType:
|
967
|
+
fromWireType: Tn
|
968
968
|
});
|
969
969
|
};
|
970
970
|
function Xe(e, t, n, o, s, u, l, d, p, g, C) {
|
971
|
-
this.name = e, this.registeredClass = t, this.isReference = n, this.isConst = o, this.isSmartPointer = s, this.pointeeType = u, this.sharingPolicy = l, this.rawGetPointee = d, this.rawConstructor = p, this.rawShare = g, this.rawDestructor = C, !s && t.baseClass === void 0 ? o ? (this.toWireType =
|
971
|
+
this.name = e, this.registeredClass = t, this.isReference = n, this.isConst = o, this.isSmartPointer = s, this.pointeeType = u, this.sharingPolicy = l, this.rawGetPointee = d, this.rawConstructor = p, this.rawShare = g, this.rawDestructor = C, !s && t.baseClass === void 0 ? o ? (this.toWireType = On, this.destructorFunction = null) : (this.toWireType = An, this.destructorFunction = null) : this.toWireType = Mn;
|
972
972
|
}
|
973
|
-
var
|
974
|
-
a.hasOwnProperty(e) ||
|
975
|
-
},
|
973
|
+
var qt = (e, t, n) => {
|
974
|
+
a.hasOwnProperty(e) || Ge("Replacing nonexistant public symbol"), a[e].overloadTable !== void 0 && n !== void 0 ? a[e].overloadTable[n] = t : (a[e] = t, a[e].argCount = n);
|
975
|
+
}, jn = (e, t, n) => {
|
976
976
|
var o = a["dynCall_" + e];
|
977
977
|
return n && n.length ? o.apply(null, [t].concat(n)) : o.call(null, t);
|
978
978
|
}, Ke = [], Jt, L = (e) => {
|
979
979
|
var t = Ke[e];
|
980
980
|
return t || (e >= Ke.length && (Ke.length = e + 1), Ke[e] = t = Jt.get(e)), t;
|
981
|
-
},
|
981
|
+
}, Dn = (e, t, n) => {
|
982
982
|
if (e.includes("j"))
|
983
|
-
return
|
983
|
+
return jn(e, t, n);
|
984
984
|
var o = L(t).apply(null, n);
|
985
985
|
return o;
|
986
|
-
},
|
986
|
+
}, Rn = (e, t) => {
|
987
987
|
var n = [];
|
988
988
|
return function() {
|
989
|
-
return n.length = 0, Object.assign(n, arguments),
|
989
|
+
return n.length = 0, Object.assign(n, arguments), Dn(e, t, n);
|
990
990
|
};
|
991
991
|
}, Z = (e, t) => {
|
992
|
-
e =
|
992
|
+
e = G(e);
|
993
993
|
function n() {
|
994
|
-
return e.includes("j") ?
|
994
|
+
return e.includes("j") ? Rn(e, t) : L(t);
|
995
995
|
}
|
996
996
|
var o = n();
|
997
997
|
return typeof o != "function" && A(`unknown function pointer with signature ${e}: ${t}`), o;
|
998
|
-
},
|
998
|
+
}, kn = (e, t) => {
|
999
999
|
var n = ke(t, function(o) {
|
1000
1000
|
this.name = t, this.message = o;
|
1001
1001
|
var s = new Error(o).stack;
|
@@ -1005,8 +1005,8 @@ var It = (() => {
|
|
1005
1005
|
return n.prototype = Object.create(e.prototype), n.prototype.constructor = n, n.prototype.toString = function() {
|
1006
1006
|
return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
|
1007
1007
|
}, n;
|
1008
|
-
},
|
1009
|
-
var t = or(e), n =
|
1008
|
+
}, Gt, Yt = (e) => {
|
1009
|
+
var t = or(e), n = G(t);
|
1010
1010
|
return se(t), n;
|
1011
1011
|
}, Ze = (e, t) => {
|
1012
1012
|
var n = [], o = {};
|
@@ -1019,17 +1019,17 @@ var It = (() => {
|
|
1019
1019
|
n.push(u), o[u] = !0;
|
1020
1020
|
}
|
1021
1021
|
}
|
1022
|
-
throw t.forEach(s), new
|
1023
|
-
},
|
1024
|
-
C =
|
1025
|
-
var E =
|
1022
|
+
throw t.forEach(s), new Gt(`${e}: ` + n.map(Yt).join([", "]));
|
1023
|
+
}, Fn = (e, t, n, o, s, u, l, d, p, g, C, P, _) => {
|
1024
|
+
C = G(C), u = Z(s, u), d && (d = Z(l, d)), g && (g = Z(p, g)), _ = Z(P, _);
|
1025
|
+
var E = _n(C);
|
1026
1026
|
$t(E, function() {
|
1027
1027
|
Ze(`Cannot construct ${C} due to unbound types`, [o]);
|
1028
1028
|
}), ge([e, t, n], o ? [o] : [], function(U) {
|
1029
1029
|
U = U[0];
|
1030
1030
|
var V, k;
|
1031
1031
|
o ? (V = U.registeredClass, k = V.instancePrototype) : k = Qe.prototype;
|
1032
|
-
var
|
1032
|
+
var Y = ke(C, function() {
|
1033
1033
|
if (Object.getPrototypeOf(this) !== m)
|
1034
1034
|
throw new $e("Use 'new' to construct " + C);
|
1035
1035
|
if ($.constructor_body === void 0)
|
@@ -1040,11 +1040,11 @@ var It = (() => {
|
|
1040
1040
|
return hr.apply(this, arguments);
|
1041
1041
|
}), m = Object.create(k, {
|
1042
1042
|
constructor: {
|
1043
|
-
value:
|
1043
|
+
value: Y
|
1044
1044
|
}
|
1045
1045
|
});
|
1046
|
-
|
1047
|
-
var $ = new
|
1046
|
+
Y.prototype = m;
|
1047
|
+
var $ = new En(C, Y, m, _, V, u, d, g);
|
1048
1048
|
if ($.baseClass) {
|
1049
1049
|
var B, J;
|
1050
1050
|
(J = (B = $.baseClass).__derivedClasses) !== null && J !== void 0 || (B.__derivedClasses = []), $.baseClass.__derivedClasses.push($);
|
@@ -1053,14 +1053,14 @@ var It = (() => {
|
|
1053
1053
|
return Vt[e] = {
|
1054
1054
|
pointerType: rt,
|
1055
1055
|
constPointerType: fr
|
1056
|
-
},
|
1056
|
+
}, qt(E, Y), [Se, rt, fr];
|
1057
1057
|
});
|
1058
1058
|
}, Pt = (e, t) => {
|
1059
1059
|
for (var n = [], o = 0; o < e; o++)
|
1060
1060
|
n.push(M[t + o * 4 >> 2]);
|
1061
1061
|
return n;
|
1062
1062
|
};
|
1063
|
-
function
|
1063
|
+
function In(e) {
|
1064
1064
|
for (var t = 1; t < e.length; ++t)
|
1065
1065
|
if (e[t] !== null && e[t].destructorFunction === void 0)
|
1066
1066
|
return !0;
|
@@ -1069,13 +1069,13 @@ var It = (() => {
|
|
1069
1069
|
function _t(e, t, n, o, s, u) {
|
1070
1070
|
var l = t.length;
|
1071
1071
|
l < 2 && A("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
1072
|
-
var d = t[1] !== null && n !== null, p =
|
1072
|
+
var d = t[1] !== null && n !== null, p = In(t), g = t[0].name !== "void", C = l - 2, P = new Array(C), _ = [], E = [], U = function() {
|
1073
1073
|
arguments.length !== C && A(`function ${e} called with ${arguments.length} arguments, expected ${C}`), E.length = 0;
|
1074
1074
|
var V;
|
1075
1075
|
_.length = d ? 2 : 1, _[0] = s, d && (V = t[1].toWireType(E, this), _[1] = V);
|
1076
1076
|
for (var k = 0; k < C; ++k)
|
1077
1077
|
P[k] = t[k + 2].toWireType(E, arguments[k]), _.push(P[k]);
|
1078
|
-
var
|
1078
|
+
var Y = o.apply(null, _);
|
1079
1079
|
function m($) {
|
1080
1080
|
if (p)
|
1081
1081
|
gt(E);
|
@@ -1087,11 +1087,11 @@ var It = (() => {
|
|
1087
1087
|
if (g)
|
1088
1088
|
return t[0].fromWireType($);
|
1089
1089
|
}
|
1090
|
-
return m(
|
1090
|
+
return m(Y);
|
1091
1091
|
};
|
1092
1092
|
return ke(e, U);
|
1093
1093
|
}
|
1094
|
-
var
|
1094
|
+
var Wn = (e, t, n, o, s, u) => {
|
1095
1095
|
var l = Pt(t, n);
|
1096
1096
|
s = Z(o, s), ge([], [e], function(d) {
|
1097
1097
|
d = d[0];
|
@@ -1106,9 +1106,9 @@ var It = (() => {
|
|
1106
1106
|
e = e.trim();
|
1107
1107
|
const t = e.indexOf("(");
|
1108
1108
|
return t !== -1 ? e.substr(0, t) : e;
|
1109
|
-
},
|
1109
|
+
}, Un = (e, t, n, o, s, u, l, d, p) => {
|
1110
1110
|
var g = Pt(n, o);
|
1111
|
-
t =
|
1111
|
+
t = G(t), t = Qt(t), u = Z(s, u), ge([], [e], function(C) {
|
1112
1112
|
C = C[0];
|
1113
1113
|
var P = `${C.name}.${t}`;
|
1114
1114
|
t.startsWith("@@") && (t = Symbol[t.substring(2)]), d && C.registeredClass.pureVirtualFunctions.push(t);
|
@@ -1122,7 +1122,7 @@ var It = (() => {
|
|
1122
1122
|
}), [];
|
1123
1123
|
});
|
1124
1124
|
};
|
1125
|
-
function
|
1125
|
+
function Ln() {
|
1126
1126
|
Object.assign(Xt.prototype, {
|
1127
1127
|
get(e) {
|
1128
1128
|
return this.allocated[e];
|
@@ -1144,11 +1144,11 @@ var It = (() => {
|
|
1144
1144
|
}
|
1145
1145
|
var K = new Xt(), Et = (e) => {
|
1146
1146
|
e >= K.reserved && --K.get(e).refcount === 0 && K.free(e);
|
1147
|
-
},
|
1147
|
+
}, Hn = () => {
|
1148
1148
|
for (var e = 0, t = K.reserved; t < K.allocated.length; ++t)
|
1149
1149
|
K.allocated[t] !== void 0 && ++e;
|
1150
1150
|
return e;
|
1151
|
-
},
|
1151
|
+
}, Nn = () => {
|
1152
1152
|
K.allocated.push({
|
1153
1153
|
value: void 0
|
1154
1154
|
}, {
|
@@ -1157,7 +1157,7 @@ var It = (() => {
|
|
1157
1157
|
value: !0
|
1158
1158
|
}, {
|
1159
1159
|
value: !1
|
1160
|
-
}), K.reserved = K.allocated.length, a.count_emval_handles =
|
1160
|
+
}), K.reserved = K.allocated.length, a.count_emval_handles = Hn;
|
1161
1161
|
}, ie = {
|
1162
1162
|
toValue: (e) => (e || A("Cannot use deleted val. handle = " + e), K.get(e).value),
|
1163
1163
|
toHandle: (e) => {
|
@@ -1177,8 +1177,8 @@ var It = (() => {
|
|
1177
1177
|
});
|
1178
1178
|
}
|
1179
1179
|
}
|
1180
|
-
},
|
1181
|
-
t =
|
1180
|
+
}, Vn = (e, t) => {
|
1181
|
+
t = G(t), te(e, {
|
1182
1182
|
name: t,
|
1183
1183
|
fromWireType: (n) => {
|
1184
1184
|
var o = ie.toValue(n);
|
@@ -1189,7 +1189,7 @@ var It = (() => {
|
|
1189
1189
|
readValueFromPointer: wt,
|
1190
1190
|
destructorFunction: null
|
1191
1191
|
});
|
1192
|
-
},
|
1192
|
+
}, Bn = (e, t, n) => {
|
1193
1193
|
switch (t) {
|
1194
1194
|
case 1:
|
1195
1195
|
return n ? function(o) {
|
@@ -1212,8 +1212,8 @@ var It = (() => {
|
|
1212
1212
|
default:
|
1213
1213
|
throw new TypeError(`invalid integer width (${t}): ${e}`);
|
1214
1214
|
}
|
1215
|
-
},
|
1216
|
-
t =
|
1215
|
+
}, zn = (e, t, n, o) => {
|
1216
|
+
t = G(t);
|
1217
1217
|
function s() {
|
1218
1218
|
}
|
1219
1219
|
s.values = {}, te(e, {
|
@@ -1224,15 +1224,15 @@ var It = (() => {
|
|
1224
1224
|
},
|
1225
1225
|
toWireType: (u, l) => l.value,
|
1226
1226
|
argPackAdvance: re,
|
1227
|
-
readValueFromPointer:
|
1227
|
+
readValueFromPointer: Bn(t, n, o),
|
1228
1228
|
destructorFunction: null
|
1229
1229
|
}), $t(t, s);
|
1230
1230
|
}, Ot = (e, t) => {
|
1231
1231
|
var n = ye[e];
|
1232
|
-
return n === void 0 && A(t + " has unknown type " +
|
1233
|
-
},
|
1232
|
+
return n === void 0 && A(t + " has unknown type " + Yt(e)), n;
|
1233
|
+
}, qn = (e, t, n) => {
|
1234
1234
|
var o = Ot(e, "enum");
|
1235
|
-
t =
|
1235
|
+
t = G(t);
|
1236
1236
|
var s = o.constructor, u = Object.create(o.constructor.prototype, {
|
1237
1237
|
value: {
|
1238
1238
|
value: n
|
@@ -1248,7 +1248,7 @@ var It = (() => {
|
|
1248
1248
|
return "null";
|
1249
1249
|
var t = typeof e;
|
1250
1250
|
return t === "object" || t === "array" || t === "function" ? e.toString() : "" + e;
|
1251
|
-
},
|
1251
|
+
}, Jn = (e, t) => {
|
1252
1252
|
switch (t) {
|
1253
1253
|
case 4:
|
1254
1254
|
return function(n) {
|
@@ -1261,24 +1261,24 @@ var It = (() => {
|
|
1261
1261
|
default:
|
1262
1262
|
throw new TypeError(`invalid float width (${t}): ${e}`);
|
1263
1263
|
}
|
1264
|
-
},
|
1265
|
-
t =
|
1264
|
+
}, Gn = (e, t, n) => {
|
1265
|
+
t = G(t), te(e, {
|
1266
1266
|
name: t,
|
1267
1267
|
fromWireType: (o) => o,
|
1268
1268
|
toWireType: (o, s) => s,
|
1269
1269
|
argPackAdvance: re,
|
1270
|
-
readValueFromPointer:
|
1270
|
+
readValueFromPointer: Jn(t, n),
|
1271
1271
|
destructorFunction: null
|
1272
1272
|
});
|
1273
1273
|
}, Yn = (e, t, n, o, s, u, l) => {
|
1274
1274
|
var d = Pt(t, n);
|
1275
|
-
e =
|
1275
|
+
e = G(e), e = Qt(e), s = Z(o, s), $t(e, function() {
|
1276
1276
|
Ze(`Cannot call ${e} due to unbound types`, d);
|
1277
1277
|
}, t - 1), ge([], d, function(p) {
|
1278
1278
|
var g = [p[0], null].concat(p.slice(1));
|
1279
|
-
return
|
1279
|
+
return qt(e, _t(e, g, null, s, u), t - 1), [];
|
1280
1280
|
});
|
1281
|
-
},
|
1281
|
+
}, Qn = (e, t, n) => {
|
1282
1282
|
switch (t) {
|
1283
1283
|
case 1:
|
1284
1284
|
return n ? (o) => I[o >> 0] : (o) => z[o >> 0];
|
@@ -1289,8 +1289,8 @@ var It = (() => {
|
|
1289
1289
|
default:
|
1290
1290
|
throw new TypeError(`invalid integer width (${t}): ${e}`);
|
1291
1291
|
}
|
1292
|
-
},
|
1293
|
-
t =
|
1292
|
+
}, Xn = (e, t, n, o, s) => {
|
1293
|
+
t = G(t);
|
1294
1294
|
var u = (C) => C;
|
1295
1295
|
if (o === 0) {
|
1296
1296
|
var l = 32 - 8 * n;
|
@@ -1307,16 +1307,16 @@ var It = (() => {
|
|
1307
1307
|
fromWireType: u,
|
1308
1308
|
toWireType: g,
|
1309
1309
|
argPackAdvance: re,
|
1310
|
-
readValueFromPointer:
|
1310
|
+
readValueFromPointer: Qn(t, n, o !== 0),
|
1311
1311
|
destructorFunction: null
|
1312
1312
|
});
|
1313
|
-
},
|
1313
|
+
}, Kn = (e, t, n) => {
|
1314
1314
|
var o = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], s = o[t];
|
1315
1315
|
function u(l) {
|
1316
1316
|
var d = M[l >> 2], p = M[l + 4 >> 2];
|
1317
1317
|
return new s(I.buffer, p, d);
|
1318
1318
|
}
|
1319
|
-
n =
|
1319
|
+
n = G(n), te(e, {
|
1320
1320
|
name: n,
|
1321
1321
|
fromWireType: u,
|
1322
1322
|
argPackAdvance: re,
|
@@ -1352,13 +1352,13 @@ var It = (() => {
|
|
1352
1352
|
}
|
1353
1353
|
}
|
1354
1354
|
return t[n] = 0, n - s;
|
1355
|
-
},
|
1355
|
+
}, Zn = (e, t, n) => Kt(e, z, t, n), Zt = (e) => {
|
1356
1356
|
for (var t = 0, n = 0; n < e.length; ++n) {
|
1357
1357
|
var o = e.charCodeAt(n);
|
1358
1358
|
o <= 127 ? t++ : o <= 2047 ? t += 2 : o >= 55296 && o <= 57343 ? (t += 4, ++n) : t += 3;
|
1359
1359
|
}
|
1360
1360
|
return t;
|
1361
|
-
}, er = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0,
|
1361
|
+
}, er = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, ea = (e, t, n) => {
|
1362
1362
|
for (var o = t + n, s = t; e[s] && !(s >= o); )
|
1363
1363
|
++s;
|
1364
1364
|
if (s - t > 16 && e.buffer && er)
|
@@ -1383,8 +1383,8 @@ var It = (() => {
|
|
1383
1383
|
}
|
1384
1384
|
}
|
1385
1385
|
return u;
|
1386
|
-
}, At = (e, t) => e ?
|
1387
|
-
t =
|
1386
|
+
}, At = (e, t) => e ? ea(z, e, t) : "", ta = (e, t) => {
|
1387
|
+
t = G(t);
|
1388
1388
|
var n = t === "std::string";
|
1389
1389
|
te(e, {
|
1390
1390
|
name: t,
|
@@ -1411,7 +1411,7 @@ var It = (() => {
|
|
1411
1411
|
l || s instanceof Uint8Array || s instanceof Uint8ClampedArray || s instanceof Int8Array || A("Cannot pass non-string to std::string"), n && l ? u = Zt(s) : u = s.length;
|
1412
1412
|
var d = Dt(4 + u + 1), p = d + 4;
|
1413
1413
|
if (M[d >> 2] = u, n && l)
|
1414
|
-
|
1414
|
+
Zn(s, p, u + 1);
|
1415
1415
|
else if (l)
|
1416
1416
|
for (var g = 0; g < u; ++g) {
|
1417
1417
|
var C = s.charCodeAt(g);
|
@@ -1428,7 +1428,7 @@ var It = (() => {
|
|
1428
1428
|
se(o);
|
1429
1429
|
}
|
1430
1430
|
});
|
1431
|
-
}, tr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0,
|
1431
|
+
}, tr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, ra = (e, t) => {
|
1432
1432
|
for (var n = e, o = n >> 1, s = o + t / 2; !(o >= s) && R[o]; )
|
1433
1433
|
++o;
|
1434
1434
|
if (n = o << 1, n - e > 32 && tr)
|
@@ -1440,7 +1440,7 @@ var It = (() => {
|
|
1440
1440
|
u += String.fromCharCode(d);
|
1441
1441
|
}
|
1442
1442
|
return u;
|
1443
|
-
},
|
1443
|
+
}, na = (e, t, n) => {
|
1444
1444
|
var o;
|
1445
1445
|
if ((o = n) !== null && o !== void 0 || (n = 2147483647), n < 2)
|
1446
1446
|
return 0;
|
@@ -1450,7 +1450,7 @@ var It = (() => {
|
|
1450
1450
|
ue[t >> 1] = d, t += 2;
|
1451
1451
|
}
|
1452
1452
|
return ue[t >> 1] = 0, t - s;
|
1453
|
-
},
|
1453
|
+
}, aa = (e) => e.length * 2, oa = (e, t) => {
|
1454
1454
|
for (var n = 0, o = ""; !(n >= t / 4); ) {
|
1455
1455
|
var s = O[e + n * 4 >> 2];
|
1456
1456
|
if (s == 0)
|
@@ -1462,7 +1462,7 @@ var It = (() => {
|
|
1462
1462
|
o += String.fromCharCode(s);
|
1463
1463
|
}
|
1464
1464
|
return o;
|
1465
|
-
},
|
1465
|
+
}, ia = (e, t, n) => {
|
1466
1466
|
var o;
|
1467
1467
|
if ((o = n) !== null && o !== void 0 || (n = 2147483647), n < 4)
|
1468
1468
|
return 0;
|
@@ -1476,16 +1476,16 @@ var It = (() => {
|
|
1476
1476
|
break;
|
1477
1477
|
}
|
1478
1478
|
return O[t >> 2] = 0, t - s;
|
1479
|
-
},
|
1479
|
+
}, sa = (e) => {
|
1480
1480
|
for (var t = 0, n = 0; n < e.length; ++n) {
|
1481
1481
|
var o = e.charCodeAt(n);
|
1482
1482
|
o >= 55296 && o <= 57343 && ++n, t += 4;
|
1483
1483
|
}
|
1484
1484
|
return t;
|
1485
|
-
},
|
1486
|
-
n =
|
1485
|
+
}, ca = (e, t, n) => {
|
1486
|
+
n = G(n);
|
1487
1487
|
var o, s, u, l, d;
|
1488
|
-
t === 2 ? (o =
|
1488
|
+
t === 2 ? (o = ra, s = na, l = aa, u = () => R, d = 1) : t === 4 && (o = oa, s = ia, l = sa, u = () => M, d = 2), te(e, {
|
1489
1489
|
name: n,
|
1490
1490
|
fromWireType: (p) => {
|
1491
1491
|
for (var g = M[p >> 2], C = u(), P, _ = p + 4, E = 0; E <= g; ++E) {
|
@@ -1508,16 +1508,16 @@ var It = (() => {
|
|
1508
1508
|
se(p);
|
1509
1509
|
}
|
1510
1510
|
});
|
1511
|
-
},
|
1512
|
-
|
1513
|
-
name:
|
1511
|
+
}, ua = (e, t, n, o, s, u) => {
|
1512
|
+
qe[e] = {
|
1513
|
+
name: G(t),
|
1514
1514
|
rawConstructor: Z(n, o),
|
1515
1515
|
rawDestructor: Z(s, u),
|
1516
1516
|
fields: []
|
1517
1517
|
};
|
1518
|
-
},
|
1519
|
-
|
1520
|
-
fieldName:
|
1518
|
+
}, la = (e, t, n, o, s, u, l, d, p, g) => {
|
1519
|
+
qe[e].fields.push({
|
1520
|
+
fieldName: G(t),
|
1521
1521
|
getterReturnType: n,
|
1522
1522
|
getter: Z(o, s),
|
1523
1523
|
getterContext: u,
|
@@ -1525,8 +1525,8 @@ var It = (() => {
|
|
1525
1525
|
setter: Z(d, p),
|
1526
1526
|
setterContext: g
|
1527
1527
|
});
|
1528
|
-
},
|
1529
|
-
t =
|
1528
|
+
}, da = (e, t) => {
|
1529
|
+
t = G(t), te(e, {
|
1530
1530
|
isVoid: !0,
|
1531
1531
|
name: t,
|
1532
1532
|
argPackAdvance: 0,
|
@@ -1535,9 +1535,9 @@ var It = (() => {
|
|
1535
1535
|
toWireType: (n, o) => {
|
1536
1536
|
}
|
1537
1537
|
});
|
1538
|
-
}, xt = [],
|
1539
|
-
var t =
|
1540
|
-
return t === void 0 ?
|
1538
|
+
}, xt = [], fa = (e, t, n, o) => (e = xt[e], t = ie.toValue(t), e(null, t, n, o)), ha = {}, pa = (e) => {
|
1539
|
+
var t = ha[e];
|
1540
|
+
return t === void 0 ? G(e) : t;
|
1541
1541
|
}, rr = () => {
|
1542
1542
|
if (typeof globalThis == "object")
|
1543
1543
|
return globalThis;
|
@@ -1549,61 +1549,61 @@ var It = (() => {
|
|
1549
1549
|
if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && e(global) ? $$$embind_global$$$ = global : typeof self == "object" && e(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object"))
|
1550
1550
|
return $$$embind_global$$$;
|
1551
1551
|
throw Error("unable to get global object.");
|
1552
|
-
},
|
1552
|
+
}, va = (e) => e === 0 ? ie.toHandle(rr()) : (e = pa(e), ie.toHandle(rr()[e])), ma = (e) => {
|
1553
1553
|
var t = xt.length;
|
1554
1554
|
return xt.push(e), t;
|
1555
|
-
},
|
1555
|
+
}, ya = (e, t) => {
|
1556
1556
|
for (var n = new Array(e), o = 0; o < e; ++o)
|
1557
1557
|
n[o] = Ot(M[t + o * 4 >> 2], "parameter " + o);
|
1558
1558
|
return n;
|
1559
|
-
},
|
1559
|
+
}, ga = Reflect.construct, wa = (e, t, n) => {
|
1560
1560
|
var o = [], s = e.toWireType(o, n);
|
1561
1561
|
return o.length && (M[t >> 2] = ie.toHandle(o)), s;
|
1562
|
-
},
|
1563
|
-
var o =
|
1562
|
+
}, ba = (e, t, n) => {
|
1563
|
+
var o = ya(e, t), s = o.shift();
|
1564
1564
|
e--;
|
1565
1565
|
var u = new Array(e), l = (p, g, C, P) => {
|
1566
1566
|
for (var _ = 0, E = 0; E < e; ++E)
|
1567
1567
|
u[E] = o[E].readValueFromPointer(P + _), _ += o[E].argPackAdvance;
|
1568
|
-
for (var U = n === 1 ?
|
1568
|
+
for (var U = n === 1 ? ga(g, u) : g.apply(p, u), E = 0; E < e; ++E) {
|
1569
1569
|
var V, k;
|
1570
1570
|
(V = (k = o[E]).deleteObject) === null || V === void 0 || V.call(k, u[E]);
|
1571
1571
|
}
|
1572
|
-
return
|
1572
|
+
return wa(s, C, U);
|
1573
1573
|
}, d = `methodCaller<(${o.map((p) => p.name).join(", ")}) => ${s.name}>`;
|
1574
|
-
return
|
1575
|
-
}, ba = (e) => {
|
1576
|
-
e > 4 && (K.get(e).refcount += 1);
|
1574
|
+
return ma(ke(d, l));
|
1577
1575
|
}, Ca = (e) => {
|
1576
|
+
e > 4 && (K.get(e).refcount += 1);
|
1577
|
+
}, Ta = (e) => {
|
1578
1578
|
var t = ie.toValue(e);
|
1579
1579
|
gt(t), Et(e);
|
1580
|
-
},
|
1580
|
+
}, $a = (e, t) => {
|
1581
1581
|
e = Ot(e, "_emval_take_value");
|
1582
1582
|
var n = e.readValueFromPointer(t);
|
1583
1583
|
return ie.toHandle(n);
|
1584
|
-
},
|
1584
|
+
}, Sa = () => {
|
1585
1585
|
X("");
|
1586
|
-
},
|
1586
|
+
}, Pa = (e, t, n) => z.copyWithin(e, t, t + n), _a = () => 2147483648, Ea = (e) => {
|
1587
1587
|
var t = x.buffer, n = (e - t.byteLength + 65535) / 65536;
|
1588
1588
|
try {
|
1589
1589
|
return x.grow(n), be(), 1;
|
1590
1590
|
} catch {
|
1591
1591
|
}
|
1592
|
-
},
|
1592
|
+
}, Oa = (e) => {
|
1593
1593
|
var t = z.length;
|
1594
1594
|
e >>>= 0;
|
1595
|
-
var n =
|
1595
|
+
var n = _a();
|
1596
1596
|
if (e > n)
|
1597
1597
|
return !1;
|
1598
1598
|
for (var o = (p, g) => p + (g - p % g) % g, s = 1; s <= 4; s *= 2) {
|
1599
1599
|
var u = t * (1 + 0.2 / s);
|
1600
1600
|
u = Math.min(u, e + 100663296);
|
1601
|
-
var l = Math.min(n, o(Math.max(e, u), 65536)), d =
|
1601
|
+
var l = Math.min(n, o(Math.max(e, u), 65536)), d = Ea(l);
|
1602
1602
|
if (d)
|
1603
1603
|
return !0;
|
1604
1604
|
}
|
1605
1605
|
return !1;
|
1606
|
-
}, jt = {},
|
1606
|
+
}, jt = {}, Ma = () => y || "./this.program", Fe = () => {
|
1607
1607
|
if (!Fe.strings) {
|
1608
1608
|
var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", t = {
|
1609
1609
|
USER: "web_user",
|
@@ -1612,7 +1612,7 @@ var It = (() => {
|
|
1612
1612
|
PWD: "/",
|
1613
1613
|
HOME: "/home/web_user",
|
1614
1614
|
LANG: e,
|
1615
|
-
_:
|
1615
|
+
_: Ma()
|
1616
1616
|
};
|
1617
1617
|
for (var n in jt)
|
1618
1618
|
jt[n] === void 0 ? delete t[n] : t[n] = jt[n];
|
@@ -1622,26 +1622,26 @@ var It = (() => {
|
|
1622
1622
|
Fe.strings = o;
|
1623
1623
|
}
|
1624
1624
|
return Fe.strings;
|
1625
|
-
},
|
1625
|
+
}, Aa = (e, t) => {
|
1626
1626
|
for (var n = 0; n < e.length; ++n)
|
1627
1627
|
I[t++ >> 0] = e.charCodeAt(n);
|
1628
1628
|
I[t >> 0] = 0;
|
1629
|
-
},
|
1629
|
+
}, xa = (e, t) => {
|
1630
1630
|
var n = 0;
|
1631
1631
|
return Fe().forEach((o, s) => {
|
1632
1632
|
var u = t + n;
|
1633
|
-
M[e + s * 4 >> 2] = u,
|
1633
|
+
M[e + s * 4 >> 2] = u, Aa(o, u), n += o.length + 1;
|
1634
1634
|
}), 0;
|
1635
|
-
},
|
1635
|
+
}, ja = (e, t) => {
|
1636
1636
|
var n = Fe();
|
1637
1637
|
M[e >> 2] = n.length;
|
1638
1638
|
var o = 0;
|
1639
1639
|
return n.forEach((s) => o += s.length + 1), M[t >> 2] = o, 0;
|
1640
|
-
},
|
1640
|
+
}, Da = (e) => e, et = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), Ra = (e, t) => {
|
1641
1641
|
for (var n = 0, o = 0; o <= t; n += e[o++])
|
1642
1642
|
;
|
1643
1643
|
return n;
|
1644
|
-
}, nr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ar = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
1644
|
+
}, nr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ar = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ka = (e, t) => {
|
1645
1645
|
for (var n = new Date(e.getTime()); t > 0; ) {
|
1646
1646
|
var o = et(n.getFullYear()), s = n.getMonth(), u = (o ? nr : ar)[s];
|
1647
1647
|
if (t > u - n.getDate())
|
@@ -1651,13 +1651,13 @@ var It = (() => {
|
|
1651
1651
|
}
|
1652
1652
|
return n;
|
1653
1653
|
};
|
1654
|
-
function
|
1654
|
+
function Fa(e, t, n) {
|
1655
1655
|
var o = Zt(e) + 1, s = new Array(o);
|
1656
1656
|
return Kt(e, s, 0, s.length), s;
|
1657
1657
|
}
|
1658
|
-
var
|
1658
|
+
var Ia = (e, t) => {
|
1659
1659
|
I.set(e, t);
|
1660
|
-
},
|
1660
|
+
}, Wa = (e, t, n, o) => {
|
1661
1661
|
var s = M[o + 40 >> 2], u = {
|
1662
1662
|
tm_sec: O[o >> 2],
|
1663
1663
|
tm_min: O[o + 4 >> 2],
|
@@ -1737,7 +1737,7 @@ var It = (() => {
|
|
1737
1737
|
}
|
1738
1738
|
}
|
1739
1739
|
function V(m) {
|
1740
|
-
var $ =
|
1740
|
+
var $ = ka(new Date(m.tm_year + 1900, 0, 1), m.tm_yday), B = new Date($.getFullYear(), 0, 4), J = new Date($.getFullYear() + 1, 0, 4), Se = U(B), rt = U(J);
|
1741
1741
|
return E(Se, $) <= 0 ? E(rt, $) <= 0 ? $.getFullYear() + 1 : $.getFullYear() : $.getFullYear() - 1;
|
1742
1742
|
}
|
1743
1743
|
var k = {
|
@@ -1758,7 +1758,7 @@ var It = (() => {
|
|
1758
1758
|
var $ = m.tm_hour;
|
1759
1759
|
return $ == 0 ? $ = 12 : $ > 12 && ($ -= 12), _($, 2);
|
1760
1760
|
},
|
1761
|
-
"%j": (m) => _(m.tm_mday +
|
1761
|
+
"%j": (m) => _(m.tm_mday + Ra(et(m.tm_year + 1900) ? nr : ar, m.tm_mon - 1), 3),
|
1762
1762
|
"%m": (m) => _(m.tm_mon + 1, 2),
|
1763
1763
|
"%M": (m) => _(m.tm_min, 2),
|
1764
1764
|
"%n": () => `
|
@@ -1803,86 +1803,86 @@ var It = (() => {
|
|
1803
1803
|
for (var p in k)
|
1804
1804
|
l.includes(p) && (l = l.replace(new RegExp(p, "g"), k[p](u)));
|
1805
1805
|
l = l.replace(/\0\0/g, "%");
|
1806
|
-
var
|
1807
|
-
return
|
1808
|
-
},
|
1806
|
+
var Y = Fa(l);
|
1807
|
+
return Y.length > t ? 0 : (Ia(Y, e), Y.length - 1);
|
1808
|
+
}, Ua = (e, t, n, o, s) => Wa(e, t, n, o);
|
1809
1809
|
Wt = a.InternalError = class extends Error {
|
1810
1810
|
constructor(e) {
|
1811
1811
|
super(e), this.name = "InternalError";
|
1812
1812
|
}
|
1813
|
-
},
|
1813
|
+
}, dn(), $e = a.BindingError = class extends Error {
|
1814
1814
|
constructor(e) {
|
1815
1815
|
super(e), this.name = "BindingError";
|
1816
1816
|
}
|
1817
|
-
},
|
1818
|
-
var
|
1819
|
-
s:
|
1820
|
-
u:
|
1821
|
-
b:
|
1822
|
-
g:
|
1823
|
-
q:
|
1824
|
-
J:
|
1825
|
-
f:
|
1826
|
-
V:
|
1827
|
-
d:
|
1828
|
-
da:
|
1829
|
-
Q:
|
1830
|
-
_:
|
1831
|
-
ca:
|
1832
|
-
ba:
|
1833
|
-
w:
|
1834
|
-
Y:
|
1835
|
-
x:
|
1836
|
-
h:
|
1837
|
-
L:
|
1817
|
+
}, $n(), wn(), xn(), Gt = a.UnboundTypeError = kn(Error, "UnboundTypeError"), Ln(), Nn();
|
1818
|
+
var La = {
|
1819
|
+
s: Zr,
|
1820
|
+
u: en,
|
1821
|
+
b: rn,
|
1822
|
+
g: nn,
|
1823
|
+
q: an,
|
1824
|
+
J: on,
|
1825
|
+
f: sn,
|
1826
|
+
V: cn,
|
1827
|
+
d: tn,
|
1828
|
+
da: un,
|
1829
|
+
Q: ln,
|
1830
|
+
_: hn,
|
1831
|
+
ca: Fn,
|
1832
|
+
ba: Wn,
|
1833
|
+
w: Un,
|
1834
|
+
Y: Vn,
|
1835
|
+
x: zn,
|
1836
|
+
h: qn,
|
1837
|
+
L: Gn,
|
1838
1838
|
M: Yn,
|
1839
|
-
t:
|
1840
|
-
o:
|
1841
|
-
K:
|
1842
|
-
C:
|
1843
|
-
A:
|
1844
|
-
ea:
|
1845
|
-
$:
|
1846
|
-
R:
|
1839
|
+
t: Xn,
|
1840
|
+
o: Kn,
|
1841
|
+
K: ta,
|
1842
|
+
C: ca,
|
1843
|
+
A: ua,
|
1844
|
+
ea: la,
|
1845
|
+
$: da,
|
1846
|
+
R: fa,
|
1847
1847
|
ha: Et,
|
1848
|
-
fa:
|
1849
|
-
Z:
|
1850
|
-
N:
|
1851
|
-
O:
|
1852
|
-
aa:
|
1853
|
-
B:
|
1854
|
-
X:
|
1855
|
-
W:
|
1856
|
-
T:
|
1857
|
-
U:
|
1858
|
-
E:
|
1859
|
-
D:
|
1860
|
-
F:
|
1861
|
-
n:
|
1862
|
-
a:
|
1863
|
-
e:
|
1864
|
-
m:
|
1848
|
+
fa: va,
|
1849
|
+
Z: ba,
|
1850
|
+
N: Ca,
|
1851
|
+
O: Ta,
|
1852
|
+
aa: $a,
|
1853
|
+
B: Sa,
|
1854
|
+
X: Pa,
|
1855
|
+
W: Oa,
|
1856
|
+
T: xa,
|
1857
|
+
U: ja,
|
1858
|
+
E: ro,
|
1859
|
+
D: za,
|
1860
|
+
F: to,
|
1861
|
+
n: no,
|
1862
|
+
a: Ha,
|
1863
|
+
e: Ja,
|
1864
|
+
m: Ba,
|
1865
1865
|
k: Ya,
|
1866
|
-
H:
|
1867
|
-
v:
|
1868
|
-
G:
|
1869
|
-
z:
|
1870
|
-
P:
|
1871
|
-
l:
|
1872
|
-
j:
|
1873
|
-
c:
|
1874
|
-
p:
|
1875
|
-
I:
|
1876
|
-
r:
|
1877
|
-
i:
|
1878
|
-
y:
|
1879
|
-
ga:
|
1880
|
-
S:
|
1881
|
-
},
|
1882
|
-
a.dynCall_viijii = (e, t, n, o, s, u, l) => (a.dynCall_viijii =
|
1883
|
-
var lr = a.dynCall_jiiii = (e, t, n, o, s) => (lr = a.dynCall_jiiii =
|
1884
|
-
a.dynCall_iiiiij = (e, t, n, o, s, u, l) => (a.dynCall_iiiiij =
|
1885
|
-
function
|
1866
|
+
H: Za,
|
1867
|
+
v: Xa,
|
1868
|
+
G: eo,
|
1869
|
+
z: oo,
|
1870
|
+
P: so,
|
1871
|
+
l: Ga,
|
1872
|
+
j: qa,
|
1873
|
+
c: Va,
|
1874
|
+
p: Na,
|
1875
|
+
I: Ka,
|
1876
|
+
r: ao,
|
1877
|
+
i: Qa,
|
1878
|
+
y: io,
|
1879
|
+
ga: Da,
|
1880
|
+
S: Ua
|
1881
|
+
}, q = Kr(), se = a._free = (e) => (se = a._free = q.ka)(e), Dt = a._malloc = (e) => (Dt = a._malloc = q.la)(e), or = (e) => (or = q.na)(e), W = (e, t) => (W = q.oa)(e, t), Ie = (e) => (Ie = q.pa)(e), H = () => (H = q.qa)(), N = (e) => (N = q.ra)(e), ir = (e) => (ir = q.sa)(e), sr = (e) => (sr = q.ta)(e), cr = (e, t, n) => (cr = q.ua)(e, t, n), ur = (e) => (ur = q.va)(e);
|
1882
|
+
a.dynCall_viijii = (e, t, n, o, s, u, l) => (a.dynCall_viijii = q.wa)(e, t, n, o, s, u, l);
|
1883
|
+
var lr = a.dynCall_jiiii = (e, t, n, o, s) => (lr = a.dynCall_jiiii = q.xa)(e, t, n, o, s);
|
1884
|
+
a.dynCall_iiiiij = (e, t, n, o, s, u, l) => (a.dynCall_iiiiij = q.ya)(e, t, n, o, s, u, l), a.dynCall_iiiiijj = (e, t, n, o, s, u, l, d, p) => (a.dynCall_iiiiijj = q.za)(e, t, n, o, s, u, l, d, p), a.dynCall_iiiiiijj = (e, t, n, o, s, u, l, d, p, g) => (a.dynCall_iiiiiijj = q.Aa)(e, t, n, o, s, u, l, d, p, g);
|
1885
|
+
function Ha(e, t) {
|
1886
1886
|
var n = H();
|
1887
1887
|
try {
|
1888
1888
|
return L(e)(t);
|
@@ -1892,7 +1892,7 @@ var It = (() => {
|
|
1892
1892
|
W(1, 0);
|
1893
1893
|
}
|
1894
1894
|
}
|
1895
|
-
function
|
1895
|
+
function Na(e, t, n, o) {
|
1896
1896
|
var s = H();
|
1897
1897
|
try {
|
1898
1898
|
L(e)(t, n, o);
|
@@ -1902,7 +1902,7 @@ var It = (() => {
|
|
1902
1902
|
W(1, 0);
|
1903
1903
|
}
|
1904
1904
|
}
|
1905
|
-
function
|
1905
|
+
function Va(e, t, n) {
|
1906
1906
|
var o = H();
|
1907
1907
|
try {
|
1908
1908
|
L(e)(t, n);
|
@@ -1912,7 +1912,7 @@ var It = (() => {
|
|
1912
1912
|
W(1, 0);
|
1913
1913
|
}
|
1914
1914
|
}
|
1915
|
-
function
|
1915
|
+
function Ba(e, t, n, o) {
|
1916
1916
|
var s = H();
|
1917
1917
|
try {
|
1918
1918
|
return L(e)(t, n, o);
|
@@ -1922,7 +1922,7 @@ var It = (() => {
|
|
1922
1922
|
W(1, 0);
|
1923
1923
|
}
|
1924
1924
|
}
|
1925
|
-
function
|
1925
|
+
function za(e, t, n, o, s) {
|
1926
1926
|
var u = H();
|
1927
1927
|
try {
|
1928
1928
|
return L(e)(t, n, o, s);
|
@@ -1932,7 +1932,7 @@ var It = (() => {
|
|
1932
1932
|
W(1, 0);
|
1933
1933
|
}
|
1934
1934
|
}
|
1935
|
-
function
|
1935
|
+
function qa(e, t) {
|
1936
1936
|
var n = H();
|
1937
1937
|
try {
|
1938
1938
|
L(e)(t);
|
@@ -1942,7 +1942,7 @@ var It = (() => {
|
|
1942
1942
|
W(1, 0);
|
1943
1943
|
}
|
1944
1944
|
}
|
1945
|
-
function
|
1945
|
+
function Ja(e, t, n) {
|
1946
1946
|
var o = H();
|
1947
1947
|
try {
|
1948
1948
|
return L(e)(t, n);
|
@@ -1952,7 +1952,7 @@ var It = (() => {
|
|
1952
1952
|
W(1, 0);
|
1953
1953
|
}
|
1954
1954
|
}
|
1955
|
-
function
|
1955
|
+
function Ga(e) {
|
1956
1956
|
var t = H();
|
1957
1957
|
try {
|
1958
1958
|
L(e)();
|
@@ -1972,7 +1972,7 @@ var It = (() => {
|
|
1972
1972
|
W(1, 0);
|
1973
1973
|
}
|
1974
1974
|
}
|
1975
|
-
function
|
1975
|
+
function Qa(e, t, n, o, s, u, l, d, p, g, C) {
|
1976
1976
|
var P = H();
|
1977
1977
|
try {
|
1978
1978
|
L(e)(t, n, o, s, u, l, d, p, g, C);
|
@@ -1982,7 +1982,7 @@ var It = (() => {
|
|
1982
1982
|
W(1, 0);
|
1983
1983
|
}
|
1984
1984
|
}
|
1985
|
-
function
|
1985
|
+
function Xa(e, t, n, o, s, u, l) {
|
1986
1986
|
var d = H();
|
1987
1987
|
try {
|
1988
1988
|
return L(e)(t, n, o, s, u, l);
|
@@ -1992,7 +1992,7 @@ var It = (() => {
|
|
1992
1992
|
W(1, 0);
|
1993
1993
|
}
|
1994
1994
|
}
|
1995
|
-
function
|
1995
|
+
function Ka(e, t, n, o, s) {
|
1996
1996
|
var u = H();
|
1997
1997
|
try {
|
1998
1998
|
L(e)(t, n, o, s);
|
@@ -2002,7 +2002,7 @@ var It = (() => {
|
|
2002
2002
|
W(1, 0);
|
2003
2003
|
}
|
2004
2004
|
}
|
2005
|
-
function
|
2005
|
+
function Za(e, t, n, o, s, u) {
|
2006
2006
|
var l = H();
|
2007
2007
|
try {
|
2008
2008
|
return L(e)(t, n, o, s, u);
|
@@ -2012,7 +2012,7 @@ var It = (() => {
|
|
2012
2012
|
W(1, 0);
|
2013
2013
|
}
|
2014
2014
|
}
|
2015
|
-
function
|
2015
|
+
function eo(e, t, n, o, s, u, l, d) {
|
2016
2016
|
var p = H();
|
2017
2017
|
try {
|
2018
2018
|
return L(e)(t, n, o, s, u, l, d);
|
@@ -2022,7 +2022,7 @@ var It = (() => {
|
|
2022
2022
|
W(1, 0);
|
2023
2023
|
}
|
2024
2024
|
}
|
2025
|
-
function
|
2025
|
+
function to(e, t, n, o) {
|
2026
2026
|
var s = H();
|
2027
2027
|
try {
|
2028
2028
|
return L(e)(t, n, o);
|
@@ -2032,7 +2032,7 @@ var It = (() => {
|
|
2032
2032
|
W(1, 0);
|
2033
2033
|
}
|
2034
2034
|
}
|
2035
|
-
function
|
2035
|
+
function ro(e, t, n, o) {
|
2036
2036
|
var s = H();
|
2037
2037
|
try {
|
2038
2038
|
return L(e)(t, n, o);
|
@@ -2042,7 +2042,7 @@ var It = (() => {
|
|
2042
2042
|
W(1, 0);
|
2043
2043
|
}
|
2044
2044
|
}
|
2045
|
-
function
|
2045
|
+
function no(e) {
|
2046
2046
|
var t = H();
|
2047
2047
|
try {
|
2048
2048
|
return L(e)();
|
@@ -2052,7 +2052,7 @@ var It = (() => {
|
|
2052
2052
|
W(1, 0);
|
2053
2053
|
}
|
2054
2054
|
}
|
2055
|
-
function
|
2055
|
+
function ao(e, t, n, o, s, u, l, d) {
|
2056
2056
|
var p = H();
|
2057
2057
|
try {
|
2058
2058
|
L(e)(t, n, o, s, u, l, d);
|
@@ -2062,7 +2062,7 @@ var It = (() => {
|
|
2062
2062
|
W(1, 0);
|
2063
2063
|
}
|
2064
2064
|
}
|
2065
|
-
function
|
2065
|
+
function oo(e, t, n, o, s, u, l, d, p, g, C, P) {
|
2066
2066
|
var _ = H();
|
2067
2067
|
try {
|
2068
2068
|
return L(e)(t, n, o, s, u, l, d, p, g, C, P);
|
@@ -2072,17 +2072,17 @@ var It = (() => {
|
|
2072
2072
|
W(1, 0);
|
2073
2073
|
}
|
2074
2074
|
}
|
2075
|
-
function
|
2075
|
+
function io(e, t, n, o, s, u, l, d, p, g, C, P, _, E, U, V) {
|
2076
2076
|
var k = H();
|
2077
2077
|
try {
|
2078
2078
|
L(e)(t, n, o, s, u, l, d, p, g, C, P, _, E, U, V);
|
2079
|
-
} catch (
|
2080
|
-
if (N(k),
|
2081
|
-
throw
|
2079
|
+
} catch (Y) {
|
2080
|
+
if (N(k), Y !== Y + 0)
|
2081
|
+
throw Y;
|
2082
2082
|
W(1, 0);
|
2083
2083
|
}
|
2084
2084
|
}
|
2085
|
-
function
|
2085
|
+
function so(e, t, n, o, s) {
|
2086
2086
|
var u = H();
|
2087
2087
|
try {
|
2088
2088
|
return lr(e, t, n, o, s);
|
@@ -2114,31 +2114,31 @@ var It = (() => {
|
|
2114
2114
|
return dr(), i.ready;
|
2115
2115
|
};
|
2116
2116
|
})();
|
2117
|
-
function
|
2117
|
+
function Bo(r) {
|
2118
2118
|
return Ft(
|
2119
2119
|
It,
|
2120
2120
|
r
|
2121
2121
|
);
|
2122
2122
|
}
|
2123
|
-
async function
|
2124
|
-
return
|
2123
|
+
async function zo(r, i) {
|
2124
|
+
return No(
|
2125
2125
|
It,
|
2126
2126
|
r,
|
2127
2127
|
i
|
2128
2128
|
);
|
2129
2129
|
}
|
2130
|
-
async function
|
2131
|
-
return
|
2130
|
+
async function qo(r, i) {
|
2131
|
+
return Vo(
|
2132
2132
|
It,
|
2133
2133
|
r,
|
2134
2134
|
i
|
2135
2135
|
);
|
2136
2136
|
}
|
2137
2137
|
var Ue;
|
2138
|
-
class
|
2138
|
+
class Ir extends EventTarget {
|
2139
2139
|
constructor(i = {}) {
|
2140
2140
|
var a;
|
2141
|
-
super(),
|
2141
|
+
super(), go(this, Ue, void 0);
|
2142
2142
|
try {
|
2143
2143
|
const c = (a = i == null ? void 0 : i.formats) == null ? void 0 : a.filter(
|
2144
2144
|
(f) => f !== "unknown"
|
@@ -2150,7 +2150,7 @@ class Fr extends EventTarget {
|
|
2150
2150
|
throw new TypeError(
|
2151
2151
|
`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${f}' is not a valid enum value of type BarcodeFormat.`
|
2152
2152
|
);
|
2153
|
-
}),
|
2153
|
+
}), wo(this, Ue, c ?? []), Bo().then((f) => {
|
2154
2154
|
this.dispatchEvent(
|
2155
2155
|
new CustomEvent("load", {
|
2156
2156
|
detail: f
|
@@ -2167,19 +2167,19 @@ class Fr extends EventTarget {
|
|
2167
2167
|
}
|
2168
2168
|
}
|
2169
2169
|
static async getSupportedFormats() {
|
2170
|
-
return
|
2170
|
+
return bo.filter((i) => i !== "unknown");
|
2171
2171
|
}
|
2172
2172
|
async detect(i) {
|
2173
2173
|
try {
|
2174
|
-
const a = await
|
2174
|
+
const a = await Eo(i);
|
2175
2175
|
if (a === null)
|
2176
2176
|
return [];
|
2177
2177
|
let c;
|
2178
2178
|
try {
|
2179
|
-
|
2179
|
+
Dr(a) ? c = await zo(a, {
|
2180
2180
|
tryHarder: !0,
|
2181
2181
|
formats: pr(this, Ue).map((f) => ot.get(f))
|
2182
|
-
}) : c = await
|
2182
|
+
}) : c = await qo(a, {
|
2183
2183
|
tryHarder: !0,
|
2184
2184
|
formats: pr(this, Ue).map((f) => ot.get(f))
|
2185
2185
|
});
|
@@ -2204,7 +2204,7 @@ class Fr extends EventTarget {
|
|
2204
2204
|
I - x
|
2205
2205
|
),
|
2206
2206
|
rawValue: f.text,
|
2207
|
-
format:
|
2207
|
+
format: Co(f.format),
|
2208
2208
|
cornerPoints: [
|
2209
2209
|
{
|
2210
2210
|
x: v,
|
@@ -2234,7 +2234,7 @@ class Fr extends EventTarget {
|
|
2234
2234
|
}
|
2235
2235
|
}
|
2236
2236
|
Ue = /* @__PURE__ */ new WeakMap();
|
2237
|
-
const
|
2237
|
+
const Wr = (r, i, a = "error") => {
|
2238
2238
|
let c, f;
|
2239
2239
|
const v = new Promise(
|
2240
2240
|
(y, S) => {
|
@@ -2245,19 +2245,19 @@ const Ir = (r, i, a = "error") => {
|
|
2245
2245
|
r.removeEventListener(i, c), r.removeEventListener(a, f);
|
2246
2246
|
}), v;
|
2247
2247
|
}, wr = (r) => new Promise((i) => setTimeout(i, r));
|
2248
|
-
class
|
2248
|
+
class Ur extends Error {
|
2249
2249
|
constructor() {
|
2250
2250
|
super("this browser has no Stream API support"), this.name = "StreamApiNotSupportedError";
|
2251
2251
|
}
|
2252
2252
|
}
|
2253
|
-
class
|
2253
|
+
class Jo extends Error {
|
2254
2254
|
constructor() {
|
2255
2255
|
super(
|
2256
2256
|
"camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP."
|
2257
2257
|
), this.name = "InsecureContextError";
|
2258
2258
|
}
|
2259
2259
|
}
|
2260
|
-
class
|
2260
|
+
class Go extends Error {
|
2261
2261
|
constructor() {
|
2262
2262
|
super(
|
2263
2263
|
"Loading camera stream timed out after 3 seconds. If you are on iOS in PWA mode, this is a known issue (see https://github.com/gruhn/vue-qrcode-reader/issues/298)"
|
@@ -2266,16 +2266,18 @@ class Jo extends Error {
|
|
2266
2266
|
}
|
2267
2267
|
let kt;
|
2268
2268
|
const Yo = (r) => {
|
2269
|
-
kt = new
|
2270
|
-
},
|
2269
|
+
kt = new Ir({ formats: r });
|
2270
|
+
}, Qo = async (r, {
|
2271
2271
|
detectHandler: i,
|
2272
2272
|
locateHandler: a,
|
2273
2273
|
minDelay: c,
|
2274
2274
|
formats: f
|
2275
2275
|
}) => {
|
2276
|
-
kt = new
|
2276
|
+
console.debug("[vue-qrcode-reader] start scanning"), kt = new Ir({ formats: f });
|
2277
2277
|
const v = (y) => async (S) => {
|
2278
|
-
if (r.readyState
|
2278
|
+
if (r.readyState === 0)
|
2279
|
+
console.debug("[vue-qrcode-reader] stop scanning: video element readyState is 0");
|
2280
|
+
else {
|
2279
2281
|
const { lastScanned: h, contentBefore: w, lastScanHadContent: T } = y;
|
2280
2282
|
if (S - h < c)
|
2281
2283
|
window.requestAnimationFrame(v(y));
|
@@ -2304,28 +2306,28 @@ const Yo = (r) => {
|
|
2304
2306
|
lastScanHadContent: !1
|
2305
2307
|
})(performance.now());
|
2306
2308
|
};
|
2307
|
-
var
|
2309
|
+
var Lr = {}, Q = {};
|
2308
2310
|
Object.defineProperty(Q, "__esModule", {
|
2309
2311
|
value: !0
|
2310
2312
|
});
|
2311
|
-
Q.compactObject =
|
2312
|
-
Q.deprecated =
|
2313
|
-
var
|
2314
|
-
Q.disableLog =
|
2315
|
-
Q.disableWarnings =
|
2313
|
+
Q.compactObject = Vr;
|
2314
|
+
Q.deprecated = oi;
|
2315
|
+
var Xo = Q.detectBrowser = ii;
|
2316
|
+
Q.disableLog = ri;
|
2317
|
+
Q.disableWarnings = ni;
|
2316
2318
|
Q.extractVersion = it;
|
2317
|
-
Q.filterStats =
|
2318
|
-
Q.log =
|
2319
|
+
Q.filterStats = si;
|
2320
|
+
Q.log = ai;
|
2319
2321
|
Q.walkStats = st;
|
2320
|
-
Q.wrapPeerConnectionEvent =
|
2321
|
-
function
|
2322
|
-
return i =
|
2322
|
+
Q.wrapPeerConnectionEvent = ti;
|
2323
|
+
function Ko(r, i, a) {
|
2324
|
+
return i = Zo(i), i in r ? Object.defineProperty(r, i, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : r[i] = a, r;
|
2323
2325
|
}
|
2324
|
-
function
|
2325
|
-
var i =
|
2326
|
+
function Zo(r) {
|
2327
|
+
var i = ei(r, "string");
|
2326
2328
|
return pe(i) === "symbol" ? i : String(i);
|
2327
2329
|
}
|
2328
|
-
function
|
2330
|
+
function ei(r, i) {
|
2329
2331
|
if (pe(r) !== "object" || r === null)
|
2330
2332
|
return r;
|
2331
2333
|
var a = r[Symbol.toPrimitive];
|
@@ -2345,12 +2347,12 @@ function pe(r) {
|
|
2345
2347
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
2346
2348
|
}, pe(r);
|
2347
2349
|
}
|
2348
|
-
var
|
2350
|
+
var Hr = !0, Nr = !0;
|
2349
2351
|
function it(r, i, a) {
|
2350
2352
|
var c = r.match(i);
|
2351
2353
|
return c && c.length >= a && parseInt(c[a], 10);
|
2352
2354
|
}
|
2353
|
-
function
|
2355
|
+
function ti(r, i, a) {
|
2354
2356
|
if (r.RTCPeerConnection) {
|
2355
2357
|
var c = r.RTCPeerConnection.prototype, f = c.addEventListener;
|
2356
2358
|
c.addEventListener = function(y, S) {
|
@@ -2382,23 +2384,23 @@ function ei(r, i, a) {
|
|
2382
2384
|
});
|
2383
2385
|
}
|
2384
2386
|
}
|
2385
|
-
function ti(r) {
|
2386
|
-
return typeof r != "boolean" ? new Error("Argument type: " + pe(r) + ". Please use a boolean.") : (Lr = r, r ? "adapter.js logging disabled" : "adapter.js logging enabled");
|
2387
|
-
}
|
2388
2387
|
function ri(r) {
|
2389
|
-
return typeof r != "boolean" ? new Error("Argument type: " + pe(r) + ". Please use a boolean.") : (Hr =
|
2388
|
+
return typeof r != "boolean" ? new Error("Argument type: " + pe(r) + ". Please use a boolean.") : (Hr = r, r ? "adapter.js logging disabled" : "adapter.js logging enabled");
|
2389
|
+
}
|
2390
|
+
function ni(r) {
|
2391
|
+
return typeof r != "boolean" ? new Error("Argument type: " + pe(r) + ". Please use a boolean.") : (Nr = !r, "adapter.js deprecation warnings " + (r ? "disabled" : "enabled"));
|
2390
2392
|
}
|
2391
|
-
function
|
2393
|
+
function ai() {
|
2392
2394
|
if ((typeof window > "u" ? "undefined" : pe(window)) === "object") {
|
2393
|
-
if (
|
2395
|
+
if (Hr)
|
2394
2396
|
return;
|
2395
2397
|
typeof console < "u" && typeof console.log == "function" && console.log.apply(console, arguments);
|
2396
2398
|
}
|
2397
2399
|
}
|
2398
|
-
function
|
2399
|
-
|
2400
|
+
function oi(r, i) {
|
2401
|
+
Nr && console.warn(r + " is deprecated, please use " + i + " instead.");
|
2400
2402
|
}
|
2401
|
-
function
|
2403
|
+
function ii(r) {
|
2402
2404
|
var i = {
|
2403
2405
|
browser: null,
|
2404
2406
|
version: null
|
@@ -2419,10 +2421,10 @@ function oi(r) {
|
|
2419
2421
|
function br(r) {
|
2420
2422
|
return Object.prototype.toString.call(r) === "[object Object]";
|
2421
2423
|
}
|
2422
|
-
function
|
2424
|
+
function Vr(r) {
|
2423
2425
|
return br(r) ? Object.keys(r).reduce(function(i, a) {
|
2424
|
-
var c = br(r[a]), f = c ?
|
2425
|
-
return f === void 0 || v ? i : Object.assign(i,
|
2426
|
+
var c = br(r[a]), f = c ? Vr(r[a]) : r[a], v = c && !Object.keys(f).length;
|
2427
|
+
return f === void 0 || v ? i : Object.assign(i, Ko({}, a, f));
|
2426
2428
|
}, {}) : r;
|
2427
2429
|
}
|
2428
2430
|
function st(r, i, a) {
|
@@ -2432,7 +2434,7 @@ function st(r, i, a) {
|
|
2432
2434
|
});
|
2433
2435
|
}));
|
2434
2436
|
}
|
2435
|
-
function
|
2437
|
+
function si(r, i, a) {
|
2436
2438
|
var c = a ? "outbound-rtp" : "inbound-rtp", f = /* @__PURE__ */ new Map();
|
2437
2439
|
if (i === null)
|
2438
2440
|
return f;
|
@@ -2445,24 +2447,24 @@ function ii(r, i, a) {
|
|
2445
2447
|
});
|
2446
2448
|
}), f;
|
2447
2449
|
}
|
2448
|
-
Object.defineProperty(
|
2450
|
+
Object.defineProperty(Lr, "__esModule", {
|
2449
2451
|
value: !0
|
2450
2452
|
});
|
2451
|
-
var
|
2452
|
-
function
|
2453
|
+
var ci = Lr.shimGetUserMedia = di, ui = li(Q);
|
2454
|
+
function Br(r) {
|
2453
2455
|
if (typeof WeakMap != "function")
|
2454
2456
|
return null;
|
2455
2457
|
var i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
|
2456
|
-
return (
|
2458
|
+
return (Br = function(c) {
|
2457
2459
|
return c ? a : i;
|
2458
2460
|
})(r);
|
2459
2461
|
}
|
2460
|
-
function
|
2462
|
+
function li(r, i) {
|
2461
2463
|
if (r && r.__esModule)
|
2462
2464
|
return r;
|
2463
2465
|
if (r === null || he(r) !== "object" && typeof r != "function")
|
2464
2466
|
return { default: r };
|
2465
|
-
var a =
|
2467
|
+
var a = Br(i);
|
2466
2468
|
if (a && a.has(r))
|
2467
2469
|
return a.get(r);
|
2468
2470
|
var c = {}, f = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
@@ -2481,8 +2483,8 @@ function he(r) {
|
|
2481
2483
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
2482
2484
|
}, he(r);
|
2483
2485
|
}
|
2484
|
-
var Cr =
|
2485
|
-
function
|
2486
|
+
var Cr = ui.log;
|
2487
|
+
function di(r, i) {
|
2486
2488
|
var a = r && r.navigator;
|
2487
2489
|
if (a.mediaDevices) {
|
2488
2490
|
var c = function(h) {
|
@@ -2592,25 +2594,25 @@ function li(r, i) {
|
|
2592
2594
|
}
|
2593
2595
|
}
|
2594
2596
|
}
|
2595
|
-
var
|
2596
|
-
Object.defineProperty(
|
2597
|
+
var zr = {};
|
2598
|
+
Object.defineProperty(zr, "__esModule", {
|
2597
2599
|
value: !0
|
2598
2600
|
});
|
2599
|
-
var
|
2600
|
-
function
|
2601
|
+
var fi = zr.shimGetUserMedia = vi, hi = pi(Q);
|
2602
|
+
function qr(r) {
|
2601
2603
|
if (typeof WeakMap != "function")
|
2602
2604
|
return null;
|
2603
2605
|
var i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
|
2604
|
-
return (
|
2606
|
+
return (qr = function(c) {
|
2605
2607
|
return c ? a : i;
|
2606
2608
|
})(r);
|
2607
2609
|
}
|
2608
|
-
function
|
2610
|
+
function pi(r, i) {
|
2609
2611
|
if (r && r.__esModule)
|
2610
2612
|
return r;
|
2611
2613
|
if (r === null || Pe(r) !== "object" && typeof r != "function")
|
2612
2614
|
return { default: r };
|
2613
|
-
var a =
|
2615
|
+
var a = qr(i);
|
2614
2616
|
if (a && a.has(r))
|
2615
2617
|
return a.get(r);
|
2616
2618
|
var c = {}, f = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
@@ -2629,10 +2631,10 @@ function Pe(r) {
|
|
2629
2631
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
2630
2632
|
}, Pe(r);
|
2631
2633
|
}
|
2632
|
-
function
|
2634
|
+
function vi(r, i) {
|
2633
2635
|
var a = r && r.navigator, c = r && r.MediaStreamTrack;
|
2634
2636
|
if (a.getUserMedia = function(h, w, T) {
|
2635
|
-
|
2637
|
+
hi.deprecated("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia"), a.mediaDevices.getUserMedia(h).then(w, T);
|
2636
2638
|
}, !(i.version > 55 && "autoGainControl" in a.mediaDevices.getSupportedConstraints())) {
|
2637
2639
|
var f = function(h, w, T) {
|
2638
2640
|
w in h && !(T in h) && (h[T] = h[w], delete h[w]);
|
@@ -2658,30 +2660,30 @@ var ne = {};
|
|
2658
2660
|
Object.defineProperty(ne, "__esModule", {
|
2659
2661
|
value: !0
|
2660
2662
|
});
|
2661
|
-
ne.shimAudioContext =
|
2662
|
-
ne.shimCallbacksAPI =
|
2663
|
+
ne.shimAudioContext = Pi;
|
2664
|
+
ne.shimCallbacksAPI = bi;
|
2663
2665
|
ne.shimConstraints = Yr;
|
2664
|
-
ne.shimCreateOfferLegacy =
|
2665
|
-
var
|
2666
|
-
ne.shimLocalStreamsAPI =
|
2667
|
-
ne.shimRTCIceServerUrls =
|
2668
|
-
ne.shimRemoteStreamsAPI =
|
2669
|
-
ne.shimTrackEventTransceiver =
|
2670
|
-
var
|
2671
|
-
function
|
2666
|
+
ne.shimCreateOfferLegacy = Si;
|
2667
|
+
var mi = ne.shimGetUserMedia = Ci;
|
2668
|
+
ne.shimLocalStreamsAPI = gi;
|
2669
|
+
ne.shimRTCIceServerUrls = Ti;
|
2670
|
+
ne.shimRemoteStreamsAPI = wi;
|
2671
|
+
ne.shimTrackEventTransceiver = $i;
|
2672
|
+
var Jr = yi(Q);
|
2673
|
+
function Gr(r) {
|
2672
2674
|
if (typeof WeakMap != "function")
|
2673
2675
|
return null;
|
2674
2676
|
var i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
|
2675
|
-
return (
|
2677
|
+
return (Gr = function(c) {
|
2676
2678
|
return c ? a : i;
|
2677
2679
|
})(r);
|
2678
2680
|
}
|
2679
|
-
function
|
2681
|
+
function yi(r, i) {
|
2680
2682
|
if (r && r.__esModule)
|
2681
2683
|
return r;
|
2682
2684
|
if (r === null || ve(r) !== "object" && typeof r != "function")
|
2683
2685
|
return { default: r };
|
2684
|
-
var a =
|
2686
|
+
var a = Gr(i);
|
2685
2687
|
if (a && a.has(r))
|
2686
2688
|
return a.get(r);
|
2687
2689
|
var c = {}, f = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
@@ -2700,7 +2702,7 @@ function ve(r) {
|
|
2700
2702
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
2701
2703
|
}, ve(r);
|
2702
2704
|
}
|
2703
|
-
function
|
2705
|
+
function gi(r) {
|
2704
2706
|
if (!(ve(r) !== "object" || !r.RTCPeerConnection)) {
|
2705
2707
|
if ("getLocalStreams" in r.RTCPeerConnection.prototype || (r.RTCPeerConnection.prototype.getLocalStreams = function() {
|
2706
2708
|
return this._localStreams || (this._localStreams = []), this._localStreams;
|
@@ -2735,7 +2737,7 @@ function yi(r) {
|
|
2735
2737
|
});
|
2736
2738
|
}
|
2737
2739
|
}
|
2738
|
-
function
|
2740
|
+
function wi(r) {
|
2739
2741
|
if (!(ve(r) !== "object" || !r.RTCPeerConnection) && ("getRemoteStreams" in r.RTCPeerConnection.prototype || (r.RTCPeerConnection.prototype.getRemoteStreams = function() {
|
2740
2742
|
return this._remoteStreams ? this._remoteStreams : [];
|
2741
2743
|
}), !("onaddstream" in r.RTCPeerConnection.prototype))) {
|
@@ -2771,7 +2773,7 @@ function gi(r) {
|
|
2771
2773
|
};
|
2772
2774
|
}
|
2773
2775
|
}
|
2774
|
-
function
|
2776
|
+
function bi(r) {
|
2775
2777
|
if (!(ve(r) !== "object" || !r.RTCPeerConnection)) {
|
2776
2778
|
var i = r.RTCPeerConnection.prototype, a = i.createOffer, c = i.createAnswer, f = i.setLocalDescription, v = i.setRemoteDescription, y = i.addIceCandidate;
|
2777
2779
|
i.createOffer = function(h, w) {
|
@@ -2794,7 +2796,7 @@ function wi(r) {
|
|
2794
2796
|
}, i.addIceCandidate = S;
|
2795
2797
|
}
|
2796
2798
|
}
|
2797
|
-
function
|
2799
|
+
function Ci(r) {
|
2798
2800
|
var i = r && r.navigator;
|
2799
2801
|
if (i.mediaDevices && i.mediaDevices.getUserMedia) {
|
2800
2802
|
var a = i.mediaDevices, c = a.getUserMedia.bind(a);
|
@@ -2808,17 +2810,17 @@ function bi(r) {
|
|
2808
2810
|
}
|
2809
2811
|
function Yr(r) {
|
2810
2812
|
return r && r.video !== void 0 ? Object.assign({}, r, {
|
2811
|
-
video:
|
2813
|
+
video: Jr.compactObject(r.video)
|
2812
2814
|
}) : r;
|
2813
2815
|
}
|
2814
|
-
function
|
2816
|
+
function Ti(r) {
|
2815
2817
|
if (r.RTCPeerConnection) {
|
2816
2818
|
var i = r.RTCPeerConnection;
|
2817
2819
|
r.RTCPeerConnection = function(a, c) {
|
2818
2820
|
if (a && a.iceServers) {
|
2819
2821
|
for (var f = [], v = 0; v < a.iceServers.length; v++) {
|
2820
2822
|
var y = a.iceServers[v];
|
2821
|
-
y.urls === void 0 && y.url ? (
|
2823
|
+
y.urls === void 0 && y.url ? (Jr.deprecated("RTCIceServer.url", "RTCIceServer.urls"), y = JSON.parse(JSON.stringify(y)), y.urls = y.url, delete y.url, f.push(y)) : f.push(a.iceServers[v]);
|
2822
2824
|
}
|
2823
2825
|
a.iceServers = f;
|
2824
2826
|
}
|
@@ -2830,7 +2832,7 @@ function Ci(r) {
|
|
2830
2832
|
});
|
2831
2833
|
}
|
2832
2834
|
}
|
2833
|
-
function
|
2835
|
+
function $i(r) {
|
2834
2836
|
ve(r) === "object" && r.RTCTrackEvent && "receiver" in r.RTCTrackEvent.prototype && !("transceiver" in r.RTCTrackEvent.prototype) && Object.defineProperty(r.RTCTrackEvent.prototype, "transceiver", {
|
2835
2837
|
get: function() {
|
2836
2838
|
return {
|
@@ -2839,7 +2841,7 @@ function Ti(r) {
|
|
2839
2841
|
}
|
2840
2842
|
});
|
2841
2843
|
}
|
2842
|
-
function
|
2844
|
+
function Si(r) {
|
2843
2845
|
var i = r.RTCPeerConnection.prototype.createOffer;
|
2844
2846
|
r.RTCPeerConnection.prototype.createOffer = function(a) {
|
2845
2847
|
if (a) {
|
@@ -2860,10 +2862,10 @@ function $i(r) {
|
|
2860
2862
|
return i.apply(this, arguments);
|
2861
2863
|
};
|
2862
2864
|
}
|
2863
|
-
function
|
2865
|
+
function Pi(r) {
|
2864
2866
|
ve(r) !== "object" || r.AudioContext || (r.AudioContext = r.webkitAudioContext);
|
2865
2867
|
}
|
2866
|
-
const
|
2868
|
+
const _i = (r) => {
|
2867
2869
|
let i = !1, a;
|
2868
2870
|
return (...c) => (i || (a = r(c), i = !0), a);
|
2869
2871
|
};
|
@@ -2871,36 +2873,42 @@ function ce(r, i) {
|
|
2871
2873
|
if (r === !1)
|
2872
2874
|
throw new Error(i ?? "assertion failure");
|
2873
2875
|
}
|
2874
|
-
|
2875
|
-
|
2876
|
+
function Tr(r) {
|
2877
|
+
throw new Error("this code should be unreachable");
|
2878
|
+
}
|
2879
|
+
const Ei = _i(() => {
|
2880
|
+
const r = Xo(window);
|
2876
2881
|
switch (r.browser) {
|
2877
2882
|
case "chrome":
|
2878
|
-
|
2883
|
+
ci(window, r);
|
2879
2884
|
break;
|
2880
2885
|
case "firefox":
|
2881
|
-
|
2886
|
+
fi(window, r);
|
2882
2887
|
break;
|
2883
2888
|
case "safari":
|
2884
|
-
|
2889
|
+
mi(window, r);
|
2885
2890
|
break;
|
2886
2891
|
default:
|
2887
|
-
throw new
|
2892
|
+
throw new Ur();
|
2888
2893
|
}
|
2889
2894
|
});
|
2890
2895
|
let _e = Promise.resolve({ type: "stop", data: {} });
|
2891
|
-
async function
|
2896
|
+
async function $r(r, i, a) {
|
2892
2897
|
var c, f, v;
|
2893
|
-
if (
|
2894
|
-
|
2898
|
+
if (console.debug(
|
2899
|
+
"[vue-qrcode-reader] starting camera with constraints: ",
|
2900
|
+
JSON.stringify(i)
|
2901
|
+
), window.isSecureContext !== !0)
|
2902
|
+
throw new Jo();
|
2895
2903
|
if (((c = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : c.getUserMedia) === void 0)
|
2896
|
-
throw new
|
2897
|
-
|
2904
|
+
throw new Ur();
|
2905
|
+
Ei(), console.debug("[vue-qrcode-reader] calling getUserMedia");
|
2898
2906
|
const y = await navigator.mediaDevices.getUserMedia({
|
2899
2907
|
audio: !1,
|
2900
2908
|
video: i
|
2901
2909
|
});
|
2902
|
-
r.srcObject !== void 0 ? r.srcObject = y : r.mozSrcObject !== void 0 ? r.mozSrcObject = y : window.URL.createObjectURL ? r.src = window.URL.createObjectURL(y) : window.webkitURL ? r.src = window.webkitURL.createObjectURL(y) : r.src = y.id, r.play(), await Promise.race([
|
2903
|
-
|
2910
|
+
r.srcObject !== void 0 ? r.srcObject = y : r.mozSrcObject !== void 0 ? r.mozSrcObject = y : window.URL.createObjectURL ? r.src = window.URL.createObjectURL(y) : window.webkitURL ? r.src = window.webkitURL.createObjectURL(y) : r.src = y.id, r.play(), console.debug("[vue-qrcode-reader] waiting for video element to load"), await Promise.race([
|
2911
|
+
Wr(r, "loadeddata"),
|
2904
2912
|
// On iOS devices in PWA mode, QrcodeStream works initially, but after
|
2905
2913
|
// killing and restarting the PWA, all video elements fail to load camera
|
2906
2914
|
// streams and never emit the `loadeddata` event. Looks like this is
|
@@ -2908,12 +2916,12 @@ async function Tr(r, i, a) {
|
|
2908
2916
|
// To at least detect this situation, we throw an error if the event
|
2909
2917
|
// has not been emitted after a 3 second timeout.
|
2910
2918
|
wr(3e3).then(() => {
|
2911
|
-
throw new
|
2919
|
+
throw new Go();
|
2912
2920
|
})
|
2913
|
-
]), await wr(500);
|
2921
|
+
]), console.debug("[vue-qrcode-reader] video element loaded"), await wr(500);
|
2914
2922
|
const [S] = y.getVideoTracks(), h = (v = (f = S == null ? void 0 : S.getCapabilities) == null ? void 0 : f.call(S)) != null ? v : {};
|
2915
2923
|
let w = !1;
|
2916
|
-
return a && h.torch && (await S.applyConstraints({ advanced: [{ torch: !0 }] }), w = !0), {
|
2924
|
+
return a && h.torch && (await S.applyConstraints({ advanced: [{ torch: !0 }] }), w = !0), console.debug("[vue-qrcode-reader] camera ready"), {
|
2917
2925
|
type: "start",
|
2918
2926
|
data: {
|
2919
2927
|
videoEl: r,
|
@@ -2924,7 +2932,7 @@ async function Tr(r, i, a) {
|
|
2924
2932
|
}
|
2925
2933
|
};
|
2926
2934
|
}
|
2927
|
-
async function
|
2935
|
+
async function Oi(r, {
|
2928
2936
|
constraints: i,
|
2929
2937
|
torch: a,
|
2930
2938
|
restart: c = !1
|
@@ -2939,19 +2947,24 @@ async function Ei(r, {
|
|
2939
2947
|
isTorchOn: w
|
2940
2948
|
}
|
2941
2949
|
} = v;
|
2942
|
-
return !c && r === y && i === h && a === w ? v :
|
2943
|
-
() =>
|
2950
|
+
return !c && r === y && i === h && a === w ? v : Qr(y, S, w).then(
|
2951
|
+
() => $r(r, i, a)
|
2944
2952
|
);
|
2945
|
-
}
|
2946
|
-
|
2947
|
-
|
2953
|
+
} else if (v.type === "stop" || v.type === "failed")
|
2954
|
+
return $r(r, i, a);
|
2955
|
+
Tr();
|
2956
|
+
}).catch((v) => (console.debug(`[vue-qrcode-reader] starting camera failed with "${v}"`), { type: "failed", error: v }));
|
2948
2957
|
const f = await _e;
|
2949
2958
|
if (f.type === "stop")
|
2950
2959
|
throw new Error("Something went wrong with the camera task queue (start task).");
|
2951
|
-
|
2952
|
-
|
2953
|
-
|
2954
|
-
|
2960
|
+
if (f.type === "failed")
|
2961
|
+
throw f.error;
|
2962
|
+
if (f.type === "start")
|
2963
|
+
return f.data.capabilities;
|
2964
|
+
Tr();
|
2965
|
+
}
|
2966
|
+
async function Qr(r, i, a) {
|
2967
|
+
console.debug("[vue-qrcode-reader] stopping camera"), r.src = "", r.srcObject = null, r.load(), await Wr(r, "error");
|
2955
2968
|
for (const c of i.getTracks())
|
2956
2969
|
a != null || await c.applyConstraints({ advanced: [{ torch: !1 }] }), i.removeTrack(c), c.stop();
|
2957
2970
|
return {
|
@@ -2961,16 +2974,16 @@ async function qr(r, i, a) {
|
|
2961
2974
|
}
|
2962
2975
|
async function at() {
|
2963
2976
|
if (_e = _e.then((r) => {
|
2964
|
-
if (r.type === "stop")
|
2977
|
+
if (r.type === "stop" || r.type === "failed")
|
2965
2978
|
return r;
|
2966
2979
|
const {
|
2967
2980
|
data: { videoEl: i, stream: a, isTorchOn: c }
|
2968
2981
|
} = r;
|
2969
|
-
return
|
2982
|
+
return Qr(i, a, c);
|
2970
2983
|
}), (await _e).type === "start")
|
2971
2984
|
throw new Error("Something went wrong with the camera task queue (stop task).");
|
2972
2985
|
}
|
2973
|
-
const
|
2986
|
+
const Ai = /* @__PURE__ */ co({
|
2974
2987
|
__name: "QrcodeStream",
|
2975
2988
|
props: {
|
2976
2989
|
// in this file: don't use `props.constraints` directly. Use `constraintsCached`.
|
@@ -3014,9 +3027,9 @@ const Mi = /* @__PURE__ */ so({
|
|
3014
3027
|
{ deep: !0 }
|
3015
3028
|
);
|
3016
3029
|
const y = we(), S = we(), h = we(), w = we(!1), T = we(!1);
|
3017
|
-
|
3030
|
+
uo(() => {
|
3018
3031
|
T.value = !0;
|
3019
|
-
}),
|
3032
|
+
}), lo(() => {
|
3020
3033
|
at();
|
3021
3034
|
});
|
3022
3035
|
const b = Rt(() => ({
|
@@ -3041,7 +3054,7 @@ const Mi = /* @__PURE__ */ so({
|
|
3041
3054
|
if (ce(le !== null, "if cavnas is defined, canvas 2d context should also be non-null"), R.shouldStream) {
|
3042
3055
|
at(), w.value = !1;
|
3043
3056
|
try {
|
3044
|
-
const ae = await
|
3057
|
+
const ae = await Oi(O, R);
|
3045
3058
|
T.value ? (w.value = !0, c("camera-on", ae)) : await at();
|
3046
3059
|
} catch (ae) {
|
3047
3060
|
c("error", ae);
|
@@ -3067,7 +3080,7 @@ const Mi = /* @__PURE__ */ so({
|
|
3067
3080
|
ce(
|
3068
3081
|
h.value !== void 0,
|
3069
3082
|
"shouldScan watcher should only be triggered when component is mounted. Thus video element is defined"
|
3070
|
-
),
|
3083
|
+
), Qo(h.value, {
|
3071
3084
|
detectHandler: (M) => c("detect", M),
|
3072
3085
|
formats: v.value,
|
3073
3086
|
locateHandler: x,
|
@@ -3140,22 +3153,22 @@ const Mi = /* @__PURE__ */ so({
|
|
3140
3153
|
visibility: "hidden",
|
3141
3154
|
position: "absolute"
|
3142
3155
|
});
|
3143
|
-
return (R, O) => (
|
3156
|
+
return (R, O) => (fo(), ho("div", { style: F }, [
|
3144
3157
|
nt("video", {
|
3145
3158
|
ref_key: "videoRef",
|
3146
3159
|
ref: h,
|
3147
|
-
style:
|
3160
|
+
style: po(ue.value),
|
3148
3161
|
autoplay: "",
|
3149
3162
|
muted: "",
|
3150
3163
|
playsinline: ""
|
3151
3164
|
}, null, 4),
|
3152
|
-
|
3165
|
+
vo(nt("canvas", {
|
3153
3166
|
id: "qrcode-stream-pause-frame",
|
3154
3167
|
ref_key: "pauseFrameRef",
|
3155
3168
|
ref: y,
|
3156
3169
|
style: z
|
3157
3170
|
}, null, 512), [
|
3158
|
-
[
|
3171
|
+
[mo, !j.value]
|
3159
3172
|
]),
|
3160
3173
|
nt("canvas", {
|
3161
3174
|
id: "qrcode-stream-tracking-layer",
|
@@ -3164,11 +3177,11 @@ const Mi = /* @__PURE__ */ so({
|
|
3164
3177
|
style: I
|
3165
3178
|
}, null, 512),
|
3166
3179
|
nt("div", { style: I }, [
|
3167
|
-
|
3180
|
+
yo(R.$slots, "default")
|
3168
3181
|
])
|
3169
3182
|
]));
|
3170
3183
|
}
|
3171
3184
|
});
|
3172
3185
|
export {
|
3173
|
-
|
3186
|
+
Ai as QrcodeStream
|
3174
3187
|
};
|