adminizer 5.0.0-build.2 → 5.0.0-build.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/abnfDiagram-VCTEODGH-CkmsvdDi.js +1 -0
- package/assets/add-CESPH_aI.js +1 -0
- package/assets/add-group-CQ4Xm8Ru.js +1 -0
- package/assets/add-user-B-QNjR4B.js +1 -0
- package/assets/ai-assistant/agent.es.js +28362 -0
- package/assets/app-C5Ju5Zra.css +1 -0
- package/assets/app-Ca5yUSBv.js +138 -0
- package/assets/arc-B-Dt8YNl.js +1 -0
- package/assets/architectureDiagram-5GKGNRK7-Ca58kq-l.js +36 -0
- package/assets/asmcrypto-DZeQH0LC.js +1 -0
- package/assets/blockDiagram-NRAW4CY4-CuqE52IG.js +129 -0
- package/assets/c4Diagram-UCG6FXSJ-Cx8z-0Bw.js +38 -0
- package/assets/catalog-CkSbxvx0.js +6 -0
- package/assets/channel-C9z6Pi_j.js +1 -0
- package/assets/chunk-2Q5K7J3B-CXISVKTC.js +1 -0
- package/assets/chunk-5VM5RSS4-DYGeeVYe.js +15 -0
- package/assets/chunk-F27PBJKO-BeY-dbKj.js +1 -0
- package/assets/chunk-G27WJ6UU-DeX_eH7C.js +231 -0
- package/assets/chunk-JWPE2WC7-DaxI9q0u.js +1 -0
- package/assets/chunk-LCL6LL3I-B7PkaEz_.js +206 -0
- package/assets/chunk-POPQ4Y6H-lwu6ZpsN.js +1 -0
- package/assets/chunk-SVP7TREG-CVFllgl1.js +88 -0
- package/assets/chunk-XXDRQBXY-DDLN0rcg.js +1 -0
- package/assets/classDiagram-DTDB5LWJ-BKtCIC3B.js +1 -0
- package/assets/classDiagram-v2-JRS7N3AN-BKtCIC3B.js +1 -0
- package/assets/controls/ckeditor.es.js +9370 -9306
- package/assets/controls/handsontable.es.js +11971 -11938
- package/assets/controls/jsoneditor.es.js +13104 -13008
- package/assets/controls/leaflet.es.js +1023 -1004
- package/assets/controls/toast-ui.es.js +1843 -1834
- package/assets/cose-bilkent-JH36ORCC-CWRyUkhQ.js +1 -0
- package/assets/cynefin-OW5HDTMX-B1iLDXCC.js +166 -0
- package/assets/cynefinDiagram-5FMLGOSQ-DaXQHr3l.js +62 -0
- package/assets/cytoscape.esm-yzknjiTM.js +321 -0
- package/assets/dagre-3AP2YEHR-DFORa4Hz.js +4 -0
- package/assets/dashboard-Ssa1_Of3.js +3 -0
- package/assets/debounce-B3mXI_sx.js +1 -0
- package/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/assets/diagram-S7CK7UJ4-CgP6KBo0.js +30 -0
- package/assets/diagram-UQ7AKVKN-oYfQe6w0.js +41 -0
- package/assets/diagram-VSXAHHWV-DfCU5wgt.js +3 -0
- package/assets/diagram-VX7I27RA-BITJVrNY.js +24 -0
- package/assets/diagram-Z3DM3KII-D8J9Ssjy.js +24 -0
- package/assets/docs-DHMt_Rq1.js +1 -0
- package/assets/ebnfDiagram-PWID7BFC-qpNmoYgx.js +1 -0
- package/assets/erDiagram-SSCWMZ5O-DDF-Y0zs.js +99 -0
- package/assets/flowDiagram-A5DVABFB-CjKVkR9T.js +168 -0
- package/assets/ganttDiagram-EL5Y4UJY-BXGQ53w6.js +292 -0
- package/assets/gitGraphDiagram-WWUBYQGX-BLMevdLh.js +106 -0
- package/assets/history-tBOo2gd5.js +1 -0
- package/assets/infoDiagram-RXCK75RN-BAnPdnyw.js +2 -0
- package/assets/init-Gi6I4Gst.js +1 -0
- package/assets/init-user-DrNUHa6r.js +1 -0
- package/assets/isObject-DL-BuaBl.js +1 -0
- package/assets/ishikawaDiagram-5VMMS53U-PnL0Z4Li.js +70 -0
- package/assets/journeyDiagram-EYS64GPL-CLcsCSwF.js +139 -0
- package/assets/kanban-definition-3QL26DDD-C2eU3uBE.js +89 -0
- package/assets/katex-HP8lGamR.js +257 -0
- package/assets/layout-BXoYdHdx.js +1 -0
- package/assets/linear-BSzrP0oP.js +1 -0
- package/assets/list-CLg6xeIK.js +4 -0
- package/assets/login-Ce7o3-o_.js +1 -0
- package/assets/manifest.json +834 -58
- package/assets/{media-manager-BDbpSSjH.js → media-manager-D7G1P3fz.js} +3 -3
- package/assets/mermaid.core-aKMJHeEk.js +310 -0
- package/assets/mindmap-definition-FBJOCRG2-Dzbz5ghA.js +96 -0
- package/assets/module-BsXph_pA.js +1 -0
- package/assets/notification-D-Zz1gF_.js +20 -0
- package/assets/ordinal-Cboi1Yqb.js +1 -0
- package/assets/pegDiagram-XKGWAZYB-BTdWkU0Y.js +1 -0
- package/assets/pieDiagram-E7YTZNPT-Dnw8-TB-.js +39 -0
- package/assets/quadrantDiagram-AXDQQJYC-CALzLlg9.js +7 -0
- package/assets/railroadDiagram-O6MQD6OU-CTA1vzcv.js +1 -0
- package/assets/register-CNnBkzej.js +1 -0
- package/assets/requirementDiagram-EFPCY7ZU-UX2CF5HA.js +84 -0
- package/assets/ru-CoNgAwFK.js +1 -0
- package/assets/sankeyDiagram-P5KCCOFB-4aPp3ATV.js +40 -0
- package/assets/sequenceDiagram-WJ2MYXX4--kltkwJw.js +162 -0
- package/assets/sizeCapture-X5ZJPWSS-Ca9-g5QY.js +1 -0
- package/assets/stateDiagram-HBIQ2CUA-Diaf5Q7I.js +1 -0
- package/assets/stateDiagram-v2-4QOOHH4V-C6FlRp7u.js +1 -0
- package/assets/swimlanes-XN3QIQJK-DhqX_myE.js +1 -0
- package/assets/swimlanesDiagram-VK2B7HYN-i_3LTEBk.js +8 -0
- package/assets/timeline-definition-24CTP7MA-CwkJQbhq.js +120 -0
- package/assets/toNumber-DZb-r9sy.js +1 -0
- package/assets/use-appearance-DC-DESKB.js +1 -0
- package/assets/user-filters-list-W47DTBp2.js +1 -0
- package/assets/vennDiagram-4TSXK5OY-BNM3_cVS.js +34 -0
- package/assets/wardleyDiagram-VM6X3IG4-BODb1NP8.js +78 -0
- package/assets/welcome-BeBm6NIi.js +1 -0
- package/assets/with-app-layout-B90DtzYC.js +31 -0
- package/assets/xychartDiagram-S5SC5T6Z-DthqEh3g.js +7 -0
- package/controllers/access-rights/permissionOptions.d.ts +2 -0
- package/controllers/access-rights/permissionOptions.js +23 -0
- package/controllers/add.js +1 -1
- package/controllers/addGroup.js +15 -6
- package/controllers/ai/AiAgentController.d.ts +66 -0
- package/controllers/ai/AiAgentController.js +435 -0
- package/controllers/ai/AiAssistantController.d.ts +0 -4
- package/controllers/ai/AiAssistantController.js +4 -78
- package/controllers/catalog/FrontendCatalogAdapter.d.ts +1 -1
- package/controllers/catalog/FrontentCatalogAdapter.d.ts +1 -1
- package/controllers/docs/index.d.ts +22 -0
- package/controllers/docs/index.js +126 -0
- package/controllers/edit.js +1 -1
- package/controllers/editGroup.js +15 -6
- package/controllers/feedback/feedbackController.d.ts +1 -1
- package/controllers/filter-fields/savedFilters.js +1 -1
- package/controllers/history-actions/HistoryController.d.ts +1 -1
- package/controllers/history-actions/HistoryController.js +6 -6
- package/controllers/list.js +1 -1
- package/controllers/login.js +1 -1
- package/controllers/media-manager/mediaManagerAdapter.d.ts +1 -1
- package/controllers/notifications/NotificationController.js +14 -8
- package/controllers/view.js +2 -2
- package/controllers/widgets/filterInfo.js +1 -1
- package/helpers/accessRightsHelper.d.ts +11 -4
- package/helpers/accessRightsHelper.js +82 -12
- package/helpers/assetVersionHelper.d.ts +14 -0
- package/helpers/assetVersionHelper.js +42 -0
- package/helpers/configHelper.d.ts +3 -3
- package/helpers/configHelper.js +20 -18
- package/helpers/controllerHelper.d.ts +3 -2
- package/helpers/controllerHelper.js +25 -15
- package/helpers/fieldsHelper.d.ts +2 -2
- package/helpers/fieldsHelper.js +3 -3
- package/helpers/filterDatetimeHelper.d.ts +1 -1
- package/helpers/inertiaActionsHelper.d.ts +3 -3
- package/helpers/inertiaActionsHelper.js +4 -5
- package/helpers/inertiaAddHelper.d.ts +5 -5
- package/helpers/inertiaAddHelper.js +7 -6
- package/helpers/inertiaGroupHelper.d.ts +3 -3
- package/helpers/inertiaGroupHelper.js +10 -2
- package/helpers/inertiaListHelper.d.ts +4 -4
- package/helpers/inertiaListHelper.js +7 -8
- package/helpers/inertiaMenuHelper.d.ts +2 -3
- package/helpers/inertiaMenuHelper.js +3 -26
- package/helpers/inertiaUserHelper.d.ts +3 -3
- package/helpers/menuHelper.d.ts +2 -2
- package/helpers/modelResourceHelper.d.ts +9 -0
- package/helpers/modelResourceHelper.js +43 -0
- package/helpers/navigationAccessHelper.d.ts +13 -0
- package/helpers/navigationAccessHelper.js +40 -0
- package/helpers/translationHelper.d.ts +2 -2
- package/index.d.ts +69 -58
- package/index.js +11 -0
- package/interfaces/adminpanelConfig.d.ts +18 -5
- package/interfaces/global.d.ts +6 -6
- package/interfaces/internalModelAccess.d.ts +1 -1
- package/interfaces/listQueryBuilder.d.ts +1 -1
- package/interfaces/types.d.ts +171 -2
- package/lib/Adminizer.d.ts +46 -26
- package/lib/Adminizer.js +37 -1
- package/lib/DataAccessor.d.ts +7 -6
- package/lib/DataAccessor.js +50 -48
- package/lib/MiddlewareManager.d.ts +1 -1
- package/lib/access-rights/AccessRightsHandler.d.ts +2 -2
- package/lib/admin-links/AdminLinkHandler.d.ts +72 -0
- package/lib/admin-links/AdminLinkHandler.js +175 -0
- package/lib/ai-assistant/AbstractAiConversationHistoryService.d.ts +39 -0
- package/lib/ai-assistant/AbstractAiConversationHistoryService.js +98 -0
- package/lib/ai-assistant/AbstractAiModelService.d.ts +140 -3
- package/lib/ai-assistant/AbstractAiModelService.js +154 -1
- package/lib/ai-assistant/AiAgentRunManager.d.ts +35 -0
- package/lib/ai-assistant/AiAgentRunManager.js +109 -0
- package/lib/ai-assistant/AiAssistantAgentSkillHandler.d.ts +58 -0
- package/lib/ai-assistant/AiAssistantAgentSkillHandler.js +87 -0
- package/lib/ai-assistant/AiAssistantHandler.d.ts +16 -5
- package/lib/ai-assistant/AiAssistantHandler.js +35 -1
- package/lib/ai-assistant/AiAssistantUiMethodHandler.d.ts +60 -0
- package/lib/ai-assistant/AiAssistantUiMethodHandler.js +138 -0
- package/lib/ai-assistant/builtinAgentSkills.d.ts +9 -0
- package/lib/ai-assistant/builtinAgentSkills.js +256 -0
- package/lib/ai-assistant/jsonSafe.d.ts +13 -0
- package/lib/ai-assistant/jsonSafe.js +81 -0
- package/lib/app-manager/AdminizerApp.d.ts +40 -11
- package/lib/app-manager/AppManager.d.ts +2 -2
- package/lib/app-manager/AppManager.js +54 -50
- package/lib/app-manager/AssetHandler.d.ts +2 -2
- package/lib/app-manager/ConfigLayerHandler.d.ts +2 -2
- package/lib/app-manager/ControllerHandler.d.ts +2 -2
- package/lib/catalog/AbstractCatalog.d.ts +1 -1
- package/lib/catalog/CatalogHandler.d.ts +1 -1
- package/lib/controls/ControlsHandler.d.ts +1 -1
- package/lib/controls/codeEditor/MonacoEditor.d.ts +1 -1
- package/lib/controls/geojsoneditor/GeoEditor.d.ts +1 -1
- package/lib/controls/jsoneditor/JsonEditor.d.ts +1 -1
- package/lib/controls/markdown/ToastUiEditor.d.ts +1 -1
- package/lib/controls/table/Handsontable.d.ts +1 -1
- package/lib/controls/wysiwyg/CKeditor.d.ts +1 -1
- package/lib/docs/AbstractDocumentation.d.ts +100 -0
- package/lib/docs/AbstractDocumentation.js +108 -0
- package/lib/docs/DocumentationHandler.d.ts +100 -0
- package/lib/docs/DocumentationHandler.js +198 -0
- package/lib/docs/FileDocumentation.d.ts +47 -0
- package/lib/docs/FileDocumentation.js +189 -0
- package/lib/docs/docsAgentSkills.d.ts +10 -0
- package/lib/docs/docsAgentSkills.js +93 -0
- package/lib/feedback/FeedbackHandler.d.ts +2 -2
- package/lib/filters/ConditionValidator.d.ts +1 -1
- package/lib/filters/FilterCustomFieldHandler.d.ts +2 -2
- package/lib/filters/FilterService.d.ts +4 -4
- package/lib/filters/FilterService.js +4 -3
- package/lib/filters/index.d.ts +6 -6
- package/lib/history-actions/AbstractHistoryAdapter.d.ts +6 -6
- package/lib/history-actions/AbstractHistoryAdapter.js +11 -9
- package/lib/history-actions/DefaultHistoryAdapter.d.ts +4 -4
- package/lib/history-actions/HistoryHandler.d.ts +1 -1
- package/lib/list-query-builder/ListQueryBuilder.d.ts +7 -7
- package/lib/media-manager/AbstractMediaManager.d.ts +2 -2
- package/lib/media-manager/MediaManagerHandler.d.ts +1 -1
- package/lib/media-manager/Thumb.d.ts +1 -1
- package/lib/media-manager/helpers/MediaManagerHelper.d.ts +5 -5
- package/lib/model/AbstractModel.d.ts +11 -4
- package/lib/model/InternalModelAccessFactory.d.ts +2 -2
- package/lib/model/ModelHandler.d.ts +50 -5
- package/lib/model/ModelHandler.js +107 -8
- package/lib/model/adapter/sequelize.d.ts +7 -5
- package/lib/model/adapter/sequelize.js +79 -46
- package/lib/model/adapter/typeorm.d.ts +2 -2
- package/lib/model/adapter/typeorm.js +1 -1
- package/lib/model/internalModelRepository.d.ts +2 -2
- package/lib/notifications/AbstractNotificationService.d.ts +4 -4
- package/lib/notifications/GeneralNotificationService.d.ts +2 -2
- package/lib/notifications/GeneralNotificationService.js +6 -5
- package/lib/notifications/NotificationHandler.d.ts +2 -2
- package/lib/notifications/SystemNotificationService.d.ts +2 -2
- package/lib/notifications/SystemNotificationService.js +1 -1
- package/lib/requestProcessor.d.ts +1 -1
- package/lib/ui-i18n/uiTranslationKeys.d.ts +2 -1
- package/lib/ui-i18n/uiTranslationKeys.js +42 -1
- package/lib/widgets/abstractAction.d.ts +1 -1
- package/lib/widgets/abstractCustom.d.ts +2 -2
- package/lib/widgets/abstractInfo.d.ts +1 -1
- package/lib/widgets/abstractLink.d.ts +2 -2
- package/lib/widgets/abstractSwitch.d.ts +1 -1
- package/lib/widgets/abstractWidgetBase.d.ts +1 -1
- package/lib/widgets/widgetHandler.d.ts +9 -9
- package/lib/widgets/widgetHandler.js +5 -1
- package/models/Filter.d.ts +1 -1
- package/models/FilterColumn.d.ts +1 -1
- package/models/Group.d.ts +3 -2
- package/models/HistoryActions.d.ts +1 -1
- package/models/MediaManagerAP.d.ts +2 -2
- package/models/MediaManagerAssociationsAP.d.ts +1 -1
- package/models/MediaManagerMetaAP.d.ts +1 -1
- package/models/User.d.ts +2 -2
- package/models/UserNotification.d.ts +1 -1
- package/package.json +29 -20
- package/policies/authPolicies.js +6 -6
- package/policies/permissionResolvers.d.ts +1 -0
- package/policies/permissionResolvers.js +3 -0
- package/services/FeedService.d.ts +3 -3
- package/system/Router.d.ts +1 -1
- package/system/Router.js +27 -1
- package/system/bindAccessRights.d.ts +1 -1
- package/system/bindAccessRights.js +2 -3
- package/system/bindAuthorization.d.ts +1 -1
- package/system/bindControls.d.ts +1 -1
- package/system/bindCors.d.ts +1 -1
- package/system/bindCustomFilterHandlers.d.ts +1 -1
- package/system/bindDashboardWidgets.d.ts +1 -1
- package/system/bindDev.d.ts +1 -1
- package/system/bindDocs.d.ts +13 -0
- package/system/bindDocs.js +77 -0
- package/system/bindHistory.d.ts +1 -1
- package/system/bindInertia.d.ts +1 -1
- package/system/bindInertia.js +23 -1
- package/system/bindMediaManager.d.ts +1 -1
- package/system/bindNotifications.d.ts +1 -1
- package/system/bindReqFunctions.d.ts +1 -1
- package/system/bindTranslations.d.ts +1 -1
- package/system/buildInternalModelAccess.d.ts +3 -3
- package/system/buildInternalModelAccess.js +5 -2
- package/system/defaults.d.ts +1 -1
- package/system/routePolicies.d.ts +1 -1
- package/system/systemModelContracts.d.ts +1 -1
- package/system/systemModelContracts.js +11 -7
- package/system/validateSystemModels.d.ts +1 -1
- package/system/validateSystemModels.js +29 -9
- package/assets/add-group-BdHFzKng.js +0 -1
- package/assets/add-p6yGCoZ7.js +0 -1
- package/assets/add-user-CDspCLu4.js +0 -1
- package/assets/app-DNXiApCk.css +0 -1
- package/assets/app-layout-DCr_-JY3.js +0 -1
- package/assets/app.js +0 -138
- package/assets/catalog-XN-_p9TB.js +0 -6
- package/assets/dashboard-CHZO2QFY.js +0 -3
- package/assets/debounce-BMmXVQ06.js +0 -1
- package/assets/history-CQd0FojQ.js +0 -1
- package/assets/init-user-8aUohVDq.js +0 -1
- package/assets/list-PHWgTHsg.js +0 -4
- package/assets/login-CO4laf6m.js +0 -1
- package/assets/module-DVyQtIxm.js +0 -1
- package/assets/notification-B87XG8nQ.js +0 -20
- package/assets/register-DBYIMXGQ.js +0 -1
- package/assets/ru-rYKdQbWF.js +0 -1
- package/assets/use-appearance-_EbbjHTh.js +0 -1
- package/assets/user-filters-list-BRzDbPkx.js +0 -1
- package/assets/welcome-DiXmrTgc.js +0 -1
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { j as O } from "./chunks/jsx-runtime-jIxVPx5o.js";
|
|
2
|
-
import { g as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
const a =
|
|
6
|
-
|
|
2
|
+
import { g as Ts } from "./chunks/_commonjsHelpers-C6fGbg64.js";
|
|
3
|
+
const Cs = window.React.useEffect, Ss = window.React.useRef;
|
|
4
|
+
function To(s, l) {
|
|
5
|
+
const a = Ss(l);
|
|
6
|
+
Cs(function() {
|
|
7
7
|
l !== a.current && s.attributionControl != null && (a.current != null && s.attributionControl.removeAttribution(a.current), l != null && s.attributionControl.addAttribution(l)), a.current = l;
|
|
8
8
|
}, [
|
|
9
9
|
s,
|
|
10
10
|
l
|
|
11
11
|
]);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function
|
|
13
|
+
const zs = window.React.createContext, Ms = window.React.use, Es = 1;
|
|
14
|
+
function Os(s) {
|
|
15
15
|
return Object.freeze({
|
|
16
|
-
__version:
|
|
16
|
+
__version: Es,
|
|
17
17
|
map: s
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function oi(s, l) {
|
|
21
21
|
return Object.freeze({
|
|
22
22
|
...s,
|
|
23
23
|
...l
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
function
|
|
28
|
-
const s =
|
|
26
|
+
const Vi = zs(null);
|
|
27
|
+
function ri() {
|
|
28
|
+
const s = Ms(Vi);
|
|
29
29
|
if (s == null)
|
|
30
30
|
throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");
|
|
31
31
|
return s;
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
function
|
|
33
|
+
const As = window.React, Ui = window.React.forwardRef, Is = window.React.useEffect, $i = window.React.useImperativeHandle, Rs = window.React.useState, Zs = window.ReactDOM.createPortal;
|
|
34
|
+
function Co(s) {
|
|
35
35
|
function l(a, h) {
|
|
36
36
|
const { instance: u, context: p } = s(a).current;
|
|
37
|
-
|
|
37
|
+
$i(h, () => u);
|
|
38
38
|
const { children: m } = a;
|
|
39
|
-
return m == null ? null : /* @__PURE__ */
|
|
39
|
+
return m == null ? null : /* @__PURE__ */ As.createElement(Vi, {
|
|
40
40
|
value: p
|
|
41
41
|
}, m);
|
|
42
42
|
}
|
|
43
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ Ui(l);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Bs(s) {
|
|
46
46
|
function l(a, h) {
|
|
47
|
-
const [u, p] =
|
|
48
|
-
|
|
47
|
+
const [u, p] = Rs(!1), { instance: m } = s(a, p).current;
|
|
48
|
+
$i(h, () => m), Is(function() {
|
|
49
49
|
u && m.update();
|
|
50
50
|
}, [
|
|
51
51
|
m,
|
|
@@ -53,21 +53,21 @@ function Cs(s) {
|
|
|
53
53
|
a.children
|
|
54
54
|
]);
|
|
55
55
|
const b = m._contentNode;
|
|
56
|
-
return b ? /* @__PURE__ */
|
|
56
|
+
return b ? /* @__PURE__ */ Zs(a.children, b) : null;
|
|
57
57
|
}
|
|
58
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ Ui(l);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Ns(s) {
|
|
61
61
|
function l(a, h) {
|
|
62
62
|
const { instance: u } = s(a).current;
|
|
63
|
-
return
|
|
63
|
+
return $i(h, () => u), null;
|
|
64
64
|
}
|
|
65
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ Ui(l);
|
|
66
66
|
}
|
|
67
|
-
const
|
|
68
|
-
function
|
|
69
|
-
const a =
|
|
70
|
-
|
|
67
|
+
const Ds = window.React.useEffect, Fs = window.React.useRef;
|
|
68
|
+
function qi(s, l) {
|
|
69
|
+
const a = Fs(void 0);
|
|
70
|
+
Ds(function() {
|
|
71
71
|
return l != null && s.instance.on(l), a.current = l, function() {
|
|
72
72
|
a.current != null && s.instance.off(a.current), a.current = null;
|
|
73
73
|
};
|
|
@@ -76,26 +76,26 @@ function Vi(s, l) {
|
|
|
76
76
|
l
|
|
77
77
|
]);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function si(s, l) {
|
|
80
80
|
const a = s.pane ?? l.pane;
|
|
81
81
|
return a ? {
|
|
82
82
|
...s,
|
|
83
83
|
pane: a
|
|
84
84
|
} : s;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Ws(s, l) {
|
|
87
87
|
return function(h, u) {
|
|
88
|
-
const p =
|
|
89
|
-
return
|
|
88
|
+
const p = ri(), m = s(si(h, p), p);
|
|
89
|
+
return To(p.map, h.attribution), qi(m.current, h.eventHandlers), l(m.current, p, h, u), m;
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
function
|
|
95
|
-
return
|
|
92
|
+
var Ee = { exports: {} };
|
|
93
|
+
var Hs = Ee.exports, ho;
|
|
94
|
+
function js() {
|
|
95
|
+
return ho || (ho = 1, (function(s, l) {
|
|
96
96
|
(function(a, h) {
|
|
97
97
|
h(l);
|
|
98
|
-
})(
|
|
98
|
+
})(Hs, (function(a) {
|
|
99
99
|
var h = "1.9.4";
|
|
100
100
|
function u(t) {
|
|
101
101
|
var e, i, n, o;
|
|
@@ -134,7 +134,7 @@ function As() {
|
|
|
134
134
|
n ? o = arguments : (t.apply(i, arguments), setTimeout(c, e), n = !0);
|
|
135
135
|
}, r;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function R(t, e, i) {
|
|
138
138
|
var n = e[1], o = e[0], r = n - o;
|
|
139
139
|
return t === n && i ? t : ((t - o) % r + r) % r + o;
|
|
140
140
|
}
|
|
@@ -147,13 +147,13 @@ function As() {
|
|
|
147
147
|
var i = Math.pow(10, e === void 0 ? 6 : e);
|
|
148
148
|
return Math.round(t * i) / i;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Z(t) {
|
|
151
151
|
return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
|
|
152
152
|
}
|
|
153
153
|
function G(t) {
|
|
154
|
-
return
|
|
154
|
+
return Z(t).split(/\s+/);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function S(t, e) {
|
|
157
157
|
Object.prototype.hasOwnProperty.call(t, "options") || (t.options = t.options ? p(t.options) : {});
|
|
158
158
|
for (var i in e)
|
|
159
159
|
t.options[i] = e[i];
|
|
@@ -192,7 +192,7 @@ function As() {
|
|
|
192
192
|
var e = +/* @__PURE__ */ new Date(), i = Math.max(0, 16 - (e - W));
|
|
193
193
|
return W = e + i, window.setTimeout(t, i);
|
|
194
194
|
}
|
|
195
|
-
var nt = window.requestAnimationFrame || C("RequestAnimationFrame") || w,
|
|
195
|
+
var nt = window.requestAnimationFrame || C("RequestAnimationFrame") || w, $t = window.cancelAnimationFrame || C("CancelAnimationFrame") || C("CancelRequestAnimationFrame") || function(t) {
|
|
196
196
|
window.clearTimeout(t);
|
|
197
197
|
};
|
|
198
198
|
function tt(t, e, i) {
|
|
@@ -202,9 +202,9 @@ function As() {
|
|
|
202
202
|
return nt.call(window, m(t, e));
|
|
203
203
|
}
|
|
204
204
|
function ht(t) {
|
|
205
|
-
t &&
|
|
205
|
+
t && $t.call(window, t);
|
|
206
206
|
}
|
|
207
|
-
var
|
|
207
|
+
var Ae = {
|
|
208
208
|
__proto__: null,
|
|
209
209
|
extend: u,
|
|
210
210
|
create: p,
|
|
@@ -214,19 +214,19 @@ function As() {
|
|
|
214
214
|
},
|
|
215
215
|
stamp: v,
|
|
216
216
|
throttle: g,
|
|
217
|
-
wrapNum:
|
|
217
|
+
wrapNum: R,
|
|
218
218
|
falseFn: T,
|
|
219
219
|
formatNum: D,
|
|
220
|
-
trim:
|
|
220
|
+
trim: Z,
|
|
221
221
|
splitWords: G,
|
|
222
|
-
setOptions:
|
|
222
|
+
setOptions: S,
|
|
223
223
|
getParamString: Y,
|
|
224
224
|
template: X,
|
|
225
225
|
isArray: U,
|
|
226
226
|
indexOf: lt,
|
|
227
227
|
emptyImageUrl: mt,
|
|
228
228
|
requestFn: nt,
|
|
229
|
-
cancelFn:
|
|
229
|
+
cancelFn: $t,
|
|
230
230
|
requestAnimFrame: tt,
|
|
231
231
|
cancelAnimFrame: ht
|
|
232
232
|
};
|
|
@@ -234,12 +234,12 @@ function As() {
|
|
|
234
234
|
}
|
|
235
235
|
vt.extend = function(t) {
|
|
236
236
|
var e = function() {
|
|
237
|
-
|
|
237
|
+
S(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
|
|
238
238
|
}, i = e.__super__ = this.prototype, n = p(i);
|
|
239
239
|
n.constructor = e, e.prototype = n;
|
|
240
240
|
for (var o in this)
|
|
241
241
|
Object.prototype.hasOwnProperty.call(this, o) && o !== "prototype" && o !== "__super__" && (e[o] = this[o]);
|
|
242
|
-
return t.statics && u(e, t.statics), t.includes && (
|
|
242
|
+
return t.statics && u(e, t.statics), t.includes && (Ft(t.includes), u.apply(null, [n].concat(t.includes))), u(n, t), delete n.statics, delete n.includes, n.options && (n.options = i.options ? p(i.options) : {}, u(n.options, t.options)), n._initHooks = [], n.callInitHooks = function() {
|
|
243
243
|
if (!this._initHooksCalled) {
|
|
244
244
|
i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
|
|
245
245
|
for (var r = 0, c = n._initHooks.length; r < c; r++)
|
|
@@ -257,7 +257,7 @@ function As() {
|
|
|
257
257
|
};
|
|
258
258
|
return this.prototype._initHooks = this.prototype._initHooks || [], this.prototype._initHooks.push(i), this;
|
|
259
259
|
};
|
|
260
|
-
function
|
|
260
|
+
function Ft(t) {
|
|
261
261
|
if (!(typeof L > "u" || !L || !L.Mixin)) {
|
|
262
262
|
t = U(t) ? t : [t];
|
|
263
263
|
for (var e = 0; e < t.length; e++)
|
|
@@ -432,7 +432,7 @@ function As() {
|
|
|
432
432
|
function A(t, e, i) {
|
|
433
433
|
this.x = i ? Math.round(t) : t, this.y = i ? Math.round(e) : e;
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var ne = Math.trunc || function(t) {
|
|
436
436
|
return t > 0 ? Math.floor(t) : Math.ceil(t);
|
|
437
437
|
};
|
|
438
438
|
A.prototype = {
|
|
@@ -517,7 +517,7 @@ function As() {
|
|
|
517
517
|
return this.clone()._trunc();
|
|
518
518
|
},
|
|
519
519
|
_trunc: function() {
|
|
520
|
-
return this.x =
|
|
520
|
+
return this.x = ne(this.x), this.y = ne(this.y), this;
|
|
521
521
|
},
|
|
522
522
|
// @method distanceTo(otherPoint: Point): Number
|
|
523
523
|
// Returns the cartesian distance between the current and the given points.
|
|
@@ -891,7 +891,7 @@ function As() {
|
|
|
891
891
|
// Returns a `LatLng` where lat and lng has been wrapped according to the
|
|
892
892
|
// CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.
|
|
893
893
|
wrapLatLng: function(t) {
|
|
894
|
-
var e = this.wrapLng ?
|
|
894
|
+
var e = this.wrapLng ? R(t.lng, this.wrapLng, !0) : t.lng, i = this.wrapLat ? R(t.lat, this.wrapLat, !0) : t.lat, n = t.alt;
|
|
895
895
|
return new I(i, e, n);
|
|
896
896
|
},
|
|
897
897
|
// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
|
|
@@ -916,7 +916,7 @@ function As() {
|
|
|
916
916
|
var i = Math.PI / 180, n = t.lat * i, o = e.lat * i, r = Math.sin((e.lat - t.lat) * i / 2), c = Math.sin((e.lng - t.lng) * i / 2), d = r * r + Math.cos(n) * Math.cos(o) * c * c, f = 2 * Math.atan2(Math.sqrt(d), Math.sqrt(1 - d));
|
|
917
917
|
return this.R * f;
|
|
918
918
|
}
|
|
919
|
-
}), et = 6378137,
|
|
919
|
+
}), et = 6378137, oe = {
|
|
920
920
|
R: et,
|
|
921
921
|
MAX_LATITUDE: 85.0511287798,
|
|
922
922
|
project: function(t) {
|
|
@@ -938,14 +938,14 @@ function As() {
|
|
|
938
938
|
return new $([-t, -t], [t, t]);
|
|
939
939
|
})()
|
|
940
940
|
};
|
|
941
|
-
function
|
|
941
|
+
function Wt(t, e, i, n) {
|
|
942
942
|
if (U(t)) {
|
|
943
943
|
this._a = t[0], this._b = t[1], this._c = t[2], this._d = t[3];
|
|
944
944
|
return;
|
|
945
945
|
}
|
|
946
946
|
this._a = t, this._b = e, this._c = i, this._d = n;
|
|
947
947
|
}
|
|
948
|
-
|
|
948
|
+
Wt.prototype = {
|
|
949
949
|
// @method transform(point: Point, scale?: Number): Point
|
|
950
950
|
// Returns a transformed point, optionally multiplied by the given scale.
|
|
951
951
|
// Only accepts actual `L.Point` instances, not arrays.
|
|
@@ -967,31 +967,31 @@ function As() {
|
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
969
|
function zt(t, e, i, n) {
|
|
970
|
-
return new
|
|
970
|
+
return new Wt(t, e, i, n);
|
|
971
971
|
}
|
|
972
|
-
var
|
|
972
|
+
var qt = u({}, Lt, {
|
|
973
973
|
code: "EPSG:3857",
|
|
974
|
-
projection:
|
|
974
|
+
projection: oe,
|
|
975
975
|
transformation: (function() {
|
|
976
|
-
var t = 0.5 / (Math.PI *
|
|
976
|
+
var t = 0.5 / (Math.PI * oe.R);
|
|
977
977
|
return zt(t, 0.5, -t, 0.5);
|
|
978
978
|
})()
|
|
979
|
-
}),
|
|
979
|
+
}), re = u({}, qt, {
|
|
980
980
|
code: "EPSG:900913"
|
|
981
981
|
});
|
|
982
|
-
function
|
|
982
|
+
function Qi(t) {
|
|
983
983
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function tn(t, e) {
|
|
986
986
|
var i = "", n, o, r, c, d, f;
|
|
987
987
|
for (n = 0, r = t.length; n < r; n++) {
|
|
988
988
|
for (d = t[n], o = 0, c = d.length; o < c; o++)
|
|
989
989
|
f = d[o], i += (o ? "L" : "M") + f.x + " " + f.y;
|
|
990
|
-
i += e ?
|
|
990
|
+
i += e ? z.svg ? "z" : "x" : "";
|
|
991
991
|
}
|
|
992
992
|
return i || "M0 0";
|
|
993
993
|
}
|
|
994
|
-
var
|
|
994
|
+
var li = document.documentElement.style, Ie = "ActiveXObject" in window, nr = Ie && !document.addEventListener, en = "msLaunchUri" in navigator && !("documentMode" in document), hi = Mt("webkit"), nn = Mt("android"), on = Mt("android 2") || Mt("android 3"), or = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), rr = nn && Mt("Google") && or < 537 && !("AudioNode" in window), ci = !!window.opera, rn = !en && Mt("chrome"), sn = Mt("gecko") && !hi && !ci && !Ie, sr = !rn && Mt("safari"), an = Mt("phantom"), ln = "OTransition" in li, ar = navigator.platform.indexOf("Win") === 0, hn = Ie && "transition" in li, ui = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !on, cn = "MozPerspective" in li, lr = !window.L_DISABLE_3D && (hn || ui || cn) && !ln && !an, _e = typeof orientation < "u" || Mt("mobile"), hr = _e && hi, cr = _e && ui, un = !window.PointerEvent && window.MSPointerEvent, dn = !!(window.PointerEvent || un), fn = "ontouchstart" in window || !!window.TouchEvent, ur = !window.L_NO_TOUCH && (fn || dn), dr = _e && ci, fr = _e && sn, mr = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, pr = (function() {
|
|
995
995
|
var t = !1;
|
|
996
996
|
try {
|
|
997
997
|
var e = Object.defineProperty({}, "passive", {
|
|
@@ -1003,12 +1003,12 @@ function As() {
|
|
|
1003
1003
|
} catch {
|
|
1004
1004
|
}
|
|
1005
1005
|
return t;
|
|
1006
|
-
})(),
|
|
1006
|
+
})(), _r = (function() {
|
|
1007
1007
|
return !!document.createElement("canvas").getContext;
|
|
1008
|
-
})(),
|
|
1008
|
+
})(), di = !!(document.createElementNS && Qi("svg").createSVGRect), gr = !!di && (function() {
|
|
1009
1009
|
var t = document.createElement("div");
|
|
1010
1010
|
return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
|
|
1011
|
-
})(),
|
|
1011
|
+
})(), vr = !di && (function() {
|
|
1012
1012
|
try {
|
|
1013
1013
|
var t = document.createElement("div");
|
|
1014
1014
|
t.innerHTML = '<v:shape adj="1"/>';
|
|
@@ -1017,98 +1017,98 @@ function As() {
|
|
|
1017
1017
|
} catch {
|
|
1018
1018
|
return !1;
|
|
1019
1019
|
}
|
|
1020
|
-
})(),
|
|
1021
|
-
function
|
|
1020
|
+
})(), yr = navigator.platform.indexOf("Mac") === 0, br = navigator.platform.indexOf("Linux") === 0;
|
|
1021
|
+
function Mt(t) {
|
|
1022
1022
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
|
1023
1023
|
}
|
|
1024
|
-
var
|
|
1025
|
-
ie:
|
|
1026
|
-
ielt9:
|
|
1027
|
-
edge:
|
|
1028
|
-
webkit:
|
|
1029
|
-
android:
|
|
1030
|
-
android23:
|
|
1031
|
-
androidStock:
|
|
1032
|
-
opera:
|
|
1033
|
-
chrome:
|
|
1034
|
-
gecko:
|
|
1035
|
-
safari:
|
|
1036
|
-
phantom:
|
|
1037
|
-
opera12:
|
|
1038
|
-
win:
|
|
1039
|
-
ie3d:
|
|
1040
|
-
webkit3d:
|
|
1041
|
-
gecko3d:
|
|
1042
|
-
any3d:
|
|
1043
|
-
mobile:
|
|
1044
|
-
mobileWebkit:
|
|
1045
|
-
mobileWebkit3d:
|
|
1046
|
-
msPointer:
|
|
1047
|
-
pointer:
|
|
1048
|
-
touch:
|
|
1049
|
-
touchNative:
|
|
1050
|
-
mobileOpera:
|
|
1051
|
-
mobileGecko:
|
|
1052
|
-
retina:
|
|
1053
|
-
passiveEvents:
|
|
1054
|
-
canvas:
|
|
1055
|
-
svg:
|
|
1056
|
-
vml:
|
|
1057
|
-
inlineSvg:
|
|
1058
|
-
mac:
|
|
1059
|
-
linux:
|
|
1060
|
-
},
|
|
1061
|
-
touchstart:
|
|
1062
|
-
touchmove:
|
|
1063
|
-
touchend:
|
|
1064
|
-
touchcancel:
|
|
1065
|
-
},
|
|
1066
|
-
touchstart:
|
|
1067
|
-
touchmove:
|
|
1068
|
-
touchend:
|
|
1069
|
-
touchcancel:
|
|
1070
|
-
},
|
|
1071
|
-
function
|
|
1072
|
-
return e === "touchstart" &&
|
|
1073
|
-
}
|
|
1074
|
-
function
|
|
1075
|
-
if (!
|
|
1024
|
+
var z = {
|
|
1025
|
+
ie: Ie,
|
|
1026
|
+
ielt9: nr,
|
|
1027
|
+
edge: en,
|
|
1028
|
+
webkit: hi,
|
|
1029
|
+
android: nn,
|
|
1030
|
+
android23: on,
|
|
1031
|
+
androidStock: rr,
|
|
1032
|
+
opera: ci,
|
|
1033
|
+
chrome: rn,
|
|
1034
|
+
gecko: sn,
|
|
1035
|
+
safari: sr,
|
|
1036
|
+
phantom: an,
|
|
1037
|
+
opera12: ln,
|
|
1038
|
+
win: ar,
|
|
1039
|
+
ie3d: hn,
|
|
1040
|
+
webkit3d: ui,
|
|
1041
|
+
gecko3d: cn,
|
|
1042
|
+
any3d: lr,
|
|
1043
|
+
mobile: _e,
|
|
1044
|
+
mobileWebkit: hr,
|
|
1045
|
+
mobileWebkit3d: cr,
|
|
1046
|
+
msPointer: un,
|
|
1047
|
+
pointer: dn,
|
|
1048
|
+
touch: ur,
|
|
1049
|
+
touchNative: fn,
|
|
1050
|
+
mobileOpera: dr,
|
|
1051
|
+
mobileGecko: fr,
|
|
1052
|
+
retina: mr,
|
|
1053
|
+
passiveEvents: pr,
|
|
1054
|
+
canvas: _r,
|
|
1055
|
+
svg: di,
|
|
1056
|
+
vml: vr,
|
|
1057
|
+
inlineSvg: gr,
|
|
1058
|
+
mac: yr,
|
|
1059
|
+
linux: br
|
|
1060
|
+
}, mn = z.msPointer ? "MSPointerDown" : "pointerdown", pn = z.msPointer ? "MSPointerMove" : "pointermove", _n = z.msPointer ? "MSPointerUp" : "pointerup", gn = z.msPointer ? "MSPointerCancel" : "pointercancel", fi = {
|
|
1061
|
+
touchstart: mn,
|
|
1062
|
+
touchmove: pn,
|
|
1063
|
+
touchend: _n,
|
|
1064
|
+
touchcancel: gn
|
|
1065
|
+
}, vn = {
|
|
1066
|
+
touchstart: Tr,
|
|
1067
|
+
touchmove: Re,
|
|
1068
|
+
touchend: Re,
|
|
1069
|
+
touchcancel: Re
|
|
1070
|
+
}, se = {}, yn = !1;
|
|
1071
|
+
function wr(t, e, i) {
|
|
1072
|
+
return e === "touchstart" && kr(), vn[e] ? (i = vn[e].bind(this, i), t.addEventListener(fi[e], i, !1), i) : (console.warn("wrong event specified:", e), T);
|
|
1073
|
+
}
|
|
1074
|
+
function xr(t, e, i) {
|
|
1075
|
+
if (!fi[e]) {
|
|
1076
1076
|
console.warn("wrong event specified:", e);
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
|
-
t.removeEventListener(
|
|
1079
|
+
t.removeEventListener(fi[e], i, !1);
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1082
|
-
|
|
1081
|
+
function Pr(t) {
|
|
1082
|
+
se[t.pointerId] = t;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
|
|
1084
|
+
function Lr(t) {
|
|
1085
|
+
se[t.pointerId] && (se[t.pointerId] = t);
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
delete
|
|
1087
|
+
function bn(t) {
|
|
1088
|
+
delete se[t.pointerId];
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
|
|
1090
|
+
function kr() {
|
|
1091
|
+
yn || (document.addEventListener(mn, Pr, !0), document.addEventListener(pn, Lr, !0), document.addEventListener(_n, bn, !0), document.addEventListener(gn, bn, !0), yn = !0);
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function Re(t, e) {
|
|
1094
1094
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
1095
1095
|
e.touches = [];
|
|
1096
|
-
for (var i in
|
|
1097
|
-
e.touches.push(
|
|
1096
|
+
for (var i in se)
|
|
1097
|
+
e.touches.push(se[i]);
|
|
1098
1098
|
e.changedTouches = [e], t(e);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1102
|
-
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && dt(e),
|
|
1101
|
+
function Tr(t, e) {
|
|
1102
|
+
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && dt(e), Re(t, e);
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function Cr(t) {
|
|
1105
1105
|
var e = {}, i, n;
|
|
1106
1106
|
for (n in t)
|
|
1107
1107
|
i = t[n], e[n] = i && i.bind ? i.bind(t) : i;
|
|
1108
1108
|
return t = e, e.type = "dblclick", e.detail = 2, e.isTrusted = !1, e._simulated = !0, e;
|
|
1109
1109
|
}
|
|
1110
|
-
var
|
|
1111
|
-
function
|
|
1110
|
+
var Sr = 200;
|
|
1111
|
+
function zr(t, e) {
|
|
1112
1112
|
t.addEventListener("dblclick", e);
|
|
1113
1113
|
var i = 0, n;
|
|
1114
1114
|
function o(r) {
|
|
@@ -1117,14 +1117,14 @@ function As() {
|
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
1119
|
if (!(r.pointerType === "mouse" || r.sourceCapabilities && !r.sourceCapabilities.firesTouchEvents)) {
|
|
1120
|
-
var c =
|
|
1120
|
+
var c = kn(r);
|
|
1121
1121
|
if (!(c.some(function(f) {
|
|
1122
1122
|
return f instanceof HTMLLabelElement && f.attributes.for;
|
|
1123
1123
|
}) && !c.some(function(f) {
|
|
1124
1124
|
return f instanceof HTMLInputElement || f instanceof HTMLSelectElement;
|
|
1125
1125
|
}))) {
|
|
1126
1126
|
var d = Date.now();
|
|
1127
|
-
d - i <=
|
|
1127
|
+
d - i <= Sr ? (n++, n === 2 && e(Cr(r))) : n = 1, i = d;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
@@ -1133,18 +1133,18 @@ function As() {
|
|
|
1133
1133
|
simDblclick: o
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function Mr(t, e) {
|
|
1137
1137
|
t.removeEventListener("dblclick", e.dblclick), t.removeEventListener("click", e.simDblclick);
|
|
1138
1138
|
}
|
|
1139
|
-
var
|
|
1139
|
+
var mi = Ne(
|
|
1140
1140
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
|
1141
|
-
),
|
|
1141
|
+
), ge = Ne(
|
|
1142
1142
|
["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
|
|
1143
|
-
),
|
|
1144
|
-
function
|
|
1143
|
+
), wn = ge === "webkitTransition" || ge === "OTransition" ? ge + "End" : "transitionend";
|
|
1144
|
+
function xn(t) {
|
|
1145
1145
|
return typeof t == "string" ? document.getElementById(t) : t;
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function ve(t, e) {
|
|
1148
1148
|
var i = t.style[e] || t.currentStyle && t.currentStyle[e];
|
|
1149
1149
|
if ((!i || i === "auto") && document.defaultView) {
|
|
1150
1150
|
var n = document.defaultView.getComputedStyle(t, null);
|
|
@@ -1164,42 +1164,42 @@ function As() {
|
|
|
1164
1164
|
for (; t.firstChild; )
|
|
1165
1165
|
t.removeChild(t.firstChild);
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function ae(t) {
|
|
1168
1168
|
var e = t.parentNode;
|
|
1169
1169
|
e && e.lastChild !== t && e.appendChild(t);
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function le(t) {
|
|
1172
1172
|
var e = t.parentNode;
|
|
1173
1173
|
e && e.firstChild !== t && e.insertBefore(t, e.firstChild);
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function pi(t, e) {
|
|
1176
1176
|
if (t.classList !== void 0)
|
|
1177
1177
|
return t.classList.contains(e);
|
|
1178
|
-
var i =
|
|
1178
|
+
var i = Be(t);
|
|
1179
1179
|
return i.length > 0 && new RegExp("(^|\\s)" + e + "(\\s|$)").test(i);
|
|
1180
1180
|
}
|
|
1181
1181
|
function N(t, e) {
|
|
1182
1182
|
if (t.classList !== void 0)
|
|
1183
1183
|
for (var i = G(e), n = 0, o = i.length; n < o; n++)
|
|
1184
1184
|
t.classList.add(i[n]);
|
|
1185
|
-
else if (!
|
|
1186
|
-
var r =
|
|
1187
|
-
|
|
1185
|
+
else if (!pi(t, e)) {
|
|
1186
|
+
var r = Be(t);
|
|
1187
|
+
_i(t, (r ? r + " " : "") + e);
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
1190
|
function it(t, e) {
|
|
1191
|
-
t.classList !== void 0 ? t.classList.remove(e) :
|
|
1191
|
+
t.classList !== void 0 ? t.classList.remove(e) : _i(t, Z((" " + Be(t) + " ").replace(" " + e + " ", " ")));
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function _i(t, e) {
|
|
1194
1194
|
t.className.baseVal === void 0 ? t.className = e : t.className.baseVal = e;
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function Be(t) {
|
|
1197
1197
|
return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
|
|
1198
1198
|
}
|
|
1199
1199
|
function bt(t, e) {
|
|
1200
|
-
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style &&
|
|
1200
|
+
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style && Er(t, e);
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function Er(t, e) {
|
|
1203
1203
|
var i = !1, n = "DXImageTransform.Microsoft.Alpha";
|
|
1204
1204
|
try {
|
|
1205
1205
|
i = t.filters.item(n);
|
|
@@ -1209,64 +1209,64 @@ function As() {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
e = Math.round(e * 100), i ? (i.Enabled = e !== 100, i.Opacity = e) : t.style.filter += " progid:" + n + "(opacity=" + e + ")";
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Ne(t) {
|
|
1213
1213
|
for (var e = document.documentElement.style, i = 0; i < t.length; i++)
|
|
1214
1214
|
if (t[i] in e)
|
|
1215
1215
|
return t[i];
|
|
1216
1216
|
return !1;
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function Kt(t, e, i) {
|
|
1219
1219
|
var n = e || new A(0, 0);
|
|
1220
|
-
t.style[
|
|
1220
|
+
t.style[mi] = (z.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
|
|
1221
1221
|
}
|
|
1222
1222
|
function ot(t, e) {
|
|
1223
|
-
t._leaflet_pos = e,
|
|
1223
|
+
t._leaflet_pos = e, z.any3d ? Kt(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function Yt(t) {
|
|
1226
1226
|
return t._leaflet_pos || new A(0, 0);
|
|
1227
1227
|
}
|
|
1228
|
-
var
|
|
1228
|
+
var ye, be, gi;
|
|
1229
1229
|
if ("onselectstart" in document)
|
|
1230
|
-
|
|
1230
|
+
ye = function() {
|
|
1231
1231
|
B(window, "selectstart", dt);
|
|
1232
|
-
},
|
|
1232
|
+
}, be = function() {
|
|
1233
1233
|
q(window, "selectstart", dt);
|
|
1234
1234
|
};
|
|
1235
1235
|
else {
|
|
1236
|
-
var
|
|
1236
|
+
var we = Ne(
|
|
1237
1237
|
["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]
|
|
1238
1238
|
);
|
|
1239
|
-
|
|
1240
|
-
if (
|
|
1239
|
+
ye = function() {
|
|
1240
|
+
if (we) {
|
|
1241
1241
|
var t = document.documentElement.style;
|
|
1242
|
-
|
|
1242
|
+
gi = t[we], t[we] = "none";
|
|
1243
1243
|
}
|
|
1244
|
-
},
|
|
1245
|
-
|
|
1244
|
+
}, be = function() {
|
|
1245
|
+
we && (document.documentElement.style[we] = gi, gi = void 0);
|
|
1246
1246
|
};
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function vi() {
|
|
1249
1249
|
B(window, "dragstart", dt);
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function yi() {
|
|
1252
1252
|
q(window, "dragstart", dt);
|
|
1253
1253
|
}
|
|
1254
|
-
var
|
|
1255
|
-
function
|
|
1254
|
+
var De, bi;
|
|
1255
|
+
function wi(t) {
|
|
1256
1256
|
for (; t.tabIndex === -1; )
|
|
1257
1257
|
t = t.parentNode;
|
|
1258
|
-
t.style && (
|
|
1258
|
+
t.style && (Fe(), De = t, bi = t.style.outlineStyle, t.style.outlineStyle = "none", B(window, "keydown", Fe));
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1261
|
-
|
|
1260
|
+
function Fe() {
|
|
1261
|
+
De && (De.style.outlineStyle = bi, De = void 0, bi = void 0, q(window, "keydown", Fe));
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function Pn(t) {
|
|
1264
1264
|
do
|
|
1265
1265
|
t = t.parentNode;
|
|
1266
1266
|
while ((!t.offsetWidth || !t.offsetHeight) && t !== document.body);
|
|
1267
1267
|
return t;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function xi(t) {
|
|
1270
1270
|
var e = t.getBoundingClientRect();
|
|
1271
1271
|
return {
|
|
1272
1272
|
x: e.width / t.offsetWidth || 1,
|
|
@@ -1274,123 +1274,123 @@ function As() {
|
|
|
1274
1274
|
boundingClientRect: e
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
|
-
var
|
|
1277
|
+
var Or = {
|
|
1278
1278
|
__proto__: null,
|
|
1279
|
-
TRANSFORM:
|
|
1280
|
-
TRANSITION:
|
|
1281
|
-
TRANSITION_END:
|
|
1282
|
-
get:
|
|
1283
|
-
getStyle:
|
|
1279
|
+
TRANSFORM: mi,
|
|
1280
|
+
TRANSITION: ge,
|
|
1281
|
+
TRANSITION_END: wn,
|
|
1282
|
+
get: xn,
|
|
1283
|
+
getStyle: ve,
|
|
1284
1284
|
create: V,
|
|
1285
1285
|
remove: Q,
|
|
1286
1286
|
empty: Ze,
|
|
1287
|
-
toFront:
|
|
1288
|
-
toBack:
|
|
1289
|
-
hasClass:
|
|
1287
|
+
toFront: ae,
|
|
1288
|
+
toBack: le,
|
|
1289
|
+
hasClass: pi,
|
|
1290
1290
|
addClass: N,
|
|
1291
1291
|
removeClass: it,
|
|
1292
|
-
setClass:
|
|
1293
|
-
getClass:
|
|
1292
|
+
setClass: _i,
|
|
1293
|
+
getClass: Be,
|
|
1294
1294
|
setOpacity: bt,
|
|
1295
|
-
testProp:
|
|
1296
|
-
setTransform:
|
|
1295
|
+
testProp: Ne,
|
|
1296
|
+
setTransform: Kt,
|
|
1297
1297
|
setPosition: ot,
|
|
1298
|
-
getPosition:
|
|
1298
|
+
getPosition: Yt,
|
|
1299
1299
|
get disableTextSelection() {
|
|
1300
|
-
return ve;
|
|
1301
|
-
},
|
|
1302
|
-
get enableTextSelection() {
|
|
1303
1300
|
return ye;
|
|
1304
1301
|
},
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1302
|
+
get enableTextSelection() {
|
|
1303
|
+
return be;
|
|
1304
|
+
},
|
|
1305
|
+
disableImageDrag: vi,
|
|
1306
|
+
enableImageDrag: yi,
|
|
1307
|
+
preventOutline: wi,
|
|
1308
|
+
restoreOutline: Fe,
|
|
1309
|
+
getSizedParentNode: Pn,
|
|
1310
|
+
getScale: xi
|
|
1311
1311
|
};
|
|
1312
1312
|
function B(t, e, i, n) {
|
|
1313
1313
|
if (e && typeof e == "object")
|
|
1314
1314
|
for (var o in e)
|
|
1315
|
-
|
|
1315
|
+
Li(t, o, e[o], i);
|
|
1316
1316
|
else {
|
|
1317
1317
|
e = G(e);
|
|
1318
1318
|
for (var r = 0, c = e.length; r < c; r++)
|
|
1319
|
-
|
|
1319
|
+
Li(t, e[r], i, n);
|
|
1320
1320
|
}
|
|
1321
1321
|
return this;
|
|
1322
1322
|
}
|
|
1323
|
-
var
|
|
1323
|
+
var Et = "_leaflet_events";
|
|
1324
1324
|
function q(t, e, i, n) {
|
|
1325
1325
|
if (arguments.length === 1)
|
|
1326
|
-
|
|
1326
|
+
Ln(t), delete t[Et];
|
|
1327
1327
|
else if (e && typeof e == "object")
|
|
1328
1328
|
for (var o in e)
|
|
1329
|
-
|
|
1329
|
+
ki(t, o, e[o], i);
|
|
1330
1330
|
else if (e = G(e), arguments.length === 2)
|
|
1331
|
-
|
|
1331
|
+
Ln(t, function(d) {
|
|
1332
1332
|
return lt(e, d) !== -1;
|
|
1333
1333
|
});
|
|
1334
1334
|
else
|
|
1335
1335
|
for (var r = 0, c = e.length; r < c; r++)
|
|
1336
|
-
|
|
1336
|
+
ki(t, e[r], i, n);
|
|
1337
1337
|
return this;
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1340
|
-
for (var i in t[
|
|
1339
|
+
function Ln(t, e) {
|
|
1340
|
+
for (var i in t[Et]) {
|
|
1341
1341
|
var n = i.split(/\d/)[0];
|
|
1342
|
-
(!e || e(n)) &&
|
|
1342
|
+
(!e || e(n)) && ki(t, n, null, null, i);
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
var
|
|
1345
|
+
var Pi = {
|
|
1346
1346
|
mouseenter: "mouseover",
|
|
1347
1347
|
mouseleave: "mouseout",
|
|
1348
1348
|
wheel: !("onwheel" in window) && "mousewheel"
|
|
1349
1349
|
};
|
|
1350
|
-
function
|
|
1350
|
+
function Li(t, e, i, n) {
|
|
1351
1351
|
var o = e + v(i) + (n ? "_" + v(n) : "");
|
|
1352
|
-
if (t[
|
|
1352
|
+
if (t[Et] && t[Et][o])
|
|
1353
1353
|
return this;
|
|
1354
1354
|
var r = function(d) {
|
|
1355
1355
|
return i.call(n || t, d || window.event);
|
|
1356
1356
|
}, c = r;
|
|
1357
|
-
!
|
|
1358
|
-
d = d || window.event,
|
|
1359
|
-
}, t.addEventListener(
|
|
1357
|
+
!z.touchNative && z.pointer && e.indexOf("touch") === 0 ? r = wr(t, e, r) : z.touch && e === "dblclick" ? r = zr(t, r) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(Pi[e] || e, r, z.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (r = function(d) {
|
|
1358
|
+
d = d || window.event, Ci(t, d) && c(d);
|
|
1359
|
+
}, t.addEventListener(Pi[e], r, !1)) : t.addEventListener(e, c, !1) : t.attachEvent("on" + e, r), t[Et] = t[Et] || {}, t[Et][o] = r;
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function ki(t, e, i, n, o) {
|
|
1362
1362
|
o = o || e + v(i) + (n ? "_" + v(n) : "");
|
|
1363
|
-
var r = t[
|
|
1363
|
+
var r = t[Et] && t[Et][o];
|
|
1364
1364
|
if (!r)
|
|
1365
1365
|
return this;
|
|
1366
|
-
!
|
|
1366
|
+
!z.touchNative && z.pointer && e.indexOf("touch") === 0 ? xr(t, e, r) : z.touch && e === "dblclick" ? Mr(t, r) : "removeEventListener" in t ? t.removeEventListener(Pi[e] || e, r, !1) : t.detachEvent("on" + e, r), t[Et][o] = null;
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function Xt(t) {
|
|
1369
1369
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1372
|
-
return
|
|
1371
|
+
function Ti(t) {
|
|
1372
|
+
return Li(t, "wheel", Xt), this;
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1375
|
-
return B(t, "mousedown touchstart dblclick contextmenu",
|
|
1374
|
+
function xe(t) {
|
|
1375
|
+
return B(t, "mousedown touchstart dblclick contextmenu", Xt), t._leaflet_disable_click = !0, this;
|
|
1376
1376
|
}
|
|
1377
1377
|
function dt(t) {
|
|
1378
1378
|
return t.preventDefault ? t.preventDefault() : t.returnValue = !1, this;
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1381
|
-
return dt(t),
|
|
1380
|
+
function Jt(t) {
|
|
1381
|
+
return dt(t), Xt(t), this;
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function kn(t) {
|
|
1384
1384
|
if (t.composedPath)
|
|
1385
1385
|
return t.composedPath();
|
|
1386
1386
|
for (var e = [], i = t.target; i; )
|
|
1387
1387
|
e.push(i), i = i.parentNode;
|
|
1388
1388
|
return e;
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function Tn(t, e) {
|
|
1391
1391
|
if (!e)
|
|
1392
1392
|
return new A(t.clientX, t.clientY);
|
|
1393
|
-
var i =
|
|
1393
|
+
var i = xi(e), n = i.boundingClientRect;
|
|
1394
1394
|
return new A(
|
|
1395
1395
|
// offset.left/top values are in page scale (like clientX/Y),
|
|
1396
1396
|
// whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).
|
|
@@ -1398,11 +1398,11 @@ function As() {
|
|
|
1398
1398
|
(t.clientY - n.top) / i.y - e.clientTop
|
|
1399
1399
|
);
|
|
1400
1400
|
}
|
|
1401
|
-
var
|
|
1402
|
-
function
|
|
1403
|
-
return
|
|
1401
|
+
var Ar = z.linux && z.chrome ? window.devicePixelRatio : z.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
|
|
1402
|
+
function Cn(t) {
|
|
1403
|
+
return z.edge ? t.wheelDeltaY / 2 : (
|
|
1404
1404
|
// Don't trust window-geometry-based delta
|
|
1405
|
-
t.deltaY && t.deltaMode === 0 ? -t.deltaY /
|
|
1405
|
+
t.deltaY && t.deltaMode === 0 ? -t.deltaY / Ar : (
|
|
1406
1406
|
// Pixels
|
|
1407
1407
|
t.deltaY && t.deltaMode === 1 ? -t.deltaY * 20 : (
|
|
1408
1408
|
// Lines
|
|
@@ -1426,7 +1426,7 @@ function As() {
|
|
|
1426
1426
|
)
|
|
1427
1427
|
);
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function Ci(t, e) {
|
|
1430
1430
|
var i = e.relatedTarget;
|
|
1431
1431
|
if (!i)
|
|
1432
1432
|
return !0;
|
|
@@ -1438,29 +1438,29 @@ function As() {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
return i !== t;
|
|
1440
1440
|
}
|
|
1441
|
-
var
|
|
1441
|
+
var Ir = {
|
|
1442
1442
|
__proto__: null,
|
|
1443
1443
|
on: B,
|
|
1444
1444
|
off: q,
|
|
1445
|
-
stopPropagation:
|
|
1446
|
-
disableScrollPropagation:
|
|
1447
|
-
disableClickPropagation:
|
|
1445
|
+
stopPropagation: Xt,
|
|
1446
|
+
disableScrollPropagation: Ti,
|
|
1447
|
+
disableClickPropagation: xe,
|
|
1448
1448
|
preventDefault: dt,
|
|
1449
|
-
stop:
|
|
1450
|
-
getPropagationPath:
|
|
1451
|
-
getMousePosition:
|
|
1452
|
-
getWheelDelta:
|
|
1453
|
-
isExternalTarget:
|
|
1449
|
+
stop: Jt,
|
|
1450
|
+
getPropagationPath: kn,
|
|
1451
|
+
getMousePosition: Tn,
|
|
1452
|
+
getWheelDelta: Cn,
|
|
1453
|
+
isExternalTarget: Ci,
|
|
1454
1454
|
addListener: B,
|
|
1455
1455
|
removeListener: q
|
|
1456
|
-
},
|
|
1456
|
+
}, Sn = yt.extend({
|
|
1457
1457
|
// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
|
|
1458
1458
|
// Run an animation of a given element to a new position, optionally setting
|
|
1459
1459
|
// duration in seconds (`0.25` by default) and easing linearity factor (3rd
|
|
1460
1460
|
// argument of the [cubic bezier curve](https://cubic-bezier.com/#0,0,.5,1),
|
|
1461
1461
|
// `0.5` by default).
|
|
1462
1462
|
run: function(t, e, i, n) {
|
|
1463
|
-
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos =
|
|
1463
|
+
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos = Yt(t), this._offset = e.subtract(this._startPos), this._startTime = +/* @__PURE__ */ new Date(), this.fire("start"), this._animate();
|
|
1464
1464
|
},
|
|
1465
1465
|
// @method stop()
|
|
1466
1466
|
// Stops the animation (if currently running).
|
|
@@ -1490,7 +1490,7 @@ function As() {
|
|
|
1490
1490
|
// @option crs: CRS = L.CRS.EPSG3857
|
|
1491
1491
|
// The [Coordinate Reference System](#crs) to use. Don't change this if you're not
|
|
1492
1492
|
// sure what it means.
|
|
1493
|
-
crs:
|
|
1493
|
+
crs: qt,
|
|
1494
1494
|
// @option center: LatLng = undefined
|
|
1495
1495
|
// Initial geographic center of the map
|
|
1496
1496
|
center: void 0,
|
|
@@ -1562,7 +1562,7 @@ function As() {
|
|
|
1562
1562
|
trackResize: !0
|
|
1563
1563
|
},
|
|
1564
1564
|
initialize: function(t, e) {
|
|
1565
|
-
e =
|
|
1565
|
+
e = S(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = m(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView(M(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = ge && z.any3d && !z.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), B(this._proxy, wn, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
|
1566
1566
|
},
|
|
1567
1567
|
// @section Methods for modifying map state
|
|
1568
1568
|
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
|
|
@@ -1585,12 +1585,12 @@ function As() {
|
|
|
1585
1585
|
// @method zoomIn(delta?: Number, options?: Zoom options): this
|
|
1586
1586
|
// Increases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
|
|
1587
1587
|
zoomIn: function(t, e) {
|
|
1588
|
-
return t = t || (
|
|
1588
|
+
return t = t || (z.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom + t, e);
|
|
1589
1589
|
},
|
|
1590
1590
|
// @method zoomOut(delta?: Number, options?: Zoom options): this
|
|
1591
1591
|
// Decreases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
|
|
1592
1592
|
zoomOut: function(t, e) {
|
|
1593
|
-
return t = t || (
|
|
1593
|
+
return t = t || (z.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom - t, e);
|
|
1594
1594
|
},
|
|
1595
1595
|
// @method setZoomAround(latlng: LatLng, zoom: Number, options: Zoom options): this
|
|
1596
1596
|
// Zooms the map while keeping a specified geographical point on the map
|
|
@@ -1643,7 +1643,7 @@ function As() {
|
|
|
1643
1643
|
return this.fire("moveend");
|
|
1644
1644
|
if (e.animate !== !0 && !this.getSize().contains(t))
|
|
1645
1645
|
return this._resetView(this.unproject(this.project(this.getCenter()).add(t)), this.getZoom()), this;
|
|
1646
|
-
if (this._panAnim || (this._panAnim = new
|
|
1646
|
+
if (this._panAnim || (this._panAnim = new Sn(), this._panAnim.on({
|
|
1647
1647
|
step: this._onPanTransitionStep,
|
|
1648
1648
|
end: this._onPanTransitionEnd
|
|
1649
1649
|
}, this)), e.noMoveStart || this.fire("movestart"), e.animate !== !1) {
|
|
@@ -1658,15 +1658,15 @@ function As() {
|
|
|
1658
1658
|
// Sets the view of the map (geographical center and zoom) performing a smooth
|
|
1659
1659
|
// pan-zoom animation.
|
|
1660
1660
|
flyTo: function(t, e, i) {
|
|
1661
|
-
if (i = i || {}, i.animate === !1 || !
|
|
1661
|
+
if (i = i || {}, i.animate === !1 || !z.any3d)
|
|
1662
1662
|
return this.setView(t, e, i);
|
|
1663
1663
|
this._stop();
|
|
1664
1664
|
var n = this.project(this.getCenter()), o = this.project(t), r = this.getSize(), c = this._zoom;
|
|
1665
1665
|
t = M(t), e = e === void 0 ? c : e;
|
|
1666
1666
|
var d = Math.max(r.x, r.y), f = d * this.getZoomScale(c, e), _ = o.distanceTo(n) || 1, x = 1.42, E = x * x;
|
|
1667
1667
|
function H(rt) {
|
|
1668
|
-
var
|
|
1669
|
-
return
|
|
1668
|
+
var Je = rt ? -1 : 1, xs = rt ? f : d, Ps = f * f - d * d + Je * E * E * _ * _, Ls = 2 * xs * E * _, Ni = Ps / Ls, lo = Math.sqrt(Ni * Ni + 1) - Ni, ks = lo < 1e-9 ? -18 : Math.log(lo);
|
|
1669
|
+
return ks;
|
|
1670
1670
|
}
|
|
1671
1671
|
function pt(rt) {
|
|
1672
1672
|
return (Math.exp(rt) - Math.exp(-rt)) / 2;
|
|
@@ -1678,25 +1678,25 @@ function As() {
|
|
|
1678
1678
|
return pt(rt) / at(rt);
|
|
1679
1679
|
}
|
|
1680
1680
|
var gt = H(0);
|
|
1681
|
-
function
|
|
1681
|
+
function me(rt) {
|
|
1682
1682
|
return d * (at(gt) / at(gt + x * rt));
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function vs(rt) {
|
|
1685
1685
|
return d * (at(gt) * xt(gt + x * rt) - pt(gt)) / E;
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function ys(rt) {
|
|
1688
1688
|
return 1 - Math.pow(1 - rt, 1.5);
|
|
1689
1689
|
}
|
|
1690
|
-
var
|
|
1691
|
-
function
|
|
1692
|
-
var rt = (Date.now() -
|
|
1693
|
-
rt <= 1 ? (this._flyToFrame = tt(
|
|
1694
|
-
this.unproject(n.add(o.subtract(n).multiplyBy(
|
|
1695
|
-
this.getScaleZoom(d /
|
|
1690
|
+
var bs = Date.now(), so = (H(1) - gt) / x, ws = i.duration ? 1e3 * i.duration : 1e3 * so * 0.8;
|
|
1691
|
+
function ao() {
|
|
1692
|
+
var rt = (Date.now() - bs) / ws, Je = ys(rt) * so;
|
|
1693
|
+
rt <= 1 ? (this._flyToFrame = tt(ao, this), this._move(
|
|
1694
|
+
this.unproject(n.add(o.subtract(n).multiplyBy(vs(Je) / _)), c),
|
|
1695
|
+
this.getScaleZoom(d / me(Je), c),
|
|
1696
1696
|
{ flyTo: !0 }
|
|
1697
1697
|
)) : this._move(t, e)._moveEnd(!0);
|
|
1698
1698
|
}
|
|
1699
|
-
return this._moveStart(!0, i.noMoveStart),
|
|
1699
|
+
return this._moveStart(!0, i.noMoveStart), ao.call(this), this;
|
|
1700
1700
|
},
|
|
1701
1701
|
// @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this
|
|
1702
1702
|
// Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),
|
|
@@ -1906,7 +1906,7 @@ function As() {
|
|
|
1906
1906
|
// the given bounds in its entirety.
|
|
1907
1907
|
getBoundsZoom: function(t, e, i) {
|
|
1908
1908
|
t = J(t), i = y(i || [0, 0]);
|
|
1909
|
-
var n = this.getZoom() || 0, o = this.getMinZoom(), r = this.getMaxZoom(), c = t.getNorthWest(), d = t.getSouthEast(), f = this.getSize().subtract(i), _ = ct(this.project(d, n), this.project(c, n)).getSize(), x =
|
|
1909
|
+
var n = this.getZoom() || 0, o = this.getMinZoom(), r = this.getMaxZoom(), c = t.getNorthWest(), d = t.getSouthEast(), f = this.getSize().subtract(i), _ = ct(this.project(d, n), this.project(c, n)).getSize(), x = z.any3d ? this.options.zoomSnap : 1, E = f.x / _.x, H = f.y / _.y, pt = e ? Math.max(E, H) : Math.min(E, H);
|
|
1910
1910
|
return n = this.getScaleZoom(pt, n), x && (n = Math.round(n / (x / 100)) * (x / 100), n = e ? Math.ceil(n / x) * x : Math.floor(n / x) * x), Math.max(o, Math.min(r, n));
|
|
1911
1911
|
},
|
|
1912
1912
|
// @method getSize(): Point
|
|
@@ -2054,7 +2054,7 @@ function As() {
|
|
|
2054
2054
|
// Given a MouseEvent object, returns the pixel coordinate relative to the
|
|
2055
2055
|
// map container where the event took place.
|
|
2056
2056
|
mouseEventToContainerPoint: function(t) {
|
|
2057
|
-
return
|
|
2057
|
+
return Tn(t, this._container);
|
|
2058
2058
|
},
|
|
2059
2059
|
// @method mouseEventToLayerPoint(ev: MouseEvent): Point
|
|
2060
2060
|
// Given a MouseEvent object, returns the pixel coordinate relative to
|
|
@@ -2070,7 +2070,7 @@ function As() {
|
|
|
2070
2070
|
},
|
|
2071
2071
|
// map initialization methods
|
|
2072
2072
|
_initContainer: function(t) {
|
|
2073
|
-
var e = this._container =
|
|
2073
|
+
var e = this._container = xn(t);
|
|
2074
2074
|
if (e) {
|
|
2075
2075
|
if (e._leaflet_id)
|
|
2076
2076
|
throw new Error("Map container is already initialized.");
|
|
@@ -2079,8 +2079,8 @@ function As() {
|
|
|
2079
2079
|
},
|
|
2080
2080
|
_initLayout: function() {
|
|
2081
2081
|
var t = this._container;
|
|
2082
|
-
this._fadeAnimated = this.options.fadeAnimation &&
|
|
2083
|
-
var e =
|
|
2082
|
+
this._fadeAnimated = this.options.fadeAnimation && z.any3d, N(t, "leaflet-container" + (z.touch ? " leaflet-touch" : "") + (z.retina ? " leaflet-retina" : "") + (z.ielt9 ? " leaflet-oldie" : "") + (z.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
|
|
2083
|
+
var e = ve(t, "position");
|
|
2084
2084
|
e !== "absolute" && e !== "relative" && e !== "fixed" && e !== "sticky" && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
|
|
2085
2085
|
},
|
|
2086
2086
|
_initPanes: function() {
|
|
@@ -2128,7 +2128,7 @@ function As() {
|
|
|
2128
2128
|
_initEvents: function(t) {
|
|
2129
2129
|
this._targets = {}, this._targets[v(this._container)] = this;
|
|
2130
2130
|
var e = t ? q : B;
|
|
2131
|
-
e(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && e(window, "resize", this._onResize, this),
|
|
2131
|
+
e(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && e(window, "resize", this._onResize, this), z.any3d && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
|
|
2132
2132
|
},
|
|
2133
2133
|
_onResize: function() {
|
|
2134
2134
|
ht(this._resizeRequest), this._resizeRequest = tt(
|
|
@@ -2151,7 +2151,7 @@ function As() {
|
|
|
2151
2151
|
c = !0;
|
|
2152
2152
|
break;
|
|
2153
2153
|
}
|
|
2154
|
-
if (n && n.listens(e, !0) && (o && !
|
|
2154
|
+
if (n && n.listens(e, !0) && (o && !Ci(r, t) || (i.push(n), o)) || r === this._container)
|
|
2155
2155
|
break;
|
|
2156
2156
|
r = r.parentNode;
|
|
2157
2157
|
}
|
|
@@ -2168,7 +2168,7 @@ function As() {
|
|
|
2168
2168
|
var e = t.target || t.srcElement;
|
|
2169
2169
|
if (!(!this._loaded || e._leaflet_disable_events || t.type === "click" && this._isClickDisabled(e))) {
|
|
2170
2170
|
var i = t.type;
|
|
2171
|
-
i === "mousedown" &&
|
|
2171
|
+
i === "mousedown" && wi(e), this._fireDOMEvent(t, i);
|
|
2172
2172
|
}
|
|
2173
2173
|
},
|
|
2174
2174
|
_mouseEvents: ["click", "dblclick", "mouseover", "mouseout", "contextmenu"],
|
|
@@ -2214,7 +2214,7 @@ function As() {
|
|
|
2214
2214
|
},
|
|
2215
2215
|
// private methods for getting map state
|
|
2216
2216
|
_getMapPanePos: function() {
|
|
2217
|
-
return
|
|
2217
|
+
return Yt(this._mapPane) || new A(0, 0);
|
|
2218
2218
|
},
|
|
2219
2219
|
_moved: function() {
|
|
2220
2220
|
var t = this._getMapPanePos();
|
|
@@ -2275,7 +2275,7 @@ function As() {
|
|
|
2275
2275
|
return t + e > 0 ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e));
|
|
2276
2276
|
},
|
|
2277
2277
|
_limitZoom: function(t) {
|
|
2278
|
-
var e = this.getMinZoom(), i = this.getMaxZoom(), n =
|
|
2278
|
+
var e = this.getMinZoom(), i = this.getMaxZoom(), n = z.any3d ? this.options.zoomSnap : 1;
|
|
2279
2279
|
return n && (t = Math.round(t / n) * n), Math.max(e, Math.min(i, t));
|
|
2280
2280
|
},
|
|
2281
2281
|
_onPanTransitionStep: function() {
|
|
@@ -2291,8 +2291,8 @@ function As() {
|
|
|
2291
2291
|
_createAnimProxy: function() {
|
|
2292
2292
|
var t = this._proxy = V("div", "leaflet-proxy leaflet-zoom-animated");
|
|
2293
2293
|
this._panes.mapPane.appendChild(t), this.on("zoomanim", function(e) {
|
|
2294
|
-
var i =
|
|
2295
|
-
|
|
2294
|
+
var i = mi, n = this._proxy.style[i];
|
|
2295
|
+
Kt(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), n === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
|
|
2296
2296
|
}, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
|
|
2297
2297
|
},
|
|
2298
2298
|
_destroyAnimProxy: function() {
|
|
@@ -2300,7 +2300,7 @@ function As() {
|
|
|
2300
2300
|
},
|
|
2301
2301
|
_animMoveEnd: function() {
|
|
2302
2302
|
var t = this.getCenter(), e = this.getZoom();
|
|
2303
|
-
|
|
2303
|
+
Kt(this._proxy, this.project(t, e), this.getZoomScale(e, 1));
|
|
2304
2304
|
},
|
|
2305
2305
|
_catchTransitionEnd: function(t) {
|
|
2306
2306
|
this._animatingZoom && t.propertyName.indexOf("transform") >= 0 && this._onZoomTransitionEnd();
|
|
@@ -2329,7 +2329,7 @@ function As() {
|
|
|
2329
2329
|
this._animatingZoom && (this._mapPane && it(this._mapPane, "leaflet-zoom-anim"), this._animatingZoom = !1, this._move(this._animateToCenter, this._animateToZoom, void 0, !0), this._tempFireZoomEvent && this.fire("zoom"), delete this._tempFireZoomEvent, this.fire("move"), this._moveEnd(!0));
|
|
2330
2330
|
}
|
|
2331
2331
|
});
|
|
2332
|
-
function
|
|
2332
|
+
function Rr(t, e) {
|
|
2333
2333
|
return new j(t, e);
|
|
2334
2334
|
}
|
|
2335
2335
|
var kt = vt.extend({
|
|
@@ -2342,7 +2342,7 @@ function As() {
|
|
|
2342
2342
|
position: "topright"
|
|
2343
2343
|
},
|
|
2344
2344
|
initialize: function(t) {
|
|
2345
|
-
|
|
2345
|
+
S(this, t);
|
|
2346
2346
|
},
|
|
2347
2347
|
/* @section
|
|
2348
2348
|
* Classes extending L.Control will inherit the following methods:
|
|
@@ -2379,7 +2379,7 @@ function As() {
|
|
|
2379
2379
|
_refocusOnMap: function(t) {
|
|
2380
2380
|
this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
|
|
2381
2381
|
}
|
|
2382
|
-
}),
|
|
2382
|
+
}), Pe = function(t) {
|
|
2383
2383
|
return new kt(t);
|
|
2384
2384
|
};
|
|
2385
2385
|
j.include({
|
|
@@ -2407,7 +2407,7 @@ function As() {
|
|
|
2407
2407
|
Q(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
|
2408
2408
|
}
|
|
2409
2409
|
});
|
|
2410
|
-
var
|
|
2410
|
+
var zn = kt.extend({
|
|
2411
2411
|
// @section
|
|
2412
2412
|
// @aka Control.Layers options
|
|
2413
2413
|
options: {
|
|
@@ -2436,7 +2436,7 @@ function As() {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
},
|
|
2438
2438
|
initialize: function(t, e, i) {
|
|
2439
|
-
|
|
2439
|
+
S(this, i), this._layerControlInputs = [], this._layers = [], this._lastZIndex = 0, this._handlingClick = !1, this._preventClick = !1;
|
|
2440
2440
|
for (var n in t)
|
|
2441
2441
|
this._addLayer(t[n], n);
|
|
2442
2442
|
for (n in e)
|
|
@@ -2487,7 +2487,7 @@ function As() {
|
|
|
2487
2487
|
},
|
|
2488
2488
|
_initLayout: function() {
|
|
2489
2489
|
var t = "leaflet-control-layers", e = this._container = V("div", t), i = this.options.collapsed;
|
|
2490
|
-
e.setAttribute("aria-haspopup", !0),
|
|
2490
|
+
e.setAttribute("aria-haspopup", !0), xe(e), Ti(e);
|
|
2491
2491
|
var n = this._section = V("section", t + "-list");
|
|
2492
2492
|
i && (this._map.on("click", this.collapse, this), B(e, {
|
|
2493
2493
|
mouseenter: this._expandSafely,
|
|
@@ -2575,9 +2575,9 @@ function As() {
|
|
|
2575
2575
|
q(t, "click", dt), e._preventClick = !1;
|
|
2576
2576
|
});
|
|
2577
2577
|
}
|
|
2578
|
-
}),
|
|
2579
|
-
return new
|
|
2580
|
-
},
|
|
2578
|
+
}), Zr = function(t, e, i) {
|
|
2579
|
+
return new zn(t, e, i);
|
|
2580
|
+
}, Si = kt.extend({
|
|
2581
2581
|
// @section
|
|
2582
2582
|
// @aka Control.Zoom options
|
|
2583
2583
|
options: {
|
|
@@ -2628,7 +2628,7 @@ function As() {
|
|
|
2628
2628
|
},
|
|
2629
2629
|
_createButton: function(t, e, i, n, o) {
|
|
2630
2630
|
var r = V("a", i, n);
|
|
2631
|
-
return r.innerHTML = t, r.href = "#", r.title = e, r.setAttribute("role", "button"), r.setAttribute("aria-label", e),
|
|
2631
|
+
return r.innerHTML = t, r.href = "#", r.title = e, r.setAttribute("role", "button"), r.setAttribute("aria-label", e), xe(r), B(r, "click", Jt), B(r, "click", o, this), B(r, "click", this._refocusOnMap, this), r;
|
|
2632
2632
|
},
|
|
2633
2633
|
_updateDisabled: function() {
|
|
2634
2634
|
var t = this._map, e = "leaflet-disabled";
|
|
@@ -2638,11 +2638,11 @@ function As() {
|
|
|
2638
2638
|
j.mergeOptions({
|
|
2639
2639
|
zoomControl: !0
|
|
2640
2640
|
}), j.addInitHook(function() {
|
|
2641
|
-
this.options.zoomControl && (this.zoomControl = new
|
|
2641
|
+
this.options.zoomControl && (this.zoomControl = new Si(), this.addControl(this.zoomControl));
|
|
2642
2642
|
});
|
|
2643
|
-
var
|
|
2644
|
-
return new
|
|
2645
|
-
},
|
|
2643
|
+
var Br = function(t) {
|
|
2644
|
+
return new Si(t);
|
|
2645
|
+
}, Mn = kt.extend({
|
|
2646
2646
|
// @section
|
|
2647
2647
|
// @aka Control.Scale options
|
|
2648
2648
|
options: {
|
|
@@ -2694,22 +2694,22 @@ function As() {
|
|
|
2694
2694
|
var e = Math.pow(10, (Math.floor(t) + "").length - 1), i = t / e;
|
|
2695
2695
|
return i = i >= 10 ? 10 : i >= 5 ? 5 : i >= 3 ? 3 : i >= 2 ? 2 : 1, e * i;
|
|
2696
2696
|
}
|
|
2697
|
-
}),
|
|
2698
|
-
return new
|
|
2699
|
-
},
|
|
2697
|
+
}), Nr = function(t) {
|
|
2698
|
+
return new Mn(t);
|
|
2699
|
+
}, Dr = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>', zi = kt.extend({
|
|
2700
2700
|
// @section
|
|
2701
2701
|
// @aka Control.Attribution options
|
|
2702
2702
|
options: {
|
|
2703
2703
|
position: "bottomright",
|
|
2704
2704
|
// @option prefix: String|false = 'Leaflet'
|
|
2705
2705
|
// The HTML text shown before the attributions. Pass `false` to disable.
|
|
2706
|
-
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (
|
|
2706
|
+
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (z.inlineSvg ? Dr + " " : "") + "Leaflet</a>"
|
|
2707
2707
|
},
|
|
2708
2708
|
initialize: function(t) {
|
|
2709
|
-
|
|
2709
|
+
S(this, t), this._attributions = {};
|
|
2710
2710
|
},
|
|
2711
2711
|
onAdd: function(t) {
|
|
2712
|
-
t.attributionControl = this, this._container = V("div", "leaflet-control-attribution"),
|
|
2712
|
+
t.attributionControl = this, this._container = V("div", "leaflet-control-attribution"), xe(this._container);
|
|
2713
2713
|
for (var e in t._layers)
|
|
2714
2714
|
t._layers[e].getAttribution && this.addAttribution(t._layers[e].getAttribution());
|
|
2715
2715
|
return this._update(), t.on("layeradd", this._addAttribution, this), this._container;
|
|
@@ -2752,11 +2752,11 @@ function As() {
|
|
|
2752
2752
|
}), j.addInitHook(function() {
|
|
2753
2753
|
this.options.attributionControl && new zi().addTo(this);
|
|
2754
2754
|
});
|
|
2755
|
-
var
|
|
2755
|
+
var Fr = function(t) {
|
|
2756
2756
|
return new zi(t);
|
|
2757
2757
|
};
|
|
2758
|
-
kt.Layers =
|
|
2759
|
-
var
|
|
2758
|
+
kt.Layers = zn, kt.Zoom = Si, kt.Scale = Mn, kt.Attribution = zi, Pe.layers = Zr, Pe.zoom = Br, Pe.scale = Nr, Pe.attribution = Fr;
|
|
2759
|
+
var Ot = vt.extend({
|
|
2760
2760
|
initialize: function(t) {
|
|
2761
2761
|
this._map = t;
|
|
2762
2762
|
},
|
|
@@ -2782,10 +2782,10 @@ function As() {
|
|
|
2782
2782
|
// @method removeHooks()
|
|
2783
2783
|
// Called when the handler is disabled, should remove the event hooks added previously.
|
|
2784
2784
|
});
|
|
2785
|
-
|
|
2785
|
+
Ot.addTo = function(t, e) {
|
|
2786
2786
|
return t.addHandler(e, this), this;
|
|
2787
2787
|
};
|
|
2788
|
-
var
|
|
2788
|
+
var Wr = { Events: K }, En = z.touch ? "touchstart mousedown" : "mousedown", Ht = yt.extend({
|
|
2789
2789
|
options: {
|
|
2790
2790
|
// @section
|
|
2791
2791
|
// @aka Draggable options
|
|
@@ -2797,28 +2797,28 @@ function As() {
|
|
|
2797
2797
|
// @constructor L.Draggable(el: HTMLElement, dragHandle?: HTMLElement, preventOutline?: Boolean, options?: Draggable options)
|
|
2798
2798
|
// Creates a `Draggable` object for moving `el` when you start dragging the `dragHandle` element (equals `el` itself by default).
|
|
2799
2799
|
initialize: function(t, e, i, n) {
|
|
2800
|
-
|
|
2800
|
+
S(this, n), this._element = t, this._dragStartTarget = e || t, this._preventOutline = i;
|
|
2801
2801
|
},
|
|
2802
2802
|
// @method enable()
|
|
2803
2803
|
// Enables the dragging ability
|
|
2804
2804
|
enable: function() {
|
|
2805
|
-
this._enabled || (B(this._dragStartTarget,
|
|
2805
|
+
this._enabled || (B(this._dragStartTarget, En, this._onDown, this), this._enabled = !0);
|
|
2806
2806
|
},
|
|
2807
2807
|
// @method disable()
|
|
2808
2808
|
// Disables the dragging ability
|
|
2809
2809
|
disable: function() {
|
|
2810
|
-
this._enabled && (
|
|
2810
|
+
this._enabled && (Ht._dragging === this && this.finishDrag(!0), q(this._dragStartTarget, En, this._onDown, this), this._enabled = !1, this._moved = !1);
|
|
2811
2811
|
},
|
|
2812
2812
|
_onDown: function(t) {
|
|
2813
|
-
if (this._enabled && (this._moved = !1, !
|
|
2813
|
+
if (this._enabled && (this._moved = !1, !pi(this._element, "leaflet-zoom-anim"))) {
|
|
2814
2814
|
if (t.touches && t.touches.length !== 1) {
|
|
2815
|
-
|
|
2815
|
+
Ht._dragging === this && this.finishDrag();
|
|
2816
2816
|
return;
|
|
2817
2817
|
}
|
|
2818
|
-
if (!(
|
|
2818
|
+
if (!(Ht._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (Ht._dragging = this, this._preventOutline && wi(this._element), vi(), ye(), !this._moving)) {
|
|
2819
2819
|
this.fire("down");
|
|
2820
|
-
var e = t.touches ? t.touches[0] : t, i =
|
|
2821
|
-
this._startPoint = new A(e.clientX, e.clientY), this._startPos =
|
|
2820
|
+
var e = t.touches ? t.touches[0] : t, i = Pn(this._element);
|
|
2821
|
+
this._startPoint = new A(e.clientX, e.clientY), this._startPos = Yt(this._element), this._parentScale = xi(i);
|
|
2822
2822
|
var n = t.type === "mousedown";
|
|
2823
2823
|
B(document, n ? "mousemove" : "touchmove", this._onMove, this), B(document, n ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
|
2824
2824
|
}
|
|
@@ -2842,32 +2842,32 @@ function As() {
|
|
|
2842
2842
|
this._enabled && this.finishDrag();
|
|
2843
2843
|
},
|
|
2844
2844
|
finishDrag: function(t) {
|
|
2845
|
-
it(document.body, "leaflet-dragging"), this._lastTarget && (it(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), q(document, "mousemove touchmove", this._onMove, this), q(document, "mouseup touchend touchcancel", this._onUp, this),
|
|
2845
|
+
it(document.body, "leaflet-dragging"), this._lastTarget && (it(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), q(document, "mousemove touchmove", this._onMove, this), q(document, "mouseup touchend touchcancel", this._onUp, this), yi(), be();
|
|
2846
2846
|
var e = this._moved && this._moving;
|
|
2847
|
-
this._moving = !1,
|
|
2847
|
+
this._moving = !1, Ht._dragging = !1, e && this.fire("dragend", {
|
|
2848
2848
|
noInertia: t,
|
|
2849
2849
|
distance: this._newPos.distanceTo(this._startPos)
|
|
2850
2850
|
});
|
|
2851
2851
|
}
|
|
2852
2852
|
});
|
|
2853
|
-
function
|
|
2853
|
+
function On(t, e, i) {
|
|
2854
2854
|
var n, o = [1, 4, 2, 8], r, c, d, f, _, x, E, H;
|
|
2855
2855
|
for (r = 0, x = t.length; r < x; r++)
|
|
2856
|
-
t[r]._code =
|
|
2856
|
+
t[r]._code = Qt(t[r], e);
|
|
2857
2857
|
for (d = 0; d < 4; d++) {
|
|
2858
2858
|
for (E = o[d], n = [], r = 0, x = t.length, c = x - 1; r < x; c = r++)
|
|
2859
|
-
f = t[r], _ = t[c], f._code & E ? _._code & E || (H =
|
|
2859
|
+
f = t[r], _ = t[c], f._code & E ? _._code & E || (H = We(_, f, E, e, i), H._code = Qt(H, e), n.push(H)) : (_._code & E && (H = We(_, f, E, e, i), H._code = Qt(H, e), n.push(H)), n.push(f));
|
|
2860
2860
|
t = n;
|
|
2861
2861
|
}
|
|
2862
2862
|
return t;
|
|
2863
2863
|
}
|
|
2864
|
-
function
|
|
2864
|
+
function An(t, e) {
|
|
2865
2865
|
var i, n, o, r, c, d, f, _, x;
|
|
2866
2866
|
if (!t || t.length === 0)
|
|
2867
2867
|
throw new Error("latlngs not passed");
|
|
2868
2868
|
wt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
2869
2869
|
var E = M([0, 0]), H = J(t), pt = H.getNorthWest().distanceTo(H.getSouthWest()) * H.getNorthEast().distanceTo(H.getNorthWest());
|
|
2870
|
-
pt < 1700 && (E =
|
|
2870
|
+
pt < 1700 && (E = Mi(t));
|
|
2871
2871
|
var at = t.length, xt = [];
|
|
2872
2872
|
for (i = 0; i < at; i++) {
|
|
2873
2873
|
var gt = M(t[i]);
|
|
@@ -2876,93 +2876,93 @@ function As() {
|
|
|
2876
2876
|
for (d = f = _ = 0, i = 0, n = at - 1; i < at; n = i++)
|
|
2877
2877
|
o = xt[i], r = xt[n], c = o.y * r.x - r.y * o.x, f += (o.x + r.x) * c, _ += (o.y + r.y) * c, d += c * 3;
|
|
2878
2878
|
d === 0 ? x = xt[0] : x = [f / d, _ / d];
|
|
2879
|
-
var
|
|
2880
|
-
return M([
|
|
2879
|
+
var me = e.unproject(y(x));
|
|
2880
|
+
return M([me.lat + E.lat, me.lng + E.lng]);
|
|
2881
2881
|
}
|
|
2882
|
-
function
|
|
2882
|
+
function Mi(t) {
|
|
2883
2883
|
for (var e = 0, i = 0, n = 0, o = 0; o < t.length; o++) {
|
|
2884
2884
|
var r = M(t[o]);
|
|
2885
2885
|
e += r.lat, i += r.lng, n++;
|
|
2886
2886
|
}
|
|
2887
2887
|
return M([e / n, i / n]);
|
|
2888
2888
|
}
|
|
2889
|
-
var
|
|
2889
|
+
var Hr = {
|
|
2890
2890
|
__proto__: null,
|
|
2891
|
-
clipPolygon:
|
|
2892
|
-
polygonCenter:
|
|
2893
|
-
centroid:
|
|
2891
|
+
clipPolygon: On,
|
|
2892
|
+
polygonCenter: An,
|
|
2893
|
+
centroid: Mi
|
|
2894
2894
|
};
|
|
2895
|
-
function
|
|
2895
|
+
function In(t, e) {
|
|
2896
2896
|
if (!e || !t.length)
|
|
2897
2897
|
return t.slice();
|
|
2898
2898
|
var i = e * e;
|
|
2899
|
-
return t =
|
|
2899
|
+
return t = Vr(t, i), t = Gr(t, i), t;
|
|
2900
2900
|
}
|
|
2901
|
-
function
|
|
2902
|
-
return Math.sqrt(
|
|
2901
|
+
function Rn(t, e, i) {
|
|
2902
|
+
return Math.sqrt(Le(t, e, i, !0));
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2905
|
-
return
|
|
2904
|
+
function jr(t, e, i) {
|
|
2905
|
+
return Le(t, e, i);
|
|
2906
2906
|
}
|
|
2907
|
-
function
|
|
2907
|
+
function Gr(t, e) {
|
|
2908
2908
|
var i = t.length, n = typeof Uint8Array < "u" ? Uint8Array : Array, o = new n(i);
|
|
2909
|
-
o[0] = o[i - 1] = 1,
|
|
2909
|
+
o[0] = o[i - 1] = 1, Ei(t, o, e, 0, i - 1);
|
|
2910
2910
|
var r, c = [];
|
|
2911
2911
|
for (r = 0; r < i; r++)
|
|
2912
2912
|
o[r] && c.push(t[r]);
|
|
2913
2913
|
return c;
|
|
2914
2914
|
}
|
|
2915
|
-
function
|
|
2915
|
+
function Ei(t, e, i, n, o) {
|
|
2916
2916
|
var r = 0, c, d, f;
|
|
2917
2917
|
for (d = n + 1; d <= o - 1; d++)
|
|
2918
|
-
f =
|
|
2919
|
-
r > i && (e[c] = 1,
|
|
2918
|
+
f = Le(t[d], t[n], t[o], !0), f > r && (c = d, r = f);
|
|
2919
|
+
r > i && (e[c] = 1, Ei(t, e, i, n, c), Ei(t, e, i, c, o));
|
|
2920
2920
|
}
|
|
2921
|
-
function
|
|
2921
|
+
function Vr(t, e) {
|
|
2922
2922
|
for (var i = [t[0]], n = 1, o = 0, r = t.length; n < r; n++)
|
|
2923
|
-
|
|
2923
|
+
Ur(t[n], t[o]) > e && (i.push(t[n]), o = n);
|
|
2924
2924
|
return o < r - 1 && i.push(t[r - 1]), i;
|
|
2925
2925
|
}
|
|
2926
|
-
var
|
|
2927
|
-
function
|
|
2928
|
-
var r = n ?
|
|
2929
|
-
for (
|
|
2926
|
+
var Zn;
|
|
2927
|
+
function Bn(t, e, i, n, o) {
|
|
2928
|
+
var r = n ? Zn : Qt(t, i), c = Qt(e, i), d, f, _;
|
|
2929
|
+
for (Zn = c; ; ) {
|
|
2930
2930
|
if (!(r | c))
|
|
2931
2931
|
return [t, e];
|
|
2932
2932
|
if (r & c)
|
|
2933
2933
|
return !1;
|
|
2934
|
-
d = r || c, f =
|
|
2934
|
+
d = r || c, f = We(t, e, d, i, o), _ = Qt(f, i), d === r ? (t = f, r = _) : (e = f, c = _);
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
|
-
function
|
|
2937
|
+
function We(t, e, i, n, o) {
|
|
2938
2938
|
var r = e.x - t.x, c = e.y - t.y, d = n.min, f = n.max, _, x;
|
|
2939
2939
|
return i & 8 ? (_ = t.x + r * (f.y - t.y) / c, x = f.y) : i & 4 ? (_ = t.x + r * (d.y - t.y) / c, x = d.y) : i & 2 ? (_ = f.x, x = t.y + c * (f.x - t.x) / r) : i & 1 && (_ = d.x, x = t.y + c * (d.x - t.x) / r), new A(_, x, o);
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function Qt(t, e) {
|
|
2942
2942
|
var i = 0;
|
|
2943
2943
|
return t.x < e.min.x ? i |= 1 : t.x > e.max.x && (i |= 2), t.y < e.min.y ? i |= 4 : t.y > e.max.y && (i |= 8), i;
|
|
2944
2944
|
}
|
|
2945
|
-
function
|
|
2945
|
+
function Ur(t, e) {
|
|
2946
2946
|
var i = e.x - t.x, n = e.y - t.y;
|
|
2947
2947
|
return i * i + n * n;
|
|
2948
2948
|
}
|
|
2949
|
-
function
|
|
2949
|
+
function Le(t, e, i, n) {
|
|
2950
2950
|
var o = e.x, r = e.y, c = i.x - o, d = i.y - r, f = c * c + d * d, _;
|
|
2951
2951
|
return f > 0 && (_ = ((t.x - o) * c + (t.y - r) * d) / f, _ > 1 ? (o = i.x, r = i.y) : _ > 0 && (o += c * _, r += d * _)), c = t.x - o, d = t.y - r, n ? c * c + d * d : new A(o, r);
|
|
2952
2952
|
}
|
|
2953
2953
|
function wt(t) {
|
|
2954
2954
|
return !U(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
|
2955
2955
|
}
|
|
2956
|
-
function
|
|
2956
|
+
function Nn(t) {
|
|
2957
2957
|
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), wt(t);
|
|
2958
2958
|
}
|
|
2959
|
-
function
|
|
2959
|
+
function Dn(t, e) {
|
|
2960
2960
|
var i, n, o, r, c, d, f, _;
|
|
2961
2961
|
if (!t || t.length === 0)
|
|
2962
2962
|
throw new Error("latlngs not passed");
|
|
2963
2963
|
wt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
2964
2964
|
var x = M([0, 0]), E = J(t), H = E.getNorthWest().distanceTo(E.getSouthWest()) * E.getNorthEast().distanceTo(E.getNorthWest());
|
|
2965
|
-
H < 1700 && (x =
|
|
2965
|
+
H < 1700 && (x = Mi(t));
|
|
2966
2966
|
var pt = t.length, at = [];
|
|
2967
2967
|
for (i = 0; i < pt; i++) {
|
|
2968
2968
|
var xt = M(t[i]);
|
|
@@ -2984,19 +2984,19 @@ function As() {
|
|
|
2984
2984
|
var gt = e.unproject(y(_));
|
|
2985
2985
|
return M([gt.lat + x.lat, gt.lng + x.lng]);
|
|
2986
2986
|
}
|
|
2987
|
-
var
|
|
2987
|
+
var $r = {
|
|
2988
2988
|
__proto__: null,
|
|
2989
|
-
simplify:
|
|
2990
|
-
pointToSegmentDistance:
|
|
2991
|
-
closestPointOnSegment:
|
|
2992
|
-
clipSegment:
|
|
2993
|
-
_getEdgeIntersection:
|
|
2994
|
-
_getBitCode:
|
|
2995
|
-
_sqClosestPointOnSegment:
|
|
2989
|
+
simplify: In,
|
|
2990
|
+
pointToSegmentDistance: Rn,
|
|
2991
|
+
closestPointOnSegment: jr,
|
|
2992
|
+
clipSegment: Bn,
|
|
2993
|
+
_getEdgeIntersection: We,
|
|
2994
|
+
_getBitCode: Qt,
|
|
2995
|
+
_sqClosestPointOnSegment: Le,
|
|
2996
2996
|
isFlat: wt,
|
|
2997
|
-
_flat:
|
|
2998
|
-
polylineCenter:
|
|
2999
|
-
},
|
|
2997
|
+
_flat: Nn,
|
|
2998
|
+
polylineCenter: Dn
|
|
2999
|
+
}, Oi = {
|
|
3000
3000
|
project: function(t) {
|
|
3001
3001
|
return new A(t.lng, t.lat);
|
|
3002
3002
|
},
|
|
@@ -3004,7 +3004,7 @@ function As() {
|
|
|
3004
3004
|
return new I(t.y, t.x);
|
|
3005
3005
|
},
|
|
3006
3006
|
bounds: new $([-180, -90], [180, 90])
|
|
3007
|
-
},
|
|
3007
|
+
}, Ai = {
|
|
3008
3008
|
R: 6378137,
|
|
3009
3009
|
R_MINOR: 6356752314245179e-9,
|
|
3010
3010
|
bounds: new $([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
|
@@ -3017,24 +3017,24 @@ function As() {
|
|
|
3017
3017
|
_ = o * Math.sin(c), _ = Math.pow((1 - _) / (1 + _), o / 2), f = Math.PI / 2 - 2 * Math.atan(r * _) - c, c += f;
|
|
3018
3018
|
return new I(c * e, t.x * e / i);
|
|
3019
3019
|
}
|
|
3020
|
-
},
|
|
3020
|
+
}, qr = {
|
|
3021
3021
|
__proto__: null,
|
|
3022
|
-
LonLat:
|
|
3023
|
-
Mercator:
|
|
3024
|
-
SphericalMercator:
|
|
3025
|
-
},
|
|
3022
|
+
LonLat: Oi,
|
|
3023
|
+
Mercator: Ai,
|
|
3024
|
+
SphericalMercator: oe
|
|
3025
|
+
}, Kr = u({}, Lt, {
|
|
3026
3026
|
code: "EPSG:3395",
|
|
3027
|
-
projection:
|
|
3027
|
+
projection: Ai,
|
|
3028
3028
|
transformation: (function() {
|
|
3029
|
-
var t = 0.5 / (Math.PI *
|
|
3029
|
+
var t = 0.5 / (Math.PI * Ai.R);
|
|
3030
3030
|
return zt(t, 0.5, -t, 0.5);
|
|
3031
3031
|
})()
|
|
3032
|
-
}),
|
|
3032
|
+
}), Fn = u({}, Lt, {
|
|
3033
3033
|
code: "EPSG:4326",
|
|
3034
|
-
projection:
|
|
3034
|
+
projection: Oi,
|
|
3035
3035
|
transformation: zt(1 / 180, 1, -1 / 180, 0.5)
|
|
3036
|
-
}),
|
|
3037
|
-
projection:
|
|
3036
|
+
}), Yr = u({}, _t, {
|
|
3037
|
+
projection: Oi,
|
|
3038
3038
|
transformation: zt(1, 0, -1, 0),
|
|
3039
3039
|
scale: function(t) {
|
|
3040
3040
|
return Math.pow(2, t);
|
|
@@ -3048,7 +3048,7 @@ function As() {
|
|
|
3048
3048
|
},
|
|
3049
3049
|
infinite: !0
|
|
3050
3050
|
});
|
|
3051
|
-
_t.Earth = Lt, _t.EPSG3395 =
|
|
3051
|
+
_t.Earth = Lt, _t.EPSG3395 = Kr, _t.EPSG3857 = qt, _t.EPSG900913 = re, _t.EPSG4326 = Fn, _t.Simple = Yr;
|
|
3052
3052
|
var Tt = yt.extend({
|
|
3053
3053
|
// Classes extending `L.Layer` will inherit the following options:
|
|
3054
3054
|
options: {
|
|
@@ -3166,9 +3166,9 @@ function As() {
|
|
|
3166
3166
|
this._layersMaxZoom = e === -1 / 0 ? void 0 : e, this._layersMinZoom = t === 1 / 0 ? void 0 : t, i !== this._getZoomSpan() && this.fire("zoomlevelschange"), this.options.maxZoom === void 0 && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom && this.setZoom(this._layersMaxZoom), this.options.minZoom === void 0 && this._layersMinZoom && this.getZoom() < this._layersMinZoom && this.setZoom(this._layersMinZoom);
|
|
3167
3167
|
}
|
|
3168
3168
|
});
|
|
3169
|
-
var
|
|
3169
|
+
var he = Tt.extend({
|
|
3170
3170
|
initialize: function(t, e) {
|
|
3171
|
-
|
|
3171
|
+
S(this, e), this._layers = {};
|
|
3172
3172
|
var i, n;
|
|
3173
3173
|
if (t)
|
|
3174
3174
|
for (i = 0, n = t.length; i < n; i++)
|
|
@@ -3252,14 +3252,14 @@ function As() {
|
|
|
3252
3252
|
getLayerId: function(t) {
|
|
3253
3253
|
return v(t);
|
|
3254
3254
|
}
|
|
3255
|
-
}),
|
|
3256
|
-
return new
|
|
3257
|
-
},
|
|
3255
|
+
}), Xr = function(t, e) {
|
|
3256
|
+
return new he(t, e);
|
|
3257
|
+
}, Rt = he.extend({
|
|
3258
3258
|
addLayer: function(t) {
|
|
3259
|
-
return this.hasLayer(t) ? this : (t.addEventParent(this),
|
|
3259
|
+
return this.hasLayer(t) ? this : (t.addEventParent(this), he.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t }));
|
|
3260
3260
|
},
|
|
3261
3261
|
removeLayer: function(t) {
|
|
3262
|
-
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this),
|
|
3262
|
+
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this), he.prototype.removeLayer.call(this, t), this.fire("layerremove", { layer: t })) : this;
|
|
3263
3263
|
},
|
|
3264
3264
|
// @method setStyle(style: Path options): this
|
|
3265
3265
|
// Sets the given path options to each layer of the group that has a `setStyle` method.
|
|
@@ -3286,9 +3286,9 @@ function As() {
|
|
|
3286
3286
|
}
|
|
3287
3287
|
return t;
|
|
3288
3288
|
}
|
|
3289
|
-
}),
|
|
3290
|
-
return new
|
|
3291
|
-
},
|
|
3289
|
+
}), Jr = function(t, e) {
|
|
3290
|
+
return new Rt(t, e);
|
|
3291
|
+
}, ce = vt.extend({
|
|
3292
3292
|
/* @section
|
|
3293
3293
|
* @aka Icon options
|
|
3294
3294
|
*
|
|
@@ -3338,7 +3338,7 @@ function As() {
|
|
|
3338
3338
|
crossOrigin: !1
|
|
3339
3339
|
},
|
|
3340
3340
|
initialize: function(t) {
|
|
3341
|
-
|
|
3341
|
+
S(this, t);
|
|
3342
3342
|
},
|
|
3343
3343
|
// @method createIcon(oldIcon?: HTMLElement): HTMLElement
|
|
3344
3344
|
// Called internally when the icon has to be shown, returns a `<img>` HTML element
|
|
@@ -3371,13 +3371,13 @@ function As() {
|
|
|
3371
3371
|
return e = e || document.createElement("img"), e.src = t, e;
|
|
3372
3372
|
},
|
|
3373
3373
|
_getIconUrl: function(t) {
|
|
3374
|
-
return
|
|
3374
|
+
return z.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
|
|
3375
3375
|
}
|
|
3376
3376
|
});
|
|
3377
|
-
function
|
|
3378
|
-
return new
|
|
3377
|
+
function Qr(t) {
|
|
3378
|
+
return new ce(t);
|
|
3379
3379
|
}
|
|
3380
|
-
var
|
|
3380
|
+
var ke = ce.extend({
|
|
3381
3381
|
options: {
|
|
3382
3382
|
iconUrl: "marker-icon.png",
|
|
3383
3383
|
iconRetinaUrl: "marker-icon-2x.png",
|
|
@@ -3389,7 +3389,7 @@ function As() {
|
|
|
3389
3389
|
shadowSize: [41, 41]
|
|
3390
3390
|
},
|
|
3391
3391
|
_getIconUrl: function(t) {
|
|
3392
|
-
return typeof
|
|
3392
|
+
return typeof ke.imagePath != "string" && (ke.imagePath = this._detectIconPath()), (this.options.imagePath || ke.imagePath) + ce.prototype._getIconUrl.call(this, t);
|
|
3393
3393
|
},
|
|
3394
3394
|
_stripUrl: function(t) {
|
|
3395
3395
|
var e = function(i, n, o) {
|
|
@@ -3399,19 +3399,19 @@ function As() {
|
|
|
3399
3399
|
return t = e(t, /^url\((['"])?(.+)\1\)$/, 2), t && e(t, /^(.*)marker-icon\.png$/, 1);
|
|
3400
3400
|
},
|
|
3401
3401
|
_detectIconPath: function() {
|
|
3402
|
-
var t = V("div", "leaflet-default-icon-path", document.body), e =
|
|
3402
|
+
var t = V("div", "leaflet-default-icon-path", document.body), e = ve(t, "background-image") || ve(t, "backgroundImage");
|
|
3403
3403
|
if (document.body.removeChild(t), e = this._stripUrl(e), e)
|
|
3404
3404
|
return e;
|
|
3405
3405
|
var i = document.querySelector('link[href$="leaflet.css"]');
|
|
3406
3406
|
return i ? i.href.substring(0, i.href.length - 11 - 1) : "";
|
|
3407
3407
|
}
|
|
3408
|
-
}),
|
|
3408
|
+
}), Wn = Ot.extend({
|
|
3409
3409
|
initialize: function(t) {
|
|
3410
3410
|
this._marker = t;
|
|
3411
3411
|
},
|
|
3412
3412
|
addHooks: function() {
|
|
3413
3413
|
var t = this._marker._icon;
|
|
3414
|
-
this._draggable || (this._draggable = new
|
|
3414
|
+
this._draggable || (this._draggable = new Ht(t, t, !0)), this._draggable.on({
|
|
3415
3415
|
dragstart: this._onDragStart,
|
|
3416
3416
|
predrag: this._onPreDrag,
|
|
3417
3417
|
drag: this._onDrag,
|
|
@@ -3430,7 +3430,7 @@ function As() {
|
|
|
3430
3430
|
return this._draggable && this._draggable._moved;
|
|
3431
3431
|
},
|
|
3432
3432
|
_adjustPan: function(t) {
|
|
3433
|
-
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, r =
|
|
3433
|
+
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, r = Yt(e._icon), c = i.getPixelBounds(), d = i.getPixelOrigin(), f = ct(
|
|
3434
3434
|
c.min._subtract(d).add(o),
|
|
3435
3435
|
c.max._subtract(d).subtract(o)
|
|
3436
3436
|
);
|
|
@@ -3449,13 +3449,13 @@ function As() {
|
|
|
3449
3449
|
this._marker.options.autoPan && (ht(this._panRequest), this._panRequest = tt(this._adjustPan.bind(this, t)));
|
|
3450
3450
|
},
|
|
3451
3451
|
_onDrag: function(t) {
|
|
3452
|
-
var e = this._marker, i = e._shadow, n =
|
|
3452
|
+
var e = this._marker, i = e._shadow, n = Yt(e._icon), o = e._map.layerPointToLatLng(n);
|
|
3453
3453
|
i && ot(i, n), e._latlng = o, t.latlng = o, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t);
|
|
3454
3454
|
},
|
|
3455
3455
|
_onDragEnd: function(t) {
|
|
3456
3456
|
ht(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
|
|
3457
3457
|
}
|
|
3458
|
-
}),
|
|
3458
|
+
}), He = Tt.extend({
|
|
3459
3459
|
// @section
|
|
3460
3460
|
// @aka Marker options
|
|
3461
3461
|
options: {
|
|
@@ -3463,7 +3463,7 @@ function As() {
|
|
|
3463
3463
|
// Icon instance to use for rendering the marker.
|
|
3464
3464
|
// See [Icon documentation](#L.Icon) for details on how to customize the marker icon.
|
|
3465
3465
|
// If not specified, a common instance of `L.Icon.Default` is used.
|
|
3466
|
-
icon: new
|
|
3466
|
+
icon: new ke(),
|
|
3467
3467
|
// Option inherited from "Interactive layer" abstract class
|
|
3468
3468
|
interactive: !0,
|
|
3469
3469
|
// @option keyboard: Boolean = true
|
|
@@ -3524,7 +3524,7 @@ function As() {
|
|
|
3524
3524
|
* In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPopup() you can also use the following methods:
|
|
3525
3525
|
*/
|
|
3526
3526
|
initialize: function(t, e) {
|
|
3527
|
-
|
|
3527
|
+
S(this, e), this._latlng = M(t);
|
|
3528
3528
|
},
|
|
3529
3529
|
onAdd: function(t) {
|
|
3530
3530
|
this._zoomAnimated = this._zoomAnimated && t.options.markerZoomAnimation, this._zoomAnimated && t.on("zoomanim", this._animateZoom, this), this._initIcon(), this.update();
|
|
@@ -3603,9 +3603,9 @@ function As() {
|
|
|
3603
3603
|
this._setPos(e);
|
|
3604
3604
|
},
|
|
3605
3605
|
_initInteraction: function() {
|
|
3606
|
-
if (this.options.interactive && (N(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon),
|
|
3606
|
+
if (this.options.interactive && (N(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), Wn)) {
|
|
3607
3607
|
var t = this.options.draggable;
|
|
3608
|
-
this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new
|
|
3608
|
+
this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new Wn(this), t && this.dragging.enable();
|
|
3609
3609
|
}
|
|
3610
3610
|
},
|
|
3611
3611
|
// @method setOpacity(opacity: Number): this
|
|
@@ -3640,10 +3640,10 @@ function As() {
|
|
|
3640
3640
|
return this.options.icon.options.tooltipAnchor;
|
|
3641
3641
|
}
|
|
3642
3642
|
});
|
|
3643
|
-
function
|
|
3644
|
-
return new
|
|
3643
|
+
function ts(t, e) {
|
|
3644
|
+
return new He(t, e);
|
|
3645
3645
|
}
|
|
3646
|
-
var
|
|
3646
|
+
var jt = Tt.extend({
|
|
3647
3647
|
// @section
|
|
3648
3648
|
// @aka Path options
|
|
3649
3649
|
options: {
|
|
@@ -3708,7 +3708,7 @@ function As() {
|
|
|
3708
3708
|
// @method setStyle(style: Path options): this
|
|
3709
3709
|
// Changes the appearance of a Path based on the options in the `Path options` object.
|
|
3710
3710
|
setStyle: function(t) {
|
|
3711
|
-
return
|
|
3711
|
+
return S(this, t), this._renderer && (this._renderer._updateStyle(this), this.options.stroke && t && Object.prototype.hasOwnProperty.call(t, "weight") && this._updateBounds()), this;
|
|
3712
3712
|
},
|
|
3713
3713
|
// @method bringToFront(): this
|
|
3714
3714
|
// Brings the layer to the top of all path layers.
|
|
@@ -3729,7 +3729,7 @@ function As() {
|
|
|
3729
3729
|
_clickTolerance: function() {
|
|
3730
3730
|
return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0);
|
|
3731
3731
|
}
|
|
3732
|
-
}),
|
|
3732
|
+
}), je = jt.extend({
|
|
3733
3733
|
// @section
|
|
3734
3734
|
// @aka CircleMarker options
|
|
3735
3735
|
options: {
|
|
@@ -3739,7 +3739,7 @@ function As() {
|
|
|
3739
3739
|
radius: 10
|
|
3740
3740
|
},
|
|
3741
3741
|
initialize: function(t, e) {
|
|
3742
|
-
|
|
3742
|
+
S(this, e), this._latlng = M(t), this._radius = this.options.radius;
|
|
3743
3743
|
},
|
|
3744
3744
|
// @method setLatLng(latLng: LatLng): this
|
|
3745
3745
|
// Sets the position of a circle marker to a new location.
|
|
@@ -3764,7 +3764,7 @@ function As() {
|
|
|
3764
3764
|
},
|
|
3765
3765
|
setStyle: function(t) {
|
|
3766
3766
|
var e = t && t.radius || this._radius;
|
|
3767
|
-
return
|
|
3767
|
+
return jt.prototype.setStyle.call(this, t), this.setRadius(e), this;
|
|
3768
3768
|
},
|
|
3769
3769
|
_project: function() {
|
|
3770
3770
|
this._point = this._map.latLngToLayerPoint(this._latlng), this._updateBounds();
|
|
@@ -3787,12 +3787,12 @@ function As() {
|
|
|
3787
3787
|
return t.distanceTo(this._point) <= this._radius + this._clickTolerance();
|
|
3788
3788
|
}
|
|
3789
3789
|
});
|
|
3790
|
-
function
|
|
3791
|
-
return new
|
|
3790
|
+
function es(t, e) {
|
|
3791
|
+
return new je(t, e);
|
|
3792
3792
|
}
|
|
3793
|
-
var
|
|
3793
|
+
var Ii = je.extend({
|
|
3794
3794
|
initialize: function(t, e, i) {
|
|
3795
|
-
if (typeof e == "number" && (e = u({}, i, { radius: e })),
|
|
3795
|
+
if (typeof e == "number" && (e = u({}, i, { radius: e })), S(this, e), this._latlng = M(t), isNaN(this.options.radius))
|
|
3796
3796
|
throw new Error("Circle radius cannot be NaN");
|
|
3797
3797
|
this._mRadius = this.options.radius;
|
|
3798
3798
|
},
|
|
@@ -3815,7 +3815,7 @@ function As() {
|
|
|
3815
3815
|
this._map.layerPointToLatLng(this._point.add(t))
|
|
3816
3816
|
);
|
|
3817
3817
|
},
|
|
3818
|
-
setStyle:
|
|
3818
|
+
setStyle: jt.prototype.setStyle,
|
|
3819
3819
|
_project: function() {
|
|
3820
3820
|
var t = this._latlng.lng, e = this._latlng.lat, i = this._map, n = i.options.crs;
|
|
3821
3821
|
if (n.distance === Lt.distance) {
|
|
@@ -3828,10 +3828,10 @@ function As() {
|
|
|
3828
3828
|
this._updateBounds();
|
|
3829
3829
|
}
|
|
3830
3830
|
});
|
|
3831
|
-
function
|
|
3832
|
-
return new
|
|
3831
|
+
function is(t, e, i) {
|
|
3832
|
+
return new Ii(t, e, i);
|
|
3833
3833
|
}
|
|
3834
|
-
var Zt =
|
|
3834
|
+
var Zt = jt.extend({
|
|
3835
3835
|
// @section
|
|
3836
3836
|
// @aka Polyline options
|
|
3837
3837
|
options: {
|
|
@@ -3844,7 +3844,7 @@ function As() {
|
|
|
3844
3844
|
noClip: !1
|
|
3845
3845
|
},
|
|
3846
3846
|
initialize: function(t, e) {
|
|
3847
|
-
|
|
3847
|
+
S(this, e), this._setLatLngs(t);
|
|
3848
3848
|
},
|
|
3849
3849
|
// @method getLatLngs(): LatLng[]
|
|
3850
3850
|
// Returns an array of the points in the path, or nested arrays of points in case of multi-polyline.
|
|
@@ -3864,7 +3864,7 @@ function As() {
|
|
|
3864
3864
|
// @method closestLayerPoint(p: Point): Point
|
|
3865
3865
|
// Returns the point closest to `p` on the Polyline.
|
|
3866
3866
|
closestLayerPoint: function(t) {
|
|
3867
|
-
for (var e = 1 / 0, i = null, n =
|
|
3867
|
+
for (var e = 1 / 0, i = null, n = Le, o, r, c = 0, d = this._parts.length; c < d; c++)
|
|
3868
3868
|
for (var f = this._parts[c], _ = 1, x = f.length; _ < x; _++) {
|
|
3869
3869
|
o = f[_ - 1], r = f[_];
|
|
3870
3870
|
var E = n(t, o, r, !0);
|
|
@@ -3877,7 +3877,7 @@ function As() {
|
|
|
3877
3877
|
getCenter: function() {
|
|
3878
3878
|
if (!this._map)
|
|
3879
3879
|
throw new Error("Must add layer to map before using getCenter()");
|
|
3880
|
-
return
|
|
3880
|
+
return Dn(this._defaultShape(), this._map.options.crs);
|
|
3881
3881
|
},
|
|
3882
3882
|
// @method getBounds(): LatLngBounds
|
|
3883
3883
|
// Returns the `LatLngBounds` of the path.
|
|
@@ -3936,13 +3936,13 @@ function As() {
|
|
|
3936
3936
|
var e = this._parts, i, n, o, r, c, d, f;
|
|
3937
3937
|
for (i = 0, o = 0, r = this._rings.length; i < r; i++)
|
|
3938
3938
|
for (f = this._rings[i], n = 0, c = f.length; n < c - 1; n++)
|
|
3939
|
-
d =
|
|
3939
|
+
d = Bn(f[n], f[n + 1], t, n, !0), d && (e[o] = e[o] || [], e[o].push(d[0]), (d[1] !== f[n + 1] || n === c - 2) && (e[o].push(d[1]), o++));
|
|
3940
3940
|
}
|
|
3941
3941
|
},
|
|
3942
3942
|
// simplify each clipped part of the polyline for performance
|
|
3943
3943
|
_simplifyPoints: function() {
|
|
3944
3944
|
for (var t = this._parts, e = this.options.smoothFactor, i = 0, n = t.length; i < n; i++)
|
|
3945
|
-
t[i] =
|
|
3945
|
+
t[i] = In(t[i], e);
|
|
3946
3946
|
},
|
|
3947
3947
|
_update: function() {
|
|
3948
3948
|
this._map && (this._clipPoints(), this._simplifyPoints(), this._updatePath());
|
|
@@ -3957,16 +3957,16 @@ function As() {
|
|
|
3957
3957
|
return !1;
|
|
3958
3958
|
for (i = 0, r = this._parts.length; i < r; i++)
|
|
3959
3959
|
for (d = this._parts[i], n = 0, c = d.length, o = c - 1; n < c; o = n++)
|
|
3960
|
-
if (!(!e && n === 0) &&
|
|
3960
|
+
if (!(!e && n === 0) && Rn(t, d[o], d[n]) <= f)
|
|
3961
3961
|
return !0;
|
|
3962
3962
|
return !1;
|
|
3963
3963
|
}
|
|
3964
3964
|
});
|
|
3965
|
-
function
|
|
3965
|
+
function ns(t, e) {
|
|
3966
3966
|
return new Zt(t, e);
|
|
3967
3967
|
}
|
|
3968
|
-
Zt._flat =
|
|
3969
|
-
var
|
|
3968
|
+
Zt._flat = Nn;
|
|
3969
|
+
var ue = Zt.extend({
|
|
3970
3970
|
options: {
|
|
3971
3971
|
fill: !0
|
|
3972
3972
|
},
|
|
@@ -3978,7 +3978,7 @@ function As() {
|
|
|
3978
3978
|
getCenter: function() {
|
|
3979
3979
|
if (!this._map)
|
|
3980
3980
|
throw new Error("Must add layer to map before using getCenter()");
|
|
3981
|
-
return
|
|
3981
|
+
return An(this._defaultShape(), this._map.options.crs);
|
|
3982
3982
|
},
|
|
3983
3983
|
_convertLatLngs: function(t) {
|
|
3984
3984
|
var e = Zt.prototype._convertLatLngs.call(this, t), i = e.length;
|
|
@@ -3998,7 +3998,7 @@ function As() {
|
|
|
3998
3998
|
return;
|
|
3999
3999
|
}
|
|
4000
4000
|
for (var n = 0, o = this._rings.length, r; n < o; n++)
|
|
4001
|
-
r =
|
|
4001
|
+
r = On(this._rings[n], t, !0), r.length && this._parts.push(r);
|
|
4002
4002
|
}
|
|
4003
4003
|
},
|
|
4004
4004
|
_updatePath: function() {
|
|
@@ -4015,10 +4015,10 @@ function As() {
|
|
|
4015
4015
|
return e || Zt.prototype._containsPoint.call(this, t, !0);
|
|
4016
4016
|
}
|
|
4017
4017
|
});
|
|
4018
|
-
function
|
|
4019
|
-
return new
|
|
4018
|
+
function os(t, e) {
|
|
4019
|
+
return new ue(t, e);
|
|
4020
4020
|
}
|
|
4021
|
-
var
|
|
4021
|
+
var Bt = Rt.extend({
|
|
4022
4022
|
/* @section
|
|
4023
4023
|
* @aka GeoJSON options
|
|
4024
4024
|
*
|
|
@@ -4069,7 +4069,7 @@ function As() {
|
|
|
4069
4069
|
* Whether default Markers for "Point" type Features inherit from group options.
|
|
4070
4070
|
*/
|
|
4071
4071
|
initialize: function(t, e) {
|
|
4072
|
-
|
|
4072
|
+
S(this, e), this._layers = {}, t && this.addData(t);
|
|
4073
4073
|
},
|
|
4074
4074
|
// @method addData( <GeoJSON> data ): this
|
|
4075
4075
|
// Adds a GeoJSON object to the layer.
|
|
@@ -4083,8 +4083,8 @@ function As() {
|
|
|
4083
4083
|
var r = this.options;
|
|
4084
4084
|
if (r.filter && !r.filter(t))
|
|
4085
4085
|
return this;
|
|
4086
|
-
var c =
|
|
4087
|
-
return c ? (c.feature =
|
|
4086
|
+
var c = Ge(t, r);
|
|
4087
|
+
return c ? (c.feature = $e(t), c.defaultOptions = c.options, this.resetStyle(c), r.onEachFeature && r.onEachFeature(t, c), this.addLayer(c)) : this;
|
|
4088
4088
|
},
|
|
4089
4089
|
// @method resetStyle( <Path> layer? ): this
|
|
4090
4090
|
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
|
@@ -4103,102 +4103,102 @@ function As() {
|
|
|
4103
4103
|
t.setStyle && (typeof e == "function" && (e = e(t.feature)), t.setStyle(e));
|
|
4104
4104
|
}
|
|
4105
4105
|
});
|
|
4106
|
-
function
|
|
4107
|
-
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], r = e && e.pointToLayer, c = e && e.coordsToLatLng ||
|
|
4106
|
+
function Ge(t, e) {
|
|
4107
|
+
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], r = e && e.pointToLayer, c = e && e.coordsToLatLng || Ri, d, f, _, x;
|
|
4108
4108
|
if (!n && !i)
|
|
4109
4109
|
return null;
|
|
4110
4110
|
switch (i.type) {
|
|
4111
4111
|
case "Point":
|
|
4112
|
-
return d = c(n),
|
|
4112
|
+
return d = c(n), Hn(r, t, d, e);
|
|
4113
4113
|
case "MultiPoint":
|
|
4114
4114
|
for (_ = 0, x = n.length; _ < x; _++)
|
|
4115
|
-
d = c(n[_]), o.push(
|
|
4116
|
-
return new
|
|
4115
|
+
d = c(n[_]), o.push(Hn(r, t, d, e));
|
|
4116
|
+
return new Rt(o);
|
|
4117
4117
|
case "LineString":
|
|
4118
4118
|
case "MultiLineString":
|
|
4119
|
-
return f =
|
|
4119
|
+
return f = Ve(n, i.type === "LineString" ? 0 : 1, c), new Zt(f, e);
|
|
4120
4120
|
case "Polygon":
|
|
4121
4121
|
case "MultiPolygon":
|
|
4122
|
-
return f =
|
|
4122
|
+
return f = Ve(n, i.type === "Polygon" ? 1 : 2, c), new ue(f, e);
|
|
4123
4123
|
case "GeometryCollection":
|
|
4124
4124
|
for (_ = 0, x = i.geometries.length; _ < x; _++) {
|
|
4125
|
-
var E =
|
|
4125
|
+
var E = Ge({
|
|
4126
4126
|
geometry: i.geometries[_],
|
|
4127
4127
|
type: "Feature",
|
|
4128
4128
|
properties: t.properties
|
|
4129
4129
|
}, e);
|
|
4130
4130
|
E && o.push(E);
|
|
4131
4131
|
}
|
|
4132
|
-
return new
|
|
4132
|
+
return new Rt(o);
|
|
4133
4133
|
case "FeatureCollection":
|
|
4134
4134
|
for (_ = 0, x = i.features.length; _ < x; _++) {
|
|
4135
|
-
var H =
|
|
4135
|
+
var H = Ge(i.features[_], e);
|
|
4136
4136
|
H && o.push(H);
|
|
4137
4137
|
}
|
|
4138
|
-
return new
|
|
4138
|
+
return new Rt(o);
|
|
4139
4139
|
default:
|
|
4140
4140
|
throw new Error("Invalid GeoJSON object.");
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
|
-
function
|
|
4144
|
-
return t ? t(e, i) : new
|
|
4143
|
+
function Hn(t, e, i, n) {
|
|
4144
|
+
return t ? t(e, i) : new He(i, n && n.markersInheritOptions && n);
|
|
4145
4145
|
}
|
|
4146
|
-
function
|
|
4146
|
+
function Ri(t) {
|
|
4147
4147
|
return new I(t[1], t[0], t[2]);
|
|
4148
4148
|
}
|
|
4149
|
-
function
|
|
4149
|
+
function Ve(t, e, i) {
|
|
4150
4150
|
for (var n = [], o = 0, r = t.length, c; o < r; o++)
|
|
4151
|
-
c = e ?
|
|
4151
|
+
c = e ? Ve(t[o], e - 1, i) : (i || Ri)(t[o]), n.push(c);
|
|
4152
4152
|
return n;
|
|
4153
4153
|
}
|
|
4154
4154
|
function Zi(t, e) {
|
|
4155
4155
|
return t = M(t), t.alt !== void 0 ? [D(t.lng, e), D(t.lat, e), D(t.alt, e)] : [D(t.lng, e), D(t.lat, e)];
|
|
4156
4156
|
}
|
|
4157
|
-
function
|
|
4157
|
+
function Ue(t, e, i, n) {
|
|
4158
4158
|
for (var o = [], r = 0, c = t.length; r < c; r++)
|
|
4159
|
-
o.push(e ?
|
|
4159
|
+
o.push(e ? Ue(t[r], wt(t[r]) ? 0 : e - 1, i, n) : Zi(t[r], n));
|
|
4160
4160
|
return !e && i && o.length > 0 && o.push(o[0].slice()), o;
|
|
4161
4161
|
}
|
|
4162
|
-
function
|
|
4163
|
-
return t.feature ? u({}, t.feature, { geometry: e }) :
|
|
4162
|
+
function de(t, e) {
|
|
4163
|
+
return t.feature ? u({}, t.feature, { geometry: e }) : $e(e);
|
|
4164
4164
|
}
|
|
4165
|
-
function
|
|
4165
|
+
function $e(t) {
|
|
4166
4166
|
return t.type === "Feature" || t.type === "FeatureCollection" ? t : {
|
|
4167
4167
|
type: "Feature",
|
|
4168
4168
|
properties: {},
|
|
4169
4169
|
geometry: t
|
|
4170
4170
|
};
|
|
4171
4171
|
}
|
|
4172
|
-
var
|
|
4172
|
+
var Bi = {
|
|
4173
4173
|
toGeoJSON: function(t) {
|
|
4174
|
-
return
|
|
4174
|
+
return de(this, {
|
|
4175
4175
|
type: "Point",
|
|
4176
4176
|
coordinates: Zi(this.getLatLng(), t)
|
|
4177
4177
|
});
|
|
4178
4178
|
}
|
|
4179
4179
|
};
|
|
4180
|
-
|
|
4180
|
+
He.include(Bi), Ii.include(Bi), je.include(Bi), Zt.include({
|
|
4181
4181
|
toGeoJSON: function(t) {
|
|
4182
|
-
var e = !wt(this._latlngs), i =
|
|
4183
|
-
return
|
|
4182
|
+
var e = !wt(this._latlngs), i = Ue(this._latlngs, e ? 1 : 0, !1, t);
|
|
4183
|
+
return de(this, {
|
|
4184
4184
|
type: (e ? "Multi" : "") + "LineString",
|
|
4185
4185
|
coordinates: i
|
|
4186
4186
|
});
|
|
4187
4187
|
}
|
|
4188
|
-
}),
|
|
4188
|
+
}), ue.include({
|
|
4189
4189
|
toGeoJSON: function(t) {
|
|
4190
|
-
var e = !wt(this._latlngs), i = e && !wt(this._latlngs[0]), n =
|
|
4191
|
-
return e || (n = [n]),
|
|
4190
|
+
var e = !wt(this._latlngs), i = e && !wt(this._latlngs[0]), n = Ue(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
|
|
4191
|
+
return e || (n = [n]), de(this, {
|
|
4192
4192
|
type: (i ? "Multi" : "") + "Polygon",
|
|
4193
4193
|
coordinates: n
|
|
4194
4194
|
});
|
|
4195
4195
|
}
|
|
4196
|
-
}),
|
|
4196
|
+
}), he.include({
|
|
4197
4197
|
toMultiPoint: function(t) {
|
|
4198
4198
|
var e = [];
|
|
4199
4199
|
return this.eachLayer(function(i) {
|
|
4200
4200
|
e.push(i.toGeoJSON(t).geometry.coordinates);
|
|
4201
|
-
}),
|
|
4201
|
+
}), de(this, {
|
|
4202
4202
|
type: "MultiPoint",
|
|
4203
4203
|
coordinates: e
|
|
4204
4204
|
});
|
|
@@ -4217,11 +4217,11 @@ function As() {
|
|
|
4217
4217
|
if (i)
|
|
4218
4218
|
n.push(r.geometry);
|
|
4219
4219
|
else {
|
|
4220
|
-
var c =
|
|
4220
|
+
var c = $e(r);
|
|
4221
4221
|
c.type === "FeatureCollection" ? n.push.apply(n, c.features) : n.push(c);
|
|
4222
4222
|
}
|
|
4223
4223
|
}
|
|
4224
|
-
}), i ?
|
|
4224
|
+
}), i ? de(this, {
|
|
4225
4225
|
geometries: n,
|
|
4226
4226
|
type: "GeometryCollection"
|
|
4227
4227
|
}) : {
|
|
@@ -4230,10 +4230,10 @@ function As() {
|
|
|
4230
4230
|
};
|
|
4231
4231
|
}
|
|
4232
4232
|
});
|
|
4233
|
-
function
|
|
4234
|
-
return new
|
|
4233
|
+
function jn(t, e) {
|
|
4234
|
+
return new Bt(t, e);
|
|
4235
4235
|
}
|
|
4236
|
-
var
|
|
4236
|
+
var rs = jn, qe = Tt.extend({
|
|
4237
4237
|
// @section
|
|
4238
4238
|
// @aka ImageOverlay options
|
|
4239
4239
|
options: {
|
|
@@ -4262,7 +4262,7 @@ function As() {
|
|
|
4262
4262
|
className: ""
|
|
4263
4263
|
},
|
|
4264
4264
|
initialize: function(t, e, i) {
|
|
4265
|
-
this._url = t, this._bounds = J(e),
|
|
4265
|
+
this._url = t, this._bounds = J(e), S(this, i);
|
|
4266
4266
|
},
|
|
4267
4267
|
onAdd: function() {
|
|
4268
4268
|
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (N(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
|
|
@@ -4281,12 +4281,12 @@ function As() {
|
|
|
4281
4281
|
// @method bringToFront(): this
|
|
4282
4282
|
// Brings the layer to the top of all overlays.
|
|
4283
4283
|
bringToFront: function() {
|
|
4284
|
-
return this._map &&
|
|
4284
|
+
return this._map && ae(this._image), this;
|
|
4285
4285
|
},
|
|
4286
4286
|
// @method bringToBack(): this
|
|
4287
4287
|
// Brings the layer to the bottom of all overlays.
|
|
4288
4288
|
bringToBack: function() {
|
|
4289
|
-
return this._map &&
|
|
4289
|
+
return this._map && le(this._image), this;
|
|
4290
4290
|
},
|
|
4291
4291
|
// @method setUrl(url: String): this
|
|
4292
4292
|
// Changes the URL of the image.
|
|
@@ -4331,7 +4331,7 @@ function As() {
|
|
|
4331
4331
|
},
|
|
4332
4332
|
_animateZoom: function(t) {
|
|
4333
4333
|
var e = this._map.getZoomScale(t.zoom), i = this._map._latLngBoundsToNewLayerBounds(this._bounds, t.zoom, t.center).min;
|
|
4334
|
-
|
|
4334
|
+
Kt(this._image, i, e);
|
|
4335
4335
|
},
|
|
4336
4336
|
_reset: function() {
|
|
4337
4337
|
var t = this._image, e = new $(
|
|
@@ -4356,9 +4356,9 @@ function As() {
|
|
|
4356
4356
|
getCenter: function() {
|
|
4357
4357
|
return this._bounds.getCenter();
|
|
4358
4358
|
}
|
|
4359
|
-
}),
|
|
4360
|
-
return new
|
|
4361
|
-
},
|
|
4359
|
+
}), ss = function(t, e, i) {
|
|
4360
|
+
return new qe(t, e, i);
|
|
4361
|
+
}, Gn = qe.extend({
|
|
4362
4362
|
// @section
|
|
4363
4363
|
// @aka VideoOverlay options
|
|
4364
4364
|
options: {
|
|
@@ -4398,10 +4398,10 @@ function As() {
|
|
|
4398
4398
|
// Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
|
|
4399
4399
|
// used by this overlay.
|
|
4400
4400
|
});
|
|
4401
|
-
function
|
|
4402
|
-
return new
|
|
4401
|
+
function as(t, e, i) {
|
|
4402
|
+
return new Gn(t, e, i);
|
|
4403
4403
|
}
|
|
4404
|
-
var
|
|
4404
|
+
var Vn = qe.extend({
|
|
4405
4405
|
_initImage: function() {
|
|
4406
4406
|
var t = this._image = this._url;
|
|
4407
4407
|
N(t, "leaflet-image-layer"), this._zoomAnimated && N(t, "leaflet-zoom-animated"), this.options.className && N(t, this.options.className), t.onselectstart = T, t.onmousemove = T;
|
|
@@ -4410,10 +4410,10 @@ function As() {
|
|
|
4410
4410
|
// Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
|
|
4411
4411
|
// used by this overlay.
|
|
4412
4412
|
});
|
|
4413
|
-
function
|
|
4414
|
-
return new
|
|
4413
|
+
function ls(t, e, i) {
|
|
4414
|
+
return new Vn(t, e, i);
|
|
4415
4415
|
}
|
|
4416
|
-
var
|
|
4416
|
+
var At = Tt.extend({
|
|
4417
4417
|
// @section
|
|
4418
4418
|
// @aka DivOverlay options
|
|
4419
4419
|
options: {
|
|
@@ -4435,7 +4435,7 @@ function As() {
|
|
|
4435
4435
|
content: ""
|
|
4436
4436
|
},
|
|
4437
4437
|
initialize: function(t, e) {
|
|
4438
|
-
t && (t instanceof I || U(t)) ? (this._latlng = M(t),
|
|
4438
|
+
t && (t instanceof I || U(t)) ? (this._latlng = M(t), S(this, e)) : (S(this, t), this._source = e), this.options.content && (this._content = this.options.content);
|
|
4439
4439
|
},
|
|
4440
4440
|
// @method openOn(map: Map): this
|
|
4441
4441
|
// Adds the overlay to the map.
|
|
@@ -4510,19 +4510,19 @@ function As() {
|
|
|
4510
4510
|
// @method bringToFront: this
|
|
4511
4511
|
// Brings this overlay in front of other overlays (in the same map pane).
|
|
4512
4512
|
bringToFront: function() {
|
|
4513
|
-
return this._map &&
|
|
4513
|
+
return this._map && ae(this._container), this;
|
|
4514
4514
|
},
|
|
4515
4515
|
// @method bringToBack: this
|
|
4516
4516
|
// Brings this overlay to the back of other overlays (in the same map pane).
|
|
4517
4517
|
bringToBack: function() {
|
|
4518
|
-
return this._map &&
|
|
4518
|
+
return this._map && le(this._container), this;
|
|
4519
4519
|
},
|
|
4520
4520
|
// prepare bound overlay to open: update latlng pos / content source (for FeatureGroup)
|
|
4521
4521
|
_prepareOpen: function(t) {
|
|
4522
4522
|
var e = this._source;
|
|
4523
4523
|
if (!e._map)
|
|
4524
4524
|
return !1;
|
|
4525
|
-
if (e instanceof
|
|
4525
|
+
if (e instanceof Rt) {
|
|
4526
4526
|
e = null;
|
|
4527
4527
|
var i = this._source._layers;
|
|
4528
4528
|
for (var n in i)
|
|
@@ -4578,10 +4578,10 @@ function As() {
|
|
|
4578
4578
|
}), Tt.include({
|
|
4579
4579
|
_initOverlay: function(t, e, i, n) {
|
|
4580
4580
|
var o = i;
|
|
4581
|
-
return o instanceof t ? (
|
|
4581
|
+
return o instanceof t ? (S(o, n), o._source = this) : (o = e && !n ? e : new t(n, this), o.setContent(i)), o;
|
|
4582
4582
|
}
|
|
4583
4583
|
});
|
|
4584
|
-
var
|
|
4584
|
+
var Ke = At.extend({
|
|
4585
4585
|
// @section
|
|
4586
4586
|
// @aka Popup options
|
|
4587
4587
|
options: {
|
|
@@ -4645,16 +4645,16 @@ function As() {
|
|
|
4645
4645
|
// Alternative to `map.openPopup(popup)`.
|
|
4646
4646
|
// Adds the popup to the map and closes the previous one.
|
|
4647
4647
|
openOn: function(t) {
|
|
4648
|
-
return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this,
|
|
4648
|
+
return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, At.prototype.openOn.call(this, t);
|
|
4649
4649
|
},
|
|
4650
4650
|
onAdd: function(t) {
|
|
4651
|
-
|
|
4651
|
+
At.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof jt || this._source.on("preclick", Xt));
|
|
4652
4652
|
},
|
|
4653
4653
|
onRemove: function(t) {
|
|
4654
|
-
|
|
4654
|
+
At.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof jt || this._source.off("preclick", Xt));
|
|
4655
4655
|
},
|
|
4656
4656
|
getEvents: function() {
|
|
4657
|
-
var t =
|
|
4657
|
+
var t = At.prototype.getEvents.call(this);
|
|
4658
4658
|
return (this.options.closeOnClick !== void 0 ? this.options.closeOnClick : this._map.options.closePopupOnClick) && (t.preclick = this.close), this.options.keepInView && (t.moveend = this._adjustPan), t;
|
|
4659
4659
|
},
|
|
4660
4660
|
_initLayout: function() {
|
|
@@ -4662,7 +4662,7 @@ function As() {
|
|
|
4662
4662
|
"div",
|
|
4663
4663
|
t + " " + (this.options.className || "") + " leaflet-zoom-animated"
|
|
4664
4664
|
), i = this._wrapper = V("div", t + "-content-wrapper", e);
|
|
4665
|
-
if (this._contentNode = V("div", t + "-content", i),
|
|
4665
|
+
if (this._contentNode = V("div", t + "-content", i), xe(e), Ti(this._contentNode), B(e, "contextmenu", Xt), this._tipContainer = V("div", t + "-tip-container", e), this._tip = V("div", t + "-tip", this._tipContainer), this.options.closeButton) {
|
|
4666
4666
|
var n = this._closeButton = V("a", t + "-close-button", e);
|
|
4667
4667
|
n.setAttribute("role", "button"), n.setAttribute("aria-label", "Close popup"), n.href = "#close", n.innerHTML = '<span aria-hidden="true">×</span>', B(n, "click", function(o) {
|
|
4668
4668
|
dt(o), this.close();
|
|
@@ -4687,8 +4687,8 @@ function As() {
|
|
|
4687
4687
|
this._autopanning = !1;
|
|
4688
4688
|
return;
|
|
4689
4689
|
}
|
|
4690
|
-
var t = this._map, e = parseInt(
|
|
4691
|
-
o._add(
|
|
4690
|
+
var t = this._map, e = parseInt(ve(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, o = new A(this._containerLeft, -i - this._containerBottom);
|
|
4691
|
+
o._add(Yt(this._container));
|
|
4692
4692
|
var r = t.layerPointToContainerPoint(o), c = y(this.options.autoPanPadding), d = y(this.options.autoPanPaddingTopLeft || c), f = y(this.options.autoPanPaddingBottomRight || c), _ = t.getSize(), x = 0, E = 0;
|
|
4693
4693
|
r.x + n + f.x > _.x && (x = r.x + n - _.x + f.x), r.x - x - d.x < 0 && (x = r.x - d.x), r.y + i + f.y > _.y && (E = r.y + i - _.y + f.y), r.y - E - d.y < 0 && (E = r.y - d.y), (x || E) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([x, E]));
|
|
4694
4694
|
}
|
|
@@ -4696,8 +4696,8 @@ function As() {
|
|
|
4696
4696
|
_getAnchor: function() {
|
|
4697
4697
|
return y(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
|
|
4698
4698
|
}
|
|
4699
|
-
}),
|
|
4700
|
-
return new
|
|
4699
|
+
}), hs = function(t, e) {
|
|
4700
|
+
return new Ke(t, e);
|
|
4701
4701
|
};
|
|
4702
4702
|
j.mergeOptions({
|
|
4703
4703
|
closePopupOnClick: !0
|
|
@@ -4708,7 +4708,7 @@ function As() {
|
|
|
4708
4708
|
// @method openPopup(content: String|HTMLElement, latlng: LatLng, options?: Popup options): this
|
|
4709
4709
|
// Creates a popup with the specified content and options and opens it in the given point on a map.
|
|
4710
4710
|
openPopup: function(t, e, i) {
|
|
4711
|
-
return this._initOverlay(
|
|
4711
|
+
return this._initOverlay(Ke, t, e, i).openOn(this), this;
|
|
4712
4712
|
},
|
|
4713
4713
|
// @method closePopup(popup?: Popup): this
|
|
4714
4714
|
// Closes the popup previously opened with [openPopup](#map-openpopup) (or the given one).
|
|
@@ -4721,7 +4721,7 @@ function As() {
|
|
|
4721
4721
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
4722
4722
|
// the layer as the first argument and should return a `String` or `HTMLElement`.
|
|
4723
4723
|
bindPopup: function(t, e) {
|
|
4724
|
-
return this._popup = this._initOverlay(
|
|
4724
|
+
return this._popup = this._initOverlay(Ke, this._popup, t, e), this._popupHandlersAdded || (this.on({
|
|
4725
4725
|
click: this._openPopup,
|
|
4726
4726
|
keypress: this._onKeyPress,
|
|
4727
4727
|
remove: this.closePopup,
|
|
@@ -4741,7 +4741,7 @@ function As() {
|
|
|
4741
4741
|
// @method openPopup(latlng?: LatLng): this
|
|
4742
4742
|
// Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
|
|
4743
4743
|
openPopup: function(t) {
|
|
4744
|
-
return this._popup && (this instanceof
|
|
4744
|
+
return this._popup && (this instanceof Rt || (this._popup._source = this), this._popup._prepareOpen(t || this._latlng) && this._popup.openOn(this._map)), this;
|
|
4745
4745
|
},
|
|
4746
4746
|
// @method closePopup(): this
|
|
4747
4747
|
// Closes the popup bound to this layer if it is open.
|
|
@@ -4770,9 +4770,9 @@ function As() {
|
|
|
4770
4770
|
},
|
|
4771
4771
|
_openPopup: function(t) {
|
|
4772
4772
|
if (!(!this._popup || !this._map)) {
|
|
4773
|
-
|
|
4773
|
+
Jt(t);
|
|
4774
4774
|
var e = t.layer || t.target;
|
|
4775
|
-
if (this._popup._source === e && !(e instanceof
|
|
4775
|
+
if (this._popup._source === e && !(e instanceof jt)) {
|
|
4776
4776
|
this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(t.latlng);
|
|
4777
4777
|
return;
|
|
4778
4778
|
}
|
|
@@ -4786,7 +4786,7 @@ function As() {
|
|
|
4786
4786
|
t.originalEvent.keyCode === 13 && this._openPopup(t);
|
|
4787
4787
|
}
|
|
4788
4788
|
});
|
|
4789
|
-
var
|
|
4789
|
+
var Ye = At.extend({
|
|
4790
4790
|
// @section
|
|
4791
4791
|
// @aka Tooltip options
|
|
4792
4792
|
options: {
|
|
@@ -4813,13 +4813,13 @@ function As() {
|
|
|
4813
4813
|
opacity: 0.9
|
|
4814
4814
|
},
|
|
4815
4815
|
onAdd: function(t) {
|
|
4816
|
-
|
|
4816
|
+
At.prototype.onAdd.call(this, t), this.setOpacity(this.options.opacity), t.fire("tooltipopen", { tooltip: this }), this._source && (this.addEventParent(this._source), this._source.fire("tooltipopen", { tooltip: this }, !0));
|
|
4817
4817
|
},
|
|
4818
4818
|
onRemove: function(t) {
|
|
4819
|
-
|
|
4819
|
+
At.prototype.onRemove.call(this, t), t.fire("tooltipclose", { tooltip: this }), this._source && (this.removeEventParent(this._source), this._source.fire("tooltipclose", { tooltip: this }, !0));
|
|
4820
4820
|
},
|
|
4821
4821
|
getEvents: function() {
|
|
4822
|
-
var t =
|
|
4822
|
+
var t = At.prototype.getEvents.call(this);
|
|
4823
4823
|
return this.options.permanent || (t.preclick = this.close), t;
|
|
4824
4824
|
},
|
|
4825
4825
|
_initLayout: function() {
|
|
@@ -4848,8 +4848,8 @@ function As() {
|
|
|
4848
4848
|
_getAnchor: function() {
|
|
4849
4849
|
return y(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
|
|
4850
4850
|
}
|
|
4851
|
-
}),
|
|
4852
|
-
return new
|
|
4851
|
+
}), cs = function(t, e) {
|
|
4852
|
+
return new Ye(t, e);
|
|
4853
4853
|
};
|
|
4854
4854
|
j.include({
|
|
4855
4855
|
// @method openTooltip(tooltip: Tooltip): this
|
|
@@ -4858,7 +4858,7 @@ function As() {
|
|
|
4858
4858
|
// @method openTooltip(content: String|HTMLElement, latlng: LatLng, options?: Tooltip options): this
|
|
4859
4859
|
// Creates a tooltip with the specified content and options and open it.
|
|
4860
4860
|
openTooltip: function(t, e, i) {
|
|
4861
|
-
return this._initOverlay(
|
|
4861
|
+
return this._initOverlay(Ye, t, e, i).openOn(this), this;
|
|
4862
4862
|
},
|
|
4863
4863
|
// @method closeTooltip(tooltip: Tooltip): this
|
|
4864
4864
|
// Closes the tooltip given as parameter.
|
|
@@ -4871,7 +4871,7 @@ function As() {
|
|
|
4871
4871
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
4872
4872
|
// the layer as the first argument and should return a `String` or `HTMLElement`.
|
|
4873
4873
|
bindTooltip: function(t, e) {
|
|
4874
|
-
return this._tooltip && this.isTooltipOpen() && this.unbindTooltip(), this._tooltip = this._initOverlay(
|
|
4874
|
+
return this._tooltip && this.isTooltipOpen() && this.unbindTooltip(), this._tooltip = this._initOverlay(Ye, this._tooltip, t, e), this._initTooltipInteractions(), this._tooltip.options.permanent && this._map && this._map.hasLayer(this) && this.openTooltip(), this;
|
|
4875
4875
|
},
|
|
4876
4876
|
// @method unbindTooltip(): this
|
|
4877
4877
|
// Removes the tooltip previously bound with `bindTooltip`.
|
|
@@ -4890,7 +4890,7 @@ function As() {
|
|
|
4890
4890
|
// @method openTooltip(latlng?: LatLng): this
|
|
4891
4891
|
// Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.
|
|
4892
4892
|
openTooltip: function(t) {
|
|
4893
|
-
return this._tooltip && (this instanceof
|
|
4893
|
+
return this._tooltip && (this instanceof Rt || (this._tooltip._source = this), this._tooltip._prepareOpen(t) && (this._tooltip.openOn(this._map), this.getElement ? this._setAriaDescribedByOnLayer(this) : this.eachLayer && this.eachLayer(this._setAriaDescribedByOnLayer, this))), this;
|
|
4894
4894
|
},
|
|
4895
4895
|
// @method closeTooltip(): this
|
|
4896
4896
|
// Closes the tooltip bound to this layer if it is open.
|
|
@@ -4949,7 +4949,7 @@ function As() {
|
|
|
4949
4949
|
this._tooltip.options.sticky && t.originalEvent && (i = this._map.mouseEventToContainerPoint(t.originalEvent), n = this._map.containerPointToLayerPoint(i), e = this._map.layerPointToLatLng(n)), this._tooltip.setLatLng(e);
|
|
4950
4950
|
}
|
|
4951
4951
|
});
|
|
4952
|
-
var
|
|
4952
|
+
var Un = ce.extend({
|
|
4953
4953
|
options: {
|
|
4954
4954
|
// @section
|
|
4955
4955
|
// @aka DivIcon options
|
|
@@ -4978,11 +4978,11 @@ function As() {
|
|
|
4978
4978
|
return null;
|
|
4979
4979
|
}
|
|
4980
4980
|
});
|
|
4981
|
-
function
|
|
4982
|
-
return new
|
|
4981
|
+
function us(t) {
|
|
4982
|
+
return new Un(t);
|
|
4983
4983
|
}
|
|
4984
|
-
|
|
4985
|
-
var
|
|
4984
|
+
ce.Default = ke;
|
|
4985
|
+
var Te = Tt.extend({
|
|
4986
4986
|
// @section
|
|
4987
4987
|
// @aka GridLayer options
|
|
4988
4988
|
options: {
|
|
@@ -4997,7 +4997,7 @@ function As() {
|
|
|
4997
4997
|
// `true` by default on mobile browsers, in order to avoid too many requests and keep smooth navigation.
|
|
4998
4998
|
// `false` otherwise in order to display new tiles _during_ panning, since it is easy to pan outside the
|
|
4999
4999
|
// [`keepBuffer`](#gridlayer-keepbuffer) option in desktop browsers.
|
|
5000
|
-
updateWhenIdle:
|
|
5000
|
+
updateWhenIdle: z.mobile,
|
|
5001
5001
|
// @option updateWhenZooming: Boolean = true
|
|
5002
5002
|
// By default, a smooth zoom animation (during a [touch zoom](#map-touchzoom) or a [`flyTo()`](#map-flyto)) will update grid layers every integer zoom level. Setting this option to `false` will update the grid layer only when the smooth animation ends.
|
|
5003
5003
|
updateWhenZooming: !0,
|
|
@@ -5044,7 +5044,7 @@ function As() {
|
|
|
5044
5044
|
keepBuffer: 2
|
|
5045
5045
|
},
|
|
5046
5046
|
initialize: function(t) {
|
|
5047
|
-
|
|
5047
|
+
S(this, t);
|
|
5048
5048
|
},
|
|
5049
5049
|
onAdd: function() {
|
|
5050
5050
|
this._initContainer(), this._levels = {}, this._tiles = {}, this._resetView();
|
|
@@ -5058,12 +5058,12 @@ function As() {
|
|
|
5058
5058
|
// @method bringToFront: this
|
|
5059
5059
|
// Brings the tile layer to the top of all tile layers.
|
|
5060
5060
|
bringToFront: function() {
|
|
5061
|
-
return this._map && (
|
|
5061
|
+
return this._map && (ae(this._container), this._setAutoZIndex(Math.max)), this;
|
|
5062
5062
|
},
|
|
5063
5063
|
// @method bringToBack: this
|
|
5064
5064
|
// Brings the tile layer to the bottom of all tile layers.
|
|
5065
5065
|
bringToBack: function() {
|
|
5066
|
-
return this._map && (
|
|
5066
|
+
return this._map && (le(this._container), this._setAutoZIndex(Math.min)), this;
|
|
5067
5067
|
},
|
|
5068
5068
|
// @method getContainer: HTMLElement
|
|
5069
5069
|
// Returns the HTML element that contains the tiles for this layer.
|
|
@@ -5129,7 +5129,7 @@ function As() {
|
|
|
5129
5129
|
isFinite(i) && (this.options.zIndex = i + t(-1, 1), this._updateZIndex());
|
|
5130
5130
|
},
|
|
5131
5131
|
_updateOpacity: function() {
|
|
5132
|
-
if (this._map && !
|
|
5132
|
+
if (this._map && !z.ielt9) {
|
|
5133
5133
|
bt(this._container, this.options.opacity);
|
|
5134
5134
|
var t = +/* @__PURE__ */ new Date(), e = !1, i = !1;
|
|
5135
5135
|
for (var n in this._tiles) {
|
|
@@ -5231,7 +5231,7 @@ function As() {
|
|
|
5231
5231
|
},
|
|
5232
5232
|
_setZoomTransform: function(t, e, i) {
|
|
5233
5233
|
var n = this._map.getZoomScale(i, t.zoom), o = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e, i)).round();
|
|
5234
|
-
|
|
5234
|
+
z.any3d ? Kt(t.el, o, n) : ot(t.el, o);
|
|
5235
5235
|
},
|
|
5236
5236
|
_resetGrid: function() {
|
|
5237
5237
|
var t = this._map, e = t.options.crs, i = this._tileSize = this.getTileSize(), n = this._tileZoom, o = this._map.getPixelWorldBounds(this._tileZoom);
|
|
@@ -5278,8 +5278,8 @@ function As() {
|
|
|
5278
5278
|
at ? at.current = !0 : c.push(pt);
|
|
5279
5279
|
}
|
|
5280
5280
|
}
|
|
5281
|
-
if (c.sort(function(gt,
|
|
5282
|
-
return gt.distanceTo(r) -
|
|
5281
|
+
if (c.sort(function(gt, me) {
|
|
5282
|
+
return gt.distanceTo(r) - me.distanceTo(r);
|
|
5283
5283
|
}), c.length !== 0) {
|
|
5284
5284
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
5285
5285
|
var xt = document.createDocumentFragment();
|
|
@@ -5333,7 +5333,7 @@ function As() {
|
|
|
5333
5333
|
_initTile: function(t) {
|
|
5334
5334
|
N(t, "leaflet-tile");
|
|
5335
5335
|
var e = this.getTileSize();
|
|
5336
|
-
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = T, t.onmousemove = T,
|
|
5336
|
+
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = T, t.onmousemove = T, z.ielt9 && this.options.opacity < 1 && bt(t, this.options.opacity);
|
|
5337
5337
|
},
|
|
5338
5338
|
_addTile: function(t, e) {
|
|
5339
5339
|
var i = this._getTilePos(t), n = this._tileCoordsToKey(t), o = this.createTile(this._wrapCoords(t), m(this._tileReady, this, t));
|
|
@@ -5356,15 +5356,15 @@ function As() {
|
|
|
5356
5356
|
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (bt(i.el, 0), ht(this._fadeFrame), this._fadeFrame = tt(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (N(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
|
|
5357
5357
|
tile: i.el,
|
|
5358
5358
|
coords: t
|
|
5359
|
-
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"),
|
|
5359
|
+
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), z.ielt9 || !this._map._fadeAnimated ? tt(this._pruneTiles, this) : setTimeout(m(this._pruneTiles, this), 250)));
|
|
5360
5360
|
},
|
|
5361
5361
|
_getTilePos: function(t) {
|
|
5362
5362
|
return t.scaleBy(this.getTileSize()).subtract(this._level.origin);
|
|
5363
5363
|
},
|
|
5364
5364
|
_wrapCoords: function(t) {
|
|
5365
5365
|
var e = new A(
|
|
5366
|
-
this._wrapX ?
|
|
5367
|
-
this._wrapY ?
|
|
5366
|
+
this._wrapX ? R(t.x, this._wrapX) : t.x,
|
|
5367
|
+
this._wrapY ? R(t.y, this._wrapY) : t.y
|
|
5368
5368
|
);
|
|
5369
5369
|
return e.z = t.z, e;
|
|
5370
5370
|
},
|
|
@@ -5382,10 +5382,10 @@ function As() {
|
|
|
5382
5382
|
return !0;
|
|
5383
5383
|
}
|
|
5384
5384
|
});
|
|
5385
|
-
function
|
|
5386
|
-
return new
|
|
5385
|
+
function ds(t) {
|
|
5386
|
+
return new Te(t);
|
|
5387
5387
|
}
|
|
5388
|
-
var
|
|
5388
|
+
var fe = Te.extend({
|
|
5389
5389
|
// @section
|
|
5390
5390
|
// @aka TileLayer options
|
|
5391
5391
|
options: {
|
|
@@ -5427,7 +5427,7 @@ function As() {
|
|
|
5427
5427
|
referrerPolicy: !1
|
|
5428
5428
|
},
|
|
5429
5429
|
initialize: function(t, e) {
|
|
5430
|
-
this._url = t, e =
|
|
5430
|
+
this._url = t, e = S(this, e), e.detectRetina && z.retina && e.maxZoom > 0 ? (e.tileSize = Math.floor(e.tileSize / 2), e.zoomReverse ? (e.zoomOffset--, e.minZoom = Math.min(e.maxZoom, e.minZoom + 1)) : (e.zoomOffset++, e.maxZoom = Math.max(e.minZoom, e.maxZoom - 1)), e.minZoom = Math.max(0, e.minZoom)) : e.zoomReverse ? e.minZoom = Math.min(e.maxZoom, e.minZoom) : e.maxZoom = Math.max(e.minZoom, e.maxZoom), typeof e.subdomains == "string" && (e.subdomains = e.subdomains.split("")), this.on("tileunload", this._onTileRemove);
|
|
5431
5431
|
},
|
|
5432
5432
|
// @method setUrl(url: String, noRedraw?: Boolean): this
|
|
5433
5433
|
// Updates the layer's URL template and redraws it (unless `noRedraw` is set to `true`).
|
|
@@ -5452,7 +5452,7 @@ function As() {
|
|
|
5452
5452
|
// Classes extending `TileLayer` can override this function to provide custom tile URL naming schemes.
|
|
5453
5453
|
getTileUrl: function(t) {
|
|
5454
5454
|
var e = {
|
|
5455
|
-
r:
|
|
5455
|
+
r: z.retina ? "@2x" : "",
|
|
5456
5456
|
s: this._getSubdomain(t),
|
|
5457
5457
|
x: t.x,
|
|
5458
5458
|
y: t.y,
|
|
@@ -5465,7 +5465,7 @@ function As() {
|
|
|
5465
5465
|
return X(this._url, u(e, this.options));
|
|
5466
5466
|
},
|
|
5467
5467
|
_tileOnLoad: function(t, e) {
|
|
5468
|
-
|
|
5468
|
+
z.ielt9 ? setTimeout(m(t, this, null, e), 0) : t(null, e);
|
|
5469
5469
|
},
|
|
5470
5470
|
_tileOnError: function(t, e, i) {
|
|
5471
5471
|
var n = this.options.errorTileUrl;
|
|
@@ -5498,17 +5498,17 @@ function As() {
|
|
|
5498
5498
|
_removeTile: function(t) {
|
|
5499
5499
|
var e = this._tiles[t];
|
|
5500
5500
|
if (e)
|
|
5501
|
-
return e.el.setAttribute("src", mt),
|
|
5501
|
+
return e.el.setAttribute("src", mt), Te.prototype._removeTile.call(this, t);
|
|
5502
5502
|
},
|
|
5503
5503
|
_tileReady: function(t, e, i) {
|
|
5504
5504
|
if (!(!this._map || i && i.getAttribute("src") === mt))
|
|
5505
|
-
return
|
|
5505
|
+
return Te.prototype._tileReady.call(this, t, e, i);
|
|
5506
5506
|
}
|
|
5507
5507
|
});
|
|
5508
|
-
function
|
|
5509
|
-
return new
|
|
5508
|
+
function $n(t, e) {
|
|
5509
|
+
return new fe(t, e);
|
|
5510
5510
|
}
|
|
5511
|
-
var
|
|
5511
|
+
var qn = fe.extend({
|
|
5512
5512
|
// @section
|
|
5513
5513
|
// @aka TileLayer.WMS options
|
|
5514
5514
|
// If any custom options not documented here are used, they will be sent to the
|
|
@@ -5547,17 +5547,17 @@ function As() {
|
|
|
5547
5547
|
var i = u({}, this.defaultWmsParams);
|
|
5548
5548
|
for (var n in e)
|
|
5549
5549
|
n in this.options || (i[n] = e[n]);
|
|
5550
|
-
e =
|
|
5551
|
-
var o = e.detectRetina &&
|
|
5550
|
+
e = S(this, e);
|
|
5551
|
+
var o = e.detectRetina && z.retina ? 2 : 1, r = this.getTileSize();
|
|
5552
5552
|
i.width = r.x * o, i.height = r.y * o, this.wmsParams = i;
|
|
5553
5553
|
},
|
|
5554
5554
|
onAdd: function(t) {
|
|
5555
5555
|
this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
|
|
5556
5556
|
var e = this._wmsVersion >= 1.3 ? "crs" : "srs";
|
|
5557
|
-
this.wmsParams[e] = this._crs.code,
|
|
5557
|
+
this.wmsParams[e] = this._crs.code, fe.prototype.onAdd.call(this, t);
|
|
5558
5558
|
},
|
|
5559
5559
|
getTileUrl: function(t) {
|
|
5560
|
-
var e = this._tileCoordsToNwSe(t), i = this._crs, n = ct(i.project(e[0]), i.project(e[1])), o = n.min, r = n.max, c = (this._wmsVersion >= 1.3 && this._crs ===
|
|
5560
|
+
var e = this._tileCoordsToNwSe(t), i = this._crs, n = ct(i.project(e[0]), i.project(e[1])), o = n.min, r = n.max, c = (this._wmsVersion >= 1.3 && this._crs === Fn ? [o.y, o.x, r.y, r.x] : [o.x, o.y, r.x, r.y]).join(","), d = fe.prototype.getTileUrl.call(this, t);
|
|
5561
5561
|
return d + Y(this.wmsParams, d, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + c;
|
|
5562
5562
|
},
|
|
5563
5563
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
|
@@ -5566,11 +5566,11 @@ function As() {
|
|
|
5566
5566
|
return u(this.wmsParams, t), e || this.redraw(), this;
|
|
5567
5567
|
}
|
|
5568
5568
|
});
|
|
5569
|
-
function
|
|
5570
|
-
return new
|
|
5569
|
+
function fs(t, e) {
|
|
5570
|
+
return new qn(t, e);
|
|
5571
5571
|
}
|
|
5572
|
-
|
|
5573
|
-
var
|
|
5572
|
+
fe.WMS = qn, $n.wms = fs;
|
|
5573
|
+
var Nt = Tt.extend({
|
|
5574
5574
|
// @section
|
|
5575
5575
|
// @aka Renderer options
|
|
5576
5576
|
options: {
|
|
@@ -5580,7 +5580,7 @@ function As() {
|
|
|
5580
5580
|
padding: 0.1
|
|
5581
5581
|
},
|
|
5582
5582
|
initialize: function(t) {
|
|
5583
|
-
|
|
5583
|
+
S(this, t), v(this), this._layers = this._layers || {};
|
|
5584
5584
|
},
|
|
5585
5585
|
onAdd: function() {
|
|
5586
5586
|
this._container || (this._initContainer(), N(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
|
|
@@ -5605,7 +5605,7 @@ function As() {
|
|
|
5605
5605
|
},
|
|
5606
5606
|
_updateTransform: function(t, e) {
|
|
5607
5607
|
var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), o = this._map.project(this._center, e), r = n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t, e));
|
|
5608
|
-
|
|
5608
|
+
z.any3d ? Kt(this._container, r, i) : ot(this._container, r);
|
|
5609
5609
|
},
|
|
5610
5610
|
_reset: function() {
|
|
5611
5611
|
this._update(), this._updateTransform(this._center, this._zoom);
|
|
@@ -5624,7 +5624,7 @@ function As() {
|
|
|
5624
5624
|
var t = this.options.padding, e = this._map.getSize(), i = this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();
|
|
5625
5625
|
this._bounds = new $(i, i.add(e.multiplyBy(1 + t * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
|
|
5626
5626
|
}
|
|
5627
|
-
}),
|
|
5627
|
+
}), Kn = Nt.extend({
|
|
5628
5628
|
// @section
|
|
5629
5629
|
// @aka Canvas options
|
|
5630
5630
|
options: {
|
|
@@ -5633,14 +5633,14 @@ function As() {
|
|
|
5633
5633
|
tolerance: 0
|
|
5634
5634
|
},
|
|
5635
5635
|
getEvents: function() {
|
|
5636
|
-
var t =
|
|
5636
|
+
var t = Nt.prototype.getEvents.call(this);
|
|
5637
5637
|
return t.viewprereset = this._onViewPreReset, t;
|
|
5638
5638
|
},
|
|
5639
5639
|
_onViewPreReset: function() {
|
|
5640
5640
|
this._postponeUpdatePaths = !0;
|
|
5641
5641
|
},
|
|
5642
5642
|
onAdd: function() {
|
|
5643
|
-
|
|
5643
|
+
Nt.prototype.onAdd.call(this), this._draw();
|
|
5644
5644
|
},
|
|
5645
5645
|
_initContainer: function() {
|
|
5646
5646
|
var t = this._container = document.createElement("canvas");
|
|
@@ -5660,13 +5660,13 @@ function As() {
|
|
|
5660
5660
|
},
|
|
5661
5661
|
_update: function() {
|
|
5662
5662
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
5663
|
-
|
|
5664
|
-
var t = this._bounds, e = this._container, i = t.getSize(), n =
|
|
5665
|
-
ot(e, t.min), e.width = n * i.x, e.height = n * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px",
|
|
5663
|
+
Nt.prototype._update.call(this);
|
|
5664
|
+
var t = this._bounds, e = this._container, i = t.getSize(), n = z.retina ? 2 : 1;
|
|
5665
|
+
ot(e, t.min), e.width = n * i.x, e.height = n * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px", z.retina && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update");
|
|
5666
5666
|
}
|
|
5667
5667
|
},
|
|
5668
5668
|
_reset: function() {
|
|
5669
|
-
|
|
5669
|
+
Nt.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !1, this._updatePaths());
|
|
5670
5670
|
},
|
|
5671
5671
|
_initPath: function(t) {
|
|
5672
5672
|
this._updateDashArray(t), this._layers[v(t)] = t;
|
|
@@ -5808,10 +5808,10 @@ function As() {
|
|
|
5808
5808
|
}
|
|
5809
5809
|
}
|
|
5810
5810
|
});
|
|
5811
|
-
function
|
|
5812
|
-
return
|
|
5811
|
+
function Yn(t) {
|
|
5812
|
+
return z.canvas ? new Kn(t) : null;
|
|
5813
5813
|
}
|
|
5814
|
-
var
|
|
5814
|
+
var Ce = (function() {
|
|
5815
5815
|
try {
|
|
5816
5816
|
return document.namespaces.add("lvml", "urn:schemas-microsoft-com:vml"), function(t) {
|
|
5817
5817
|
return document.createElement("<lvml:" + t + ' class="lvml">');
|
|
@@ -5821,16 +5821,16 @@ function As() {
|
|
|
5821
5821
|
return function(t) {
|
|
5822
5822
|
return document.createElement("<" + t + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">');
|
|
5823
5823
|
};
|
|
5824
|
-
})(),
|
|
5824
|
+
})(), ms = {
|
|
5825
5825
|
_initContainer: function() {
|
|
5826
5826
|
this._container = V("div", "leaflet-vml-container");
|
|
5827
5827
|
},
|
|
5828
5828
|
_update: function() {
|
|
5829
|
-
this._map._animatingZoom || (
|
|
5829
|
+
this._map._animatingZoom || (Nt.prototype._update.call(this), this.fire("update"));
|
|
5830
5830
|
},
|
|
5831
5831
|
_initPath: function(t) {
|
|
5832
|
-
var e = t._container =
|
|
5833
|
-
N(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path =
|
|
5832
|
+
var e = t._container = Ce("shape");
|
|
5833
|
+
N(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path = Ce("path"), e.appendChild(t._path), this._updateStyle(t), this._layers[v(t)] = t;
|
|
5834
5834
|
},
|
|
5835
5835
|
_addPath: function(t) {
|
|
5836
5836
|
var e = t._container;
|
|
@@ -5842,7 +5842,7 @@ function As() {
|
|
|
5842
5842
|
},
|
|
5843
5843
|
_updateStyle: function(t) {
|
|
5844
5844
|
var e = t._stroke, i = t._fill, n = t.options, o = t._container;
|
|
5845
|
-
o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (e || (e = t._stroke =
|
|
5845
|
+
o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (e || (e = t._stroke = Ce("stroke")), o.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle = U(n.dashArray) ? n.dashArray.join(" ") : n.dashArray.replace(/( *, *)/g, " ") : e.dashStyle = "", e.endcap = n.lineCap.replace("butt", "flat"), e.joinstyle = n.lineJoin) : e && (o.removeChild(e), t._stroke = null), n.fill ? (i || (i = t._fill = Ce("fill")), o.appendChild(i), i.color = n.fillColor || n.color, i.opacity = n.fillOpacity) : i && (o.removeChild(i), t._fill = null);
|
|
5846
5846
|
},
|
|
5847
5847
|
_updateCircle: function(t) {
|
|
5848
5848
|
var e = t._point.round(), i = Math.round(t._radius), n = Math.round(t._radiusY || i);
|
|
@@ -5852,28 +5852,28 @@ function As() {
|
|
|
5852
5852
|
t._path.v = e;
|
|
5853
5853
|
},
|
|
5854
5854
|
_bringToFront: function(t) {
|
|
5855
|
-
|
|
5855
|
+
ae(t._container);
|
|
5856
5856
|
},
|
|
5857
5857
|
_bringToBack: function(t) {
|
|
5858
|
-
|
|
5858
|
+
le(t._container);
|
|
5859
5859
|
}
|
|
5860
|
-
},
|
|
5860
|
+
}, Xe = z.vml ? Ce : Qi, Se = Nt.extend({
|
|
5861
5861
|
_initContainer: function() {
|
|
5862
|
-
this._container =
|
|
5862
|
+
this._container = Xe("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = Xe("g"), this._container.appendChild(this._rootGroup);
|
|
5863
5863
|
},
|
|
5864
5864
|
_destroyContainer: function() {
|
|
5865
5865
|
Q(this._container), q(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
|
|
5866
5866
|
},
|
|
5867
5867
|
_update: function() {
|
|
5868
5868
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
5869
|
-
|
|
5869
|
+
Nt.prototype._update.call(this);
|
|
5870
5870
|
var t = this._bounds, e = t.getSize(), i = this._container;
|
|
5871
5871
|
(!this._svgSize || !this._svgSize.equals(e)) && (this._svgSize = e, i.setAttribute("width", e.x), i.setAttribute("height", e.y)), ot(i, t.min), i.setAttribute("viewBox", [t.min.x, t.min.y, e.x, e.y].join(" ")), this.fire("update");
|
|
5872
5872
|
}
|
|
5873
5873
|
},
|
|
5874
5874
|
// methods below are called by vector layers implementations
|
|
5875
5875
|
_initPath: function(t) {
|
|
5876
|
-
var e = t._path =
|
|
5876
|
+
var e = t._path = Xe("path");
|
|
5877
5877
|
t.options.className && N(e, t.options.className), t.options.interactive && N(e, "leaflet-interactive"), this._updateStyle(t), this._layers[v(t)] = t;
|
|
5878
5878
|
},
|
|
5879
5879
|
_addPath: function(t) {
|
|
@@ -5890,7 +5890,7 @@ function As() {
|
|
|
5890
5890
|
e && (i.stroke ? (e.setAttribute("stroke", i.color), e.setAttribute("stroke-opacity", i.opacity), e.setAttribute("stroke-width", i.weight), e.setAttribute("stroke-linecap", i.lineCap), e.setAttribute("stroke-linejoin", i.lineJoin), i.dashArray ? e.setAttribute("stroke-dasharray", i.dashArray) : e.removeAttribute("stroke-dasharray"), i.dashOffset ? e.setAttribute("stroke-dashoffset", i.dashOffset) : e.removeAttribute("stroke-dashoffset")) : e.setAttribute("stroke", "none"), i.fill ? (e.setAttribute("fill", i.fillColor || i.color), e.setAttribute("fill-opacity", i.fillOpacity), e.setAttribute("fill-rule", i.fillRule || "evenodd")) : e.setAttribute("fill", "none"));
|
|
5891
5891
|
},
|
|
5892
5892
|
_updatePoly: function(t, e) {
|
|
5893
|
-
this._setPath(t,
|
|
5893
|
+
this._setPath(t, tn(t._parts, e));
|
|
5894
5894
|
},
|
|
5895
5895
|
_updateCircle: function(t) {
|
|
5896
5896
|
var e = t._point, i = Math.max(Math.round(t._radius), 1), n = Math.max(Math.round(t._radiusY), 1) || i, o = "a" + i + "," + n + " 0 1,0 ", r = t._empty() ? "M0 0" : "M" + (e.x - i) + "," + e.y + o + i * 2 + ",0 " + o + -i * 2 + ",0 ";
|
|
@@ -5901,15 +5901,15 @@ function As() {
|
|
|
5901
5901
|
},
|
|
5902
5902
|
// SVG does not have the concept of zIndex so we resort to changing the DOM order of elements
|
|
5903
5903
|
_bringToFront: function(t) {
|
|
5904
|
-
|
|
5904
|
+
ae(t._path);
|
|
5905
5905
|
},
|
|
5906
5906
|
_bringToBack: function(t) {
|
|
5907
|
-
|
|
5907
|
+
le(t._path);
|
|
5908
5908
|
}
|
|
5909
5909
|
});
|
|
5910
|
-
|
|
5911
|
-
function
|
|
5912
|
-
return
|
|
5910
|
+
z.vml && Se.include(ms);
|
|
5911
|
+
function Xn(t) {
|
|
5912
|
+
return z.svg || z.vml ? new Se(t) : null;
|
|
5913
5913
|
}
|
|
5914
5914
|
j.include({
|
|
5915
5915
|
// @namespace Map; @method getRenderer(layer: Path): Renderer
|
|
@@ -5927,12 +5927,12 @@ function As() {
|
|
|
5927
5927
|
return e === void 0 && (e = this._createRenderer({ pane: t }), this._paneRenderers[t] = e), e;
|
|
5928
5928
|
},
|
|
5929
5929
|
_createRenderer: function(t) {
|
|
5930
|
-
return this.options.preferCanvas &&
|
|
5930
|
+
return this.options.preferCanvas && Yn(t) || Xn(t);
|
|
5931
5931
|
}
|
|
5932
5932
|
});
|
|
5933
|
-
var
|
|
5933
|
+
var Jn = ue.extend({
|
|
5934
5934
|
initialize: function(t, e) {
|
|
5935
|
-
|
|
5935
|
+
ue.prototype.initialize.call(this, this._boundsToLatLngs(t), e);
|
|
5936
5936
|
},
|
|
5937
5937
|
// @method setBounds(latLngBounds: LatLngBounds): this
|
|
5938
5938
|
// Redraws the rectangle with the passed bounds.
|
|
@@ -5948,16 +5948,16 @@ function As() {
|
|
|
5948
5948
|
];
|
|
5949
5949
|
}
|
|
5950
5950
|
});
|
|
5951
|
-
function
|
|
5952
|
-
return new
|
|
5951
|
+
function ps(t, e) {
|
|
5952
|
+
return new Jn(t, e);
|
|
5953
5953
|
}
|
|
5954
|
-
|
|
5954
|
+
Se.create = Xe, Se.pointsToPath = tn, Bt.geometryToLayer = Ge, Bt.coordsToLatLng = Ri, Bt.coordsToLatLngs = Ve, Bt.latLngToCoords = Zi, Bt.latLngsToCoords = Ue, Bt.getFeature = de, Bt.asFeature = $e, j.mergeOptions({
|
|
5955
5955
|
// @option boxZoom: Boolean = true
|
|
5956
5956
|
// Whether the map can be zoomed to a rectangular area specified by
|
|
5957
5957
|
// dragging the mouse while pressing the shift key.
|
|
5958
5958
|
boxZoom: !0
|
|
5959
5959
|
});
|
|
5960
|
-
var
|
|
5960
|
+
var Qn = Ot.extend({
|
|
5961
5961
|
initialize: function(t) {
|
|
5962
5962
|
this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this._resetStateTimeout = 0, t.on("unload", this._destroy, this);
|
|
5963
5963
|
},
|
|
@@ -5982,8 +5982,8 @@ function As() {
|
|
|
5982
5982
|
_onMouseDown: function(t) {
|
|
5983
5983
|
if (!t.shiftKey || t.which !== 1 && t.button !== 1)
|
|
5984
5984
|
return !1;
|
|
5985
|
-
this._clearDeferredResetState(), this._resetState(),
|
|
5986
|
-
contextmenu:
|
|
5985
|
+
this._clearDeferredResetState(), this._resetState(), ye(), vi(), this._startPoint = this._map.mouseEventToContainerPoint(t), B(document, {
|
|
5986
|
+
contextmenu: Jt,
|
|
5987
5987
|
mousemove: this._onMouseMove,
|
|
5988
5988
|
mouseup: this._onMouseUp,
|
|
5989
5989
|
keydown: this._onKeyDown
|
|
@@ -5995,8 +5995,8 @@ function As() {
|
|
|
5995
5995
|
ot(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
|
|
5996
5996
|
},
|
|
5997
5997
|
_finish: function() {
|
|
5998
|
-
this._moved && (Q(this._box), it(this._container, "leaflet-crosshair")),
|
|
5999
|
-
contextmenu:
|
|
5998
|
+
this._moved && (Q(this._box), it(this._container, "leaflet-crosshair")), be(), yi(), q(document, {
|
|
5999
|
+
contextmenu: Jt,
|
|
6000
6000
|
mousemove: this._onMouseMove,
|
|
6001
6001
|
mouseup: this._onMouseUp,
|
|
6002
6002
|
keydown: this._onKeyDown
|
|
@@ -6016,7 +6016,7 @@ function As() {
|
|
|
6016
6016
|
t.keyCode === 27 && (this._finish(), this._clearDeferredResetState(), this._resetState());
|
|
6017
6017
|
}
|
|
6018
6018
|
});
|
|
6019
|
-
j.addInitHook("addHandler", "boxZoom",
|
|
6019
|
+
j.addInitHook("addHandler", "boxZoom", Qn), j.mergeOptions({
|
|
6020
6020
|
// @option doubleClickZoom: Boolean|String = true
|
|
6021
6021
|
// Whether the map can be zoomed in by double clicking on it and
|
|
6022
6022
|
// zoomed out by double clicking while holding shift. If passed
|
|
@@ -6024,7 +6024,7 @@ function As() {
|
|
|
6024
6024
|
// view regardless of where the mouse was.
|
|
6025
6025
|
doubleClickZoom: !0
|
|
6026
6026
|
});
|
|
6027
|
-
var
|
|
6027
|
+
var to = Ot.extend({
|
|
6028
6028
|
addHooks: function() {
|
|
6029
6029
|
this._map.on("dblclick", this._onDoubleClick, this);
|
|
6030
6030
|
},
|
|
@@ -6036,7 +6036,7 @@ function As() {
|
|
|
6036
6036
|
e.options.doubleClickZoom === "center" ? e.setZoom(o) : e.setZoomAround(t.containerPoint, o);
|
|
6037
6037
|
}
|
|
6038
6038
|
});
|
|
6039
|
-
j.addInitHook("addHandler", "doubleClickZoom",
|
|
6039
|
+
j.addInitHook("addHandler", "doubleClickZoom", to), j.mergeOptions({
|
|
6040
6040
|
// @option dragging: Boolean = true
|
|
6041
6041
|
// Whether the map is draggable with mouse/touch or not.
|
|
6042
6042
|
dragging: !0,
|
|
@@ -6071,11 +6071,11 @@ function As() {
|
|
|
6071
6071
|
// solid, preventing the user from dragging outside the bounds.
|
|
6072
6072
|
maxBoundsViscosity: 0
|
|
6073
6073
|
});
|
|
6074
|
-
var
|
|
6074
|
+
var eo = Ot.extend({
|
|
6075
6075
|
addHooks: function() {
|
|
6076
6076
|
if (!this._draggable) {
|
|
6077
6077
|
var t = this._map;
|
|
6078
|
-
this._draggable = new
|
|
6078
|
+
this._draggable = new Ht(t._mapPane, t._container), this._draggable.on({
|
|
6079
6079
|
dragstart: this._onDragStart,
|
|
6080
6080
|
drag: this._onDrag,
|
|
6081
6081
|
dragend: this._onDragEnd
|
|
@@ -6150,7 +6150,7 @@ function As() {
|
|
|
6150
6150
|
}
|
|
6151
6151
|
}
|
|
6152
6152
|
});
|
|
6153
|
-
j.addInitHook("addHandler", "dragging",
|
|
6153
|
+
j.addInitHook("addHandler", "dragging", eo), j.mergeOptions({
|
|
6154
6154
|
// @option keyboard: Boolean = true
|
|
6155
6155
|
// Makes the map focusable and allows users to navigate the map with keyboard
|
|
6156
6156
|
// arrows and `+`/`-` keys.
|
|
@@ -6159,7 +6159,7 @@ function As() {
|
|
|
6159
6159
|
// Amount of pixels to pan when pressing an arrow key.
|
|
6160
6160
|
keyboardPanDelta: 80
|
|
6161
6161
|
});
|
|
6162
|
-
var
|
|
6162
|
+
var io = Ot.extend({
|
|
6163
6163
|
keyCodes: {
|
|
6164
6164
|
left: [37],
|
|
6165
6165
|
right: [39],
|
|
@@ -6244,11 +6244,11 @@ function As() {
|
|
|
6244
6244
|
i.closePopup();
|
|
6245
6245
|
else
|
|
6246
6246
|
return;
|
|
6247
|
-
|
|
6247
|
+
Jt(t);
|
|
6248
6248
|
}
|
|
6249
6249
|
}
|
|
6250
6250
|
});
|
|
6251
|
-
j.addInitHook("addHandler", "keyboard",
|
|
6251
|
+
j.addInitHook("addHandler", "keyboard", io), j.mergeOptions({
|
|
6252
6252
|
// @section Mouse wheel options
|
|
6253
6253
|
// @option scrollWheelZoom: Boolean|String = true
|
|
6254
6254
|
// Whether the map can be zoomed by using the mouse wheel. If passed `'center'`,
|
|
@@ -6264,7 +6264,7 @@ function As() {
|
|
|
6264
6264
|
// faster (and vice versa).
|
|
6265
6265
|
wheelPxPerZoomLevel: 60
|
|
6266
6266
|
});
|
|
6267
|
-
var
|
|
6267
|
+
var no = Ot.extend({
|
|
6268
6268
|
addHooks: function() {
|
|
6269
6269
|
B(this._map._container, "wheel", this._onWheelScroll, this), this._delta = 0;
|
|
6270
6270
|
},
|
|
@@ -6272,10 +6272,10 @@ function As() {
|
|
|
6272
6272
|
q(this._map._container, "wheel", this._onWheelScroll, this);
|
|
6273
6273
|
},
|
|
6274
6274
|
_onWheelScroll: function(t) {
|
|
6275
|
-
var e =
|
|
6275
|
+
var e = Cn(t), i = this._map.options.wheelDebounceTime;
|
|
6276
6276
|
this._delta += e, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime = +/* @__PURE__ */ new Date());
|
|
6277
6277
|
var n = Math.max(i - (+/* @__PURE__ */ new Date() - this._startTime), 0);
|
|
6278
|
-
clearTimeout(this._timer), this._timer = setTimeout(m(this._performZoom, this), n),
|
|
6278
|
+
clearTimeout(this._timer), this._timer = setTimeout(m(this._performZoom, this), n), Jt(t);
|
|
6279
6279
|
},
|
|
6280
6280
|
_performZoom: function() {
|
|
6281
6281
|
var t = this._map, e = t.getZoom(), i = this._map.options.zoomSnap || 0;
|
|
@@ -6284,19 +6284,19 @@ function As() {
|
|
|
6284
6284
|
this._delta = 0, this._startTime = null, c && (t.options.scrollWheelZoom === "center" ? t.setZoom(e + c) : t.setZoomAround(this._lastMousePos, e + c));
|
|
6285
6285
|
}
|
|
6286
6286
|
});
|
|
6287
|
-
j.addInitHook("addHandler", "scrollWheelZoom",
|
|
6288
|
-
var
|
|
6287
|
+
j.addInitHook("addHandler", "scrollWheelZoom", no);
|
|
6288
|
+
var _s = 600;
|
|
6289
6289
|
j.mergeOptions({
|
|
6290
6290
|
// @section Touch interaction options
|
|
6291
6291
|
// @option tapHold: Boolean
|
|
6292
6292
|
// Enables simulation of `contextmenu` event, default is `true` for mobile Safari.
|
|
6293
|
-
tapHold:
|
|
6293
|
+
tapHold: z.touchNative && z.safari && z.mobile,
|
|
6294
6294
|
// @option tapTolerance: Number = 15
|
|
6295
6295
|
// The max number of pixels a user can shift his finger during touch
|
|
6296
6296
|
// for it to be considered a valid tap.
|
|
6297
6297
|
tapTolerance: 15
|
|
6298
6298
|
});
|
|
6299
|
-
var
|
|
6299
|
+
var oo = Ot.extend({
|
|
6300
6300
|
addHooks: function() {
|
|
6301
6301
|
B(this._map._container, "touchstart", this._onDown, this);
|
|
6302
6302
|
},
|
|
@@ -6308,7 +6308,7 @@ function As() {
|
|
|
6308
6308
|
var e = t.touches[0];
|
|
6309
6309
|
this._startPos = this._newPos = new A(e.clientX, e.clientY), this._holdTimeout = setTimeout(m(function() {
|
|
6310
6310
|
this._cancel(), this._isTapValid() && (B(document, "touchend", dt), B(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
|
|
6311
|
-
}, this),
|
|
6311
|
+
}, this), _s), B(document, "touchend touchcancel contextmenu", this._cancel, this), B(document, "touchmove", this._onMove, this);
|
|
6312
6312
|
}
|
|
6313
6313
|
},
|
|
6314
6314
|
_cancelClickPrevent: function t() {
|
|
@@ -6340,20 +6340,20 @@ function As() {
|
|
|
6340
6340
|
i._simulated = !0, e.target.dispatchEvent(i);
|
|
6341
6341
|
}
|
|
6342
6342
|
});
|
|
6343
|
-
j.addInitHook("addHandler", "tapHold",
|
|
6343
|
+
j.addInitHook("addHandler", "tapHold", oo), j.mergeOptions({
|
|
6344
6344
|
// @section Touch interaction options
|
|
6345
6345
|
// @option touchZoom: Boolean|String = *
|
|
6346
6346
|
// Whether the map can be zoomed by touch-dragging with two fingers. If
|
|
6347
6347
|
// passed `'center'`, it will zoom to the center of the view regardless of
|
|
6348
6348
|
// where the touch events (fingers) were. Enabled for touch-capable web
|
|
6349
6349
|
// browsers.
|
|
6350
|
-
touchZoom:
|
|
6350
|
+
touchZoom: z.touch,
|
|
6351
6351
|
// @option bounceAtZoomLimits: Boolean = true
|
|
6352
6352
|
// Set it to false if you don't want the map to zoom beyond min/max zoom
|
|
6353
6353
|
// and then bounce back when pinch-zooming.
|
|
6354
6354
|
bounceAtZoomLimits: !0
|
|
6355
6355
|
});
|
|
6356
|
-
var
|
|
6356
|
+
var ro = Ot.extend({
|
|
6357
6357
|
addHooks: function() {
|
|
6358
6358
|
N(this._map._container, "leaflet-touch-zoom"), B(this._map._container, "touchstart", this._onTouchStart, this);
|
|
6359
6359
|
},
|
|
@@ -6392,32 +6392,32 @@ function As() {
|
|
|
6392
6392
|
this._zooming = !1, ht(this._animRequest), q(document, "touchmove", this._onTouchMove, this), q(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
6393
6393
|
}
|
|
6394
6394
|
});
|
|
6395
|
-
j.addInitHook("addHandler", "touchZoom",
|
|
6396
|
-
var
|
|
6395
|
+
j.addInitHook("addHandler", "touchZoom", ro), j.BoxZoom = Qn, j.DoubleClickZoom = to, j.Drag = eo, j.Keyboard = io, j.ScrollWheelZoom = no, j.TapHold = oo, j.TouchZoom = ro, a.Bounds = $, a.Browser = z, a.CRS = _t, a.Canvas = Kn, a.Circle = Ii, a.CircleMarker = je, a.Class = vt, a.Control = kt, a.DivIcon = Un, a.DivOverlay = At, a.DomEvent = Ir, a.DomUtil = Or, a.Draggable = Ht, a.Evented = yt, a.FeatureGroup = Rt, a.GeoJSON = Bt, a.GridLayer = Te, a.Handler = Ot, a.Icon = ce, a.ImageOverlay = qe, a.LatLng = I, a.LatLngBounds = ut, a.Layer = Tt, a.LayerGroup = he, a.LineUtil = $r, a.Map = j, a.Marker = He, a.Mixin = Wr, a.Path = jt, a.Point = A, a.PolyUtil = Hr, a.Polygon = ue, a.Polyline = Zt, a.Popup = Ke, a.PosAnimation = Sn, a.Projection = qr, a.Rectangle = Jn, a.Renderer = Nt, a.SVG = Se, a.SVGOverlay = Vn, a.TileLayer = fe, a.Tooltip = Ye, a.Transformation = Wt, a.Util = Ae, a.VideoOverlay = Gn, a.bind = m, a.bounds = ct, a.canvas = Yn, a.circle = is, a.circleMarker = es, a.control = Pe, a.divIcon = us, a.extend = u, a.featureGroup = Jr, a.geoJSON = jn, a.geoJson = rs, a.gridLayer = ds, a.icon = Qr, a.imageOverlay = ss, a.latLng = M, a.latLngBounds = J, a.layerGroup = Xr, a.map = Rr, a.marker = ts, a.point = y, a.polygon = os, a.polyline = ns, a.popup = hs, a.rectangle = ps, a.setOptions = S, a.stamp = v, a.svg = Xn, a.svgOverlay = ls, a.tileLayer = $n, a.tooltip = cs, a.transformation = zt, a.version = h, a.videoOverlay = as;
|
|
6396
|
+
var gs = window.L;
|
|
6397
6397
|
a.noConflict = function() {
|
|
6398
|
-
return window.L =
|
|
6398
|
+
return window.L = gs, this;
|
|
6399
6399
|
}, window.L = a;
|
|
6400
6400
|
}));
|
|
6401
|
-
})(
|
|
6401
|
+
})(Ee, Ee.exports)), Ee.exports;
|
|
6402
6402
|
}
|
|
6403
|
-
var
|
|
6404
|
-
const
|
|
6405
|
-
function
|
|
6403
|
+
var Vt = js();
|
|
6404
|
+
const So = /* @__PURE__ */ Ts(Vt), Gs = window.React.useEffect, Di = window.React.useRef;
|
|
6405
|
+
function pe(s, l, a) {
|
|
6406
6406
|
return Object.freeze({
|
|
6407
6407
|
instance: s,
|
|
6408
6408
|
context: l,
|
|
6409
6409
|
container: a
|
|
6410
6410
|
});
|
|
6411
6411
|
}
|
|
6412
|
-
function
|
|
6412
|
+
function ai(s, l) {
|
|
6413
6413
|
return l == null ? function(h, u) {
|
|
6414
|
-
const p =
|
|
6414
|
+
const p = Di(void 0);
|
|
6415
6415
|
return p.current || (p.current = s(h, u)), p;
|
|
6416
6416
|
} : function(h, u) {
|
|
6417
|
-
const p =
|
|
6417
|
+
const p = Di(void 0);
|
|
6418
6418
|
p.current || (p.current = s(h, u));
|
|
6419
|
-
const m =
|
|
6420
|
-
return
|
|
6419
|
+
const m = Di(h), { instance: b } = p.current;
|
|
6420
|
+
return Gs(function() {
|
|
6421
6421
|
m.current !== h && (l(b, h, m.current), m.current = h);
|
|
6422
6422
|
}, [
|
|
6423
6423
|
b,
|
|
@@ -6426,9 +6426,9 @@ function si(s, l) {
|
|
|
6426
6426
|
]), p;
|
|
6427
6427
|
};
|
|
6428
6428
|
}
|
|
6429
|
-
const
|
|
6430
|
-
function
|
|
6431
|
-
|
|
6429
|
+
const Vs = window.React.useEffect;
|
|
6430
|
+
function zo(s, l) {
|
|
6431
|
+
Vs(function() {
|
|
6432
6432
|
return (l.layerContainer ?? l.map).addLayer(s.instance), function() {
|
|
6433
6433
|
l.layerContainer?.removeLayer(s.instance), l.map.removeLayer(s.instance);
|
|
6434
6434
|
};
|
|
@@ -6437,16 +6437,16 @@ function Co(s, l) {
|
|
|
6437
6437
|
s
|
|
6438
6438
|
]);
|
|
6439
6439
|
}
|
|
6440
|
-
function
|
|
6440
|
+
function Mo(s) {
|
|
6441
6441
|
return function(a) {
|
|
6442
|
-
const h =
|
|
6443
|
-
return
|
|
6442
|
+
const h = ri(), u = s(si(a, h), h);
|
|
6443
|
+
return To(h.map, a.attribution), qi(u.current, a.eventHandlers), zo(u.current, h), u;
|
|
6444
6444
|
};
|
|
6445
6445
|
}
|
|
6446
|
-
const
|
|
6447
|
-
function
|
|
6448
|
-
const a =
|
|
6449
|
-
|
|
6446
|
+
const Us = window.React.useEffect, $s = window.React.useRef;
|
|
6447
|
+
function qs(s, l) {
|
|
6448
|
+
const a = $s(void 0);
|
|
6449
|
+
Us(function() {
|
|
6450
6450
|
if (l.pathOptions !== a.current) {
|
|
6451
6451
|
const u = l.pathOptions ?? {};
|
|
6452
6452
|
s.instance.setStyle(u), a.current = u;
|
|
@@ -6456,91 +6456,91 @@ function Ns(s, l) {
|
|
|
6456
6456
|
l
|
|
6457
6457
|
]);
|
|
6458
6458
|
}
|
|
6459
|
-
function
|
|
6459
|
+
function Ks(s) {
|
|
6460
6460
|
return function(a) {
|
|
6461
|
-
const h =
|
|
6462
|
-
return
|
|
6461
|
+
const h = ri(), u = s(si(a, h), h);
|
|
6462
|
+
return qi(u.current, a.eventHandlers), zo(u.current, h), qs(u.current, a), u;
|
|
6463
6463
|
};
|
|
6464
6464
|
}
|
|
6465
|
-
function
|
|
6466
|
-
const a =
|
|
6467
|
-
return
|
|
6465
|
+
function Ys(s, l) {
|
|
6466
|
+
const a = ai(s, l), h = Mo(a);
|
|
6467
|
+
return Co(h);
|
|
6468
6468
|
}
|
|
6469
|
-
function
|
|
6470
|
-
const a =
|
|
6471
|
-
return
|
|
6469
|
+
function Xs(s, l) {
|
|
6470
|
+
const a = ai(s), h = Ws(a, l);
|
|
6471
|
+
return Bs(h);
|
|
6472
6472
|
}
|
|
6473
|
-
function
|
|
6474
|
-
const a =
|
|
6475
|
-
return
|
|
6473
|
+
function Ki(s, l) {
|
|
6474
|
+
const a = ai(s, l), h = Ks(a);
|
|
6475
|
+
return Co(h);
|
|
6476
6476
|
}
|
|
6477
|
-
function
|
|
6478
|
-
const a =
|
|
6479
|
-
return
|
|
6477
|
+
function Js(s, l) {
|
|
6478
|
+
const a = ai(s, l), h = Mo(a);
|
|
6479
|
+
return Ns(h);
|
|
6480
6480
|
}
|
|
6481
|
-
function
|
|
6481
|
+
function Qs(s, l, a) {
|
|
6482
6482
|
const { opacity: h, zIndex: u } = l;
|
|
6483
6483
|
h != null && h !== a.opacity && s.setOpacity(h), u != null && u !== a.zIndex && s.setZIndex(u);
|
|
6484
6484
|
}
|
|
6485
6485
|
window.React.useEffect;
|
|
6486
|
-
function
|
|
6487
|
-
return
|
|
6486
|
+
function ta() {
|
|
6487
|
+
return ri().map;
|
|
6488
6488
|
}
|
|
6489
|
-
const
|
|
6490
|
-
function
|
|
6491
|
-
const [D] =
|
|
6489
|
+
const co = window.React, ea = window.React.forwardRef, ia = window.React.useCallback, na = window.React.useEffect, oa = window.React.useImperativeHandle, ra = window.React.useRef, uo = window.React.useState;
|
|
6490
|
+
function sa({ bounds: s, boundsOptions: l, center: a, children: h, className: u, id: p, placeholder: m, style: b, whenReady: v, zoom: g, ...R }, T) {
|
|
6491
|
+
const [D] = uo({
|
|
6492
6492
|
className: u,
|
|
6493
6493
|
id: p,
|
|
6494
6494
|
style: b
|
|
6495
|
-
}), [
|
|
6496
|
-
|
|
6497
|
-
|
|
6495
|
+
}), [Z, G] = uo(null), S = ra(void 0);
|
|
6496
|
+
oa(T, () => Z?.map ?? null, [
|
|
6497
|
+
Z
|
|
6498
6498
|
]);
|
|
6499
|
-
const Y =
|
|
6500
|
-
if (X !== null && !
|
|
6501
|
-
const U = new
|
|
6502
|
-
|
|
6499
|
+
const Y = ia((X) => {
|
|
6500
|
+
if (X !== null && !S.current) {
|
|
6501
|
+
const U = new Vt.Map(X, R);
|
|
6502
|
+
S.current = U, a != null && g != null ? U.setView(a, g) : s != null && U.fitBounds(s, l), v != null && U.whenReady(v), G(Os(U));
|
|
6503
6503
|
}
|
|
6504
6504
|
}, []);
|
|
6505
|
-
|
|
6506
|
-
|
|
6505
|
+
na(() => () => {
|
|
6506
|
+
Z?.map.remove();
|
|
6507
6507
|
}, [
|
|
6508
|
-
|
|
6508
|
+
Z
|
|
6509
6509
|
]);
|
|
6510
|
-
const ft =
|
|
6511
|
-
value:
|
|
6510
|
+
const ft = Z ? /* @__PURE__ */ co.createElement(Vi, {
|
|
6511
|
+
value: Z
|
|
6512
6512
|
}, h) : m ?? null;
|
|
6513
|
-
return /* @__PURE__ */
|
|
6513
|
+
return /* @__PURE__ */ co.createElement("div", {
|
|
6514
6514
|
...D,
|
|
6515
6515
|
ref: Y
|
|
6516
6516
|
}, ft);
|
|
6517
6517
|
}
|
|
6518
|
-
const
|
|
6519
|
-
const u = new
|
|
6520
|
-
return
|
|
6518
|
+
const aa = /* @__PURE__ */ ea(sa), la = Ys(function({ position: l, ...a }, h) {
|
|
6519
|
+
const u = new Vt.Marker(l, a);
|
|
6520
|
+
return pe(u, oi(h, {
|
|
6521
6521
|
overlayContainer: u
|
|
6522
6522
|
}));
|
|
6523
6523
|
}, function(l, a, h) {
|
|
6524
6524
|
a.position !== h.position && l.setLatLng(a.position), a.icon != null && a.icon !== h.icon && l.setIcon(a.icon), a.zIndexOffset != null && a.zIndexOffset !== h.zIndexOffset && l.setZIndexOffset(a.zIndexOffset), a.opacity != null && a.opacity !== h.opacity && l.setOpacity(a.opacity), l.dragging != null && a.draggable !== h.draggable && (a.draggable === !0 ? l.dragging.enable() : l.dragging.disable());
|
|
6525
|
-
}),
|
|
6526
|
-
const u = new
|
|
6527
|
-
return
|
|
6525
|
+
}), ha = Ki(function({ positions: l, ...a }, h) {
|
|
6526
|
+
const u = new Vt.Polygon(l, a);
|
|
6527
|
+
return pe(u, oi(h, {
|
|
6528
6528
|
overlayContainer: u
|
|
6529
6529
|
}));
|
|
6530
6530
|
}, function(l, a, h) {
|
|
6531
6531
|
a.positions !== h.positions && l.setLatLngs(a.positions);
|
|
6532
|
-
}),
|
|
6533
|
-
const u = new
|
|
6534
|
-
return
|
|
6532
|
+
}), fo = Ki(function({ positions: l, ...a }, h) {
|
|
6533
|
+
const u = new Vt.Polyline(l, a);
|
|
6534
|
+
return pe(u, oi(h, {
|
|
6535
6535
|
overlayContainer: u
|
|
6536
6536
|
}));
|
|
6537
6537
|
}, function(l, a, h) {
|
|
6538
6538
|
a.positions !== h.positions && l.setLatLngs(a.positions);
|
|
6539
|
-
}),
|
|
6540
|
-
const h = new
|
|
6541
|
-
return
|
|
6539
|
+
}), ca = window.React.useEffect, Fi = Xs(function(l, a) {
|
|
6540
|
+
const h = new Vt.Popup(l, a.overlayContainer);
|
|
6541
|
+
return pe(h, a);
|
|
6542
6542
|
}, function(l, a, { position: h }, u) {
|
|
6543
|
-
|
|
6543
|
+
ca(function() {
|
|
6544
6544
|
const { instance: m } = l;
|
|
6545
6545
|
function b(g) {
|
|
6546
6546
|
g.popup === m && (m.update(), u(!0));
|
|
@@ -6563,57 +6563,63 @@ const Xs = /* @__PURE__ */ Vs(Ys), Js = Fs(function({ position: l, ...a }, h) {
|
|
|
6563
6563
|
u,
|
|
6564
6564
|
h
|
|
6565
6565
|
]);
|
|
6566
|
-
}),
|
|
6567
|
-
const u = new
|
|
6568
|
-
return
|
|
6566
|
+
}), mo = Ki(function({ bounds: l, ...a }, h) {
|
|
6567
|
+
const u = new Vt.Rectangle(l, a);
|
|
6568
|
+
return pe(u, oi(h, {
|
|
6569
6569
|
overlayContainer: u
|
|
6570
6570
|
}));
|
|
6571
6571
|
}, function(l, a, h) {
|
|
6572
6572
|
a.bounds !== h.bounds && l.setBounds(a.bounds);
|
|
6573
|
-
}),
|
|
6574
|
-
const u = new
|
|
6575
|
-
return
|
|
6573
|
+
}), ua = Js(function({ url: l, ...a }, h) {
|
|
6574
|
+
const u = new Vt.TileLayer(l, si(a, h));
|
|
6575
|
+
return pe(u, h);
|
|
6576
6576
|
}, function(l, a, h) {
|
|
6577
|
-
|
|
6577
|
+
Qs(l, a, h);
|
|
6578
6578
|
const { url: u } = a;
|
|
6579
6579
|
u != null && u !== h.url && l.setUrl(u);
|
|
6580
|
-
})
|
|
6581
|
-
|
|
6580
|
+
});
|
|
6581
|
+
var da = Object.defineProperty, Yi = (s, l) => da(s, "name", { value: l, configurable: !0 });
|
|
6582
|
+
const fa = window.React;
|
|
6583
|
+
function Hi(s, l) {
|
|
6582
6584
|
if (typeof s == "function")
|
|
6583
6585
|
return s(l);
|
|
6584
6586
|
s != null && (s.current = l);
|
|
6585
6587
|
}
|
|
6586
|
-
|
|
6588
|
+
Yi(Hi, "setRef");
|
|
6589
|
+
function Eo(...s) {
|
|
6587
6590
|
return (l) => {
|
|
6588
6591
|
let a = !1;
|
|
6589
6592
|
const h = s.map((u) => {
|
|
6590
|
-
const p =
|
|
6593
|
+
const p = Hi(u, l);
|
|
6591
6594
|
return !a && typeof p == "function" && (a = !0), p;
|
|
6592
6595
|
});
|
|
6593
6596
|
if (a)
|
|
6594
6597
|
return () => {
|
|
6595
6598
|
for (let u = 0; u < h.length; u++) {
|
|
6596
6599
|
const p = h[u];
|
|
6597
|
-
typeof p == "function" ? p() :
|
|
6600
|
+
typeof p == "function" ? p() : Hi(s[u], null);
|
|
6598
6601
|
}
|
|
6599
6602
|
};
|
|
6600
6603
|
};
|
|
6601
6604
|
}
|
|
6602
|
-
|
|
6603
|
-
|
|
6605
|
+
Yi(Eo, "composeRefs");
|
|
6606
|
+
function Oo(...s) {
|
|
6607
|
+
return fa.useCallback(Eo(...s), s);
|
|
6604
6608
|
}
|
|
6609
|
+
Yi(Oo, "useComposedRefs");
|
|
6610
|
+
var ma = Object.defineProperty, St = (s, l) => ma(s, "name", { value: l, configurable: !0 });
|
|
6605
6611
|
const Pt = window.React;
|
|
6606
6612
|
// @__NO_SIDE_EFFECTS__
|
|
6607
|
-
function
|
|
6613
|
+
function Ao(s) {
|
|
6608
6614
|
const l = Pt.forwardRef((a, h) => {
|
|
6609
6615
|
let { children: u, ...p } = a, m = null, b = !1;
|
|
6610
6616
|
const v = [];
|
|
6611
|
-
|
|
6612
|
-
if (
|
|
6617
|
+
ji(u) && typeof Qe == "function" && (u = Qe(u._payload)), Pt.Children.forEach(u, (D) => {
|
|
6618
|
+
if (Bo(D)) {
|
|
6613
6619
|
b = !0;
|
|
6614
|
-
const
|
|
6615
|
-
let G = "child" in
|
|
6616
|
-
|
|
6620
|
+
const Z = D;
|
|
6621
|
+
let G = "child" in Z.props ? Z.props.child : Z.props.children;
|
|
6622
|
+
ji(G) && typeof Qe == "function" && (G = Qe(G._payload)), m = ga(Z, G), v.push(m?.props?.children);
|
|
6617
6623
|
} else
|
|
6618
6624
|
v.push(D);
|
|
6619
6625
|
}), m ? m = Pt.cloneElement(m, void 0, v) : (
|
|
@@ -6623,27 +6629,35 @@ function ra(s) {
|
|
|
6623
6629
|
// itself as the slot target — throw a descriptive error below instead.
|
|
6624
6630
|
!b && Pt.Children.count(u) === 1 && Pt.isValidElement(u) && (m = u)
|
|
6625
6631
|
);
|
|
6626
|
-
const g = m ?
|
|
6632
|
+
const g = m ? Zo(m) : void 0, R = Oo(h, g);
|
|
6627
6633
|
if (!m) {
|
|
6628
6634
|
if (u || u === 0)
|
|
6629
6635
|
throw new Error(
|
|
6630
|
-
b ?
|
|
6636
|
+
b ? ba(s) : ya(s)
|
|
6631
6637
|
);
|
|
6632
6638
|
return u;
|
|
6633
6639
|
}
|
|
6634
|
-
const T =
|
|
6635
|
-
return m.type !== Pt.Fragment && (T.ref = h ?
|
|
6640
|
+
const T = Ro(p, m.props ?? {});
|
|
6641
|
+
return m.type !== Pt.Fragment && (T.ref = h ? R : g), Pt.cloneElement(m, T);
|
|
6636
6642
|
});
|
|
6637
6643
|
return l.displayName = `${s}.Slot`, l;
|
|
6638
6644
|
}
|
|
6639
|
-
|
|
6645
|
+
St(Ao, "createSlot");
|
|
6646
|
+
var pa = /* @__PURE__ */ Ao("Slot"), Io = /* @__PURE__ */ Symbol.for("radix.slottable");
|
|
6647
|
+
// @__NO_SIDE_EFFECTS__
|
|
6648
|
+
function _a(s) {
|
|
6649
|
+
const l = /* @__PURE__ */ St((a) => "child" in a ? a.children(a.child) : a.children, "Slottable");
|
|
6650
|
+
return l.displayName = `${s}.Slottable`, l.__radixId = Io, l;
|
|
6651
|
+
}
|
|
6652
|
+
St(_a, "createSlottable");
|
|
6653
|
+
var ga = /* @__PURE__ */ St((s, l) => {
|
|
6640
6654
|
if ("child" in s.props) {
|
|
6641
6655
|
const a = s.props.child;
|
|
6642
6656
|
return Pt.isValidElement(a) ? Pt.cloneElement(a, void 0, s.props.children(a.props.children)) : null;
|
|
6643
6657
|
}
|
|
6644
6658
|
return Pt.isValidElement(l) ? l : null;
|
|
6645
|
-
};
|
|
6646
|
-
function
|
|
6659
|
+
}, "getSlottableElementFromSlottable");
|
|
6660
|
+
function Ro(s, l) {
|
|
6647
6661
|
const a = { ...l };
|
|
6648
6662
|
for (const h in l) {
|
|
6649
6663
|
const u = s[h], p = l[h];
|
|
@@ -6654,171 +6668,176 @@ function ha(s, l) {
|
|
|
6654
6668
|
}
|
|
6655
6669
|
return { ...s, ...a };
|
|
6656
6670
|
}
|
|
6657
|
-
|
|
6671
|
+
St(Ro, "mergeProps");
|
|
6672
|
+
function Zo(s) {
|
|
6658
6673
|
let l = Object.getOwnPropertyDescriptor(s.props, "ref")?.get, a = l && "isReactWarning" in l && l.isReactWarning;
|
|
6659
6674
|
return a ? s.ref : (l = Object.getOwnPropertyDescriptor(s, "ref")?.get, a = l && "isReactWarning" in l && l.isReactWarning, a ? s.props.ref : s.props.ref || s.ref);
|
|
6660
6675
|
}
|
|
6661
|
-
|
|
6662
|
-
|
|
6676
|
+
St(Zo, "getElementRef");
|
|
6677
|
+
function Bo(s) {
|
|
6678
|
+
return Pt.isValidElement(s) && typeof s.type == "function" && "__radixId" in s.type && s.type.__radixId === Io;
|
|
6663
6679
|
}
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6680
|
+
St(Bo, "isSlottable");
|
|
6681
|
+
var va = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
6682
|
+
function ji(s) {
|
|
6683
|
+
return s != null && typeof s == "object" && "$$typeof" in s && s.$$typeof === va && "_payload" in s && No(s._payload);
|
|
6667
6684
|
}
|
|
6668
|
-
|
|
6685
|
+
St(ji, "isLazyComponent");
|
|
6686
|
+
function No(s) {
|
|
6669
6687
|
return typeof s == "object" && s !== null && "then" in s;
|
|
6670
6688
|
}
|
|
6671
|
-
|
|
6672
|
-
|
|
6689
|
+
St(No, "isPromiseLike");
|
|
6690
|
+
var ya = /* @__PURE__ */ St((s) => `${s} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), ba = /* @__PURE__ */ St((s) => `${s} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), Qe = Pt[" use ".trim().toString()];
|
|
6691
|
+
function Do(s) {
|
|
6673
6692
|
var l, a, h = "";
|
|
6674
6693
|
if (typeof s == "string" || typeof s == "number") h += s;
|
|
6675
6694
|
else if (typeof s == "object") if (Array.isArray(s)) {
|
|
6676
6695
|
var u = s.length;
|
|
6677
|
-
for (l = 0; l < u; l++) s[l] && (a =
|
|
6696
|
+
for (l = 0; l < u; l++) s[l] && (a = Do(s[l])) && (h && (h += " "), h += a);
|
|
6678
6697
|
} else for (a in s) s[a] && (h && (h += " "), h += a);
|
|
6679
6698
|
return h;
|
|
6680
6699
|
}
|
|
6681
|
-
function
|
|
6682
|
-
for (var s, l, a = 0, h = "", u = arguments.length; a < u; a++) (s = arguments[a]) && (l =
|
|
6700
|
+
function Fo() {
|
|
6701
|
+
for (var s, l, a = 0, h = "", u = arguments.length; a < u; a++) (s = arguments[a]) && (l = Do(s)) && (h && (h += " "), h += l);
|
|
6683
6702
|
return h;
|
|
6684
6703
|
}
|
|
6685
|
-
const
|
|
6704
|
+
const po = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, _o = Fo, wa = (s, l) => (a) => {
|
|
6686
6705
|
var h;
|
|
6687
|
-
if (l?.variants == null) return
|
|
6706
|
+
if (l?.variants == null) return _o(s, a?.class, a?.className);
|
|
6688
6707
|
const { variants: u, defaultVariants: p } = l, m = Object.keys(u).map((g) => {
|
|
6689
|
-
const
|
|
6690
|
-
if (
|
|
6691
|
-
const D =
|
|
6708
|
+
const R = a?.[g], T = p?.[g];
|
|
6709
|
+
if (R === null) return null;
|
|
6710
|
+
const D = po(R) || po(T);
|
|
6692
6711
|
return u[g][D];
|
|
6693
|
-
}), b = a && Object.entries(a).reduce((g,
|
|
6694
|
-
let [T, D] =
|
|
6712
|
+
}), b = a && Object.entries(a).reduce((g, R) => {
|
|
6713
|
+
let [T, D] = R;
|
|
6695
6714
|
return D === void 0 || (g[T] = D), g;
|
|
6696
|
-
}, {}), v = l == null || (h = l.compoundVariants) === null || h === void 0 ? void 0 : h.reduce((g,
|
|
6697
|
-
let { class: T, className: D, ...
|
|
6698
|
-
return Object.entries(
|
|
6699
|
-
let [
|
|
6715
|
+
}, {}), v = l == null || (h = l.compoundVariants) === null || h === void 0 ? void 0 : h.reduce((g, R) => {
|
|
6716
|
+
let { class: T, className: D, ...Z } = R;
|
|
6717
|
+
return Object.entries(Z).every((G) => {
|
|
6718
|
+
let [S, Y] = G;
|
|
6700
6719
|
return Array.isArray(Y) ? Y.includes({
|
|
6701
6720
|
...p,
|
|
6702
6721
|
...b
|
|
6703
|
-
}[
|
|
6722
|
+
}[S]) : {
|
|
6704
6723
|
...p,
|
|
6705
6724
|
...b
|
|
6706
|
-
}[
|
|
6725
|
+
}[S] === Y;
|
|
6707
6726
|
}) ? [
|
|
6708
6727
|
...g,
|
|
6709
6728
|
T,
|
|
6710
6729
|
D
|
|
6711
6730
|
] : g;
|
|
6712
6731
|
}, []);
|
|
6713
|
-
return
|
|
6714
|
-
},
|
|
6732
|
+
return _o(s, m, v, a?.class, a?.className);
|
|
6733
|
+
}, xa = (s, l) => {
|
|
6715
6734
|
const a = new Array(s.length + l.length);
|
|
6716
6735
|
for (let h = 0; h < s.length; h++)
|
|
6717
6736
|
a[h] = s[h];
|
|
6718
6737
|
for (let h = 0; h < l.length; h++)
|
|
6719
6738
|
a[s.length + h] = l[h];
|
|
6720
6739
|
return a;
|
|
6721
|
-
},
|
|
6740
|
+
}, Pa = (s, l) => ({
|
|
6722
6741
|
classGroupId: s,
|
|
6723
6742
|
validator: l
|
|
6724
|
-
}),
|
|
6743
|
+
}), Wo = (s = /* @__PURE__ */ new Map(), l = null, a) => ({
|
|
6725
6744
|
nextPart: s,
|
|
6726
6745
|
validators: l,
|
|
6727
6746
|
classGroupId: a
|
|
6728
|
-
}),
|
|
6729
|
-
const l =
|
|
6747
|
+
}), ni = "-", go = [], La = "arbitrary..", ka = (s) => {
|
|
6748
|
+
const l = Ca(s), {
|
|
6730
6749
|
conflictingClassGroups: a,
|
|
6731
6750
|
conflictingClassGroupModifiers: h
|
|
6732
6751
|
} = s;
|
|
6733
6752
|
return {
|
|
6734
6753
|
getClassGroupId: (m) => {
|
|
6735
6754
|
if (m.startsWith("[") && m.endsWith("]"))
|
|
6736
|
-
return
|
|
6737
|
-
const b = m.split(
|
|
6738
|
-
return
|
|
6755
|
+
return Ta(m);
|
|
6756
|
+
const b = m.split(ni), v = b[0] === "" && b.length > 1 ? 1 : 0;
|
|
6757
|
+
return Ho(b, v, l);
|
|
6739
6758
|
},
|
|
6740
6759
|
getConflictingClassGroupIds: (m, b) => {
|
|
6741
6760
|
if (b) {
|
|
6742
6761
|
const v = h[m], g = a[m];
|
|
6743
|
-
return v ? g ?
|
|
6762
|
+
return v ? g ? xa(g, v) : v : g || go;
|
|
6744
6763
|
}
|
|
6745
|
-
return a[m] ||
|
|
6764
|
+
return a[m] || go;
|
|
6746
6765
|
}
|
|
6747
6766
|
};
|
|
6748
|
-
},
|
|
6767
|
+
}, Ho = (s, l, a) => {
|
|
6749
6768
|
if (s.length - l === 0)
|
|
6750
6769
|
return a.classGroupId;
|
|
6751
6770
|
const u = s[l], p = a.nextPart.get(u);
|
|
6752
6771
|
if (p) {
|
|
6753
|
-
const g =
|
|
6772
|
+
const g = Ho(s, l + 1, p);
|
|
6754
6773
|
if (g) return g;
|
|
6755
6774
|
}
|
|
6756
6775
|
const m = a.validators;
|
|
6757
6776
|
if (m === null)
|
|
6758
6777
|
return;
|
|
6759
|
-
const b = l === 0 ? s.join(
|
|
6778
|
+
const b = l === 0 ? s.join(ni) : s.slice(l).join(ni), v = m.length;
|
|
6760
6779
|
for (let g = 0; g < v; g++) {
|
|
6761
|
-
const
|
|
6762
|
-
if (
|
|
6763
|
-
return
|
|
6780
|
+
const R = m[g];
|
|
6781
|
+
if (R.validator(b))
|
|
6782
|
+
return R.classGroupId;
|
|
6764
6783
|
}
|
|
6765
|
-
},
|
|
6784
|
+
}, Ta = (s) => s.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
6766
6785
|
const l = s.slice(1, -1), a = l.indexOf(":"), h = l.slice(0, a);
|
|
6767
|
-
return h ?
|
|
6768
|
-
})(),
|
|
6786
|
+
return h ? La + h : void 0;
|
|
6787
|
+
})(), Ca = (s) => {
|
|
6769
6788
|
const {
|
|
6770
6789
|
theme: l,
|
|
6771
6790
|
classGroups: a
|
|
6772
6791
|
} = s;
|
|
6773
|
-
return
|
|
6774
|
-
},
|
|
6775
|
-
const a =
|
|
6792
|
+
return Sa(a, l);
|
|
6793
|
+
}, Sa = (s, l) => {
|
|
6794
|
+
const a = Wo();
|
|
6776
6795
|
for (const h in s) {
|
|
6777
6796
|
const u = s[h];
|
|
6778
|
-
|
|
6797
|
+
Xi(u, a, h, l);
|
|
6779
6798
|
}
|
|
6780
6799
|
return a;
|
|
6781
|
-
},
|
|
6800
|
+
}, Xi = (s, l, a, h) => {
|
|
6782
6801
|
const u = s.length;
|
|
6783
6802
|
for (let p = 0; p < u; p++) {
|
|
6784
6803
|
const m = s[p];
|
|
6785
|
-
|
|
6804
|
+
za(m, l, a, h);
|
|
6786
6805
|
}
|
|
6787
|
-
},
|
|
6806
|
+
}, za = (s, l, a, h) => {
|
|
6788
6807
|
if (typeof s == "string") {
|
|
6789
|
-
|
|
6808
|
+
Ma(s, l, a);
|
|
6790
6809
|
return;
|
|
6791
6810
|
}
|
|
6792
6811
|
if (typeof s == "function") {
|
|
6793
|
-
|
|
6812
|
+
Ea(s, l, a, h);
|
|
6794
6813
|
return;
|
|
6795
6814
|
}
|
|
6796
|
-
|
|
6797
|
-
},
|
|
6798
|
-
const h = s === "" ? l :
|
|
6815
|
+
Oa(s, l, a, h);
|
|
6816
|
+
}, Ma = (s, l, a) => {
|
|
6817
|
+
const h = s === "" ? l : jo(l, s);
|
|
6799
6818
|
h.classGroupId = a;
|
|
6800
|
-
},
|
|
6801
|
-
if (
|
|
6802
|
-
|
|
6819
|
+
}, Ea = (s, l, a, h) => {
|
|
6820
|
+
if (Aa(s)) {
|
|
6821
|
+
Xi(s(h), l, a, h);
|
|
6803
6822
|
return;
|
|
6804
6823
|
}
|
|
6805
|
-
l.validators === null && (l.validators = []), l.validators.push(
|
|
6806
|
-
},
|
|
6824
|
+
l.validators === null && (l.validators = []), l.validators.push(Pa(a, s));
|
|
6825
|
+
}, Oa = (s, l, a, h) => {
|
|
6807
6826
|
const u = Object.entries(s), p = u.length;
|
|
6808
6827
|
for (let m = 0; m < p; m++) {
|
|
6809
6828
|
const [b, v] = u[m];
|
|
6810
|
-
|
|
6829
|
+
Xi(v, jo(l, b), a, h);
|
|
6811
6830
|
}
|
|
6812
|
-
},
|
|
6831
|
+
}, jo = (s, l) => {
|
|
6813
6832
|
let a = s;
|
|
6814
|
-
const h = l.split(
|
|
6833
|
+
const h = l.split(ni), u = h.length;
|
|
6815
6834
|
for (let p = 0; p < u; p++) {
|
|
6816
6835
|
const m = h[p];
|
|
6817
6836
|
let b = a.nextPart.get(m);
|
|
6818
|
-
b || (b =
|
|
6837
|
+
b || (b = Wo(), a.nextPart.set(m, b)), a = b;
|
|
6819
6838
|
}
|
|
6820
6839
|
return a;
|
|
6821
|
-
},
|
|
6840
|
+
}, Aa = (s) => "isThemeGetter" in s && s.isThemeGetter === !0, Ia = (s) => {
|
|
6822
6841
|
if (s < 1)
|
|
6823
6842
|
return {
|
|
6824
6843
|
get: () => {
|
|
@@ -6842,13 +6861,13 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
6842
6861
|
p in a ? a[p] = m : u(p, m);
|
|
6843
6862
|
}
|
|
6844
6863
|
};
|
|
6845
|
-
},
|
|
6864
|
+
}, Gi = "!", vo = ":", Ra = [], yo = (s, l, a, h, u) => ({
|
|
6846
6865
|
modifiers: s,
|
|
6847
6866
|
hasImportantModifier: l,
|
|
6848
6867
|
baseClassName: a,
|
|
6849
6868
|
maybePostfixModifierPosition: h,
|
|
6850
6869
|
isExternal: u
|
|
6851
|
-
}),
|
|
6870
|
+
}), Za = (s) => {
|
|
6852
6871
|
const {
|
|
6853
6872
|
prefix: l,
|
|
6854
6873
|
experimentalParseClassName: a
|
|
@@ -6856,36 +6875,36 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
6856
6875
|
let h = (u) => {
|
|
6857
6876
|
const p = [];
|
|
6858
6877
|
let m = 0, b = 0, v = 0, g;
|
|
6859
|
-
const
|
|
6860
|
-
for (let
|
|
6861
|
-
const Y = u[
|
|
6878
|
+
const R = u.length;
|
|
6879
|
+
for (let S = 0; S < R; S++) {
|
|
6880
|
+
const Y = u[S];
|
|
6862
6881
|
if (m === 0 && b === 0) {
|
|
6863
|
-
if (Y ===
|
|
6864
|
-
p.push(u.slice(v,
|
|
6882
|
+
if (Y === vo) {
|
|
6883
|
+
p.push(u.slice(v, S)), v = S + 1;
|
|
6865
6884
|
continue;
|
|
6866
6885
|
}
|
|
6867
6886
|
if (Y === "/") {
|
|
6868
|
-
g =
|
|
6887
|
+
g = S;
|
|
6869
6888
|
continue;
|
|
6870
6889
|
}
|
|
6871
6890
|
}
|
|
6872
6891
|
Y === "[" ? m++ : Y === "]" ? m-- : Y === "(" ? b++ : Y === ")" && b--;
|
|
6873
6892
|
}
|
|
6874
6893
|
const T = p.length === 0 ? u : u.slice(v);
|
|
6875
|
-
let D = T,
|
|
6876
|
-
T.endsWith(
|
|
6894
|
+
let D = T, Z = !1;
|
|
6895
|
+
T.endsWith(Gi) ? (D = T.slice(0, -1), Z = !0) : (
|
|
6877
6896
|
/**
|
|
6878
6897
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
6879
6898
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
6880
6899
|
*/
|
|
6881
|
-
T.startsWith(
|
|
6900
|
+
T.startsWith(Gi) && (D = T.slice(1), Z = !0)
|
|
6882
6901
|
);
|
|
6883
6902
|
const G = g && g > v ? g - v : void 0;
|
|
6884
|
-
return
|
|
6903
|
+
return yo(p, Z, D, G);
|
|
6885
6904
|
};
|
|
6886
6905
|
if (l) {
|
|
6887
|
-
const u = l +
|
|
6888
|
-
h = (m) => m.startsWith(u) ? p(m.slice(u.length)) :
|
|
6906
|
+
const u = l + vo, p = h;
|
|
6907
|
+
h = (m) => m.startsWith(u) ? p(m.slice(u.length)) : yo(Ra, !1, m, void 0, !0);
|
|
6889
6908
|
}
|
|
6890
6909
|
if (a) {
|
|
6891
6910
|
const u = h;
|
|
@@ -6895,7 +6914,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
6895
6914
|
});
|
|
6896
6915
|
}
|
|
6897
6916
|
return h;
|
|
6898
|
-
},
|
|
6917
|
+
}, Ba = (s) => {
|
|
6899
6918
|
const l = /* @__PURE__ */ new Map();
|
|
6900
6919
|
return s.orderSensitiveModifiers.forEach((a, h) => {
|
|
6901
6920
|
l.set(a, 1e6 + h);
|
|
@@ -6908,33 +6927,33 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
6908
6927
|
}
|
|
6909
6928
|
return u.length > 0 && (u.sort(), h.push(...u)), h;
|
|
6910
6929
|
};
|
|
6911
|
-
},
|
|
6912
|
-
cache:
|
|
6913
|
-
parseClassName:
|
|
6914
|
-
sortModifiers:
|
|
6915
|
-
postfixLookupClassGroupIds:
|
|
6916
|
-
...
|
|
6917
|
-
}),
|
|
6930
|
+
}, Na = (s) => ({
|
|
6931
|
+
cache: Ia(s.cacheSize),
|
|
6932
|
+
parseClassName: Za(s),
|
|
6933
|
+
sortModifiers: Ba(s),
|
|
6934
|
+
postfixLookupClassGroupIds: Da(s),
|
|
6935
|
+
...ka(s)
|
|
6936
|
+
}), Da = (s) => {
|
|
6918
6937
|
const l = /* @__PURE__ */ Object.create(null), a = s.postfixLookupClassGroups;
|
|
6919
6938
|
if (a)
|
|
6920
6939
|
for (let h = 0; h < a.length; h++)
|
|
6921
6940
|
l[a[h]] = !0;
|
|
6922
6941
|
return l;
|
|
6923
|
-
},
|
|
6942
|
+
}, Fa = /\s+/, Wa = (s, l) => {
|
|
6924
6943
|
const {
|
|
6925
6944
|
parseClassName: a,
|
|
6926
6945
|
getClassGroupId: h,
|
|
6927
6946
|
getConflictingClassGroupIds: u,
|
|
6928
6947
|
sortModifiers: p,
|
|
6929
6948
|
postfixLookupClassGroupIds: m
|
|
6930
|
-
} = l, b = [], v = s.trim().split(
|
|
6949
|
+
} = l, b = [], v = s.trim().split(Fa);
|
|
6931
6950
|
let g = "";
|
|
6932
|
-
for (let
|
|
6933
|
-
const T = v[
|
|
6951
|
+
for (let R = v.length - 1; R >= 0; R -= 1) {
|
|
6952
|
+
const T = v[R], {
|
|
6934
6953
|
isExternal: D,
|
|
6935
|
-
modifiers:
|
|
6954
|
+
modifiers: Z,
|
|
6936
6955
|
hasImportantModifier: G,
|
|
6937
|
-
baseClassName:
|
|
6956
|
+
baseClassName: S,
|
|
6938
6957
|
maybePostfixModifierPosition: Y
|
|
6939
6958
|
} = a(T);
|
|
6940
6959
|
if (D) {
|
|
@@ -6943,24 +6962,24 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
6943
6962
|
}
|
|
6944
6963
|
let ft = !!Y, X;
|
|
6945
6964
|
if (ft) {
|
|
6946
|
-
const W =
|
|
6965
|
+
const W = S.substring(0, Y);
|
|
6947
6966
|
X = h(W);
|
|
6948
|
-
const w = X && m[X] ? h(
|
|
6967
|
+
const w = X && m[X] ? h(S) : void 0;
|
|
6949
6968
|
w && w !== X && (X = w, ft = !1);
|
|
6950
6969
|
} else
|
|
6951
|
-
X = h(
|
|
6970
|
+
X = h(S);
|
|
6952
6971
|
if (!X) {
|
|
6953
6972
|
if (!ft) {
|
|
6954
6973
|
g = T + (g.length > 0 ? " " + g : g);
|
|
6955
6974
|
continue;
|
|
6956
6975
|
}
|
|
6957
|
-
if (X = h(
|
|
6976
|
+
if (X = h(S), !X) {
|
|
6958
6977
|
g = T + (g.length > 0 ? " " + g : g);
|
|
6959
6978
|
continue;
|
|
6960
6979
|
}
|
|
6961
6980
|
ft = !1;
|
|
6962
6981
|
}
|
|
6963
|
-
const U =
|
|
6982
|
+
const U = Z.length === 0 ? "" : Z.length === 1 ? Z[0] : p(Z).join(":"), lt = G ? U + Gi : U, mt = lt + X;
|
|
6964
6983
|
if (b.indexOf(mt) > -1)
|
|
6965
6984
|
continue;
|
|
6966
6985
|
b.push(mt);
|
|
@@ -6972,47 +6991,47 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
6972
6991
|
g = T + (g.length > 0 ? " " + g : g);
|
|
6973
6992
|
}
|
|
6974
6993
|
return g;
|
|
6975
|
-
},
|
|
6994
|
+
}, Ha = (...s) => {
|
|
6976
6995
|
let l = 0, a, h, u = "";
|
|
6977
6996
|
for (; l < s.length; )
|
|
6978
|
-
(a = s[l++]) && (h =
|
|
6997
|
+
(a = s[l++]) && (h = Go(a)) && (u && (u += " "), u += h);
|
|
6979
6998
|
return u;
|
|
6980
|
-
},
|
|
6999
|
+
}, Go = (s) => {
|
|
6981
7000
|
if (typeof s == "string")
|
|
6982
7001
|
return s;
|
|
6983
7002
|
let l, a = "";
|
|
6984
7003
|
for (let h = 0; h < s.length; h++)
|
|
6985
|
-
s[h] && (l =
|
|
7004
|
+
s[h] && (l = Go(s[h])) && (a && (a += " "), a += l);
|
|
6986
7005
|
return a;
|
|
6987
|
-
},
|
|
7006
|
+
}, ja = (s, ...l) => {
|
|
6988
7007
|
let a, h, u, p;
|
|
6989
7008
|
const m = (v) => {
|
|
6990
|
-
const g = l.reduce((
|
|
6991
|
-
return a =
|
|
7009
|
+
const g = l.reduce((R, T) => T(R), s());
|
|
7010
|
+
return a = Na(g), h = a.cache.get, u = a.cache.set, p = b, b(v);
|
|
6992
7011
|
}, b = (v) => {
|
|
6993
7012
|
const g = h(v);
|
|
6994
7013
|
if (g)
|
|
6995
7014
|
return g;
|
|
6996
|
-
const
|
|
6997
|
-
return u(v,
|
|
7015
|
+
const R = Wa(v, a);
|
|
7016
|
+
return u(v, R), R;
|
|
6998
7017
|
};
|
|
6999
|
-
return p = m, (...v) => p(
|
|
7000
|
-
},
|
|
7001
|
-
const l = (a) => a[s] ||
|
|
7018
|
+
return p = m, (...v) => p(Ha(...v));
|
|
7019
|
+
}, Ga = [], st = (s) => {
|
|
7020
|
+
const l = (a) => a[s] || Ga;
|
|
7002
7021
|
return l.isThemeGetter = !0, l;
|
|
7003
|
-
},
|
|
7022
|
+
}, Vo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Uo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Va = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ua = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, $a = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, qa = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ka = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ya = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Gt = (s) => Va.test(s), F = (s) => !!s && !Number.isNaN(Number(s)), It = (s) => !!s && Number.isInteger(Number(s)), Wi = (s) => s.endsWith("%") && F(s.slice(0, -1)), Dt = (s) => Ua.test(s), $o = () => !0, Xa = (s) => (
|
|
7004
7023
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
7005
7024
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
7006
7025
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
7007
|
-
|
|
7008
|
-
),
|
|
7009
|
-
const h =
|
|
7026
|
+
$a.test(s) && !qa.test(s)
|
|
7027
|
+
), Ji = () => !1, Ja = (s) => Ka.test(s), Qa = (s) => Ya.test(s), tl = (s) => !P(s) && !k(s), el = (s) => s.startsWith("@container") && (s[10] === "/" && s[11] !== void 0 || s[11] === "s" && s[16] !== void 0 && s.startsWith("-size/", 10) || s[11] === "n" && s[18] !== void 0 && s.startsWith("-normal/", 10)), il = (s) => Ut(s, Yo, Ji), P = (s) => Vo.test(s), te = (s) => Ut(s, Xo, Xa), bo = (s) => Ut(s, cl, F), nl = (s) => Ut(s, Qo, $o), ol = (s) => Ut(s, Jo, Ji), wo = (s) => Ut(s, qo, Ji), rl = (s) => Ut(s, Ko, Qa), ti = (s) => Ut(s, tr, Ja), k = (s) => Uo.test(s), ze = (s) => ie(s, Xo), sl = (s) => ie(s, Jo), xo = (s) => ie(s, qo), al = (s) => ie(s, Yo), ll = (s) => ie(s, Ko), ei = (s) => ie(s, tr, !0), hl = (s) => ie(s, Qo, !0), Ut = (s, l, a) => {
|
|
7028
|
+
const h = Vo.exec(s);
|
|
7010
7029
|
return h ? h[1] ? l(h[1]) : a(h[2]) : !1;
|
|
7011
|
-
},
|
|
7012
|
-
const h =
|
|
7030
|
+
}, ie = (s, l, a = !1) => {
|
|
7031
|
+
const h = Uo.exec(s);
|
|
7013
7032
|
return h ? h[1] ? l(h[1]) : a : !1;
|
|
7014
|
-
},
|
|
7015
|
-
const s = st("color"), l = st("font"), a = st("text"), h = st("font-weight"), u = st("tracking"), p = st("leading"), m = st("breakpoint"), b = st("container"), v = st("spacing"), g = st("radius"),
|
|
7033
|
+
}, qo = (s) => s === "position" || s === "percentage", Ko = (s) => s === "image" || s === "url", Yo = (s) => s === "length" || s === "size" || s === "bg-size", Xo = (s) => s === "length", cl = (s) => s === "number", Jo = (s) => s === "family-name", Qo = (s) => s === "number" || s === "weight", tr = (s) => s === "shadow", ul = () => {
|
|
7034
|
+
const s = st("color"), l = st("font"), a = st("text"), h = st("font-weight"), u = st("tracking"), p = st("leading"), m = st("breakpoint"), b = st("container"), v = st("spacing"), g = st("radius"), R = st("shadow"), T = st("inset-shadow"), D = st("text-shadow"), Z = st("drop-shadow"), G = st("blur"), S = st("perspective"), Y = st("aspect"), ft = st("ease"), X = st("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], lt = () => [
|
|
7016
7035
|
"center",
|
|
7017
7036
|
"top",
|
|
7018
7037
|
"bottom",
|
|
@@ -7030,15 +7049,15 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7030
7049
|
"bottom-left",
|
|
7031
7050
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
7032
7051
|
"left-bottom"
|
|
7033
|
-
], mt = () => [...lt(), k, P], C = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], w = () => [k, P, v], nt = () => [
|
|
7034
|
-
span: ["full",
|
|
7035
|
-
},
|
|
7052
|
+
], mt = () => [...lt(), k, P], C = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], w = () => [k, P, v], nt = () => [Gt, "full", "auto", ...w()], $t = () => [It, "none", "subgrid", k, P], tt = () => ["auto", {
|
|
7053
|
+
span: ["full", It, k, P]
|
|
7054
|
+
}, It, k, P], ht = () => [It, "auto", k, P], Ae = () => ["auto", "min", "max", "fr", k, P], vt = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Ft = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], K = () => ["auto", ...w()], yt = () => [Gt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], A = () => [Gt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...w()], ne = () => [Gt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...w()], y = () => [s, k, P], $ = () => [...lt(), xo, wo, {
|
|
7036
7055
|
position: [k, P]
|
|
7037
7056
|
}], ct = () => ["no-repeat", {
|
|
7038
7057
|
repeat: ["", "x", "y", "space", "round"]
|
|
7039
|
-
}], ut = () => ["auto", "cover", "contain",
|
|
7058
|
+
}], ut = () => ["auto", "cover", "contain", al, il, {
|
|
7040
7059
|
size: [k, P]
|
|
7041
|
-
}], J = () => [
|
|
7060
|
+
}], J = () => [Wi, ze, te], I = () => [
|
|
7042
7061
|
// Deprecated since Tailwind CSS v4.0.0
|
|
7043
7062
|
"",
|
|
7044
7063
|
"none",
|
|
@@ -7046,35 +7065,35 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7046
7065
|
g,
|
|
7047
7066
|
k,
|
|
7048
7067
|
P
|
|
7049
|
-
], M = () => ["", F, ze,
|
|
7068
|
+
], M = () => ["", F, ze, te], _t = () => ["solid", "dashed", "dotted", "double"], Lt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], et = () => [F, Wi, xo, wo], oe = () => [
|
|
7050
7069
|
// Deprecated since Tailwind CSS v4.0.0
|
|
7051
7070
|
"",
|
|
7052
7071
|
"none",
|
|
7053
7072
|
G,
|
|
7054
7073
|
k,
|
|
7055
7074
|
P
|
|
7056
|
-
],
|
|
7075
|
+
], Wt = () => ["none", F, k, P], zt = () => ["none", F, k, P], qt = () => [F, k, P], re = () => [Gt, "full", ...w()];
|
|
7057
7076
|
return {
|
|
7058
7077
|
cacheSize: 500,
|
|
7059
7078
|
theme: {
|
|
7060
7079
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
7061
7080
|
aspect: ["video"],
|
|
7062
|
-
blur: [
|
|
7063
|
-
breakpoint: [
|
|
7064
|
-
color: [
|
|
7065
|
-
container: [
|
|
7066
|
-
"drop-shadow": [
|
|
7081
|
+
blur: [Dt],
|
|
7082
|
+
breakpoint: [Dt],
|
|
7083
|
+
color: [$o],
|
|
7084
|
+
container: [Dt],
|
|
7085
|
+
"drop-shadow": [Dt],
|
|
7067
7086
|
ease: ["in", "out", "in-out"],
|
|
7068
|
-
font: [
|
|
7087
|
+
font: [tl],
|
|
7069
7088
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
7070
|
-
"inset-shadow": [
|
|
7089
|
+
"inset-shadow": [Dt],
|
|
7071
7090
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
7072
7091
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
7073
|
-
radius: [
|
|
7074
|
-
shadow: [
|
|
7092
|
+
radius: [Dt],
|
|
7093
|
+
shadow: [Dt],
|
|
7075
7094
|
spacing: ["px", F],
|
|
7076
|
-
text: [
|
|
7077
|
-
"text-shadow": [
|
|
7095
|
+
text: [Dt],
|
|
7096
|
+
"text-shadow": [Dt],
|
|
7078
7097
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
7079
7098
|
},
|
|
7080
7099
|
classGroups: {
|
|
@@ -7086,7 +7105,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7086
7105
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
7087
7106
|
*/
|
|
7088
7107
|
aspect: [{
|
|
7089
|
-
aspect: ["auto", "square",
|
|
7108
|
+
aspect: ["auto", "square", Gt, P, k, Y]
|
|
7090
7109
|
}],
|
|
7091
7110
|
/**
|
|
7092
7111
|
* Container
|
|
@@ -7105,7 +7124,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7105
7124
|
* Container Name
|
|
7106
7125
|
* @see https://tailwindcss.com/docs/responsive-design#named-containers
|
|
7107
7126
|
*/
|
|
7108
|
-
"container-named": [
|
|
7127
|
+
"container-named": [el],
|
|
7109
7128
|
/**
|
|
7110
7129
|
* Columns
|
|
7111
7130
|
* @see https://tailwindcss.com/docs/columns
|
|
@@ -7337,7 +7356,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7337
7356
|
* @see https://tailwindcss.com/docs/z-index
|
|
7338
7357
|
*/
|
|
7339
7358
|
z: [{
|
|
7340
|
-
z: [
|
|
7359
|
+
z: [It, "auto", k, P]
|
|
7341
7360
|
}],
|
|
7342
7361
|
// ------------------------
|
|
7343
7362
|
// --- Flexbox and Grid ---
|
|
@@ -7347,7 +7366,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7347
7366
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
7348
7367
|
*/
|
|
7349
7368
|
basis: [{
|
|
7350
|
-
basis: [
|
|
7369
|
+
basis: [Gt, "full", "auto", b, ...w()]
|
|
7351
7370
|
}],
|
|
7352
7371
|
/**
|
|
7353
7372
|
* Flex Direction
|
|
@@ -7368,7 +7387,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7368
7387
|
* @see https://tailwindcss.com/docs/flex
|
|
7369
7388
|
*/
|
|
7370
7389
|
flex: [{
|
|
7371
|
-
flex: [F,
|
|
7390
|
+
flex: [F, Gt, "auto", "initial", "none", P]
|
|
7372
7391
|
}],
|
|
7373
7392
|
/**
|
|
7374
7393
|
* Flex Grow
|
|
@@ -7389,14 +7408,14 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7389
7408
|
* @see https://tailwindcss.com/docs/order
|
|
7390
7409
|
*/
|
|
7391
7410
|
order: [{
|
|
7392
|
-
order: [
|
|
7411
|
+
order: [It, "first", "last", "none", k, P]
|
|
7393
7412
|
}],
|
|
7394
7413
|
/**
|
|
7395
7414
|
* Grid Template Columns
|
|
7396
7415
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
7397
7416
|
*/
|
|
7398
7417
|
"grid-cols": [{
|
|
7399
|
-
"grid-cols":
|
|
7418
|
+
"grid-cols": $t()
|
|
7400
7419
|
}],
|
|
7401
7420
|
/**
|
|
7402
7421
|
* Grid Column Start / End
|
|
@@ -7424,7 +7443,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7424
7443
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
7425
7444
|
*/
|
|
7426
7445
|
"grid-rows": [{
|
|
7427
|
-
"grid-rows":
|
|
7446
|
+
"grid-rows": $t()
|
|
7428
7447
|
}],
|
|
7429
7448
|
/**
|
|
7430
7449
|
* Grid Row Start / End
|
|
@@ -7459,14 +7478,14 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7459
7478
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
7460
7479
|
*/
|
|
7461
7480
|
"auto-cols": [{
|
|
7462
|
-
"auto-cols":
|
|
7481
|
+
"auto-cols": Ae()
|
|
7463
7482
|
}],
|
|
7464
7483
|
/**
|
|
7465
7484
|
* Grid Auto Rows
|
|
7466
7485
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
7467
7486
|
*/
|
|
7468
7487
|
"auto-rows": [{
|
|
7469
|
-
"auto-rows":
|
|
7488
|
+
"auto-rows": Ae()
|
|
7470
7489
|
}],
|
|
7471
7490
|
/**
|
|
7472
7491
|
* Gap
|
|
@@ -7501,14 +7520,14 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7501
7520
|
* @see https://tailwindcss.com/docs/justify-items
|
|
7502
7521
|
*/
|
|
7503
7522
|
"justify-items": [{
|
|
7504
|
-
"justify-items": [...
|
|
7523
|
+
"justify-items": [...Ft(), "normal"]
|
|
7505
7524
|
}],
|
|
7506
7525
|
/**
|
|
7507
7526
|
* Justify Self
|
|
7508
7527
|
* @see https://tailwindcss.com/docs/justify-self
|
|
7509
7528
|
*/
|
|
7510
7529
|
"justify-self": [{
|
|
7511
|
-
"justify-self": ["auto", ...
|
|
7530
|
+
"justify-self": ["auto", ...Ft()]
|
|
7512
7531
|
}],
|
|
7513
7532
|
/**
|
|
7514
7533
|
* Align Content
|
|
@@ -7522,7 +7541,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7522
7541
|
* @see https://tailwindcss.com/docs/align-items
|
|
7523
7542
|
*/
|
|
7524
7543
|
"align-items": [{
|
|
7525
|
-
items: [...
|
|
7544
|
+
items: [...Ft(), {
|
|
7526
7545
|
baseline: ["", "last"]
|
|
7527
7546
|
}]
|
|
7528
7547
|
}],
|
|
@@ -7531,7 +7550,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7531
7550
|
* @see https://tailwindcss.com/docs/align-self
|
|
7532
7551
|
*/
|
|
7533
7552
|
"align-self": [{
|
|
7534
|
-
self: ["auto", ...
|
|
7553
|
+
self: ["auto", ...Ft(), {
|
|
7535
7554
|
baseline: ["", "last"]
|
|
7536
7555
|
}]
|
|
7537
7556
|
}],
|
|
@@ -7547,14 +7566,14 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7547
7566
|
* @see https://tailwindcss.com/docs/place-items
|
|
7548
7567
|
*/
|
|
7549
7568
|
"place-items": [{
|
|
7550
|
-
"place-items": [...
|
|
7569
|
+
"place-items": [...Ft(), "baseline"]
|
|
7551
7570
|
}],
|
|
7552
7571
|
/**
|
|
7553
7572
|
* Place Self
|
|
7554
7573
|
* @see https://tailwindcss.com/docs/place-self
|
|
7555
7574
|
*/
|
|
7556
7575
|
"place-self": [{
|
|
7557
|
-
"place-self": ["auto", ...
|
|
7576
|
+
"place-self": ["auto", ...Ft()]
|
|
7558
7577
|
}],
|
|
7559
7578
|
// Spacing
|
|
7560
7579
|
/**
|
|
@@ -7771,21 +7790,21 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7771
7790
|
* @see https://tailwindcss.com/docs/height
|
|
7772
7791
|
*/
|
|
7773
7792
|
"block-size": [{
|
|
7774
|
-
block: ["auto", ...
|
|
7793
|
+
block: ["auto", ...ne()]
|
|
7775
7794
|
}],
|
|
7776
7795
|
/**
|
|
7777
7796
|
* Min-Block Size
|
|
7778
7797
|
* @see https://tailwindcss.com/docs/min-height
|
|
7779
7798
|
*/
|
|
7780
7799
|
"min-block-size": [{
|
|
7781
|
-
"min-block": ["auto", ...
|
|
7800
|
+
"min-block": ["auto", ...ne()]
|
|
7782
7801
|
}],
|
|
7783
7802
|
/**
|
|
7784
7803
|
* Max-Block Size
|
|
7785
7804
|
* @see https://tailwindcss.com/docs/max-height
|
|
7786
7805
|
*/
|
|
7787
7806
|
"max-block-size": [{
|
|
7788
|
-
"max-block": ["none", ...
|
|
7807
|
+
"max-block": ["none", ...ne()]
|
|
7789
7808
|
}],
|
|
7790
7809
|
/**
|
|
7791
7810
|
* Width
|
|
@@ -7854,7 +7873,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7854
7873
|
* @see https://tailwindcss.com/docs/font-size
|
|
7855
7874
|
*/
|
|
7856
7875
|
"font-size": [{
|
|
7857
|
-
text: ["base", a, ze,
|
|
7876
|
+
text: ["base", a, ze, te]
|
|
7858
7877
|
}],
|
|
7859
7878
|
/**
|
|
7860
7879
|
* Font Smoothing
|
|
@@ -7871,21 +7890,21 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7871
7890
|
* @see https://tailwindcss.com/docs/font-weight
|
|
7872
7891
|
*/
|
|
7873
7892
|
"font-weight": [{
|
|
7874
|
-
font: [h,
|
|
7893
|
+
font: [h, hl, nl]
|
|
7875
7894
|
}],
|
|
7876
7895
|
/**
|
|
7877
7896
|
* Font Stretch
|
|
7878
7897
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
7879
7898
|
*/
|
|
7880
7899
|
"font-stretch": [{
|
|
7881
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
7900
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Wi, P]
|
|
7882
7901
|
}],
|
|
7883
7902
|
/**
|
|
7884
7903
|
* Font Family
|
|
7885
7904
|
* @see https://tailwindcss.com/docs/font-family
|
|
7886
7905
|
*/
|
|
7887
7906
|
"font-family": [{
|
|
7888
|
-
font: [
|
|
7907
|
+
font: [sl, ol, l]
|
|
7889
7908
|
}],
|
|
7890
7909
|
/**
|
|
7891
7910
|
* Font Feature Settings
|
|
@@ -7936,7 +7955,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
7936
7955
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
7937
7956
|
*/
|
|
7938
7957
|
"line-clamp": [{
|
|
7939
|
-
"line-clamp": [F, "none", k,
|
|
7958
|
+
"line-clamp": [F, "none", k, bo]
|
|
7940
7959
|
}],
|
|
7941
7960
|
/**
|
|
7942
7961
|
* Line Height
|
|
@@ -8009,7 +8028,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
8009
8028
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
8010
8029
|
*/
|
|
8011
8030
|
"text-decoration-thickness": [{
|
|
8012
|
-
decoration: [F, "from-font", "auto", k,
|
|
8031
|
+
decoration: [F, "from-font", "auto", k, te]
|
|
8013
8032
|
}],
|
|
8014
8033
|
/**
|
|
8015
8034
|
* Text Decoration Color
|
|
@@ -8054,7 +8073,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
8054
8073
|
* @see https://tailwindcss.com/docs/tab-size
|
|
8055
8074
|
*/
|
|
8056
8075
|
"tab-size": [{
|
|
8057
|
-
tab: [
|
|
8076
|
+
tab: [It, k, P]
|
|
8058
8077
|
}],
|
|
8059
8078
|
/**
|
|
8060
8079
|
* Vertical Alignment
|
|
@@ -8151,10 +8170,10 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
8151
8170
|
bg: ["none", {
|
|
8152
8171
|
linear: [{
|
|
8153
8172
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
8154
|
-
},
|
|
8173
|
+
}, It, k, P],
|
|
8155
8174
|
radial: ["", k, P],
|
|
8156
|
-
conic: [
|
|
8157
|
-
},
|
|
8175
|
+
conic: [It, k, P]
|
|
8176
|
+
}, ll, rl]
|
|
8158
8177
|
}],
|
|
8159
8178
|
/**
|
|
8160
8179
|
* Background Color
|
|
@@ -8531,7 +8550,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
8531
8550
|
* @see https://tailwindcss.com/docs/outline-width
|
|
8532
8551
|
*/
|
|
8533
8552
|
"outline-w": [{
|
|
8534
|
-
outline: ["", F, ze,
|
|
8553
|
+
outline: ["", F, ze, te]
|
|
8535
8554
|
}],
|
|
8536
8555
|
/**
|
|
8537
8556
|
* Outline Color
|
|
@@ -8552,9 +8571,9 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
8552
8571
|
// Deprecated since Tailwind CSS v4.0.0
|
|
8553
8572
|
"",
|
|
8554
8573
|
"none",
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8574
|
+
R,
|
|
8575
|
+
ei,
|
|
8576
|
+
ti
|
|
8558
8577
|
]
|
|
8559
8578
|
}],
|
|
8560
8579
|
/**
|
|
@@ -8569,7 +8588,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
8569
8588
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
8570
8589
|
*/
|
|
8571
8590
|
"inset-shadow": [{
|
|
8572
|
-
"inset-shadow": ["none", T,
|
|
8591
|
+
"inset-shadow": ["none", T, ei, ti]
|
|
8573
8592
|
}],
|
|
8574
8593
|
/**
|
|
8575
8594
|
* Inset Box Shadow Color
|
|
@@ -8606,7 +8625,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
8606
8625
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
8607
8626
|
*/
|
|
8608
8627
|
"ring-offset-w": [{
|
|
8609
|
-
"ring-offset": [F,
|
|
8628
|
+
"ring-offset": [F, te]
|
|
8610
8629
|
}],
|
|
8611
8630
|
/**
|
|
8612
8631
|
* Ring Offset Color
|
|
@@ -8636,7 +8655,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
8636
8655
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
8637
8656
|
*/
|
|
8638
8657
|
"text-shadow": [{
|
|
8639
|
-
"text-shadow": ["none", D,
|
|
8658
|
+
"text-shadow": ["none", D, ei, ti]
|
|
8640
8659
|
}],
|
|
8641
8660
|
/**
|
|
8642
8661
|
* Text Shadow Color
|
|
@@ -8883,7 +8902,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
8883
8902
|
* @see https://tailwindcss.com/docs/blur
|
|
8884
8903
|
*/
|
|
8885
8904
|
blur: [{
|
|
8886
|
-
blur:
|
|
8905
|
+
blur: oe()
|
|
8887
8906
|
}],
|
|
8888
8907
|
/**
|
|
8889
8908
|
* Brightness
|
|
@@ -8908,9 +8927,9 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
8908
8927
|
// Deprecated since Tailwind CSS v4.0.0
|
|
8909
8928
|
"",
|
|
8910
8929
|
"none",
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8930
|
+
Z,
|
|
8931
|
+
ei,
|
|
8932
|
+
ti
|
|
8914
8933
|
]
|
|
8915
8934
|
}],
|
|
8916
8935
|
/**
|
|
@@ -8973,7 +8992,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
8973
8992
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
8974
8993
|
*/
|
|
8975
8994
|
"backdrop-blur": [{
|
|
8976
|
-
"backdrop-blur":
|
|
8995
|
+
"backdrop-blur": oe()
|
|
8977
8996
|
}],
|
|
8978
8997
|
/**
|
|
8979
8998
|
* Backdrop Brightness
|
|
@@ -9136,7 +9155,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
9136
9155
|
* @see https://tailwindcss.com/docs/perspective
|
|
9137
9156
|
*/
|
|
9138
9157
|
perspective: [{
|
|
9139
|
-
perspective: [
|
|
9158
|
+
perspective: [S, k, P]
|
|
9140
9159
|
}],
|
|
9141
9160
|
/**
|
|
9142
9161
|
* Perspective Origin
|
|
@@ -9150,28 +9169,28 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
9150
9169
|
* @see https://tailwindcss.com/docs/rotate
|
|
9151
9170
|
*/
|
|
9152
9171
|
rotate: [{
|
|
9153
|
-
rotate:
|
|
9172
|
+
rotate: Wt()
|
|
9154
9173
|
}],
|
|
9155
9174
|
/**
|
|
9156
9175
|
* Rotate X
|
|
9157
9176
|
* @see https://tailwindcss.com/docs/rotate
|
|
9158
9177
|
*/
|
|
9159
9178
|
"rotate-x": [{
|
|
9160
|
-
"rotate-x":
|
|
9179
|
+
"rotate-x": Wt()
|
|
9161
9180
|
}],
|
|
9162
9181
|
/**
|
|
9163
9182
|
* Rotate Y
|
|
9164
9183
|
* @see https://tailwindcss.com/docs/rotate
|
|
9165
9184
|
*/
|
|
9166
9185
|
"rotate-y": [{
|
|
9167
|
-
"rotate-y":
|
|
9186
|
+
"rotate-y": Wt()
|
|
9168
9187
|
}],
|
|
9169
9188
|
/**
|
|
9170
9189
|
* Rotate Z
|
|
9171
9190
|
* @see https://tailwindcss.com/docs/rotate
|
|
9172
9191
|
*/
|
|
9173
9192
|
"rotate-z": [{
|
|
9174
|
-
"rotate-z":
|
|
9193
|
+
"rotate-z": Wt()
|
|
9175
9194
|
}],
|
|
9176
9195
|
/**
|
|
9177
9196
|
* Scale
|
|
@@ -9211,21 +9230,21 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
9211
9230
|
* @see https://tailwindcss.com/docs/skew
|
|
9212
9231
|
*/
|
|
9213
9232
|
skew: [{
|
|
9214
|
-
skew:
|
|
9233
|
+
skew: qt()
|
|
9215
9234
|
}],
|
|
9216
9235
|
/**
|
|
9217
9236
|
* Skew X
|
|
9218
9237
|
* @see https://tailwindcss.com/docs/skew
|
|
9219
9238
|
*/
|
|
9220
9239
|
"skew-x": [{
|
|
9221
|
-
"skew-x":
|
|
9240
|
+
"skew-x": qt()
|
|
9222
9241
|
}],
|
|
9223
9242
|
/**
|
|
9224
9243
|
* Skew Y
|
|
9225
9244
|
* @see https://tailwindcss.com/docs/skew
|
|
9226
9245
|
*/
|
|
9227
9246
|
"skew-y": [{
|
|
9228
|
-
"skew-y":
|
|
9247
|
+
"skew-y": qt()
|
|
9229
9248
|
}],
|
|
9230
9249
|
/**
|
|
9231
9250
|
* Transform
|
|
@@ -9253,28 +9272,28 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
9253
9272
|
* @see https://tailwindcss.com/docs/translate
|
|
9254
9273
|
*/
|
|
9255
9274
|
translate: [{
|
|
9256
|
-
translate:
|
|
9275
|
+
translate: re()
|
|
9257
9276
|
}],
|
|
9258
9277
|
/**
|
|
9259
9278
|
* Translate X
|
|
9260
9279
|
* @see https://tailwindcss.com/docs/translate
|
|
9261
9280
|
*/
|
|
9262
9281
|
"translate-x": [{
|
|
9263
|
-
"translate-x":
|
|
9282
|
+
"translate-x": re()
|
|
9264
9283
|
}],
|
|
9265
9284
|
/**
|
|
9266
9285
|
* Translate Y
|
|
9267
9286
|
* @see https://tailwindcss.com/docs/translate
|
|
9268
9287
|
*/
|
|
9269
9288
|
"translate-y": [{
|
|
9270
|
-
"translate-y":
|
|
9289
|
+
"translate-y": re()
|
|
9271
9290
|
}],
|
|
9272
9291
|
/**
|
|
9273
9292
|
* Translate Z
|
|
9274
9293
|
* @see https://tailwindcss.com/docs/translate
|
|
9275
9294
|
*/
|
|
9276
9295
|
"translate-z": [{
|
|
9277
|
-
"translate-z":
|
|
9296
|
+
"translate-z": re()
|
|
9278
9297
|
}],
|
|
9279
9298
|
/**
|
|
9280
9299
|
* Translate None
|
|
@@ -9286,7 +9305,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
9286
9305
|
* @see https://tailwindcss.com/docs/zoom
|
|
9287
9306
|
*/
|
|
9288
9307
|
zoom: [{
|
|
9289
|
-
zoom: [
|
|
9308
|
+
zoom: [It, k, P]
|
|
9290
9309
|
}],
|
|
9291
9310
|
// ---------------------
|
|
9292
9311
|
// --- Interactivity ---
|
|
@@ -9619,7 +9638,7 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
9619
9638
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
9620
9639
|
*/
|
|
9621
9640
|
"stroke-w": [{
|
|
9622
|
-
stroke: [F, ze,
|
|
9641
|
+
stroke: [F, ze, te, bo]
|
|
9623
9642
|
}],
|
|
9624
9643
|
/**
|
|
9625
9644
|
* Stroke
|
|
@@ -9696,11 +9715,11 @@ const fo = (s) => typeof s == "boolean" ? `${s}` : s === 0 ? "0" : s, mo = Mo, _
|
|
|
9696
9715
|
postfixLookupClassGroups: ["container-type"],
|
|
9697
9716
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
9698
9717
|
};
|
|
9699
|
-
},
|
|
9700
|
-
function
|
|
9701
|
-
return
|
|
9718
|
+
}, dl = /* @__PURE__ */ ja(ul);
|
|
9719
|
+
function fl(...s) {
|
|
9720
|
+
return dl(Fo(s));
|
|
9702
9721
|
}
|
|
9703
|
-
const
|
|
9722
|
+
const ml = wa(
|
|
9704
9723
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",
|
|
9705
9724
|
{
|
|
9706
9725
|
variants: {
|
|
@@ -9727,31 +9746,31 @@ const hl = _a(
|
|
|
9727
9746
|
}
|
|
9728
9747
|
}
|
|
9729
9748
|
);
|
|
9730
|
-
function
|
|
9749
|
+
function Me({
|
|
9731
9750
|
className: s,
|
|
9732
9751
|
variant: l,
|
|
9733
9752
|
size: a,
|
|
9734
9753
|
asChild: h = !1,
|
|
9735
9754
|
...u
|
|
9736
9755
|
}) {
|
|
9737
|
-
const p = h ?
|
|
9756
|
+
const p = h ? pa : "button";
|
|
9738
9757
|
return /* @__PURE__ */ O.jsx(
|
|
9739
9758
|
p,
|
|
9740
9759
|
{
|
|
9741
9760
|
"data-slot": "button",
|
|
9742
|
-
className:
|
|
9761
|
+
className: fl(ml({ variant: l, size: a, className: s })),
|
|
9743
9762
|
...u
|
|
9744
9763
|
}
|
|
9745
9764
|
);
|
|
9746
9765
|
}
|
|
9747
|
-
const
|
|
9766
|
+
const pl = (s) => s.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), _l = (s) => s.replace(
|
|
9748
9767
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
9749
9768
|
(l, a, h) => h ? h.toUpperCase() : a.toLowerCase()
|
|
9750
|
-
),
|
|
9751
|
-
const l =
|
|
9769
|
+
), Po = (s) => {
|
|
9770
|
+
const l = _l(s);
|
|
9752
9771
|
return l.charAt(0).toUpperCase() + l.slice(1);
|
|
9753
|
-
},
|
|
9754
|
-
var
|
|
9772
|
+
}, er = (...s) => s.filter((l, a, h) => !!l && l.trim() !== "" && h.indexOf(l) === a).join(" ").trim();
|
|
9773
|
+
var gl = {
|
|
9755
9774
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9756
9775
|
width: 24,
|
|
9757
9776
|
height: 24,
|
|
@@ -9762,7 +9781,7 @@ var dl = {
|
|
|
9762
9781
|
strokeLinecap: "round",
|
|
9763
9782
|
strokeLinejoin: "round"
|
|
9764
9783
|
};
|
|
9765
|
-
const
|
|
9784
|
+
const vl = window.React.forwardRef, Lo = window.React.createElement, yl = vl(
|
|
9766
9785
|
({
|
|
9767
9786
|
color: s = "currentColor",
|
|
9768
9787
|
size: l = 24,
|
|
@@ -9772,41 +9791,41 @@ const fl = window.React.forwardRef, xo = window.React.createElement, ml = fl(
|
|
|
9772
9791
|
children: p,
|
|
9773
9792
|
iconNode: m,
|
|
9774
9793
|
...b
|
|
9775
|
-
}, v) =>
|
|
9794
|
+
}, v) => Lo(
|
|
9776
9795
|
"svg",
|
|
9777
9796
|
{
|
|
9778
9797
|
ref: v,
|
|
9779
|
-
...
|
|
9798
|
+
...gl,
|
|
9780
9799
|
width: l,
|
|
9781
9800
|
height: l,
|
|
9782
9801
|
stroke: s,
|
|
9783
9802
|
strokeWidth: h ? Number(a) * 24 / Number(l) : a,
|
|
9784
|
-
className:
|
|
9803
|
+
className: er("lucide", u),
|
|
9785
9804
|
...b
|
|
9786
9805
|
},
|
|
9787
9806
|
[
|
|
9788
|
-
...m.map(([g,
|
|
9807
|
+
...m.map(([g, R]) => Lo(g, R)),
|
|
9789
9808
|
...Array.isArray(p) ? p : [p]
|
|
9790
9809
|
]
|
|
9791
9810
|
)
|
|
9792
9811
|
);
|
|
9793
|
-
const
|
|
9794
|
-
const a =
|
|
9795
|
-
({ className: h, ...u }, p) =>
|
|
9812
|
+
const bl = window.React.forwardRef, wl = window.React.createElement, Oe = (s, l) => {
|
|
9813
|
+
const a = bl(
|
|
9814
|
+
({ className: h, ...u }, p) => wl(yl, {
|
|
9796
9815
|
ref: p,
|
|
9797
9816
|
iconNode: l,
|
|
9798
|
-
className:
|
|
9799
|
-
`lucide-${
|
|
9817
|
+
className: er(
|
|
9818
|
+
`lucide-${pl(Po(s))}`,
|
|
9800
9819
|
`lucide-${s}`,
|
|
9801
9820
|
h
|
|
9802
9821
|
),
|
|
9803
9822
|
...u
|
|
9804
9823
|
})
|
|
9805
9824
|
);
|
|
9806
|
-
return a.displayName =
|
|
9825
|
+
return a.displayName = Po(s), a;
|
|
9807
9826
|
};
|
|
9808
|
-
const
|
|
9809
|
-
const
|
|
9827
|
+
const xl = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Pl = Oe("check", xl);
|
|
9828
|
+
const Ll = [
|
|
9810
9829
|
[
|
|
9811
9830
|
"path",
|
|
9812
9831
|
{
|
|
@@ -9814,8 +9833,8 @@ const yl = [
|
|
|
9814
9833
|
key: "yt0hxn"
|
|
9815
9834
|
}
|
|
9816
9835
|
]
|
|
9817
|
-
],
|
|
9818
|
-
const
|
|
9836
|
+
], kl = Oe("hexagon", Ll);
|
|
9837
|
+
const Tl = [
|
|
9819
9838
|
[
|
|
9820
9839
|
"path",
|
|
9821
9840
|
{
|
|
@@ -9824,30 +9843,30 @@ const wl = [
|
|
|
9824
9843
|
}
|
|
9825
9844
|
],
|
|
9826
9845
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
9827
|
-
],
|
|
9828
|
-
const
|
|
9846
|
+
], Cl = Oe("map-pin", Tl);
|
|
9847
|
+
const Sl = [
|
|
9829
9848
|
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }]
|
|
9830
|
-
],
|
|
9831
|
-
const
|
|
9849
|
+
], zl = Oe("rectangle-horizontal", Sl);
|
|
9850
|
+
const Ml = [
|
|
9832
9851
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
9833
9852
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
9834
9853
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
9835
9854
|
["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
|
|
9836
9855
|
["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
|
|
9837
|
-
],
|
|
9838
|
-
delete
|
|
9839
|
-
|
|
9856
|
+
], El = Oe("trash-2", Ml), Ol = window.React, ee = window.React.useState, ii = window.React.useEffect, Ct = window.React.useCallback;
|
|
9857
|
+
delete So.Icon.Default.prototype._getIconUrl;
|
|
9858
|
+
So.Icon.Default.mergeOptions({
|
|
9840
9859
|
iconRetinaUrl: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png",
|
|
9841
9860
|
iconUrl: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",
|
|
9842
9861
|
shadowUrl: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png"
|
|
9843
9862
|
});
|
|
9844
|
-
const
|
|
9863
|
+
const ko = {
|
|
9845
9864
|
color: "red",
|
|
9846
9865
|
weight: 5,
|
|
9847
9866
|
opacity: 1,
|
|
9848
9867
|
fillOpacity: 0.7,
|
|
9849
9868
|
dashArray: "0"
|
|
9850
|
-
},
|
|
9869
|
+
}, Al = ({
|
|
9851
9870
|
position: s,
|
|
9852
9871
|
onAddMarker: l,
|
|
9853
9872
|
onAddPolygon: a,
|
|
@@ -9865,7 +9884,7 @@ const Po = {
|
|
|
9865
9884
|
}[s];
|
|
9866
9885
|
return /* @__PURE__ */ O.jsx("div", { className: `${v} leaflet-control-container`, children: /* @__PURE__ */ O.jsxs("div", { className: "leaflet-control leaflet-bar flex flex-col bg-sidebar [&>button]:border-b", children: [
|
|
9867
9886
|
/* @__PURE__ */ O.jsx(
|
|
9868
|
-
|
|
9887
|
+
Me,
|
|
9869
9888
|
{
|
|
9870
9889
|
className: `cursor-pointer rounded-none leaflet-control-button ${m === "marker" ? "active" : ""}`,
|
|
9871
9890
|
variant: "ghost",
|
|
@@ -9875,11 +9894,11 @@ const Po = {
|
|
|
9875
9894
|
},
|
|
9876
9895
|
title: "Add marker",
|
|
9877
9896
|
disabled: b,
|
|
9878
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9897
|
+
children: /* @__PURE__ */ O.jsx(Cl, {})
|
|
9879
9898
|
}
|
|
9880
9899
|
),
|
|
9881
9900
|
/* @__PURE__ */ O.jsx(
|
|
9882
|
-
|
|
9901
|
+
Me,
|
|
9883
9902
|
{
|
|
9884
9903
|
className: `cursor-pointer rounded-none leaflet-control-button ${m === "polygon" ? "active" : ""}`,
|
|
9885
9904
|
variant: "ghost",
|
|
@@ -9889,11 +9908,11 @@ const Po = {
|
|
|
9889
9908
|
},
|
|
9890
9909
|
title: "Add polygon",
|
|
9891
9910
|
disabled: b && m !== "polygon",
|
|
9892
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9911
|
+
children: /* @__PURE__ */ O.jsx(kl, {})
|
|
9893
9912
|
}
|
|
9894
9913
|
),
|
|
9895
9914
|
/* @__PURE__ */ O.jsx(
|
|
9896
|
-
|
|
9915
|
+
Me,
|
|
9897
9916
|
{
|
|
9898
9917
|
className: `cursor-pointer rounded-none leaflet-control-button ${m === "rectangle" ? "active" : ""}`,
|
|
9899
9918
|
variant: "ghost",
|
|
@@ -9903,11 +9922,11 @@ const Po = {
|
|
|
9903
9922
|
},
|
|
9904
9923
|
title: "Add rectangle",
|
|
9905
9924
|
disabled: b,
|
|
9906
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9925
|
+
children: /* @__PURE__ */ O.jsx(zl, {})
|
|
9907
9926
|
}
|
|
9908
9927
|
),
|
|
9909
9928
|
m === "polygon" && b && /* @__PURE__ */ O.jsx(
|
|
9910
|
-
|
|
9929
|
+
Me,
|
|
9911
9930
|
{
|
|
9912
9931
|
className: "cursor-pointer rounded-none leaflet-control-button bg-green-500 hover:bg-green-600 text-white",
|
|
9913
9932
|
onClick: (g) => {
|
|
@@ -9916,11 +9935,11 @@ const Po = {
|
|
|
9916
9935
|
variant: "ghost",
|
|
9917
9936
|
size: "sm",
|
|
9918
9937
|
title: "Finish drawing",
|
|
9919
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9938
|
+
children: /* @__PURE__ */ O.jsx(Pl, {})
|
|
9920
9939
|
}
|
|
9921
9940
|
),
|
|
9922
9941
|
/* @__PURE__ */ O.jsx(
|
|
9923
|
-
|
|
9942
|
+
Me,
|
|
9924
9943
|
{
|
|
9925
9944
|
className: "cursor-pointer rounded-none leaflet-control-button",
|
|
9926
9945
|
onClick: (g) => {
|
|
@@ -9930,11 +9949,11 @@ const Po = {
|
|
|
9930
9949
|
size: "sm",
|
|
9931
9950
|
title: "Clear map",
|
|
9932
9951
|
disabled: b,
|
|
9933
|
-
children: /* @__PURE__ */ O.jsx(
|
|
9952
|
+
children: /* @__PURE__ */ O.jsx(El, {})
|
|
9934
9953
|
}
|
|
9935
9954
|
)
|
|
9936
9955
|
] }) });
|
|
9937
|
-
},
|
|
9956
|
+
}, Il = ({
|
|
9938
9957
|
features: s,
|
|
9939
9958
|
mode: l,
|
|
9940
9959
|
drawingMode: a,
|
|
@@ -9944,16 +9963,16 @@ const Po = {
|
|
|
9944
9963
|
onFinishDrawing: m,
|
|
9945
9964
|
allowMarkerMovement: b = !0
|
|
9946
9965
|
}) => {
|
|
9947
|
-
const v =
|
|
9966
|
+
const v = ta(), [g, R] = ee([]), [T, D] = ee(null), [Z, G] = ee(null), S = Ct((C, W) => {
|
|
9948
9967
|
if (!b) return;
|
|
9949
|
-
const nt = C.target.getLatLng(),
|
|
9968
|
+
const nt = C.target.getLatLng(), $t = s.map((tt) => tt.id === W ? {
|
|
9950
9969
|
...tt,
|
|
9951
9970
|
position: [nt.lat, nt.lng]
|
|
9952
9971
|
} : tt);
|
|
9953
|
-
u(
|
|
9972
|
+
u($t);
|
|
9954
9973
|
}, [s, u, b]), Y = Ct(() => {
|
|
9955
9974
|
if (g.length < 3) {
|
|
9956
|
-
|
|
9975
|
+
R([]), h("none"), p(!1);
|
|
9957
9976
|
return;
|
|
9958
9977
|
}
|
|
9959
9978
|
const C = {
|
|
@@ -9962,7 +9981,7 @@ const Po = {
|
|
|
9962
9981
|
popupContent: `Полигон ${s.length + 1}`,
|
|
9963
9982
|
color: `#${Math.floor(Math.random() * 16777215).toString(16)}`
|
|
9964
9983
|
};
|
|
9965
|
-
u([...s, C]),
|
|
9984
|
+
u([...s, C]), R([]), h("none"), p(!1), v.doubleClickZoom.enable();
|
|
9966
9985
|
}, [
|
|
9967
9986
|
g,
|
|
9968
9987
|
s,
|
|
@@ -9971,7 +9990,7 @@ const Po = {
|
|
|
9971
9990
|
v,
|
|
9972
9991
|
p
|
|
9973
9992
|
]);
|
|
9974
|
-
|
|
9993
|
+
ii(() => {
|
|
9975
9994
|
m > 0 && a === "polygon" && g.length >= 3 && Y();
|
|
9976
9995
|
}, [m]);
|
|
9977
9996
|
const ft = Ct(
|
|
@@ -9990,7 +10009,7 @@ const Po = {
|
|
|
9990
10009
|
(C) => {
|
|
9991
10010
|
if (a !== "polygon") return;
|
|
9992
10011
|
const W = [C.lat, C.lng], w = [...g, W];
|
|
9993
|
-
|
|
10012
|
+
R(w), p(!0), v.doubleClickZoom.disable();
|
|
9994
10013
|
},
|
|
9995
10014
|
[g, a, v, p]
|
|
9996
10015
|
), U = Ct(
|
|
@@ -10008,26 +10027,26 @@ const Po = {
|
|
|
10008
10027
|
},
|
|
10009
10028
|
[T, a]
|
|
10010
10029
|
), mt = Ct(() => {
|
|
10011
|
-
if (!T || !
|
|
10030
|
+
if (!T || !Z) {
|
|
10012
10031
|
D(null), G(null), h("none"), p(!1);
|
|
10013
10032
|
return;
|
|
10014
10033
|
}
|
|
10015
10034
|
const C = {
|
|
10016
10035
|
id: Date.now(),
|
|
10017
|
-
rectangle: [T,
|
|
10036
|
+
rectangle: [T, Z],
|
|
10018
10037
|
popupContent: `Прямоугольник ${s.length + 1}`,
|
|
10019
10038
|
color: `#${Math.floor(Math.random() * 16777215).toString(16)}`
|
|
10020
10039
|
};
|
|
10021
10040
|
u([...s, C]), D(null), G(null), h("none"), p(!1);
|
|
10022
10041
|
}, [
|
|
10023
10042
|
T,
|
|
10024
|
-
|
|
10043
|
+
Z,
|
|
10025
10044
|
s,
|
|
10026
10045
|
u,
|
|
10027
10046
|
h,
|
|
10028
10047
|
p
|
|
10029
10048
|
]);
|
|
10030
|
-
return
|
|
10049
|
+
return ii(() => {
|
|
10031
10050
|
const C = (w) => {
|
|
10032
10051
|
a === "marker" ? ft(w.latlng) : a === "polygon" ? X(w.latlng) : a === "rectangle" && (T ? mt() : U(w.latlng));
|
|
10033
10052
|
}, W = (w) => {
|
|
@@ -10045,9 +10064,9 @@ const Po = {
|
|
|
10045
10064
|
lt,
|
|
10046
10065
|
mt,
|
|
10047
10066
|
T
|
|
10048
|
-
]),
|
|
10067
|
+
]), ii(() => {
|
|
10049
10068
|
const C = (W) => {
|
|
10050
|
-
W.key === "Escape" && (g.length > 0 || T) && (
|
|
10069
|
+
W.key === "Escape" && (g.length > 0 || T) && (R([]), D(null), G(null), h("none"), p(!1), v.doubleClickZoom.enable());
|
|
10051
10070
|
};
|
|
10052
10071
|
return document.addEventListener("keydown", C), () => {
|
|
10053
10072
|
document.removeEventListener("keydown", C);
|
|
@@ -10059,16 +10078,16 @@ const Po = {
|
|
|
10059
10078
|
p,
|
|
10060
10079
|
v
|
|
10061
10080
|
]), /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
|
10062
|
-
s.map((C) => /* @__PURE__ */ O.jsxs(
|
|
10081
|
+
s.map((C) => /* @__PURE__ */ O.jsxs(Ol.Fragment, { children: [
|
|
10063
10082
|
(l === "marker" || l === "all") && C.position && /* @__PURE__ */ O.jsx(
|
|
10064
|
-
|
|
10083
|
+
la,
|
|
10065
10084
|
{
|
|
10066
10085
|
position: C.position,
|
|
10067
10086
|
draggable: C.draggable !== !1 && b,
|
|
10068
10087
|
eventHandlers: {
|
|
10069
|
-
dragend: (W) =>
|
|
10088
|
+
dragend: (W) => S(W, C.id)
|
|
10070
10089
|
},
|
|
10071
|
-
children: /* @__PURE__ */ O.jsx(
|
|
10090
|
+
children: /* @__PURE__ */ O.jsx(Fi, { children: /* @__PURE__ */ O.jsxs("div", { className: "text-sm", children: [
|
|
10072
10091
|
/* @__PURE__ */ O.jsx("div", { className: "font-semibold", children: C.popupContent }),
|
|
10073
10092
|
/* @__PURE__ */ O.jsxs("div", { children: [
|
|
10074
10093
|
"Широта: ",
|
|
@@ -10083,11 +10102,11 @@ const Po = {
|
|
|
10083
10102
|
}
|
|
10084
10103
|
),
|
|
10085
10104
|
(l === "polygon" || l === "all") && C.polygon && /* @__PURE__ */ O.jsx(
|
|
10086
|
-
|
|
10105
|
+
ha,
|
|
10087
10106
|
{
|
|
10088
10107
|
positions: C.polygon,
|
|
10089
10108
|
pathOptions: { color: C.color || "blue" },
|
|
10090
|
-
children: /* @__PURE__ */ O.jsx(
|
|
10109
|
+
children: /* @__PURE__ */ O.jsx(Fi, { children: /* @__PURE__ */ O.jsxs("div", { className: "text-sm", children: [
|
|
10091
10110
|
/* @__PURE__ */ O.jsx("div", { className: "font-semibold", children: C.popupContent }),
|
|
10092
10111
|
/* @__PURE__ */ O.jsxs("div", { children: [
|
|
10093
10112
|
"Точек: ",
|
|
@@ -10097,11 +10116,11 @@ const Po = {
|
|
|
10097
10116
|
}
|
|
10098
10117
|
),
|
|
10099
10118
|
(l === "rectangle" || l === "all") && C.rectangle && /* @__PURE__ */ O.jsx(
|
|
10100
|
-
|
|
10119
|
+
mo,
|
|
10101
10120
|
{
|
|
10102
10121
|
bounds: C.rectangle,
|
|
10103
10122
|
pathOptions: { color: C.color || "green" },
|
|
10104
|
-
children: /* @__PURE__ */ O.jsx(
|
|
10123
|
+
children: /* @__PURE__ */ O.jsx(Fi, { children: /* @__PURE__ */ O.jsxs("div", { className: "text-sm", children: [
|
|
10105
10124
|
/* @__PURE__ */ O.jsx("div", { className: "font-semibold", children: C.popupContent }),
|
|
10106
10125
|
/* @__PURE__ */ O.jsxs("div", { children: [
|
|
10107
10126
|
"Угол 1: ",
|
|
@@ -10121,32 +10140,32 @@ const Po = {
|
|
|
10121
10140
|
] }, C.id)),
|
|
10122
10141
|
a === "polygon" && g.length > 0 && /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
|
10123
10142
|
/* @__PURE__ */ O.jsx(
|
|
10124
|
-
|
|
10143
|
+
fo,
|
|
10125
10144
|
{
|
|
10126
10145
|
positions: g,
|
|
10127
|
-
...
|
|
10146
|
+
...ko
|
|
10128
10147
|
}
|
|
10129
10148
|
),
|
|
10130
10149
|
g.length > 0 && /* @__PURE__ */ O.jsx(
|
|
10131
|
-
|
|
10150
|
+
fo,
|
|
10132
10151
|
{
|
|
10133
10152
|
positions: [
|
|
10134
10153
|
g[g.length - 1],
|
|
10135
10154
|
g[0]
|
|
10136
10155
|
],
|
|
10137
|
-
...
|
|
10156
|
+
...ko
|
|
10138
10157
|
}
|
|
10139
10158
|
)
|
|
10140
10159
|
] }),
|
|
10141
|
-
a === "rectangle" && T &&
|
|
10142
|
-
|
|
10160
|
+
a === "rectangle" && T && Z && /* @__PURE__ */ O.jsx(
|
|
10161
|
+
mo,
|
|
10143
10162
|
{
|
|
10144
|
-
bounds: [T,
|
|
10163
|
+
bounds: [T, Z],
|
|
10145
10164
|
pathOptions: { color: "red", fillOpacity: 0.3, weight: 3 }
|
|
10146
10165
|
}
|
|
10147
10166
|
)
|
|
10148
10167
|
] });
|
|
10149
|
-
},
|
|
10168
|
+
}, ir = ({
|
|
10150
10169
|
mode: s = "all",
|
|
10151
10170
|
initialFeatures: l = [],
|
|
10152
10171
|
center: a = [45.7, 60.1],
|
|
@@ -10157,28 +10176,28 @@ const Po = {
|
|
|
10157
10176
|
className: b,
|
|
10158
10177
|
style: v,
|
|
10159
10178
|
disabled: g,
|
|
10160
|
-
allowMarkerMovement:
|
|
10179
|
+
allowMarkerMovement: R = !0
|
|
10161
10180
|
}) => {
|
|
10162
|
-
const [T, D] =
|
|
10181
|
+
const [T, D] = ee(l), [Z, G] = ee("none"), [S, Y] = ee(!1), [ft, X] = ee(0), U = Ct(
|
|
10163
10182
|
(W) => {
|
|
10164
10183
|
D(W), m && m(W);
|
|
10165
10184
|
},
|
|
10166
10185
|
[m]
|
|
10167
10186
|
), lt = Ct(
|
|
10168
10187
|
(W) => {
|
|
10169
|
-
|
|
10188
|
+
S || G((w) => w === W ? "none" : W);
|
|
10170
10189
|
},
|
|
10171
|
-
[
|
|
10190
|
+
[S]
|
|
10172
10191
|
), mt = Ct(() => {
|
|
10173
|
-
|
|
10174
|
-
}, [
|
|
10175
|
-
|
|
10176
|
-
}, [U,
|
|
10177
|
-
return
|
|
10192
|
+
Z === "polygon" && S && X((W) => W + 1);
|
|
10193
|
+
}, [Z, S]), C = Ct(() => {
|
|
10194
|
+
S || (U([]), G("none"));
|
|
10195
|
+
}, [U, S]);
|
|
10196
|
+
return ii(() => {
|
|
10178
10197
|
JSON.stringify(l) !== JSON.stringify(T) && D(l);
|
|
10179
10198
|
}, [l]), /* @__PURE__ */ O.jsxs("div", { className: `${b} ${g ? "pointer-events-none opacity-50" : ""}`, style: { position: "relative", ...v }, children: [
|
|
10180
10199
|
/* @__PURE__ */ O.jsxs(
|
|
10181
|
-
|
|
10200
|
+
aa,
|
|
10182
10201
|
{
|
|
10183
10202
|
center: a,
|
|
10184
10203
|
zoom: h,
|
|
@@ -10186,30 +10205,30 @@ const Po = {
|
|
|
10186
10205
|
doubleClickZoom: !0,
|
|
10187
10206
|
children: [
|
|
10188
10207
|
/* @__PURE__ */ O.jsx(
|
|
10189
|
-
|
|
10208
|
+
ua,
|
|
10190
10209
|
{
|
|
10191
10210
|
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
10192
10211
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
|
10193
10212
|
}
|
|
10194
10213
|
),
|
|
10195
10214
|
/* @__PURE__ */ O.jsx(
|
|
10196
|
-
|
|
10215
|
+
Il,
|
|
10197
10216
|
{
|
|
10198
10217
|
features: T,
|
|
10199
10218
|
mode: s,
|
|
10200
|
-
drawingMode:
|
|
10219
|
+
drawingMode: Z,
|
|
10201
10220
|
setDrawingMode: G,
|
|
10202
10221
|
onFeaturesChange: U,
|
|
10203
10222
|
setDrawingInProgress: Y,
|
|
10204
10223
|
onFinishDrawing: ft,
|
|
10205
|
-
allowMarkerMovement:
|
|
10224
|
+
allowMarkerMovement: R && !g
|
|
10206
10225
|
}
|
|
10207
10226
|
)
|
|
10208
10227
|
]
|
|
10209
10228
|
}
|
|
10210
10229
|
),
|
|
10211
10230
|
u && /* @__PURE__ */ O.jsx(
|
|
10212
|
-
|
|
10231
|
+
Al,
|
|
10213
10232
|
{
|
|
10214
10233
|
position: p,
|
|
10215
10234
|
onAddMarker: () => lt("marker"),
|
|
@@ -10217,11 +10236,11 @@ const Po = {
|
|
|
10217
10236
|
onAddRectangle: () => lt("rectangle"),
|
|
10218
10237
|
onClearAll: C,
|
|
10219
10238
|
onFinishDrawing: mt,
|
|
10220
|
-
drawingMode:
|
|
10221
|
-
drawingInProgress:
|
|
10239
|
+
drawingMode: Z,
|
|
10240
|
+
drawingInProgress: S
|
|
10222
10241
|
}
|
|
10223
10242
|
),
|
|
10224
|
-
|
|
10243
|
+
Z === "polygon" && /* @__PURE__ */ O.jsx(
|
|
10225
10244
|
"div",
|
|
10226
10245
|
{
|
|
10227
10246
|
style: {
|
|
@@ -10236,10 +10255,10 @@ const Po = {
|
|
|
10236
10255
|
boxShadow: "0 0 10px rgba(0,0,0,0.2)",
|
|
10237
10256
|
zIndex: 410
|
|
10238
10257
|
},
|
|
10239
|
-
children:
|
|
10258
|
+
children: S ? "Добавьте точки полигона на карте, затем нажмите 'Готово'" : "Добавьте первую точку полигона на карте"
|
|
10240
10259
|
}
|
|
10241
10260
|
),
|
|
10242
|
-
|
|
10261
|
+
Z === "rectangle" && /* @__PURE__ */ O.jsx(
|
|
10243
10262
|
"div",
|
|
10244
10263
|
{
|
|
10245
10264
|
style: {
|
|
@@ -10254,10 +10273,10 @@ const Po = {
|
|
|
10254
10273
|
boxShadow: "0 0 10px rgba(0,0,0,0.2)",
|
|
10255
10274
|
zIndex: 410
|
|
10256
10275
|
},
|
|
10257
|
-
children:
|
|
10276
|
+
children: S ? "Кликните для завершения рисования прямоугольника" : "Кликните для начала рисования прямоугольника"
|
|
10258
10277
|
}
|
|
10259
10278
|
),
|
|
10260
|
-
|
|
10279
|
+
Z === "marker" && /* @__PURE__ */ O.jsx(
|
|
10261
10280
|
"div",
|
|
10262
10281
|
{
|
|
10263
10282
|
style: {
|
|
@@ -10272,19 +10291,19 @@ const Po = {
|
|
|
10272
10291
|
boxShadow: "0 0 10px rgba(0,0,0,0.2)",
|
|
10273
10292
|
zIndex: 1e3
|
|
10274
10293
|
},
|
|
10275
|
-
children:
|
|
10294
|
+
children: R ? "Кликните для добавления маркера. Перетащите маркер для перемещения. Кликните еще раз на маркер справа в углу, чтобы завершить рисование" : "Кликните для добавления маркера"
|
|
10276
10295
|
}
|
|
10277
10296
|
)
|
|
10278
10297
|
] });
|
|
10279
|
-
},
|
|
10280
|
-
function
|
|
10298
|
+
}, Bl = ir;
|
|
10299
|
+
function Nl({
|
|
10281
10300
|
initialValue: s,
|
|
10282
10301
|
options: l,
|
|
10283
10302
|
onChange: a,
|
|
10284
10303
|
disabled: h
|
|
10285
10304
|
}) {
|
|
10286
10305
|
return /* @__PURE__ */ O.jsx(
|
|
10287
|
-
|
|
10306
|
+
ir,
|
|
10288
10307
|
{
|
|
10289
10308
|
...l,
|
|
10290
10309
|
initialFeatures: s ?? [],
|
|
@@ -10294,6 +10313,6 @@ function Al({
|
|
|
10294
10313
|
);
|
|
10295
10314
|
}
|
|
10296
10315
|
export {
|
|
10297
|
-
|
|
10298
|
-
|
|
10316
|
+
Bl as Component,
|
|
10317
|
+
Nl as default
|
|
10299
10318
|
};
|