@ozdao/prometheus-framework 0.2.156 → 0.2.157
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_virtual/_commonjsHelpers.cjs +1 -1
- package/dist/_virtual/_commonjsHelpers.js +5 -3
- package/dist/_virtual/purify.cjs +1 -0
- package/dist/_virtual/purify.js +4 -0
- package/dist/builder.js +822 -0
- package/dist/builder.mjs +801 -0
- package/dist/{main-D_RRsfEH.mjs → main-Ba3SEUWZ.mjs} +1812 -1774
- package/dist/main-ldzk-jIP.js +92 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/dompurify/dist/purify.cjs +2 -0
- package/dist/node_modules/dompurify/dist/purify.js +531 -0
- package/dist/node_modules/isomorphic-dompurify/browser.cjs +1 -0
- package/dist/node_modules/isomorphic-dompurify/browser.js +7 -0
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/regex.cjs +1 -0
- package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/regex.js +4 -0
- package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/rng.cjs +1 -0
- package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/rng.js +9 -0
- package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/stringify.cjs +1 -0
- package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/stringify.js +13 -0
- package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/v4.cjs +1 -0
- package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/v4.js +10 -0
- package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/validate.cjs +1 -0
- package/dist/prometheus-framework/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +47 -30
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +9 -9
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +10 -10
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +34 -34
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +27 -27
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +58 -0
- 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 +11 -180
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +190 -0
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +9 -7
- 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 +48 -43
- 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 +1 -1
- 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 +41 -63
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- 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 +37 -36
- 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 +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 +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js +3 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +105 -53
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +92 -98
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Viewer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Viewer.vue.js +39 -0
- 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/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.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 +13 -12
- 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 +19 -19
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +7 -7
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +13 -15
- 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 +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 +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/orders.client.js +34 -33
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +14 -14
- 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/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +10 -10
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +13 -7
- 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 +18 -18
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +11 -11
- 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 +17 -17
- 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 +30 -30
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +9 -9
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/router/spots.js +4 -0
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +22 -22
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +17 -17
- 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 +4 -4
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{web-3rnOWrQO.mjs → web-CT2tGYho.mjs} +1 -1
- package/dist/{web-C04IcLk4.js → web-DWjMBTNi.js} +1 -1
- package/package.json +3 -2
- package/src/builder/builder.js +14 -0
- package/src/builder/modes/spa.dev.js +100 -0
- package/src/builder/modes/spa.prod.js +59 -0
- package/src/builder/modes/ssr.dev.js +184 -0
- package/src/builder/modes/ssr.prod.js +76 -0
- package/src/builder/ssr/ssr-render-html.js +57 -0
- package/src/builder/ssr/ssr-transform-webpack-stats.js +54 -0
- package/src/builder/templates/page.html +37 -0
- package/src/builder/templates/screen.html +33 -0
- package/src/builder/utils/hot-reload.js +5 -0
- package/src/builder/webpack/index.js +13 -0
- package/src/builder/webpack/webpack.config.base.js +127 -0
- package/src/builder/webpack/webpack.config.client.js +78 -0
- package/src/builder/webpack/webpack.config.server.js +31 -0
- package/src/builder/webpack/webpack.config.spa.js +80 -0
- package/src/builder/webpack/webpack.config.ssr.js +57 -0
- package/src/components/Breadcrumbs/Breadcrumbs.vue +39 -16
- package/src/components/Field/Field.vue +21 -2
- package/src/components/Popup/Popup.vue +1 -1
- package/src/modules/auth/store/auth.js +1 -2
- package/src/modules/backoffice/components/layouts/Backoffice.vue +36 -62
- package/src/modules/backoffice/components/pages/Dashboard.vue +2 -125
- package/src/modules/backoffice/components/partials/Sidebar.vue +176 -0
- package/src/modules/backoffice/router/admin.js +0 -15
- package/src/modules/backoffice/router/backoffice.js +5 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +6 -1
- package/src/modules/community/components/pages/BlogPost.vue +30 -67
- package/src/modules/community/components/sections/Comments.vue +1 -1
- package/src/modules/community/router/blogposts.js +4 -0
- package/src/modules/constructor/components/elements/Textarea.vue +197 -79
- package/src/modules/constructor/components/sections/Constructor.vue +19 -32
- package/src/modules/constructor/components/sections/Viewer.vue +53 -0
- package/src/modules/globals/components/layouts/Client.vue +21 -7
- package/src/modules/globals/components/layouts/Empty.vue +1 -6
- package/src/modules/globals/components/pages/404.vue +1 -1
- package/src/modules/globals/components/sections/SectionPageTitle.vue +2 -2
- package/src/modules/globals/mixins/mixins.js +129 -97
- package/src/modules/landing/router/landing.js +3 -0
- package/src/modules/marketplace/components/pages/Catalog.vue +1 -1
- package/src/modules/middlewares/client/auth.validation.js +14 -15
- package/src/modules/orders/orders.client.js +4 -2
- package/src/modules/organizations/router/organizations.js +9 -3
- package/src/modules/pages/controllers/factories/pages.factory.js +106 -0
- package/src/modules/pages/controllers/routes/pages.routes.js +24 -0
- package/src/modules/pages/models/page.model.js +18 -11
- package/src/modules/pages/pages.client.js +40 -0
- package/src/modules/pages/pages.server.js +32 -0
- package/src/modules/pages/views/components/blocks/CardPage.vue +123 -0
- package/src/modules/pages/views/components/pages/Page.vue +173 -0
- package/src/modules/pages/views/components/pages/PageEdit.vue +121 -0
- package/src/modules/pages/views/components/pages/Pages.vue +60 -0
- package/src/modules/pages/views/components/partials/SidebarPages.vue +112 -0
- package/src/modules/pages/views/router/pages.backoffice.router.js +46 -0
- package/src/modules/pages/views/router/pages.router.js +25 -0
- package/src/modules/pages/views/store/pages.js +78 -0
- package/src/modules/pages/views/store/pages.store.js +5 -0
- package/src/modules/products/controllers/leftovers.controller.js +1 -1
- package/src/modules/spots/router/spots.js +4 -0
- package/src/styles/base/all.scss +66 -53
- package/dist/index-BshfsiQG.js +0 -220
- package/dist/index-C-8xOJnM.mjs +0 -244
- package/dist/index-C-DW6ra2.js +0 -260
- package/dist/index-CDbtWkBj.js +0 -243
- package/dist/index-D4j29ivg.mjs +0 -261
- package/dist/index-DKtnWDNC.mjs +0 -221
- package/dist/index-DNI4aUP2.js +0 -259
- package/dist/index-Tcyehi73.mjs +0 -260
- package/dist/main-3Vn8SU2y.mjs +0 -14509
- package/dist/main-5IrI2IOV.js +0 -92
- package/dist/main-BFKp44Ze.mjs +0 -14509
- package/dist/main-BF_nMkug.js +0 -92
- package/dist/main-BHr0-Z3t.mjs +0 -14510
- package/dist/main-BY2OvGB9.mjs +0 -14509
- package/dist/main-Bcj0J6tP.mjs +0 -14509
- package/dist/main-Bq5YvSWe.mjs +0 -14509
- package/dist/main-BxHxhrZ_.js +0 -92
- package/dist/main-By5Tbyui.js +0 -92
- package/dist/main-CEoQQpJV.js +0 -92
- package/dist/main-CI9l9xMs.js +0 -92
- package/dist/main-Ckn0Sslr.js +0 -92
- package/dist/main-DBv451oC.js +0 -92
- package/dist/main-DPg58GOU.mjs +0 -14509
- package/dist/main-DTHFR7H_.mjs +0 -14510
- package/dist/main-DxyAONrm.mjs +0 -14438
- package/dist/main-gY_284gJ.js +0 -92
- package/dist/main-wXdocsbd.js +0 -92
- package/dist/middlewares.server.js +0 -19
- package/dist/middlewares.server.mjs +0 -20
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +0 -89
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +0 -95
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +0 -26
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +0 -57
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +0 -83
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +0 -127
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +0 -13
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +0 -77
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +0 -103
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +0 -36
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +0 -44
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +0 -125
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +0 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +0 -47
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +0 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +0 -46
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +0 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +0 -65
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +0 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -67
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +0 -30
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +0 -42
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +0 -26
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +0 -42
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +0 -1
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +0 -26
- package/dist/queryProcessor-g8208K6g.mjs +0 -178
- package/dist/queryProcessor-haY_gPGg.js +0 -177
- package/dist/web-5eyiz9L7.mjs +0 -54
- package/dist/web-BPUCAST-.mjs +0 -54
- package/dist/web-Be96Xqd4.mjs +0 -54
- package/dist/web-BmdKi_fZ.js +0 -1
- package/dist/web-Bqpk8Mpk.js +0 -1
- package/dist/web-BwHcRwYc.mjs +0 -54
- package/dist/web-BzUFKqzw.js +0 -1
- package/dist/web-CcFPvlkl.js +0 -1
- package/dist/web-CgjTW1bL.js +0 -1
- package/dist/web-Cw0ijzjY.js +0 -1
- package/dist/web-CwTWV4ca.mjs +0 -54
- package/dist/web-DHeZE1jJ.js +0 -1
- package/dist/web-DZUec7pP.js +0 -1
- package/dist/web-Dh669DqQ.mjs +0 -54
- package/dist/web-DkWpHYrh.mjs +0 -54
- package/dist/web-Dt2RCU54.js +0 -1
- package/dist/web-krQQeSb6.mjs +0 -54
- package/dist/web-nqFW_Sd1.mjs +0 -54
- package/src/modules/community/controllers/comments.controller.aggr.js +0 -280
- package/src/modules/community/controllers/comments.controller.populate.js +0 -180
- package/src/modules/constructor/components/elements/H2.vue +0 -102
- package/src/modules/pages/components/pages/Page.vue +0 -174
- package/src/modules/pages/components/pages/PageEdit.vue +0 -159
- package/src/modules/pages/components/pages/Pages.vue +0 -108
- package/src/modules/pages/controllers/pages.controller.js +0 -71
- package/src/modules/pages/router/pages.router.js +0 -15
- package/src/modules/pages/routes/pages.routes.js +0 -30
- package/src/modules/pages/store/pages.js +0 -94
package/dist/main-BxHxhrZ_.js
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
"use strict";const o=require("vue");function Fi(e,t,n,r){function a(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(u){try{d(r.next(u))}catch(f){i(f)}}function c(u){try{d(r.throw(u))}catch(f){i(f)}}function d(u){u.done?s(u.value):a(u.value).then(l,c)}d((r=r.apply(e,[])).next())})}function xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bi=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[a]))return!1;for(a=r;a--!==0;){var i=s[a];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},Vi=xi(Bi);const ao="__googleMapsScriptId";var St;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(St||(St={}));let Cr=class Et{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:a,id:s=ao,language:i,libraries:l=[],mapIds:c,nonce:d,region:u,retries:f=3,url:m="https://maps.googleapis.com/maps/api/js",version:$}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=a,this.id=s||ao,this.language=i,this.libraries=l,this.mapIds=c,this.nonce=d,this.region=u,this.retries=f,this.url=m,this.version=$,Et.instance){if(!Vi(this.options,Et.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Et.instance.options)}`);return Et.instance}Et.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?St.FAILURE:this.done?St.SUCCESS:this.loading?St.LOADING:St.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(r=>{r?n(r.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,n;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(s=>!r[s]&&delete r[s]),!((n=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.maps)===null||n===void 0)&&n.importLibrary||(s=>{let i,l,c,d="The Google Maps JavaScript API",u="google",f="importLibrary",m="__ib__",$=document,h=window;h=h[u]||(h[u]={});const g=h.maps||(h.maps={}),C=new Set,y=new URLSearchParams,E=()=>i||(i=new Promise((p,_)=>Fi(this,void 0,void 0,function*(){var w;yield l=$.createElement("script"),l.id=this.id,y.set("libraries",[...C]+"");for(c in s)y.set(c.replace(/[A-Z]/g,N=>"_"+N[0].toLowerCase()),s[c]);y.set("callback",u+".maps."+m),l.src=this.url+"?"+y,g[m]=p,l.onerror=()=>i=_(Error(d+" could not load.")),l.nonce=this.nonce||((w=$.querySelector("script[nonce]"))===null||w===void 0?void 0:w.nonce)||"",$.head.append(l)})));g[f]?console.warn(d+" only loads once. Ignoring:",s):g[f]=(p,..._)=>C.add(p)&&E().then(()=>g[f](p,..._))})(r);const a=this.libraries.map(s=>this.importLibrary(s));a.length||a.push(this.importLibrary("core")),Promise.all(a).then(()=>this.callback(),s=>{const i=new ErrorEvent("error",{error:s});this.loadErrorCallback(i)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}};const Ui={key:0,class:"t-transp mn-r-small"},ji=["placeholder","value"],Hi={key:0,class:"mn-t-thin invalid-feedback"},xa={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},locale:{type:String,default:"en"}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(null);let s;const i=()=>{const l=s.getPlace();if(!l.geometry||!l.address_components)return;let c="",d="",u="";for(let $=0;$<l.address_components.length;$++){let h=l.address_components[$];h.types.includes("country")&&(c=h.long_name),h.types.includes("administrative_area_level_1")&&(d=h.long_name),h.types.includes("locality")&&(u=h.long_name)}const f=l.formatted_address,m={lat:l.geometry.location.lat(),lng:l.geometry.location.lng()};r("update:address",f),r("update:location",m),r("update:country",c),r("update:state",d),r("update:city",u)};return o.onMounted(()=>{new Cr({apiKey:n.apiKey,version:"weekly",libraries:["places"],language:n.locale}).load().then(()=>{s=new google.maps.places.Autocomplete(a.value),s.addListener("place_changed",i)}).catch(c=>{console.error(c)})}),(l,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([l.$attrs.class,"flex-nowrap flex"])},[e.label?(o.openBlock(),o.createElementBlock("div",Ui,[o.createElementVNode("span",null,o.toDisplayString(e.label),1)])):o.createCommentVNode("",!0),o.createElementVNode("input",{ref_key:"addressInput",ref:a,class:"w-100",placeholder:e.placeholder,value:e.address,onInput:c[0]||(c[0]=(...d)=>l.onInput&&l.onInput(...d))},null,40,ji),o.createVNode(o.Transition,{mode:"out-in",name:"fade"},{default:o.withCtx(()=>[l.validation?(o.openBlock(),o.createElementBlock("div",Hi," * "+o.toDisplayString(l.validation.message),1)):o.createCommentVNode("",!0)]),_:1})],2))}},Gi=Object.freeze(Object.defineProperty({__proto__:null,default:xa},Symbol.toStringTag,{value:"Module"})),qe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Wi={props:{progress:{type:Number,default:null},status:{type:String,default:null}}},Ki={class:"circular-loader"},zi=o.createElementVNode("svg",{viewBox:"25 25 50 50"},[o.createElementVNode("circle",{class:"circular-loader-fill",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"}),o.createElementVNode("circle",{class:"circular-loader-circle",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})],-1),Yi={key:0,class:"progress-text"},qi={key:1,class:"uppercase t-semi w-m-10r status-text"};function Xi(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("div",Ki,[zi,n.progress?(o.openBlock(),o.createElementBlock("div",Yi,o.toDisplayString(n.progress),1)):o.createCommentVNode("",!0),n.status?(o.openBlock(),o.createElementBlock("div",qi,o.toDisplayString(n.status),1)):o.createCommentVNode("",!0)])}const qt=qe(Wi,[["render",Xi]]),Ji=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"})),Zi=["disabled"],Qi={key:0},el={key:1},tl={key:2,class:"t-semi loading t-black"},nl={key:3,class:"error"},rl={key:0,class:"button-counter"},Ba={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},text:{type:Object,default:e=>(console.log(e),e={...e.text,success:"✔",error:"✖"})},counter:{type:Object},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},emits:["error"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(null),s=o.ref(null),i=o.ref(!1),l=o.ref(!1);async function c(){a.value.style["pointer-events"]="none",s.value=null,i.value=!0;const d=()=>{a.value&&(a.value.classList.replace("bg-second","bg-main"),a.value.style.pointerEvents="auto",i.value=!1,l.value=!1,s.value=null)};try{await n.submit(),a.value.classList.replace("bg-main","bg-second"),i.value=!1,n.showSucces?(l.value=!0,setTimeout(d,500)):d(),n.callback&&setTimeout(()=>n.callback(),n.callbackDelay)}catch(u){r("error",u),a.value.classList.replace("bg-main","bg-fourth-nano"),s.value=n.error,setTimeout(()=>{d(),a.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(d,u)=>(o.openBlock(),o.createElementBlock("button",{onClick:o.withModifiers(c,["stop"]),disabled:e.validation,ref_key:"button",ref:a,class:"button"},[o.createVNode(o.Transition,{name:"FromTop"},{default:o.withCtx(()=>[!i.value&&!s.value&&!l.value||!e.showLoader?(o.openBlock(),o.createElementBlock("span",Qi,[o.renderSlot(d.$slots,"default")])):i.value&&!s.value&&e.showLoader?(o.openBlock(),o.createElementBlock("span",el,[o.createVNode(qt,{class:"pos-relative pos-t-0 pos-l-0 loading"})])):l.value&&e.showSucces?(o.openBlock(),o.createElementBlock("span",tl,o.toDisplayString(e.text.success),1)):s.value?(o.openBlock(),o.createElementBlock("span",nl,o.toDisplayString(s.value),1)):o.createCommentVNode("",!0)]),_:3}),e.counter?(o.openBlock(),o.createElementBlock("p",rl,o.toDisplayString(e.counter),1)):o.createCommentVNode("",!0)],8,Zi))}},ol=Object.freeze(Object.defineProperty({__proto__:null,default:Ba},Symbol.toStringTag,{value:"Module"})),al={class:"flex-v-center flex-nowrap flex"},sl={key:0,class:"mn-r-auto t-transp mn-r-small"},il=["name","value","checked"],vn={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]},theme:{type:String,default:"light"}},emits:["update:radio"],setup(e,{emit:t}){const n=e,r=t,a=s=>{if(Array.isArray(n.radio)){let i=[...n.radio];if(s.target.checked)i.push(n.value);else{const l=i.indexOf(n.value);l!==-1&&i.splice(l,1)}r("update:radio",i)}else typeof n.radio=="boolean"&&r("update:radio",s.target.checked)};return(s,i)=>(o.openBlock(),o.createElementBlock("label",al,[e.label?(o.openBlock(),o.createElementBlock("div",sl,[o.createElementVNode("span",null,o.toDisplayString(e.label),1)])):o.createCommentVNode("",!0),o.createElementVNode("input",{onChange:a,class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:Array.isArray(e.radio)?e.radio.includes(e.value):e.radio},null,40,il),o.createElementVNode("div",{class:o.normalizeClass(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra",{"bg-dark":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio)&&e.theme==="dark","bg-light":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio)&&e.theme==="light","bg-main":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},[o.createElementVNode("div",{class:o.normalizeClass(["transition-linear w-1r h-1r radius-extra h-100 bg-white",{"mn-r-auto":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"mn-l-auto":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},null,2)],2)]))}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:vn},Symbol.toStringTag,{value:"Module"})),yn={beforeMount(e,t,n){var r;if(typeof t.value!="function"){let a=`[Vue-click-outside:] provided expression ${t.expression} is not a function, but has to be`;const s=(r=n.component)==null?void 0:r.name;s&&(a+=` Found in component ${s}`),console.warn(a)}e.clickOutsideEvent=function(a){e===a.target||e.contains(a.target)||t.value(a)},document.addEventListener("click",e.clickOutsideEvent,!0)},unmounted(e){document.removeEventListener("click",e.clickOutsideEvent,!0)}},cl={key:0,class:"w-100 h-100 flex-center flex"},dl={key:1},ln={__name:"Dropdown",props:{label:{type:[String,Object],default:"Open"},align:{type:String,default:"left"}},setup(e){let t=yn;const n=e,r=o.ref(!1),a=o.computed(()=>typeof n.label=="object");function s(){r.value=!1}return(i,l)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:"dropdown pos-relative",onClick:l[0]||(l[0]=o.withModifiers(c=>r.value=!r.value,["stop"]))},[a.value?(o.openBlock(),o.createElementBlock("div",cl,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.label.component),o.mergeProps(e.label.props,{class:e.label.class}),null,16,["class"]))])):(o.openBlock(),o.createElementBlock("div",dl,o.toDisplayString(e.label),1)),o.createVNode(o.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{style:o.normalizeStyle({left:e.align==="left"?"0":"auto",right:e.align==="right"?"0":"auto"}),class:"dropdown-content radius-big"},[o.renderSlot(i.$slots,"default")],4),[[o.vShow,r.value]])]),_:3})])),[[o.unref(t),s]])}},ul=Object.freeze(Object.defineProperty({__proto__:null,default:ln},Symbol.toStringTag,{value:"Module"})),fl={class:"error-wrapper"},ml={class:"error-card"},Va={__name:"Error",props:{error:Object},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",fl,[o.createElementVNode("div",ml,[o.createElementVNode("p",null,"Ошибка "+o.toDisplayString(e.error.status),1)])]))}},pl=Object.freeze(Object.defineProperty({__proto__:null,default:Va},Symbol.toStringTag,{value:"Module"})),hl={key:0,class:"t-transp mn-r-small"},gl={class:"w-100"},$l=["type","value","placeholder","tabindex","disabled"],vl=["value","placeholder","tabindex","disabled"],yl={key:1,class:"t-transp mn-l-small"},_l={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},_n={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,value:null,validation:!1,disabled:null,tabindex:-1},emits:["update:field","focus","blur"],setup(e,{emit:t}){const n=t,r=e;r.value&&n("update:field",r.value);const a=o.ref(r.field);return(s,i)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{class:o.normalizeClass([[s.$attrs.class,{"bg-fourth-nano":e.validation}],"flex-center flex-nowrap flex"])},[e.label?(o.openBlock(),o.createElementBlock("div",hl,[o.createElementVNode("span",null,o.toDisplayString(e.label),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",gl,[e.type!=="textarea"?(o.openBlock(),o.createElementBlock("input",{key:0,onInput:i[0]||(i[0]=l=>a.value=n("update:field",l.target.value)),onFocus:i[1]||(i[1]=l=>n("focus",l)),onBlur:i[2]||(i[2]=l=>n("blur",l)),type:e.type,class:"w-100",value:e.field,placeholder:e.placeholder,tabindex:e.tabindex,disabled:e.disabled},null,40,$l)):(o.openBlock(),o.createElementBlock("textarea",{key:1,onInput:i[3]||(i[3]=l=>a.value=n("update:field",l.target.value)),onFocus:i[4]||(i[4]=l=>n("focus",l)),onBlur:i[5]||(i[5]=l=>n("blur",l)),class:"w-100",style:{resize:"vertical"},value:e.field,placeholder:e.placeholder,tabindex:e.tabindex,disabled:e.disabled},null,40,vl))]),o.renderSlot(s.$slots,"default"),e.symbol?(o.openBlock(),o.createElementBlock("div",yl,[o.createElementVNode("span",null,o.toDisplayString(e.symbol),1)])):o.createCommentVNode("",!0)],2),o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[e.validation?(o.openBlock(),o.createElementBlock("div",_l," * "+o.toDisplayString(e.validation.message),1)):o.createCommentVNode("",!0)]),_:1})],64))}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:_n},Symbol.toStringTag,{value:"Module"})),El={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:1[3-79]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","2[0-24-9]\\d{8}|[78]\\d{10,13}|[7-9]\\d{9}|[1-9]\\d{7}|[124-7]\\d{6}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-6]|7(?:0[0-689]|[1-79])|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Cl(e,t){var n=Array.prototype.slice.call(t);return n.push(El),e.apply(this,n)}function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function Sl(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Nl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ol(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bt(e,t)}function Tl(e){var t=ja();return function(){var r=Vt(e),a;if(t){var s=Vt(this).constructor;a=Reflect.construct(r,arguments,s)}else a=r.apply(this,arguments);return wl(this,a)}}function wl(e,t){if(t&&(qn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ua(e)}function Ua(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xn(e){var t=typeof Map=="function"?new Map:void 0;return Xn=function(r){if(r===null||!kl(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return tn(r,arguments,Vt(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Bt(a,r)},Xn(e)}function tn(e,t,n){return ja()?tn=Reflect.construct:tn=function(a,s,i){var l=[null];l.push.apply(l,s);var c=Function.bind.apply(a,l),d=new c;return i&&Bt(d,i.prototype),d},tn.apply(null,arguments)}function ja(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Bt(e,t){return Bt=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},Bt(e,t)}function Vt(e){return Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vt(e)}var tt=function(e){Ol(n,e);var t=Tl(n);function n(r){var a;return Nl(this,n),a=t.call(this,r),Object.setPrototypeOf(Ua(a),n.prototype),a.name=a.constructor.name,a}return Sl(n)}(Xn(Error)),Sr=2,Ll=17,Il=3,We="0-90-9٠-٩۰-۹",Pl="-‐-―−ー-",Al="//",Dl="..",Rl=" ",Ml="()()[]\\[\\]",Fl="~⁓∼~",cn="".concat(Pl).concat(Al).concat(Dl).concat(Rl).concat(Ml).concat(Fl),Nr="++";function so(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),a=0;a<3;a++){var s=Number(n[a]),i=Number(r[a]);if(s>i)return 1;if(i>s)return-1;if(!isNaN(s)&&isNaN(i))return 1;if(isNaN(s)&&!isNaN(i))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var xl={}.constructor;function nn(e){return e!=null&&e.constructor===xl}function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function En(e,t,n){return t&&Bl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Vl="1.2.0",Ul="1.7.35",io=" ext. ",jl=/^\d+$/,Pe=function(){function e(t){bn(this,e),Kl(t),this.metadata=t,Ha.call(this,t)}return En(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&jl.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new lo(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new lo(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var a=this.nonGeographic()[n];if(a)return a}else{var s=this.countryCallingCodes()[n];if(s&&s.length===1&&s[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),e}(),lo=function(){function e(t,n){bn(this,e),this.globalMetadataObject=n,this.metadata=t,Ha.call(this,n.metadata)}return En(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(a){return new Hl(a,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&co(this.types(),n))return new Wl(co(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?io:this.metadata[13]||io}}]),e}(),Hl=function(){function e(t,n){bn(this,e),this._format=t,this.metadata=n}return En(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!Gl.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),Gl=/^\(?\$1\)?$/,Wl=function(){function e(t,n){bn(this,e),this.type=t,this.metadata=n}return En(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function co(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Kl(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!nn(e)||!nn(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(nn(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+zl(e)+": "+e,"."))}var zl=function(t){return Jn(t)};function Or(e,t){if(t=new Pe(t),t.hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Yl(e,t){return t.countries.hasOwnProperty(e)}function Ha(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?so(t,Vl)===-1?this.v2=!0:so(t,Ul)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var ql=";ext=",_t=function(t){return"([".concat(We,"]{1,").concat(t,"})")};function Ga(e){var t="20",n="15",r="9",a="6",s="[ \\t,]*",i="[:\\..]?[ \\t,-]*",l="#?",c="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",u="[- ]+",f="[ \\t]*",m="(?:,{2}|;)",$=ql+_t(t),h=s+c+i+_t(t)+l,g=s+d+i+_t(r)+l,C=u+_t(a)+"#",y=f+m+i+_t(n)+l,E=f+"(?:,)+"+i+_t(r)+l;return $+"|"+h+"|"+g+"|"+C+"|"+y+"|"+E}var Xl="["+We+"]{"+Sr+"}",Jl="["+Nr+"]{0,1}(?:["+cn+"]*["+We+"]){3,}["+cn+We+"]*",Zl=new RegExp("^["+Nr+"]{0,1}(?:["+cn+"]*["+We+"]){1,2}$","i"),Ql=Jl+"(?:"+Ga()+")?",ec=new RegExp("^"+Xl+"$|^"+Ql+"$","i");function tc(e){return e.length>=Sr&&ec.test(e)}function nc(e){return Zl.test(e)}var uo=new RegExp("(?:"+Ga()+")$","i");function rc(e){var t=e.search(uo);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(uo),a=1;a<r.length;){if(r[a])return{number:n,ext:r[a]};a++}}var oc={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function ac(e){return oc[e]}function sc(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=ic(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ic(e,t){if(e){if(typeof e=="string")return fo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fo(e,t)}}function fo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mo(e){for(var t="",n=sc(e.split("")),r;!(r=n()).done;){var a=r.value;t+=lc(a,t)||""}return t}function lc(e,t,n){return e==="+"?t?void 0:"+":ac(e)}function Tr(e,t){return cc(e,void 0,t)}function cc(e,t,n){var r=n.type(t),a=r&&r.possibleLengths()||n.possibleLengths();if(!a)return"IS_POSSIBLE";var s=e.length,i=a[0];return i===s?"IS_POSSIBLE":i>s?"TOO_SHORT":a[a.length-1]<s?"TOO_LONG":a.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function dc(e,t,n){if(t===void 0&&(t={}),n=new Pe(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return Wa(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Wa(e,t){switch(Tr(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function rt(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function uc(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=fc(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fc(e,t){if(e){if(typeof e=="string")return po(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return po(e,t)}}function po(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mc=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function wr(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new Pe(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(rt(r,n.nationalNumberPattern())){if(Rn(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||Rn(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=uc(mc),s;!(s=a()).done;){var i=s.value;if(Rn(r,i,n))return i}}}}function Rn(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:rt(e,t.pattern())}function pc(e,t,n){if(t=t||{},n=new Pe(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return wr(e,t,n.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return rt(r,n.nationalNumberPattern())}function hc(e,t,n){var r=new Pe(n),a=r.getCountryCodesForCallingCode(e);return a?a.filter(function(s){return gc(t,s,n)}):[]}function gc(e,t,n){var r=new Pe(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}function $c(e){return e.replace(new RegExp("[".concat(cn,"]+"),"g")," ").trim()}var vc=/(\$\d)/;function yc(e,t,n){var r=n.useInternationalFormat,a=n.withNationalPrefix,s=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(vc,t.nationalPrefixFormattingRule()):t.format());return r?$c(s):s}var _c=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function bc(e,t,n){var r=new Pe(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(_c.test(r.IDDPrefix()))return r.IDDPrefix()}function Ec(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function Cc(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Sc(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sc(e,t){if(e){if(typeof e=="string")return ho(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ho(e,t)}}function ho(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?go(Object(n),!0).forEach(function(r){Nc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vo={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function Oc(e,t,n,r){if(n?n=$o($o({},vo),n):n=vo,r=new Pe(r),e.country&&e.country!=="001"){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=r.countryCallingCode(),s=n.v2?e.nationalNumber:e.phone,i;switch(t){case"NATIONAL":return s?(i=dn(s,e.carrierCode,"NATIONAL",r,n),Mn(i,e.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return s?(i=dn(s,null,"INTERNATIONAL",r,n),i="+".concat(a," ").concat(i),Mn(i,e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(s);case"RFC3966":return Ec({number:"+".concat(a).concat(s),ext:e.ext});case"IDD":if(!n.fromCountry)return;var l=wc(s,e.carrierCode,a,n.fromCountry,r);return Mn(l,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function dn(e,t,n,r,a){var s=Tc(r.formats(),e);return s?yc(e,s,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(s.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function Tc(e,t){for(var n=Cc(e),r;!(r=n()).done;){var a=r.value;if(a.leadingDigitsPatterns().length>0){var s=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(t.search(s)!==0)continue}if(rt(t,a.pattern()))return a}}function Mn(e,t,n,r){return t?r(e,t,n):e}function wc(e,t,n,r,a){var s=Or(r,a.metadata);if(s===n){var i=dn(e,t,"NATIONAL",a);return n==="1"?n+" "+i:i}var l=bc(r,void 0,a.metadata);if(l)return"".concat(l," ").concat(n," ").concat(dn(e,null,"INTERNATIONAL",a))}function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yo(Object(n),!0).forEach(function(r){kc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pc(e,t,n){return t&&Ic(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ac=function(){function e(t,n,r){if(Lc(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!r)throw new TypeError("`metadata` not passed");var a=Rc(t,r),s=a.country,i=a.countryCallingCode;this.country=s,this.countryCallingCode=i,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Pc(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:hc(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return dc(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return pc(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Pe(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return wr(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return Oc(this,n,r?_o(_o({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}]),e}(),Dc=function(t){return/^[A-Z]{2}$/.test(t)};function Rc(e,t){var n,r,a=new Pe(t);return Dc(e)?(n=e,a.selectNumberingPlan(n),r=a.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}var Mc=new RegExp("(["+We+"])");function Fc(e,t,n,r){if(t){var a=new Pe(r);a.selectNumberingPlan(t,n);var s=new RegExp(a.IDDPrefix());if(e.search(s)===0){e=e.slice(e.match(s)[0].length);var i=e.match(Mc);if(!(i&&i[1]!=null&&i[1].length>0&&i[1]==="0"))return e}}}function xc(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var a,s,i=r.length-1,l=i>0&&r[i];if(t.nationalPrefixTransformRule()&&l)a=e.replace(n,t.nationalPrefixTransformRule()),i>1&&(s=r[1]);else{var c=r[0];a=e.slice(c.length),l&&(s=r[1])}var d;if(l){var u=e.indexOf(r[1]),f=e.slice(0,u);f===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:a,nationalPrefix:d,carrierCode:s}}}return{nationalNumber:e}}function Zn(e,t){var n=xc(e,t),r=n.carrierCode,a=n.nationalNumber;if(a!==e){if(!Bc(e,a,t))return{nationalNumber:e};if(t.possibleLengths()&&!Vc(a,t))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:r}}function Bc(e,t,n){return!(rt(e,n.nationalNumberPattern())&&!rt(t,n.nationalNumberPattern()))}function Vc(e,t){switch(Tr(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Uc(e,t,n,r){var a=t?Or(t,r):n;if(e.indexOf(a)===0){r=new Pe(r),r.selectNumberingPlan(t,n);var s=e.slice(a.length),i=Zn(s,r),l=i.nationalNumber,c=Zn(e,r),d=c.nationalNumber;if(!rt(d,r.nationalNumberPattern())&&rt(l,r.nationalNumberPattern())||Tr(d,r)==="TOO_LONG")return{countryCallingCode:a,number:s}}return{number:e}}function jc(e,t,n,r){if(!e)return{};var a;if(e[0]!=="+"){var s=Fc(e,t,n,r);if(s&&s!==e)a=!0,e="+"+s;else{if(t||n){var i=Uc(e,t,n,r),l=i.countryCallingCode,c=i.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:c}}return{number:e}}}if(e[1]==="0")return{};r=new Pe(r);for(var d=2;d-1<=Il&&d<=e.length;){var u=e.slice(1,d);if(r.hasCallingCode(u))return r.selectNumberingPlan(u),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(d)};d++}return{}}function Hc(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Gc(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
5
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gc(e,t){if(e){if(typeof e=="string")return bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bo(e,t)}}function bo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wc(e,t){var n=t.countries,r=t.defaultCountry,a=t.metadata;a=new Pe(a);for(var s=[],i=Hc(n),l;!(l=i()).done;){var c=l.value;if(a.country(c),a.leadingDigits()){if(e&&e.search(a.leadingDigits())===0)return c}else if(wr({phone:e,country:c},void 0,a.metadata))if(r){if(c===r)return c;s.push(c)}else return c}if(s.length>0)return s[0]}function Kc(e,t){var n=t.nationalNumber,r=t.defaultCountry,a=t.metadata,s=a.getCountryCodesForCallingCode(e);if(s)return s.length===1?s[0]:Wc(n,{countries:s,defaultCountry:r,metadata:a.metadata})}var Ka="+",zc="[\\-\\.\\(\\)]?",Eo="(["+We+"]|"+zc+")",Yc="^\\"+Ka+Eo+"*["+We+"]"+Eo+"*$",qc=new RegExp(Yc,"g"),Qn=We,Xc="["+Qn+"]+((\\-)*["+Qn+"])*",Jc="a-zA-Z",Zc="["+Jc+"]+((\\-)*["+Qn+"])*",Qc="^("+Xc+"\\.)*"+Zc+"\\.?$",ed=new RegExp(Qc,"g"),Co="tel:",er=";phone-context=",td=";isub=";function nd(e){var t=e.indexOf(er);if(t<0)return null;var n=t+er.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function rd(e){return e===null?!0:e.length===0?!1:qc.test(e)||ed.test(e)}function od(e,t){var n=t.extractFormattedPhoneNumber,r=nd(e);if(!rd(r))throw new tt("NOT_A_NUMBER");var a;if(r===null)a=n(e)||"";else{a="",r.charAt(0)===Ka&&(a+=r);var s=e.indexOf(Co),i;s>=0?i=s+Co.length:i=0;var l=e.indexOf(er);a+=e.substring(i,l)}var c=a.indexOf(td);if(c>0&&(a=a.substring(0,c)),a!=="")return a}var ad=250,sd=new RegExp("["+Nr+We+"]"),id=new RegExp("[^"+We+"#]+$");function ld(e,t,n){if(t=t||{},n=new Pe(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new tt("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=dd(e,t.v2,t.extract),a=r.number,s=r.ext,i=r.error;if(!a){if(t.v2)throw i==="TOO_SHORT"?new tt("TOO_SHORT"):new tt("NOT_A_NUMBER");return{}}var l=fd(a,t.defaultCountry,t.defaultCallingCode,n),c=l.country,d=l.nationalNumber,u=l.countryCallingCode,f=l.countryCallingCodeSource,m=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new tt("INVALID_COUNTRY");return{}}if(!d||d.length<Sr){if(t.v2)throw new tt("TOO_SHORT");return{}}if(d.length>Ll){if(t.v2)throw new tt("TOO_LONG");return{}}if(t.v2){var $=new Ac(u,d,n.metadata);return c&&($.country=c),m&&($.carrierCode=m),s&&($.ext=s),$.__countryCallingCodeSource=f,$}var h=(t.extended?n.hasSelectedNumberingPlan():c)?rt(d,n.nationalNumberPattern()):!1;return t.extended?{country:c,countryCallingCode:u,carrierCode:m,valid:h,possible:h?!0:!!(t.extended===!0&&n.possibleLengths()&&Wa(d,n)),phone:d,ext:s}:h?ud(c,d,s):{}}function cd(e,t,n){if(e){if(e.length>ad){if(n)throw new tt("TOO_LONG");return}if(t===!1)return e;var r=e.search(sd);if(!(r<0))return e.slice(r).replace(id,"")}}function dd(e,t,n){var r=od(e,{extractFormattedPhoneNumber:function(i){return cd(i,n,t)}});if(!r)return{};if(!tc(r))return nc(r)?{error:"TOO_SHORT"}:{};var a=rc(r);return a.ext?a:{number:r}}function ud(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function fd(e,t,n,r){var a=jc(mo(e),t,n,r.metadata),s=a.countryCallingCodeSource,i=a.countryCallingCode,l=a.number,c;if(i)r.selectNumberingPlan(i);else if(l&&(t||n))r.selectNumberingPlan(t,n),t&&(c=t),i=n||Or(t,r.metadata);else return{};if(!l)return{countryCallingCodeSource:s,countryCallingCode:i};var d=Zn(mo(l),r),u=d.nationalNumber,f=d.carrierCode,m=Kc(i,{nationalNumber:u,defaultCountry:t,metadata:r});return m&&(c=m,m==="001"||r.country(c)),{country:c,countryCallingCode:i,countryCallingCodeSource:s,nationalNumber:u,carrierCode:f}}function So(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?So(Object(n),!0).forEach(function(r){md(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function md(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pd(e,t,n){return ld(e,No(No({},t),{},{v2:!0}),n)}function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Oo(Object(n),!0).forEach(function(r){gd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $d(e,t){return bd(e)||_d(e,t)||yd(e,t)||vd()}function vd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yd(e,t){if(e){if(typeof e=="string")return To(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return To(e,t)}}function To(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _d(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,s=!1,i,l;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));a=!0);}catch(c){s=!0,l=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(s)throw l}}return r}}function bd(e){if(Array.isArray(e))return e}function Ed(e){var t=Array.prototype.slice.call(e),n=$d(t,4),r=n[0],a=n[1],s=n[2],i=n[3],l,c,d;if(typeof r=="string")l=r;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")i?(c=s,d=i):(c=void 0,d=s),a&&(c=hd({defaultCountry:a},c));else if(nn(a))s?(c=a,d=s):d=a;else throw new Error("Invalid second argument: ".concat(a));return{text:l,options:c,metadata:d}}function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wo(Object(n),!0).forEach(function(r){Cd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sd(e,t,n){t&&t.defaultCountry&&!Yl(t.defaultCountry,n)&&(t=ko(ko({},t),{},{defaultCountry:void 0}));try{return pd(e,t,n)}catch(r){if(!(r instanceof tt))throw r}}function Nd(){var e=Ed(arguments),t=e.text,n=e.options,r=e.metadata;return Sd(t,n,r)}function Fn(){return Cl(Nd,arguments)}const Od=[["افغانستان","af","93",,"🇦🇫"],["Shqipëri","al","355",,"🇦🇱"],["الجزائر","dz","213",,"🇩🇿"],["American Samoa","as","1684",,"🇦🇸"],["Andorra","ad","376",,"🇦🇩"],["Angola","ao","244",,"🇦🇴"],["Anguilla","ai","1264",,"🇦🇮"],["Antigua and Barbuda","ag","1268",,"🇦🇬"],["Argentina","ar","54",,"🇦🇷"],["Հայաստան","am","374",,"🇦🇲"],["Aruba","aw","297",,"🇦🇼"],["Australia","au","61",0,,"🇦🇺"],["Österreich","at","43",,"🇦🇹"],["Azərbaycan","az","994",,"🇦🇿"],["Bahamas","bs","1242",,"🇧🇸"],["البحرين","bh","973",,"🇧🇭"],["বাংলাদেশ","bd","880",,"🇧🇩"],["Barbados","bb","1246",,"🇧🇧"],["Беларусь","by","375",,"🇧🇾"],["België","be","32",,"🇧🇪"],["Belize","bz","501",,"🇧🇿"],["Bénin","bj","229",,"🇧🇯"],["Bermuda","bm","1441",,"🇧🇲"],["འབྲུག","bt","975",,"🇧🇹"],["Bolivia","bo","591",,"🇧🇴"],["Босна и Херцеговина","ba","387",,"🇧🇦"],["Botswana","bw","267",,"🇧🇼"],["Brasil","br","55",,"🇧🇷"],["British Indian Ocean Territory","io","246",,"🇮🇴"],["British Virgin Islands","vg","1284",,"🇻🇬"],["Brunei","bn","673",,"🇧🇳"],["България","bg","359",,"🇧🇬"],["Burkina Faso","bf","226",,"🇧🇫"],["Uburundi","bi","257",,"🇧🇮"],["កម្ពុជា","kh","855",,"🇰🇭"],["Cameroun","cm","237",,"🇨🇲"],["Canada","ca","1",1,"🇨🇦"],["Kabu Verdi","cv","238",,"🇨🇻"],["Caribbean Netherlands","bq","599",1,,"🇧🇶"],["Cayman Islands","ky","1345",,"🇰🇾"],["République centrafricaine","cf","236",,"🇨🇫"],["Tchad","td","235",,"🇹🇩"],["Chile","cl","56",,"🇨🇱"],["中国","cn","86",,"🇨🇳"],["Christmas Island","cx","61",2,,"🇨🇽"],["Keeling","cc","61",1,,"🇨🇨"],["Colombia","co","57",,"🇨🇴"],["جزر القمر","km","269",,"🇰🇲"],["DRC","cd","243",,"🇨🇩"],["Republic","cg","242",,"🇨🇬"],["Cook Islands","ck","682",,"🇨🇰"],["Costa Rica","cr","506",,"🇨🇷"],["Côte d’Ivoire","ci","225",,"🇨🇮"],["Hrvatska","hr","385",,"🇭🇷"],["Cuba","cu","53",,"🇨🇺"],["Curaçao","cw","599",0,,"🇨🇼"],["Κύπρος","cy","357",,"🇨🇾"],["Česká republika","cz","420",,"🇨🇿"],["Danmark","dk","45",,"🇩🇰"],["Djibouti","dj","253",,"🇩🇯"],["Dominica","dm","1767",,"🇩🇲"],["República Dominicana","do","1",2,["809","829","849","🇩🇴"]],["Ecuador","ec","593",,"🇪🇨"],["مصر","eg","20",,"🇪🇬"],["El Salvador","sv","503",,"🇸🇻"],["Guinea Ecuatorial","gq","240",,"🇬🇶"],["Eritrea","er","291",,"🇪🇷"],["Eesti","ee","372",,"🇪🇪"],["Ethiopia","et","251",,"🇪🇹"],["Islas Malvinas","fk","500",,"🇫🇰"],["Føroyar","fo","298",,"🇫🇴"],["Fiji","fj","679",,"🇫🇯"],["Suomi","fi","358",0,,"🇫🇮"],["France","fr","33",,"🇫🇷"],["Guyane française","gf","594",,"🇬🇫"],["Polynésie française","pf","689",,"🇵🇫"],["Gabon","ga","241",,"🇬🇦"],["Gambia","gm","220",,"🇬🇲"],["საქართველო","ge","995",,"🇬🇪"],["Deutschland","de","49",,"🇩🇪"],["Gaana","gh","233",,"🇬🇭"],["Gibraltar","gi","350",,"🇬🇮"],["Ελλάδα","gr","30",,"🇬🇷"],["Kalaallit Nunaat","gl","299",,"🇬🇱"],["Grenada","gd","1473",,"🇬🇩"],["Guadeloupe","gp","590",0,,"🇬🇵"],["Guam","gu","1671",,"🇬🇺"],["Guatemala","gt","502",,"🇬🇹"],["Guernsey","gg","44",1,,"🇬🇬"],["Guinée","gn","224",,"🇬🇳"],["Guiné Bissau","gw","245",,"🇬🇼"],["Guyana","gy","592",,"🇬🇾"],["Haiti","ht","509",,"🇭🇹"],["Honduras","hn","504",,"🇭🇳"],["香港","hk","852",,"🇭🇰"],["Magyarország","hu","36",,"🇭🇺"],["Ísland","is","354",,"🇮🇸"],["भारत","in","91",,"🇮🇳"],["Indonesia","id","62",,"🇮🇩"],["ایران","ir","98",,"🇮🇷"],["العراق","iq","964",,"🇮🇶"],["Ireland","ie","353",,"🇮🇪"],["Isle of Man","im","44",2,,"🇮🇲"],["ישראל","il","972",,"🇮🇱"],["Italia","it","39",0,,"🇮🇹"],["Jamaica","jm","1876",,"🇯🇲"],["日本","jp","81",,"🇯🇵"],["Jersey","je","44",3,,"🇯🇪"],["الأردن","jo","962",,"🇯🇴"],["Казахстан","kz","7",1,,"🇰🇿"],["Kenya","ke","254",,"🇰🇪"],["Kiribati","ki","686",,"🇰🇮"],["Kosovo","xk","383",,"🇽🇰"],["الكويت","kw","965",,"🇰🇼"],["Кыргызстан","kg","996",,"🇰🇬"],["ລາວ","la","856",,"🇱🇦"],["Latvija","lv","371",,"🇱🇻"],["لبنان","lb","961",,"🇱🇧"],["Lesotho","ls","266",,"🇱🇸"],["Liberia","lr","231",,"🇱🇷"],["ليبيا","ly","218",,"🇱🇾"],["Liechtenstein","li","423",,"🇱🇮"],["Lietuva","lt","370",,"🇱🇹"],["Luxembourg","lu","352",,"🇱🇺"],["澳門","mo","853",,"🇲🇴"],["FYROM","mk","389",,"🇲🇰"],["Madagasikara","mg","261",,"🇲🇬"],["Malawi","mw","265",,"🇲🇼"],["Malaysia","my","60",,"🇲🇾"],["Maldives","mv","960",,"🇲🇻"],["Mali","ml","223",,"🇲🇱"],["Malta","mt","356",,"🇲🇹"],["Marshall Islands","mh","692",,"🇲🇭"],["Martinique","mq","596",,"🇲🇶"],["موريتانيا","mr","222",,"🇲🇷"],["Moris","mu","230",,"🇲🇺"],["Mayotte","yt","262",1,,"🇾🇹"],["México","mx","52",,"🇲🇽"],["Micronesia","fm","691",,"🇫🇲"],["Republica Moldova","md","373",,"🇲🇩"],["Monaco","mc","377",,"🇲🇨"],["Монгол","mn","976",,"🇲🇳"],["Crna Gora","me","382",,"🇲🇪"],["Montserrat","ms","1664",,"🇲🇸"],["المغرب","ma","212",0,,"🇲🇦"],["Moçambique","mz","258",,"🇲🇿"],["Burma","mm","95",,"🇲🇲"],["Namibië","na","264",,"🇳🇦"],["Nauru","nr","674",,"🇳🇷"],["नेपाल","np","977",,"🇳🇵"],["Nederland","nl","31",,"🇳🇱"],["Nouvelle-Calédonie","nc","687",,"🇳🇨"],["New Zealand","nz","64",,"🇳🇿"],["Nicaragua","ni","505",,"🇳🇮"],["Nijar","ne","227",,"🇳🇪"],["Nigeria","ng","234",,"🇳🇬"],["Niue","nu","683",,"🇳🇺"],["Norfolk Island","nf","672",,"🇳🇫"],["조선 민주주의 인민 공화국","kp","850",,"🇰🇵"],["Northern Mariana Islands","mp","1670",,"🇲🇵"],["Norge","no","47",0,,"🇳🇴"],["عُمان","om","968",,"🇴🇲"],["پاکستان","pk","92",,"🇵🇰"],["Palau","pw","680",,"🇵🇼"],["فلسطين","ps","970",,"🇵🇸"],["Panamá","pa","507",,"🇵🇦"],["Papua New Guinea","pg","675",,"🇵🇬"],["Paraguay","py","595",,"🇵🇾"],["Perú","pe","51",,"🇵🇪"],["Philippines","ph","63",,"🇵🇭"],["Polska","pl","48",,"🇵🇱"],["Portugal","pt","351",,"🇵🇹"],["Puerto Rico","pr","1",3,["787","939","🇵🇷"]],["قطر","qa","974",,"🇶🇦"],["La Réunion","re","262",0,,"🇷🇪"],["România","ro","40",,"🇷🇴"],["Россия","ru","7",0,,"🇷🇺"],["Rwanda","rw","250",,"🇷🇼"],["Saint Barthélemy","bl","590",1,,"🇧🇱"],["Saint Helena","sh","290",,"🇸🇭"],["Saint Kitts and Nevis","kn","1869",,"🇰🇳"],["Saint Lucia","lc","1758",,"🇱🇨"],["Saint-Martin (partie française","mf","590",2,,"🇲🇫"],["Saint-Pierre-et-Miquelon","pm","508",,"🇵🇲"],["Saint Vincent and the Grenadines","vc","1784",,"🇻🇨"],["Samoa","ws","685",,"🇼🇸"],["San Marino","sm","378",,"🇸🇲"],["São Tomé e Príncipe","st","239",,"🇸🇹"],["المملكة العربية السعودية","sa","966",,"🇸🇦"],["Sénégal","sn","221",,"🇸🇳"],["Србија","rs","381",,"🇷🇸"],["Seychelles","sc","248",,"🇸🇨"],["Sierra Leone","sl","232",,"🇸🇱"],["Singapore","sg","65",,"🇸🇬"],["Sint Maarten","sx","1721",,"🇸🇽"],["Slovensko","sk","421",,"🇸🇰"],["Slovenija","si","386",,"🇸🇮"],["Solomon Islands","sb","677",,"🇸🇧"],["Soomaaliya","so","252",,"🇸🇴"],["South Africa","za","27",,"🇿🇦"],["대한민국","kr","82",,"🇰🇷"],["جنوب السودان","ss","211",,"🇸🇸"],["España","es","34",,"🇪🇸"],["ශ්රී ලංකාව","lk","94",,"🇱🇰"],["السودان","sd","249",,"🇸🇩"],["Suriname","sr","597",,"🇸🇷"],["Svalbard and Jan Mayen","sj","47",1,,"🇸🇯"],["Swaziland","sz","268",,"🇸🇿"],["Sverige","se","46",,"🇸🇪"],["Schweiz","ch","41",,"🇨🇭"],["سوريا","sy","963",,"🇸🇾"],["台灣","tw","886",,"🇹🇼"],["Tajikistan","tj","992",,"🇹🇯"],["Tanzania","tz","255",,"🇹🇿"],["ไทย","th","66",,"🇹🇭"],["Timor-Leste","tl","670",,"🇹🇱"],["Togo","tg","228",,"🇹🇬"],["Tokelau","tk","690",,"🇹🇰"],["Tonga","to","676",,"🇹🇴"],["Trinidad and Tobago","tt","1868",,"🇹🇹"],["تونس","tn","216",,"🇹🇳"],["Türkiye","tr","90",,"🇹🇷"],["Turkmenistan","tm","993",,"🇹🇲"],["Turks and Caicos Islands","tc","1649",,"🇹🇨"],["Tuvalu","tv","688",,"🇹🇻"],["U.S. Virgin Islands","vi","1340",,"🇻🇮"],["Uganda","ug","256",,"🇺🇬"],["Україна","ua","380",,"🇺🇦"],["الإمارات العربية المتحدة","ae","971",,"🇦🇪"],["United Kingdom","gb","44",0,,"🇬🇧"],["United States","us","1",0,,"🇺🇸"],["Uruguay","uy","598",,"🇺🇾"],["Oʻzbekiston","uz","998",,"🇺🇿"],["Vanuatu","vu","678",,"🇻🇺"],["Città del Vaticano","va","39",1,,"🇻🇦"],["Venezuela","ve","58",,"🇻🇪"],["Việt Nam","vn","84",,"🇻🇳"],["Wallis-et-Futuna","wf","681",,"🇼🇫"],["الصحراء الغربية","eh","212",1,,"🇪🇭"],["اليمن","ye","967",,"🇾🇪"],["Zambia","zm","260",,"🇿🇲"],["Zimbabwe","zw","263",,"🇿🇼"],["Åland Islands","ax","358",1,,"🇦🇽"]],Td=Od.map(e=>({name:e[0],iso2:e[1].toUpperCase(),dialCode:e[2],priority:e[3]||0,areaCodes:e[4]||null,flag:e[e.length-1]||null})),wd=["tabindex"],kd={class:"flex-nowrap flex flex-v-center p-medium vti__selection"},Ld=["innerHTML"],Id={key:1,class:"vti__country-code"},Pd=["onClick","onMousemove"],Ad=["innerHTML"],Dd={key:1},Rd=["type","autocomplete","autofocus","disabled","id","maxlength","name","placeholder","readonly","required","tabindex"],Md={key:0,class:"mn-t-thin mn-b-thin invalid-feedback"},za={__name:"FieldPhone",props:{modelValue:{type:String,default:""},badClass:{type:[String,Array,Object],default:""},goodClass:{type:[String,Array,Object],default:""},badStyle:{type:[String,Array,Object],default:""},goodStyle:{type:[String,Array,Object],default:""},badInputClass:{type:[String,Array,Object],default:""},goodInputClass:{type:[String,Array,Object],default:""},badInputStyle:{type:[String,Array,Object],default:""},goodInputStyle:{type:[String,Array,Object],default:""},allCountries:{type:Array,default:()=>Td},autoFormat:{type:Boolean,default:()=>!0},validation:{type:[Boolean,Object],default:!1},customValidate:{type:[Boolean,RegExp],default:()=>!1},defaultCountry:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1},autoDefaultCountry:{type:Boolean,default:()=>!0},ignoredCountries:{type:Array,default:()=>[]},invalidMsg:{type:String,default:()=>""},mode:{type:String,default:()=>"auto"},onlyCountries:{type:Array,default:()=>[]},preferredCountries:{type:Array,default:()=>[]},validCharactersOnly:{type:Boolean,default:()=>!1},rootClass:{type:[String,Array,Object],default:()=>""},inputClass:{type:[String,Array,Object],default:()=>""},divInputClass:{type:[String,Array,Object],default:()=>""},rootStyle:{type:[String,Array,Object],default:()=>""},dropdownStyle:{type:[String,Array,Object],default:()=>""},listStyle:{type:[String,Array,Object],default:()=>""},inputStyle:{type:[String,Array,Object],default:()=>""},inputId:{type:[String,Array,Object],default:()=>""},Placeholder:{type:[String,Object,Function],default:()=>""},dropdownOptions:{type:Object,default:()=>({showDialCodeInList:!0,showDialCodeInSelection:!1,showFlags:!0,tabindex:0})},inputOptions:{type:Object,default:()=>({autocomplete:"on",autofocus:!1,id:"",maxlength:25,name:"telephone",placeholder:"Enter a phone number",readonly:!1,required:!1,tabindex:0,type:"tel",styleClasses:""})}},emits:["update:modelValue","change","validate","country-changed","open","close","blur","focus","enter","space"],setup(e,{emit:t}){let n=yn;const r=e,a=t;o.ref(5),o.ref(5),o.reactive({action:null,amount:null});const s=o.ref(r.modelValue?r.modelValue:""),i=o.ref(""),l=o.ref(!1),c=o.ref(!1),d=o.ref(null),u=o.ref(""),f=o.ref(null),m=o.ref("below"),$=o.ref(r.Placeholder!==""?r.Placeholder:r.inputOptions.placeholder),h=o.ref(null),g=o.ref(null),C=o.ref(null);o.onMounted(async()=>{r.modelValue&&(s.value=r.modelValue),Ee(),se().then(()=>{var P;!s.value&&((P=r.inputOptions)!=null&&P.showDialCode)&&i.value&&(s.value=`+${i.value}`),a("validate",N.value)}).catch(console.error).then(()=>{c.value=!0})});const y=o.computed(()=>Z(i.value)),E=o.computed(()=>y.value?y.value.flag:null),p=o.computed(()=>r.mode==="auto"?!s.value||s.value[0]!=="+"?"national":"international":["international","national"].includes(r.mode)?r.mode:(console.error('Invalid value of prop "mode"'),"international")),_=o.computed(()=>r.onlyCountries&&r.onlyCountries.length?r.allCountries.filter(({iso2:P})=>r.onlyCountries.includes(P.toUpperCase())):r.ignoredCountries&&r.ignoredCountries.length?r.allCountries.filter(({iso2:P})=>!r.ignoredCountries.includes(P.toUpperCase())&&!r.ignoredCountries.includes(P.toLowerCase())):r.allCountries),w=o.computed(()=>[...ge(r.preferredCountries).map(T=>({...T,preferred:!0})),..._.value]),N=o.computed(()=>{var be,De,v;let P={};((be=s.value)==null?void 0:be[0])==="+"?P=Fn(s.value)||{}:P=Fn(s.value,i.value)||{};const{metadata:T,...M}=P;let X=(De=P.isValid)==null?void 0:De.call(P),ie=s.value;return X&&(ie=(v=P.format)==null?void 0:v.call(P,p.value.toUpperCase(),{nationalPrefix:!1})),P.country&&(r.ignoredCountries.length||r.onlyCountries.length)&&(Z(P.country)||(X=!1,P={...P,country:null})),{...M,countryCode:P.country,valid:X,country:y.value,formatted:ie}}),O=o.computed(()=>N.value.valid===!0?r.goodClass:N.value.valid===!1?r.badClass:void 0),k=o.computed(()=>N.value.valid===!0?r.goodStyle:N.value.valid===!1?r.badStyle:void 0),S=o.computed(()=>N.value.valid===!0?r.goodInputClass:N.value.valid===!1?r.badInputClass:void 0),D=o.computed(()=>N.value.valid===!0?r.goodInputStyle:N.value.valid===!1?r.badInputStyle:void 0);o.watch(y,(P,T)=>{if(!P&&(T!=null&&T.iso2)){i.value=T.iso2;return}P!=null&&P.iso2&&(a("country-changed",P),j())}),o.watch(()=>N.value.countryCode,P=>{i.value=P}),o.watch(()=>N.value.valid,()=>{a("validate",N.value)}),o.watch(()=>N.value.formatted,P=>{!r.autoFormat||r.customValidate||(ne(P),o.nextTick(()=>{P&&!r.modelValue&&(s.value=P)}))}),o.watch(()=>r.inputOptions.placeholder,()=>{j()}),o.watch(()=>r.modelValue,(P,T)=>{Q()?s.value=P:o.nextTick(()=>{s.value=T,q()})}),o.watch(l,P=>{P?(V(),a("open")):a("close")});function F(){return fetch("https://ip2c.org/s").then(P=>P.text()).then(P=>{const T=(P||"").toString();if(!T||T[0]!=="1")throw new Error("unable to fetch the country");return T.substr(2,2)})}function B(P,T){if(P.setSelectionRange)P.focus(),P.setSelectionRange(T,T);else if(P.createTextRange){const M=P.createTextRange();M.collapse(!0),M.moveEnd("character",T),M.moveStart("character",T),M.select()}}function j(){$.value=r.inputOptions.placeholder}function se(){return new Promise(P=>{var M;if(((M=s.value)==null?void 0:M[0])==="+"){P();return}if(r.defaultCountry){$e(r.defaultCountry),P();return}const T=r.preferredCountries[0]||_.value[0];r.autoDefaultCountry?F().then(X=>{$e(X||i.value)}).catch(X=>{console.warn(X),$e(T)}).finally(()=>{P()}):($e(T),P())})}function ge(P=[]){return P.map(T=>Z(T)).filter(Boolean)}function Z(P=""){return _.value.find(T=>T.iso2===P.toUpperCase())}function Ce(P,T){const M=d.value===P,X=P===r.preferredCountries.length-1,ie=r.preferredCountries.some(be=>be.toUpperCase()===T);return{highlighted:M,"last-preferred":X,preferred:ie}}function $e(P){var M,X;let T=typeof P=="string"?Z(P):P;if(T){if(((M=s.value)==null?void 0:M[0])==="+"&&T.iso2&&N.value.nationalNumber){i.value=T.iso2,s.value=Fn(N.value.nationalNumber,T.iso2).formatInternational();return}if((X=r.inputOptions)!=null&&X.showDialCode&&T){s.value=`+${T.dialCode}`;return}i.value=T.iso2,ne(s.value)}}function Ee(){const P=s.value;if(r.validCharactersOnly){const T=s.value.match(/[()\-+0-9\s]*/g);s.value=T.join("")}if(r.customValidate&&r.customValidate instanceof RegExp){const T=s.value.match(r.customValidate);s.value=T?T.join(""):""}P!==s.value&&ne(s.value)}function Q(){return r.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(s.value)?!1:r.customValidate?ee():!0}function ee(){return r.customValidate instanceof RegExp?r.customValidate.test(s.value):!1}function q(){C.value.setCustomValidity(N.valid?"":r.invalidMsg),ne(s.value)}function ne(P){a("update:modelValue",P),N.value.valid?(a("change",N.value.number),a("country",N.value.number)):a("country",null)}function ve(){a("blur")}function de(){B(C.value,s.value.length),a("focus")}function ue(){a("enter")}function ye(){a("space")}function _e(){r.disabled||(l.value=!l.value)}function Ae(){l.value=!1}function Se(P){P.keyCode===40?(P.preventDefault(),l.value=!0,d.value=d.value===null?0:Math.min(w.value.length-1,d.value+1),o.nextTick(()=>{const T=g.value.children[d.value];T.offsetTop+T.clientHeight>g.value.scrollTop+g.value.clientHeight&&(g.value.scrollTop=T.offsetTop-g.value.clientHeight+T.clientHeight)})):P.keyCode===38?(P.preventDefault(),l.value=!0,d.value=d.value===null?w.value.length-1:Math.max(0,d.value-1),o.nextTick(()=>{const T=g.value.children[d.value];T.offsetTop<g.value.scrollTop&&(g.value.scrollTop=T.offsetTop)})):P.keyCode===13?(P.preventDefault(),d.value!==null&&$e(w.value[d.value]),l.value=!l.value):(u.value+=P.key,clearTimeout(f),f=setTimeout(()=>{u.value=""},700),o.nextTick(()=>{const T=w.value.slice(r.preferredCountries.length).findIndex(M=>M.name.toLowerCase().startsWith(u.value));if(T>=0){d.value=r.preferredCountries.length+T;const M=g.value.children[d.value];(M.offsetTop<g.value.scrollTop||M.offsetTop+M.clientHeight>g.value.scrollTop+g.value.clientHeight)&&(g.value.scrollTop=M.offsetTop-g.value.clientHeight/2)}}))}function re(){d.value=w.value.map(P=>P.iso2).indexOf(i.value),l.value=!1}function V(){const T=window.innerHeight-h.value.getBoundingClientRect().bottom>200;m.value=T?"below":"above"}return(P,T)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{class:o.normalizeClass([[e.rootClass,O.value,P.$attrs.class,{"bg-fourth-nano":e.validation},{disabled:e.disabled}],"vue3-reactive-tel-input"]),style:o.normalizeStyle([e.rootStyle,k.value]),ref_key:"rootElement",ref:h},[o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([["vti__dropdown",{open:l.value}],"br-solid br-black-transp br-1px radius-thin"]),style:o.normalizeStyle([e.dropdownStyle]),tabindex:e.dropdownOptions.tabindex,onKeydown:[Se,o.withKeys(re,["esc"])],onClick:_e},[o.createElementVNode("span",kd,[e.dropdownOptions.showFlags?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:E.value,class:"mn-r-nano"},null,8,Ld)):o.createCommentVNode("",!0),e.dropdownOptions.showDialCodeInSelection?(o.openBlock(),o.createElementBlock("span",Id," +"+o.toDisplayString(y.value&&y.value.dialCode),1)):o.createCommentVNode("",!0)]),o.withDirectives(o.createElementVNode("ul",{ref_key:"list",ref:g,class:o.normalizeClass(["bs-black radius-small vti__dropdown-list",m.value]),style:o.normalizeStyle([e.listStyle])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,(M,X)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(["flex-nowrap flex w-max",["vti__dropdown-item",Ce(X,M.iso2)]]),key:M.iso2+(M.preferred?"-preferred":""),onClick:ie=>$e(M),onMousemove:ie=>d.value=X},[e.dropdownOptions.showFlags?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:M.flag,class:"mn-r-thin"},null,8,Ad)):o.createCommentVNode("",!0),o.createElementVNode("strong",null,o.toDisplayString(M.name),1),e.dropdownOptions.showDialCodeInList?(o.openBlock(),o.createElementBlock("span",Dd," +"+o.toDisplayString(M.dialCode),1)):o.createCommentVNode("",!0)],42,Pd))),128))],6),[[o.vShow,l.value]])],46,wd)),[[o.unref(n),Ae]]),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":T[0]||(T[0]=M=>s.value=M),inputmode:"numeric",pattern:"\\d*",ref_key:"input",ref:C,type:e.inputOptions.type,autocomplete:e.inputOptions.autocomplete,autofocus:e.inputOptions.autofocus,class:o.normalizeClass(["vti__input",e.inputOptions.styleClasses,e.inputClass,S.value]),style:o.normalizeStyle([e.inputStyle,D.value]),disabled:e.disabled,id:e.inputId!==""?e.inputId:e.inputOptions.id,maxlength:e.inputOptions.maxlength,name:e.inputId!==""?e.inputId:e.inputOptions.name,placeholder:$.value,readonly:e.inputOptions.readonly,required:e.inputOptions.required,tabindex:e.inputOptions.tabindex,onBlur:ve,onFocus:de,onInput:q,onKeyup:[o.withKeys(ue,["enter"]),o.withKeys(ye,["space"])]},null,46,Rd),[[o.vModelDynamic,s.value]]),o.renderSlot(P.$slots,"default")],6),o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[e.validation?(o.openBlock(),o.createElementBlock("div",Md," * "+o.toDisplayString(e.validation.message),1)):o.createCommentVNode("",!0)]),_:1})],64))}},Fd=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"})),xd={class:"pos-relative"},Bd={key:0,class:"i-regular",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Vd=o.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"rgb(var(--white))"},null,-1),Ud=o.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"rgb(var(--white))"},null,-1),jd=[Vd,Ud],Ya={__name:"LocationMarker",props:{location:{type:Object,default:()=>({lat:15.87,lng:100.9925})},address:{type:String,default:null},apiKey:String,locale:{type:String,default:"en"}},emits:["update:location","update:address","update:country","update:state","update:city"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(null),s=o.ref(!1);let i,l;o.onMounted(()=>{new Cr({apiKey:n.apiKey,version:"weekly",libraries:["places"],language:n.locale}).load().then(()=>{i=new google.maps.Map(a.value,{center:n.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1,disableDefaultUI:!0}),l=new google.maps.Marker({position:n.location,map:i,draggable:!0}),l.addListener("dragend",f=>{const m={lat:f.latLng.lat(),lng:f.latLng.lng()};r("update:location",m),c(m)})}).catch(f=>{console.error(f)})}),o.watchEffect(()=>{n.location&&l&&l.setPosition(new google.maps.LatLng(n.location.lat,n.location.lng))}),o.watchEffect(()=>{if(n.location&&i){const u=new google.maps.LatLng(n.location.lat,n.location.lng);i.setCenter(u),i.setZoom(15)}});function c(u){new google.maps.Geocoder().geocode({location:u},(m,$)=>{if($==="OK")if(m[0]){r("update:address",m[0].formatted_address);let h="",g="",C="";m[0].address_components.forEach(y=>{y.types.includes("country")&&(h=y.long_name),y.types.includes("administrative_area_level_1")&&(g=y.long_name),y.types.includes("locality")&&(C=y.long_name)}),r("update:country",h),r("update:state",g),r("update:city",C)}else console.error("No results found");else console.error("Geocoder failed due to: "+$)})}async function d(){s.value=!0,navigator.geolocation?navigator.geolocation.getCurrentPosition(u=>{const f={lat:u.coords.latitude,lng:u.coords.longitude};r("update:location",f),c(f),s.value=!1},()=>{console.error("Error getting location"),s.value=!1}):(console.error("Geolocation is not supported by this browser."),s.value=!1)}return(u,f)=>(o.openBlock(),o.createElementBlock("div",xd,[o.createElementVNode("div",{ref_key:"mapContainer",ref:a,class:"w-100 h-100"},null,512),o.createElementVNode("button",{class:"cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra",onClick:d},[o.createVNode(o.Transition,{name:"ScaleOut",mode:"out-in"},{default:o.withCtx(()=>[s.value?(o.openBlock(),o.createBlock(qt,{key:1,class:"pos-t-0 pos-l-0 i-small"})):(o.openBlock(),o.createElementBlock("svg",Bd,jd))]),_:1})])]))}},Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Ya},Symbol.toStringTag,{value:"Module"})),Gd={__name:"Map",props:{location:Object,apiKey:String,locale:String},setup(e){const t=e;let n=o.ref(null),r=null,a=null;return o.onMounted(async()=>{new Cr({apiKey:t.apiKey,version:"weekly",libraries:["places"],language:t.locale}).load().then(()=>{r=new google.maps.Map(n.value,{zoom:13,center:{lat:t.location.lat,lng:t.location.lng}}),a=new google.maps.Marker({position:{lat:t.location.lat,lng:t.location.lng},map:r})}).catch(i=>{console.error(i)})}),o.watch(()=>t.location,()=>{r&&a&&(a.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng)),r.setCenter(new google.maps.LatLng(t.location.lat,t.location.lng)))},{deep:!0}),(s,i)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"gmap",ref:n,class:"gmap"},null,512))}},qa=qe(Gd,[["__scopeId","data-v-786189a4"]]),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:qa},Symbol.toStringTag,{value:"Module"}));/*!
|
7
|
-
* vue-router v4.3.2
|
8
|
-
* (c) 2024 Eduardo San Martin Morote
|
9
|
-
* @license MIT
|
10
|
-
*/var Lo;(function(e){e.pop="pop",e.push="push"})(Lo||(Lo={}));var Io;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Io||(Io={}));Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Po;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Po||(Po={}));Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const Kd=Symbol(process.env.NODE_ENV!=="production"?"router":""),zd=Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function kr(){return o.inject(Kd)}function Lr(){return o.inject(zd)}/*!
|
11
|
-
* shared v9.13.1
|
12
|
-
* (c) 2024 kazuya kawaguchi
|
13
|
-
* Released under the MIT License.
|
14
|
-
*/const Ke=typeof window<"u";let Be,pt;if(process.env.NODE_ENV!=="production"){const e=Ke&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Be=t=>{e.mark(t)},pt=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Yd=/\{([0-9a-zA-Z]+)\}/g;function Ir(e,...t){return t.length===1&&J(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Yd,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Xe=(e,t=!1)=>t?Symbol.for(e):Symbol(e),qd=(e,t,n)=>Xd({l:e,k:t,s:n}),Xd=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ne=e=>typeof e=="number"&&isFinite(e),Jd=e=>Ja(e)==="[object Date]",lt=e=>Ja(e)==="[object RegExp]",Cn=e=>G(e)&&Object.keys(e).length===0,ke=Object.assign;let Ao;const nt=()=>Ao||(Ao=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Do(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Zd=Object.prototype.hasOwnProperty;function un(e,t){return Zd.call(e,t)}const ce=Array.isArray,ae=e=>typeof e=="function",x=e=>typeof e=="string",K=e=>typeof e=="boolean",J=e=>e!==null&&typeof e=="object",Qd=e=>J(e)&&ae(e.then)&&ae(e.catch),Xa=Object.prototype.toString,Ja=e=>Xa.call(e),G=e=>{if(!J(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},eu=e=>e==null?"":ce(e)||G(e)&&e.toString===Xa?JSON.stringify(e,null,2):String(e);function tu(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const Ro=2;function nu(e,t=0,n=e.length){const r=e.split(/\r?\n/);let a=0;const s=[];for(let i=0;i<r.length;i++)if(a+=r[i].length+1,a>=t){for(let l=i-Ro;l<=i+Ro||n>a;l++){if(l<0||l>=r.length)continue;const c=l+1;s.push(`${c}${" ".repeat(3-String(c).length)}| ${r[l]}`);const d=r[l].length;if(l===i){const u=t-(a-d)+1,f=Math.max(1,n>a?d-u:n-t);s.push(" | "+" ".repeat(u)+"^".repeat(f))}else if(l>i){if(n>a){const u=Math.max(Math.min(n-a,d),1);s.push(" | "+"^".repeat(u))}a+=d+1}}break}return s.join(`
|
15
|
-
`)}function Sn(e){let t=e;return()=>++t}function Oe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Mo={};function Za(e){Mo[e]||(Mo[e]=!0,Oe(e))}function Pr(){const e=new Map;return{events:e,on(n,r){const a=e.get(n);a&&a.push(r)||e.set(n,[r])},off(n,r){const a=e.get(n);a&&a.splice(a.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(a=>a(r)),(e.get("*")||[]).slice().map(a=>a(n,r))}}}const Qt=e=>!J(e)||ce(e);function rn(e,t){if(Qt(e)||Qt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(s=>{Qt(r[s])||Qt(a[s])?a[s]=r[s]:n.push({src:r[s],des:a[s]})})}}/*!
|
16
|
-
* message-compiler v9.13.1
|
17
|
-
* (c) 2024 kazuya kawaguchi
|
18
|
-
* Released under the MIT License.
|
19
|
-
*/function ru(e,t,n){return{line:e,column:t,offset:n}}function fn(e,t,n){return{start:e,end:t}}const ou=/\{([0-9a-zA-Z]+)\}/g;function Qa(e,...t){return t.length===1&&au(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(ou,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const es=Object.assign,Fo=e=>typeof e=="string",au=e=>e!==null&&typeof e=="object";function ts(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const Nn={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},su={[Nn.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function iu(e,t,...n){const r=Qa(su[e],...n||[]),a={message:String(r),code:e};return t&&(a.location=t),a}const H={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},lu={[H.EXPECTED_TOKEN]:"Expected token: '{0}'",[H.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[H.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[H.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[H.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[H.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[H.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[H.EMPTY_PLACEHOLDER]:"Empty placeholder",[H.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[H.INVALID_LINKED_FORMAT]:"Invalid linked format",[H.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[H.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[H.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[H.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[H.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[H.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Lt(e,t,n={}){const{domain:r,messages:a,args:s}=n,i=Qa((a||lu)[e]||"",...s||[]),l=new SyntaxError(String(i));return l.code=e,t&&(l.location=t),l.domain=r,l}function cu(e){throw e}const du=/<\/?[\w\s="/.':;#-\/]+>/,uu=e=>du.test(e),Ze=" ",fu="\r",Le=`
|
20
|
-
`,mu="\u2028",pu="\u2029";function hu(e){const t=e;let n=0,r=1,a=1,s=0;const i=O=>t[O]===fu&&t[O+1]===Le,l=O=>t[O]===Le,c=O=>t[O]===pu,d=O=>t[O]===mu,u=O=>i(O)||l(O)||c(O)||d(O),f=()=>n,m=()=>r,$=()=>a,h=()=>s,g=O=>i(O)||c(O)||d(O)?Le:t[O],C=()=>g(n),y=()=>g(n+s);function E(){return s=0,u(n)&&(r++,a=0),i(n)&&n++,n++,a++,t[n]}function p(){return i(n+s)&&s++,s++,t[n+s]}function _(){n=0,r=1,a=1,s=0}function w(O=0){s=O}function N(){const O=n+s;for(;O!==n;)E();s=0}return{index:f,line:m,column:$,peekOffset:h,charAt:g,currentChar:C,currentPeek:y,next:E,peek:p,reset:_,resetPeek:w,skipToPeek:N}}const at=void 0,gu=".",xo="'",$u="tokenizer";function vu(e,t={}){const n=t.location!==!1,r=hu(e),a=()=>r.index(),s=()=>ru(r.line(),r.column(),r.index()),i=s(),l=a(),c={currentType:14,offset:l,startLoc:i,endLoc:i,lastType:14,lastOffset:l,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},d=()=>c,{onError:u}=t;function f(v,b,A,...U){const le=d();if(b.column+=A,b.offset+=A,u){const oe=n?fn(le.startLoc,b):null,te=Lt(v,oe,{domain:$u,args:U});u(te)}}function m(v,b,A){v.endLoc=s(),v.currentType=b;const U={type:b};return n&&(U.loc=fn(v.startLoc,v.endLoc)),A!=null&&(U.value=A),U}const $=v=>m(v,14);function h(v,b){return v.currentChar()===b?(v.next(),b):(f(H.EXPECTED_TOKEN,s(),0,b),"")}function g(v){let b="";for(;v.currentPeek()===Ze||v.currentPeek()===Le;)b+=v.currentPeek(),v.peek();return b}function C(v){const b=g(v);return v.skipToPeek(),b}function y(v){if(v===at)return!1;const b=v.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b===95}function E(v){if(v===at)return!1;const b=v.charCodeAt(0);return b>=48&&b<=57}function p(v,b){const{currentType:A}=b;if(A!==2)return!1;g(v);const U=y(v.currentPeek());return v.resetPeek(),U}function _(v,b){const{currentType:A}=b;if(A!==2)return!1;g(v);const U=v.currentPeek()==="-"?v.peek():v.currentPeek(),le=E(U);return v.resetPeek(),le}function w(v,b){const{currentType:A}=b;if(A!==2)return!1;g(v);const U=v.currentPeek()===xo;return v.resetPeek(),U}function N(v,b){const{currentType:A}=b;if(A!==8)return!1;g(v);const U=v.currentPeek()===".";return v.resetPeek(),U}function O(v,b){const{currentType:A}=b;if(A!==9)return!1;g(v);const U=y(v.currentPeek());return v.resetPeek(),U}function k(v,b){const{currentType:A}=b;if(!(A===8||A===12))return!1;g(v);const U=v.currentPeek()===":";return v.resetPeek(),U}function S(v,b){const{currentType:A}=b;if(A!==10)return!1;const U=()=>{const oe=v.currentPeek();return oe==="{"?y(v.peek()):oe==="@"||oe==="%"||oe==="|"||oe===":"||oe==="."||oe===Ze||!oe?!1:oe===Le?(v.peek(),U()):B(v,!1)},le=U();return v.resetPeek(),le}function D(v){g(v);const b=v.currentPeek()==="|";return v.resetPeek(),b}function F(v){const b=g(v),A=v.currentPeek()==="%"&&v.peek()==="{";return v.resetPeek(),{isModulo:A,hasSpace:b.length>0}}function B(v,b=!0){const A=(le=!1,oe="",te=!1)=>{const L=v.currentPeek();return L==="{"?oe==="%"?!1:le:L==="@"||!L?oe==="%"?!0:le:L==="%"?(v.peek(),A(le,"%",!0)):L==="|"?oe==="%"||te?!0:!(oe===Ze||oe===Le):L===Ze?(v.peek(),A(!0,Ze,te)):L===Le?(v.peek(),A(!0,Le,te)):!0},U=A();return b&&v.resetPeek(),U}function j(v,b){const A=v.currentChar();return A===at?at:b(A)?(v.next(),A):null}function se(v){const b=v.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b>=48&&b<=57||b===95||b===36}function ge(v){return j(v,se)}function Z(v){const b=v.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b>=48&&b<=57||b===95||b===36||b===45}function Ce(v){return j(v,Z)}function $e(v){const b=v.charCodeAt(0);return b>=48&&b<=57}function Ee(v){return j(v,$e)}function Q(v){const b=v.charCodeAt(0);return b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102}function ee(v){return j(v,Q)}function q(v){let b="",A="";for(;b=Ee(v);)A+=b;return A}function ne(v){C(v);const b=v.currentChar();return b!=="%"&&f(H.EXPECTED_TOKEN,s(),0,b),v.next(),"%"}function ve(v){let b="";for(;;){const A=v.currentChar();if(A==="{"||A==="}"||A==="@"||A==="|"||!A)break;if(A==="%")if(B(v))b+=A,v.next();else break;else if(A===Ze||A===Le)if(B(v))b+=A,v.next();else{if(D(v))break;b+=A,v.next()}else b+=A,v.next()}return b}function de(v){C(v);let b="",A="";for(;b=Ce(v);)A+=b;return v.currentChar()===at&&f(H.UNTERMINATED_CLOSING_BRACE,s(),0),A}function ue(v){C(v);let b="";return v.currentChar()==="-"?(v.next(),b+=`-${q(v)}`):b+=q(v),v.currentChar()===at&&f(H.UNTERMINATED_CLOSING_BRACE,s(),0),b}function ye(v){return v!==xo&&v!==Le}function _e(v){C(v),h(v,"'");let b="",A="";for(;b=j(v,ye);)b==="\\"?A+=Ae(v):A+=b;const U=v.currentChar();return U===Le||U===at?(f(H.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),U===Le&&(v.next(),h(v,"'")),A):(h(v,"'"),A)}function Ae(v){const b=v.currentChar();switch(b){case"\\":case"'":return v.next(),`\\${b}`;case"u":return Se(v,b,4);case"U":return Se(v,b,6);default:return f(H.UNKNOWN_ESCAPE_SEQUENCE,s(),0,b),""}}function Se(v,b,A){h(v,b);let U="";for(let le=0;le<A;le++){const oe=ee(v);if(!oe){f(H.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${b}${U}${v.currentChar()}`);break}U+=oe}return`\\${b}${U}`}function re(v){return v!=="{"&&v!=="}"&&v!==Ze&&v!==Le}function V(v){C(v);let b="",A="";for(;b=j(v,re);)A+=b;return A}function P(v){let b="",A="";for(;b=ge(v);)A+=b;return A}function T(v){const b=A=>{const U=v.currentChar();return U==="{"||U==="%"||U==="@"||U==="|"||U==="("||U===")"||!U||U===Ze?A:(A+=U,v.next(),b(A))};return b("")}function M(v){C(v);const b=h(v,"|");return C(v),b}function X(v,b){let A=null;switch(v.currentChar()){case"{":return b.braceNest>=1&&f(H.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),v.next(),A=m(b,2,"{"),C(v),b.braceNest++,A;case"}":return b.braceNest>0&&b.currentType===2&&f(H.EMPTY_PLACEHOLDER,s(),0),v.next(),A=m(b,3,"}"),b.braceNest--,b.braceNest>0&&C(v),b.inLinked&&b.braceNest===0&&(b.inLinked=!1),A;case"@":return b.braceNest>0&&f(H.UNTERMINATED_CLOSING_BRACE,s(),0),A=ie(v,b)||$(b),b.braceNest=0,A;default:{let le=!0,oe=!0,te=!0;if(D(v))return b.braceNest>0&&f(H.UNTERMINATED_CLOSING_BRACE,s(),0),A=m(b,1,M(v)),b.braceNest=0,b.inLinked=!1,A;if(b.braceNest>0&&(b.currentType===5||b.currentType===6||b.currentType===7))return f(H.UNTERMINATED_CLOSING_BRACE,s(),0),b.braceNest=0,be(v,b);if(le=p(v,b))return A=m(b,5,de(v)),C(v),A;if(oe=_(v,b))return A=m(b,6,ue(v)),C(v),A;if(te=w(v,b))return A=m(b,7,_e(v)),C(v),A;if(!le&&!oe&&!te)return A=m(b,13,V(v)),f(H.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,A.value),C(v),A;break}}return A}function ie(v,b){const{currentType:A}=b;let U=null;const le=v.currentChar();switch((A===8||A===9||A===12||A===10)&&(le===Le||le===Ze)&&f(H.INVALID_LINKED_FORMAT,s(),0),le){case"@":return v.next(),U=m(b,8,"@"),b.inLinked=!0,U;case".":return C(v),v.next(),m(b,9,".");case":":return C(v),v.next(),m(b,10,":");default:return D(v)?(U=m(b,1,M(v)),b.braceNest=0,b.inLinked=!1,U):N(v,b)||k(v,b)?(C(v),ie(v,b)):O(v,b)?(C(v),m(b,12,P(v))):S(v,b)?(C(v),le==="{"?X(v,b)||U:m(b,11,T(v))):(A===8&&f(H.INVALID_LINKED_FORMAT,s(),0),b.braceNest=0,b.inLinked=!1,be(v,b))}}function be(v,b){let A={type:14};if(b.braceNest>0)return X(v,b)||$(b);if(b.inLinked)return ie(v,b)||$(b);switch(v.currentChar()){case"{":return X(v,b)||$(b);case"}":return f(H.UNBALANCED_CLOSING_BRACE,s(),0),v.next(),m(b,3,"}");case"@":return ie(v,b)||$(b);default:{if(D(v))return A=m(b,1,M(v)),b.braceNest=0,b.inLinked=!1,A;const{isModulo:le,hasSpace:oe}=F(v);if(le)return oe?m(b,0,ve(v)):m(b,4,ne(v));if(B(v))return m(b,0,ve(v));break}}return A}function De(){const{currentType:v,offset:b,startLoc:A,endLoc:U}=c;return c.lastType=v,c.lastOffset=b,c.lastStartLoc=A,c.lastEndLoc=U,c.offset=a(),c.startLoc=s(),r.currentChar()===at?m(c,14):be(r,c)}return{nextToken:De,currentOffset:a,currentPosition:s,context:d}}const yu="parser",_u=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function bu(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Eu(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function a(p,_,w,N,...O){const k=p.currentPosition();if(k.offset+=N,k.column+=N,n){const S=t?fn(w,k):null,D=Lt(_,S,{domain:yu,args:O});n(D)}}function s(p,_,w,N,...O){const k=p.currentPosition();if(k.offset+=N,k.column+=N,r){const S=t?fn(w,k):null;r(iu(_,S,O))}}function i(p,_,w){const N={type:p};return t&&(N.start=_,N.end=_,N.loc={start:w,end:w}),N}function l(p,_,w,N){t&&(p.end=_,p.loc&&(p.loc.end=w))}function c(p,_){const w=p.context(),N=i(3,w.offset,w.startLoc);return N.value=_,l(N,p.currentOffset(),p.currentPosition()),N}function d(p,_){const w=p.context(),{lastOffset:N,lastStartLoc:O}=w,k=i(5,N,O);return k.index=parseInt(_,10),p.nextToken(),l(k,p.currentOffset(),p.currentPosition()),k}function u(p,_,w){const N=p.context(),{lastOffset:O,lastStartLoc:k}=N,S=i(4,O,k);return S.key=_,w===!0&&(S.modulo=!0),p.nextToken(),l(S,p.currentOffset(),p.currentPosition()),S}function f(p,_){const w=p.context(),{lastOffset:N,lastStartLoc:O}=w,k=i(9,N,O);return k.value=_.replace(_u,bu),p.nextToken(),l(k,p.currentOffset(),p.currentPosition()),k}function m(p){const _=p.nextToken(),w=p.context(),{lastOffset:N,lastStartLoc:O}=w,k=i(8,N,O);return _.type!==12?(a(p,H.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),k.value="",l(k,N,O),{nextConsumeToken:_,node:k}):(_.value==null&&a(p,H.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,je(_)),k.value=_.value||"",l(k,p.currentOffset(),p.currentPosition()),{node:k})}function $(p,_){const w=p.context(),N=i(7,w.offset,w.startLoc);return N.value=_,l(N,p.currentOffset(),p.currentPosition()),N}function h(p){const _=p.context(),w=i(6,_.offset,_.startLoc);let N=p.nextToken();if(N.type===9){const O=m(p);w.modifier=O.node,N=O.nextConsumeToken||p.nextToken()}switch(N.type!==10&&a(p,H.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,je(N)),N=p.nextToken(),N.type===2&&(N=p.nextToken()),N.type){case 11:N.value==null&&a(p,H.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,je(N)),w.key=$(p,N.value||"");break;case 5:N.value==null&&a(p,H.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,je(N)),w.key=u(p,N.value||"");break;case 6:N.value==null&&a(p,H.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,je(N)),w.key=d(p,N.value||"");break;case 7:N.value==null&&a(p,H.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,je(N)),w.key=f(p,N.value||"");break;default:{a(p,H.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const O=p.context(),k=i(7,O.offset,O.startLoc);return k.value="",l(k,O.offset,O.startLoc),w.key=k,l(w,O.offset,O.startLoc),{nextConsumeToken:N,node:w}}}return l(w,p.currentOffset(),p.currentPosition()),{node:w}}function g(p){const _=p.context(),w=_.currentType===1?p.currentOffset():_.offset,N=_.currentType===1?_.endLoc:_.startLoc,O=i(2,w,N);O.items=[];let k=null,S=null;do{const B=k||p.nextToken();switch(k=null,B.type){case 0:B.value==null&&a(p,H.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,je(B)),O.items.push(c(p,B.value||""));break;case 6:B.value==null&&a(p,H.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,je(B)),O.items.push(d(p,B.value||""));break;case 4:S=!0;break;case 5:B.value==null&&a(p,H.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,je(B)),O.items.push(u(p,B.value||"",!!S)),S&&(s(p,Nn.USE_MODULO_SYNTAX,_.lastStartLoc,0,je(B)),S=null);break;case 7:B.value==null&&a(p,H.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,je(B)),O.items.push(f(p,B.value||""));break;case 8:{const j=h(p);O.items.push(j.node),k=j.nextConsumeToken||null;break}}}while(_.currentType!==14&&_.currentType!==1);const D=_.currentType===1?_.lastOffset:p.currentOffset(),F=_.currentType===1?_.lastEndLoc:p.currentPosition();return l(O,D,F),O}function C(p,_,w,N){const O=p.context();let k=N.items.length===0;const S=i(1,_,w);S.cases=[],S.cases.push(N);do{const D=g(p);k||(k=D.items.length===0),S.cases.push(D)}while(O.currentType!==14);return k&&a(p,H.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),l(S,p.currentOffset(),p.currentPosition()),S}function y(p){const _=p.context(),{offset:w,startLoc:N}=_,O=g(p);return _.currentType===14?O:C(p,w,N,O)}function E(p){const _=vu(p,es({},e)),w=_.context(),N=i(0,w.offset,w.startLoc);return t&&N.loc&&(N.loc.source=p),N.body=y(_),e.onCacheKey&&(N.cacheKey=e.onCacheKey(p)),w.currentType!==14&&a(_,H.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,p[w.offset]||""),l(N,_.currentOffset(),_.currentPosition()),N}return{parse:E}}function je(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Cu(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Bo(e,t){for(let n=0;n<e.length;n++)Ar(e[n],t)}function Ar(e,t){switch(e.type){case 1:Bo(e.cases,t),t.helper("plural");break;case 2:Bo(e.items,t);break;case 6:{Ar(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Su(e,t={}){const n=Cu(e);n.helper("normalize"),e.body&&Ar(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Nu(e){const t=e.body;return t.type===2?Vo(t):t.cases.forEach(n=>Vo(n)),e}function Vo(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=ts(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const Ou="minifier";function Ct(e){switch(e.t=e.type,e.type){case 0:{const t=e;Ct(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Ct(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Ct(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Ct(t.key),t.k=t.key,delete t.key,t.modifier&&(Ct(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Lt(H.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ou,args:[e.type]})}delete e.type}const Tu="parser";function wu(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:s}=t,i=t.location!==!1,l={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:s,indentLevel:0};i&&e.loc&&(l.source=e.loc.source);const c=()=>l;function d(C,y){l.code+=C}function u(C,y=!0){const E=y?a:"";d(s?E+" ".repeat(C):E)}function f(C=!0){const y=++l.indentLevel;C&&u(y)}function m(C=!0){const y=--l.indentLevel;C&&u(y)}function $(){u(l.indentLevel)}return{context:c,push:d,indent:f,deindent:m,newline:$,helper:C=>`_${C}`,needIndent:()=>l.needIndent}}function ku(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Tt(e,t.key),t.modifier?(e.push(", "),Tt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Lu(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let s=0;s<a&&(Tt(e,t.items[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function Iu(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let s=0;s<a&&(Tt(e,t.cases[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function Pu(e,t){t.body?Tt(e,t.body):e.push("null")}function Tt(e,t){const{helper:n}=e;switch(t.type){case 0:Pu(e,t);break;case 1:Iu(e,t);break;case 2:Lu(e,t);break;case 6:ku(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Lt(H.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Tu,args:[t.type]})}}const Au=(e,t={})=>{const n=Fo(t.mode)?t.mode:"normal",r=Fo(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
21
|
-
`,i=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],c=wu(e,{mode:n,filename:r,sourceMap:a,breakLineCode:s,needIndent:i});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(i),l.length>0&&(c.push(`const { ${ts(l.map(f=>`${f}: _${f}`),", ")} } = ctx`),c.newline()),c.push("return "),Tt(c,e),c.deindent(i),c.push("}"),delete e.helpers;const{code:d,map:u}=c.context();return{ast:e,code:d,map:u?u.toJSON():void 0}};function Du(e,t={}){const n=es({},t),r=!!n.jit,a=!!n.minify,s=n.optimize==null?!0:n.optimize,l=Eu(n).parse(e);return r?(s&&Nu(l),a&&Ct(l),{ast:l,code:""}):(Su(l,n),Au(l,n))}/*!
|
22
|
-
* core-base v9.13.1
|
23
|
-
* (c) 2024 kazuya kawaguchi
|
24
|
-
* Released under the MIT License.
|
25
|
-
*/function Ru(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(nt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(nt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(nt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const dt=[];dt[0]={w:[0],i:[3,0],"[":[4],o:[7]};dt[1]={w:[1],".":[2],"[":[4],o:[7]};dt[2]={w:[2],i:[3,0],0:[3,0]};dt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};dt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};dt[5]={"'":[4,0],o:8,l:[5,0]};dt[6]={'"':[4,0],o:8,l:[6,0]};const Mu=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Fu(e){return Mu.test(e)}function xu(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Bu(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Vu(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Fu(t)?xu(t):"*"+t}function Uu(e){const t=[];let n=-1,r=0,a=0,s,i,l,c,d,u,f;const m=[];m[0]=()=>{i===void 0?i=l:i+=l},m[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},m[2]=()=>{m[0](),a++},m[3]=()=>{if(a>0)a--,r=4,m[0]();else{if(a=0,i===void 0||(i=Vu(i),i===!1))return!1;m[1]()}};function $(){const h=e[n+1];if(r===5&&h==="'"||r===6&&h==='"')return n++,l="\\"+h,m[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&$())){if(c=Bu(s),f=dt[r],d=f[c]||f.l||8,d===8||(r=d[0],d[1]!==void 0&&(u=m[d[1]],u&&(l=s,u()===!1))))return;if(r===7)return t}}const Uo=new Map;function ju(e,t){return J(e)?e[t]:null}function Hu(e,t){if(!J(e))return null;let n=Uo.get(t);if(n||(n=Uu(t),n&&Uo.set(t,n)),!n)return null;const r=n.length;let a=e,s=0;for(;s<r;){const i=a[n[s]];if(i===void 0||ae(a))return null;a=i,s++}return a}const Gu=e=>e,Wu=e=>"",Ku="text",zu=e=>e.length===0?"":tu(e),Yu=eu;function jo(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qu(e){const t=Ne(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ne(e.named.count)||Ne(e.named.n))?Ne(e.named.count)?e.named.count:Ne(e.named.n)?e.named.n:t:t}function Xu(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ju(e={}){const t=e.locale,n=qu(e),r=J(e.pluralRules)&&x(t)&&ae(e.pluralRules[t])?e.pluralRules[t]:jo,a=J(e.pluralRules)&&x(t)&&ae(e.pluralRules[t])?jo:void 0,s=y=>y[r(n,y.length,a)],i=e.list||[],l=y=>i[y],c=e.named||{};Ne(e.pluralIndex)&&Xu(n,c);const d=y=>c[y];function u(y){const E=ae(e.messages)?e.messages(y):J(e.messages)?e.messages[y]:!1;return E||(e.parent?e.parent.message(y):Wu)}const f=y=>e.modifiers?e.modifiers[y]:Gu,m=G(e.processor)&&ae(e.processor.normalize)?e.processor.normalize:zu,$=G(e.processor)&&ae(e.processor.interpolate)?e.processor.interpolate:Yu,h=G(e.processor)&&x(e.processor.type)?e.processor.type:Ku,C={list:l,named:d,plural:s,linked:(y,...E)=>{const[p,_]=E;let w="text",N="";E.length===1?J(p)?(N=p.modifier||N,w=p.type||w):x(p)&&(N=p||N):E.length===2&&(x(p)&&(N=p||N),x(_)&&(w=_||w));const O=u(y)(C),k=w==="vnode"&&ce(O)&&N?O[0]:O;return N?f(N)(k,w):k},message:u,type:h,interpolate:$,normalize:m,values:ke({},i,c)};return C}let Ut=null;function Zu(e){Ut=e}function Qu(e,t,n){Ut&&Ut.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ef=tf("function:translate");function tf(e){return t=>Ut&&Ut.emit(e,t)}const ns=Nn.__EXTEND_POINT__,ut=Sn(ns),Ie={NOT_FOUND_KEY:ns,FALLBACK_TO_TRANSLATE:ut(),CANNOT_FORMAT_NUMBER:ut(),FALLBACK_TO_NUMBER_FORMAT:ut(),CANNOT_FORMAT_DATE:ut(),FALLBACK_TO_DATE_FORMAT:ut(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:ut(),__EXTEND_POINT__:ut()},nf={[Ie.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Ie.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ie.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ie.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ie.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ie.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ie.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function ht(e,...t){return Ir(nf[e],...t)}const rs=H.__EXTEND_POINT__,ft=Sn(rs),we={INVALID_ARGUMENT:rs,INVALID_DATE_ARGUMENT:ft(),INVALID_ISO_DATE_ARGUMENT:ft(),NOT_SUPPORT_NON_STRING_MESSAGE:ft(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:ft(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:ft(),NOT_SUPPORT_LOCALE_TYPE:ft(),__EXTEND_POINT__:ft()};function Ye(e){return Lt(e,null,process.env.NODE_ENV!=="production"?{messages:rf}:void 0)}const rf={[we.INVALID_ARGUMENT]:"Invalid arguments",[we.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[we.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[we.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[we.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[we.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[we.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Dr(e,t){return t.locale!=null?Ho(t.locale):Ho(e.locale)}let xn;function Ho(e){if(x(e))return e;if(ae(e)){if(e.resolvedOnce&&xn!=null)return xn;if(e.constructor.name==="Function"){const t=e();if(Qd(t))throw Ye(we.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return xn=t}else throw Ye(we.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ye(we.NOT_SUPPORT_LOCALE_TYPE)}function of(e,t,n){return[...new Set([n,...ce(t)?t:J(t)?Object.keys(t):x(t)?[t]:[n]])]}function os(e,t,n){const r=x(n)?n:wt,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let s=a.__localeChainCache.get(r);if(!s){s=[];let i=[n];for(;ce(i);)i=Go(s,i,t);const l=ce(t)||!G(t)?t:t.default?t.default:null;i=x(l)?[l]:l,ce(i)&&Go(s,i,!1),a.__localeChainCache.set(r,s)}return s}function Go(e,t,n){let r=!0;for(let a=0;a<t.length&&K(r);a++){const s=t[a];x(s)&&(r=af(e,t[a],n))}return r}function af(e,t,n){let r;const a=t.split("-");do{const s=a.join("-");r=sf(e,s,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function sf(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(ce(n)||G(n))&&n[a]&&(r=n[a])}return r}const lf="9.13.1",On=-1,wt="en-US",mn="",Wo=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function cf(){return{upper:(e,t)=>t==="text"&&x(e)?e.toUpperCase():t==="vnode"&&J(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&x(e)?e.toLowerCase():t==="vnode"&&J(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&x(e)?Wo(e):t==="vnode"&&J(e)&&"__v_isVNode"in e?Wo(e.children):e}}let as;function Ko(e){as=e}let ss;function df(e){ss=e}let is;function uf(e){is=e}let ls=null;const ff=e=>{ls=e},mf=()=>ls;let cs=null;const zo=e=>{cs=e},pf=()=>cs;let Yo=0;function hf(e={}){const t=ae(e.onWarn)?e.onWarn:Oe,n=x(e.version)?e.version:lf,r=x(e.locale)||ae(e.locale)?e.locale:wt,a=ae(r)?wt:r,s=ce(e.fallbackLocale)||G(e.fallbackLocale)||x(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=G(e.messages)?e.messages:{[a]:{}},l=G(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},c=G(e.numberFormats)?e.numberFormats:{[a]:{}},d=ke({},e.modifiers||{},cf()),u=e.pluralRules||{},f=ae(e.missing)?e.missing:null,m=K(e.missingWarn)||lt(e.missingWarn)?e.missingWarn:!0,$=K(e.fallbackWarn)||lt(e.fallbackWarn)?e.fallbackWarn:!0,h=!!e.fallbackFormat,g=!!e.unresolving,C=ae(e.postTranslation)?e.postTranslation:null,y=G(e.processor)?e.processor:null,E=K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter,_=ae(e.messageCompiler)?e.messageCompiler:as;process.env.NODE_ENV!=="production"&&ae(e.messageCompiler)&&Za(ht(Ie.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=ae(e.messageResolver)?e.messageResolver:ss||ju,N=ae(e.localeFallbacker)?e.localeFallbacker:is||of,O=J(e.fallbackContext)?e.fallbackContext:void 0,k=e,S=J(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,D=J(k.__numberFormatters)?k.__numberFormatters:new Map,F=J(k.__meta)?k.__meta:{};Yo++;const B={version:n,cid:Yo,locale:r,fallbackLocale:s,messages:i,modifiers:d,pluralRules:u,missing:f,missingWarn:m,fallbackWarn:$,fallbackFormat:h,unresolving:g,postTranslation:C,processor:y,warnHtmlMessage:E,escapeParameter:p,messageCompiler:_,messageResolver:w,localeFallbacker:N,fallbackContext:O,onWarn:t,__meta:F};return B.datetimeFormats=l,B.numberFormats=c,B.__datetimeFormatters=S,B.__numberFormatters=D,process.env.NODE_ENV!=="production"&&(B.__v_emitter=k.__v_emitter!=null?k.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Qu(B,n,F),B}function Tn(e,t){return e instanceof RegExp?e.test(t):e}function ds(e,t){return e instanceof RegExp?e.test(t):e}function Rr(e,t,n,r,a){const{missing:s,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(s!==null){const l=s(e,n,t,a);return x(l)?l:t}else return process.env.NODE_ENV!=="production"&&ds(r,t)&&i(ht(Ie.NOT_FOUND_KEY,{key:t,locale:n})),t}function Rt(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function us(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function gf(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(us(e,t[r]))return!0;return!1}function Bn(e){return n=>$f(n,e)}function $f(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,a=r.c||r.cases;return e.plural(a.reduce((s,i)=>[...s,qo(e,i)],[]))}else return qo(e,n)}function qo(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((a,s)=>[...a,tr(e,s)],[]);return e.normalize(r)}}function tr(e,t){const n=t.t||t.type;switch(n){case 3:{const r=t;return r.v||r.value}case 9:{const r=t;return r.v||r.value}case 4:{const r=t;return e.interpolate(e.named(r.k||r.key))}case 5:{const r=t;return e.interpolate(e.list(r.i!=null?r.i:r.index))}case 6:{const r=t,a=r.m||r.modifier;return e.linked(tr(e,r.k||r.key),a?tr(e,a):void 0,e.type)}case 7:{const r=t;return r.v||r.value}case 8:{const r=t;return r.v||r.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const vf="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function fs(e,t){t&&uu(e)&&Oe(Ir(vf,{source:e}))}const ms=e=>e;let Nt=Object.create(null);function ps(e){e.code===Nn.USE_MODULO_SYNTAX&&Oe(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
26
|
-
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
27
|
-
(message compiler warning message: ${e.message})`)}const ct=e=>J(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function hs(e,t={}){let n=!1;const r=t.onError||cu;return t.onError=a=>{n=!0,r(a)},{...Du(e,t),detectError:n}}const yf=(e,t)=>{if(!x(e))throw Ye(we.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(t.onWarn=ps);{const n=K(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&fs(e,n);const a=(t.onCacheKey||ms)(e),s=Nt[a];if(s)return s;const{code:i,detectError:l}=hs(e,t),c=new Function(`return ${i}`)();return l?c:Nt[a]=c}};function _f(e,t){if(process.env.NODE_ENV!=="production"&&(t.onWarn=ps),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&x(e)){const n=K(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&fs(e,n);const a=(t.onCacheKey||ms)(e),s=Nt[a];if(s)return s;const{ast:i,detectError:l}=hs(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=Bn(i);return l?c:Nt[a]=c}else{if(process.env.NODE_ENV!=="production"&&!ct(e))return Oe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=Nt[n];return r||(Nt[n]=Bn(e))}else return Bn(e)}}const Xo=()=>"",Ve=e=>ae(e);function Jo(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:i,messages:l}=e,[c,d]=nr(...t),u=K(d.missingWarn)?d.missingWarn:e.missingWarn,f=K(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,m=K(d.escapeParameter)?d.escapeParameter:e.escapeParameter,$=!!d.resolvedMessage,h=x(d.default)||K(d.default)?K(d.default)?s?c:()=>c:d.default:n?s?c:()=>c:"",g=n||h!=="",C=Dr(e,d);m&&bf(d);let[y,E,p]=$?[c,C,l[C]||{}]:gs(e,c,C,i,f,u),_=y,w=c;if(!$&&!(x(_)||ct(_)||Ve(_))&&g&&(_=h,w=_),!$&&(!(x(_)||ct(_)||Ve(_))||!x(E)))return a?On:c;if(process.env.NODE_ENV!=="production"&&x(_)&&e.messageCompiler==null)return Oe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let N=!1;const O=()=>{N=!0},k=Ve(_)?_:$s(e,c,E,_,w,O);if(N)return _;const S=Nf(e,E,p,d),D=Ju(S),F=Ef(e,k,D),B=r?r(F,c):F;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const j={timestamp:Date.now(),key:x(c)?c:Ve(_)?_.key:"",locale:E||(Ve(_)?_.locale:""),format:x(_)?_:Ve(_)?_.source:"",message:B};j.meta=ke({},e.__meta,mf()||{}),ef(j)}return B}function bf(e){ce(e.list)?e.list=e.list.map(t=>x(t)?Do(t):t):J(e.named)&&Object.keys(e.named).forEach(t=>{x(e.named[t])&&(e.named[t]=Do(e.named[t]))})}function gs(e,t,n,r,a,s){const{messages:i,onWarn:l,messageResolver:c,localeFallbacker:d}=e,u=d(e,r,n);let f={},m,$=null,h=n,g=null;const C="translate";for(let y=0;y<u.length;y++){if(m=g=u[y],process.env.NODE_ENV!=="production"&&n!==m&&!us(n,m)&&Tn(a,t)&&l(ht(Ie.FALLBACK_TO_TRANSLATE,{key:t,target:m})),process.env.NODE_ENV!=="production"&&n!==m){const w=e.__v_emitter;w&&w.emit("fallback",{type:C,key:t,from:h,to:g,groupId:`${C}:${t}`})}f=i[m]||{};let E=null,p,_;if(process.env.NODE_ENV!=="production"&&Ke&&(E=window.performance.now(),p="intlify-message-resolve-start",_="intlify-message-resolve-end",Be&&Be(p)),($=c(f,t))===null&&($=f[t]),process.env.NODE_ENV!=="production"&&Ke){const w=window.performance.now(),N=e.__v_emitter;N&&E&&$&&N.emit("message-resolve",{type:"message-resolve",key:t,message:$,time:w-E,groupId:`${C}:${t}`}),p&&_&&Be&&pt&&(Be(_),pt("intlify message resolve",p,_))}if(x($)||ct($)||Ve($))break;if(!gf(m,u)){const w=Rr(e,t,m,s,C);w!==t&&($=w)}h=g}return[$,m,f]}function $s(e,t,n,r,a,s){const{messageCompiler:i,warnHtmlMessage:l}=e;if(Ve(r)){const m=r;return m.locale=m.locale||n,m.key=m.key||t,m}if(i==null){const m=()=>r;return m.locale=n,m.key=t,m}let c=null,d,u;process.env.NODE_ENV!=="production"&&Ke&&(c=window.performance.now(),d="intlify-message-compilation-start",u="intlify-message-compilation-end",Be&&Be(d));const f=i(r,Cf(e,n,a,r,l,s));if(process.env.NODE_ENV!=="production"&&Ke){const m=window.performance.now(),$=e.__v_emitter;$&&c&&$.emit("message-compilation",{type:"message-compilation",message:r,time:m-c,groupId:`translate:${t}`}),d&&u&&Be&&pt&&(Be(u),pt("intlify message compilation",d,u))}return f.locale=n,f.key=t,f.source=r,f}function Ef(e,t,n){let r=null,a,s;process.env.NODE_ENV!=="production"&&Ke&&(r=window.performance.now(),a="intlify-message-evaluation-start",s="intlify-message-evaluation-end",Be&&Be(a));const i=t(n);if(process.env.NODE_ENV!=="production"&&Ke){const l=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:i,time:l-r,groupId:`translate:${t.key}`}),a&&s&&Be&&pt&&(Be(s),pt("intlify message evaluation",a,s))}return i}function nr(...e){const[t,n,r]=e,a={};if(!x(t)&&!Ne(t)&&!Ve(t)&&!ct(t))throw Ye(we.INVALID_ARGUMENT);const s=Ne(t)?String(t):(Ve(t),t);return Ne(n)?a.plural=n:x(n)?a.default=n:G(n)&&!Cn(n)?a.named=n:ce(n)&&(a.list=n),Ne(r)?a.plural=r:x(r)?a.default=r:G(r)&&ke(a,r),[s,a]}function Cf(e,t,n,r,a,s){return{locale:t,key:n,warnHtmlMessage:a,onError:i=>{if(s&&s(i),process.env.NODE_ENV!=="production"){const l=Sf(r),c=`Message compilation error: ${i.message}`,d=i.location&&l&&nu(l,i.location.start.offset,i.location.end.offset),u=e.__v_emitter;u&&l&&u.emit("compile-error",{message:l,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`}),console.error(d?`${c}
|
28
|
-
${d}`:c)}else throw i},onCacheKey:i=>qd(t,n,i)}}function Sf(e){if(x(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Nf(e,t,n,r){const{modifiers:a,pluralRules:s,messageResolver:i,fallbackLocale:l,fallbackWarn:c,missingWarn:d,fallbackContext:u}=e,m={locale:t,modifiers:a,pluralRules:s,messages:$=>{let h=i(n,$);if(h==null&&u){const[,,g]=gs(u,$,t,l,c,d);h=i(g,$)}if(x(h)||ct(h)){let g=!1;const y=$s(e,$,t,h,$,()=>{g=!0});return g?Xo:y}else return Ve(h)?h:Xo}};return e.processor&&(m.processor=e.processor),r.list&&(m.list=r.list),r.named&&(m.named=r.named),Ne(r.plural)&&(m.pluralIndex=r.plural),m}const Zo=typeof Intl<"u",vs={dateTimeFormat:Zo&&typeof Intl.DateTimeFormat<"u",numberFormat:Zo&&typeof Intl.NumberFormat<"u"};function Qo(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:i}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!vs.dateTimeFormat)return s(ht(Ie.CANNOT_FORMAT_DATE)),mn;const[c,d,u,f]=rr(...t),m=K(u.missingWarn)?u.missingWarn:e.missingWarn,$=K(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=!!u.part,g=Dr(e,u),C=i(e,a,g);if(!x(c)||c==="")return new Intl.DateTimeFormat(g,f).format(d);let y={},E,p=null,_=g,w=null;const N="datetime format";for(let S=0;S<C.length;S++){if(E=w=C[S],process.env.NODE_ENV!=="production"&&g!==E&&Tn($,c)&&s(ht(Ie.FALLBACK_TO_DATE_FORMAT,{key:c,target:E})),process.env.NODE_ENV!=="production"&&g!==E){const D=e.__v_emitter;D&&D.emit("fallback",{type:N,key:c,from:_,to:w,groupId:`${N}:${c}`})}if(y=n[E]||{},p=y[c],G(p))break;Rr(e,c,E,m,N),_=w}if(!G(p)||!x(E))return r?On:c;let O=`${E}__${c}`;Cn(f)||(O=`${O}__${JSON.stringify(f)}`);let k=l.get(O);return k||(k=new Intl.DateTimeFormat(E,ke({},p,f)),l.set(O,k)),h?k.formatToParts(d):k.format(d)}const ys=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function rr(...e){const[t,n,r,a]=e,s={};let i={},l;if(x(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Ye(we.INVALID_ISO_DATE_ARGUMENT);const d=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();l=new Date(d);try{l.toISOString()}catch{throw Ye(we.INVALID_ISO_DATE_ARGUMENT)}}else if(Jd(t)){if(isNaN(t.getTime()))throw Ye(we.INVALID_DATE_ARGUMENT);l=t}else if(Ne(t))l=t;else throw Ye(we.INVALID_ARGUMENT);return x(n)?s.key=n:G(n)&&Object.keys(n).forEach(c=>{ys.includes(c)?i[c]=n[c]:s[c]=n[c]}),x(r)?s.locale=r:G(r)&&(i=r),G(a)&&(i=a),[s.key||"",l,s,i]}function ea(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function ta(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:i}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!vs.numberFormat)return s(ht(Ie.CANNOT_FORMAT_NUMBER)),mn;const[c,d,u,f]=or(...t),m=K(u.missingWarn)?u.missingWarn:e.missingWarn,$=K(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=!!u.part,g=Dr(e,u),C=i(e,a,g);if(!x(c)||c==="")return new Intl.NumberFormat(g,f).format(d);let y={},E,p=null,_=g,w=null;const N="number format";for(let S=0;S<C.length;S++){if(E=w=C[S],process.env.NODE_ENV!=="production"&&g!==E&&Tn($,c)&&s(ht(Ie.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:E})),process.env.NODE_ENV!=="production"&&g!==E){const D=e.__v_emitter;D&&D.emit("fallback",{type:N,key:c,from:_,to:w,groupId:`${N}:${c}`})}if(y=n[E]||{},p=y[c],G(p))break;Rr(e,c,E,m,N),_=w}if(!G(p)||!x(E))return r?On:c;let O=`${E}__${c}`;Cn(f)||(O=`${O}__${JSON.stringify(f)}`);let k=l.get(O);return k||(k=new Intl.NumberFormat(E,ke({},p,f)),l.set(O,k)),h?k.formatToParts(d):k.format(d)}const _s=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function or(...e){const[t,n,r,a]=e,s={};let i={};if(!Ne(t))throw Ye(we.INVALID_ARGUMENT);const l=t;return x(n)?s.key=n:G(n)&&Object.keys(n).forEach(c=>{_s.includes(c)?i[c]=n[c]:s[c]=n[c]}),x(r)?s.locale=r:G(r)&&(i=r),G(a)&&(i=a),[s.key||"",l,s,i]}function na(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}Ru();function Of(){return bs().__VUE_DEVTOOLS_GLOBAL_HOOK__}function bs(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Tf=typeof Proxy=="function",wf="devtools-plugin:setup",kf="plugin:settings:set";let bt,ar;function Lf(){var e;return bt!==void 0||(typeof window<"u"&&window.performance?(bt=!0,ar=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(bt=!0,ar=globalThis.perf_hooks.performance):bt=!1),bt}function If(){return Lf()?ar.now():Date.now()}class Pf{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const l=t.settings[i];r[i]=l.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const i=localStorage.getItem(a),l=JSON.parse(i);Object.assign(s,l)}catch{}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}s=i},now(){return If()}},n&&n.on(kf,(i,l)=>{i===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(i,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(i,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:l,args:c,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Af(e,t){const n=e,r=bs(),a=Of(),s=Tf&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(wf,e,t);else{const i=s?new Pf(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
|
29
|
-
* vue-i18n v9.13.1
|
30
|
-
* (c) 2024 kazuya kawaguchi
|
31
|
-
* Released under the MIT License.
|
32
|
-
*/const Df="9.13.1";function Rf(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(nt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(nt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(nt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(nt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(nt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Es=Ie.__EXTEND_POINT__,Qe=Sn(Es),me={FALLBACK_TO_ROOT:Es,NOT_SUPPORTED_PRESERVE:Qe(),NOT_SUPPORTED_FORMATTER:Qe(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Qe(),NOT_SUPPORTED_GET_CHOICE_INDEX:Qe(),COMPONENT_NAME_LEGACY_COMPATIBLE:Qe(),NOT_FOUND_PARENT_SCOPE:Qe(),IGNORE_OBJ_FLATTEN:Qe(),NOTICE_DROP_ALLOW_COMPOSITION:Qe(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Qe()},Mf={[me.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[me.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[me.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[me.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[me.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[me.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[me.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[me.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[me.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[me.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Me(e,...t){return Ir(Mf[e],...t)}const Cs=we.__EXTEND_POINT__,Re=Sn(Cs),Y={UNEXPECTED_RETURN_TYPE:Cs,INVALID_ARGUMENT:Re(),MUST_BE_CALL_SETUP_TOP:Re(),NOT_INSTALLED:Re(),NOT_AVAILABLE_IN_LEGACY_MODE:Re(),REQUIRED_VALUE:Re(),INVALID_VALUE:Re(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Re(),NOT_INSTALLED_WITH_PROVIDE:Re(),UNEXPECTED_ERROR:Re(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Re(),BRIDGE_SUPPORT_VUE_2_ONLY:Re(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Re(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Re(),__EXTEND_POINT__:Re()};function Te(e,...t){return Lt(e,null,process.env.NODE_ENV!=="production"?{messages:Ff,args:t}:void 0)}const Ff={[Y.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Y.INVALID_ARGUMENT]:"Invalid argument",[Y.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Y.NOT_INSTALLED]:"Need to install with `app.use` function",[Y.UNEXPECTED_ERROR]:"Unexpected error",[Y.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Y.REQUIRED_VALUE]:"Required in value: {0}",[Y.INVALID_VALUE]:"Invalid value",[Y.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Y.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Y.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Y.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Y.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Y.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},sr=Xe("__translateVNode"),ir=Xe("__datetimeParts"),lr=Xe("__numberParts"),gt=Xe("__enableEmitter"),jt=Xe("__disableEmitter"),Ss=Xe("__setPluralRules"),Ns=Xe("__injectWithOption"),cr=Xe("__dispose");function Ht(e){if(!J(e))return e;for(const t in e)if(un(e,t))if(!t.includes("."))J(e[t])&&Ht(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,s=!1;for(let i=0;i<r;i++){if(n[i]in a||(a[n[i]]={}),!J(a[n[i]])){process.env.NODE_ENV!=="production"&&Oe(Me(me.IGNORE_OBJ_FLATTEN,{key:n[i]})),s=!0;break}a=a[n[i]]}s||(a[n[r]]=e[t],delete e[t]),J(a[n[r]])&&Ht(a[n[r]])}return e}function wn(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:s}=t,i=G(n)?n:ce(r)?{}:{[e]:{}};if(ce(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:d}=l;c?(i[c]=i[c]||{},rn(d,i[c])):rn(d,i)}else x(l)&&rn(JSON.parse(l),i)}),a==null&&s)for(const l in i)un(i,l)&&Ht(i[l]);return i}function Os(e){return e.type}function Ts(e,t,n){let r=J(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=wn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(J(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(J(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function ra(e){return o.createVNode(o.Text,null,e,0)}const oa="__INTLIFY_META__",aa=()=>[],xf=()=>!1;let sa=0;function ia(e){return(t,n,r,a)=>e(n,r,o.getCurrentInstance()||void 0,a)}const Bf=()=>{const e=o.getCurrentInstance();let t=null;return e&&(t=Os(e)[oa])?{[oa]:t}:null};function Mr(e={},t){const{__root:n,__injectWithOption:r}=e,a=n===void 0,s=e.flatJson,i=Ke?o.ref:o.shallowRef,l=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&l&&Za(Me(me.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=K(e.inheritLocale)?e.inheritLocale:!0;const d=i(n&&c?n.locale.value:x(e.locale)?e.locale:wt),u=i(n&&c?n.fallbackLocale.value:x(e.fallbackLocale)||ce(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:d.value),f=i(wn(d.value,e)),m=i(G(e.datetimeFormats)?e.datetimeFormats:{[d.value]:{}}),$=i(G(e.numberFormats)?e.numberFormats:{[d.value]:{}});let h=n?n.missingWarn:K(e.missingWarn)||lt(e.missingWarn)?e.missingWarn:!0,g=n?n.fallbackWarn:K(e.fallbackWarn)||lt(e.fallbackWarn)?e.fallbackWarn:!0,C=n?n.fallbackRoot:K(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,E=ae(e.missing)?e.missing:null,p=ae(e.missing)?ia(e.missing):null,_=ae(e.postTranslation)?e.postTranslation:null,w=n?n.warnHtmlMessage:K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const O=n?n.modifiers:G(e.modifiers)?e.modifiers:{};let k=e.pluralRules||n&&n.pluralRules,S;S=(()=>{a&&zo(null);const L={version:Df,locale:d.value,fallbackLocale:u.value,messages:f.value,modifiers:O,pluralRules:k,missing:p===null?void 0:p,missingWarn:h,fallbackWarn:g,fallbackFormat:y,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:w,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};L.datetimeFormats=m.value,L.numberFormats=$.value,L.__datetimeFormatters=G(S)?S.__datetimeFormatters:void 0,L.__numberFormatters=G(S)?S.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(L.__v_emitter=G(S)?S.__v_emitter:void 0);const R=hf(L);return a&&zo(R),R})(),Rt(S,d.value,u.value);function F(){return[d.value,u.value,f.value,m.value,$.value]}const B=o.computed({get:()=>d.value,set:L=>{d.value=L,S.locale=d.value}}),j=o.computed({get:()=>u.value,set:L=>{u.value=L,S.fallbackLocale=u.value,Rt(S,d.value,L)}}),se=o.computed(()=>f.value),ge=o.computed(()=>m.value),Z=o.computed(()=>$.value);function Ce(){return ae(_)?_:null}function $e(L){_=L,S.postTranslation=L}function Ee(){return E}function Q(L){L!==null&&(p=ia(L)),E=L,S.missing=p}function ee(L,R){return L!=="translate"||!R.resolvedMessage}const q=(L,R,z,fe,xe,yt)=>{F();let ot;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(S.fallbackContext=n?pf():void 0),ot=L(S)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(S.fallbackContext=void 0)}if(z!=="translate exists"&&Ne(ot)&&ot===On||z==="translate exists"&&!ot){const[Je,Dn]=R();if(process.env.NODE_ENV!=="production"&&n&&x(Je)&&ee(z,Dn)&&(C&&(Tn(g,Je)||ds(h,Je))&&Oe(Me(me.FALLBACK_TO_ROOT,{key:Je,type:z})),process.env.NODE_ENV!=="production")){const{__v_emitter:Dt}=S;Dt&&C&&Dt.emit("fallback",{type:z,key:Je,to:"global",groupId:`${z}:${Je}`})}return n&&C?fe(n):xe(Je)}else{if(yt(ot))return ot;throw Te(Y.UNEXPECTED_RETURN_TYPE)}};function ne(...L){return q(R=>Reflect.apply(Jo,null,[R,...L]),()=>nr(...L),"translate",R=>Reflect.apply(R.t,R,[...L]),R=>R,R=>x(R))}function ve(...L){const[R,z,fe]=L;if(fe&&!J(fe))throw Te(Y.INVALID_ARGUMENT);return ne(R,z,ke({resolvedMessage:!0},fe||{}))}function de(...L){return q(R=>Reflect.apply(Qo,null,[R,...L]),()=>rr(...L),"datetime format",R=>Reflect.apply(R.d,R,[...L]),()=>mn,R=>x(R))}function ue(...L){return q(R=>Reflect.apply(ta,null,[R,...L]),()=>or(...L),"number format",R=>Reflect.apply(R.n,R,[...L]),()=>mn,R=>x(R))}function ye(L){return L.map(R=>x(R)||Ne(R)||K(R)?ra(String(R)):R)}const Ae={normalize:ye,interpolate:L=>L,type:"vnode"};function Se(...L){return q(R=>{let z;const fe=R;try{fe.processor=Ae,z=Reflect.apply(Jo,null,[fe,...L])}finally{fe.processor=null}return z},()=>nr(...L),"translate",R=>R[sr](...L),R=>[ra(R)],R=>ce(R))}function re(...L){return q(R=>Reflect.apply(ta,null,[R,...L]),()=>or(...L),"number format",R=>R[lr](...L),aa,R=>x(R)||ce(R))}function V(...L){return q(R=>Reflect.apply(Qo,null,[R,...L]),()=>rr(...L),"datetime format",R=>R[ir](...L),aa,R=>x(R)||ce(R))}function P(L){k=L,S.pluralRules=k}function T(L,R){return q(()=>{if(!L)return!1;const z=x(R)?R:d.value,fe=ie(z),xe=S.messageResolver(fe,L);return l?xe!=null:ct(xe)||Ve(xe)||x(xe)},()=>[L],"translate exists",z=>Reflect.apply(z.te,z,[L,R]),xf,z=>K(z))}function M(L){let R=null;const z=os(S,u.value,d.value);for(let fe=0;fe<z.length;fe++){const xe=f.value[z[fe]]||{},yt=S.messageResolver(xe,L);if(yt!=null){R=yt;break}}return R}function X(L){const R=M(L);return R??(n?n.tm(L)||{}:{})}function ie(L){return f.value[L]||{}}function be(L,R){if(s){const z={[L]:R};for(const fe in z)un(z,fe)&&Ht(z[fe]);R=z[L]}f.value[L]=R,S.messages=f.value}function De(L,R){f.value[L]=f.value[L]||{};const z={[L]:R};if(s)for(const fe in z)un(z,fe)&&Ht(z[fe]);R=z[L],rn(R,f.value[L]),S.messages=f.value}function v(L){return m.value[L]||{}}function b(L,R){m.value[L]=R,S.datetimeFormats=m.value,ea(S,L,R)}function A(L,R){m.value[L]=ke(m.value[L]||{},R),S.datetimeFormats=m.value,ea(S,L,R)}function U(L){return $.value[L]||{}}function le(L,R){$.value[L]=R,S.numberFormats=$.value,na(S,L,R)}function oe(L,R){$.value[L]=ke($.value[L]||{},R),S.numberFormats=$.value,na(S,L,R)}sa++,n&&Ke&&(o.watch(n.locale,L=>{c&&(d.value=L,S.locale=L,Rt(S,d.value,u.value))}),o.watch(n.fallbackLocale,L=>{c&&(u.value=L,S.fallbackLocale=L,Rt(S,d.value,u.value))}));const te={id:sa,locale:B,fallbackLocale:j,get inheritLocale(){return c},set inheritLocale(L){c=L,L&&n&&(d.value=n.locale.value,u.value=n.fallbackLocale.value,Rt(S,d.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:se,get modifiers(){return O},get pluralRules(){return k||{}},get isGlobal(){return a},get missingWarn(){return h},set missingWarn(L){h=L,S.missingWarn=h},get fallbackWarn(){return g},set fallbackWarn(L){g=L,S.fallbackWarn=g},get fallbackRoot(){return C},set fallbackRoot(L){C=L},get fallbackFormat(){return y},set fallbackFormat(L){y=L,S.fallbackFormat=y},get warnHtmlMessage(){return w},set warnHtmlMessage(L){w=L,S.warnHtmlMessage=L},get escapeParameter(){return N},set escapeParameter(L){N=L,S.escapeParameter=L},t:ne,getLocaleMessage:ie,setLocaleMessage:be,mergeLocaleMessage:De,getPostTranslationHandler:Ce,setPostTranslationHandler:$e,getMissingHandler:Ee,setMissingHandler:Q,[Ss]:P};return te.datetimeFormats=ge,te.numberFormats=Z,te.rt=ve,te.te=T,te.tm=X,te.d=de,te.n=ue,te.getDateTimeFormat=v,te.setDateTimeFormat=b,te.mergeDateTimeFormat=A,te.getNumberFormat=U,te.setNumberFormat=le,te.mergeNumberFormat=oe,te[Ns]=r,te[sr]=Se,te[ir]=V,te[lr]=re,process.env.NODE_ENV!=="production"&&(te[gt]=L=>{S.__v_emitter=L},te[jt]=()=>{S.__v_emitter=void 0}),te}function Vf(e){const t=x(e.locale)?e.locale:wt,n=x(e.fallbackLocale)||ce(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ae(e.missing)?e.missing:void 0,a=K(e.silentTranslationWarn)||lt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=K(e.silentFallbackWarn)||lt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=K(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=G(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,u=ae(e.postTranslation)?e.postTranslation:void 0,f=x(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,$=K(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Oe(Me(me.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Oe(Me(me.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let h=e.messages;if(G(e.sharedMessages)){const N=e.sharedMessages;h=Object.keys(N).reduce((k,S)=>{const D=k[S]||(k[S]={});return ke(D,N[S]),k},h||{})}const{__i18n:g,__root:C,__injectWithOption:y}=e,E=e.datetimeFormats,p=e.numberFormats,_=e.flatJson,w=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:h,flatJson:_,datetimeFormats:E,numberFormats:p,missing:r,missingWarn:a,fallbackWarn:s,fallbackRoot:i,fallbackFormat:l,modifiers:c,pluralRules:d,postTranslation:u,warnHtmlMessage:f,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:$,translateExistCompatible:w,__i18n:g,__root:C,__injectWithOption:y}}function dr(e={},t){{const n=Mr(Vf(e)),{__extender:r}=e,a={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Oe(Me(me.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&Oe(Me(me.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return K(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=K(s)?!s:s},get silentFallbackWarn(){return K(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=K(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Oe(Me(me.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&Oe(Me(me.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[i,l,c]=s,d={};let u=null,f=null;if(!x(i))throw Te(Y.INVALID_ARGUMENT);const m=i;return x(l)?d.locale=l:ce(l)?u=l:G(l)&&(f=l),ce(c)?u=c:G(c)&&(f=c),Reflect.apply(n.t,n,[m,u||f||{},d])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[i,l,c]=s,d={plural:1};let u=null,f=null;if(!x(i))throw Te(Y.INVALID_ARGUMENT);const m=i;return x(l)?d.locale=l:Ne(l)?d.plural=l:ce(l)?u=l:G(l)&&(f=l),x(c)?d.locale=c:ce(c)?u=c:G(c)&&(f=c),Reflect.apply(n.t,n,[m,u||f||{},d])},te(s,i){return n.te(s,i)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,i){n.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){n.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,i){n.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){n.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,i){n.setNumberFormat(s,i)},mergeNumberFormat(s,i){n.mergeNumberFormat(s,i)},getChoiceIndex(s,i){return process.env.NODE_ENV!=="production"&&Oe(Me(me.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return a.__extender=r,process.env.NODE_ENV!=="production"&&(a.__enableEmitter=s=>{const i=n;i[gt]&&i[gt](s)},a.__disableEmitter=()=>{const s=n;s[jt]&&s[jt]()}),a}}const Fr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Uf({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===o.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function ws(e){return o.Fragment}const jf=o.defineComponent({name:"i18n-t",props:ke({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ne(e)||!isNaN(e)}},Fr),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||It({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(f=>f!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=x(e.plural)?+e.plural:e.plural);const l=Uf(t,s),c=a[sr](e.keypath,l,i),d=ke({},r),u=x(e.tag)||J(e.tag)?e.tag:ws();return o.h(u,d,c)}}}),Vn=jf;function Hf(e){return ce(e)&&!x(e[0])}function ks(e,t,n,r){const{slots:a,attrs:s}=t;return()=>{const i={part:!0};let l={};e.locale&&(i.locale=e.locale),x(e.format)?i.key=e.format:J(e.format)&&(x(e.format.key)&&(i.key=e.format.key),l=Object.keys(e.format).reduce((m,$)=>n.includes($)?ke({},m,{[$]:e.format[$]}):m,{}));const c=r(e.value,i,l);let d=[i.key];ce(c)?d=c.map((m,$)=>{const h=a[m.type],g=h?h({[m.type]:m.value,index:$,parts:c}):[m.value];return Hf(g)&&(g[0].key=`${m.type}-${$}`),g}):x(c)&&(d=[c]);const u=ke({},s),f=x(e.tag)||J(e.tag)?e.tag:ws();return o.h(f,u,d)}}const Gf=o.defineComponent({name:"i18n-n",props:ke({value:{type:Number,required:!0},format:{type:[String,Object]}},Fr),setup(e,t){const n=e.i18n||It({useScope:e.scope,__useComponent:!0});return ks(e,t,_s,(...r)=>n[lr](...r))}}),la=Gf,Wf=o.defineComponent({name:"i18n-d",props:ke({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Fr),setup(e,t){const n=e.i18n||It({useScope:e.scope,__useComponent:!0});return ks(e,t,ys,(...r)=>n[ir](...r))}}),ca=Wf;function Kf(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function zf(e){const t=i=>{const{instance:l,modifiers:c,value:d}=i;if(!l||!l.$)throw Te(Y.UNEXPECTED_ERROR);const u=Kf(e,l.$);process.env.NODE_ENV!=="production"&&c.preserve&&Oe(Me(me.NOT_SUPPORTED_PRESERVE));const f=da(d);return[Reflect.apply(u.t,u,[...ua(f)]),u]};return{created:(i,l)=>{const[c,d]=t(l);Ke&&e.global===d&&(i.__i18nWatcher=o.watch(d.locale,()=>{l.instance&&l.instance.$forceUpdate()})),i.__composer=d,i.textContent=c},unmounted:i=>{Ke&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:l})=>{if(i.__composer){const c=i.__composer,d=da(l);i.textContent=Reflect.apply(c.t,c,[...ua(d)])}},getSSRProps:i=>{const[l]=t(i);return{textContent:l}}}}function da(e){if(x(e))return{path:e};if(G(e)){if(!("path"in e))throw Te(Y.REQUIRED_VALUE,"path");return e}else throw Te(Y.INVALID_VALUE)}function ua(e){const{path:t,locale:n,args:r,choice:a,plural:s}=e,i={},l=r||{};return x(n)&&(i.locale=n),Ne(a)&&(i.plural=a),Ne(s)&&(i.plural=s),[t,l,i]}function Yf(e,t,...n){const r=G(n[0])?n[0]:{},a=!!r.useI18nComponentName,s=K(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&a&&Oe(Me(me.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Vn.name})),s&&([a?"i18n":Vn.name,"I18nT"].forEach(i=>e.component(i,Vn)),[la.name,"I18nN"].forEach(i=>e.component(i,la)),[ca.name,"I18nD"].forEach(i=>e.component(i,ca))),e.directive("t",zf(t))}const Un={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},qf={"vue-i18n-resource-inspector":"Search for scopes ..."},Xf={"vue-i18n-timeline":16764185},Ls="vue-i18n: composer properties";let ur;async function Jf(e,t){return new Promise((n,r)=>{try{Af({id:"vue-devtools-plugin-vue-i18n",label:Un["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Ls],app:e},a=>{ur=a,a.on.visitComponentTree(({componentInstance:i,treeNode:l})=>{Zf(i,l,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:l})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&fa(l,i.vnode.el.__VUE_I18N__):fa(l,i.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:Un["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:qf["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&r0(i,t)});const s=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),a0(i,t),i.nodeId==="global"){if(!s.has(i.app)){const[l]=await a.getComponentInstances(i.app);s.set(i.app,l)}a.highlightElement(s.get(i.app))}else{const l=o0(i.nodeId,t);l&&a.highlightElement(l)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&i0(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:Un["vue-i18n-timeline"],color:Xf["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),r(!1)}})}function Is(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Zf(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const a={label:`i18n (${Is(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function fa(e,t){const n=Ls;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:xr(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function xr(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];ae(r)&&"source"in r?t[n]=n0(r):ct(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:J(r)?t[n]=xr(r):t[n]=r}),t}const Qf={"<":"<",">":">",'"':""","&":"&"};function e0(e){return e.replace(/[<>"&]/g,t0)}function t0(e){return Qf[e]||e}function n0(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${e0(e.source)}")`:"(?)"}`}}}function r0(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const s=t.mode==="composition"?a:a.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${Is(r)} Scope`})}}function o0(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function Ps(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function a0(e,t){const n=Ps(e.nodeId,t);return n&&(e.state=s0(n)),null}function s0(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const a="Locale messages info",s=[{type:a,key:"messages",editable:!1,value:xr(e.messages.value)}];t[a]=s;{const i="Datetime formats info",l=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=l;const c="Datetime formats info",d=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=d}return t}function Gt(e,t){if(ur){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),ur.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function i0(e,t){const n=Ps(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&x(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(x(e.state.value)||ce(e.state.value)||J(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&K(e.state.value)&&(n.inheritLocale=e.state.value)}}function l0(e,t,n){return{beforeCreate(){const r=o.getCurrentInstance();if(!r)throw Te(Y.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const s=a.i18n;if(a.__i18n&&(s.__i18n=a.__i18n),s.__root=t,this===this.$root)this.$i18n=ma(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=dr(s);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=ma(e,a);else{this.$i18n=dr({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Ts(t,a,a),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,i)=>this.$i18n.te(s,i),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const a=this.__v_emitter=Pr();r.__enableEmitter&&r.__enableEmitter(a),a.on("*",Gt)}},unmounted(){const r=o.getCurrentInstance();if(!r)throw Te(Y.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Gt),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(r),delete this.$i18n}}}function ma(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Ss](t.pluralizationRules||e.pluralizationRules);const n=wn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const c0=Xe("global-vue-i18n");function d0(e={},t){const n=__VUE_I18N_LEGACY_API__&&K(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=K(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[i,l]=u0(e,n),c=Xe(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&a&&Oe(Me(me.NOTICE_DROP_ALLOW_COMPOSITION));function d(m){return s.get(m)||null}function u(m,$){s.set(m,$)}function f(m){s.delete(m)}{const m={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install($,...h){if(process.env.NODE_ENV!=="production"&&($.__VUE_I18N__=m),$.__VUE_I18N_SYMBOL__=c,$.provide($.__VUE_I18N_SYMBOL__,m),G(h[0])){const y=h[0];m.__composerExtend=y.__composerExtend,m.__vueI18nExtend=y.__vueI18nExtend}let g=null;!n&&r&&(g=_0($,m.global)),__VUE_I18N_FULL_INSTALL__&&Yf($,m,...h),__VUE_I18N_LEGACY_API__&&n&&$.mixin(l0(l,l.__composer,m));const C=$.unmount;if($.unmount=()=>{g&&g(),m.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await Jf($,m))throw Te(Y.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const E=Pr();if(n){const p=l;p.__enableEmitter&&p.__enableEmitter(E)}else{const p=l;p[gt]&&p[gt](E)}E.on("*",Gt)}},get global(){return l},dispose(){i.stop()},__instances:s,__getInstance:d,__setInstance:u,__deleteInstance:f};return m}}function It(e={}){const t=o.getCurrentInstance();if(t==null)throw Te(Y.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Te(Y.NOT_INSTALLED);const n=f0(t),r=p0(n),a=Os(t),s=m0(e,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Te(Y.NOT_AVAILABLE_IN_LEGACY_MODE);return v0(t,s,r,e)}if(s==="global")return Ts(r,e,a),r;if(s==="parent"){let c=h0(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Oe(Me(me.NOT_FOUND_PARENT_SCOPE)),c=r),c}const i=n;let l=i.__getInstance(t);if(l==null){const c=ke({},e);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),l=Mr(c),i.__composerExtend&&(l[cr]=i.__composerExtend(l)),$0(i,t,l),i.__setInstance(t,l)}return l}function u0(e,t,n){const r=o.effectScope();{const a=__VUE_I18N_LEGACY_API__&&t?r.run(()=>dr(e)):r.run(()=>Mr(e));if(a==null)throw Te(Y.UNEXPECTED_ERROR);return[r,a]}}function f0(e){{const t=o.inject(e.isCE?c0:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Te(e.isCE?Y.NOT_INSTALLED_WITH_PROVIDE:Y.UNEXPECTED_ERROR);return t}}function m0(e,t){return Cn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function p0(e){return e.mode==="composition"?e.global:e.global.__composer}function h0(e,t,n=!1){let r=null;const a=t.root;let s=g0(t,n);for(;s!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=i.__getInstance(s);l!=null&&(r=l.__composer,n&&r&&!r[Ns]&&(r=null))}if(r!=null||a===s)break;s=s.parent}return r}function g0(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function $0(e,t,n){let r=null;o.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=Pr();const a=n;a[gt]&&a[gt](r),r.on("*",Gt)}},t),o.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",Gt),a[jt]&&a[jt](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=a[cr];s&&(s(),delete a[cr])},t)}function v0(e,t,n,r={}){const a=t==="local",s=o.shallowRef(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Te(Y.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=K(r.inheritLocale)?r.inheritLocale:!x(r.locale),l=o.ref(!a||i?n.locale.value:x(r.locale)?r.locale:wt),c=o.ref(!a||i?n.fallbackLocale.value:x(r.fallbackLocale)||ce(r.fallbackLocale)||G(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),d=o.ref(wn(l.value,r)),u=o.ref(G(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),f=o.ref(G(r.numberFormats)?r.numberFormats:{[l.value]:{}}),m=a?n.missingWarn:K(r.missingWarn)||lt(r.missingWarn)?r.missingWarn:!0,$=a?n.fallbackWarn:K(r.fallbackWarn)||lt(r.fallbackWarn)?r.fallbackWarn:!0,h=a?n.fallbackRoot:K(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,C=ae(r.missing)?r.missing:null,y=ae(r.postTranslation)?r.postTranslation:null,E=a?n.warnHtmlMessage:K(r.warnHtmlMessage)?r.warnHtmlMessage:!0,p=!!r.escapeParameter,_=a?n.modifiers:G(r.modifiers)?r.modifiers:{},w=r.pluralRules||a&&n.pluralRules;function N(){return[l.value,c.value,d.value,u.value,f.value]}const O=o.computed({get:()=>s.value?s.value.locale.value:l.value,set:T=>{s.value&&(s.value.locale.value=T),l.value=T}}),k=o.computed({get:()=>s.value?s.value.fallbackLocale.value:c.value,set:T=>{s.value&&(s.value.fallbackLocale.value=T),c.value=T}}),S=o.computed(()=>s.value?s.value.messages.value:d.value),D=o.computed(()=>u.value),F=o.computed(()=>f.value);function B(){return s.value?s.value.getPostTranslationHandler():y}function j(T){s.value&&s.value.setPostTranslationHandler(T)}function se(){return s.value?s.value.getMissingHandler():C}function ge(T){s.value&&s.value.setMissingHandler(T)}function Z(T){return N(),T()}function Ce(...T){return s.value?Z(()=>Reflect.apply(s.value.t,null,[...T])):Z(()=>"")}function $e(...T){return s.value?Reflect.apply(s.value.rt,null,[...T]):""}function Ee(...T){return s.value?Z(()=>Reflect.apply(s.value.d,null,[...T])):Z(()=>"")}function Q(...T){return s.value?Z(()=>Reflect.apply(s.value.n,null,[...T])):Z(()=>"")}function ee(T){return s.value?s.value.tm(T):{}}function q(T,M){return s.value?s.value.te(T,M):!1}function ne(T){return s.value?s.value.getLocaleMessage(T):{}}function ve(T,M){s.value&&(s.value.setLocaleMessage(T,M),d.value[T]=M)}function de(T,M){s.value&&s.value.mergeLocaleMessage(T,M)}function ue(T){return s.value?s.value.getDateTimeFormat(T):{}}function ye(T,M){s.value&&(s.value.setDateTimeFormat(T,M),u.value[T]=M)}function _e(T,M){s.value&&s.value.mergeDateTimeFormat(T,M)}function Ae(T){return s.value?s.value.getNumberFormat(T):{}}function Se(T,M){s.value&&(s.value.setNumberFormat(T,M),f.value[T]=M)}function re(T,M){s.value&&s.value.mergeNumberFormat(T,M)}const V={get id(){return s.value?s.value.id:-1},locale:O,fallbackLocale:k,messages:S,datetimeFormats:D,numberFormats:F,get inheritLocale(){return s.value?s.value.inheritLocale:i},set inheritLocale(T){s.value&&(s.value.inheritLocale=T)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(d.value)},get modifiers(){return s.value?s.value.modifiers:_},get pluralRules(){return s.value?s.value.pluralRules:w},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:m},set missingWarn(T){s.value&&(s.value.missingWarn=T)},get fallbackWarn(){return s.value?s.value.fallbackWarn:$},set fallbackWarn(T){s.value&&(s.value.missingWarn=T)},get fallbackRoot(){return s.value?s.value.fallbackRoot:h},set fallbackRoot(T){s.value&&(s.value.fallbackRoot=T)},get fallbackFormat(){return s.value?s.value.fallbackFormat:g},set fallbackFormat(T){s.value&&(s.value.fallbackFormat=T)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:E},set warnHtmlMessage(T){s.value&&(s.value.warnHtmlMessage=T)},get escapeParameter(){return s.value?s.value.escapeParameter:p},set escapeParameter(T){s.value&&(s.value.escapeParameter=T)},t:Ce,getPostTranslationHandler:B,setPostTranslationHandler:j,getMissingHandler:se,setMissingHandler:ge,rt:$e,d:Ee,n:Q,tm:ee,te:q,getLocaleMessage:ne,setLocaleMessage:ve,mergeLocaleMessage:de,getDateTimeFormat:ue,setDateTimeFormat:ye,mergeDateTimeFormat:_e,getNumberFormat:Ae,setNumberFormat:Se,mergeNumberFormat:re};function P(T){T.locale.value=l.value,T.fallbackLocale.value=c.value,Object.keys(d.value).forEach(M=>{T.mergeLocaleMessage(M,d.value[M])}),Object.keys(u.value).forEach(M=>{T.mergeDateTimeFormat(M,u.value[M])}),Object.keys(f.value).forEach(M=>{T.mergeNumberFormat(M,f.value[M])}),T.escapeParameter=p,T.fallbackFormat=g,T.fallbackRoot=h,T.fallbackWarn=$,T.missingWarn=m,T.warnHtmlMessage=E}return o.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Te(Y.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const T=s.value=e.proxy.$i18n.__composer;t==="global"?(l.value=T.locale.value,c.value=T.fallbackLocale.value,d.value=T.messages.value,u.value=T.datetimeFormats.value,f.value=T.numberFormats.value):a&&P(T)}),V}const y0=["locale","fallbackLocale","availableLocales"],pa=["t","rt","d","n","tm","te"];function _0(e,t){const n=Object.create(null);return y0.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s)throw Te(Y.UNEXPECTED_ERROR);const i=o.isRef(s.value)?{get(){return s.value.value},set(l){s.value.value=l}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,a,i)}),e.config.globalProperties.$i18n=n,pa.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s||!s.value)throw Te(Y.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,s)}),()=>{delete e.config.globalProperties.$i18n,pa.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}Rf();__INTLIFY_JIT_COMPILATION__?Ko(_f):Ko(yf);df(Hu);uf(os);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=nt();e.__INTLIFY__=!0,Zu(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const b0={width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E0=["fill"],Br={__name:"IconCross",props:{fill:{type:String,default:"rgb(var(--black))"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",b0,[o.createElementVNode("path",{fill:e.fill,"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z"},null,8,E0)]))}},C0={key:"popup-content",class:"pd-small z-index-6 popup-wrapper"},S0={key:0,class:"mn-b-small"},As={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String,title:String},emits:["close-popup"],setup(e,{emit:t}){const n=e,r=t;function a(){r("close-popup")}return o.watch(()=>n.isPopupOpen,i=>{i?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),Lr(),kr(),It({messages:{en:{},ru:{}}}),(i,l)=>(o.openBlock(),o.createBlock(o.Transition,{name:"TransitionTranslateY",appear:""},{default:o.withCtx(()=>[e.isPopupOpen?(o.openBlock(),o.createBlock(o.Teleport,{key:0,to:"body"},[e.isPopupOpen?(o.openBlock(),o.createElementBlock("div",C0,[o.createVNode(o.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:o.withCtx(()=>[o.createElementVNode("section",o.mergeProps({class:"pos-relative"},i.$attrs,{class:i.$attrs.class}),[e.title?(o.openBlock(),o.createElementBlock("h4",S0,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.createVNode(Br,{fill:"rgb(var(--white))",onClick:l[0]||(l[0]=c=>a()),class:"cursor-pointer bg-second pd-micro radius-extra pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-medium z-index-5"}),o.renderSlot(i.$slots,"default")],16)]),_:3}),o.createElementVNode("div",{onClick:l[1]||(l[1]=c=>a()),class:o.normalizeClass([{active:e.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)]),_:3}))}},N0=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),O0={class:"flex-v-center flex-nowrap flex"},T0={key:0,class:"br-solid br-2px br-grey-transp-25 pos-absolute pos-t-0 pos-r-0 radius-extra w-100 h-100"},w0={key:0,class:"mn-r-auto t-transp mn-r-small"},k0=["name","value","checked"],Vr={__name:"Radio",props:{label:String,name:String,value:!1,radio:[Object,String]},emits:["update:radio"],setup(e,{emit:t}){const n=t;return(r,a)=>(o.openBlock(),o.createElementBlock("label",O0,[o.createElementVNode("div",{class:o.normalizeClass(["cursor-pointer mn-r-thin radius-extra pd-micro h-100 aspect-1x1 pos-relative",{"bg-main":e.radio===e.value}])},[o.createElementVNode("div",{class:o.normalizeClass(["radius-extra pd-micro w-100 h-100",{"bg-white":e.radio===e.value}])},null,2),e.radio!==e.value?(o.openBlock(),o.createElementBlock("div",T0)):o.createCommentVNode("",!0)],2),e.label?(o.openBlock(),o.createElementBlock("div",w0,[o.createElementVNode("span",null,o.toDisplayString(e.label),1)])):o.createCommentVNode("",!0),o.createElementVNode("input",{onInput:a[0]||(a[0]=s=>r.text=n("update:radio",s.target.value)),class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:e.value===e.radio},null,40,k0)]))}},L0=Object.freeze(Object.defineProperty({__proto__:null,default:Vr},Symbol.toStringTag,{value:"Module"})),I0={key:0,class:"t-transp mn-r-small"},P0={class:"w-100"},A0=["onClick"],D0={key:0,class:"w-100"},R0={key:0,class:"mn-t-thin invalid-feedback"},M0={__name:"Select",props:{label:String,placeholder:{type:String,default:"Please select an item"},select:[String,Object],property:String,options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(e,{emit:t}){let n=yn;const r=t,a=e,s=o.ref(!1),i=o.ref(a.property?f(a.select,a.property,a.options):a.select),l=o.computed(()=>a.select?a.options.filter(m=>m!==a.select):a.options);o.watch(()=>a.select,m=>{i.value=a.property?f(a.select,a.property,a.options):a.select});const c=()=>{s.value=!s.value,r(s.value?"focus":"blur")};function d(){s.value=!1}const u=m=>{i.value=m,c(),a.property?r("update:select",i.value[a.property]):r("update:select",i.value)};function f(m,$,h){for(const g of h)if(g[$]===m||g===m)return g;return null}return(m,$)=>{var h,g;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.withDirectives((o.openBlock(),o.createElementBlock("div",{onClick:o.withModifiers(c,["stop"]),class:o.normalizeClass([m.$attrs.class,"cursor-pointer flex-v-center flex-nowrap flex pos-relative"])},[e.label?(o.openBlock(),o.createElementBlock("div",I0,[o.createElementVNode("span",null,o.toDisplayString(e.label),1)])):o.createCommentVNode("",!0),o.createElementVNode("li",P0,[o.createElementVNode("span",null,o.toDisplayString((h=i.value)!=null&&h.name?(g=i.value)==null?void 0:g.name:i.value||e.placeholder),1)]),o.createVNode(o.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("ul",{class:o.normalizeClass([m.$attrs.class,"bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),style:{"min-width":"max-content"}},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,C=>(o.openBlock(),o.createElementBlock("li",{onClick:o.withModifiers(y=>u(C),["stop"])},[C?(o.openBlock(),o.createElementBlock("span",D0,o.toDisplayString(C.name||C),1)):o.createCommentVNode("",!0)],8,A0))),256))],2),[[o.vShow,s.value]])]),_:1})],2)),[[o.unref(n),d]]),o.createVNode(o.Transition,{mode:"out-in",name:"fade"},{default:o.withCtx(()=>[e.validation?(o.openBlock(),o.createElementBlock("div",R0," * "+o.toDisplayString(e.validation.message),1)):o.createCommentVNode("",!0)]),_:1})],64)}}},Ds=qe(M0,[["__scopeId","data-v-bf25c24d"]]),F0=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"}));function jn(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function x0(e){return(...t)=>!e(...t)}function B0(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function Rs(e,t,n,r){return t?e.filter(a=>B0(r(a,n),t)).sort((a,s)=>r(a,n).length-r(s,n).length):e}function V0(e){return e.filter(t=>!t.$isLabel)}function Hn(e,t){return n=>n.reduce((r,a)=>a[e]&&a[e].length?(r.push({$groupLabel:a[t],$isLabel:!0}),r.concat(a[e])):r,[])}function U0(e,t,n,r,a){return s=>s.map(i=>{if(!i[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=Rs(i[n],e,t,a);return l.length?{[r]:i[r],[n]:l}:[]})}const ha=(...e)=>t=>e.reduce((n,r)=>r(n),t),j0={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return jn(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):Rs(n,t,this.label,this.customLabel):n=this.groupValues?Hn(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(x0(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return ha(U0(t,n,this.groupValues,this.groupLabel,this.customLabel),Hn(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return ha(Hn(this.groupValues,this.groupLabel),V0)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(jn(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return jn(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.internalValue.filter(r=>t[this.groupValues].indexOf(r)===-1);this.$emit("update:modelValue",n)}else{let n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},H0={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},G0={name:"vue-multiselect",mixins:[j0,H0],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}},W0=["tabindex","aria-owns"],K0={ref:"tags",class:"multiselect__tags"},z0={class:"multiselect__tags-wrap"},Y0=["textContent"],q0=["onKeypress","onMousedown"],X0=["textContent"],J0={class:"multiselect__spinner"},Z0=["name","id","placeholder","value","disabled","tabindex","aria-controls"],Q0=["id"],e1={key:0},t1={class:"multiselect__option"},n1=["id","role"],r1=["onClick","onMouseenter","data-select","data-selected","data-deselect"],o1=["data-select","data-deselect","onMouseenter","onMousedown"],a1={class:"multiselect__option"},s1={class:"multiselect__option"};function i1(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:o.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect flex flex-v-center"]),onFocus:t[13]||(t[13]=i=>e.activate()),onBlur:t[14]||(t[14]=i=>e.searchable?!1:e.deactivate()),onKeydown:[t[15]||(t[15]=o.withKeys(o.withModifiers(i=>e.pointerForward(),["self","prevent"]),["down"])),t[16]||(t[16]=o.withKeys(o.withModifiers(i=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[17]||(t[17]=o.withKeys(o.withModifiers(i=>e.addPointerElement(i),["stop","self"]),["enter","tab"])),onKeyup:t[18]||(t[18]=o.withKeys(i=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[o.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[o.createElementVNode("div",{onMousedown:t[0]||(t[0]=o.withModifiers(i=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),o.renderSlot(e.$slots,"clear",{search:e.search}),o.createElementVNode("div",K0,[o.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:s.visibleValues,isOpen:e.isOpen},()=>[o.withDirectives(o.createElementVNode("div",z0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.visibleValues,(i,l)=>o.renderSlot(e.$slots,"tag",{option:i,search:e.search,remove:e.removeElement},()=>[(o.openBlock(),o.createElementBlock("span",{class:"multiselect__tag",key:l},[o.createElementVNode("span",{textContent:o.toDisplayString(e.getOptionLabel(i))},null,8,Y0),o.createElementVNode("i",{tabindex:"1",onKeypress:o.withKeys(o.withModifiers(c=>e.removeElement(i),["prevent"]),["enter"]),onMousedown:o.withModifiers(c=>e.removeElement(i),["prevent"]),class:"multiselect__tag-icon"},null,40,q0)]))])),256))],512),[[o.vShow,s.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?o.renderSlot(e.$slots,"limit",{key:0},()=>[o.createElementVNode("strong",{class:"multiselect__strong",textContent:o.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,X0)]):o.createCommentVNode("",!0)]),o.createVNode(o.Transition,{name:"multiselect__loading"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"loading",{},()=>[o.withDirectives(o.createElementVNode("div",J0,null,512),[[o.vShow,n.loading]])])]),_:3}),e.searchable?(o.openBlock(),o.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:e.placeholder,style:o.normalizeStyle(s.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,onInput:t[1]||(t[1]=i=>e.updateSearch(i.target.value)),onFocus:t[2]||(t[2]=o.withModifiers(i=>e.activate(),["prevent"])),onBlur:t[3]||(t[3]=o.withModifiers(i=>e.deactivate(),["prevent"])),onKeyup:t[4]||(t[4]=o.withKeys(i=>e.deactivate(),["esc"])),onKeydown:[t[5]||(t[5]=o.withKeys(o.withModifiers(i=>e.pointerForward(),["prevent"]),["down"])),t[6]||(t[6]=o.withKeys(o.withModifiers(i=>e.pointerBackward(),["prevent"]),["up"])),t[8]||(t[8]=o.withKeys(o.withModifiers(i=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[7]||(t[7]=o.withKeys(o.withModifiers(i=>e.addPointerElement(i),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,Z0)):o.createCommentVNode("",!0),s.isSingleLabelVisible?(o.openBlock(),o.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[9]||(t[9]=o.withModifiers((...i)=>e.toggle&&e.toggle(...i),["prevent"]))},[o.renderSlot(e.$slots,"singleLabel",{option:s.singleValue},()=>[o.createTextVNode(o.toDisplayString(e.currentOptionLabel),1)])],32)):o.createCommentVNode("",!0),s.isPlaceholderVisible?(o.openBlock(),o.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[10]||(t[10]=o.withModifiers((...i)=>e.toggle&&e.toggle(...i),["prevent"]))},[o.renderSlot(e.$slots,"placeholder",{},()=>[o.createTextVNode(o.toDisplayString(e.placeholder),1)])],32)):o.createCommentVNode("",!0)],512),o.createVNode(o.Transition,{name:"multiselect"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{class:o.normalizeClass(["multiselect__content-wrapper",e.$attrs.class]),onFocus:t[11]||(t[11]=(...i)=>e.activate&&e.activate(...i)),tabindex:"-1",onMousedown:t[12]||(t[12]=o.withModifiers(()=>{},["prevent"])),style:o.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[o.createElementVNode("ul",{class:"multiselect__content",style:o.normalizeStyle(s.contentStyle),role:"listbox",id:"listbox-"+e.id},[o.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(o.openBlock(),o.createElementBlock("li",e1,[o.createElementVNode("span",t1,[o.renderSlot(e.$slots,"maxElements",{},()=>[o.createTextVNode("Maximum of "+o.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):o.createCommentVNode("",!0),!e.max||e.internalValue.length<e.max?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.filteredOptions,(i,l)=>(o.openBlock(),o.createElementBlock("li",{class:"multiselect__element",key:l,id:e.id+"-"+l,role:i&&(i.$isLabel||i.$isDisabled)?null:"option"},[i&&(i.$isLabel||i.$isDisabled)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass([e.optionHighlight(l,i),"multiselect__option"]),onClick:o.withModifiers(c=>e.select(i),["stop"]),onMouseenter:o.withModifiers(c=>e.pointerSet(l),["self"]),"data-select":i&&i.isTag?e.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[o.renderSlot(e.$slots,"option",{option:i,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(i)),1)])],42,r1)),i&&(i.$isLabel||i.$isDisabled)?(o.openBlock(),o.createElementBlock("span",{key:1,"data-select":e.groupSelect&&s.selectGroupLabelText,"data-deselect":e.groupSelect&&s.deselectGroupLabelText,class:o.normalizeClass([e.groupHighlight(l,i),"multiselect__option"]),onMouseenter:o.withModifiers(c=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:o.withModifiers(c=>e.selectGroup(i),["prevent"])},[o.renderSlot(e.$slots,"option",{option:i,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(i)),1)])],42,o1)):o.createCommentVNode("",!0)],8,n1))),128)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",a1,[o.renderSlot(e.$slots,"noResult",{search:e.search},()=>[o.createTextVNode("No elements found. Consider changing the search query.")])])],512),[[o.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",s1,[o.renderSlot(e.$slots,"noOptions",{},()=>[o.createTextVNode("List is empty.")])])],512),[[o.vShow,n.showNoOptions&&(e.options.length===0||s.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),o.renderSlot(e.$slots,"afterList")],12,Q0)],38),[[o.vShow,e.isOpen]])]),_:3})],42,W0)}const Ms=qe(G0,[["render",i1]]),l1=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),c1={class:"spoiler"},Ur={__name:"Spoiler",props:{status:{type:Boolean,default:!1}},setup(e){const t=e,n=o.ref(!1);return t.status&&(n.value=t.status),(r,a)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{onClick:a[0]||(a[0]=s=>n.value=!n.value),class:"flex-v-center flex-nowrap flex"},[o.renderSlot(r.$slots,"header",{isOpen:n.value})]),o.createVNode(o.Transition,{name:"collapse"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",c1,[o.renderSlot(r.$slots,"content")],512),[[o.vShow,n.value]])]),_:3})]))}},d1=Object.freeze(Object.defineProperty({__proto__:null,default:Ur},Symbol.toStringTag,{value:"Module"})),u1={class:"flex-nowrap flex-v-center flex pos-relative"},f1=["onClick"],Fs={__name:"Tab",props:{tabs:Array,selected:String,callback:Function},emits:["update:selected"],setup(e,{emit:t}){const n=t,r=e,a=o.ref(0);if(r.selected){const i=r.tabs.findIndex(l=>l.value===r.selected);i!==-1&&(a.value=i)}function s(i,l){a.value=i,n("update:selected",l.value),r.callback&&r.callback()}return(i,l)=>(o.openBlock(),o.createElementBlock("div",u1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.tabs,(c,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,onClick:u=>s(d,c),class:o.normalizeClass([{"t-transp":d!==a.value,"br-solid br-b-3px br-main":d===a.value},"z-index-1 t-center pd-small w-max"])},[o.createElementVNode("label",null,o.toDisplayString(c.name),1)],10,f1))),128))]))}},m1=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),xs={__name:"Tooltip",props:{text:{type:String,required:!0}},setup(e){const t=o.ref(!1),n=o.reactive({position:"absolute",width:"max-content",zIndex:1e3,background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"3px",fontSize:"14px",display:"none"});function r(s){t.value=!0,n.left=`${s.clientX/100+10}px`,n.top=`${s.clientY/100+10}px`,n.display="block"}function a(){t.value=!1,n.display="none"}return(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:"cursor-pointer tooltip-container",onMouseover:r,onMouseleave:a},[o.renderSlot(s.$slots,"default"),o.createElementVNode("div",{class:"tooltip-content",style:o.normalizeStyle(n)},o.toDisplayString(e.text),5)],32))}},p1=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),h1={key:0,class:"cursor-pointer t-second"},Bs={__name:"Text",props:{maxLen:{type:Number,required:!0},text:{type:String,required:!0},showToggleText:{type:Boolean,default:!1}},setup(e){const t=e,n=o.ref(!1),r=o.computed(()=>t.text.length>t.maxLen?t.text.slice(0,t.maxLen)+"...":t.text),a=o.computed(()=>t.text),s=()=>{n.value=!n.value},i=o.computed(()=>n.value?a.value:r.value),l=o.computed(()=>t.text.length>t.maxLen),c=o.computed(()=>n.value?"Hide":"Show more");return(d,u)=>(o.openBlock(),o.createElementBlock("span",{onClick:s,class:""},[o.createTextVNode(o.toDisplayString(i.value)+" ",1),l.value&&e.showToggleText?(o.openBlock(),o.createElementBlock("span",h1,o.toDisplayString(c.value),1)):o.createCommentVNode("",!0)]))}},g1=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"}));function Vs(e,t){return function(){return e.apply(t,arguments)}}const{toString:$1}=Object.prototype,{getPrototypeOf:jr}=Object,kn=(e=>t=>{const n=$1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ze=e=>(e=e.toLowerCase(),t=>kn(t)===e),Ln=e=>t=>typeof t===e,{isArray:Pt}=Array,Wt=Ln("undefined");function v1(e){return e!==null&&!Wt(e)&&e.constructor!==null&&!Wt(e.constructor)&&Ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Us=ze("ArrayBuffer");function y1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Us(e.buffer),t}const _1=Ln("string"),Ue=Ln("function"),js=Ln("number"),In=e=>e!==null&&typeof e=="object",b1=e=>e===!0||e===!1,on=e=>{if(kn(e)!=="object")return!1;const t=jr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},E1=ze("Date"),C1=ze("File"),S1=ze("Blob"),N1=ze("FileList"),O1=e=>In(e)&&Ue(e.pipe),T1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ue(e.append)&&((t=kn(e))==="formdata"||t==="object"&&Ue(e.toString)&&e.toString()==="[object FormData]"))},w1=ze("URLSearchParams"),[k1,L1,I1,P1]=["ReadableStream","Request","Response","Headers"].map(ze),A1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xt(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Pt(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let l;for(r=0;r<i;r++)l=s[r],t.call(null,e[l],l,e)}}function Hs(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ws=e=>!Wt(e)&&e!==Gs;function fr(){const{caseless:e}=Ws(this)&&this||{},t={},n=(r,a)=>{const s=e&&Hs(t,a)||a;on(t[s])&&on(r)?t[s]=fr(t[s],r):on(r)?t[s]=fr({},r):Pt(r)?t[s]=r.slice():t[s]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Xt(arguments[r],n);return t}const D1=(e,t,n,{allOwnKeys:r}={})=>(Xt(t,(a,s)=>{n&&Ue(a)?e[s]=Vs(a,n):e[s]=a},{allOwnKeys:r}),e),R1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),M1=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},F1=(e,t,n,r)=>{let a,s,i;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)i=a[s],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&jr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},x1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},B1=e=>{if(!e)return null;if(Pt(e))return e;let t=e.length;if(!js(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},V1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&jr(Uint8Array)),U1=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},j1=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},H1=ze("HTMLFormElement"),G1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),ga=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),W1=ze("RegExp"),Ks=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Xt(n,(a,s)=>{let i;(i=t(a,s,e))!==!1&&(r[s]=i||a)}),Object.defineProperties(e,r)},K1=e=>{Ks(e,(t,n)=>{if(Ue(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ue(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},z1=(e,t)=>{const n={},r=a=>{a.forEach(s=>{n[s]=!0})};return Pt(e)?r(e):r(String(e).split(t)),n},Y1=()=>{},q1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Gn="abcdefghijklmnopqrstuvwxyz",$a="0123456789",zs={DIGIT:$a,ALPHA:Gn,ALPHA_DIGIT:Gn+Gn.toUpperCase()+$a},X1=(e=16,t=zs.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function J1(e){return!!(e&&Ue(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Z1=e=>{const t=new Array(10),n=(r,a)=>{if(In(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const s=Pt(r)?[]:{};return Xt(r,(i,l)=>{const c=n(i,a+1);!Wt(c)&&(s[l]=c)}),t[a]=void 0,s}}return r};return n(e,0)},Q1=ze("AsyncFunction"),e2=e=>e&&(In(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),I={isArray:Pt,isArrayBuffer:Us,isBuffer:v1,isFormData:T1,isArrayBufferView:y1,isString:_1,isNumber:js,isBoolean:b1,isObject:In,isPlainObject:on,isReadableStream:k1,isRequest:L1,isResponse:I1,isHeaders:P1,isUndefined:Wt,isDate:E1,isFile:C1,isBlob:S1,isRegExp:W1,isFunction:Ue,isStream:O1,isURLSearchParams:w1,isTypedArray:V1,isFileList:N1,forEach:Xt,merge:fr,extend:D1,trim:A1,stripBOM:R1,inherits:M1,toFlatObject:F1,kindOf:kn,kindOfTest:ze,endsWith:x1,toArray:B1,forEachEntry:U1,matchAll:j1,isHTMLForm:H1,hasOwnProperty:ga,hasOwnProp:ga,reduceDescriptors:Ks,freezeMethods:K1,toObjectSet:z1,toCamelCase:G1,noop:Y1,toFiniteNumber:q1,findKey:Hs,global:Gs,isContextDefined:Ws,ALPHABET:zs,generateString:X1,isSpecCompliantForm:J1,toJSONObject:Z1,isAsyncFn:Q1,isThenable:e2};function W(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}I.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ys=W.prototype,qs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qs[e]={value:e}});Object.defineProperties(W,qs);Object.defineProperty(Ys,"isAxiosError",{value:!0});W.from=(e,t,n,r,a,s)=>{const i=Object.create(Ys);return I.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),W.call(i,e.message,t,n,r,a),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const t2=null;function mr(e){return I.isPlainObject(e)||I.isArray(e)}function Xs(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function va(e,t,n){return e?e.concat(t).map(function(a,s){return a=Xs(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function n2(e){return I.isArray(e)&&!e.some(mr)}const r2=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Pn(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,C){return!I.isUndefined(C[g])});const r=n.metaTokens,a=n.visitor||u,s=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(a))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(I.isDate(h))return h.toISOString();if(!c&&I.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(h)||I.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,g,C){let y=h;if(h&&!C&&typeof h=="object"){if(I.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(I.isArray(h)&&n2(h)||(I.isFileList(h)||I.endsWith(g,"[]"))&&(y=I.toArray(h)))return g=Xs(g),y.forEach(function(p,_){!(I.isUndefined(p)||p===null)&&t.append(i===!0?va([g],_,s):i===null?g:g+"[]",d(p))}),!1}return mr(h)?!0:(t.append(va(C,g,s),d(h)),!1)}const f=[],m=Object.assign(r2,{defaultVisitor:u,convertValue:d,isVisitable:mr});function $(h,g){if(!I.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(h),I.forEach(h,function(y,E){(!(I.isUndefined(y)||y===null)&&a.call(t,y,I.isString(E)?E.trim():E,g,m))===!0&&$(y,g?g.concat(E):[E])}),f.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return $(e),t}function ya(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Hr(e,t){this._pairs=[],e&&Pn(e,this,t)}const Js=Hr.prototype;Js.append=function(t,n){this._pairs.push([t,n])};Js.toString=function(t){const n=t?function(r){return t.call(this,r,ya)}:ya;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function o2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zs(e,t,n){if(!t)return e;const r=n&&n.encode||o2,a=n&&n.serialize;let s;if(a?s=a(t,n):s=I.isURLSearchParams(t)?t.toString():new Hr(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class _a{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Qs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},a2=typeof URLSearchParams<"u"?URLSearchParams:Hr,s2=typeof FormData<"u"?FormData:null,i2=typeof Blob<"u"?Blob:null,l2={isBrowser:!0,classes:{URLSearchParams:a2,FormData:s2,Blob:i2},protocols:["http","https","file","blob","url","data"]},Gr=typeof window<"u"&&typeof document<"u",c2=(e=>Gr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),d2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",u2=Gr&&window.location.href||"http://localhost",f2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gr,hasStandardBrowserEnv:c2,hasStandardBrowserWebWorkerEnv:d2,origin:u2},Symbol.toStringTag,{value:"Module"})),He={...f2,...l2};function m2(e,t){return Pn(e,new He.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,s){return He.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function p2(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function h2(e){const t={},n=Object.keys(e);let r;const a=n.length;let s;for(r=0;r<a;r++)s=n[r],t[s]=e[s];return t}function ei(e){function t(n,r,a,s){let i=n[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=s>=n.length;return i=!i&&I.isArray(a)?a.length:i,c?(I.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!l):((!a[i]||!I.isObject(a[i]))&&(a[i]=[]),t(n,r,a[i],s)&&I.isArray(a[i])&&(a[i]=h2(a[i])),!l)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,a)=>{t(p2(r),a,n,0)}),n}return null}function g2(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Jt={transitional:Qs,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,s=I.isObject(t);if(s&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return a?JSON.stringify(ei(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return m2(t,this.formSerializer).toString();if((l=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Pn(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),g2(t)):t}],transformResponse:[function(t){const n=this.transitional||Jt.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!this.responseType||a)){const i=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?W.from(l,W.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:He.classes.FormData,Blob:He.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{Jt.headers[e]={}});const $2=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),v2=e=>{const t={};let n,r,a;return e&&e.split(`
|
33
|
-
`).forEach(function(i){a=i.indexOf(":"),n=i.substring(0,a).trim().toLowerCase(),r=i.substring(a+1).trim(),!(!n||t[n]&&$2[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ba=Symbol("internals");function Mt(e){return e&&String(e).trim().toLowerCase()}function an(e){return e===!1||e==null?e:I.isArray(e)?e.map(an):String(e)}function y2(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const _2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wn(e,t,n,r,a){if(I.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function b2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function E2(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,s,i){return this[r].call(this,t,a,s,i)},configurable:!0})})}class Fe{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function s(l,c,d){const u=Mt(c);if(!u)throw new Error("header name must be a non-empty string");const f=I.findKey(a,u);(!f||a[f]===void 0||d===!0||d===void 0&&a[f]!==!1)&&(a[f||c]=an(l))}const i=(l,c)=>I.forEach(l,(d,u)=>s(d,u,c));if(I.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(I.isString(t)&&(t=t.trim())&&!_2(t))i(v2(t),n);else if(I.isHeaders(t))for(const[l,c]of t.entries())s(c,l,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Mt(t),t){const r=I.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return y2(a);if(I.isFunction(n))return n.call(this,a,r);if(I.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Mt(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Wn(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function s(i){if(i=Mt(i),i){const l=I.findKey(r,i);l&&(!n||Wn(r,r[l],l,n))&&(delete r[l],a=!0)}}return I.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const s=n[r];(!t||Wn(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,r={};return I.forEach(this,(a,s)=>{const i=I.findKey(r,s);if(i){n[i]=an(a),delete n[s];return}const l=t?b2(s):String(s).trim();l!==s&&delete n[s],n[l]=an(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&I.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
34
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[ba]=this[ba]={accessors:{}}).accessors,a=this.prototype;function s(i){const l=Mt(i);r[l]||(E2(a,i),r[l]=!0)}return I.isArray(t)?t.forEach(s):s(t),this}}Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Fe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(Fe);function Kn(e,t){const n=this||Jt,r=t||n,a=Fe.from(r.headers);let s=r.data;return I.forEach(e,function(l){s=l.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function ti(e){return!!(e&&e.__CANCEL__)}function At(e,t,n){W.call(this,e??"canceled",W.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(At,W,{__CANCEL__:!0});function ni(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function C2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function S2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=r[s];i||(i=d),n[a]=c,r[a]=d;let f=s,m=0;for(;f!==a;)m+=n[f++],f=f%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),d-i<t)return;const $=u&&d-u;return $?Math.round(m*1e3/$):void 0}}function N2(e,t){let n=0;const r=1e3/t;let a=null;return function(){const i=this===!0,l=Date.now();if(i||l-n>r)return a&&(clearTimeout(a),a=null),n=l,e.apply(null,arguments);a||(a=setTimeout(()=>(a=null,n=Date.now(),e.apply(null,arguments)),r-(l-n)))}}const pn=(e,t,n=3)=>{let r=0;const a=S2(50,250);return N2(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,c=i-r,d=a(c),u=i<=l;r=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-i)/d:void 0,event:s,lengthComputable:l!=null};f[t?"download":"upload"]=!0,e(f)},n)},O2=He.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(i){const l=I.isString(i)?a(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),T2=He.hasStandardBrowserEnv?{write(e,t,n,r,a,s){const i=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),I.isString(r)&&i.push("path="+r),I.isString(a)&&i.push("domain="+a),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function w2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function k2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ri(e,t){return e&&!w2(t)?k2(e,t):t}const Ea=e=>e instanceof Fe?{...e}:e;function $t(e,t){t=t||{};const n={};function r(d,u,f){return I.isPlainObject(d)&&I.isPlainObject(u)?I.merge.call({caseless:f},d,u):I.isPlainObject(u)?I.merge({},u):I.isArray(u)?u.slice():u}function a(d,u,f){if(I.isUndefined(u)){if(!I.isUndefined(d))return r(void 0,d,f)}else return r(d,u,f)}function s(d,u){if(!I.isUndefined(u))return r(void 0,u)}function i(d,u){if(I.isUndefined(u)){if(!I.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,f){if(f in t)return r(d,u);if(f in e)return r(void 0,d)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(d,u)=>a(Ea(d),Ea(u),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=c[u]||a,m=f(e[u],t[u],u);I.isUndefined(m)&&f!==l||(n[u]=m)}),n}const oi=e=>{const t=$t({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=Zs(ri(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(I.isFormData(n)){if(He.hasStandardBrowserEnv||He.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[d,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...u].join("; "))}}if(He.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&O2(t.url))){const d=a&&s&&T2.read(s);d&&i.set(a,d)}return t},L2=typeof XMLHttpRequest<"u",I2=L2&&function(e){return new Promise(function(n,r){const a=oi(e);let s=a.data;const i=Fe.from(a.headers).normalize();let{responseType:l}=a,c;function d(){a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let u=new XMLHttpRequest;u.open(a.method.toUpperCase(),a.url,!0),u.timeout=a.timeout;function f(){if(!u)return;const $=Fe.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),g={data:!l||l==="text"||l==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:$,config:e,request:u};ni(function(y){n(y),d()},function(y){r(y),d()},g),u=null}"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new W("Request aborted",W.ECONNABORTED,a,u)),u=null)},u.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,a,u)),u=null},u.ontimeout=function(){let h=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const g=a.transitional||Qs;a.timeoutErrorMessage&&(h=a.timeoutErrorMessage),r(new W(h,g.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,a,u)),u=null},s===void 0&&i.setContentType(null),"setRequestHeader"in u&&I.forEach(i.toJSON(),function(h,g){u.setRequestHeader(g,h)}),I.isUndefined(a.withCredentials)||(u.withCredentials=!!a.withCredentials),l&&l!=="json"&&(u.responseType=a.responseType),typeof a.onDownloadProgress=="function"&&u.addEventListener("progress",pn(a.onDownloadProgress,!0)),typeof a.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",pn(a.onUploadProgress)),(a.cancelToken||a.signal)&&(c=$=>{u&&(r(!$||$.type?new At(null,e,u):$),u.abort(),u=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const m=C2(a.url);if(m&&He.protocols.indexOf(m)===-1){r(new W("Unsupported protocol "+m+":",W.ERR_BAD_REQUEST,e));return}u.send(s||null)})},P2=(e,t)=>{let n=new AbortController,r;const a=function(c){if(!r){r=!0,i();const d=c instanceof Error?c:this.reason;n.abort(d instanceof W?d:new At(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{a(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",a):c.unsubscribe(a))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=i,[l,()=>{s&&clearTimeout(s),s=null}]},A2=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},D2=async function*(e,t,n){for await(const r of e)yield*A2(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Ca=(e,t,n,r,a)=>{const s=D2(e,t,a);let i=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:d}=await s.next();if(c){l.close(),r();return}let u=d.byteLength;n&&n(i+=u),l.enqueue(new Uint8Array(d))},cancel(l){return r(l),s.return()}},{highWaterMark:2})},Sa=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},An=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ai=An&&typeof ReadableStream=="function",pr=An&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),R2=ai&&(()=>{let e=!1;const t=new Request(He.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Na=64*1024,hr=ai&&!!(()=>{try{return I.isReadableStream(new Response("").body)}catch{}})(),hn={stream:hr&&(e=>e.body)};An&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!hn[t]&&(hn[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,r)})})})(new Response);const M2=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(I.isArrayBufferView(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await pr(e)).byteLength},F2=async(e,t)=>{const n=I.toFiniteNumber(e.getContentLength());return n??M2(t)},x2=An&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:m}=oi(e);d=d?(d+"").toLowerCase():"text";let[$,h]=a||s||i?P2([a,s],i):[],g,C;const y=()=>{!g&&setTimeout(()=>{$&&$.unsubscribe()}),g=!0};let E;try{if(c&&R2&&n!=="get"&&n!=="head"&&(E=await F2(u,r))!==0){let N=new Request(t,{method:"POST",body:r,duplex:"half"}),O;I.isFormData(r)&&(O=N.headers.get("content-type"))&&u.setContentType(O),N.body&&(r=Ca(N.body,Na,Sa(E,pn(c)),null,pr))}I.isString(f)||(f=f?"cors":"omit"),C=new Request(t,{...m,signal:$,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let p=await fetch(C);const _=hr&&(d==="stream"||d==="response");if(hr&&(l||_)){const N={};["status","statusText","headers"].forEach(k=>{N[k]=p[k]});const O=I.toFiniteNumber(p.headers.get("content-length"));p=new Response(Ca(p.body,Na,l&&Sa(O,pn(l,!0)),_&&y,pr),N)}d=d||"text";let w=await hn[I.findKey(hn,d)||"text"](p,e);return!_&&y(),h&&h(),await new Promise((N,O)=>{ni(N,O,{data:w,headers:Fe.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:C})})}catch(p){throw y(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,C),{cause:p.cause||p}):W.from(p,p&&p.code,e,C)}}),gr={http:t2,xhr:I2,fetch:x2};I.forEach(gr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Oa=e=>`- ${e}`,B2=e=>I.isFunction(e)||e===null||e===!1,si={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let s=0;s<t;s++){n=e[s];let i;if(r=n,!B2(n)&&(r=gr[(i=String(n)).toLowerCase()],r===void 0))throw new W(`Unknown adapter '${i}'`);if(r)break;a[i||"#"+s]=r}if(!r){const s=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
|
35
|
-
`+s.map(Oa).join(`
|
36
|
-
`):" "+Oa(s[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:gr};function zn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new At(null,e)}function Ta(e){return zn(e),e.headers=Fe.from(e.headers),e.data=Kn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),si.getAdapter(e.adapter||Jt.adapter)(e).then(function(r){return zn(e),r.data=Kn.call(e,e.transformResponse,r),r.headers=Fe.from(r.headers),r},function(r){return ti(r)||(zn(e),r&&r.response&&(r.response.data=Kn.call(e,e.transformResponse,r.response),r.response.headers=Fe.from(r.response.headers))),Promise.reject(r)})}const ii="1.7.2",Wr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wa={};Wr.transitional=function(t,n,r){function a(s,i){return"[Axios v"+ii+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,l)=>{if(t===!1)throw new W(a(i," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!wa[i]&&(wa[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,l):!0}};function V2(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const s=r[a],i=t[s];if(i){const l=e[s],c=l===void 0||i(l,s,e);if(c!==!0)throw new W("option "+s+" must be "+c,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}}const $r={assertOptions:V2,validators:Wr},st=$r.validators;class mt{constructor(t){this.defaults=t,this.interceptors={request:new _a,response:new _a}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
37
|
-
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$t(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:s}=n;r!==void 0&&$r.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),a!=null&&(I.isFunction(a)?n.paramsSerializer={serialize:a}:$r.assertOptions(a,{encode:st.function,serialize:st.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&I.merge(s.common,s[n.method]);s&&I.forEach(["delete","get","head","post","put","patch","common"],h=>{delete s[h]}),n.headers=Fe.concat(i,s);const l=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let u,f=0,m;if(!c){const h=[Ta.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,d),m=h.length,u=Promise.resolve(n);f<m;)u=u.then(h[f++],h[f++]);return u}m=l.length;let $=n;for(f=0;f<m;){const h=l[f++],g=l[f++];try{$=h($)}catch(C){g.call(this,C);break}}try{u=Ta.call(this,$)}catch(h){return Promise.reject(h)}for(f=0,m=d.length;f<m;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=$t(this.defaults,t);const n=ri(t.baseURL,t.url);return Zs(n,t.params,t.paramsSerializer)}}I.forEach(["delete","get","head","options"],function(t){mt.prototype[t]=function(n,r){return this.request($t(r||{},{method:t,url:n,data:(r||{}).data}))}});I.forEach(["post","put","patch"],function(t){function n(r){return function(s,i,l){return this.request($t(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}mt.prototype[t]=n(),mt.prototype[t+"Form"]=n(!0)});class Kr{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(a=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](a);r._listeners=null}),this.promise.then=a=>{let s;const i=new Promise(l=>{r.subscribe(l),s=l}).then(a);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,l){r.reason||(r.reason=new At(s,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Kr(function(a){t=a}),cancel:t}}}function U2(e){return function(n){return e.apply(null,n)}}function j2(e){return I.isObject(e)&&e.isAxiosError===!0}const vr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vr).forEach(([e,t])=>{vr[t]=e});function li(e){const t=new mt(e),n=Vs(mt.prototype.request,t);return I.extend(n,mt.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return li($t(e,a))},n}const he=li(Jt);he.Axios=mt;he.CanceledError=At;he.CancelToken=Kr;he.isCancel=ti;he.VERSION=ii;he.toFormData=Pn;he.AxiosError=W;he.Cancel=he.CanceledError;he.all=function(t){return Promise.all(t)};he.spread=U2;he.isAxiosError=j2;he.mergeConfig=$t;he.AxiosHeaders=Fe;he.formToJSON=e=>ei(I.isHTMLForm(e)?new FormData(e):e);he.getAdapter=si.getAdapter;he.HttpStatusCode=vr;he.default=he;const H2={key:0,class:"t-transp mn-r-small"},G2={key:1,class:"flex-nowrap flex w-100 flex-v-center"},W2=["href"],K2={key:2,class:"w-100"},z2=["placeholder","multiple"],Y2={key:0,class:"mn-t-thin mn-b-thin invalid-feedback"},q2={__name:"Upload",props:{field:String,label:null,type:{type:String,default:"file"},placeholder:"Upload a file",validation:!1,uploadPath:{type:String,default:"/files"},multiple:{type:Boolean,default:!1}},emits:["update:field","focus","blur","file-change"],setup(e,{emit:t}){const n=t,r=e,a=o.ref(r.field);o.ref(null),o.watch(()=>r.field,l=>{a.value=l});async function s(l){let c=l.target.files[0],d=new FormData;d.append("file",c);try{let f=await he.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/${r.type}?folderName=${encodeURIComponent(r.uploadPath)}`,d,{headers:{"Content-Type":"multipart/form-data"}});a.value=f.data[0].filepath,n("file-change",a.value)}catch(u){console.error(u)}}const i=()=>{a.value=null,n("update:field",null),n("file-change",null)};return(l,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",{class:o.normalizeClass([[l.$attrs.class,{"bg-fourth-nano":e.validation}],"flex-center flex-nowrap flex"])},[e.label?(o.openBlock(),o.createElementBlock("div",H2,[o.createElementVNode("span",null,o.toDisplayString(e.label),1)])):o.createCommentVNode("",!0),a.value?(o.openBlock(),o.createElementBlock("div",G2,[o.createElementVNode("a",{href:a.value,class:"w-100",target:"_blank"},o.toDisplayString(a.value),9,W2),o.createVNode(Br,{onClick:i,class:"cursor-pointer t-center flex-center flex radius-extra i-medium bg-red pd-micro"})])):(o.openBlock(),o.createElementBlock("div",K2,[o.createElementVNode("input",{onChange:s,type:"file",class:"w-100",placeholder:e.placeholder,multiple:e.multiple,id:"photo",name:"photo"},null,40,z2)]))],2),o.createVNode(o.Transition,{mode:"out-in",name:"fade"},{default:o.withCtx(()=>[e.validation?(o.openBlock(),o.createElementBlock("div",Y2," * "+o.toDisplayString(e.validation.message),1)):o.createCommentVNode("",!0)]),_:1})],64))}},ci=qe(q2,[["__scopeId","data-v-516f3e07"]]),X2=Object.freeze(Object.defineProperty({__proto__:null,default:ci},Symbol.toStringTag,{value:"Module"})),J2=["src"],Z2={key:1,class:"flex-v-center flex-h-center flex w-100 h-100 bg-second"},Q2=o.createElementVNode("svg",{class:"i-medium",width:"104",height:"104",viewBox:"0 0 104 104",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{fill:"rgb(var(--white))",d:"M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"})],-1),em=[Q2],di={__name:"UploadImage",props:["uploadPath","photo"],emits:["update:photo"],setup(e,{emit:t}){const n=o.ref(null),r=o.ref(null),a=e,s=t;o.watch(a,({photo:d})=>{d&&(n.value=d)});function i(){r.value.click()}async function l(d){let u=d.target.files[0];if(!u){console.error("No file selected");return}let f=new FormData;f.append("file",u),console.log("Sending file:",u.name);try{let $=await he.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(a.uploadPath)}`,f);console.log("Upload response:",$),n.value=$.data[0].filepath,s("update:photo",n.value)}catch(m){console.error("Upload error:",m)}}function c(d){d.preventDefault(),l({target:{files:d.dataTransfer.files}})}return(d,u)=>(o.openBlock(),o.createElementBlock("div",{onClick:i,onDrop:c,onDragover:u[0]||(u[0]=o.withModifiers(()=>{},["prevent"])),class:"image-upload-area flex-v-center flex-h-center flex"},[n.value||e.photo?(o.openBlock(),o.createElementBlock("img",{key:0,src:(d.FILE_SERVER_URL||"")+(n.value||e.photo),alt:"Uploaded image",class:"w-100 h-100 object-fit-cover"},null,8,J2)):(o.openBlock(),o.createElementBlock("div",Z2,em)),o.createElementVNode("input",{type:"file",name:"file",ref_key:"fileInput",ref:r,onChange:l,style:{display:"none"}},null,544)],32))}},tm=Object.freeze(Object.defineProperty({__proto__:null,default:di},Symbol.toStringTag,{value:"Module"})),nm={width:"49",height:"35",viewBox:"0 0 49 35",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rm=["fill"],om=["fill"],am={__name:"IconUpload",props:{fill:{type:String,default:"rgb(var(--black))"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",nm,[o.createElementVNode("path",{fill:e.fill,d:"M18.0196 16.645C17.3501 17.3144 17.3501 18.3999 18.0196 19.0693C18.689 19.7388 19.7745 19.7388 20.4439 19.0693L22.6603 16.8529V26.4286C22.6603 27.3754 23.4278 28.1429 24.3746 28.1429C25.3214 28.1429 26.0889 27.3754 26.0889 26.4286V16.8529L28.3053 19.0693C28.9747 19.7388 30.0602 19.7388 30.7296 19.0693C31.399 18.3999 31.399 17.3144 30.7296 16.645L25.5868 11.5021C24.9173 10.8327 23.8318 10.8327 23.1624 11.5021L18.0196 16.645Z"},null,8,rm),o.createElementVNode("path",{fill:e.fill,"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24.3746 0.714294C16.9516 0.714294 10.7548 5.95521 9.27936 12.9394C4.19731 13.976 0.374592 18.4695 0.374592 23.8572C0.374592 30.0113 5.36342 35 11.5174 35H37.2317C43.3857 35 48.3746 30.0113 48.3746 23.8572C48.3746 18.4695 44.5519 13.976 39.4699 12.9394C37.9944 5.95521 31.7976 0.714294 24.3746 0.714294ZM12.4643 14.6667C13.1906 8.73646 18.2474 4.14287 24.3746 4.14287C30.5018 4.14287 35.5586 8.73646 36.2849 14.6667C36.384 15.4757 37.0387 16.1029 37.8511 16.1672C41.821 16.4818 44.946 19.8053 44.946 23.8572C44.946 28.1177 41.4922 31.5714 37.2317 31.5714H11.5174C7.25697 31.5714 3.80316 28.1177 3.80316 23.8572C3.80316 19.8053 6.92808 16.4818 10.8981 16.1672C11.7104 16.1029 12.3652 15.4757 12.4643 14.6667Z"},null,8,om)]))}},sm={key:0,class:"t-center"},im={key:0,class:"mn-t-thin mn-b-thin d-block h3 t-black"},lm={key:1,class:"mn-b-thin t-transp d-block"},cm={key:2,class:"mn-b-thin uppercase p-small t-medium d-block"},dm={key:3,class:"cursor-pointer mn-b-small br-2px br-main br-solid radius-extra pd-l-thin pd-r-thin t-main"},um={key:4,class:"uppercase p-small t-medium d-block"},ui={__name:"UploadImageMultiple",props:{uploadPath:{type:Object,required:!0},options:{type:Object,default:()=>({mimeType:["jpg","png","gif"],maxSize:10*1024*1024,showText:!0,showTitle:!0})},text:{type:Object,default:()=>({title:"Drag & Drop Your Images Here",subtitle:"Files supported: JPG, PNG, GIF"})}},emits:["update:images"],setup(e,{emit:t}){const n=o.ref([]),r=o.ref(!1),a=o.ref(null),s=e,i=t;function l(){a.value.click()}async function c(u){r.value=!0;let f=u.target.files,m=new FormData;for(const $ of f)m.append("file",$);try{(await he.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(s.uploadPath)}`,m,{headers:{"Content-Type":"multipart/form-data"}})).data.forEach(g=>{n.value.push(g.filepath)}),i("update:images",n.value),r.value=!1}catch($){console.error($),r.value=!1}}function d(u){u.preventDefault(),c({target:{files:u.dataTransfer.files}})}return(u,f)=>(o.openBlock(),o.createElementBlock("div",{onClick:l,onDrop:d,onDragover:f[0]||(f[0]=o.withModifiers(()=>{},["prevent"])),class:"cursor-pointer t-black w-100 flex-v-center flex-h-center flex pos-relative"},[o.createVNode(o.Transition,{name:"moveFromTop",mode:"out-in"},{default:o.withCtx(()=>[r.value?(o.openBlock(),o.createBlock(qt,{key:1,class:"pos-absolute"})):(o.openBlock(),o.createElementBlock("div",sm,[o.createVNode(am,{style:{"max-height":"4rem"},class:"w-100 h-100",fill:"rgb(var(--main))"}),e.options.showText||e.options.showTitle?(o.openBlock(),o.createElementBlock("span",im,o.toDisplayString(e.text.title),1)):o.createCommentVNode("",!0),e.options.showText?(o.openBlock(),o.createElementBlock("span",lm,o.toDisplayString(e.text.subtitle),1)):o.createCommentVNode("",!0),e.options.showText?(o.openBlock(),o.createElementBlock("span",cm,"or")):o.createCommentVNode("",!0),e.options.showText?(o.openBlock(),o.createElementBlock("button",dm,"Browse Files")):o.createCommentVNode("",!0),e.options.showText?(o.openBlock(),o.createElementBlock("span",um,"Maximum size: 2MB")):o.createCommentVNode("",!0)]))]),_:1}),o.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:a,onChange:c,multiple:"",style:{display:"none"}},null,544)],32))}},fm=Object.freeze(Object.defineProperty({__proto__:null,default:ui},Symbol.toStringTag,{value:"Module"})),fi={en:"🌎 EN",ru:"🇷🇺 RU",zh:"🇨🇳 ZH",fr:"🇫🇷 FR",de:"🇩🇪 DE",it:"🇮🇹 IT"},mi={};for(const e of Object.keys(fi))mi[e]={};const pi=d0({locale:"en",fallbackLocale:{en:["en-default"],ru:["ru-default","en-default"],zh:["zh-default","en-default"],fr:["fr-default","en-default"],de:["de-default","en-default"],it:["it-default","en-default"]},legacy:!1,globalInjection:!0,warnHtmlMessage:!1,missingWarn:!1,fallbackWarn:!1,messages:mi,availableLocales:Object.keys(fi)}),mm={class:"breadcrumbs flex-row flex-nowrap flex-left flex","aria-label":"breadcrumbs"},pm={key:0,class:"i-small mn-r-thin",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hm=o.createElementVNode("path",{fill:"rgb(var(--black))",d:"M0.494141 4.26391C0.494141 4.48862 0.659906 4.66912 0.928813 4.66912C1.05037 4.66912 1.16825 4.6065 1.27139 4.52177L1.64344 4.20866V7.56448C1.64344 8.13545 1.98971 8.47803 2.5791 8.47803H7.56678C8.15616 8.47803 8.50243 8.13545 8.50243 7.56448V4.19392L8.8929 4.52177C8.99604 4.6065 9.11392 4.66912 9.23916 4.66912C9.48597 4.66912 9.67015 4.5144 9.67015 4.27128C9.67015 4.1313 9.61121 4.01343 9.5007 3.92133L8.50243 3.08146V1.47538C8.50243 1.30961 8.3956 1.1991 8.22984 1.1991H7.63308C7.46732 1.1991 7.35313 1.30961 7.35313 1.47538V2.11634L5.66969 0.70181C5.31606 0.403433 4.85928 0.403433 4.50197 0.70181L0.663589 3.92133C0.553079 4.01711 0.494141 4.14235 0.494141 4.26391ZM6.13752 5.26219C6.13752 5.08906 6.02701 4.97855 5.85387 4.97855H4.31779C4.14097 4.97855 4.02678 5.08906 4.02678 5.26219V7.63447H2.83327C2.60856 7.63447 2.48332 7.50922 2.48332 7.28084V3.5014L4.90349 1.47538C5.01768 1.37592 5.15029 1.37592 5.26817 1.47538L7.66255 3.48298V7.28084C7.66255 7.50922 7.53731 7.63447 7.3126 7.63447H6.13752V5.26219Z"},null,-1),gm=[hm],$m={key:2},vm={key:3,class:"i-small chevron",viewBox:"0 0 4 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ym=o.createElementVNode("path",{d:"M4 3.99992C4 3.83673 3.94307 3.70391 3.81025 3.57867L0.899431 0.732369C0.800759 0.629902 0.679317 0.580566 0.531309 0.580566C0.239089 0.580566 0 0.815861 0 1.10808C0 1.25229 0.0607211 1.38512 0.166983 1.49138L2.74763 3.99613L0.166983 6.50846C0.0607211 6.61093 0 6.74375 0 6.89176C0 7.18398 0.239089 7.41928 0.531309 7.41928C0.675522 7.41928 0.800759 7.36994 0.899431 7.26747L3.81025 4.42117C3.94307 4.29594 4 4.15931 4 3.99992Z",fill:"rgb(var(--black))"},null,-1),_m=[ym],hi={__name:"Breadcrumbs",setup(e){const t=Lr(),{t:n,locale:r}=It(),a=o.computed(()=>t.matched.map(s=>{var f,m,$;const i=(f=s.meta)==null?void 0:f.title,l=r==null?void 0:r.value,c=i&&l&&i[l],d=s.path.replace(/:.+?\//g,h=>""),u=($=(m=s.meta)==null?void 0:m.breadcrumbs)==null?void 0:$.hidden;return{name:c,path:d,isHidden:u}}).filter(s=>s.name&&!s.isHidden));return(s,i)=>{const l=o.resolveComponent("router-link");return o.openBlock(),o.createElementBlock("ol",mm,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,(c,d)=>(o.openBlock(),o.createElementBlock("li",{key:d,class:o.normalizeClass(["flex-v-center flex-nowrap flex",{"t-main":d===a.value.length-1}])},[d===0?(o.openBlock(),o.createElementBlock("svg",pm,gm)):o.createCommentVNode("",!0),d!==a.value.length-1?(o.openBlock(),o.createBlock(l,{key:1,to:d===0?"/":c.path},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(c.name),1)]),_:2},1032,["to"])):(o.openBlock(),o.createElementBlock("span",$m,o.toDisplayString(c.name),1)),d!==a.value.length-1?(o.openBlock(),o.createElementBlock("svg",vm,_m)):o.createCommentVNode("",!0)],2))),128))])}}},bm=Object.freeze(Object.defineProperty({__proto__:null,default:hi},Symbol.toStringTag,{value:"Module"})),Em={class:"t-trimmed font-main"},Cm={class:"font-main t-truncate"},Sm={key:1,class:"pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"},gi={__name:"Chips",props:["chips"],setup(e){return(t,n)=>{var r;return o.openBlock(),o.createElementBlock("div",Em,[(r=e.chips)!=null&&r.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.chips,(a,s)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass([t.$attrs.class||"p-medium","mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])},[o.createElementVNode("span",Cm,o.toDisplayString(a.text?a.text:a),1)],2))),256)):(o.openBlock(),o.createElementBlock("div",Sm,[o.renderSlot(t.$slots,"default")]))])}}},Nm=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),Om={class:"gap-thin flex-nowrap flex flex-center"},Tm={key:0,class:"flex-child-grow-1 flex-child-shrink-0 flex-child-basis-auto pd-medium bg-blur-small bg-white-transp-5 radius-small"},wm=o.createElementVNode("p",{class:"p-small t-transp"},"Offer is over",-1),km=[wm],Lm={key:1,class:"flex-child-grow-1 flex-child-shrink-0 flex-child-basis-auto pd-nano bg-blur-small bg-white-transp-5 radius-small"},Im={class:"p-big"},Pm=o.createElementVNode("p",{class:"p-small t-transp"},"Days",-1),Am={key:2,class:"flex-child-grow-1 flex-child-shrink-0 flex-child-basis-auto pd-nano bg-blur-small bg-white-transp-5 radius-small"},Dm={class:"p-big"},Rm=o.createElementVNode("p",{class:"p-small t-transp"},"hours",-1),Mm={key:3,class:"flex-child-grow-1 flex-child-shrink-0 flex-child-basis-auto pd-nano bg-blur-small bg-white-transp-5 radius-small"},Fm={class:"p-big"},xm=o.createElementVNode("p",{class:"p-small t-transp"},"minutes",-1),Bm={key:4,class:"flex-child-grow-1 flex-child-shrink-0 flex-child-basis-auto pd-nano bg-blur-small bg-white-transp-5 radius-small"},Vm={class:"p-big"},Um=o.createElementVNode("p",{class:"p-small t-transp"},"seconds",-1),$i={__name:"Countdown",props:["date"],setup(e){const t=e,n=new Date(t.date).getTime(),r=o.ref(new Date().getTime());let a;const s=o.ref(0),i=o.ref(0),l=o.ref(0),c=o.ref(0),d=o.ref(!1),u=()=>{const f=n-r.value;f<=0?(s.value=0,i.value=0,l.value=0,c.value=0,d.value=!0,clearInterval(a)):(s.value=Math.floor(f/(1e3*60*60*24)),i.value=Math.floor(f%(1e3*60*60*24)/(1e3*60*60)),l.value=Math.floor(f%(1e3*60*60)/(1e3*60)),c.value=Math.floor(f%(1e3*60)/1e3))};return u(),o.onMounted(()=>{a=setInterval(()=>{r.value=new Date().getTime(),u()},1e3)}),o.onBeforeUnmount(()=>{clearInterval(a)}),(f,m)=>(o.openBlock(),o.createElementBlock("div",Om,[d.value?(o.openBlock(),o.createElementBlock("div",Tm,km)):o.createCommentVNode("",!0),d.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Lm,[o.createElementVNode("p",Im,o.toDisplayString(s.value),1),Pm])),d.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Am,[o.createElementVNode("p",Dm,o.toDisplayString(i.value),1),Rm])),d.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Mm,[o.createElementVNode("p",Fm,o.toDisplayString(l.value),1),xm])),d.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Bm,[o.createElementVNode("p",Vm,o.toDisplayString(c.value),1),Um]))]))}},jm=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),Hm=["onClick"],Gm={class:"t-transp"},vi={__name:"DatePicker",props:["date","locale"],setup(e,{emit:t}){const n=t,r=e,a=o.ref(null);let s;if(r.date){const m=parseInt(r.date.substring(0,2)),$=parseInt(r.date.substring(2,4))-1,h=parseInt(r.date.substring(4));s=new Date(h,$,m),console.log("Data"+s)}else s=new Date,console.log("No data"+s);s.setHours(0,0,0,0);const i=o.ref(new Date(s)),l=f(s,30);o.onMounted(()=>{if(a.value){const m=a.value.getElementsByClassName("selected")[0]||a.value.getElementsByClassName("bg-main")[0];m&&(a.value.scrollLeft=m.offsetLeft-a.value.offsetWidth/2+m.offsetWidth/2)}});function c(m){i.value=m;const $=d(m);n("update:date",$)}function d(m){return`${m.getDate().toString().padStart(2,"0")}${(m.getMonth()+1).toString().padStart(2,"0")}${m.getFullYear()}`}function u(m){return m.toLocaleDateString(r.locale?r.locale:"en",{weekday:"narrow"}).toUpperCase()}function f(m,$){const h=[];for(let g=-15;g<$-15;g++){const C=new Date(m);C.setDate(m.getDate()+g),C.setHours(0,0,0,0),h.push(C)}return h}return(m,$)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{class:"w-100 scroller o-scroll scroll-snap-type-x-mandatory scroll-pd-regular scroll-hide flex-nowrap flex",ref_key:"scrollContainer",ref:a},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),h=>(o.openBlock(),o.createElementBlock("div",{key:h.toString(),onClick:g=>c(h),class:o.normalizeClass([{selected:i.value.toDateString()===h.toDateString()},"cursor-pointer scroll-snap-align-start mn-r-small mn-l-small flex-column flex-center flex"])},[o.createElementVNode("span",Gm,o.toDisplayString(u(h)),1),o.createElementVNode("span",{class:o.normalizeClass([{"bg-main":i.value.toDateString()===h.toDateString()},"transition-ease-in-out t-semi flex-center flex radius-big i-semi day-number"])},o.toDisplayString(h.getDate()),3)],10,Hm))),128))],512)]))}},Wm=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),Km={class:"mn-b-regular"},zm={class:"mn-b-small t-transp p-medium"},zr={__name:"EmptyState",props:{title:{type:String,default:"У вас еще нет организации"},description:{type:String,default:"Для использования сервиса, вам необходимо добавить вашу организацию."},action:{type:String},callback:{type:Function,default:()=>{}}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("section",null,[o.createElementVNode("h3",Km,o.toDisplayString(e.title),1),o.createElementVNode("p",zm,o.toDisplayString(e.description),1),e.action?(o.openBlock(),o.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=(...r)=>e.callback&&e.callback(...r)),class:"t-white bg-second w-100 button"},o.toDisplayString(e.action),1)):o.createCommentVNode("",!0)]))}},Ym=Object.freeze(Object.defineProperty({__proto__:null,default:zr},Symbol.toStringTag,{value:"Module"})),qm={},Xm={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},Jm=o.createStaticVNode('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--light))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',6),Zm=[Jm];function Qm(e,t){return o.openBlock(),o.createElementBlock("svg",Xm,Zm)}const ep=qe(qm,[["render",Qm]]),tp={class:"calendar"},np={key:0,class:"br-b br-solid br-grey-transp-25 gap-thin flex flex-nowrap pd-thin"},rp={class:"pd-thin flex flex-nowrap flex-v-center flex-justify-between"},op={class:"t-semi"},ap={class:"pd-thin calendar__body"},sp={class:"calendar__week"},ip={class:"gap-micro calendar__dates"},lp=["onClick"],cp={__name:"Calendar",props:o.mergeModels({modelValue:[Date,Object],allowRange:Boolean},{date:{},dateModifiers:{}}),emits:o.mergeModels(["update:modelValue"],["update:date"]),setup(e,{emit:t}){const n=e,r=o.useModel(e,"date"),a=new Date,s=o.ref(a),i=o.ref(null),l=o.ref(null),c=o.ref(null),d=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],u=S=>new Date(Date.UTC(S.getFullYear(),S.getMonth(),S.getDate())),f=S=>new Date(Date.UTC(S.getFullYear(),S.getMonth(),S.getDate(),23,59,59)),m=o.computed(()=>{const S=s.value.toLocaleString("default",{month:"long",timeZone:"UTC"}),D=s.value.getUTCFullYear();return`${S} ${D}`}),$=o.computed(()=>{const S=[],D=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth(),1)),F=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth()+1,0)),B=D.getUTCDay();let j=new Date(D);j.setUTCDate(j.getUTCDate()-B);for(let Z=0;Z<B;Z++)S.push({date:new Date(j),day:j.getUTCDate(),isToday:h(j)}),j.setUTCDate(j.getUTCDate()+1);let se=1;for(j=D;j<=F;j.setUTCDate(j.getUTCDate()+1))S.push({date:new Date(j),day:se,isToday:h(j)}),se++;const ge=S[S.length-1].date.getUTCDay();for(let Z=ge+1;Z<=6;Z++)S.push({date:new Date(j),day:j.getUTCDate(),isToday:h(j)}),j.setUTCDate(j.getUTCDate()+1);return S}),h=S=>{const D=new Date;return S.getUTCDate()===D.getUTCDate()&&S.getUTCMonth()===D.getUTCMonth()&&S.getUTCFullYear()===D.getUTCFullYear()},g=S=>S.getUTCMonth()===s.value.getUTCMonth()&&S.getUTCFullYear()===s.value.getUTCFullYear(),C=S=>{if(n.allowRange){if(l.value&&c.value)return S>=new Date(l.value)&&f(S)<=new Date(c.value);if(l.value)return S.getTime()===new Date(l.value).getTime()}else return i.value&&S.getTime()===new Date(i.value).getTime()},y=S=>l.value&&c.value?S>l.value&&f(S)<c.value:!1,E=S=>{const D=u(S);if(!n.allowRange)i.value=D,r.value=D;else if(!l.value&&!c.value)l.value=D,r.value.start=D;else if(c.value)l.value=D,c.value=null,r.value={start:D,end:null};else{if(c.value=f(S),D<l.value){const F=f(l.value);l.value=D,c.value=F}r.value={start:l.value,end:c.value}}},p=()=>{s.value=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth()-1,1))},_=()=>{s.value=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth()+1,1))},w=()=>{const S=new Date,D=new Date(Date.UTC(S.getUTCFullYear(),S.getUTCMonth(),S.getUTCDate(),0,0,0,0)),F=new Date(Date.UTC(S.getUTCFullYear(),S.getUTCMonth(),S.getUTCDate(),23,59,59,999));l.value=D.toISOString(),c.value=F.toISOString(),r.value={start:l.value,end:c.value}},N=()=>{const S=new Date,D=new Date(S);D.setUTCDate(S.getUTCDate()-7),D.setUTCHours(0,0,0,0),l.value=D,c.value=f(S),S.setUTCHours(23,59,59,999);const F=D.toISOString(),B=S.toISOString();r.value={start:F,end:B}},O=()=>{const S=new Date,D=new Date(S);D.setUTCMonth(S.getUTCMonth()-1),D.setUTCHours(0,0,0,0),l.value=D,c.value=f(S),S.setUTCHours(23,59,59,999);const F=D.toISOString(),B=S.toISOString();r.value={start:F,end:B}},k=()=>{l.value=null,c.value=null,r.value={start:null,end:null}};return(S,D)=>(o.openBlock(),o.createElementBlock("div",tp,[e.allowRange?(o.openBlock(),o.createElementBlock("div",np,[o.createElementVNode("button",{onClick:w,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Today"),o.createElementVNode("button",{onClick:N,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Last Week"),o.createElementVNode("button",{onClick:O,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Last Month"),o.createElementVNode("button",{onClick:k,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"All time")])):o.createCommentVNode("",!0),o.createElementVNode("div",rp,[o.createElementVNode("button",{onClick:o.withModifiers(p,["stop"]),class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"},"<"),o.createElementVNode("span",op,o.toDisplayString(m.value),1),o.createElementVNode("button",{onClick:o.withModifiers(_,["stop"]),class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"},">")]),o.createElementVNode("div",ap,[o.createElementVNode("div",sp,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(d,(F,B)=>o.createElementVNode("div",{key:B,class:"calendar__weekday"},o.toDisplayString(F),1)),64))]),o.createElementVNode("div",ip,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList($.value,F=>(o.openBlock(),o.createElementBlock("div",{key:F.date,class:o.normalizeClass(["flex flex-center cursor-pointer aspect-ratio-1x1 radius-small",{"bg-main t-white":F.isToday},{"calendar__date--selected":C(F.date)},{"calendar__date--range":y(F.date)},{"calendar__date--disabled":!g(F.date)}]),onClick:o.withModifiers(B=>E(F.date),["stop"])},o.toDisplayString(F.day),11,lp))),128))])])]))}},dp=o.createElementVNode("div",{class:"radius-extra pd-small t-black p-medium"},[o.createElementVNode("div",{class:"radius-extra pd-nano w-3r h-1r t-black p-medium bg-black-transp-10"})],-1),up=[dp],fp={__name:"BottomSheet",props:{show:{type:Boolean,default:!1},options:{type:Object,default:{position:!1}}},emits:["toggle"],setup(e,{emit:t}){const n=t,r=o.ref(null),a=o.ref(0),s=o.ref(0),i=o.ref(!1);function l(u){i.value=!0,a.value=u.touches?u.touches[0].clientY:u.clientY,s.value=a.value}function c(u){if(!i.value)return;u.preventDefault(),s.value=u.touches?u.touches[0].clientY:u.clientY;const f=s.value-a.value;f>0&&(r.value.style.top=`${f}px`)}function d(){if(!i.value)return;i.value=!1;const u=s.value-a.value,f=window.innerHeight*.2;u<f?r.value.style.top="":n("toggle")}return(u,f)=>(o.openBlock(),o.createBlock(o.Transition,{name:"slideY",mode:"out-in"},{default:o.withCtx(()=>[o.createElementVNode("section",{ref_key:"wrapper",ref:r,class:"w-100 h-100vh",style:o.normalizeStyle(u.MOBILE_APP==="ios"?"padding-top: 6rem;":"")},[o.createElementVNode("div",{onClick:f[0]||(f[0]=m=>n("toggle")),onMousedown:l,onTouchstart:l,onMousemove:c,onTouchmove:c,onMouseup:d,onTouchend:d,onMouseleave:d,class:"bs-black d-block p-medium pos-relative bg-white flex-center flex uppercase z-index-2"},up,32),o.renderSlot(u.$slots,"default")],4)]),_:3}))}},mp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},pp=["fill"],hp={__name:"IconSearch",props:{fill:{type:String,default:"rgb(var(--black))"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",mp,[o.createElementVNode("path",{fill:e.fill,d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6 .1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},null,8,pp)]))}},gp={class:"flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-big"},$p={__name:"BlockSearch",props:{placeholder:{type:String,default:"Enter shop or product name"},button:{type:String,default:"Search"}},emits:["search"],setup(e,{emit:t}){const n=t;o.ref(null);const r=a=>{n("search",a)};return(a,s)=>(o.openBlock(),o.createElementBlock("div",gp,[o.createVNode(hp,{class:"i-medium t-transp mn-r-thin"}),o.createVNode(_n,{placeholder:e.placeholder,"onUpdate:field":s[0]||(s[0]=i=>r(i)),class:"w-100"},null,8,["placeholder"])]))}},vp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},yp=["width","fill"],_p=["width","fill"],bp=["width","fill"],Ep=["width","fill"],yr={__name:"IconSort",props:{fill:{type:String,default:"rgb(var(--black))"},order:{type:String,default:"desc"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",vp,[o.createElementVNode("rect",{y:"0",width:e.order==="desc"?32:8,height:"5",rx:"2.5",fill:e.fill,class:"transition-linear"},null,8,yp),o.createElementVNode("rect",{y:"9",width:e.order==="desc"?24:16,height:"5",rx:"2.5",fill:e.fill,class:"transition-linear"},null,8,_p),o.createElementVNode("rect",{y:"18",width:e.order==="desc"?16:24,height:"5",rx:"2.5",fill:e.fill,class:"transition-linear"},null,8,bp),o.createElementVNode("rect",{y:"27",width:e.order==="desc"?8:32,height:"5",rx:"2.5",fill:e.fill,class:"transition-linear"},null,8,Ep)]))}},Cp={__name:"ButtonSort",props:{action:{type:Function},order:{type:String,required:!0}},setup(e){const t=e,{action:n,order:r}=o.toRefs(t),a=()=>{n.value&&n.value()};return(s,i)=>(o.openBlock(),o.createElementBlock("div",{onClick:a,class:"cursor-pointer t-center t-black radius-small flex-center flex aspect-1x1"},[o.createVNode(yr,{order:o.unref(r),class:"w-100 h-auto"},null,8,["order"])]))}},Sp={class:"w-100 o-hidden"},Np={class:"mn-b-thin"},Op={class:"w-100 flex-nowrap flex gap-micro"},Tp={__name:"BlockSorting",props:o.mergeModels({title:{type:String,default:"Sorting Options"},options:{type:Array,default:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"popularity"},{label:"Creator",value:"creator"}]}},{param:{},paramModifiers:{},order:{},orderModifiers:{}}),emits:["update:param","update:order"],setup(e){const t=o.useModel(e,"param"),n=o.useModel(e,"order");return(r,a)=>(o.openBlock(),o.createElementBlock("div",Sp,[o.createElementVNode("h4",Np,o.toDisplayString(e.title),1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,s=>(o.openBlock(),o.createBlock(Vr,{radio:t.value,"onUpdate:radio":a[0]||(a[0]=i=>t.value=i),label:s.label,value:s.value,class:"w-100 mn-b-thin"},null,8,["radio","label","value"]))),256)),o.createElementVNode("div",Op,[o.createElementVNode("button",{onClick:a[1]||(a[1]=o.withModifiers(()=>n.value="asc",["stop"])),class:o.normalizeClass([{"bg-white t-black":n.value==="asc"},"radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"])},[o.createVNode(yr,{order:"asc",fill:n.value==="asc"?"rgb(var(--black))":"rgb(var(--white))",class:"i-small"},null,8,["fill"]),o.createTextVNode(" Ascending ")],2),o.createElementVNode("button",{onClick:a[2]||(a[2]=o.withModifiers(()=>n.value="desc",["stop"])),class:o.normalizeClass([{"bg-white t-black":n.value==="desc"},"radius-semi flex-center w-100 uppercase p-small flex-nowrap flex gap-thin pd-thin br-solid br-1px br-grey-transp-25 w-100"])},[o.createVNode(yr,{order:"desc",fill:n.value==="desc"?"rgb(var(--black))":"rgb(var(--white))",class:"i-small"},null,8,["fill"]),o.createTextVNode(" Descending ")],2)])]))}},wp={props:{fill:{type:String,default:"rgb(var(--black)"}}},kp={width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lp={transform:"rotate(90 40 40)"},Ip=["fill"];function Pp(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("svg",kp,[o.createElementVNode("g",Lp,[o.createElementVNode("path",{fill:n.fill,d:"M16.25 9.375L20 5.9375C21.5625 4.53125 23.9062 4.6875 25.3125 6.25L54.2188 37.8125C55.3125 39.0625 55.3125 40.9375 54.2188 42.1875L25.3125 73.75C23.9062 75.3125 21.5625 75.4688 20 74.0625L16.25 70.625C14.6875 69.375 14.5312 66.875 15.9375 65.4688L39.375 40L15.9375 14.5312C14.5312 13.125 14.6875 10.625 16.25 9.375Z"},null,8,Ip)])])}const Ap=qe(wp,[["render",Pp]]),Dp={class:"w-100 o-scroll"},Rp={class:"cursor-pointer w-100 flex-v-center flex-nowrap flex"},Mp={class:"w-100"},Fp={__name:"BlockFilter",props:o.mergeModels({title:{type:String,default:"Sorting Options"},options:{type:Array}},{filter:{},filterModifiers:{}}),emits:["update:filter"],setup(e){const t=o.useModel(e,"filter");return(n,r)=>(o.openBlock(),o.createElementBlock("div",Dp,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,a=>(o.openBlock(),o.createBlock(Ur,{class:"o-hidden bg-white pd-medium radius-big mn-b-small",status:!0},{header:o.withCtx(({isOpen:s})=>[o.createElementVNode("div",Rp,[o.createElementVNode("h4",Mp,o.toDisplayString(a.title),1),o.createVNode(Ap,{class:o.normalizeClass([{"rotate-180":s},"radius-big pd-micro bg-light i-semi"]),fill:"rgb(var(--black))"},null,8,["class"])])]),content:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.options,(s,i)=>(o.openBlock(),o.createBlock(vn,{key:i,label:s.label,value:s.value,class:"w-100 mn-t-small mn-b-small br-1px br-solid br-light radius-small pd-small",radio:t.value.selected[a.value],"onUpdate:radio":l=>t.value.selected[a.value]=l},null,8,["label","value","radio","onUpdate:radio"]))),128))]),_:2},1024))),256)),o.createElementVNode("button",{onClick:r[0]||(r[0]=()=>t.value.selected={}),class:"bg-main w-100 button"},"Reset Filters")]))}},xp={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},Bp=["fill"],Vp={__name:"IconCalendar",props:{fill:{type:String,default:"rgb(var(--black))"},order:{type:String,default:"desc"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",xp,[o.createElementVNode("path",{d:"M3 43.5V18H45V43.5C45 45.9375 42.9375 48 40.5 48H7.5C5.0625 48 3 45.9375 3 43.5ZM33 25.5V28.5C33 29.3438 33.6562 30 34.5 30H37.5C38.3438 30 39 29.3438 39 28.5V25.5C39 24.6562 38.3438 24 37.5 24H34.5C33.6562 24 33 24.6562 33 25.5ZM33 37.5V40.5C33 41.3438 33.6562 42 34.5 42H37.5C38.3438 42 39 41.3438 39 40.5V37.5C39 36.6562 38.3438 36 37.5 36H34.5C33.6562 36 33 36.6562 33 37.5ZM21 25.5V28.5C21 29.3438 21.6562 30 22.5 30H25.5C26.3438 30 27 29.3438 27 28.5V25.5C27 24.6562 26.3438 24 25.5 24H22.5C21.6562 24 21 24.6562 21 25.5ZM21 37.5V40.5C21 41.3438 21.6562 42 22.5 42H25.5C26.3438 42 27 41.3438 27 40.5V37.5C27 36.6562 26.3438 36 25.5 36H22.5C21.6562 36 21 36.6562 21 37.5ZM9 25.5V28.5C9 29.3438 9.65625 30 10.5 30H13.5C14.3438 30 15 29.3438 15 28.5V25.5C15 24.6562 14.3438 24 13.5 24H10.5C9.65625 24 9 24.6562 9 25.5ZM9 37.5V40.5C9 41.3438 9.65625 42 10.5 42H13.5C14.3438 42 15 41.3438 15 40.5V37.5C15 36.6562 14.3438 36 13.5 36H10.5C9.65625 36 9 36.6562 9 37.5ZM40.5 6C42.9375 6 45 8.0625 45 10.5V15H3V10.5C3 8.0625 5.0625 6 7.5 6H12V1.5C12 0.65625 12.6562 0 13.5 0H16.5C17.3438 0 18 0.65625 18 1.5V6H30V1.5C30 0.65625 30.6562 0 31.5 0H34.5C35.3438 0 36 0.65625 36 1.5V6H40.5Z",fill:e.fill},null,8,Bp)]))}},Up={class:"t-semi"},jp={__name:"ButtonDate",props:{action:{type:Function},date:{type:Object}},setup(e){const t=e,{action:n,date:r}=o.toRefs(t),a=o.computed(()=>i(r.value)),s=()=>{n.value&&n.value()};function i(l){const c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],{start:d,end:u}=l;if(d===null&&u===null)return"All Time";const f=new Date(d),m=f.getUTCDate(),$=c[f.getUTCMonth()],h=f.getUTCFullYear();if(!u)return`${m} ${$} ${h}`;const g=new Date(u),C=g.getUTCDate(),y=c[g.getUTCMonth()],E=g.getUTCFullYear();return`${m} ${$} - ${C} ${y} ${E}`}return(l,c)=>(o.openBlock(),o.createElementBlock("div",{onClick:s,class:"cursor-pointer flex-center flex"},[o.createVNode(Vp,{class:"w-1r mn-r-thin h-auto"}),o.createElementVNode("span",Up,o.toDisplayString(a.value),1)]))}},Hp={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},Gp=["fill"],Wp={__name:"IconFilter",props:{fill:{type:String,default:"rgb(var(--black))"},order:{type:String,default:"desc"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",Hp,[o.createElementVNode("path",{d:"M46.4267 13.1341L29.226 30.2782V43.1433C29.2272 43.5293 29.1102 43.9065 28.8907 44.2239C28.6711 44.5414 28.3596 44.784 27.998 44.9191L20.5831 47.6868C20.2976 47.7934 19.9905 47.8294 19.6881 47.7917C19.3856 47.754 19.0968 47.6437 18.8462 47.4701C18.5957 47.2966 18.3908 47.065 18.2492 46.7952C18.1075 46.5253 18.0332 46.2252 18.0327 45.9204V30.2498L1.50259 13.0491C0.772898 12.2954 0.281511 11.3434 0.0898392 10.312C-0.101832 9.28058 0.0147126 8.21558 0.424909 7.25005C0.835106 6.28453 1.52076 5.46131 2.39619 4.88327C3.27161 4.30523 4.29798 3.99801 5.34702 4.00001H42.6579C43.7158 4.00084 44.7497 4.31552 45.6287 4.90422C46.5077 5.49291 47.1923 6.32916 47.5958 7.30712C47.9993 8.28507 48.1036 9.36075 47.8955 10.398C47.6874 11.4353 47.1763 12.3875 46.4267 13.1341Z",fill:e.fill},null,8,Gp)]))}},Kp={key:0,class:"flex-nowrap flex gap-thin"},yi={__name:"Feed",props:o.mergeModels({showLoadMore:{type:Boolean,default:!0},search:{type:[Boolean,Object],default:!1},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},external:{type:Boolean,default:!1},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},{search:{},searchModifiers:{},sort:{},sortModifiers:{},filter:{},filterModifiers:{},date:{},dateModifiers:{},items:{},itemsModifiers:{}}),emits:["update:search","update:sort","update:filter","update:date","update:items"],setup(e){const t=o.useModel(e,"search"),n=o.useModel(e,"sort"),r=o.useModel(e,"filter"),a=o.useModel(e,"date"),s=o.useModel(e,"items"),i=e,l=o.ref(s.value||[]),c=o.ref(!1);let d=o.ref(!0),u=o.ref(null),f=o.ref(i.options.skip?i.options.skip:0),m=o.ref(i.options.limit?i.options.limit:10),$=o.ref("");function h(E){$.value=E,f.value=0,m.value=10,C()}const g=async()=>{if(c.value){f.value+=m.value;const E=await i.store.read({skip:f.value,limit:m.value,search:$.value,dateStart:a.value?a.value.start:null,dateEnd:a.value?a.value.end:null,sortParam:n.value?n.value.param:null,sortOrder:n.value?n.value.order:null,...i.options});E.length===0||E.length<m.value?c.value=!1:c.value=!0,l.value=[...l.value,...E],s.value&&(s.value=l.value)}},C=async()=>{const E=await i.store.read({skip:f.value,limit:m.value,dateStart:a.value?a.value.start:null,dateEnd:a.value?a.value.end:null,sortParam:n.value?n.value.param:null,sortOrder:n.value?n.value.order:null,search:$.value,...i.options});E.length===0||E.length<m.value?c.value=!1:c.value=!0,l.value=E,s.value&&(s.value=l.value),d.value=!1};o.watch(()=>i.external,(E,p)=>{E!==p&&(f.value=0,C())},{deep:!0}),o.watch(()=>a.value,(E,p)=>{E!==p&&(f.value=0,C())},{deep:!0}),o.watch(()=>{var E;return(E=n.value)==null?void 0:E.order},(E,p)=>{E!==p&&(f.value=0,C())}),o.watch(()=>{var E;return(E=n.value)==null?void 0:E.param},(E,p)=>{E!==p&&(f.value=0,C())}),o.watch(()=>i.options,(E,p)=>{(E.organization!==p.organization||E.categories!==p.categories||E.prices!==p.prices||E.delivery!==p.delivery||E.search!==p.search||E.status!==p.status||E.hidden!==p.hidden||E.type!==p.type||E.tags!==p.tags||E.following!==p.following)&&(f.value=0,C())},{deep:!0});let y=null;return o.onMounted(async()=>{await C(),typeof window<"u"&&!i.showLoadMore&&(y=new IntersectionObserver(E=>{E.some(p=>p.isIntersecting)&&g()}),y.observe(u.value))}),o.onUnmounted(()=>{y&&y.disconnect()}),(E,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[t.value||a.value||n.value&&!n.value.hideButton?(o.openBlock(),o.createElementBlock("div",Kp,[t.value?(o.openBlock(),o.createBlock($p,{key:0,placeholder:t.value.placeholder||"Search...",class:o.normalizeClass(t.value.class||"bg-light"),onSearch:h},null,8,["placeholder","class"])):o.createCommentVNode("",!0),r.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",{class:o.normalizeClass([r.value.class||"bg-light","flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100"])},[o.createVNode(Wp,{onClick:p[0]||(p[0]=()=>r.value.active=!r.value.active),class:"w-1r h-auto"})],2),r.value.active?(o.openBlock(),o.createBlock(fp,{key:0,show:r.value.active,onToggle:p[2]||(p[2]=()=>r.value.active=!1),class:o.normalizeClass(["z-index-10 pos-fixed pos-t-0 pos-r-0",{"pos-t-0":r.value.active,"pos-t-100":!r.value.active}])},{default:o.withCtx(()=>[o.createVNode(Fp,{filter:r.value,"onUpdate:filter":p[1]||(p[1]=_=>r.value=_),options:r.value.options,class:"h-100 w-100 pd-small bg-light"},null,8,["filter","options"])]),_:1},8,["show","class"])):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),a.value?(o.openBlock(),o.createBlock(ln,{key:2,label:{component:jp,props:{date:a.value}},class:o.normalizeClass([a.value.class||"bg-light","flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),align:t.value?"right":"left"},{default:o.withCtx(()=>[o.createVNode(cp,{date:a.value,"onUpdate:date":p[3]||(p[3]=_=>a.value=_),locale:E.$i18n.locale,allowRange:!0,class:"radius-semi w-100 o-hidden bg-light"},null,8,["date","locale"])]),_:1},8,["label","class","align"])):o.createCommentVNode("",!0),n.value&&!n.value.hideButton?(o.openBlock(),o.createBlock(ln,{key:3,label:{component:Cp,props:{order:n.value.order},class:"w-1r"},class:o.normalizeClass([n.value.class||"bg-light","radius-extra aspect-1x1 h-100"]),align:t.value?"right":"left"},{default:o.withCtx(()=>[o.createVNode(Tp,{param:n.value.param,"onUpdate:param":p[4]||(p[4]=_=>n.value.param=_),order:n.value.order,"onUpdate:order":p[5]||(p[5]=_=>n.value.order=_),options:n.value.options,class:"h-100 pd-small radius-semi t-white bg-black"},null,8,["param","order","options"])]),_:1},8,["label","class","align"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.unref(d)?(o.openBlock(),o.createBlock(o.TransitionGroup,{key:1,tag:"ul",name:"scaleTransition"},{default:o.withCtx(()=>[o.unref(d)?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(o.unref(m),_=>(o.openBlock(),o.createBlock(ep,{key:"skeleton-"+_,class:"mn-b-small radius-big o-hidden d-block"}))),128)):o.createCommentVNode("",!0)]),_:1})):o.createCommentVNode("",!0),!o.unref(d)&&l.value.length<1?(o.openBlock(),o.createBlock(o.TransitionGroup,{key:2,tag:"ul",name:"feed"},{default:o.withCtx(()=>[!o.unref(d)&&l.value.length<1?(o.openBlock(),o.createBlock(zr,{key:0,title:e.states.empty.title,description:e.states.empty.description,action:e.states.empty.action,callback:e.states.empty.callback,class:"pd-medium mn-b-thin bg-light radius-big"},null,8,["title","description","action","callback"])):o.createCommentVNode("",!0)]),_:1})):o.createCommentVNode("",!0),o.createVNode(o.TransitionGroup,{tag:"ul",name:"feed",class:o.normalizeClass(E.$attrs.class)},{default:o.withCtx(()=>[!o.unref(d)&&l.value.length>0?o.renderSlot(E.$slots,"default",{key:0,items:l.value}):o.createCommentVNode("",!0),e.showLoadMore&&c.value&&l.value.length>0?(o.openBlock(),o.createElementBlock("button",{key:1,onClick:g,class:"col-w-100 w-100 bg-main button"}," Load More ")):o.createCommentVNode("",!0),o.createElementVNode("div",{key:"sentinel",ref_key:"sentinel",ref:u,class:"sentinel"},null,512)]),_:3},8,["class"])],64))}},zp=Object.freeze(Object.defineProperty({__proto__:null,default:yi},Symbol.toStringTag,{value:"Module"})),Yp={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},qp=["fill","transform"],Xp={__name:"IconArrow",props:{fill:{type:String,default:"rgb(var(--black))"},rotation:{type:Number,default:0}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",Yp,[o.createElementVNode("path",{fill:e.fill,transform:`rotate(${e.rotation}, 24, 24)`,d:"M42.4938 21.6042L29.8525 8.96288C29.568 8.66354 29.2265 8.42416 28.8481 8.25884C28.4696 8.09352 28.062 8.0056 27.649 8.00026C27.2361 7.99492 26.8263 8.07226 26.4437 8.22774C26.0612 8.38322 25.7136 8.61368 25.4214 8.90556C25.1293 9.19743 24.8985 9.54482 24.7427 9.92725C24.5869 10.3097 24.5092 10.7194 24.5142 11.1324C24.5192 11.5453 24.6067 11.953 24.7717 12.3316C24.9367 12.7102 25.1758 13.0519 25.4749 13.3366L32.9475 20.7978H8.09504C7.27418 20.7978 6.48695 21.1238 5.90652 21.7043C5.32608 22.2847 5 23.0719 5 23.8928C5 24.7137 5.32608 25.5009 5.90652 26.0813C6.48695 26.6618 7.27418 26.9878 8.09504 26.9878H32.8784L25.4749 34.4029C24.9186 34.9882 24.6131 35.7677 24.6236 36.5751C24.634 37.3825 24.9596 38.1538 25.5308 38.7245C26.102 39.2952 26.8736 39.6201 27.681 39.6299C28.4884 39.6396 29.2677 39.3334 29.8525 38.7766L42.4938 26.1354C42.7822 25.8487 43.0108 25.5076 43.1664 25.1318C43.3219 24.7561 43.4013 24.3532 43.4 23.9466C43.402 23.921 43.402 23.8953 43.4 23.8698C43.4018 23.8442 43.4018 23.8185 43.4 23.793C43.3997 22.9721 43.0738 22.1849 42.4938 21.6042Z"},null,8,qp)]))}},Jp={class:"pd-thin radius-extra flex-nowrap flex"},_i={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["Lowest THC, please!","Something with banana flavors?","I'm in the mood for trippy vibes."],ru:["Я хочу самый низкий THC","Я хочу чего-нибудь бананового","Я хочу курнуть хейза"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(e,{emit:t}){const n=e,{t:r,locale:a}=It();let s=o.ref(0),i=o.ref(n.input),l=o.ref(n.placeholder),c=o.ref(n.enableTyping),d=o.ref(null),u=o.ref(""),f=o.ref(!0),m=null;const $=t;function h(){$("action")}function g(_){$("update:input",_),u.value=_}function C(){s.value=(s.value+1)%n.placeholderTexts[a.value].length}function y(){c.value=!1,clearInterval(d.value),l.value=n.placeholder,u.value||(i.value="")}function E(){!u.value&&n.enableTyping&&(c.value=!0,l.value="",p())}function p(){let _=n.placeholderTexts[a.value][s.value],w=0,N=!1;m=setInterval(()=>{f.value=!f.value},200),d.value=setInterval(()=>{c.value&&(N?(i.value=i.value.slice(0,-1),i.value=_.substring(0,w)+(f.value&&w%2?"|":""),w--):(i.value=_.substring(0,w)+(f.value&&w%2?"|":""),w++),w>_.length&&n.loopTyping&&setTimeout(()=>{N=!0,i.value=_.substring(0,w)},333),w===0&&N&&(N=!1,C(),_=n.placeholderTexts[a.value][s.value]))},n.typingSpeed)}return o.onMounted(()=>{n.enableTyping&&p()}),o.watchEffect(()=>{c.value||(clearInterval(d.value),clearInterval(m))}),(_,w)=>(o.openBlock(),o.createElementBlock("div",Jp,[o.createVNode(_n,{field:o.unref(i),"onUpdate:field":[w[0]||(w[0]=N=>o.isRef(i)?i.value=N:i=N),g],placeholder:o.unref(c)?"":e.placeholder,onInput:C,onFocus:y,onBlur:E,class:"w-100 p-medium t-regular uppercase pd-small"},null,8,["field","placeholder"]),e.action?(o.openBlock(),o.createElementBlock("button",{key:0,onClick:h,class:"t-nowrap t-medium radius-big uppercase cursor-pointer flex flex-v-center pd-r-small pd-l-small w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main"},[o.createElementVNode("span",null,o.toDisplayString(e.action),1),o.createVNode(Xp,{class:"mn-l-thin radius-extra bg-white i-medium"})])):o.createCommentVNode("",!0)]))}},Zp=Object.freeze(Object.defineProperty({__proto__:null,default:_i},Symbol.toStringTag,{value:"Module"}));function Qp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var e3=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[a]))return!1;for(a=r;a--!==0;){var i=s[a];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n};const t3=Qp(e3),n3=(e,t)=>t.filter(n=>{const{text:r}=e;if(typeof n.rule=="string")return!new RegExp(n.rule).test(r);if(n.rule instanceof RegExp)return!n.rule.test(r);if({}.toString.call(n.rule)==="[object Function]")return n.rule(e)}).map(n=>n.classes),Ot=e=>JSON.parse(JSON.stringify(e)),r3=(e,t)=>{let n=0;for(;n<e.length;){if(t(e[n],n,e))return n;n++}return-1},bi=(e,t,n=[],r)=>{e.text===void 0&&(e={text:e});const a=n3(e,n),s=r3(t,d=>d===e),i=Ot(t),l=s!==-1?i.splice(s,1)[0]:Ot(e);return(r?r(i,l):i.map(d=>d.text).indexOf(l.text)!==-1)&&a.push("ti-duplicate"),a.length===0?a.push("ti-valid"):a.push("ti-invalid"),a},Ft=(e,...t)=>{e.text===void 0&&(e={text:e});const n=Ot(e);return n.tiClasses=bi(e,...t),n},o3=(e,...t)=>e.map(n=>Ft(n,e,...t)),a3={name:"TagInput",props:{scope:{type:Object}}},s3=["maxlength"];function i3(e,t,n,r,a,s){return n.scope.edit?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=i=>n.scope.tag.text=i),maxlength:n.scope.maxlength,type:"text",class:"ti-tag-input",size:"1",onInput:t[1]||(t[1]=i=>n.scope.validateTag(n.scope.index,i)),onBlur:t[2]||(t[2]=i=>n.scope.performCancelEdit(n.scope.index)),onKeydown:t[3]||(t[3]=i=>n.scope.performSaveEdit(n.scope.index,i))},null,40,s3)),[[o.vModelText,n.scope.tag.text]]):o.createCommentVNode("",!0)}const l3=qe(a3,[["render",i3]]),ka=e=>!e.some(t=>{const n=!t.text;n&&console.warn('Missing property "text"',t);let r=!1;return t.classes&&(r=typeof t.classes!="string"),r&&console.warn('Property "classes" must be type of string',t),n||r}),La=e=>!e.some(t=>{if(typeof t=="number"){const n=isFinite(t)&&Math.floor(t)===t;return n||console.warn("Only numerics are allowed for this prop. Found:",t),!n}else if(typeof t=="string"){const n=/\W|[a-z]|!\d/i.test(t);return n||console.warn("Only alpha strings are allowed for this prop. Found:",t),!n}else return console.warn("Only numeric and string values are allowed. Found:",t),!1}),c3={modelValue:{type:String,default:"",required:!0},tags:{type:Array,default:()=>[],validator:ka},autocompleteItems:{type:Array,default:()=>[],validator:ka},allowEditTags:{type:Boolean,default:!1},autocompleteFilterDuplicates:{default:!0,type:Boolean},addOnlyFromAutocomplete:{type:Boolean,default:!1},autocompleteMinLength:{type:Number,default:1},autocompleteAlwaysOpen:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Add Tag"},addOnKey:{type:Array,default:()=>[13],validator:La},saveOnKey:{type:Array,default:()=>[13],validator:La},maxTags:{type:Number},maxlength:{type:Number},validation:{type:Array,default:()=>[],validator(e){return!e.some(t=>{const n=!t.rule;n&&console.warn('Property "rule" is missing',t);const r=t.rule&&(typeof t.rule=="string"||t.rule instanceof RegExp||{}.toString.call(t.rule)==="[object Function]");r||console.warn("A rule must be type of string, RegExp or function. Found:",JSON.stringify(t.rule));const a=!t.classes;a&&console.warn('Property "classes" is missing',t);const s=t.type&&typeof t.type!="string";return s&&console.warn('Property "type" must be type of string. Found:',t),!r||n||a||s})}},separators:{type:Array,default:()=>[";"],validator(e){return!e.some(t=>{const n=typeof t!="string";return n&&console.warn("Separators must be type of string. Found:",t),n})}},avoidAddingDuplicates:{type:Boolean,default:!0},addOnBlur:{type:Boolean,default:!0},isDuplicate:{type:Function,default:null},addFromPaste:{type:Boolean,default:!0},deleteOnBackspace:{default:!0,type:Boolean},onBeforeAddingTag:Function,onBeforeDeletingTag:Function,onBeforeEditingTag:Function,onBeforeSavingTag:Function},d3={name:"VueTagsInput",components:{TagInput:l3},props:c3,emits:["adding-duplicate","before-adding-tag","before-deleting-tag","before-editing-tag","before-saving-tag","max-tags-reached","saving-duplicate","tags-changed","tag-clicked","update:modelValue","update:tags"],inheritAttrs:!1,data(){return{tagCenter:[],newTag:null,tagsCopy:[],tagsEditStatus:null,deletionMark:null,deletionMarkTime:null,selectedItem:null,focused:null}},computed:{autocompleteOpen(){return this.autocompleteAlwaysOpen?!0:this.newTag!==null&&this.newTag.length>=this.autocompleteMinLength&&this.filteredAutocompleteItems.length>0&&this.focused},filteredAutocompleteItems(){const e=this.autocompleteItems.map(t=>Ft(t,this.tags,this.validation,this.isDuplicate));return this.autocompleteFilterDuplicates?e.filter(this.duplicateFilter):e}},methods:{createClasses:bi,getSelectedIndex(e){const t=this.filteredAutocompleteItems,n=this.selectedItem,r=t.length-1;if(t.length!==0)return n===null?0:e==="before"&&n===0?r:e==="after"&&n===r?0:e==="after"?n+1:n-1},selectDefaultItem(){this.addOnlyFromAutocomplete&&this.filteredAutocompleteItems.length>0?this.selectedItem=0:this.selectedItem=null},selectItem(e,t){e.preventDefault(),this.selectedItem=this.getSelectedIndex(t)},isSelected(e){return this.selectedItem===e},isMarked(e){return this.deletionMark===e},setTagCenter(e){e&&this.tagCenter.push(e)},invokeDelete(){if(!this.deleteOnBackspace||this.newTag.length>0)return;const e=this.tagsCopy.length-1;this.deletionMark===null?(this.deletionMarkTime=setTimeout(()=>this.deletionMark=null,1e3),this.deletionMark=e):this.performDeleteTag(e)},addTagsFromPaste(){this.addFromPaste&&setTimeout(()=>this.performAddTags(this.newTag),10)},performEditTag(e){this.allowEditTags&&(this.onBeforeAddingTag||this.editTag(e),this.$emit("before-editing-tag",{index:e,tag:this.tagsCopy[e],editTag:()=>this.editTag(e)}))},editTag(e){this.allowEditTags&&(this.toggleEditMode(e),this.focus(e))},toggleEditMode(e){!this.allowEditTags||this.disabled||(this.tagsEditStatus[e]=!this.tagsEditStatus[e])},createChangedTag(e,t){const n=this.tagsCopy[e];n.text=t?t.target.value:this.tagsCopy[e].text,this.tagsCopy[e]=Ft(n,this.tagsCopy,this.validation,this.isDuplicate)},focus(e){this.$nextTick(()=>{const t=this.tagCenter[e].querySelector("input.ti-tag-input");t&&t.focus()})},quote(e){return e.replace(/([()[{*+.$^\\|?])/g,"\\$1")},cancelEdit(e){this.tags[e]&&(this.tagsCopy[e]=Ot(Ft(this.tags[e],this.tags,this.validation,this.isDuplicate)),this.tagsEditStatus[e]=!1)},hasForbiddingAddRule(e){return e.some(t=>{const n=this.validation.find(r=>t===r.classes);return n?n.disableAdd:!1})},createTagTexts(e){const t=new RegExp(this.separators.map(n=>this.quote(n)).join("|"));return e.split(t).map(n=>({text:n}))},performDeleteTag(e){this.onBeforeDeletingTag||this.deleteTag(e),this.$emit("before-deleting-tag",{index:e,tag:this.tagsCopy[e],deleteTag:()=>this.deleteTag(e)})},deleteTag(e){this.disabled||(this.deletionMark=null,clearTimeout(this.deletionMarkTime),this.tagsCopy.splice(e,1),this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},noTriggerKey(e,t){const n=this[t].indexOf(e.keyCode)!==-1||this[t].indexOf(e.key)!==-1;return n&&e.preventDefault(),!n},performAddTags(e,t,n){if(this.disabled||t&&this.noTriggerKey(t,"addOnKey"))return;let r=[];typeof e=="object"&&(r=[e]),typeof e=="string"&&(r=this.createTagTexts(e)),r=r.filter(a=>a.text.trim().length>0),r.forEach(a=>{a=Ft(a,this.tags,this.validation,this.isDuplicate),this.onBeforeAddingTag||this.addTag(a,n),this.$emit("before-adding-tag",{tag:a,addTag:()=>this.addTag(a,n)})})},duplicateFilter(e){return this.isDuplicate?!this.isDuplicate(this.tagsCopy,e):!this.tagsCopy.find(t=>t.text===e.text)},addTag(e,t="new-tag-input"){const n=this.filteredAutocompleteItems.map(r=>r.text);this.addOnlyFromAutocomplete&&n.indexOf(e.text)===-1||this.$nextTick(()=>{if(this.maxTags&&this.maxTags<=this.tagsCopy.length)return this.$emit("max-tags-reached",e);if(this.avoidAddingDuplicates&&!this.duplicateFilter(e))return this.$emit("adding-duplicate",e);this.hasForbiddingAddRule(e.tiClasses)||(this.newTag="",this.tagsCopy.push(e),this.$emit("update:tags",this.tagsCopy),t==="autocomplete"&&this.$refs.newTagInput.focus(),this.$emit("tags-changed",this.tagsCopy))})},performSaveTag(e,t){const n=this.tagsCopy[e];this.disabled||t&&this.noTriggerKey(t,"addOnKey")||n.text.trim().length!==0&&(this["on-before-saving-tag"]||this.saveTag(e,n),this.$emit("before-saving-tag",{index:e,tag:n,saveTag:()=>this.saveTag(e,n)}))},saveTag(e,t){if(this.avoidAddingDuplicates){const n=Ot(this.tagsCopy),r=n.splice(e,1)[0];if(this.isDuplicate?this.isDuplicate(n,r):n.map(s=>s.text).indexOf(r.text)!==-1)return this.$emit("saving-duplicate",t)}this.hasForbiddingAddRule(t.tiClasses)||(this.tagsCopy[e]=t,this.toggleEditMode(e),this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},tagsEqual(){return!this.tagsCopy.some((e,t)=>!t3(e,this.tags[t]))},updateNewTag(e){const t=e.target.value;this.newTag=t,this.$emit("update:modelValue",t)},initTags(){this.tagsCopy=o3(this.tags,this.validation,this.isDuplicate),this.tagsEditStatus=Ot(this.tags).map(()=>!1),this.tagsEqual()||this.$emit("update:tags",this.tagsCopy)},blurredOnClick(e){this.$el.contains(e.target)||this.$el.contains(document.activeElement)||this.performBlur(e)},performBlur(){this.addOnBlur&&this.focused&&this.performAddTags(this.newTag),this.focused=!1}},watch:{modelValue(e){this.addOnlyFromAutocomplete||(this.selectedItem=null),this.newTag=e},tags:{handler(){this.initTags()},deep:!0},autocompleteOpen:"selectDefaultItem"},created(){this.newTag=this.modelValue,this.initTags()},mounted(){this.selectDefaultItem(),document.addEventListener("click",this.blurredOnClick)},beforeUpdate(){this.tagCenter=[]},unmounted(){document.removeEventListener("click",this.blurredOnClick)}},u3={class:"ti-input"},f3={key:0,class:"ti-tags"},m3=["onClick"],p3={class:"ti-content"},h3={key:0,class:"ti-tag-left"},g3=["onClick"],$3={key:1,class:"ti-tag-right"},v3={class:"ti-actions"},y3=["onClick"],_3=["onClick"],b3={class:"ti-new-tag-input-wrapper"},E3=["placeholder","value","maxlength","disabled"],C3=["onMouseover"],S3=["onClick"];function N3(e,t,n,r,a,s){const i=o.resolveComponent("tag-input");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vue-tags-input",[{"ti-disabled":e.disabled},{"ti-focus":e.focused},e.$attrs.class]]),style:o.normalizeStyle(e.$attrs.style)},[o.createElementVNode("div",u3,[e.tagsCopy?(o.openBlock(),o.createElementBlock("ul",f3,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.tagsCopy,(l,c)=>(o.openBlock(),o.createElementBlock("li",{key:c,style:o.normalizeStyle(l.style),class:o.normalizeClass([[{"ti-editing":e.tagsEditStatus[c]},l.tiClasses,l.classes,{"ti-deletion-mark":e.isMarked(c)}],"ti-tag t-medium"]),tabindex:"0",onClick:d=>e.$emit("tag-clicked",{tag:l,index:c})},[o.createElementVNode("div",p3,[e.$slots["tag-left"]?(o.openBlock(),o.createElementBlock("div",h3,[o.renderSlot(e.$slots,"tag-left",{tag:l,index:c,edit:e.tagsEditStatus[c],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(c)})])):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_for:!0,ref:e.setTagCenter,class:"ti-tag-center"},[e.$slots["tag-center"]?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass({"ti-hidden":e.tagsEditStatus[c]}),onClick:d=>e.performEditTag(c)},o.toDisplayString(l.text),11,g3)),e.$slots["tag-center"]?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(i,{key:1,scope:{edit:e.tagsEditStatus[c],maxlength:e.maxlength,tag:l,index:c,validateTag:e.createChangedTag,performCancelEdit:e.cancelEdit,performSaveEdit:e.performSaveTag}},null,8,["scope"])),o.renderSlot(e.$slots,"tag-center",{tag:l,index:c,maxlength:e.maxlength,edit:e.tagsEditStatus[c],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,validateTag:e.createChangedTag,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(c)})],512),e.$slots["tag-right"]?(o.openBlock(),o.createElementBlock("div",$3,[o.renderSlot(e.$slots,"tag-right",{tag:l,index:c,edit:e.tagsEditStatus[c],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(c)})])):o.createCommentVNode("",!0)]),o.createElementVNode("div",v3,[e.$slots["tag-actions"]?o.createCommentVNode("",!0):o.withDirectives((o.openBlock(),o.createElementBlock("i",{key:0,class:"ti-icon-undo",onClick:d=>e.cancelEdit(c)},null,8,y3)),[[o.vShow,e.tagsEditStatus[c]]]),e.$slots["tag-actions"]?o.createCommentVNode("",!0):o.withDirectives((o.openBlock(),o.createElementBlock("i",{key:1,class:"ti-icon-close",onClick:d=>e.performDeleteTag(c)},null,8,_3)),[[o.vShow,!e.tagsEditStatus[c]]]),e.$slots["tag-actions"]?o.renderSlot(e.$slots,"tag-actions",{key:2,tag:l,index:c,edit:e.tagsEditStatus[c],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(c)}):o.createCommentVNode("",!0)])],14,m3))),128)),o.createElementVNode("li",b3,[o.createElementVNode("input",o.mergeProps({ref:"newTagInput"},e.$attrs,{class:[[e.createClasses(e.newTag,e.tags,e.validation,e.isDuplicate)],"ti-new-tag-input"],placeholder:e.placeholder,value:e.newTag,maxlength:e.maxlength,disabled:e.disabled,type:"text",size:"1",onKeydown:[t[0]||(t[0]=l=>e.performAddTags(e.filteredAutocompleteItems[e.selectedItem]||e.newTag,l)),t[2]||(t[2]=o.withKeys((...l)=>e.invokeDelete&&e.invokeDelete(...l),["delete"])),t[3]||(t[3]=o.withKeys((...l)=>e.performBlur&&e.performBlur(...l),["tab"])),t[4]||(t[4]=o.withKeys(l=>e.selectItem(l,"before"),["up"])),t[5]||(t[5]=o.withKeys(l=>e.selectItem(l,"after"),["down"]))],onPaste:t[1]||(t[1]=(...l)=>e.addTagsFromPaste&&e.addTagsFromPaste(...l)),onInput:t[6]||(t[6]=(...l)=>e.updateNewTag&&e.updateNewTag(...l)),onFocus:t[7]||(t[7]=l=>e.focused=!0),onClick:t[8]||(t[8]=l=>e.addOnlyFromAutocomplete?!1:e.selectedItem=null)}),null,16,E3)])])):o.createCommentVNode("",!0)]),o.renderSlot(e.$slots,"between-elements"),e.autocompleteOpen?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["ti-autocomplete",e.$attrs.class]),onMouseout:t[9]||(t[9]=l=>e.selectedItem=null)},[o.renderSlot(e.$slots,"autocomplete-header"),o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.filteredAutocompleteItems,(l,c)=>(o.openBlock(),o.createElementBlock("li",{key:c,style:o.normalizeStyle(l.style),class:o.normalizeClass([[l.tiClasses,l.classes,{"ti-selected-item":e.isSelected(c)}],"ti-item"]),onMouseover:d=>e.disabled?!1:e.selectedItem=c},[e.$slots["autocomplete-item"]?o.renderSlot(e.$slots,"autocomplete-item",{key:1,item:l,index:c,performAdd:d=>e.performAddTags(d,void 0,"autocomplete"),selected:e.isSelected(c)}):(o.openBlock(),o.createElementBlock("div",{key:0,onClick:d=>e.performAddTags(l,void 0,"autocomplete")},o.toDisplayString(l.text),9,S3))],46,C3))),128))]),o.renderSlot(e.$slots,"autocomplete-footer")],34)):o.createCommentVNode("",!0)],6)}const Ei=qe(d3,[["render",N3]]),O3=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),T3={id:"glcanvas",ref:"refCanvas"},Ci={__name:"Shader",setup(e){return o.onMounted(()=>{const t=document.getElementById("glcanvas"),n=t.getContext("webgl")||t.getContext("experimental-webgl"),r=`
|
38
|
-
attribute vec4 aVertexPosition;
|
39
|
-
void main() {
|
40
|
-
gl_Position = aVertexPosition;
|
41
|
-
}
|
42
|
-
`,a=`
|
43
|
-
precision mediump float;
|
44
|
-
|
45
|
-
const float PI = 3.14159265358979323846264;
|
46
|
-
const float TWOPI = PI * 2.0;
|
47
|
-
const vec4 WHITE = vec4(0.0, 1.0, 0.533, 1); // Для цвета F6F9F7
|
48
|
-
const vec4 BLACK = vec4(0.0, 0.9, 0.48, 1); // Для цвета EBF2ED
|
49
|
-
|
50
|
-
const int MAX_RINGS = 30;
|
51
|
-
const float RING_DISTANCE = 0.03;
|
52
|
-
const float WAVE_COUNT = 60.0;
|
53
|
-
const float WAVE_DEPTH = 0.08;
|
54
|
-
|
55
|
-
uniform float iTime;
|
56
|
-
uniform vec2 iResolution;
|
57
|
-
|
58
|
-
void main() {
|
59
|
-
float rot = mod(iTime * 0.6, TWOPI);
|
60
|
-
vec2 fragCoord = gl_FragCoord.xy;
|
61
|
-
vec2 pos = vec2(fragCoord.x / iResolution.x, fragCoord.y / iResolution.y);
|
62
|
-
pos = vec2(3.0 * (pos.x - 0.5), 3.0 * (pos.y - 0.4));
|
63
|
-
float x = pos.x;
|
64
|
-
float y = pos.y;
|
65
|
-
|
66
|
-
bool black = false;
|
67
|
-
float prevRingDist = RING_DISTANCE;
|
68
|
-
for (int i = 0; i < MAX_RINGS; i++) {
|
69
|
-
vec2 center = vec2(0.0, 0.7 - RING_DISTANCE * float(i) * 1.2);
|
70
|
-
float radius = 0.5 + RING_DISTANCE / (pow(float(i + 5), 1.1) * 0.006);
|
71
|
-
float dist = distance(center, pos);
|
72
|
-
dist = pow(dist, 0.3);
|
73
|
-
float ringDist = abs(dist - radius);
|
74
|
-
if (ringDist < RING_DISTANCE * prevRingDist * 7.0) {
|
75
|
-
float angle = atan(y - center.y, x - center.x);
|
76
|
-
float thickness = 1.1 * abs(dist - radius) / prevRingDist;
|
77
|
-
float depthFactor = WAVE_DEPTH * sin((angle + rot * radius) * WAVE_COUNT);
|
78
|
-
if (dist > radius) {
|
79
|
-
black = (thickness < RING_DISTANCE * 5.0 - depthFactor * 2.0);
|
80
|
-
} else {
|
81
|
-
black = (thickness < RING_DISTANCE * 5.0 + depthFactor);
|
82
|
-
}
|
83
|
-
break;
|
84
|
-
}
|
85
|
-
if (dist > radius) break;
|
86
|
-
prevRingDist = ringDist;
|
87
|
-
}
|
88
|
-
|
89
|
-
gl_FragColor = black ? BLACK : WHITE;
|
90
|
-
}
|
91
|
-
|
92
|
-
`;function s(f,m,$){const h=f.createShader(m);return f.shaderSource(h,$),f.compileShader(h),f.getShaderParameter(h,f.COMPILE_STATUS)?h:(alert("An error occurred compiling the shaders: "+f.getShaderInfoLog(h)),f.deleteShader(h),null)}const i=s(n,n.VERTEX_SHADER,r),l=s(n,n.FRAGMENT_SHADER,a),c=n.createProgram();n.attachShader(c,i),n.attachShader(c,l),n.linkProgram(c),n.getProgramParameter(c,n.LINK_STATUS)||alert("Unable to initialize the shader program: "+n.getProgramInfoLog(c));function d(f){const m=f.clientWidth*window.devicePixelRatio,$=f.clientHeight*window.devicePixelRatio;return f.width!==m||f.height!==$?(f.width=m,f.height=$,!0):!1}function u(){d(n.canvas)&&n.viewport(0,0,n.canvas.width,n.canvas.height),n.clearColor(0,0,0,1),n.clearDepth(1),n.enable(n.DEPTH_TEST),n.depthFunc(n.LEQUAL),n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),n.useProgram(c);const f=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,f);const m=[-1,1,1,1,-1,-1,1,-1];n.bufferData(n.ARRAY_BUFFER,new Float32Array(m),n.STATIC_DRAW);const $=n.getAttribLocation(c,"aVertexPosition");n.vertexAttribPointer($,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray($);var h=n.getUniformLocation(c,"iTime"),g=n.getUniformLocation(c,"iResolution");n.uniform1f(h,performance.now()/3e3),n.uniform2f(g,n.canvas.width,n.canvas.height),n.drawArrays(n.TRIANGLE_STRIP,0,4),requestAnimationFrame(u)}requestAnimationFrame(u)}),(t,n)=>(o.openBlock(),o.createElementBlock("canvas",T3,null,512))}},w3=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),k3={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},L3={__name:"Menu",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("section",k3,[o.renderSlot(t.$slots,"default")]))}},I3={props:{fill:{type:String,default:"rgb(var(--black)"}}},P3={xmlns:"http://www.w3.org/2000/svg",width:"80",height:"80",viewBox:"0 0 80 80",fill:"none"},A3=["fill"];function D3(e,t,n,r,a,s){return o.openBlock(),o.createElementBlock("svg",P3,[o.createElementVNode("path",{fill:n.fill,d:"M25.2765 9.37509L29.0265 5.93759C30.589 4.53134 32.9327 4.68759 34.339 6.25009L63.2453 37.8126C64.339 39.0626 64.339 40.9376 63.2453 42.1876L34.339 73.7501C32.9327 75.3126 30.589 75.4689 29.0265 74.0626L25.2765 70.6251C23.714 69.3751 23.5577 66.8751 24.964 65.4689L48.4015 40.0001L24.964 14.5313C23.5577 13.1251 23.714 10.6251 25.2765 9.37509Z"},null,8,A3)])}const R3=qe(I3,[["render",D3]]),M3=o.defineComponent({props:{},setup(e,{slots:t}){return()=>{const n=t.default?t.default():[],r=[],a=[];return n.forEach(s=>{s.toString(),s.props&&s.props.icon?r.push(s):a.push(s)}),o.h("div",{class:["w-100","t-left","flex-nowrap","flex-v-center","flex",{"br-b br-black-transp-10 br-solid":!0}]},[...r.length?[o.h("div",{class:["mn-b-thin","mn-t-thin","flex-center","flex","mn-r-small","flex-child","flex-child-shrink-0","i-big","bg-main","radius-thin"]},r)]:[],o.h("div",{class:["w-100","mn-b-thin","mn-t-thin","mn-r-small","i-big","flex-v-center","flex"]},[o.h("span",{class:["p-big","t-medium","mn-r-auto"]},a)]),o.h(R3,{class:"i-medium mn-r-medium",type:"chevron"})])}}});/*! js-cookie v3.0.5 | MIT */function en(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var F3={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function _r(e,t){function n(a,s,i){if(!(typeof document>"u")){i=en({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in i)i[c]&&(l+="; "+c,i[c]!==!0&&(l+="="+i[c].split(";")[0]));return document.cookie=a+"="+e.write(s,a)+l}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],i={},l=0;l<s.length;l++){var c=s[l].split("="),d=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(i[u]=e.read(d,u),a===u)break}catch{}}return a?i[a]:i}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",en({},s,{expires:-1}))},withAttributes:function(a){return _r(this.converter,en({},this.attributes,a))},withConverter:function(a){return _r(en({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Si=_r(F3,{path:"/"});/*! Capacitor: https://capacitorjs.com/ - MIT License */const x3=e=>{const t=new Map;t.set("web",{name:"web"});const n=e.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:t},r=(s,i)=>{n.platforms.set(s,i)},a=s=>{n.platforms.has(s)&&(n.currentPlatform=n.platforms.get(s))};return n.addPlatform=r,n.setPlatform=a,n},B3=e=>e.CapacitorPlatforms=x3(e),Ni=B3(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});Ni.addPlatform;Ni.setPlatform;var kt;(function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"})(kt||(kt={}));class Yn extends Error{constructor(t,n,r){super(t),this.message=t,this.code=n,this.data=r}}const V3=e=>{var t,n;return e!=null&&e.androidBridge?"android":!((n=(t=e==null?void 0:e.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||n===void 0)&&n.bridge?"ios":"web"},U3=e=>{var t,n,r,a,s;const i=e.CapacitorCustomPlatform||null,l=e.Capacitor||{},c=l.Plugins=l.Plugins||{},d=e.CapacitorPlatforms,u=()=>i!==null?i.name:V3(e),f=((t=d==null?void 0:d.currentPlatform)===null||t===void 0?void 0:t.getPlatform)||u,m=()=>f()!=="web",$=((n=d==null?void 0:d.currentPlatform)===null||n===void 0?void 0:n.isNativePlatform)||m,h=O=>{const k=_.get(O);return!!(k!=null&&k.platforms.has(f())||y(O))},g=((r=d==null?void 0:d.currentPlatform)===null||r===void 0?void 0:r.isPluginAvailable)||h,C=O=>{var k;return(k=l.PluginHeaders)===null||k===void 0?void 0:k.find(S=>S.name===O)},y=((a=d==null?void 0:d.currentPlatform)===null||a===void 0?void 0:a.getPluginHeader)||C,E=O=>e.console.error(O),p=(O,k,S)=>Promise.reject(`${S} does not have an implementation of "${k}".`),_=new Map,w=(O,k={})=>{const S=_.get(O);if(S)return console.warn(`Capacitor plugin "${O}" already registered. Cannot register plugins twice.`),S.proxy;const D=f(),F=y(O);let B;const j=async()=>(!B&&D in k?B=typeof k[D]=="function"?B=await k[D]():B=k[D]:i!==null&&!B&&"web"in k&&(B=typeof k.web=="function"?B=await k.web():B=k.web),B),se=(Q,ee)=>{var q,ne;if(F){const ve=F==null?void 0:F.methods.find(de=>ee===de.name);if(ve)return ve.rtype==="promise"?de=>l.nativePromise(O,ee.toString(),de):(de,ue)=>l.nativeCallback(O,ee.toString(),de,ue);if(Q)return(q=Q[ee])===null||q===void 0?void 0:q.bind(Q)}else{if(Q)return(ne=Q[ee])===null||ne===void 0?void 0:ne.bind(Q);throw new Yn(`"${O}" plugin is not implemented on ${D}`,kt.Unimplemented)}},ge=Q=>{let ee;const q=(...ne)=>{const ve=j().then(de=>{const ue=se(de,Q);if(ue){const ye=ue(...ne);return ee=ye==null?void 0:ye.remove,ye}else throw new Yn(`"${O}.${Q}()" is not implemented on ${D}`,kt.Unimplemented)});return Q==="addListener"&&(ve.remove=async()=>ee()),ve};return q.toString=()=>`${Q.toString()}() { [capacitor code] }`,Object.defineProperty(q,"name",{value:Q,writable:!1,configurable:!1}),q},Z=ge("addListener"),Ce=ge("removeListener"),$e=(Q,ee)=>{const q=Z({eventName:Q},ee),ne=async()=>{const de=await q;Ce({eventName:Q,callbackId:de},ee)},ve=new Promise(de=>q.then(()=>de({remove:ne})));return ve.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await ne()},ve},Ee=new Proxy({},{get(Q,ee){switch(ee){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return F?$e:Z;case"removeListener":return Ce;default:return ge(ee)}}});return c[O]=Ee,_.set(O,{name:O,proxy:Ee,platforms:new Set([...Object.keys(k),...F?[D]:[]])}),Ee},N=((s=d==null?void 0:d.currentPlatform)===null||s===void 0?void 0:s.registerPlugin)||w;return l.convertFileSrc||(l.convertFileSrc=O=>O),l.getPlatform=f,l.handleError=E,l.isNativePlatform=$,l.isPluginAvailable=g,l.pluginMethodNoop=p,l.registerPlugin=N,l.Exception=Yn,l.DEBUG=!!l.DEBUG,l.isLoggingEnabled=!!l.isLoggingEnabled,l.platform=l.getPlatform(),l.isNative=l.isNativePlatform(),l},j3=e=>e.Capacitor=U3(e),gn=j3(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Yr=gn.registerPlugin;gn.Plugins;class qr{constructor(t){this.listeners={},this.retainedEventArguments={},this.windowListeners={},t&&(console.warn(`Capacitor WebPlugin "${t.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=t)}addListener(t,n){let r=!1;this.listeners[t]||(this.listeners[t]=[],r=!0),this.listeners[t].push(n);const s=this.windowListeners[t];s&&!s.registered&&this.addWindowListener(s),r&&this.sendRetainedArgumentsForEvent(t);const i=async()=>this.removeListener(t,n);return Promise.resolve({remove:i})}async removeAllListeners(){this.listeners={};for(const t in this.windowListeners)this.removeWindowListener(this.windowListeners[t]);this.windowListeners={}}notifyListeners(t,n,r){const a=this.listeners[t];if(!a){if(r){let s=this.retainedEventArguments[t];s||(s=[]),s.push(n),this.retainedEventArguments[t]=s}return}a.forEach(s=>s(n))}hasListeners(t){return!!this.listeners[t].length}registerWindowListener(t,n){this.windowListeners[n]={registered:!1,windowEventName:t,pluginEventName:n,handler:r=>{this.notifyListeners(n,r)}}}unimplemented(t="not implemented"){return new gn.Exception(t,kt.Unimplemented)}unavailable(t="not available"){return new gn.Exception(t,kt.Unavailable)}async removeListener(t,n){const r=this.listeners[t];if(!r)return;const a=r.indexOf(n);this.listeners[t].splice(a,1),this.listeners[t].length||this.removeWindowListener(this.windowListeners[t])}addWindowListener(t){window.addEventListener(t.windowEventName,t.handler),t.registered=!0}removeWindowListener(t){t&&(window.removeEventListener(t.windowEventName,t.handler),t.registered=!1)}sendRetainedArgumentsForEvent(t){const n=this.retainedEventArguments[t];n&&(delete this.retainedEventArguments[t],n.forEach(r=>{this.notifyListeners(t,r)}))}}const Ia=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),Pa=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class H3 extends qr{async getCookies(){const t=document.cookie,n={};return t.split(";").forEach(r=>{if(r.length<=0)return;let[a,s]=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");a=Pa(a).trim(),s=Pa(s).trim(),n[a]=s}),n}async setCookie(t){try{const n=Ia(t.key),r=Ia(t.value),a=`; expires=${(t.expires||"").replace("expires=","")}`,s=(t.path||"/").replace("path=",""),i=t.url!=null&&t.url.length>0?`domain=${t.url}`:"";document.cookie=`${n}=${r||""}${a}; path=${s}; ${i};`}catch(n){return Promise.reject(n)}}async deleteCookie(t){try{document.cookie=`${t.key}=; Max-Age=0`}catch(n){return Promise.reject(n)}}async clearCookies(){try{const t=document.cookie.split(";")||[];for(const n of t)document.cookie=n.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(t){return Promise.reject(t)}}async clearAllCookies(){try{await this.clearCookies()}catch(t){return Promise.reject(t)}}}Yr("CapacitorCookies",{web:()=>new H3});const G3=async e=>new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{const a=r.result;t(a.indexOf(",")>=0?a.split(",")[1]:a)},r.onerror=a=>n(a),r.readAsDataURL(e)}),W3=(e={})=>{const t=Object.keys(e);return Object.keys(e).map(a=>a.toLocaleLowerCase()).reduce((a,s,i)=>(a[s]=e[t[i]],a),{})},K3=(e,t=!0)=>e?Object.entries(e).reduce((r,a)=>{const[s,i]=a;let l,c;return Array.isArray(i)?(c="",i.forEach(d=>{l=t?encodeURIComponent(d):d,c+=`${s}=${l}&`}),c.slice(0,-1)):(l=t?encodeURIComponent(i):i,c=`${s}=${l}`),`${r}&${c}`},"").substr(1):null,z3=(e,t={})=>{const n=Object.assign({method:e.method||"GET",headers:e.headers},t),a=W3(e.headers)["content-type"]||"";if(typeof e.data=="string")n.body=e.data;else if(a.includes("application/x-www-form-urlencoded")){const s=new URLSearchParams;for(const[i,l]of Object.entries(e.data||{}))s.set(i,l);n.body=s.toString()}else if(a.includes("multipart/form-data")||e.data instanceof FormData){const s=new FormData;if(e.data instanceof FormData)e.data.forEach((l,c)=>{s.append(c,l)});else for(const l of Object.keys(e.data))s.append(l,e.data[l]);n.body=s;const i=new Headers(n.headers);i.delete("content-type"),n.headers=i}else(a.includes("application/json")||typeof e.data=="object")&&(n.body=JSON.stringify(e.data));return n};class Y3 extends qr{async request(t){const n=z3(t,t.webFetchExtra),r=K3(t.params,t.shouldEncodeUrlParams),a=r?`${t.url}?${r}`:t.url,s=await fetch(a,n),i=s.headers.get("content-type")||"";let{responseType:l="text"}=s.ok?t:{};i.includes("application/json")&&(l="json");let c,d;switch(l){case"arraybuffer":case"blob":d=await s.blob(),c=await G3(d);break;case"json":c=await s.json();break;case"document":case"text":default:c=await s.text()}const u={};return s.headers.forEach((f,m)=>{u[m]=f}),{data:c,headers:u,status:s.status,url:s.url}}async get(t){return this.request(Object.assign(Object.assign({},t),{method:"GET"}))}async post(t){return this.request(Object.assign(Object.assign({},t),{method:"POST"}))}async put(t){return this.request(Object.assign(Object.assign({},t),{method:"PUT"}))}async patch(t){return this.request(Object.assign(Object.assign({},t),{method:"PATCH"}))}async delete(t){return this.request(Object.assign(Object.assign({},t),{method:"DELETE"}))}}Yr("CapacitorHttp",{web:()=>new Y3});const Oi=Yr("Preferences",{web:()=>Promise.resolve().then(()=>require("./web-DHeZE1jJ.js")).then(e=>new e.PreferencesWeb)}),et=o.reactive({loading:!1,isOpenLocationPopup:!1,isOpenSidebar:!1,position:null,search:null,theme:{darkmode:!1},error:{status:"",headers:"",data:"",show:"",name:"",message:""}}),q3={setLoading(e){et.loading=e},toggleTheme(){let e=document.querySelector(":root");et.theme.darkmode=!et.theme.darkmode,e.classList.toggle("dark-theme");const t=["--white","--light","--grey","--dark","--black"];et.theme.originalColors||(et.theme.originalColors={},t.forEach(n=>{const r=getComputedStyle(document.documentElement).getPropertyValue(n).trim();et.theme.originalColors[n]=r})),X3(t,et.theme.originalColors)},add(e,t){const n=e.findIndex(r=>r._id===t._id);n===-1?e.push(t):e[n]=t},update(e,t){const n=e.findIndex(r=>r._id===t._id);n===-1?e.push(t):Object.assign(e[n],t)},delete(e,t){const n=e.findIndex(r=>r._id===t._id);n!==-1&&e.splice(n,1)},increment(e,t){console.log(e),console.log(t);const n=e.find(r=>r._id===t._id);n&&n.quantity++},decrement(e,t){const n=e.find(a=>a._id===t._id),r=e.indexOf(n);r>-1&&(n.quantity--,n.quantity<1&&e.splice(r,1))},reset(e){}},Ti={ru:{errors:{USER_ALREADY_REGISTERED:"Такой пользователь уже зарегистрирован!",USER_NOT_REGISTERED_YET:"Такой пользователь еще не зарегистрирован!",USER_PHONE_OR_PASSWORD_NOT_FOUND:"Пользователь с таким телефоном или паролем не найден!",INCORRECT_PASSWORD_ENTERED:"Вы ввели неверный пароль!",INVALID_INVITATION_CODE:"Неверный код приглашения",MISSING_REQUIRED_PARAMETERS:"Отсутствуют необходимые параметры.",ERROR_UPDATING_USER:"Произошла ошибка при обновлении пользователя.",PASSWORDS_DO_NOT_MATCH:"Введенные вами пароли не совпадают. Исправьте ошибки и попробуйте еще раз.",CODE_NOT_SENT:"Что-то пошло не так и код не был отправлен. Попробуйте еще раз.",INPUT_ERROR:"Вставьте только четырехзначный код.",WRONG_CODE:"Вы ввели неверный код. Попробуйте еще раз.",POST_URL_ALREADY_IN_USE:"Ошибка! Публикация с этим URL уже используется!",NAME_CANNOT_BE_EMPTY:"Ошибка: Название не может быть пустым. Пожалуйста, введите название."}},en:{errors:{USER_ALREADY_REGISTERED:"Such user is already registered!",USER_NOT_REGISTERED_YET:"This user has not been registered yet!",USER_PHONE_OR_PASSWORD_NOT_FOUND:"User with such phone or password not found!",INCORRECT_PASSWORD_ENTERED:"You entered an incorrect password!",INVALID_INVITATION_CODE:"Incorrect invitation code.",MISSING_REQUIRED_PARAMETERS:"Missing required parameters.",ERROR_UPDATING_USER:"Something wrong when updating user.",PASSWORDS_DO_NOT_MATCH:"The passwords you entered do not match. Please correct the errors and try again.",CODE_NOT_SENT:"Something went wrong and the code was not sent. Please try again.",INPUT_ERROR:"Please enter only a four-digit code.",WRONG_CODE:"You entered an incorrect code. Please try again.",POST_URL_ALREADY_IN_USE:"Failed! Blogpost with this URL is already in use!",NAME_CANNOT_BE_EMPTY:"Error: Name cannot be empty. Please enter a name."}}};pi.global.mergeLocaleMessage("ru",Ti.ru);pi.global.mergeLocaleMessage("en",Ti.en);function X3(e,t){e.forEach(n=>{const r=t[n],a=r.split(",").map(Number);let s;n==="--white"?s=a.map(i=>255-i/1.075):n==="--black"?s=a.map(i=>255-i):n==="--grey"?s=a.map(i=>255-i*2):s=a.map(i=>255-i/1.075),document.documentElement.style.setProperty(n,et.theme.darkmode?s.join(", "):r)})}he.create({baseURL:process.env.API_URL,withCredentials:!0});const J3=o.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});o.watch(J3,(e,t)=>{});const Aa=he.create({baseURL:process.env.API_URL,withCredentials:!0}),it=o.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1},accesses:[]});async function Z3(){try{const e=await Q3("user");if(console.log("cookie is",e),e){const{_id:t,email:n,phone:r,roles:a,accessToken:s}=e;console.log("accessToken is",s),Aa.interceptors.request.use(c=>(c.headers["x-access-token"]=s,c),c=>Promise.reject(c));const l=(await Aa.get("/api/auth/check-accesses")).data;Object.assign(it.user,{_id:t,email:n,phone:r}),Object.assign(it.access,{token:s,roles:a,status:!!s}),it.accesses=l}}catch(e){console.error("Error initializing app:",e),eh("user"),it.accesses=[]}}Z3();process.env.DOMAIN_URL;async function Q3(e){if(process.env.MOBILE_APP){const{value:t}=await Oi.get({key:e});return t?JSON.parse(t):null}else{const t=Si.get(e);return t?JSON.parse(t):null}}function eh(e,t=process.env.NODE_ENV){if(process.env.MOBILE_APP)Oi.remove({key:e});else{const n=t==="production"?{domain:process.env.DOMAIN_URL}:{};Si.remove(e,n)}}o.watch(it,(e,t)=>{});const th={id:"sidebar",class:"o-hidden"},nh={class:"pd-medium pos-sticky pos-t-0 h-100vh flex-column flex flex-justify-content"},rh=o.createElementVNode("span",null," Backoffice ",-1),wi={__name:"Sidebar",props:["stateSidebar"],emits:["closeSidebar"],setup(e,{emit:t}){const n=kr(),r=Lr();o.ref(!1);const a=e,s=t;o.watch(()=>r.path,()=>{a.stateSidebar===!0&&s("closeSidebar")});let i=yn;function l(c){const d=c.target.classList.contains("menu-btn");if(console.log(c.target.classList.contains("menu-btn")),d)return null;a.stateSidebar===!0&&s("closeSidebar")}return(c,d)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",th,[o.createElementVNode("div",nh,[o.createElementVNode("div",null,[o.renderSlot(c.$slots,"default")]),o.createVNode(vn,{label:"Darkmode",radio:et.theme.darkmode,"onUpdate:radio":d[0]||(d[0]=u=>q3.toggleTheme()),name:"prices",class:"t-semi pd-small p-big mn-b-small br-2px br-solid radius-extra br-black-transp-5"},null,8,["radio"]),it.access.roles&&(it.access.roles.includes("ROLE_MODERATOR")||it.access.roles.includes("ROLE_ADMIN"))?(o.openBlock(),o.createBlock(L3,{key:0,class:"mn-b-regular bg-black t-white"},{default:o.withCtx(()=>[o.createVNode(M3,{onClick:d[1]||(d[1]=u=>o.unref(n).push({name:"Backoffice",params:{_id:o.unref(r).params._id}})),class:"cursor-pointer",theme:"white"},{default:o.withCtx(()=>[rh]),_:1})]),_:1})):o.createCommentVNode("",!0)])])),[[o.unref(i),l]])}},oh=Object.freeze(Object.defineProperty({__proto__:null,default:wi},Symbol.toStringTag,{value:"Module"}));function ah(e){return Object.prototype.toString.call(e)==="[object Object]"}function Da(e){return ah(e)||Array.isArray(e)}function sh(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Xr(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const a=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return a!==s?!1:n.every(i=>{const l=e[i],c=t[i];return typeof l=="function"?`${l}`==`${c}`:!Da(l)||!Da(c)?l===c:Xr(l,c)})}function Ra(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function ih(e,t){if(e.length!==t.length)return!1;const n=Ra(e),r=Ra(t);return n.every((a,s)=>{const i=r[s];return Xr(a,i)})}function Jr(e){return typeof e=="number"}function br(e){return typeof e=="string"}function Zr(e){return typeof e=="boolean"}function Ma(e){return Object.prototype.toString.call(e)==="[object Object]"}function pe(e){return Math.abs(e)}function Qr(e){return Math.sign(e)}function xt(e,t){return pe(e-t)}function lh(e,t){if(e===0||t===0||pe(e)<=pe(t))return 0;const n=xt(pe(e),pe(t));return pe(n/e)}function Kt(e){return zt(e).map(Number)}function Ge(e){return e[Zt(e)]}function Zt(e){return Math.max(0,e.length-1)}function eo(e,t){return t===Zt(e)}function Fa(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function zt(e){return Object.keys(e)}function ki(e,t){return[e,t].reduce((n,r)=>(zt(r).forEach(a=>{const s=n[a],i=r[a],l=Ma(s)&&Ma(i);n[a]=l?ki(s,i):i}),n),{})}function Er(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function ch(e,t){const n={start:r,center:a,end:s};function r(){return 0}function a(c){return s(c)/2}function s(c){return t-c}function i(c,d){return br(e)?n[e](c):e(t,c,d)}return{measure:i}}function Yt(){let e=[];function t(a,s,i,l={passive:!0}){let c;if("addEventListener"in a)a.addEventListener(s,i,l),c=()=>a.removeEventListener(s,i,l);else{const d=a;d.addListener(i),c=()=>d.removeListener(i)}return e.push(c),r}function n(){e=e.filter(a=>a())}const r={add:t,clear:n};return r}function dh(e,t,n,r){const a=Yt(),s=1e3/60;let i=null,l=0,c=0;function d(){a.add(e,"visibilitychange",()=>{e.hidden&&h()})}function u(){$(),a.clear()}function f(C){if(!c)return;i||(i=C);const y=C-i;for(i=C,l+=y;l>=s;)n(),l-=s;const E=pe(l/s);r(E),c&&t.requestAnimationFrame(f)}function m(){c||(c=t.requestAnimationFrame(f))}function $(){t.cancelAnimationFrame(c),i=null,l=0,c=0}function h(){i=null,l=0}return{init:d,destroy:u,start:m,stop:$,update:n,render:r}}function uh(e,t){const n=t==="rtl",r=e==="y",a=r?"y":"x",s=r?"x":"y",i=!r&&n?-1:1,l=u(),c=f();function d(h){const{height:g,width:C}=h;return r?g:C}function u(){return r?"top":n?"right":"left"}function f(){return r?"bottom":n?"left":"right"}function m(h){return h*i}return{scroll:a,cross:s,startEdge:l,endEdge:c,measureSize:d,direction:m}}function vt(e=0,t=0){const n=pe(e-t);function r(d){return d<e}function a(d){return d>t}function s(d){return r(d)||a(d)}function i(d){return s(d)?r(d)?e:t:d}function l(d){return n?d-n*Math.ceil((d-t)/n):d}return{length:n,max:t,min:e,constrain:i,reachedAny:s,reachedMax:a,reachedMin:r,removeOffset:l}}function Li(e,t,n){const{constrain:r}=vt(0,e),a=e+1;let s=i(t);function i(m){return n?pe((a+m)%a):r(m)}function l(){return s}function c(m){return s=i(m),f}function d(m){return u().set(l()+m)}function u(){return Li(e,l(),n)}const f={get:l,set:c,add:d,clone:u};return f}function fh(e,t,n,r,a,s,i,l,c,d,u,f,m,$,h,g,C,y,E){const{cross:p,direction:_}=e,w=["INPUT","SELECT","TEXTAREA"],N={passive:!1},O=Yt(),k=Yt(),S=vt(50,225).constrain($.measure(20)),D={mouse:300,touch:400},F={mouse:500,touch:600},B=h?43:25;let j=!1,se=0,ge=0,Z=!1,Ce=!1,$e=!1,Ee=!1;function Q(V){if(!E)return;function P(M){(Zr(E)||E(V,M))&&ue(M)}const T=t;O.add(T,"dragstart",M=>M.preventDefault(),N).add(T,"touchmove",()=>{},N).add(T,"touchend",()=>{}).add(T,"touchstart",P).add(T,"mousedown",P).add(T,"touchcancel",_e).add(T,"contextmenu",_e).add(T,"click",Ae,!0)}function ee(){O.clear(),k.clear()}function q(){const V=Ee?n:t;k.add(V,"touchmove",ye,N).add(V,"touchend",_e).add(V,"mousemove",ye,N).add(V,"mouseup",_e)}function ne(V){const P=V.nodeName||"";return w.includes(P)}function ve(){return(h?F:D)[Ee?"mouse":"touch"]}function de(V,P){const T=f.add(Qr(V)*-1),M=u.byDistance(V,!h).distance;return h||pe(V)<S?M:C&&P?M*.5:u.byIndex(T.get(),0).distance}function ue(V){const P=Er(V,r);Ee=P,$e=h&&P&&!V.buttons&&j,j=xt(a.get(),i.get())>=2,!(P&&V.button!==0)&&(ne(V.target)||(Z=!0,s.pointerDown(V),d.useFriction(0).useDuration(0),a.set(i),q(),se=s.readPoint(V),ge=s.readPoint(V,p),m.emit("pointerDown")))}function ye(V){if(!Er(V,r)&&V.touches.length>=2)return _e(V);const T=s.readPoint(V),M=s.readPoint(V,p),X=xt(T,se),ie=xt(M,ge);if(!Ce&&!Ee&&(!V.cancelable||(Ce=X>ie,!Ce)))return _e(V);const be=s.pointerMove(V);X>g&&($e=!0),d.useFriction(.3).useDuration(.75),l.start(),a.add(_(be)),V.preventDefault()}function _e(V){const T=u.byDistance(0,!1).index!==f.get(),M=s.pointerUp(V)*ve(),X=de(_(M),T),ie=lh(M,X),be=B-10*ie,De=y+ie/50;Ce=!1,Z=!1,k.clear(),d.useDuration(be).useFriction(De),c.distance(X,!h),Ee=!1,m.emit("pointerUp")}function Ae(V){$e&&(V.stopPropagation(),V.preventDefault(),$e=!1)}function Se(){return Z}return{init:Q,destroy:ee,pointerDown:Se}}function mh(e,t){let r,a;function s(f){return f.timeStamp}function i(f,m){const h=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(Er(f,t)?f:f.touches[0])[h]}function l(f){return r=f,a=f,i(f)}function c(f){const m=i(f)-i(a),$=s(f)-s(r)>170;return a=f,$&&(r=f),m}function d(f){if(!r||!a)return 0;const m=i(a)-i(r),$=s(f)-s(r),h=s(f)-s(a)>170,g=m/$;return $&&!h&&pe(g)>.1?g:0}return{pointerDown:l,pointerMove:c,pointerUp:d,readPoint:i}}function ph(){function e(n){const{offsetTop:r,offsetLeft:a,offsetWidth:s,offsetHeight:i}=n;return{top:r,right:a+s,bottom:r+i,left:a,width:s,height:i}}return{measure:e}}function hh(e){function t(r){return e*(r/100)}return{measure:t}}function gh(e,t,n,r,a,s,i){let l,c,d=[],u=!1;function f(g){return a.measureSize(i.measure(g))}function m(g){if(!s)return;c=f(e),d=r.map(f);function C(E){for(const p of E){const _=p.target===e,w=r.indexOf(p.target),N=_?c:d[w],O=f(_?e:r[w]);if(pe(O-N)>=.5){n.requestAnimationFrame(()=>{g.reInit(),t.emit("resize")});break}}}l=new ResizeObserver(E=>{u||(Zr(s)||s(g,E))&&C(E)}),[e].concat(r).forEach(E=>l.observe(E))}function $(){l&&l.disconnect(),u=!0}return{init:m,destroy:$}}function $h(e,t,n,r,a){let s=0,i=0,l=r,c=a,d=e.get(),u=0;function f(){const w=n.get()-e.get(),N=!l;let O=0;return N?(s=0,e.set(n),O=w):(s+=w/l,s*=c,d+=s,e.add(s),O=d-u),i=Qr(O),u=d,_}function m(){const w=n.get()-t.get();return pe(w)<.001}function $(){return l}function h(){return i}function g(){return s}function C(){return E(r)}function y(){return p(a)}function E(w){return l=w,_}function p(w){return c=w,_}const _={direction:h,duration:$,velocity:g,seek:f,settled:m,useBaseFriction:y,useBaseDuration:C,useFriction:p,useDuration:E};return _}function vh(e,t,n,r,a){const s=a.measure(10),i=a.measure(50),l=vt(.1,.99);let c=!1;function d(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u($){if(!d())return;const h=e.reachedMin(t.get())?"min":"max",g=pe(e[h]-t.get()),C=n.get()-t.get(),y=l.constrain(g/i);n.subtract(C*y),!$&&pe(C)<s&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function f($){c=!$}return{constrain:u,toggleActive:f}}function yh(e,t,n,r,a){const s=vt(-t+e,0),i=f(),l=u(),c=m();function d(h,g){return xt(h,g)<1}function u(){const h=i[0],g=Ge(i),C=i.lastIndexOf(h),y=i.indexOf(g)+1;return vt(C,y)}function f(){return n.map((h,g)=>{const{min:C,max:y}=s,E=s.constrain(h),p=!g,_=eo(n,g);return p?y:_||d(C,E)?C:d(y,E)?y:E}).map(h=>parseFloat(h.toFixed(3)))}function m(){if(t<=e+a)return[s.max];if(r==="keepSnaps")return i;const{min:h,max:g}=l;return i.slice(h,g)}return{snapsContained:c,scrollContainLimit:l}}function _h(e,t,n){const r=t[0],a=n?r-e:Ge(t);return{limit:vt(a,r)}}function bh(e,t,n,r){const s=t.min+.1,i=t.max+.1,{reachedMin:l,reachedMax:c}=vt(s,i);function d(m){return m===1?c(n.get()):m===-1?l(n.get()):!1}function u(m){if(!d(m))return;const $=e*(m*-1);r.forEach(h=>h.add($))}return{loop:u}}function Eh(e){const{max:t,length:n}=e;function r(s){const i=s-t;return n?i/-n:0}return{get:r}}function Ch(e,t,n,r,a){const{startEdge:s,endEdge:i}=e,{groupSlides:l}=a,c=f().map(t.measure),d=m(),u=$();function f(){return l(r).map(g=>Ge(g)[i]-g[0][s]).map(pe)}function m(){return r.map(g=>n[s]-g[s]).map(g=>-pe(g))}function $(){return l(d).map(g=>g[0]).map((g,C)=>g+c[C])}return{snaps:d,snapsAligned:u}}function Sh(e,t,n,r,a,s){const{groupSlides:i}=a,{min:l,max:c}=r,d=u();function u(){const m=i(s),$=!e||t==="keepSnaps";return n.length===1?[s]:$?m:m.slice(l,c).map((h,g,C)=>{const y=!g,E=eo(C,g);if(y){const p=Ge(C[0])+1;return Fa(p)}if(E){const p=Zt(s)-Ge(C)[0]+1;return Fa(p,Ge(C)[0])}return h})}return{slideRegistry:d}}function Nh(e,t,n,r,a){const{reachedAny:s,removeOffset:i,constrain:l}=r;function c(h){return h.concat().sort((g,C)=>pe(g)-pe(C))[0]}function d(h){const g=e?i(h):l(h),C=t.map((E,p)=>({diff:u(E-g,0),index:p})).sort((E,p)=>pe(E.diff)-pe(p.diff)),{index:y}=C[0];return{index:y,distance:g}}function u(h,g){const C=[h,h+n,h-n];if(!e)return h;if(!g)return c(C);const y=C.filter(E=>Qr(E)===g);return y.length?c(y):Ge(C)-n}function f(h,g){const C=t[h]-a.get(),y=u(C,g);return{index:h,distance:y}}function m(h,g){const C=a.get()+h,{index:y,distance:E}=d(C),p=!e&&s(C);if(!g||p)return{index:y,distance:h};const _=t[y]-E,w=h+u(_,0);return{index:y,distance:w}}return{byDistance:m,byIndex:f,shortcut:u}}function Oh(e,t,n,r,a,s,i){function l(f){const m=f.distance,$=f.index!==t.get();s.add(m),m&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),$&&(n.set(t.get()),t.set(f.index),i.emit("select"))}function c(f,m){const $=a.byDistance(f,m);l($)}function d(f,m){const $=t.clone().set(f),h=a.byIndex($.get(),m);l(h)}return{distance:c,index:d}}function Th(e,t,n,r,a,s,i){let l=0;function c(){s.add(document,"keydown",d,!1),t.forEach(u)}function d(m){m.code==="Tab"&&(l=new Date().getTime())}function u(m){const $=()=>{if(new Date().getTime()-l>10)return;e.scrollLeft=0;const C=t.indexOf(m),y=n.findIndex(E=>E.includes(C));Jr(y)&&(a.useDuration(0),r.index(y,0),i.emit("slideFocus"))};s.add(m,"focus",$,{passive:!0,capture:!0})}return{init:c}}function sn(e){let t=e;function n(){return t}function r(c){t=i(c)}function a(c){t+=i(c)}function s(c){t-=i(c)}function i(c){return Jr(c)?c:c.get()}return{get:n,set:r,add:a,subtract:s}}function Ii(e,t){const n=e.scroll==="x"?s:i,r=t.style;let a=!1;function s(f){return`translate3d(${f}px,0px,0px)`}function i(f){return`translate3d(0px,${f}px,0px)`}function l(f){a||(r.transform=n(e.direction(f)))}function c(f){a=!f}function d(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:l,toggleActive:c}}function wh(e,t,n,r,a,s,i,l,c){const u=Kt(a),f=Kt(a).reverse(),m=y().concat(E());function $(O,k){return O.reduce((S,D)=>S-a[D],k)}function h(O,k){return O.reduce((S,D)=>$(S,k)>0?S.concat([D]):S,[])}function g(O){return s.map((k,S)=>({start:k-r[S]+.5+O,end:k+t-.5+O}))}function C(O,k,S){const D=g(k);return O.map(F=>{const B=S?0:-n,j=S?n:0,se=S?"end":"start",ge=D[F][se];return{index:F,loopPoint:ge,slideLocation:sn(-1),translate:Ii(e,c[F]),target:()=>l.get()>ge?B:j}})}function y(){const O=i[0],k=h(f,O);return C(k,n,!1)}function E(){const O=t-i[0]-1,k=h(u,O);return C(k,-n,!0)}function p(){return m.every(({index:O})=>{const k=u.filter(S=>S!==O);return $(k,t)<=.1})}function _(){m.forEach(O=>{const{target:k,translate:S,slideLocation:D}=O,F=k();F!==D.get()&&(S.to(F),D.set(F))})}function w(){m.forEach(O=>O.translate.clear())}return{canLoop:p,clear:w,loop:_,loopPoints:m}}function kh(e,t,n){let r,a=!1;function s(c){if(!n)return;function d(u){for(const f of u)if(f.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{a||(Zr(n)||n(c,u))&&d(u)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),a=!0}return{init:s,destroy:i}}function Lh(e,t,n,r){const a={};let s=null,i=null,l,c=!1;function d(){l=new IntersectionObserver(h=>{c||(h.forEach(g=>{const C=t.indexOf(g.target);a[C]=g}),s=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(h=>l.observe(h))}function u(){l&&l.disconnect(),c=!0}function f(h){return zt(a).reduce((g,C)=>{const y=parseInt(C),{isIntersecting:E}=a[y];return(h&&E||!h&&!E)&&g.push(y),g},[])}function m(h=!0){if(h&&s)return s;if(!h&&i)return i;const g=f(h);return h&&(s=g),h||(i=g),g}return{init:d,destroy:u,get:m}}function Ih(e,t,n,r,a,s){const{measureSize:i,startEdge:l,endEdge:c}=e,d=n[0]&&a,u=h(),f=g(),m=n.map(i),$=C();function h(){if(!d)return 0;const E=n[0];return pe(t[l]-E[l])}function g(){if(!d)return 0;const E=s.getComputedStyle(Ge(r));return parseFloat(E.getPropertyValue(`margin-${c}`))}function C(){return n.map((E,p,_)=>{const w=!p,N=eo(_,p);return w?m[p]+u:N?m[p]+f:_[p+1][l]-E[l]}).map(pe)}return{slideSizes:m,slideSizesWithGaps:$,startGap:u,endGap:f}}function Ph(e,t,n,r,a,s,i,l,c){const{startEdge:d,endEdge:u,direction:f}=e,m=Jr(n);function $(y,E){return Kt(y).filter(p=>p%E===0).map(p=>y.slice(p,p+E))}function h(y){return y.length?Kt(y).reduce((E,p,_)=>{const w=Ge(E)||0,N=w===0,O=p===Zt(y),k=a[d]-s[w][d],S=a[d]-s[p][u],D=!r&&N?f(i):0,F=!r&&O?f(l):0,B=pe(S-F-(k+D));return _&&B>t+c&&E.push(p),O&&E.push(y.length),E},[]).map((E,p,_)=>{const w=Math.max(_[p-1]||0);return y.slice(w,E)}):[]}function g(y){return m?$(y,n):h(y)}return{groupSlides:g}}function Ah(e,t,n,r,a,s,i){const{align:l,axis:c,direction:d,startIndex:u,loop:f,duration:m,dragFree:$,dragThreshold:h,inViewThreshold:g,slidesToScroll:C,skipSnaps:y,containScroll:E,watchResize:p,watchSlides:_,watchDrag:w}=s,N=2,O=ph(),k=O.measure(t),S=n.map(O.measure),D=uh(c,d),F=D.measureSize(k),B=hh(F),j=ch(l,F),se=!f&&!!E,ge=f||!!E,{slideSizes:Z,slideSizesWithGaps:Ce,startGap:$e,endGap:Ee}=Ih(D,k,S,n,ge,a),Q=Ph(D,F,C,f,k,S,$e,Ee,N),{snaps:ee,snapsAligned:q}=Ch(D,j,k,S,Q),ne=-Ge(ee)+Ge(Ce),{snapsContained:ve,scrollContainLimit:de}=yh(F,ne,q,E,N),ue=se?ve:q,{limit:ye}=_h(ne,ue,f),_e=Li(Zt(ue),u,f),Ae=_e.clone(),Se=Kt(n),re=({dragHandler:R,scrollBody:z,scrollBounds:fe,options:{loop:xe}})=>{xe||fe.constrain(R.pointerDown()),z.seek()},V=({scrollBody:R,translate:z,location:fe,offsetLocation:xe,scrollLooper:yt,slideLooper:ot,dragHandler:Je,animation:Dn,eventHandler:Dt,options:{loop:Ri}},Mi)=>{const ro=R.velocity(),oo=R.settled();oo&&!Je.pointerDown()&&(Dn.stop(),Dt.emit("settle")),oo||Dt.emit("scroll"),xe.set(fe.get()-ro+ro*Mi),Ri&&(yt.loop(R.direction()),ot.loop()),z.to(xe.get())},P=dh(r,a,()=>re(L),R=>V(L,R)),T=.68,M=ue[_e.get()],X=sn(M),ie=sn(M),be=sn(M),De=$h(X,ie,be,m,T),v=Nh(f,ue,ne,ye,be),b=Oh(P,_e,Ae,De,v,be,i),A=Eh(ye),U=Yt(),le=Lh(t,n,i,g),{slideRegistry:oe}=Sh(se,E,ue,de,Q,Se),te=Th(e,n,oe,b,De,U,i),L={ownerDocument:r,ownerWindow:a,eventHandler:i,containerRect:k,slideRects:S,animation:P,axis:D,dragHandler:fh(D,e,r,a,be,mh(D,a),X,P,b,De,v,_e,i,B,$,h,y,T,w),eventStore:U,percentOfView:B,index:_e,indexPrevious:Ae,limit:ye,location:X,offsetLocation:ie,options:s,resizeHandler:gh(t,i,a,n,D,p,O),scrollBody:De,scrollBounds:vh(ye,ie,be,De,B),scrollLooper:bh(ne,ye,ie,[X,ie,be]),scrollProgress:A,scrollSnapList:ue.map(A.get),scrollSnaps:ue,scrollTarget:v,scrollTo:b,slideLooper:wh(D,F,ne,Z,Ce,ee,ue,ie,n),slideFocus:te,slidesHandler:kh(t,i,_),slidesInView:le,slideIndexes:Se,slideRegistry:oe,slidesToScroll:Q,target:be,translate:Ii(D,t)};return L}function Dh(){let e={},t;function n(d){t=d}function r(d){return e[d]||[]}function a(d){return r(d).forEach(u=>u(t,d)),c}function s(d,u){return e[d]=r(d).concat([u]),c}function i(d,u){return e[d]=r(d).filter(f=>f!==u),c}function l(){e={}}const c={init:n,emit:a,off:i,on:s,clear:l};return c}const Rh={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function Mh(e){function t(s,i){return ki(s,i||{})}function n(s){const i=s.breakpoints||{},l=zt(i).filter(c=>e.matchMedia(c).matches).map(c=>i[c]).reduce((c,d)=>t(c,d),{});return t(s,l)}function r(s){return s.map(i=>zt(i.breakpoints||{})).reduce((i,l)=>i.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Fh(e){let t=[];function n(s,i){return t=i.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(s,e)),i.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function r(){t=t.filter(s=>s.destroy())}return{init:n,destroy:r}}function $n(e,t,n){const r=e.ownerDocument,a=r.defaultView,s=Mh(a),i=Fh(s),l=Yt(),c=Dh(),{mergeOptions:d,optionsAtMedia:u,optionsMediaQueries:f}=s,{on:m,off:$,emit:h}=c,g=F;let C=!1,y,E=d(Rh,$n.globalOptions),p=d(E),_=[],w,N,O;function k(){const{container:re,slides:V}=p;N=(br(re)?e.querySelector(re):re)||e.children[0];const T=br(V)?N.querySelectorAll(V):V;O=[].slice.call(T||N.children)}function S(re){const V=Ah(e,N,O,r,a,re,c);if(re.loop&&!V.slideLooper.canLoop()){const P=Object.assign({},re,{loop:!1});return S(P)}return V}function D(re,V){C||(E=d(E,re),p=u(E),_=V||_,k(),y=S(p),f([E,..._.map(({options:P})=>P)]).forEach(P=>l.add(P,"change",F)),p.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(),y.eventHandler.init(Se),y.resizeHandler.init(Se),y.slidesHandler.init(Se),y.options.loop&&y.slideLooper.loop(),N.offsetParent&&O.length&&y.dragHandler.init(Se),w=i.init(Se,_)))}function F(re,V){const P=ee();B(),D(d({startIndex:P},re),V),c.emit("reInit")}function B(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),i.destroy(),l.clear()}function j(){C||(C=!0,l.clear(),B(),c.emit("destroy"),c.clear())}function se(re,V,P){!p.active||C||(y.scrollBody.useBaseFriction().useDuration(V===!0?0:p.duration),y.scrollTo.index(re,P||0))}function ge(re){const V=y.index.add(1).get();se(V,re,-1)}function Z(re){const V=y.index.add(-1).get();se(V,re,1)}function Ce(){return y.index.add(1).get()!==ee()}function $e(){return y.index.add(-1).get()!==ee()}function Ee(){return y.scrollSnapList}function Q(){return y.scrollProgress.get(y.location.get())}function ee(){return y.index.get()}function q(){return y.indexPrevious.get()}function ne(){return y.slidesInView.get()}function ve(){return y.slidesInView.get(!1)}function de(){return w}function ue(){return y}function ye(){return e}function _e(){return N}function Ae(){return O}const Se={canScrollNext:Ce,canScrollPrev:$e,containerNode:_e,internalEngine:ue,destroy:j,off:$,on:m,emit:h,plugins:de,previousScrollSnap:q,reInit:g,rootNode:ye,scrollNext:ge,scrollPrev:Z,scrollProgress:Q,scrollSnapList:Ee,scrollTo:se,selectedScrollSnap:ee,slideNodes:Ae,slidesInView:ne,slidesNotInView:ve};return D(t,n),setTimeout(()=>c.emit("init"),0),Se}$n.globalOptions=void 0;function to(e={},t=[]){const n=o.ref(o.isRef(e)?e.value:e),r=o.ref(o.isRef(t)?t.value:t),a=o.ref(),s=o.ref();function i(){s.value&&s.value.reInit(n.value,r.value)}return o.onMounted(()=>{!sh()||!a.value||($n.globalOptions=to.globalOptions,s.value=$n(a.value,n.value,r.value))}),o.onBeforeUnmount(()=>{s.value&&s.value.destroy()}),o.isRef(e)&&o.watch(e,l=>{Xr(n.value,l)||(n.value=l,i())}),o.isRef(t)&&o.watch(t,l=>{ih(r.value,l)||(r.value=l,i())}),[a,s]}to.globalOptions=void 0;const xh={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function no(e={}){let t,n,r,a=!1,s=!0,i=!1,l=0;function c(_,w){n=_;const{mergeOptions:N,optionsAtMedia:O}=w,k=N(xh,no.globalOptions),S=N(k,e);if(t=O(S),n.scrollSnapList().length<=1)return;i=t.jump,r=!1;const{eventStore:D,ownerDocument:F}=n.internalEngine(),B=n.rootNode(),j=t.rootNode&&t.rootNode(B)||B,se=n.containerNode();n.on("pointerDown",f),t.stopOnInteraction||n.on("pointerUp",u),t.stopOnMouseEnter&&(D.add(j,"mouseenter",()=>{s=!1,f()}),t.stopOnInteraction||D.add(j,"mouseleave",()=>{s=!0,u()})),t.stopOnFocusIn&&(D.add(se,"focusin",f),t.stopOnInteraction||D.add(se,"focusout",u)),D.add(F,"visibilitychange",m),t.playOnInit&&!$()&&u()}function d(){n.off("pointerDown",f).off("pointerUp",u),f(),r=!0,a=!1}function u(){if(r||!s)return;a||n.emit("autoplay:play");const{ownerWindow:_}=n.internalEngine();_.clearInterval(l),l=_.setInterval(E,t.delay),a=!0}function f(){if(r)return;a&&n.emit("autoplay:stop");const{ownerWindow:_}=n.internalEngine();_.clearInterval(l),l=0,a=!1}function m(){if($())return s=a,f();s&&u()}function $(){const{ownerDocument:_}=n.internalEngine();return _.visibilityState==="hidden"}function h(_){typeof _<"u"&&(i=_),s=!0,u()}function g(){a&&f()}function C(){a&&h()}function y(){return a}function E(){const{index:_}=n.internalEngine(),w=_.clone().add(1).get(),N=n.scrollSnapList().length-1;t.stopOnLastSnap&&w===N&&f(),n.canScrollNext()?n.scrollNext(i):n.scrollTo(0,i)}return{name:"autoplay",options:e,init:c,destroy:d,play:h,stop:g,reset:C,isPlaying:y}}no.globalOptions=void 0;const Bh={class:"embla__container"},Pi={__name:"Slider",props:{store:Object,options:Object,text:Object,user:Object},setup(e){const t=e;kr();const n=o.ref([]),r=o.ref(!0),a=o.ref(0),s={delay:2e3,jump:!1,stopOnInteraction:!1,stopOnMouseEnter:!1,stopOnFocusIn:!0,stopOnLastSnap:!1,rootNode:d=>d.parentElement},[i,l]=to({loop:!0},[no(s)]),c=d=>a.value=l.value.selectedScrollSnap();return o.onMounted(async()=>{n.value=await t.store.read(t.options),r.value=!1,c(),l.value.on("reInit",c),l.value.on("select",c)}),(d,u)=>(o.openBlock(),o.createElementBlock("div",{class:"embla",ref_key:"emblaNode",ref:i},[o.createElementVNode("div",Bh,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(f,m,$)=>(o.openBlock(),o.createElementBlock("div",{class:"embla__slide pd-nano",key:m},[o.createVNode(o.Transition,{name:"fade",mode:"out-in",appear:""},{default:o.withCtx(()=>[o.renderSlot(d.$slots,"default",{item:f,user:e.user})]),_:2},1024)]))),128))])],512))}},Vh=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),Uh={class:"pd-small error-wrapper"},jh={class:"flex-nowrap flex radius-small pd-small t-white bg-fourth"},Hh={class:"w-100"},Gh=o.createElementVNode("br",null,null,-1),Ai={__name:"Status",props:{status:String,message:String,show:Boolean,data:Object},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",Uh,[o.createElementVNode("div",jh,[o.createElementVNode("p",Hh,[o.createTextVNode(o.toDisplayString(e.data.message)+" ",1),Gh]),o.createVNode(Br,{onClick:n[0]||(n[0]=r=>t.closePopup()),class:"cursor-pointer hover-scale-1 i-regular z-index-5"})])]))}},Wh=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Kh={class:"marquee","aria-hidden":!0},Di={__name:"Marquee",props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:[Array,String],default:()=>[255,255,255]},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(!1),s=o.ref(0),i=o.ref(0),l=o.ref(0),c=o.ref(null),d=o.ref("100%"),u=o.ref(0),f=o.ref(0),m=o.ref("100%"),$=o.ref(0),h=o.ref(0),g=o.ref("200px"),C=o.ref(!1),y=o.ref(null),E=o.ref(null),p=async()=>{await _(),s.value++},_=async()=>{n.vertical&&(C.value=!0),setInterval(()=>{if(d.value="0%",m.value="0%",y.value!==null&&E.value!==null)if(y.value&&E.value)if(n.vertical&&"clientHeight"in y.value&&"clientHeight"in E.value){h.value=y.value.clientHeight,$.value=E.value.clientHeight;const F=Math.ceil($.value/h.value);return i.value=isFinite(F)?F:0,C.value=!1,i.value}else if(!n.vertical&&"clientWidth"in y.value&&"clientWidth"in E.value){f.value=y.value.clientWidth,u.value=E.value.clientWidth;const F=Math.ceil(u.value/f.value);return i.value=isFinite(F)?F:0,i.value}else return d.value="100%",m.value="100%",0;else return d.value="100%",m.value="100%",0;else return d.value="100%",m.value="100%",0},100)},w=()=>{n.pauseOnHover&&r("onPause")},N=()=>{n.pauseOnHover&&r("onResume")},O=()=>{n.pauseOnClick&&r("onPause")},k=()=>{n.pauseOnClick&&r("onResume")},S=o.computed(()=>({"--loops":`${n.loop===0?"infinite":n.loop}`,"--duration":`${n.duration}s`,"--delay":`${n.delay}s`,"--direction":`${n.direction}`,"--pauseOnHover":`${n.pauseOnHover?"paused":"running"}`,"--pauseOnClick":`${n.pauseOnClick?"paused":"running"}`,"--pauseAnimation":`${n.vertical&&C.value||n.pause?"paused":"running"}`,"--gradient-color":`rgba(${n.gradientColor}, 1), rgba(${n.gradientColor}, 0)`,"--gradient-length":`${g.value}`,"--min-width":`${d.value}`,"--min-height":`${m.value}`,"--orientation":n.vertical?"scrollY":"scrollX"})),D=async()=>{n.vertical?(m.value="100%",d.value="auto"):(m.value="auto",d.value="100%"),n.gradient&&n.gradientLength&&(g.value=n.gradientLength),n.clone&&(await _(),p()),a.value=!0};return o.onMounted(async()=>{D(),c.value=setInterval(()=>{l.value++,n.loop!==0&&l.value===n.loop&&(r("onComplete"),clearInterval(c.value)),r("onLoopComplete")},n.duration*1e3)}),o.onBeforeUnmount(()=>{clearInterval(c.value)}),o.watch(f,async()=>{n.clone&&p()}),o.watch(u,async()=>{n.clone&&p()}),o.watch(()=>n.pause,(F,B)=>{F!==B&&r(F?"onResume":"onPause")}),(F,B)=>a.value?(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:o.normalizeStyle(S.value),key:s.value,onMouseenter:w,onMouseleave:N,onMousedown:O,onMouseup:k},[o.createElementVNode("div",{class:o.normalizeClass(["transparent-overlay",{vertical:e.vertical,horizontal:!e.vertical,overlay:e.gradient}]),ref_key:"marqueeOverlayContainer",ref:E,"aria-hidden":!0},null,2),o.createElementVNode("div",{class:"marquee",ref_key:"marqueeContent",ref:y},[o.renderSlot(F.$slots,"default")],512),o.createElementVNode("div",Kh,[o.renderSlot(F.$slots,"default")]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,j=>(o.openBlock(),o.createElementBlock("div",{key:j,"aria-hidden":!0,class:"marquee cloned"},[o.renderSlot(F.$slots,"default")]))),128))],38)):o.createCommentVNode("",!0)}},zh=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),Yh={install:e=>{e.component("Address",()=>Promise.resolve().then(()=>Gi)),e.component("Button",()=>Promise.resolve().then(()=>ol)),e.component("Checkbox",()=>Promise.resolve().then(()=>ll)),e.component("Dropdown",()=>Promise.resolve().then(()=>ul)),e.component("Error",()=>Promise.resolve().then(()=>pl)),e.component("Field",()=>Promise.resolve().then(()=>bl)),e.component("FieldPhone",()=>Promise.resolve().then(()=>Fd)),e.component("LocationMarker",()=>Promise.resolve().then(()=>Hd)),e.component("Map",()=>Promise.resolve().then(()=>Wd)),e.component("Popup",()=>Promise.resolve().then(()=>N0)),e.component("Radio",()=>Promise.resolve().then(()=>L0)),e.component("Select",()=>Promise.resolve().then(()=>F0)),e.component("SelectMulti",()=>Promise.resolve().then(()=>l1)),e.component("Spoiler",()=>Promise.resolve().then(()=>d1)),e.component("Tab",()=>Promise.resolve().then(()=>m1)),e.component("Tooltip",()=>Promise.resolve().then(()=>p1)),e.component("Text",()=>Promise.resolve().then(()=>g1)),e.component("Upload",()=>Promise.resolve().then(()=>X2)),e.component("UploadImage",()=>Promise.resolve().then(()=>tm)),e.component("UploadImageMultiple",()=>Promise.resolve().then(()=>fm)),e.component("Breadcrumbs",()=>Promise.resolve().then(()=>bm)),e.component("Chips",()=>Promise.resolve().then(()=>Nm)),e.component("Countdown",()=>Promise.resolve().then(()=>jm)),e.component("DatePicker",()=>Promise.resolve().then(()=>Wm)),e.component("EmptyState",()=>Promise.resolve().then(()=>Ym)),e.component("Feed",()=>Promise.resolve().then(()=>zp)),e.component("FieldBig",()=>Promise.resolve().then(()=>Zp)),e.component("FieldTags",()=>Promise.resolve().then(()=>O3)),e.component("Loader",()=>Promise.resolve().then(()=>Ji)),e.component("Shader",()=>Promise.resolve().then(()=>w3)),e.component("Sidebar",()=>Promise.resolve().then(()=>oh)),e.component("Slider",()=>Promise.resolve().then(()=>Vh)),e.component("Status",()=>Promise.resolve().then(()=>Wh)),e.component("Marquee",()=>Promise.resolve().then(()=>zh))}};exports.FieldTags=Ei;exports.Loader=qt;exports.Map=qa;exports.Select=Ds;exports.SelectMulti=Ms;exports.Upload=ci;exports.WebPlugin=qr;exports._sfc_main=xa;exports._sfc_main$1=Ba;exports._sfc_main$10=Ur;exports._sfc_main$11=Fs;exports._sfc_main$12=xs;exports._sfc_main$13=Bs;exports._sfc_main$14=di;exports._sfc_main$15=ui;exports._sfc_main$16=hi;exports._sfc_main$17=gi;exports._sfc_main$18=$i;exports._sfc_main$19=vi;exports._sfc_main$2=vn;exports._sfc_main$20=zr;exports._sfc_main$21=yi;exports._sfc_main$22=_i;exports._sfc_main$23=Ci;exports._sfc_main$24=wi;exports._sfc_main$25=Pi;exports._sfc_main$26=Ai;exports._sfc_main$27=Di;exports._sfc_main$3=ln;exports._sfc_main$4=Va;exports._sfc_main$5=_n;exports._sfc_main$6=za;exports._sfc_main$7=Ya;exports._sfc_main$8=As;exports._sfc_main$9=Vr;exports.main=Yh;
|