@brightspot/ui 6.1.2-pr.275 → 6.3.0

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.
Files changed (195) hide show
  1. package/dist/components/action-bar/ActionBar.d.ts +1 -0
  2. package/dist/components/action-bar/ActionBar.d.ts.map +1 -1
  3. package/dist/components/action-bar/ActionBar.js +6 -2
  4. package/dist/components/action-bar/ActionBar.js.map +1 -1
  5. package/dist/components/avatar/Avatar.d.ts +1 -0
  6. package/dist/components/avatar/Avatar.d.ts.map +1 -1
  7. package/dist/components/avatar/Avatar.js +6 -2
  8. package/dist/components/avatar/Avatar.js.map +1 -1
  9. package/dist/components/avatar/AvatarGroup.d.ts +1 -0
  10. package/dist/components/avatar/AvatarGroup.d.ts.map +1 -1
  11. package/dist/components/avatar/AvatarGroup.js +6 -2
  12. package/dist/components/avatar/AvatarGroup.js.map +1 -1
  13. package/dist/components/badge/Badge.d.ts +1 -0
  14. package/dist/components/badge/Badge.d.ts.map +1 -1
  15. package/dist/components/badge/Badge.js +6 -2
  16. package/dist/components/badge/Badge.js.map +1 -1
  17. package/dist/components/button-group/ButtonGroup.d.ts +1 -0
  18. package/dist/components/button-group/ButtonGroup.d.ts.map +1 -1
  19. package/dist/components/button-group/ButtonGroup.js +6 -2
  20. package/dist/components/button-group/ButtonGroup.js.map +1 -1
  21. package/dist/components/card/Card.d.ts.map +1 -1
  22. package/dist/components/card/Card.js +4 -2
  23. package/dist/components/card/Card.js.map +1 -1
  24. package/dist/components/checkbox/Checkbox.d.ts.map +1 -1
  25. package/dist/components/checkbox/Checkbox.js +4 -2
  26. package/dist/components/checkbox/Checkbox.js.map +1 -1
  27. package/dist/components/circular-progress/CircularProgress.d.ts +2 -0
  28. package/dist/components/circular-progress/CircularProgress.d.ts.map +1 -1
  29. package/dist/components/circular-progress/CircularProgress.js +9 -3
  30. package/dist/components/circular-progress/CircularProgress.js.map +1 -1
  31. package/dist/components/icon/Icon.d.ts +1 -0
  32. package/dist/components/icon/Icon.d.ts.map +1 -1
  33. package/dist/components/icon/Icon.js +6 -2
  34. package/dist/components/icon/Icon.js.map +1 -1
  35. package/dist/components/linear-progress/LinearProgress.d.ts +2 -0
  36. package/dist/components/linear-progress/LinearProgress.d.ts.map +1 -1
  37. package/dist/components/linear-progress/LinearProgress.js +9 -3
  38. package/dist/components/linear-progress/LinearProgress.js.map +1 -1
  39. package/dist/components/pagination/Pagination.d.ts +1 -0
  40. package/dist/components/pagination/Pagination.d.ts.map +1 -1
  41. package/dist/components/pagination/Pagination.js +6 -2
  42. package/dist/components/pagination/Pagination.js.map +1 -1
  43. package/dist/components/popover/Popover.d.ts +1 -0
  44. package/dist/components/popover/Popover.d.ts.map +1 -1
  45. package/dist/components/popover/Popover.js +6 -2
  46. package/dist/components/popover/Popover.js.map +1 -1
  47. package/dist/components/switch/Switch.d.ts.map +1 -1
  48. package/dist/components/switch/Switch.js +4 -2
  49. package/dist/components/switch/Switch.js.map +1 -1
  50. package/dist/components/tabs/Tab.d.ts +1 -0
  51. package/dist/components/tabs/Tab.d.ts.map +1 -1
  52. package/dist/components/tabs/Tab.js +6 -2
  53. package/dist/components/tabs/Tab.js.map +1 -1
  54. package/dist/components/tabs/Tabs.d.ts +1 -0
  55. package/dist/components/tabs/Tabs.d.ts.map +1 -1
  56. package/dist/components/tabs/Tabs.js +6 -2
  57. package/dist/components/tabs/Tabs.js.map +1 -1
  58. package/dist/custom-elements.json +90 -0
  59. package/dist/storybook/assets/{ActionBar.stories-Q_bdek_N.js → ActionBar.stories-CgkvHW27.js} +1 -1
  60. package/dist/storybook/assets/{ActionItem.stories-Ccyot7vj.js → ActionItem.stories-CyxwhrvR.js} +1 -1
  61. package/dist/storybook/assets/{AiSparkle.stories-Ccapqzcw.js → AiSparkle.stories-h2LSw10e.js} +1 -1
  62. package/dist/storybook/assets/{Avatar.stories-CPcQWZtG.js → Avatar.stories-CQ3eFTbI.js} +1 -1
  63. package/dist/storybook/assets/{AvatarGroup.stories-Bws-izJt.js → AvatarGroup.stories-CIyZOd7R.js} +1 -1
  64. package/dist/storybook/assets/{Badge.stories-xck9Ke5e.js → Badge.stories-CwPkYUuY.js} +1 -1
  65. package/dist/storybook/assets/{Banner.stories-D3ieqG7F.js → Banner.stories-B7AhWymc.js} +1 -1
  66. package/dist/storybook/assets/{Button-CQ2ZvHGM.js → Button-fLz-Mqji.js} +1 -1
  67. package/dist/storybook/assets/{Button.stories-BkGox6QF.js → Button.stories-Bj_cB5Tr.js} +1 -1
  68. package/dist/storybook/assets/{ButtonGroup.stories-BxDNL7ej.js → ButtonGroup.stories-DMAr8q3A.js} +1 -1
  69. package/dist/storybook/assets/{Card.stories-BrzAwQwE.js → Card.stories-CouVkvTr.js} +1 -1
  70. package/dist/storybook/assets/{Celebrate.stories-BFqqbYhp.js → Celebrate.stories-Cai7aITx.js} +1 -1
  71. package/dist/storybook/assets/{Checkbox.stories-yNb9DH9g.js → Checkbox.stories-BTzuHih7.js} +1 -1
  72. package/dist/storybook/assets/{CircularProgress.stories--KSA2X4d.js → CircularProgress.stories-DwiMDCrW.js} +1 -1
  73. package/dist/storybook/assets/{ClipboardMixin.stories-DT0symyW.js → ClipboardMixin.stories-BTzKKsAG.js} +1 -1
  74. package/dist/storybook/assets/{Color-6BZIO3FS-CEpjJcuB.js → Color-6BZIO3FS-z5x4axZs.js} +1 -1
  75. package/dist/storybook/assets/{Colors.stories-BEtjS3CS.js → Colors.stories-LjQN3QJP.js} +1 -1
  76. package/dist/storybook/assets/{CombinedEffects.stories-DZsO6E1c.js → CombinedEffects.stories-CcWkxBPD.js} +1 -1
  77. package/dist/storybook/assets/{ComponentStatesMixin-C-G6neuB.js → ComponentStatesMixin-6JmalSeW.js} +1 -1
  78. package/dist/storybook/assets/{ComponentStatesMixin.stories-D4B2eXzV.js → ComponentStatesMixin.stories-wr7wl9D5.js} +1 -1
  79. package/dist/storybook/assets/{CopyToClipboard.stories-C1wxRcNr.js → CopyToClipboard.stories-CBL_GlzJ.js} +1 -1
  80. package/dist/storybook/assets/{Debounce.stories-CEXdiU_4.js → Debounce.stories-DDW0347e.js} +1 -1
  81. package/dist/storybook/assets/{DocsRenderer-LL677BLK-iD6uwWm0.js → DocsRenderer-LL677BLK-LHrG4h5r.js} +3 -3
  82. package/dist/storybook/assets/{Dropdown.stories-DzgAKuev.js → Dropdown.stories-BixGKdVC.js} +1 -1
  83. package/dist/storybook/assets/{EmptyState.stories-8IezRmLe.js → EmptyState.stories-DYCizkT5.js} +1 -1
  84. package/dist/storybook/assets/{EscaAvatar.stories-CFRMImDC.js → EscaAvatar.stories-IV0FybUu.js} +1 -1
  85. package/dist/storybook/assets/{Events.stories-wc_WlNNX.js → Events.stories-9X1B5LFU.js} +1 -1
  86. package/dist/storybook/assets/{Heading.stories-CBopc-Ov.js → Heading.stories-BWFKyeYP.js} +1 -1
  87. package/dist/storybook/assets/{HueRipple.stories-B1BLaONM.js → HueRipple.stories-KJySD4yc.js} +1 -1
  88. package/dist/storybook/assets/{Icon.stories-Bul1n2nN.js → Icon.stories-n4-_RBwe.js} +1 -1
  89. package/dist/storybook/assets/{IconButton.stories-DDCBKBqw.js → IconButton.stories--cc9Az0q.js} +1 -1
  90. package/dist/storybook/assets/{LinearProgress.stories-DWroemrV.js → LinearProgress.stories-CXISMQqr.js} +1 -1
  91. package/dist/storybook/assets/{Message.stories-CfWo8uqR.js → Message.stories-DCgZ9H2r.js} +1 -1
  92. package/dist/storybook/assets/{OnFindMixin.stories-DRr67PU5.js → OnFindMixin.stories-DwYEl4q4.js} +1 -1
  93. package/dist/storybook/assets/{Pagination.stories-CJ0dmE6y.js → Pagination.stories-B8AqV3jI.js} +1 -1
  94. package/dist/storybook/assets/{Popover.stories-CFFe2utX.js → Popover.stories-Dj8TUysk.js} +1 -1
  95. package/dist/storybook/assets/{ReadyMixin-euHV5BrF.js → ReadyMixin-B1y8EBLz.js} +1 -1
  96. package/dist/storybook/assets/{RovingTabindexMixin.stories-CcKn8eYu.js → RovingTabindexMixin.stories-BTYV78Cy.js} +1 -1
  97. package/dist/storybook/assets/{Rtc.stories-B_26leBQ.js → Rtc.stories-CiQ4OgEf.js} +1 -1
  98. package/dist/storybook/assets/{ScrollShadow.stories-COcTqDYx.js → ScrollShadow.stories-BRpbl9WU.js} +1 -1
  99. package/dist/storybook/assets/{Switch.stories-fZAYVOXQ.js → Switch.stories-Dfw56-LB.js} +1 -1
  100. package/dist/storybook/assets/{Tab.stories-ChmYj35a.js → Tab.stories-DCIPSPwr.js} +1 -1
  101. package/dist/storybook/assets/{Tabs.stories-Bgb-44oF.js → Tabs.stories-DrT2D2oW.js} +1 -1
  102. package/dist/storybook/assets/{Throttle.stories-BP21CM6q.js → Throttle.stories-B5Y8K9s3.js} +1 -1
  103. package/dist/storybook/assets/{Tooltip.stories-Ck7XsJKW.js → Tooltip.stories-CUjm8cuW.js} +1 -1
  104. package/dist/storybook/assets/{Upload.stories-DMedgAwp.js → Upload.stories-Dt7V8qIe.js} +1 -1
  105. package/dist/storybook/assets/{UploadItem.stories-D1rV5quQ.js → UploadItem.stories-DSXxGs8M.js} +1 -1
  106. package/dist/storybook/assets/{Welcome.stories-DDEhWqOY.js → Welcome.stories-BDFQb8oF.js} +1 -1
  107. package/dist/storybook/assets/{Widget.stories-iTycJQkv.js → Widget.stories-CQnE1dST.js} +1 -1
  108. package/dist/storybook/assets/{WithTooltip-65CFNBJE-BDmGdT_q.js → WithTooltip-65CFNBJE-D1OYJPzp.js} +1 -1
  109. package/dist/storybook/assets/{blocks-45GMe9mP.js → blocks-Z0quNc1U.js} +5 -5
  110. package/dist/storybook/assets/{formatter-EIJCOSYU-Dvxzfjid.js → formatter-EIJCOSYU-DwWzDvJC.js} +1 -1
  111. package/dist/storybook/assets/if-defined-Dl8MuiCE.js +1 -0
  112. package/dist/storybook/assets/iframe-HDp5BmO_.css +1 -0
  113. package/dist/storybook/assets/{iframe-CemlMLl9.js → iframe-WTEmYHJj.js} +4 -4
  114. package/dist/storybook/assets/{index-Ei3bFG4y.js → index-BvPCa7_B.js} +1 -1
  115. package/dist/storybook/assets/{onFind-96dPwZGj.js → onFind-CqIRRMTv.js} +1 -1
  116. package/dist/storybook/assets/{onFind.stories-DwMmvzD8.js → onFind.stories-C4PPQTaQ.js} +1 -1
  117. package/dist/storybook/assets/{onRemove.stories-Bw8nC3q8.js → onRemove.stories-BGFCh6DN.js} +1 -1
  118. package/dist/storybook/assets/{onVisible.stories-BZyJ5si2.js → onVisible.stories-4ni7syfJ.js} +1 -1
  119. package/dist/storybook/assets/{style-map-BZ1BR1yx.js → style-map-BhvFBtuB.js} +1 -1
  120. package/dist/storybook/assets/{syntaxhighlighter-ED5Y7EFY-B4dajqNJ.js → syntaxhighlighter-ED5Y7EFY-D_cJwnoJ.js} +1 -1
  121. package/dist/storybook/iframe.html +2 -2
  122. package/dist/storybook/project.json +1 -1
  123. package/dist/tailwind-plugin-button.js +2 -0
  124. package/dist/tailwind-plugin-button.js.map +1 -1
  125. package/dist/tailwind-plugin-button.ts +2 -0
  126. package/package.json +4 -1
  127. package/src/legacy/tool-ui/src/Admin.css +2 -6
  128. package/src/legacy/tool-ui/src/CIGCluster.css +9 -1
  129. package/src/legacy/tool-ui/src/ChartCompat.ts +1 -1
  130. package/src/legacy/tool-ui/src/Compat.css +11 -0
  131. package/src/legacy/tool-ui/src/ContentEdit.css +19 -12
  132. package/src/legacy/tool-ui/src/ContentEditPanel.ts +26 -12
  133. package/src/legacy/tool-ui/src/ContentInputGroup.css +12 -10
  134. package/src/legacy/tool-ui/src/Conversation.css +19 -7
  135. package/src/legacy/tool-ui/src/DashboardWidget.css +4 -0
  136. package/src/legacy/tool-ui/src/Dialog.css +83 -26
  137. package/src/legacy/tool-ui/src/EmbeddedInputGroup/index.ts +20 -50
  138. package/src/legacy/tool-ui/src/Enhancement.css +3 -2
  139. package/src/legacy/tool-ui/src/Entry.ts +11 -0
  140. package/src/legacy/tool-ui/src/FileInput.css +1 -1
  141. package/src/legacy/tool-ui/src/Global.d.ts +3 -0
  142. package/src/legacy/tool-ui/src/Guide.css +5 -5
  143. package/src/legacy/tool-ui/src/ImageEditor.css +1 -1
  144. package/src/legacy/tool-ui/src/LinkTable.css +4 -0
  145. package/src/legacy/tool-ui/src/LiveBlog.css +2 -2
  146. package/src/legacy/tool-ui/src/MenuView.css +13 -7
  147. package/src/legacy/tool-ui/src/Message.css +4 -9
  148. package/src/legacy/tool-ui/src/Page.css +32 -9
  149. package/src/legacy/tool-ui/src/Popup.css +18 -1
  150. package/src/legacy/tool-ui/src/ProseMirror.css +1 -1
  151. package/src/legacy/tool-ui/src/RepeatableContentInputGroup.css +5 -5
  152. package/src/legacy/tool-ui/src/Revisions.css +8 -4
  153. package/src/legacy/tool-ui/src/SearchFields.css +2 -2
  154. package/src/legacy/tool-ui/src/SearchWidgetAdvanced.css +4 -13
  155. package/src/legacy/tool-ui/src/TabBar.css +2 -2
  156. package/src/legacy/tool-ui/src/Widget.css +29 -2
  157. package/src/legacy/tool-ui/src/dialog/index.ts +10 -18
  158. package/src/legacy/tool-ui/src/form/FormFilter/index.ts +2 -2
  159. package/src/legacy/tool-ui/src/main/webapp/dist/2111.5d43fec84fea624d6371.css +1 -0
  160. package/src/legacy/tool-ui/src/main/webapp/dist/5598.315afb3723a27880f87c.js +2 -0
  161. package/src/legacy/tool-ui/src/main/webapp/dist/6086.82620005e5673191c44f.js +1 -0
  162. package/src/legacy/tool-ui/src/main/webapp/dist/7718.5d43fec84fea624d6371.css +1 -0
  163. package/src/legacy/tool-ui/src/main/webapp/dist/{9360.41a5ba8d859d49f86811.js → 9360.22bc0127e04bc73d5261.js} +2 -2
  164. package/src/legacy/tool-ui/src/main/webapp/dist/{9360.41a5ba8d859d49f86811.js.LICENSE.txt → 9360.22bc0127e04bc73d5261.js.LICENSE.txt} +1 -1
  165. package/src/legacy/tool-ui/src/main/webapp/dist/ChartCompat.c7121ea8407d80ee5abe.js +1 -0
  166. package/src/legacy/tool-ui/src/main/webapp/dist/RTEProseMirror.1407c7815b605e9c9e5c.js +500 -0
  167. package/src/legacy/tool-ui/src/main/webapp/dist/{v4.1074f0affb38bd0dd492.js → v4.447a0e68294d13059714.js} +8 -8
  168. package/src/legacy/tool-ui/src/main/webapp/dist/v4.b1e9f6ac0449331711fc.css +3 -0
  169. package/src/legacy/tool-ui/src/main/webapp/dist/v5.4b881dc40345f5053736.js +92 -0
  170. package/src/legacy/tool-ui/src/main/webapp/dist/v5.c4249c5b01957c28ff92.css +5 -0
  171. package/src/legacy/tool-ui/src/main/webapp/v4/CIGCluster.less +9 -0
  172. package/src/legacy/tool-ui/src/main/webapp/v4/TabBar.less +4 -0
  173. package/src/legacy/tool-ui/src/theme/Theme.ts +28 -0
  174. package/src/legacy/tool-ui/src/v5.ts +61 -13
  175. package/dist/storybook/assets/if-defined-C-mi5lcR.js +0 -1
  176. package/dist/storybook/assets/iframe-abUCrGGI.css +0 -1
  177. package/src/legacy/tool-ui/src/main/webapp/dist/011a678e3efe41981754.png +0 -1
  178. package/src/legacy/tool-ui/src/main/webapp/dist/194137260531ee29a5f2.svg +0 -1
  179. package/src/legacy/tool-ui/src/main/webapp/dist/1e8408af1a34bdf61457.png +0 -1
  180. package/src/legacy/tool-ui/src/main/webapp/dist/2111.8f1e08a5cc223fd14542.css +0 -1
  181. package/src/legacy/tool-ui/src/main/webapp/dist/44b38a404dec4643c46b.png +0 -1
  182. package/src/legacy/tool-ui/src/main/webapp/dist/4a4ee777ddc0d4cedee4.png +0 -1
  183. package/src/legacy/tool-ui/src/main/webapp/dist/5598.d84773ca53126661bdca.js +0 -2
  184. package/src/legacy/tool-ui/src/main/webapp/dist/6086.7ca02b827506f29db590.js +0 -1
  185. package/src/legacy/tool-ui/src/main/webapp/dist/7718.8f1e08a5cc223fd14542.css +0 -1
  186. package/src/legacy/tool-ui/src/main/webapp/dist/ChartCompat.4dd096dd030942227ec6.js +0 -1
  187. package/src/legacy/tool-ui/src/main/webapp/dist/RTEProseMirror.55a2d6ccdce502c79815.js +0 -500
  188. package/src/legacy/tool-ui/src/main/webapp/dist/c6e9c007f41bd4d26c20.png +0 -1
  189. package/src/legacy/tool-ui/src/main/webapp/dist/v4.477ad1936f8c04d7b232.css +0 -3
  190. package/src/legacy/tool-ui/src/main/webapp/dist/v5.b49d2d7615d030b68f89.js +0 -92
  191. package/src/legacy/tool-ui/src/main/webapp/dist/v5.f9baf26a8d24e59e7af0.css +0 -5
  192. /package/src/legacy/tool-ui/src/main/webapp/dist/{5598.d84773ca53126661bdca.js.LICENSE.txt → 5598.315afb3723a27880f87c.js.LICENSE.txt} +0 -0
  193. /package/src/legacy/tool-ui/src/main/webapp/dist/{RTEProseMirror.55a2d6ccdce502c79815.js.LICENSE.txt → RTEProseMirror.1407c7815b605e9c9e5c.js.LICENSE.txt} +0 -0
  194. /package/src/legacy/tool-ui/src/main/webapp/dist/{v4.1074f0affb38bd0dd492.js.LICENSE.txt → v4.447a0e68294d13059714.js.LICENSE.txt} +0 -0
  195. /package/src/legacy/tool-ui/src/main/webapp/dist/{v5.b49d2d7615d030b68f89.js.LICENSE.txt → v5.4b881dc40345f5053736.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunkbrightspot_cms=self.webpackChunkbrightspot_cms||[]).push([[6086],{98566(t,e,i){"use strict";t.exports=i.p+"c6e9c007f41bd4d26c20.png"},62959(t,e,i){"use strict";t.exports=i.p+"c6e9c007f41bd4d26c20.png"},84527(t,e,i){"use strict";t.exports=i.p+"44b38a404dec4643c46b.png"},20134(t,e,i){"use strict";t.exports=i.p+"44b38a404dec4643c46b.png"},41206(t,e,i){"use strict";t.exports=i.p+"194137260531ee29a5f2.svg"},54015(t,e,i){"use strict";t.exports=i.p+"194137260531ee29a5f2.svg"},2853(t,e,i){"use strict";i.d(e,{A:()=>g});var o=i(64664),r=i.n(o),a=i(25243),n=i.n(a),s=i(20368),l=i.n(s),h=new URL(i(84527),i.b),d=new URL(i(41206),i.b),c=new URL(i(98566),i.b),p=n()(r()),u=l()(h),_=l()(d),f=l()(c);p.push([t.id,`.leaflet-draw-section{position:relative}.leaflet-draw-toolbar{margin-top:12px}.leaflet-draw-toolbar-top{margin-top:0}.leaflet-draw-toolbar-notop a:first-child{border-top-right-radius:0}.leaflet-draw-toolbar-nobottom a:last-child{border-bottom-right-radius:0}.leaflet-draw-toolbar a{background-image:url(${u});background-image:linear-gradient(transparent,transparent),url(${_});background-repeat:no-repeat;background-size:300px 30px;background-clip:padding-box}.leaflet-retina .leaflet-draw-toolbar a{background-image:url(${f});background-image:linear-gradient(transparent,transparent),url(${_})}\n.leaflet-draw a{display:block;text-align:center;text-decoration:none}.leaflet-draw a .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.leaflet-draw-actions{display:none;list-style:none;margin:0;padding:0;position:absolute;left:26px;top:0;white-space:nowrap}.leaflet-touch .leaflet-draw-actions{left:32px}.leaflet-right .leaflet-draw-actions{right:26px;left:auto}.leaflet-touch .leaflet-right .leaflet-draw-actions{right:32px;left:auto}.leaflet-draw-actions li{display:inline-block}\n.leaflet-draw-actions li:first-child a{border-left:0}.leaflet-draw-actions li:last-child a{-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.leaflet-right .leaflet-draw-actions li:last-child a{-webkit-border-radius:0;border-radius:0}.leaflet-right .leaflet-draw-actions li:first-child a{-webkit-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.leaflet-draw-actions a{background-color:#919187;border-left:1px solid #AAA;color:#FFF;font:11px/19px "Helvetica Neue",Arial,Helvetica,sans-serif;line-height:28px;text-decoration:none;padding-left:10px;padding-right:10px;height:28px}\n.leaflet-touch .leaflet-draw-actions a{font-size:12px;line-height:30px;height:30px}.leaflet-draw-actions-bottom{margin-top:0}.leaflet-draw-actions-top{margin-top:1px}.leaflet-draw-actions-top a,.leaflet-draw-actions-bottom a{height:27px;line-height:27px}.leaflet-draw-actions a:hover{background-color:#a0a098}.leaflet-draw-actions-top.leaflet-draw-actions-bottom a{height:26px;line-height:26px}.leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:-2px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:0 -1px}\n.leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-31px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-29px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-62px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-60px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-92px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-90px -1px}\n.leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-122px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-120px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-273px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-271px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-152px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-150px -1px}\n.leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-182px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-180px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-212px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-210px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-242px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-240px -2px}\n.leaflet-mouse-marker{background-color:#fff;cursor:crosshair}.leaflet-draw-tooltip{background:#363636;background:rgba(0,0,0,0.5);border:1px solid transparent;-webkit-border-radius:4px;border-radius:4px;color:#fff;font:12px/18px "Helvetica Neue",Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;visibility:hidden;white-space:nowrap;z-index:6}.leaflet-draw-tooltip:before{border-right:6px solid black;border-right-color:rgba(0,0,0,0.5);border-top:6px solid transparent;border-bottom:6px solid transparent;content:"";position:absolute;top:7px;left:-7px}\n.leaflet-error-draw-tooltip{background-color:#f2dede;border:1px solid #e6b6bd;color:#b94a48}.leaflet-error-draw-tooltip:before{border-right-color:#e6b6bd}.leaflet-draw-tooltip-single{margin-top:-12px}.leaflet-draw-tooltip-subtext{color:#f8d5e4}.leaflet-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.leaflet-edit-marker-selected{background-color:rgba(254,87,161,0.1);border:4px dashed rgba(254,87,161,0.6);-webkit-border-radius:4px;border-radius:4px;box-sizing:content-box}\n.leaflet-edit-move{cursor:move}.leaflet-edit-resize{cursor:pointer}.leaflet-oldie .leaflet-draw-toolbar{border:1px solid #999}`,""]);const g=7717==i.j?p:null},90044(t,e,i){"use strict";i.d(e,{A:()=>g});var o=i(77473),r=i.n(o),a=i(12434),n=i.n(a),s=i(49529),l=i.n(s),h=new URL(i(20134),i.b),d=new URL(i(54015),i.b),c=new URL(i(62959),i.b),p=n()(r()),u=l()(h),_=l()(d),f=l()(c);p.push([t.id,`.leaflet-draw-section{position:relative}.leaflet-draw-toolbar{margin-top:12px}.leaflet-draw-toolbar-top{margin-top:0}.leaflet-draw-toolbar-notop a:first-child{border-top-right-radius:0}.leaflet-draw-toolbar-nobottom a:last-child{border-bottom-right-radius:0}.leaflet-draw-toolbar a{background-image:url(${u});background-image:linear-gradient(transparent,transparent),url(${_});background-repeat:no-repeat;background-size:300px 30px;background-clip:padding-box}.leaflet-retina .leaflet-draw-toolbar a{background-image:url(${f});background-image:linear-gradient(transparent,transparent),url(${_})}\n.leaflet-draw a{display:block;text-align:center;text-decoration:none}.leaflet-draw a .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.leaflet-draw-actions{display:none;list-style:none;margin:0;padding:0;position:absolute;left:26px;top:0;white-space:nowrap}.leaflet-touch .leaflet-draw-actions{left:32px}.leaflet-right .leaflet-draw-actions{right:26px;left:auto}.leaflet-touch .leaflet-right .leaflet-draw-actions{right:32px;left:auto}.leaflet-draw-actions li{display:inline-block}\n.leaflet-draw-actions li:first-child a{border-left:0}.leaflet-draw-actions li:last-child a{-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.leaflet-right .leaflet-draw-actions li:last-child a{-webkit-border-radius:0;border-radius:0}.leaflet-right .leaflet-draw-actions li:first-child a{-webkit-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.leaflet-draw-actions a{background-color:#919187;border-left:1px solid #AAA;color:#FFF;font:11px/19px "Helvetica Neue",Arial,Helvetica,sans-serif;line-height:28px;text-decoration:none;padding-left:10px;padding-right:10px;height:28px}\n.leaflet-touch .leaflet-draw-actions a{font-size:12px;line-height:30px;height:30px}.leaflet-draw-actions-bottom{margin-top:0}.leaflet-draw-actions-top{margin-top:1px}.leaflet-draw-actions-top a,.leaflet-draw-actions-bottom a{height:27px;line-height:27px}.leaflet-draw-actions a:hover{background-color:#a0a098}.leaflet-draw-actions-top.leaflet-draw-actions-bottom a{height:26px;line-height:26px}.leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:-2px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:0 -1px}\n.leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-31px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-29px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-62px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-60px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-92px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-90px -1px}\n.leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-122px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-120px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-273px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-271px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-152px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-150px -1px}\n.leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-182px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-180px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-212px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-210px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-242px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-240px -2px}\n.leaflet-mouse-marker{background-color:#fff;cursor:crosshair}.leaflet-draw-tooltip{background:#363636;background:rgba(0,0,0,0.5);border:1px solid transparent;-webkit-border-radius:4px;border-radius:4px;color:#fff;font:12px/18px "Helvetica Neue",Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;visibility:hidden;white-space:nowrap;z-index:6}.leaflet-draw-tooltip:before{border-right:6px solid black;border-right-color:rgba(0,0,0,0.5);border-top:6px solid transparent;border-bottom:6px solid transparent;content:"";position:absolute;top:7px;left:-7px}\n.leaflet-error-draw-tooltip{background-color:#f2dede;border:1px solid #e6b6bd;color:#b94a48}.leaflet-error-draw-tooltip:before{border-right-color:#e6b6bd}.leaflet-draw-tooltip-single{margin-top:-12px}.leaflet-draw-tooltip-subtext{color:#f8d5e4}.leaflet-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.leaflet-edit-marker-selected{background-color:rgba(254,87,161,0.1);border:4px dashed rgba(254,87,161,0.6);-webkit-border-radius:4px;border-radius:4px;box-sizing:content-box}\n.leaflet-edit-move{cursor:move}.leaflet-edit-resize{cursor:pointer}.leaflet-oldie .leaflet-draw-toolbar{border:1px solid #999}`,""]);const g=3324==i.j?p:null},94768(t,e,i){var o,r,a=i(53608);o=window,r=document,a.drawVersion="1.0.4",a.Draw={},a.drawLocal={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes",text:"Save"},cancel:{title:"Cancel editing, discards all changes",text:"Cancel"},clearAll:{title:"Clear all layers",text:"Clear All"}},buttons:{edit:"Edit layers",editDisabled:"No layers to edit",remove:"Delete layers",removeDisabled:"No layers to delete"}},handlers:{edit:{tooltip:{text:"Drag handles or markers to edit features.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove."}}}}},a.Draw.Event={},a.Draw.Event.CREATED="draw:created",a.Draw.Event.EDITED="draw:edited",a.Draw.Event.DELETED="draw:deleted",a.Draw.Event.DRAWSTART="draw:drawstart",a.Draw.Event.DRAWSTOP="draw:drawstop",a.Draw.Event.DRAWVERTEX="draw:drawvertex",a.Draw.Event.EDITSTART="draw:editstart",a.Draw.Event.EDITMOVE="draw:editmove",a.Draw.Event.EDITRESIZE="draw:editresize",a.Draw.Event.EDITVERTEX="draw:editvertex",a.Draw.Event.EDITSTOP="draw:editstop",a.Draw.Event.DELETESTART="draw:deletestart",a.Draw.Event.DELETESTOP="draw:deletestop",a.Draw.Event.TOOLBAROPENED="draw:toolbaropened",a.Draw.Event.TOOLBARCLOSED="draw:toolbarclosed",a.Draw.Event.MARKERCONTEXT="draw:markercontext",a.Draw=a.Draw||{},a.Draw.Feature=a.Handler.extend({initialize:function(t,e){this._map=t,this._container=t._container,this._overlayPane=t._panes.overlayPane,this._popupPane=t._panes.popupPane,e&&e.shapeOptions&&(e.shapeOptions=a.Util.extend({},this.options.shapeOptions,e.shapeOptions)),a.setOptions(this,e);var i=a.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?a.Draw.Feature.include(a.Evented.prototype):a.Draw.Feature.include(a.Mixin.Events)},enable:function(){this._enabled||(a.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(a.Draw.Event.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(a.Handler.prototype.disable.call(this),this._map.fire(a.Draw.Event.DRAWSTOP,{layerType:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(a.DomUtil.disableTextSelection(),t.getContainer().focus(),this._tooltip=new a.Draw.Tooltip(this._map),a.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(a.DomUtil.enableTextSelection(),this._tooltip.dispose(),this._tooltip=null,a.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(t){a.setOptions(this,t)},_fireCreatedEvent:function(t){this._map.fire(a.Draw.Event.CREATED,{layer:t,layerType:this.type})},_cancelDrawing:function(t){27===t.keyCode&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())}}),a.Draw.Polyline=a.Draw.Feature.extend({statics:{TYPE:"polyline"},Poly:a.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new a.DivIcon({iconSize:new a.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new a.DivIcon({iconSize:new a.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(t,e){a.Browser.touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=a.drawLocal.draw.handlers.polyline.error,e&&e.drawError&&(e.drawError=a.Util.extend({},this.options.drawError,e.drawError)),this.type=a.Draw.Polyline.TYPE,a.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){a.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new a.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new a.Polyline([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=a.marker(this._map.getCenter(),{icon:a.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){a.Draw.Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var t=this._markers.pop(),e=this._poly,i=e.getLatLngs(),o=i.splice(-1,1)[0];this._poly.setLatLngs(i),this._markerGroup.removeLayer(t),e.getLatLngs().length<2&&this._map.removeLayer(e),this._vertexChanged(o,!1)}},addVertex:function(t){this._markers.length>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(t)?this._showErrorTooltip():(this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(t)),this._poly.addLatLng(t),2===this._poly.getLatLngs().length&&this._map.addLayer(this._poly),this._vertexChanged(t,!0))},completeShape:function(){this._markers.length<=1||!this._shapeIsValid()||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_finishShape:function(){var t=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs(),e=this._poly.newLatLngIntersects(t[t.length-1]);!this.options.allowIntersection&&e||!this._shapeIsValid()?this._showErrorTooltip():(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_shapeIsValid:function(){return!0},_onZoomEnd:function(){null!==this._markers&&this._updateGuide()},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),i=this._map.layerPointToLatLng(e);this._currentLatLng=i,this._updateTooltip(i),this._updateGuide(e),this._mouseMarker.setLatLng(i),a.DomEvent.preventDefault(t.originalEvent)},_vertexChanged:function(t,e){this._map.fire(a.Draw.Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(t,e),this._clearGuides(),this._updateTooltip()},_onMouseDown:function(t){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(t),this._clickHandled=!0,this._disableNewMarkers();var e=t.originalEvent,i=e.clientX,o=e.clientY;this._startPoint.call(this,i,o)}},_startPoint:function(t,e){this._mouseDownOrigin=a.point(t,e)},_onMouseUp:function(t){var e=t.originalEvent,i=e.clientX,o=e.clientY;this._endPoint.call(this,i,o,t),this._clickHandled=null},_endPoint:function(t,e,i){if(this._mouseDownOrigin){var r=a.point(t,e).distanceTo(this._mouseDownOrigin),n=this._calculateFinishDistance(i.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(i.latlng),this._finishShape()):n<10&&a.Browser.touch?this._finishShape():Math.abs(r)<9*(o.devicePixelRatio||1)&&this.addVertex(i.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(t){var e,i,o=t.originalEvent;!o.touches||!o.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(e=o.touches[0].clientX,i=o.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,e,i),this._endPoint.call(this,e,i,t),this._touchHandled=null),this._clickHandled=null},_onMouseOut:function(){this._tooltip&&this._tooltip._onMouseOut.call(this._tooltip)},_calculateFinishDistance:function(t){var e;if(this._markers.length>0){var i;if(this.type===a.Draw.Polyline.TYPE)i=this._markers[this._markers.length-1];else{if(this.type!==a.Draw.Polygon.TYPE)return 1/0;i=this._markers[0]}var o=this._map.latLngToContainerPoint(i.getLatLng()),r=new a.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),n=this._map.latLngToContainerPoint(r.getLatLng());e=o.distanceTo(n)}else e=1/0;return e},_updateFinishHandler:function(){var t=this._markers.length;t>1&&this._markers[t-1].on("click",this._finishShape,this),t>2&&this._markers[t-2].off("click",this._finishShape,this)},_createMarker:function(t){var e=new a.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(e),e},_updateGuide:function(t){var e=this._markers?this._markers.length:0;e>0&&(t=t||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[e-1].getLatLng()),t))},_updateTooltip:function(t){var e=this._getTooltipText();t&&this._tooltip.updatePosition(t),this._errorShown||this._tooltip.updateContent(e)},_drawGuide:function(t,e){var i,o,r,n=Math.floor(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))),s=this.options.guidelineDistance,l=this.options.maxGuideLineLength,h=n>l?n-l:s;for(this._guidesContainer||(this._guidesContainer=a.DomUtil.create("div","leaflet-draw-guides",this._overlayPane));h<n;h+=this.options.guidelineDistance)i=h/n,o={x:Math.floor(t.x*(1-i)+i*e.x),y:Math.floor(t.y*(1-i)+i*e.y)},(r=a.DomUtil.create("div","leaflet-draw-guide-dash",this._guidesContainer)).style.backgroundColor=this._errorShown?this.options.drawError.color:this.options.shapeOptions.color,a.DomUtil.setPosition(r,o)},_updateGuideColor:function(t){if(this._guidesContainer)for(var e=0,i=this._guidesContainer.childNodes.length;e<i;e++)this._guidesContainer.childNodes[e].style.backgroundColor=t},_clearGuides:function(){if(this._guidesContainer)for(;this._guidesContainer.firstChild;)this._guidesContainer.removeChild(this._guidesContainer.firstChild)},_getTooltipText:function(){var t,e,i=this.options.showLength;return 0===this._markers.length?t={text:a.drawLocal.draw.handlers.polyline.tooltip.start}:(e=i?this._getMeasurementString():"",t=1===this._markers.length?{text:a.drawLocal.draw.handlers.polyline.tooltip.cont,subtext:e}:{text:a.drawLocal.draw.handlers.polyline.tooltip.end,subtext:e}),t},_updateRunningMeasure:function(t,e){var i,o,r=this._markers.length;1===this._markers.length?this._measurementRunningTotal=0:(i=r-(e?2:1),o=a.GeometryUtil.isVersion07x()?t.distanceTo(this._markers[i].getLatLng())*(this.options.factor||1):this._map.distance(t,this._markers[i].getLatLng())*(this.options.factor||1),this._measurementRunningTotal+=o*(e?1:-1))},_getMeasurementString:function(){var t,e=this._currentLatLng,i=this._markers[this._markers.length-1].getLatLng();return t=a.GeometryUtil.isVersion07x()?i&&e&&e.distanceTo?this._measurementRunningTotal+e.distanceTo(i)*(this.options.factor||1):this._measurementRunningTotal||0:i&&e?this._measurementRunningTotal+this._map.distance(e,i)*(this.options.factor||1):this._measurementRunningTotal||0,a.GeometryUtil.readableDistance(t,this.options.metric,this.options.feet,this.options.nautic,this.options.precision)},_showErrorTooltip:function(){this._errorShown=!0,this._tooltip.showAsError().updateContent({text:this.options.drawError.message}),this._updateGuideColor(this.options.drawError.color),this._poly.setStyle({color:this.options.drawError.color}),this._clearHideErrorTimeout(),this._hideErrorTimeout=setTimeout(a.Util.bind(this._hideErrorTooltip,this),this.options.drawError.timeout)},_hideErrorTooltip:function(){this._errorShown=!1,this._clearHideErrorTimeout(),this._tooltip.removeError().updateContent(this._getTooltipText()),this._updateGuideColor(this.options.shapeOptions.color),this._poly.setStyle({color:this.options.shapeOptions.color})},_clearHideErrorTimeout:function(){this._hideErrorTimeout&&(clearTimeout(this._hideErrorTimeout),this._hideErrorTimeout=null)},_disableNewMarkers:function(){this._disableMarkers=!0},_enableNewMarkers:function(){setTimeout(function(){this._disableMarkers=!1}.bind(this),50)},_cleanUpShape:function(){this._markers.length>1&&this._markers[this._markers.length-1].off("click",this._finishShape,this)},_fireCreatedEvent:function(){var t=new this.Poly(this._poly.getLatLngs(),this.options.shapeOptions);a.Draw.Feature.prototype._fireCreatedEvent.call(this,t)}}),a.Draw.Polygon=a.Draw.Polyline.extend({statics:{TYPE:"polygon"},Poly:a.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:!0,feet:!0,nautic:!1,precision:{}},initialize:function(t,e){a.Draw.Polyline.prototype.initialize.call(this,t,e),this.type=a.Draw.Polygon.TYPE},_updateFinishHandler:function(){var t=this._markers.length;1===t&&this._markers[0].on("click",this._finishShape,this),t>2&&(this._markers[t-1].on("dblclick",this._finishShape,this),t>3&&this._markers[t-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var t,e;return 0===this._markers.length?t=a.drawLocal.draw.handlers.polygon.tooltip.start:this._markers.length<3?(t=a.drawLocal.draw.handlers.polygon.tooltip.cont,e=this._getMeasurementString()):(t=a.drawLocal.draw.handlers.polygon.tooltip.end,e=this._getMeasurementString()),{text:t,subtext:e}},_getMeasurementString:function(){var t=this._area,e="";return t||this.options.showLength?(this.options.showLength&&(e=a.Draw.Polyline.prototype._getMeasurementString.call(this)),t&&(e+="<br>"+a.GeometryUtil.readableArea(t,this.options.metric,this.options.precision)),e):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(t,e){var i;!this.options.allowIntersection&&this.options.showArea&&(i=this._poly.getLatLngs(),this._area=a.GeometryUtil.geodesicArea(i)),a.Draw.Polyline.prototype._vertexChanged.call(this,t,e)},_cleanUpShape:function(){var t=this._markers.length;t>0&&(this._markers[0].off("click",this._finishShape,this),t>2&&this._markers[t-1].off("dblclick",this._finishShape,this))}}),a.SimpleShape={},a.Draw.SimpleShape=a.Draw.Feature.extend({options:{repeatMode:!1},initialize:function(t,e){this._endLabelText=a.drawLocal.draw.handlers.simpleshape.tooltip.end,a.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){a.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._mapDraggable=this._map.dragging.enabled(),this._mapDraggable&&this._map.dragging.disable(),this._container.style.cursor="crosshair",this._tooltip.updateContent({text:this._initialLabelText}),this._map.on("mousedown",this._onMouseDown,this).on("mousemove",this._onMouseMove,this).on("touchstart",this._onMouseDown,this).on("touchmove",this._onMouseMove,this),r.addEventListener("touchstart",a.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){a.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._mapDraggable&&this._map.dragging.enable(),this._container.style.cursor="",this._map.off("mousedown",this._onMouseDown,this).off("mousemove",this._onMouseMove,this).off("touchstart",this._onMouseDown,this).off("touchmove",this._onMouseMove,this),a.DomEvent.off(r,"mouseup",this._onMouseUp,this),a.DomEvent.off(r,"touchend",this._onMouseUp,this),r.removeEventListener("touchstart",a.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),delete this._shape)),this._isDrawing=!1},_getTooltipText:function(){return{text:this._endLabelText}},_onMouseDown:function(t){this._isDrawing=!0,this._startLatLng=t.latlng,a.DomEvent.on(r,"mouseup",this._onMouseUp,this).on(r,"touchend",this._onMouseUp,this).preventDefault(t.originalEvent)},_onMouseMove:function(t){var e=t.latlng;this._tooltip.updatePosition(e),this._isDrawing&&(this._tooltip.updateContent(this._getTooltipText()),this._drawShape(e))},_onMouseUp:function(){this._shape&&this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()}}),a.Draw.Rectangle=a.Draw.SimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showArea:!0,metric:!0},initialize:function(t,e){this.type=a.Draw.Rectangle.TYPE,this._initialLabelText=a.drawLocal.draw.handlers.rectangle.tooltip.start,a.Draw.SimpleShape.prototype.initialize.call(this,t,e)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,a.Draw.SimpleShape.prototype.disable.call(this))},_onMouseUp:function(t){this._shape||this._isCurrentlyTwoClickDrawing?this._isCurrentlyTwoClickDrawing&&!function(t){for(;(t=t.parentElement)&&!t.classList.contains("leaflet-pane"););return t}(t.target)||a.Draw.SimpleShape.prototype._onMouseUp.call(this):this._isCurrentlyTwoClickDrawing=!0},_drawShape:function(t){this._shape?this._shape.setBounds(new a.LatLngBounds(this._startLatLng,t)):(this._shape=new a.Rectangle(new a.LatLngBounds(this._startLatLng,t),this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var t=new a.Rectangle(this._shape.getBounds(),this.options.shapeOptions);a.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,t)},_getTooltipText:function(){var t,e,i,o=a.Draw.SimpleShape.prototype._getTooltipText.call(this),r=this._shape,n=this.options.showArea;return r&&(t=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),e=a.GeometryUtil.geodesicArea(t),i=n?a.GeometryUtil.readableArea(e,this.options.metric):""),{text:o.text,subtext:i}}}),a.Draw.Marker=a.Draw.Feature.extend({statics:{TYPE:"marker"},options:{icon:new a.Icon.Default,repeatMode:!1,zIndexOffset:2e3},initialize:function(t,e){this.type=a.Draw.Marker.TYPE,this._initialLabelText=a.drawLocal.draw.handlers.marker.tooltip.start,a.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){a.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._tooltip.updateContent({text:this._initialLabelText}),this._mouseMarker||(this._mouseMarker=a.marker(this._map.getCenter(),{icon:a.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){a.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_onMouseMove:function(t){var e=t.latlng;this._tooltip.updatePosition(e),this._mouseMarker.setLatLng(e),this._marker?(e=this._mouseMarker.getLatLng(),this._marker.setLatLng(e)):(this._marker=this._createMarker(e),this._marker.on("click",this._onClick,this),this._map.on("click",this._onClick,this).addLayer(this._marker))},_createMarker:function(t){return new a.Marker(t,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_onTouch:function(t){this._onMouseMove(t),this._onClick()},_fireCreatedEvent:function(){var t=new a.Marker.Touch(this._marker.getLatLng(),{icon:this.options.icon});a.Draw.Feature.prototype._fireCreatedEvent.call(this,t)}}),a.Draw.CircleMarker=a.Draw.Marker.extend({statics:{TYPE:"circlemarker"},options:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0,zIndexOffset:2e3},initialize:function(t,e){this.type=a.Draw.CircleMarker.TYPE,this._initialLabelText=a.drawLocal.draw.handlers.circlemarker.tooltip.start,a.Draw.Feature.prototype.initialize.call(this,t,e)},_fireCreatedEvent:function(){var t=new a.CircleMarker(this._marker.getLatLng(),this.options);a.Draw.Feature.prototype._fireCreatedEvent.call(this,t)},_createMarker:function(t){return new a.CircleMarker(t,this.options)}}),a.Draw.Circle=a.Draw.SimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showRadius:!0,metric:!0,feet:!0,nautic:!1},initialize:function(t,e){this.type=a.Draw.Circle.TYPE,this._initialLabelText=a.drawLocal.draw.handlers.circle.tooltip.start,a.Draw.SimpleShape.prototype.initialize.call(this,t,e)},_drawShape:function(t){if(a.GeometryUtil.isVersion07x())var e=this._startLatLng.distanceTo(t);else e=this._map.distance(this._startLatLng,t);this._shape?this._shape.setRadius(e):(this._shape=new a.Circle(this._startLatLng,e,this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var t=new a.Circle(this._startLatLng,this._shape.getRadius(),this.options.shapeOptions);a.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,t)},_onMouseMove:function(t){var e,i=t.latlng,o=this.options.showRadius,r=this.options.metric;if(this._tooltip.updatePosition(i),this._isDrawing){this._drawShape(i),e=this._shape.getRadius().toFixed(1);var n="";o&&(n=a.drawLocal.draw.handlers.circle.radius+": "+a.GeometryUtil.readableDistance(e,r,this.options.feet,this.options.nautic)),this._tooltip.updateContent({text:this._endLabelText,subtext:n})}}}),a.Edit=a.Edit||{},a.Edit.Marker=a.Handler.extend({initialize:function(t,e){this._marker=t,a.setOptions(this,e)},addHooks:function(){var t=this._marker;t.dragging.enable(),t.on("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},removeHooks:function(){var t=this._marker;t.dragging.disable(),t.off("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},_onDragEnd:function(t){var e=t.target;e.edited=!0,this._map.fire(a.Draw.Event.EDITMOVE,{layer:e})},_toggleMarkerHighlight:function(){var t=this._marker._icon;t&&(t.style.display="none",a.DomUtil.hasClass(t,"leaflet-edit-marker-selected")?(a.DomUtil.removeClass(t,"leaflet-edit-marker-selected"),this._offsetMarker(t,-4)):(a.DomUtil.addClass(t,"leaflet-edit-marker-selected"),this._offsetMarker(t,4)),t.style.display="")},_offsetMarker:function(t,e){var i=parseInt(t.style.marginTop,10)-e,o=parseInt(t.style.marginLeft,10)-e;t.style.marginTop=i+"px",t.style.marginLeft=o+"px"}}),a.Marker.addInitHook(function(){a.Edit.Marker&&(this.editing=new a.Edit.Marker(this),this.options.editable&&this.editing.enable())}),a.Edit=a.Edit||{},a.Edit.Poly=a.Handler.extend({initialize:function(t){this.latlngs=[t._latlngs],t._holes&&(this.latlngs=this.latlngs.concat(t._holes)),this._poly=t,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return a.Polyline._flat?a.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(t){for(var e=0;e<this._verticesHandlers.length;e++)t(this._verticesHandlers[e])},addHooks:function(){this._initHandlers(),this._eachVertexHandler(function(t){t.addHooks()})},removeHooks:function(){this._eachVertexHandler(function(t){t.removeHooks()})},updateMarkers:function(){this._eachVertexHandler(function(t){t.updateMarkers()})},_initHandlers:function(){this._verticesHandlers=[];for(var t=0;t<this.latlngs.length;t++)this._verticesHandlers.push(new a.Edit.PolyVerticesEdit(this._poly,this.latlngs[t],this._poly.options.poly))},_updateLatLngs:function(t){this.latlngs=[t.layer._latlngs],t.layer._holes&&(this.latlngs=this.latlngs.concat(t.layer._holes))}}),a.Edit.PolyVerticesEdit=a.Handler.extend({options:{icon:new a.DivIcon({iconSize:new a.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new a.DivIcon({iconSize:new a.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),drawError:{color:"#b00b00",timeout:1e3}},initialize:function(t,e,i){a.Browser.touch&&(this.options.icon=this.options.touchIcon),this._poly=t,i&&i.drawError&&(i.drawError=a.Util.extend({},this.options.drawError,i.drawError)),this._latlngs=e,a.setOptions(this,i)},_defaultShape:function(){return a.Polyline._flat?a.Polyline._flat(this._latlngs)?this._latlngs:this._latlngs[0]:this._latlngs},addHooks:function(){var t=this._poly,e=t._path;t instanceof a.Polygon||(t.options.fill=!1,t.options.editing&&(t.options.editing.fill=!1)),e&&t.options.editing&&t.options.editing.className&&(t.options.original.className&&t.options.original.className.split(" ").forEach(function(t){a.DomUtil.removeClass(e,t)}),t.options.editing.className.split(" ").forEach(function(t){a.DomUtil.addClass(e,t)})),t.setStyle(t.options.editing),this._poly._map&&(this._map=this._poly._map,this._markerGroup||this._initMarkers(),this._poly._map.addLayer(this._markerGroup))},removeHooks:function(){var t=this._poly,e=t._path;e&&t.options.editing&&t.options.editing.className&&(t.options.editing.className.split(" ").forEach(function(t){a.DomUtil.removeClass(e,t)}),t.options.original.className&&t.options.original.className.split(" ").forEach(function(t){a.DomUtil.addClass(e,t)})),t.setStyle(t.options.original),t._map&&(t._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers)},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new a.LayerGroup),this._markers=[];var t,e,i,o,r,n,s=this._defaultShape();for(t=0,i=s.length;t<i;t++)(o=this._createMarker(s[t],t)).on("click",this._onMarkerClick,this),o.on("contextmenu",this._onContextMenu,this),this._markers.push(o);for(t=0,e=i-1;t<i;e=t++)(0!==t||a.Polygon&&this._poly instanceof a.Polygon)&&(r=this._markers[e],n=this._markers[t],this._createMiddleMarker(r,n),this._updatePrevNext(r,n))},_createMarker:function(t,e){var i=new a.Marker.Touch(t,{draggable:!0,icon:this.options.icon});return i._origLatLng=t,i._index=e,i.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._fireEdit,this).on("touchmove",this._onTouchMove,this).on("touchend",this._fireEdit,this).on("MSPointerMove",this._onTouchMove,this).on("MSPointerUp",this._fireEdit,this),this._markerGroup.addLayer(i),i},_onMarkerDragStart:function(){this._poly.fire("editstart")},_spliceLatLngs:function(){var t=this._defaultShape(),e=[].splice.apply(t,arguments);return this._poly._convertLatLngs(t,!0),this._poly.redraw(),e},_removeMarker:function(t){var e=t._index;this._markerGroup.removeLayer(t),this._markers.splice(e,1),this._spliceLatLngs(e,1),this._updateIndexes(e,-1),t.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._fireEdit,this).off("touchmove",this._onMarkerDrag,this).off("touchend",this._fireEdit,this).off("click",this._onMarkerClick,this).off("MSPointerMove",this._onTouchMove,this).off("MSPointerUp",this._fireEdit,this)},_fireEdit:function(){this._poly.edited=!0,this._poly.fire("edit"),this._poly._map.fire(a.Draw.Event.EDITVERTEX,{layers:this._markerGroup,poly:this._poly})},_onMarkerDrag:function(t){var e=t.target,i=this._poly,o=a.LatLngUtil.cloneLatLng(e._origLatLng);if(a.extend(e._origLatLng,e._latlng),i.options.poly){var r=i._map._editTooltip;if(!i.options.poly.allowIntersection&&i.intersects()){a.extend(e._origLatLng,o),e.setLatLng(o);var n=i.options.color;i.setStyle({color:this.options.drawError.color}),r&&r.updateContent({text:a.drawLocal.draw.handlers.polyline.error}),setTimeout(function(){i.setStyle({color:n}),r&&r.updateContent({text:a.drawLocal.edit.handlers.edit.tooltip.text,subtext:a.drawLocal.edit.handlers.edit.tooltip.subtext})},1e3)}}e._middleLeft&&e._middleLeft.setLatLng(this._getMiddleLatLng(e._prev,e)),e._middleRight&&e._middleRight.setLatLng(this._getMiddleLatLng(e,e._next)),this._poly._bounds._southWest=a.latLng(1/0,1/0),this._poly._bounds._northEast=a.latLng(-1/0,-1/0);var s=this._poly.getLatLngs();this._poly._convertLatLngs(s,!0),this._poly.redraw(),this._poly.fire("editdrag")},_onMarkerClick:function(t){var e=a.Polygon&&this._poly instanceof a.Polygon?4:3,i=t.target;this._defaultShape().length<e||(this._removeMarker(i),this._updatePrevNext(i._prev,i._next),i._middleLeft&&this._markerGroup.removeLayer(i._middleLeft),i._middleRight&&this._markerGroup.removeLayer(i._middleRight),i._prev&&i._next?this._createMiddleMarker(i._prev,i._next):i._prev?i._next||(i._prev._middleRight=null):i._next._middleLeft=null,this._fireEdit())},_onContextMenu:function(t){var e=t.target;this._poly,this._poly._map.fire(a.Draw.Event.MARKERCONTEXT,{marker:e,layers:this._markerGroup,poly:this._poly}),a.DomEvent.stopPropagation},_onTouchMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent.touches[0]),i=this._map.layerPointToLatLng(e),o=t.target;a.extend(o._origLatLng,i),o._middleLeft&&o._middleLeft.setLatLng(this._getMiddleLatLng(o._prev,o)),o._middleRight&&o._middleRight.setLatLng(this._getMiddleLatLng(o,o._next)),this._poly.redraw(),this.updateMarkers()},_updateIndexes:function(t,e){this._markerGroup.eachLayer(function(i){i._index>t&&(i._index+=e)})},_createMiddleMarker:function(t,e){var i,o,r,a=this._getMiddleLatLng(t,e),n=this._createMarker(a);n.setOpacity(.6),t._middleRight=e._middleLeft=n,o=function(){n.off("touchmove",o,this);var r=e._index;n._index=r,n.off("click",i,this).on("click",this._onMarkerClick,this),a.lat=n.getLatLng().lat,a.lng=n.getLatLng().lng,this._spliceLatLngs(r,0,a),this._markers.splice(r,0,n),n.setOpacity(1),this._updateIndexes(r,1),e._index++,this._updatePrevNext(t,n),this._updatePrevNext(n,e),this._poly.fire("editstart")},r=function(){n.off("dragstart",o,this),n.off("dragend",r,this),n.off("touchmove",o,this),this._createMiddleMarker(t,n),this._createMiddleMarker(n,e)},i=function(){o.call(this),r.call(this),this._fireEdit()},n.on("click",i,this).on("dragstart",o,this).on("dragend",r,this).on("touchmove",o,this),this._markerGroup.addLayer(n)},_updatePrevNext:function(t,e){t&&(t._next=e),e&&(e._prev=t)},_getMiddleLatLng:function(t,e){var i=this._poly._map,o=i.project(t.getLatLng()),r=i.project(e.getLatLng());return i.unproject(o._add(r)._divideBy(2))}}),a.Polyline.addInitHook(function(){this.editing||(a.Edit.Poly&&(this.editing=new a.Edit.Poly(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()}))}),a.Edit=a.Edit||{},a.Edit.SimpleShape=a.Handler.extend({options:{moveIcon:new a.DivIcon({iconSize:new a.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move"}),resizeIcon:new a.DivIcon({iconSize:new a.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize"}),touchMoveIcon:new a.DivIcon({iconSize:new a.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move leaflet-touch-icon"}),touchResizeIcon:new a.DivIcon({iconSize:new a.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize leaflet-touch-icon"})},initialize:function(t,e){a.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=t,a.Util.setOptions(this,e)},addHooks:function(){var t=this._shape;this._shape._map&&(this._map=this._shape._map,t.setStyle(t.options.editing),t._map&&(this._map=t._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var t=this._shape;if(t.setStyle(t.options.original),t._map){this._unbindMarker(this._moveMarker);for(var e=0,i=this._resizeMarkers.length;e<i;e++)this._unbindMarker(this._resizeMarkers[e]);this._resizeMarkers=null,this._map.removeLayer(this._markerGroup),delete this._markerGroup}this._map=null},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new a.LayerGroup),this._createMoveMarker(),this._createResizeMarker()},_createMoveMarker:function(){},_createResizeMarker:function(){},_createMarker:function(t,e){var i=new a.Marker.Touch(t,{draggable:!0,icon:e,zIndexOffset:10});return this._bindMarker(i),this._markerGroup.addLayer(i),i},_bindMarker:function(t){t.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._onMarkerDragEnd,this).on("touchstart",this._onTouchStart,this).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onTouchEnd,this).on("MSPointerUp",this._onTouchEnd,this)},_unbindMarker:function(t){t.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._onMarkerDragEnd,this).off("touchstart",this._onTouchStart,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onTouchEnd,this).off("MSPointerUp",this._onTouchEnd,this)},_onMarkerDragStart:function(t){t.target.setOpacity(0),this._shape.fire("editstart")},_fireEdit:function(){this._shape.edited=!0,this._shape.fire("edit")},_onMarkerDrag:function(t){var e=t.target,i=e.getLatLng();e===this._moveMarker?this._move(i):this._resize(i),this._shape.redraw(),this._shape.fire("editdrag")},_onMarkerDragEnd:function(t){t.target.setOpacity(1),this._fireEdit()},_onTouchStart:function(t){if(a.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,t),"function"==typeof this._getCorners){var e=this._getCorners(),i=t.target,o=i._cornerIndex;i.setOpacity(0),this._oppositeCorner=e[(o+2)%4],this._toggleCornerMarkers(0,o)}this._shape.fire("editstart")},_onTouchMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent.touches[0]),i=this._map.layerPointToLatLng(e);return t.target===this._moveMarker?this._move(i):this._resize(i),this._shape.redraw(),!1},_onTouchEnd:function(t){t.target.setOpacity(1),this.updateMarkers(),this._fireEdit()},_move:function(){},_resize:function(){}}),a.Edit=a.Edit||{},a.Edit.Rectangle=a.Edit.SimpleShape.extend({_createMoveMarker:function(){var t=this._shape.getBounds().getCenter();this._moveMarker=this._createMarker(t,this.options.moveIcon)},_createResizeMarker:function(){var t=this._getCorners();this._resizeMarkers=[];for(var e=0,i=t.length;e<i;e++)this._resizeMarkers.push(this._createMarker(t[e],this.options.resizeIcon)),this._resizeMarkers[e]._cornerIndex=e},_onMarkerDragStart:function(t){a.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,t);var e=this._getCorners(),i=t.target._cornerIndex;this._oppositeCorner=e[(i+2)%4],this._toggleCornerMarkers(0,i)},_onMarkerDragEnd:function(t){var e,i=t.target;i===this._moveMarker&&(e=this._shape.getBounds().getCenter(),i.setLatLng(e)),this._toggleCornerMarkers(1),this._repositionCornerMarkers(),a.Edit.SimpleShape.prototype._onMarkerDragEnd.call(this,t)},_move:function(t){for(var e,i=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),o=this._shape.getBounds().getCenter(),r=[],n=0,s=i.length;n<s;n++)e=[i[n].lat-o.lat,i[n].lng-o.lng],r.push([t.lat+e[0],t.lng+e[1]]);this._shape.setLatLngs(r),this._repositionCornerMarkers(),this._map.fire(a.Draw.Event.EDITMOVE,{layer:this._shape})},_resize:function(t){var e;this._shape.setBounds(a.latLngBounds(t,this._oppositeCorner)),e=this._shape.getBounds(),this._moveMarker.setLatLng(e.getCenter()),this._map.fire(a.Draw.Event.EDITRESIZE,{layer:this._shape})},_getCorners:function(){var t=this._shape.getBounds();return[t.getNorthWest(),t.getNorthEast(),t.getSouthEast(),t.getSouthWest()]},_toggleCornerMarkers:function(t){for(var e=0,i=this._resizeMarkers.length;e<i;e++)this._resizeMarkers[e].setOpacity(t)},_repositionCornerMarkers:function(){for(var t=this._getCorners(),e=0,i=this._resizeMarkers.length;e<i;e++)this._resizeMarkers[e].setLatLng(t[e])}}),a.Rectangle.addInitHook(function(){a.Edit.Rectangle&&(this.editing=new a.Edit.Rectangle(this),this.options.editable&&this.editing.enable())}),a.Edit=a.Edit||{},a.Edit.CircleMarker=a.Edit.SimpleShape.extend({_createMoveMarker:function(){var t=this._shape.getLatLng();this._moveMarker=this._createMarker(t,this.options.moveIcon)},_createResizeMarker:function(){this._resizeMarkers=[]},_move:function(t){if(this._resizeMarkers.length){var e=this._getResizeMarkerPoint(t);this._resizeMarkers[0].setLatLng(e)}this._shape.setLatLng(t),this._map.fire(a.Draw.Event.EDITMOVE,{layer:this._shape})}}),a.CircleMarker.addInitHook(function(){a.Edit.CircleMarker&&(this.editing=new a.Edit.CircleMarker(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()})}),a.Edit=a.Edit||{},a.Edit.Circle=a.Edit.CircleMarker.extend({_createResizeMarker:function(){var t=this._shape.getLatLng(),e=this._getResizeMarkerPoint(t);this._resizeMarkers=[],this._resizeMarkers.push(this._createMarker(e,this.options.resizeIcon))},_getResizeMarkerPoint:function(t){var e=this._shape._radius*Math.cos(Math.PI/4),i=this._map.project(t);return this._map.unproject([i.x+e,i.y-e])},_resize:function(t){var e=this._moveMarker.getLatLng();a.GeometryUtil.isVersion07x()?radius=e.distanceTo(t):radius=this._map.distance(e,t),this._shape.setRadius(radius),this._map.editTooltip&&this._map._editTooltip.updateContent({text:a.drawLocal.edit.handlers.edit.tooltip.subtext+"<br />"+a.drawLocal.edit.handlers.edit.tooltip.text,subtext:a.drawLocal.draw.handlers.circle.radius+": "+a.GeometryUtil.readableDistance(radius,!0,this.options.feet,this.options.nautic)}),this._shape.setRadius(radius),this._map.fire(a.Draw.Event.EDITRESIZE,{layer:this._shape})}}),a.Circle.addInitHook(function(){a.Edit.Circle&&(this.editing=new a.Edit.Circle(this),this.options.editable&&this.editing.enable())}),a.Map.mergeOptions({touchExtend:!0}),a.Map.TouchExtend=a.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane},addHooks:function(){a.DomEvent.on(this._container,"touchstart",this._onTouchStart,this),a.DomEvent.on(this._container,"touchend",this._onTouchEnd,this),a.DomEvent.on(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(a.DomEvent.on(this._container,"MSPointerDown",this._onTouchStart,this),a.DomEvent.on(this._container,"MSPointerUp",this._onTouchEnd,this),a.DomEvent.on(this._container,"MSPointerMove",this._onTouchMove,this),a.DomEvent.on(this._container,"MSPointerCancel",this._onTouchCancel,this)):(a.DomEvent.on(this._container,"touchcancel",this._onTouchCancel,this),a.DomEvent.on(this._container,"touchleave",this._onTouchLeave,this))},removeHooks:function(){a.DomEvent.off(this._container,"touchstart",this._onTouchStart,this),a.DomEvent.off(this._container,"touchend",this._onTouchEnd,this),a.DomEvent.off(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(a.DomEvent.off(this._container,"MSPointerDown",this._onTouchStart,this),a.DomEvent.off(this._container,"MSPointerUp",this._onTouchEnd,this),a.DomEvent.off(this._container,"MSPointerMove",this._onTouchMove,this),a.DomEvent.off(this._container,"MSPointerCancel",this._onTouchCancel,this)):(a.DomEvent.off(this._container,"touchcancel",this._onTouchCancel,this),a.DomEvent.off(this._container,"touchleave",this._onTouchLeave,this))},_touchEvent:function(t,e){var i={};if(void 0!==t.touches){if(!t.touches.length)return;i=t.touches[0]}else{if("touch"!==t.pointerType)return;if(i=t,!this._filterClick(t))return}var o=this._map.mouseEventToContainerPoint(i),r=this._map.mouseEventToLayerPoint(i),a=this._map.layerPointToLatLng(r);this._map.fire(e,{latlng:a,layerPoint:r,containerPoint:o,pageX:i.pageX,pageY:i.pageY,originalEvent:t})},_filterClick:function(t){var e=t.timeStamp||t.originalEvent.timeStamp,i=a.DomEvent._lastClick&&e-a.DomEvent._lastClick;return i&&i>100&&i<500||t.target._simulatedClick&&!t._simulated?(a.DomEvent.stop(t),!1):(a.DomEvent._lastClick=e,!0)},_onTouchStart:function(t){this._map._loaded&&this._touchEvent(t,"touchstart")},_onTouchEnd:function(t){this._map._loaded&&this._touchEvent(t,"touchend")},_onTouchCancel:function(t){if(this._map._loaded){var e="touchcancel";this._detectIE()&&(e="pointercancel"),this._touchEvent(t,e)}},_onTouchLeave:function(t){this._map._loaded&&this._touchEvent(t,"touchleave")},_onTouchMove:function(t){this._map._loaded&&this._touchEvent(t,"touchmove")},_detectIE:function(){var t=o.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var r=t.indexOf("Edge/");return r>0&&parseInt(t.substring(r+5,t.indexOf(".",r)),10)}}),a.Map.addInitHook("addHandler","touchExtend",a.Map.TouchExtend),a.Marker.Touch=a.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?a.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu","touchstart","touchend","touchmove"];this._detectIE?e.concat(["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"]):e.concat(["touchcancel"]),a.DomUtil.addClass(t,"leaflet-clickable"),a.DomEvent.on(t,"click",this._onMouseClick,this),a.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var i=0;i<e.length;i++)a.DomEvent.on(t,e[i],this._fireMouseEvent,this);a.Handler.MarkerDrag&&(this.dragging=new a.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_detectIE:function(){var t=o.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var r=t.indexOf("Edge/");return r>0&&parseInt(t.substring(r+5,t.indexOf(".",r)),10)}}),a.LatLngUtil={cloneLatLngs:function(t){for(var e=[],i=0,o=t.length;i<o;i++)Array.isArray(t[i])?e.push(a.LatLngUtil.cloneLatLngs(t[i])):e.push(this.cloneLatLng(t[i]));return e},cloneLatLng:function(t){return a.latLng(t.lat,t.lng)}},function(){var t={km:2,ha:2,m:0,mi:2,ac:2,yd:0,ft:0,nm:2};a.GeometryUtil=a.extend(a.GeometryUtil||{},{geodesicArea:function(t){var e,i,o=t.length,r=0,a=Math.PI/180;if(o>2){for(var n=0;n<o;n++)e=t[n],r+=((i=t[(n+1)%o]).lng-e.lng)*a*(2+Math.sin(e.lat*a)+Math.sin(i.lat*a));r=6378137*r*6378137/2}return Math.abs(r)},formattedNumber:function(t,e){var i=parseFloat(t).toFixed(e),o=a.drawLocal.format&&a.drawLocal.format.numeric,r=o&&o.delimiters,n=r&&r.thousands,s=r&&r.decimal;if(n||s){var l=i.split(".");i=n?l[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+n):l[0],s=s||".",l.length>1&&(i=i+s+l[1])}return i},readableArea:function(e,i,o){var r,n;return o=a.Util.extend({},t,o),i?(n=["ha","m"],type=typeof i,"string"===type?n=[i]:"boolean"!==type&&(n=i),r=e>=1e6&&-1!==n.indexOf("km")?a.GeometryUtil.formattedNumber(1e-6*e,o.km)+" km²":e>=1e4&&-1!==n.indexOf("ha")?a.GeometryUtil.formattedNumber(1e-4*e,o.ha)+" ha":a.GeometryUtil.formattedNumber(e,o.m)+" m²"):r=(e/=.836127)>=3097600?a.GeometryUtil.formattedNumber(e/3097600,o.mi)+" mi²":e>=4840?a.GeometryUtil.formattedNumber(e/4840,o.ac)+" acres":a.GeometryUtil.formattedNumber(e,o.yd)+" yd²",r},readableDistance:function(e,i,o,r,n){var s;switch(n=a.Util.extend({},t,n),i?"string"==typeof i?i:"metric":o?"feet":r?"nauticalMile":"yards"){case"metric":s=e>1e3?a.GeometryUtil.formattedNumber(e/1e3,n.km)+" km":a.GeometryUtil.formattedNumber(e,n.m)+" m";break;case"feet":e*=3.28083,s=a.GeometryUtil.formattedNumber(e,n.ft)+" ft";break;case"nauticalMile":e*=.53996,s=a.GeometryUtil.formattedNumber(e/1e3,n.nm)+" nm";break;default:s=(e*=1.09361)>1760?a.GeometryUtil.formattedNumber(e/1760,n.mi)+" miles":a.GeometryUtil.formattedNumber(e,n.yd)+" yd"}return s},isVersion07x:function(){var t=a.version.split(".");return 0===parseInt(t[0],10)&&7===parseInt(t[1],10)}})}(),a.Util.extend(a.LineUtil,{segmentsIntersect:function(t,e,i,o){return this._checkCounterclockwise(t,i,o)!==this._checkCounterclockwise(e,i,o)&&this._checkCounterclockwise(t,e,i)!==this._checkCounterclockwise(t,e,o)},_checkCounterclockwise:function(t,e,i){return(i.y-t.y)*(e.x-t.x)>(e.y-t.y)*(i.x-t.x)}}),a.Polyline.include({intersects:function(){var t,e,i,o=this._getProjectedPoints(),r=o?o.length:0;if(this._tooFewPointsForIntersection())return!1;for(t=r-1;t>=3;t--)if(e=o[t-1],i=o[t],this._lineSegmentsIntersectsRange(e,i,t-2))return!0;return!1},newLatLngIntersects:function(t,e){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(t),e)},newPointIntersects:function(t,e){var i=this._getProjectedPoints(),o=i?i.length:0,r=i?i[o-1]:null,a=o-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(r,t,a,e?1:0)},_tooFewPointsForIntersection:function(t){var e=this._getProjectedPoints(),i=e?e.length:0;return!e||(i+=t||0)<=3},_lineSegmentsIntersectsRange:function(t,e,i,o){var r,n,s=this._getProjectedPoints();o=o||0;for(var l=i;l>o;l--)if(r=s[l-1],n=s[l],a.LineUtil.segmentsIntersect(t,e,r,n))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var t=[],e=this._defaultShape(),i=0;i<e.length;i++)t.push(this._map.latLngToLayerPoint(e[i]));return t}}),a.Polygon.include({intersects:function(){var t,e,i,o,r=this._getProjectedPoints();return!this._tooFewPointsForIntersection()&&(!!a.Polyline.prototype.intersects.call(this)||(t=r.length,e=r[0],i=r[t-1],o=t-2,this._lineSegmentsIntersectsRange(i,e,o,1)))}}),a.Control.Draw=a.Control.extend({options:{position:"topleft",draw:{},edit:!1},initialize:function(t){if(a.version<"0.7")throw new Error("Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/");var e;a.Control.prototype.initialize.call(this,t),this._toolbars={},a.DrawToolbar&&this.options.draw&&(e=new a.DrawToolbar(this.options.draw),this._toolbars[a.DrawToolbar.TYPE]=e,this._toolbars[a.DrawToolbar.TYPE].on("enable",this._toolbarEnabled,this)),a.EditToolbar&&this.options.edit&&(e=new a.EditToolbar(this.options.edit),this._toolbars[a.EditToolbar.TYPE]=e,this._toolbars[a.EditToolbar.TYPE].on("enable",this._toolbarEnabled,this)),a.toolbar=this},onAdd:function(t){var e,i=a.DomUtil.create("div","leaflet-draw"),o=!1;for(var r in this._toolbars)this._toolbars.hasOwnProperty(r)&&(e=this._toolbars[r].addToolbar(t))&&(o||(a.DomUtil.hasClass(e,"leaflet-draw-toolbar-top")||a.DomUtil.addClass(e.childNodes[0],"leaflet-draw-toolbar-top"),o=!0),i.appendChild(e));return i},onRemove:function(){for(var t in this._toolbars)this._toolbars.hasOwnProperty(t)&&this._toolbars[t].removeToolbar()},setDrawingOptions:function(t){for(var e in this._toolbars)this._toolbars[e]instanceof a.DrawToolbar&&this._toolbars[e].setOptions(t)},_toolbarEnabled:function(t){var e=t.target;for(var i in this._toolbars)this._toolbars[i]!==e&&this._toolbars[i].disable()}}),a.Map.mergeOptions({drawControlTooltips:!0,drawControl:!1}),a.Map.addInitHook(function(){this.options.drawControl&&(this.drawControl=new a.Control.Draw,this.addControl(this.drawControl))}),a.Toolbar=a.Class.extend({initialize:function(t){a.setOptions(this,t),this._modes={},this._actionButtons=[],this._activeMode=null;var e=a.version.split(".");1===parseInt(e[0],10)&&parseInt(e[1],10)>=2?a.Toolbar.include(a.Evented.prototype):a.Toolbar.include(a.Mixin.Events)},enabled:function(){return null!==this._activeMode},disable:function(){this.enabled()&&this._activeMode.handler.disable()},addToolbar:function(t){var e,i=a.DomUtil.create("div","leaflet-draw-section"),o=0,r=this._toolbarClass||"",n=this.getModeHandlers(t);for(this._toolbarContainer=a.DomUtil.create("div","leaflet-draw-toolbar leaflet-bar"),this._map=t,e=0;e<n.length;e++)n[e].enabled&&this._initModeHandler(n[e].handler,this._toolbarContainer,o++,r,n[e].title);if(o)return this._lastButtonIndex=--o,this._actionsContainer=a.DomUtil.create("ul","leaflet-draw-actions"),i.appendChild(this._toolbarContainer),i.appendChild(this._actionsContainer),i},removeToolbar:function(){for(var t in this._modes)this._modes.hasOwnProperty(t)&&(this._disposeButton(this._modes[t].button,this._modes[t].handler.enable,this._modes[t].handler),this._modes[t].handler.disable(),this._modes[t].handler.off("enabled",this._handlerActivated,this).off("disabled",this._handlerDeactivated,this));this._modes={};for(var e=0,i=this._actionButtons.length;e<i;e++)this._disposeButton(this._actionButtons[e].button,this._actionButtons[e].callback,this);this._actionButtons=[],this._actionsContainer=null},_initModeHandler:function(t,e,i,o,r){var a=t.type;this._modes[a]={},this._modes[a].handler=t,this._modes[a].button=this._createButton({type:a,title:r,className:o+"-"+a,container:e,callback:this._modes[a].handler.enable,context:this._modes[a].handler}),this._modes[a].buttonIndex=i,this._modes[a].handler.on("enabled",this._handlerActivated,this).on("disabled",this._handlerDeactivated,this)},_detectIOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!o.MSStream},_createButton:function(t){var e=a.DomUtil.create("a",t.className||"",t.container),i=a.DomUtil.create("span","sr-only",t.container);e.href="#",e.appendChild(i),t.title&&(e.title=t.title,i.innerHTML=t.title),t.text&&(e.innerHTML=t.text,i.innerHTML=t.text);var o=this._detectIOS()?"touchstart":"click";return a.DomEvent.on(e,"click",a.DomEvent.stopPropagation).on(e,"mousedown",a.DomEvent.stopPropagation).on(e,"dblclick",a.DomEvent.stopPropagation).on(e,"touchstart",a.DomEvent.stopPropagation).on(e,"click",a.DomEvent.preventDefault).on(e,o,t.callback,t.context),e},_disposeButton:function(t,e){var i=this._detectIOS()?"touchstart":"click";a.DomEvent.off(t,"click",a.DomEvent.stopPropagation).off(t,"mousedown",a.DomEvent.stopPropagation).off(t,"dblclick",a.DomEvent.stopPropagation).off(t,"touchstart",a.DomEvent.stopPropagation).off(t,"click",a.DomEvent.preventDefault).off(t,i,e)},_handlerActivated:function(t){this.disable(),this._activeMode=this._modes[t.handler],a.DomUtil.addClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._showActionsToolbar(),this.fire("enable")},_handlerDeactivated:function(){this._hideActionsToolbar(),a.DomUtil.removeClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._activeMode=null,this.fire("disable")},_createActions:function(t){var e,i,o,r,n=this._actionsContainer,s=this.getActions(t),l=s.length;for(i=0,o=this._actionButtons.length;i<o;i++)this._disposeButton(this._actionButtons[i].button,this._actionButtons[i].callback);for(this._actionButtons=[];n.firstChild;)n.removeChild(n.firstChild);for(var h=0;h<l;h++)"enabled"in s[h]&&!s[h].enabled||(e=a.DomUtil.create("li","",n),r=this._createButton({title:s[h].title,text:s[h].text,container:e,callback:s[h].callback,context:s[h].context}),this._actionButtons.push({button:r,callback:s[h].callback}))},_showActionsToolbar:function(){var t=this._activeMode.buttonIndex,e=this._lastButtonIndex,i=this._activeMode.button.offsetTop-1;this._createActions(this._activeMode.handler),this._actionsContainer.style.top=i+"px",0===t&&(a.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),a.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-top")),t===e&&(a.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),a.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-bottom")),this._actionsContainer.style.display="block",this._map.fire(a.Draw.Event.TOOLBAROPENED)},_hideActionsToolbar:function(){this._actionsContainer.style.display="none",a.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),a.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),a.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-top"),a.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-bottom"),this._map.fire(a.Draw.Event.TOOLBARCLOSED)}}),a.Draw=a.Draw||{},a.Draw.Tooltip=a.Class.extend({initialize:function(t){this._map=t,this._popupPane=t._panes.popupPane,this._visible=!1,this._container=t.options.drawControlTooltips?a.DomUtil.create("div","leaflet-draw-tooltip",this._popupPane):null,this._singleLineLabel=!1,this._map.on("mouseout",this._onMouseOut,this)},dispose:function(){this._map.off("mouseout",this._onMouseOut,this),this._container&&(this._popupPane.removeChild(this._container),this._container=null)},updateContent:function(t){return this._container?(t.subtext=t.subtext||"",0!==t.subtext.length||this._singleLineLabel?t.subtext.length>0&&this._singleLineLabel&&(a.DomUtil.removeClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!1):(a.DomUtil.addClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!0),this._container.innerHTML=(t.subtext.length>0?'<span class="leaflet-draw-tooltip-subtext">'+t.subtext+"</span><br />":"")+"<span>"+t.text+"</span>",t.text||t.subtext?(this._visible=!0,this._container.style.visibility="inherit"):(this._visible=!1,this._container.style.visibility="hidden"),this):this},updatePosition:function(t){var e=this._map.latLngToLayerPoint(t),i=this._container;return this._container&&(this._visible&&(i.style.visibility="inherit"),a.DomUtil.setPosition(i,e)),this},showAsError:function(){return this._container&&a.DomUtil.addClass(this._container,"leaflet-error-draw-tooltip"),this},removeError:function(){return this._container&&a.DomUtil.removeClass(this._container,"leaflet-error-draw-tooltip"),this},_onMouseOut:function(){this._container&&(this._container.style.visibility="hidden")}}),a.DrawToolbar=a.Toolbar.extend({statics:{TYPE:"draw"},options:{polyline:{},polygon:{},rectangle:{},circle:{},marker:{},circlemarker:{}},initialize:function(t){for(var e in this.options)this.options.hasOwnProperty(e)&&t[e]&&(t[e]=a.extend({},this.options[e],t[e]));this._toolbarClass="leaflet-draw-draw",a.Toolbar.prototype.initialize.call(this,t)},getModeHandlers:function(t){return[{enabled:this.options.polyline,handler:new a.Draw.Polyline(t,this.options.polyline),title:a.drawLocal.draw.toolbar.buttons.polyline},{enabled:this.options.polygon,handler:new a.Draw.Polygon(t,this.options.polygon),title:a.drawLocal.draw.toolbar.buttons.polygon},{enabled:this.options.rectangle,handler:new a.Draw.Rectangle(t,this.options.rectangle),title:a.drawLocal.draw.toolbar.buttons.rectangle},{enabled:this.options.circle,handler:new a.Draw.Circle(t,this.options.circle),title:a.drawLocal.draw.toolbar.buttons.circle},{enabled:this.options.marker,handler:new a.Draw.Marker(t,this.options.marker),title:a.drawLocal.draw.toolbar.buttons.marker},{enabled:this.options.circlemarker,handler:new a.Draw.CircleMarker(t,this.options.circlemarker),title:a.drawLocal.draw.toolbar.buttons.circlemarker}]},getActions:function(t){return[{enabled:t.completeShape,title:a.drawLocal.draw.toolbar.finish.title,text:a.drawLocal.draw.toolbar.finish.text,callback:t.completeShape,context:t},{enabled:t.deleteLastVertex,title:a.drawLocal.draw.toolbar.undo.title,text:a.drawLocal.draw.toolbar.undo.text,callback:t.deleteLastVertex,context:t},{title:a.drawLocal.draw.toolbar.actions.title,text:a.drawLocal.draw.toolbar.actions.text,callback:this.disable,context:this}]},setOptions:function(t){for(var e in a.setOptions(this,t),this._modes)this._modes.hasOwnProperty(e)&&t.hasOwnProperty(e)&&this._modes[e].handler.setOptions(t[e])}}),a.EditToolbar=a.Toolbar.extend({statics:{TYPE:"edit"},options:{edit:{selectedPathOptions:{dashArray:"10, 10",fill:!0,fillColor:"#fe57a1",fillOpacity:.1,maintainColor:!1}},remove:{},poly:null,featureGroup:null},initialize:function(t){t.edit&&(void 0===t.edit.selectedPathOptions&&(t.edit.selectedPathOptions=this.options.edit.selectedPathOptions),t.edit.selectedPathOptions=a.extend({},this.options.edit.selectedPathOptions,t.edit.selectedPathOptions)),t.remove&&(t.remove=a.extend({},this.options.remove,t.remove)),t.poly&&(t.poly=a.extend({},this.options.poly,t.poly)),this._toolbarClass="leaflet-draw-edit",a.Toolbar.prototype.initialize.call(this,t),this._selectedFeatureCount=0},getModeHandlers:function(t){var e=this.options.featureGroup;return[{enabled:this.options.edit,handler:new a.EditToolbar.Edit(t,{featureGroup:e,selectedPathOptions:this.options.edit.selectedPathOptions,poly:this.options.poly}),title:a.drawLocal.edit.toolbar.buttons.edit},{enabled:this.options.remove,handler:new a.EditToolbar.Delete(t,{featureGroup:e}),title:a.drawLocal.edit.toolbar.buttons.remove}]},getActions:function(t){var e=[{title:a.drawLocal.edit.toolbar.actions.save.title,text:a.drawLocal.edit.toolbar.actions.save.text,callback:this._save,context:this},{title:a.drawLocal.edit.toolbar.actions.cancel.title,text:a.drawLocal.edit.toolbar.actions.cancel.text,callback:this.disable,context:this}];return t.removeAllLayers&&e.push({title:a.drawLocal.edit.toolbar.actions.clearAll.title,text:a.drawLocal.edit.toolbar.actions.clearAll.text,callback:this._clearAllLayers,context:this}),e},addToolbar:function(t){var e=a.Toolbar.prototype.addToolbar.call(this,t);return this._checkDisabled(),this.options.featureGroup.on("layeradd layerremove",this._checkDisabled,this),e},removeToolbar:function(){this.options.featureGroup.off("layeradd layerremove",this._checkDisabled,this),a.Toolbar.prototype.removeToolbar.call(this)},disable:function(){this.enabled()&&(this._activeMode.handler.revertLayers(),a.Toolbar.prototype.disable.call(this))},_save:function(){this._activeMode.handler.save(),this._activeMode&&this._activeMode.handler.disable()},_clearAllLayers:function(){this._activeMode.handler.removeAllLayers(),this._activeMode&&this._activeMode.handler.disable()},_checkDisabled:function(){var t,e=0!==this.options.featureGroup.getLayers().length;this.options.edit&&(t=this._modes[a.EditToolbar.Edit.TYPE].button,e?a.DomUtil.removeClass(t,"leaflet-disabled"):a.DomUtil.addClass(t,"leaflet-disabled"),t.setAttribute("title",e?a.drawLocal.edit.toolbar.buttons.edit:a.drawLocal.edit.toolbar.buttons.editDisabled)),this.options.remove&&(t=this._modes[a.EditToolbar.Delete.TYPE].button,e?a.DomUtil.removeClass(t,"leaflet-disabled"):a.DomUtil.addClass(t,"leaflet-disabled"),t.setAttribute("title",e?a.drawLocal.edit.toolbar.buttons.remove:a.drawLocal.edit.toolbar.buttons.removeDisabled))}}),a.EditToolbar.Edit=a.Handler.extend({statics:{TYPE:"edit"},initialize:function(t,e){if(a.Handler.prototype.initialize.call(this,t),a.setOptions(this,e),this._featureGroup=e.featureGroup,!(this._featureGroup instanceof a.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this._uneditedLayerProps={},this.type=a.EditToolbar.Edit.TYPE;var i=a.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?a.EditToolbar.Edit.include(a.Evented.prototype):a.EditToolbar.Edit.include(a.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(a.Draw.Event.EDITSTART,{handler:this.type}),a.Handler.prototype.enable.call(this),this._featureGroup.on("layeradd",this._enableLayerEdit,this).on("layerremove",this._disableLayerEdit,this))},disable:function(){this._enabled&&(this._featureGroup.off("layeradd",this._enableLayerEdit,this).off("layerremove",this._disableLayerEdit,this),a.Handler.prototype.disable.call(this),this._map.fire(a.Draw.Event.EDITSTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(t.getContainer().focus(),this._featureGroup.eachLayer(this._enableLayerEdit,this),this._tooltip=new a.Draw.Tooltip(this._map),this._tooltip.updateContent({text:a.drawLocal.edit.handlers.edit.tooltip.text,subtext:a.drawLocal.edit.handlers.edit.tooltip.subtext}),t._editTooltip=this._tooltip,this._updateTooltip(),this._map.on("mousemove",this._onMouseMove,this).on("touchmove",this._onMouseMove,this).on("MSPointerMove",this._onMouseMove,this).on(a.Draw.Event.EDITVERTEX,this._updateTooltip,this))},removeHooks:function(){this._map&&(this._featureGroup.eachLayer(this._disableLayerEdit,this),this._uneditedLayerProps={},this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this).off("touchmove",this._onMouseMove,this).off("MSPointerMove",this._onMouseMove,this).off(a.Draw.Event.EDITVERTEX,this._updateTooltip,this))},revertLayers:function(){this._featureGroup.eachLayer(function(t){this._revertLayer(t)},this)},save:function(){var t=new a.LayerGroup;this._featureGroup.eachLayer(function(e){e.edited&&(t.addLayer(e),e.edited=!1)}),this._map.fire(a.Draw.Event.EDITED,{layers:t})},_backupLayer:function(t){var e=a.Util.stamp(t);this._uneditedLayerProps[e]||(t instanceof a.Polyline||t instanceof a.Polygon||t instanceof a.Rectangle?this._uneditedLayerProps[e]={latlngs:a.LatLngUtil.cloneLatLngs(t.getLatLngs())}:t instanceof a.Circle?this._uneditedLayerProps[e]={latlng:a.LatLngUtil.cloneLatLng(t.getLatLng()),radius:t.getRadius()}:(t instanceof a.Marker||t instanceof a.CircleMarker)&&(this._uneditedLayerProps[e]={latlng:a.LatLngUtil.cloneLatLng(t.getLatLng())}))},_getTooltipText:function(){return{text:a.drawLocal.edit.handlers.edit.tooltip.text,subtext:a.drawLocal.edit.handlers.edit.tooltip.subtext}},_updateTooltip:function(){this._tooltip.updateContent(this._getTooltipText())},_revertLayer:function(t){var e=a.Util.stamp(t);t.edited=!1,this._uneditedLayerProps.hasOwnProperty(e)&&(t instanceof a.Polyline||t instanceof a.Polygon||t instanceof a.Rectangle?t.setLatLngs(this._uneditedLayerProps[e].latlngs):t instanceof a.Circle?(t.setLatLng(this._uneditedLayerProps[e].latlng),t.setRadius(this._uneditedLayerProps[e].radius)):(t instanceof a.Marker||t instanceof a.CircleMarker)&&t.setLatLng(this._uneditedLayerProps[e].latlng),t.fire("revert-edited",{layer:t}))},_enableLayerEdit:function(t){var e,i,o=t.layer||t.target||t;this._backupLayer(o),this.options.poly&&(i=a.Util.extend({},this.options.poly),o.options.poly=i),this.options.selectedPathOptions&&((e=a.Util.extend({},this.options.selectedPathOptions)).maintainColor&&(e.color=o.options.color,e.fillColor=o.options.fillColor),o.options.original=a.extend({},o.options),o.options.editing=e),o instanceof a.Marker?(o.editing&&o.editing.enable(),o.dragging.enable(),o.on("dragend",this._onMarkerDragEnd).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onMarkerDragEnd,this).on("MSPointerUp",this._onMarkerDragEnd,this)):o.editing.enable()},_disableLayerEdit:function(t){var e=t.layer||t.target||t;e.edited=!1,e.editing&&e.editing.disable(),delete e.options.editing,delete e.options.original,this._selectedPathOptions&&(e instanceof a.Marker?this._toggleMarkerHighlight(e):(e.setStyle(e.options.previousOptions),delete e.options.previousOptions)),e instanceof a.Marker?(e.dragging.disable(),e.off("dragend",this._onMarkerDragEnd,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onMarkerDragEnd,this).off("MSPointerUp",this._onMarkerDragEnd,this)):e.editing.disable()},_onMouseMove:function(t){this._tooltip.updatePosition(t.latlng)},_onMarkerDragEnd:function(t){var e=t.target;e.edited=!0,this._map.fire(a.Draw.Event.EDITMOVE,{layer:e})},_onTouchMove:function(t){var e=t.originalEvent.changedTouches[0],i=this._map.mouseEventToLayerPoint(e),o=this._map.layerPointToLatLng(i);t.target.setLatLng(o)},_hasAvailableLayers:function(){return 0!==this._featureGroup.getLayers().length}}),a.EditToolbar.Delete=a.Handler.extend({statics:{TYPE:"remove"},initialize:function(t,e){if(a.Handler.prototype.initialize.call(this,t),a.Util.setOptions(this,e),this._deletableLayers=this.options.featureGroup,!(this._deletableLayers instanceof a.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this.type=a.EditToolbar.Delete.TYPE;var i=a.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?a.EditToolbar.Delete.include(a.Evented.prototype):a.EditToolbar.Delete.include(a.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(a.Draw.Event.DELETESTART,{handler:this.type}),a.Handler.prototype.enable.call(this),this._deletableLayers.on("layeradd",this._enableLayerDelete,this).on("layerremove",this._disableLayerDelete,this))},disable:function(){this._enabled&&(this._deletableLayers.off("layeradd",this._enableLayerDelete,this).off("layerremove",this._disableLayerDelete,this),a.Handler.prototype.disable.call(this),this._map.fire(a.Draw.Event.DELETESTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(t.getContainer().focus(),this._deletableLayers.eachLayer(this._enableLayerDelete,this),this._deletedLayers=new a.LayerGroup,this._tooltip=new a.Draw.Tooltip(this._map),this._tooltip.updateContent({text:a.drawLocal.edit.handlers.remove.tooltip.text}),this._map.on("mousemove",this._onMouseMove,this))},removeHooks:function(){this._map&&(this._deletableLayers.eachLayer(this._disableLayerDelete,this),this._deletedLayers=null,this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this))},revertLayers:function(){this._deletedLayers.eachLayer(function(t){this._deletableLayers.addLayer(t),t.fire("revert-deleted",{layer:t})},this)},save:function(){this._map.fire(a.Draw.Event.DELETED,{layers:this._deletedLayers})},removeAllLayers:function(){this._deletableLayers.eachLayer(function(t){this._removeLayer({layer:t})},this),this.save()},_enableLayerDelete:function(t){(t.layer||t.target||t).on("click",this._removeLayer,this)},_disableLayerDelete:function(t){var e=t.layer||t.target||t;e.off("click",this._removeLayer,this),this._deletedLayers.removeLayer(e)},_removeLayer:function(t){var e=t.layer||t.target||t;this._deletableLayers.removeLayer(e),this._deletedLayers.addLayer(e),e.fire("deleted")},_onMouseMove:function(t){this._tooltip.updatePosition(t.latlng)},_hasAvailableLayers:function(){return 0!==this._deletableLayers.getLayers().length}})},7577(t,e,i){var o,r,a=i(66417);o=window,r=document,a.drawVersion="1.0.4",a.Draw={},a.drawLocal={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes",text:"Save"},cancel:{title:"Cancel editing, discards all changes",text:"Cancel"},clearAll:{title:"Clear all layers",text:"Clear All"}},buttons:{edit:"Edit layers",editDisabled:"No layers to edit",remove:"Delete layers",removeDisabled:"No layers to delete"}},handlers:{edit:{tooltip:{text:"Drag handles or markers to edit features.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove."}}}}},a.Draw.Event={},a.Draw.Event.CREATED="draw:created",a.Draw.Event.EDITED="draw:edited",a.Draw.Event.DELETED="draw:deleted",a.Draw.Event.DRAWSTART="draw:drawstart",a.Draw.Event.DRAWSTOP="draw:drawstop",a.Draw.Event.DRAWVERTEX="draw:drawvertex",a.Draw.Event.EDITSTART="draw:editstart",a.Draw.Event.EDITMOVE="draw:editmove",a.Draw.Event.EDITRESIZE="draw:editresize",a.Draw.Event.EDITVERTEX="draw:editvertex",a.Draw.Event.EDITSTOP="draw:editstop",a.Draw.Event.DELETESTART="draw:deletestart",a.Draw.Event.DELETESTOP="draw:deletestop",a.Draw.Event.TOOLBAROPENED="draw:toolbaropened",a.Draw.Event.TOOLBARCLOSED="draw:toolbarclosed",a.Draw.Event.MARKERCONTEXT="draw:markercontext",a.Draw=a.Draw||{},a.Draw.Feature=a.Handler.extend({initialize:function(t,e){this._map=t,this._container=t._container,this._overlayPane=t._panes.overlayPane,this._popupPane=t._panes.popupPane,e&&e.shapeOptions&&(e.shapeOptions=a.Util.extend({},this.options.shapeOptions,e.shapeOptions)),a.setOptions(this,e);var i=a.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?a.Draw.Feature.include(a.Evented.prototype):a.Draw.Feature.include(a.Mixin.Events)},enable:function(){this._enabled||(a.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(a.Draw.Event.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(a.Handler.prototype.disable.call(this),this._map.fire(a.Draw.Event.DRAWSTOP,{layerType:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(a.DomUtil.disableTextSelection(),t.getContainer().focus(),this._tooltip=new a.Draw.Tooltip(this._map),a.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(a.DomUtil.enableTextSelection(),this._tooltip.dispose(),this._tooltip=null,a.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(t){a.setOptions(this,t)},_fireCreatedEvent:function(t){this._map.fire(a.Draw.Event.CREATED,{layer:t,layerType:this.type})},_cancelDrawing:function(t){27===t.keyCode&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())}}),a.Draw.Polyline=a.Draw.Feature.extend({statics:{TYPE:"polyline"},Poly:a.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new a.DivIcon({iconSize:new a.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new a.DivIcon({iconSize:new a.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(t,e){a.Browser.touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=a.drawLocal.draw.handlers.polyline.error,e&&e.drawError&&(e.drawError=a.Util.extend({},this.options.drawError,e.drawError)),this.type=a.Draw.Polyline.TYPE,a.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){a.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new a.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new a.Polyline([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=a.marker(this._map.getCenter(),{icon:a.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){a.Draw.Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var t=this._markers.pop(),e=this._poly,i=e.getLatLngs(),o=i.splice(-1,1)[0];this._poly.setLatLngs(i),this._markerGroup.removeLayer(t),e.getLatLngs().length<2&&this._map.removeLayer(e),this._vertexChanged(o,!1)}},addVertex:function(t){this._markers.length>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(t)?this._showErrorTooltip():(this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(t)),this._poly.addLatLng(t),2===this._poly.getLatLngs().length&&this._map.addLayer(this._poly),this._vertexChanged(t,!0))},completeShape:function(){this._markers.length<=1||!this._shapeIsValid()||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_finishShape:function(){var t=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs(),e=this._poly.newLatLngIntersects(t[t.length-1]);!this.options.allowIntersection&&e||!this._shapeIsValid()?this._showErrorTooltip():(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_shapeIsValid:function(){return!0},_onZoomEnd:function(){null!==this._markers&&this._updateGuide()},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),i=this._map.layerPointToLatLng(e);this._currentLatLng=i,this._updateTooltip(i),this._updateGuide(e),this._mouseMarker.setLatLng(i),a.DomEvent.preventDefault(t.originalEvent)},_vertexChanged:function(t,e){this._map.fire(a.Draw.Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(t,e),this._clearGuides(),this._updateTooltip()},_onMouseDown:function(t){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(t),this._clickHandled=!0,this._disableNewMarkers();var e=t.originalEvent,i=e.clientX,o=e.clientY;this._startPoint.call(this,i,o)}},_startPoint:function(t,e){this._mouseDownOrigin=a.point(t,e)},_onMouseUp:function(t){var e=t.originalEvent,i=e.clientX,o=e.clientY;this._endPoint.call(this,i,o,t),this._clickHandled=null},_endPoint:function(t,e,i){if(this._mouseDownOrigin){var r=a.point(t,e).distanceTo(this._mouseDownOrigin),n=this._calculateFinishDistance(i.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(i.latlng),this._finishShape()):n<10&&a.Browser.touch?this._finishShape():Math.abs(r)<9*(o.devicePixelRatio||1)&&this.addVertex(i.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(t){var e,i,o=t.originalEvent;!o.touches||!o.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(e=o.touches[0].clientX,i=o.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,e,i),this._endPoint.call(this,e,i,t),this._touchHandled=null),this._clickHandled=null},_onMouseOut:function(){this._tooltip&&this._tooltip._onMouseOut.call(this._tooltip)},_calculateFinishDistance:function(t){var e;if(this._markers.length>0){var i;if(this.type===a.Draw.Polyline.TYPE)i=this._markers[this._markers.length-1];else{if(this.type!==a.Draw.Polygon.TYPE)return 1/0;i=this._markers[0]}var o=this._map.latLngToContainerPoint(i.getLatLng()),r=new a.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),n=this._map.latLngToContainerPoint(r.getLatLng());e=o.distanceTo(n)}else e=1/0;return e},_updateFinishHandler:function(){var t=this._markers.length;t>1&&this._markers[t-1].on("click",this._finishShape,this),t>2&&this._markers[t-2].off("click",this._finishShape,this)},_createMarker:function(t){var e=new a.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(e),e},_updateGuide:function(t){var e=this._markers?this._markers.length:0;e>0&&(t=t||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[e-1].getLatLng()),t))},_updateTooltip:function(t){var e=this._getTooltipText();t&&this._tooltip.updatePosition(t),this._errorShown||this._tooltip.updateContent(e)},_drawGuide:function(t,e){var i,o,r,n=Math.floor(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))),s=this.options.guidelineDistance,l=this.options.maxGuideLineLength,h=n>l?n-l:s;for(this._guidesContainer||(this._guidesContainer=a.DomUtil.create("div","leaflet-draw-guides",this._overlayPane));h<n;h+=this.options.guidelineDistance)i=h/n,o={x:Math.floor(t.x*(1-i)+i*e.x),y:Math.floor(t.y*(1-i)+i*e.y)},(r=a.DomUtil.create("div","leaflet-draw-guide-dash",this._guidesContainer)).style.backgroundColor=this._errorShown?this.options.drawError.color:this.options.shapeOptions.color,a.DomUtil.setPosition(r,o)},_updateGuideColor:function(t){if(this._guidesContainer)for(var e=0,i=this._guidesContainer.childNodes.length;e<i;e++)this._guidesContainer.childNodes[e].style.backgroundColor=t},_clearGuides:function(){if(this._guidesContainer)for(;this._guidesContainer.firstChild;)this._guidesContainer.removeChild(this._guidesContainer.firstChild)},_getTooltipText:function(){var t,e,i=this.options.showLength;return 0===this._markers.length?t={text:a.drawLocal.draw.handlers.polyline.tooltip.start}:(e=i?this._getMeasurementString():"",t=1===this._markers.length?{text:a.drawLocal.draw.handlers.polyline.tooltip.cont,subtext:e}:{text:a.drawLocal.draw.handlers.polyline.tooltip.end,subtext:e}),t},_updateRunningMeasure:function(t,e){var i,o,r=this._markers.length;1===this._markers.length?this._measurementRunningTotal=0:(i=r-(e?2:1),o=a.GeometryUtil.isVersion07x()?t.distanceTo(this._markers[i].getLatLng())*(this.options.factor||1):this._map.distance(t,this._markers[i].getLatLng())*(this.options.factor||1),this._measurementRunningTotal+=o*(e?1:-1))},_getMeasurementString:function(){var t,e=this._currentLatLng,i=this._markers[this._markers.length-1].getLatLng();return t=a.GeometryUtil.isVersion07x()?i&&e&&e.distanceTo?this._measurementRunningTotal+e.distanceTo(i)*(this.options.factor||1):this._measurementRunningTotal||0:i&&e?this._measurementRunningTotal+this._map.distance(e,i)*(this.options.factor||1):this._measurementRunningTotal||0,a.GeometryUtil.readableDistance(t,this.options.metric,this.options.feet,this.options.nautic,this.options.precision)},_showErrorTooltip:function(){this._errorShown=!0,this._tooltip.showAsError().updateContent({text:this.options.drawError.message}),this._updateGuideColor(this.options.drawError.color),this._poly.setStyle({color:this.options.drawError.color}),this._clearHideErrorTimeout(),this._hideErrorTimeout=setTimeout(a.Util.bind(this._hideErrorTooltip,this),this.options.drawError.timeout)},_hideErrorTooltip:function(){this._errorShown=!1,this._clearHideErrorTimeout(),this._tooltip.removeError().updateContent(this._getTooltipText()),this._updateGuideColor(this.options.shapeOptions.color),this._poly.setStyle({color:this.options.shapeOptions.color})},_clearHideErrorTimeout:function(){this._hideErrorTimeout&&(clearTimeout(this._hideErrorTimeout),this._hideErrorTimeout=null)},_disableNewMarkers:function(){this._disableMarkers=!0},_enableNewMarkers:function(){setTimeout(function(){this._disableMarkers=!1}.bind(this),50)},_cleanUpShape:function(){this._markers.length>1&&this._markers[this._markers.length-1].off("click",this._finishShape,this)},_fireCreatedEvent:function(){var t=new this.Poly(this._poly.getLatLngs(),this.options.shapeOptions);a.Draw.Feature.prototype._fireCreatedEvent.call(this,t)}}),a.Draw.Polygon=a.Draw.Polyline.extend({statics:{TYPE:"polygon"},Poly:a.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:!0,feet:!0,nautic:!1,precision:{}},initialize:function(t,e){a.Draw.Polyline.prototype.initialize.call(this,t,e),this.type=a.Draw.Polygon.TYPE},_updateFinishHandler:function(){var t=this._markers.length;1===t&&this._markers[0].on("click",this._finishShape,this),t>2&&(this._markers[t-1].on("dblclick",this._finishShape,this),t>3&&this._markers[t-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var t,e;return 0===this._markers.length?t=a.drawLocal.draw.handlers.polygon.tooltip.start:this._markers.length<3?(t=a.drawLocal.draw.handlers.polygon.tooltip.cont,e=this._getMeasurementString()):(t=a.drawLocal.draw.handlers.polygon.tooltip.end,e=this._getMeasurementString()),{text:t,subtext:e}},_getMeasurementString:function(){var t=this._area,e="";return t||this.options.showLength?(this.options.showLength&&(e=a.Draw.Polyline.prototype._getMeasurementString.call(this)),t&&(e+="<br>"+a.GeometryUtil.readableArea(t,this.options.metric,this.options.precision)),e):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(t,e){var i;!this.options.allowIntersection&&this.options.showArea&&(i=this._poly.getLatLngs(),this._area=a.GeometryUtil.geodesicArea(i)),a.Draw.Polyline.prototype._vertexChanged.call(this,t,e)},_cleanUpShape:function(){var t=this._markers.length;t>0&&(this._markers[0].off("click",this._finishShape,this),t>2&&this._markers[t-1].off("dblclick",this._finishShape,this))}}),a.SimpleShape={},a.Draw.SimpleShape=a.Draw.Feature.extend({options:{repeatMode:!1},initialize:function(t,e){this._endLabelText=a.drawLocal.draw.handlers.simpleshape.tooltip.end,a.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){a.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._mapDraggable=this._map.dragging.enabled(),this._mapDraggable&&this._map.dragging.disable(),this._container.style.cursor="crosshair",this._tooltip.updateContent({text:this._initialLabelText}),this._map.on("mousedown",this._onMouseDown,this).on("mousemove",this._onMouseMove,this).on("touchstart",this._onMouseDown,this).on("touchmove",this._onMouseMove,this),r.addEventListener("touchstart",a.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){a.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._mapDraggable&&this._map.dragging.enable(),this._container.style.cursor="",this._map.off("mousedown",this._onMouseDown,this).off("mousemove",this._onMouseMove,this).off("touchstart",this._onMouseDown,this).off("touchmove",this._onMouseMove,this),a.DomEvent.off(r,"mouseup",this._onMouseUp,this),a.DomEvent.off(r,"touchend",this._onMouseUp,this),r.removeEventListener("touchstart",a.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),delete this._shape)),this._isDrawing=!1},_getTooltipText:function(){return{text:this._endLabelText}},_onMouseDown:function(t){this._isDrawing=!0,this._startLatLng=t.latlng,a.DomEvent.on(r,"mouseup",this._onMouseUp,this).on(r,"touchend",this._onMouseUp,this).preventDefault(t.originalEvent)},_onMouseMove:function(t){var e=t.latlng;this._tooltip.updatePosition(e),this._isDrawing&&(this._tooltip.updateContent(this._getTooltipText()),this._drawShape(e))},_onMouseUp:function(){this._shape&&this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()}}),a.Draw.Rectangle=a.Draw.SimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showArea:!0,metric:!0},initialize:function(t,e){this.type=a.Draw.Rectangle.TYPE,this._initialLabelText=a.drawLocal.draw.handlers.rectangle.tooltip.start,a.Draw.SimpleShape.prototype.initialize.call(this,t,e)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,a.Draw.SimpleShape.prototype.disable.call(this))},_onMouseUp:function(t){this._shape||this._isCurrentlyTwoClickDrawing?this._isCurrentlyTwoClickDrawing&&!function(t){for(;(t=t.parentElement)&&!t.classList.contains("leaflet-pane"););return t}(t.target)||a.Draw.SimpleShape.prototype._onMouseUp.call(this):this._isCurrentlyTwoClickDrawing=!0},_drawShape:function(t){this._shape?this._shape.setBounds(new a.LatLngBounds(this._startLatLng,t)):(this._shape=new a.Rectangle(new a.LatLngBounds(this._startLatLng,t),this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var t=new a.Rectangle(this._shape.getBounds(),this.options.shapeOptions);a.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,t)},_getTooltipText:function(){var t,e,i,o=a.Draw.SimpleShape.prototype._getTooltipText.call(this),r=this._shape,n=this.options.showArea;return r&&(t=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),e=a.GeometryUtil.geodesicArea(t),i=n?a.GeometryUtil.readableArea(e,this.options.metric):""),{text:o.text,subtext:i}}}),a.Draw.Marker=a.Draw.Feature.extend({statics:{TYPE:"marker"},options:{icon:new a.Icon.Default,repeatMode:!1,zIndexOffset:2e3},initialize:function(t,e){this.type=a.Draw.Marker.TYPE,this._initialLabelText=a.drawLocal.draw.handlers.marker.tooltip.start,a.Draw.Feature.prototype.initialize.call(this,t,e)},addHooks:function(){a.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._tooltip.updateContent({text:this._initialLabelText}),this._mouseMarker||(this._mouseMarker=a.marker(this._map.getCenter(),{icon:a.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){a.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_onMouseMove:function(t){var e=t.latlng;this._tooltip.updatePosition(e),this._mouseMarker.setLatLng(e),this._marker?(e=this._mouseMarker.getLatLng(),this._marker.setLatLng(e)):(this._marker=this._createMarker(e),this._marker.on("click",this._onClick,this),this._map.on("click",this._onClick,this).addLayer(this._marker))},_createMarker:function(t){return new a.Marker(t,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_onTouch:function(t){this._onMouseMove(t),this._onClick()},_fireCreatedEvent:function(){var t=new a.Marker.Touch(this._marker.getLatLng(),{icon:this.options.icon});a.Draw.Feature.prototype._fireCreatedEvent.call(this,t)}}),a.Draw.CircleMarker=a.Draw.Marker.extend({statics:{TYPE:"circlemarker"},options:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0,zIndexOffset:2e3},initialize:function(t,e){this.type=a.Draw.CircleMarker.TYPE,this._initialLabelText=a.drawLocal.draw.handlers.circlemarker.tooltip.start,a.Draw.Feature.prototype.initialize.call(this,t,e)},_fireCreatedEvent:function(){var t=new a.CircleMarker(this._marker.getLatLng(),this.options);a.Draw.Feature.prototype._fireCreatedEvent.call(this,t)},_createMarker:function(t){return new a.CircleMarker(t,this.options)}}),a.Draw.Circle=a.Draw.SimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showRadius:!0,metric:!0,feet:!0,nautic:!1},initialize:function(t,e){this.type=a.Draw.Circle.TYPE,this._initialLabelText=a.drawLocal.draw.handlers.circle.tooltip.start,a.Draw.SimpleShape.prototype.initialize.call(this,t,e)},_drawShape:function(t){if(a.GeometryUtil.isVersion07x())var e=this._startLatLng.distanceTo(t);else e=this._map.distance(this._startLatLng,t);this._shape?this._shape.setRadius(e):(this._shape=new a.Circle(this._startLatLng,e,this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var t=new a.Circle(this._startLatLng,this._shape.getRadius(),this.options.shapeOptions);a.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,t)},_onMouseMove:function(t){var e,i=t.latlng,o=this.options.showRadius,r=this.options.metric;if(this._tooltip.updatePosition(i),this._isDrawing){this._drawShape(i),e=this._shape.getRadius().toFixed(1);var n="";o&&(n=a.drawLocal.draw.handlers.circle.radius+": "+a.GeometryUtil.readableDistance(e,r,this.options.feet,this.options.nautic)),this._tooltip.updateContent({text:this._endLabelText,subtext:n})}}}),a.Edit=a.Edit||{},a.Edit.Marker=a.Handler.extend({initialize:function(t,e){this._marker=t,a.setOptions(this,e)},addHooks:function(){var t=this._marker;t.dragging.enable(),t.on("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},removeHooks:function(){var t=this._marker;t.dragging.disable(),t.off("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},_onDragEnd:function(t){var e=t.target;e.edited=!0,this._map.fire(a.Draw.Event.EDITMOVE,{layer:e})},_toggleMarkerHighlight:function(){var t=this._marker._icon;t&&(t.style.display="none",a.DomUtil.hasClass(t,"leaflet-edit-marker-selected")?(a.DomUtil.removeClass(t,"leaflet-edit-marker-selected"),this._offsetMarker(t,-4)):(a.DomUtil.addClass(t,"leaflet-edit-marker-selected"),this._offsetMarker(t,4)),t.style.display="")},_offsetMarker:function(t,e){var i=parseInt(t.style.marginTop,10)-e,o=parseInt(t.style.marginLeft,10)-e;t.style.marginTop=i+"px",t.style.marginLeft=o+"px"}}),a.Marker.addInitHook(function(){a.Edit.Marker&&(this.editing=new a.Edit.Marker(this),this.options.editable&&this.editing.enable())}),a.Edit=a.Edit||{},a.Edit.Poly=a.Handler.extend({initialize:function(t){this.latlngs=[t._latlngs],t._holes&&(this.latlngs=this.latlngs.concat(t._holes)),this._poly=t,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return a.Polyline._flat?a.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(t){for(var e=0;e<this._verticesHandlers.length;e++)t(this._verticesHandlers[e])},addHooks:function(){this._initHandlers(),this._eachVertexHandler(function(t){t.addHooks()})},removeHooks:function(){this._eachVertexHandler(function(t){t.removeHooks()})},updateMarkers:function(){this._eachVertexHandler(function(t){t.updateMarkers()})},_initHandlers:function(){this._verticesHandlers=[];for(var t=0;t<this.latlngs.length;t++)this._verticesHandlers.push(new a.Edit.PolyVerticesEdit(this._poly,this.latlngs[t],this._poly.options.poly))},_updateLatLngs:function(t){this.latlngs=[t.layer._latlngs],t.layer._holes&&(this.latlngs=this.latlngs.concat(t.layer._holes))}}),a.Edit.PolyVerticesEdit=a.Handler.extend({options:{icon:new a.DivIcon({iconSize:new a.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new a.DivIcon({iconSize:new a.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),drawError:{color:"#b00b00",timeout:1e3}},initialize:function(t,e,i){a.Browser.touch&&(this.options.icon=this.options.touchIcon),this._poly=t,i&&i.drawError&&(i.drawError=a.Util.extend({},this.options.drawError,i.drawError)),this._latlngs=e,a.setOptions(this,i)},_defaultShape:function(){return a.Polyline._flat?a.Polyline._flat(this._latlngs)?this._latlngs:this._latlngs[0]:this._latlngs},addHooks:function(){var t=this._poly,e=t._path;t instanceof a.Polygon||(t.options.fill=!1,t.options.editing&&(t.options.editing.fill=!1)),e&&t.options.editing&&t.options.editing.className&&(t.options.original.className&&t.options.original.className.split(" ").forEach(function(t){a.DomUtil.removeClass(e,t)}),t.options.editing.className.split(" ").forEach(function(t){a.DomUtil.addClass(e,t)})),t.setStyle(t.options.editing),this._poly._map&&(this._map=this._poly._map,this._markerGroup||this._initMarkers(),this._poly._map.addLayer(this._markerGroup))},removeHooks:function(){var t=this._poly,e=t._path;e&&t.options.editing&&t.options.editing.className&&(t.options.editing.className.split(" ").forEach(function(t){a.DomUtil.removeClass(e,t)}),t.options.original.className&&t.options.original.className.split(" ").forEach(function(t){a.DomUtil.addClass(e,t)})),t.setStyle(t.options.original),t._map&&(t._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers)},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new a.LayerGroup),this._markers=[];var t,e,i,o,r,n,s=this._defaultShape();for(t=0,i=s.length;t<i;t++)(o=this._createMarker(s[t],t)).on("click",this._onMarkerClick,this),o.on("contextmenu",this._onContextMenu,this),this._markers.push(o);for(t=0,e=i-1;t<i;e=t++)(0!==t||a.Polygon&&this._poly instanceof a.Polygon)&&(r=this._markers[e],n=this._markers[t],this._createMiddleMarker(r,n),this._updatePrevNext(r,n))},_createMarker:function(t,e){var i=new a.Marker.Touch(t,{draggable:!0,icon:this.options.icon});return i._origLatLng=t,i._index=e,i.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._fireEdit,this).on("touchmove",this._onTouchMove,this).on("touchend",this._fireEdit,this).on("MSPointerMove",this._onTouchMove,this).on("MSPointerUp",this._fireEdit,this),this._markerGroup.addLayer(i),i},_onMarkerDragStart:function(){this._poly.fire("editstart")},_spliceLatLngs:function(){var t=this._defaultShape(),e=[].splice.apply(t,arguments);return this._poly._convertLatLngs(t,!0),this._poly.redraw(),e},_removeMarker:function(t){var e=t._index;this._markerGroup.removeLayer(t),this._markers.splice(e,1),this._spliceLatLngs(e,1),this._updateIndexes(e,-1),t.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._fireEdit,this).off("touchmove",this._onMarkerDrag,this).off("touchend",this._fireEdit,this).off("click",this._onMarkerClick,this).off("MSPointerMove",this._onTouchMove,this).off("MSPointerUp",this._fireEdit,this)},_fireEdit:function(){this._poly.edited=!0,this._poly.fire("edit"),this._poly._map.fire(a.Draw.Event.EDITVERTEX,{layers:this._markerGroup,poly:this._poly})},_onMarkerDrag:function(t){var e=t.target,i=this._poly,o=a.LatLngUtil.cloneLatLng(e._origLatLng);if(a.extend(e._origLatLng,e._latlng),i.options.poly){var r=i._map._editTooltip;if(!i.options.poly.allowIntersection&&i.intersects()){a.extend(e._origLatLng,o),e.setLatLng(o);var n=i.options.color;i.setStyle({color:this.options.drawError.color}),r&&r.updateContent({text:a.drawLocal.draw.handlers.polyline.error}),setTimeout(function(){i.setStyle({color:n}),r&&r.updateContent({text:a.drawLocal.edit.handlers.edit.tooltip.text,subtext:a.drawLocal.edit.handlers.edit.tooltip.subtext})},1e3)}}e._middleLeft&&e._middleLeft.setLatLng(this._getMiddleLatLng(e._prev,e)),e._middleRight&&e._middleRight.setLatLng(this._getMiddleLatLng(e,e._next)),this._poly._bounds._southWest=a.latLng(1/0,1/0),this._poly._bounds._northEast=a.latLng(-1/0,-1/0);var s=this._poly.getLatLngs();this._poly._convertLatLngs(s,!0),this._poly.redraw(),this._poly.fire("editdrag")},_onMarkerClick:function(t){var e=a.Polygon&&this._poly instanceof a.Polygon?4:3,i=t.target;this._defaultShape().length<e||(this._removeMarker(i),this._updatePrevNext(i._prev,i._next),i._middleLeft&&this._markerGroup.removeLayer(i._middleLeft),i._middleRight&&this._markerGroup.removeLayer(i._middleRight),i._prev&&i._next?this._createMiddleMarker(i._prev,i._next):i._prev?i._next||(i._prev._middleRight=null):i._next._middleLeft=null,this._fireEdit())},_onContextMenu:function(t){var e=t.target;this._poly,this._poly._map.fire(a.Draw.Event.MARKERCONTEXT,{marker:e,layers:this._markerGroup,poly:this._poly}),a.DomEvent.stopPropagation},_onTouchMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent.touches[0]),i=this._map.layerPointToLatLng(e),o=t.target;a.extend(o._origLatLng,i),o._middleLeft&&o._middleLeft.setLatLng(this._getMiddleLatLng(o._prev,o)),o._middleRight&&o._middleRight.setLatLng(this._getMiddleLatLng(o,o._next)),this._poly.redraw(),this.updateMarkers()},_updateIndexes:function(t,e){this._markerGroup.eachLayer(function(i){i._index>t&&(i._index+=e)})},_createMiddleMarker:function(t,e){var i,o,r,a=this._getMiddleLatLng(t,e),n=this._createMarker(a);n.setOpacity(.6),t._middleRight=e._middleLeft=n,o=function(){n.off("touchmove",o,this);var r=e._index;n._index=r,n.off("click",i,this).on("click",this._onMarkerClick,this),a.lat=n.getLatLng().lat,a.lng=n.getLatLng().lng,this._spliceLatLngs(r,0,a),this._markers.splice(r,0,n),n.setOpacity(1),this._updateIndexes(r,1),e._index++,this._updatePrevNext(t,n),this._updatePrevNext(n,e),this._poly.fire("editstart")},r=function(){n.off("dragstart",o,this),n.off("dragend",r,this),n.off("touchmove",o,this),this._createMiddleMarker(t,n),this._createMiddleMarker(n,e)},i=function(){o.call(this),r.call(this),this._fireEdit()},n.on("click",i,this).on("dragstart",o,this).on("dragend",r,this).on("touchmove",o,this),this._markerGroup.addLayer(n)},_updatePrevNext:function(t,e){t&&(t._next=e),e&&(e._prev=t)},_getMiddleLatLng:function(t,e){var i=this._poly._map,o=i.project(t.getLatLng()),r=i.project(e.getLatLng());return i.unproject(o._add(r)._divideBy(2))}}),a.Polyline.addInitHook(function(){this.editing||(a.Edit.Poly&&(this.editing=new a.Edit.Poly(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()}))}),a.Edit=a.Edit||{},a.Edit.SimpleShape=a.Handler.extend({options:{moveIcon:new a.DivIcon({iconSize:new a.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move"}),resizeIcon:new a.DivIcon({iconSize:new a.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize"}),touchMoveIcon:new a.DivIcon({iconSize:new a.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move leaflet-touch-icon"}),touchResizeIcon:new a.DivIcon({iconSize:new a.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize leaflet-touch-icon"})},initialize:function(t,e){a.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=t,a.Util.setOptions(this,e)},addHooks:function(){var t=this._shape;this._shape._map&&(this._map=this._shape._map,t.setStyle(t.options.editing),t._map&&(this._map=t._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var t=this._shape;if(t.setStyle(t.options.original),t._map){this._unbindMarker(this._moveMarker);for(var e=0,i=this._resizeMarkers.length;e<i;e++)this._unbindMarker(this._resizeMarkers[e]);this._resizeMarkers=null,this._map.removeLayer(this._markerGroup),delete this._markerGroup}this._map=null},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new a.LayerGroup),this._createMoveMarker(),this._createResizeMarker()},_createMoveMarker:function(){},_createResizeMarker:function(){},_createMarker:function(t,e){var i=new a.Marker.Touch(t,{draggable:!0,icon:e,zIndexOffset:10});return this._bindMarker(i),this._markerGroup.addLayer(i),i},_bindMarker:function(t){t.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._onMarkerDragEnd,this).on("touchstart",this._onTouchStart,this).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onTouchEnd,this).on("MSPointerUp",this._onTouchEnd,this)},_unbindMarker:function(t){t.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._onMarkerDragEnd,this).off("touchstart",this._onTouchStart,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onTouchEnd,this).off("MSPointerUp",this._onTouchEnd,this)},_onMarkerDragStart:function(t){t.target.setOpacity(0),this._shape.fire("editstart")},_fireEdit:function(){this._shape.edited=!0,this._shape.fire("edit")},_onMarkerDrag:function(t){var e=t.target,i=e.getLatLng();e===this._moveMarker?this._move(i):this._resize(i),this._shape.redraw(),this._shape.fire("editdrag")},_onMarkerDragEnd:function(t){t.target.setOpacity(1),this._fireEdit()},_onTouchStart:function(t){if(a.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,t),"function"==typeof this._getCorners){var e=this._getCorners(),i=t.target,o=i._cornerIndex;i.setOpacity(0),this._oppositeCorner=e[(o+2)%4],this._toggleCornerMarkers(0,o)}this._shape.fire("editstart")},_onTouchMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent.touches[0]),i=this._map.layerPointToLatLng(e);return t.target===this._moveMarker?this._move(i):this._resize(i),this._shape.redraw(),!1},_onTouchEnd:function(t){t.target.setOpacity(1),this.updateMarkers(),this._fireEdit()},_move:function(){},_resize:function(){}}),a.Edit=a.Edit||{},a.Edit.Rectangle=a.Edit.SimpleShape.extend({_createMoveMarker:function(){var t=this._shape.getBounds().getCenter();this._moveMarker=this._createMarker(t,this.options.moveIcon)},_createResizeMarker:function(){var t=this._getCorners();this._resizeMarkers=[];for(var e=0,i=t.length;e<i;e++)this._resizeMarkers.push(this._createMarker(t[e],this.options.resizeIcon)),this._resizeMarkers[e]._cornerIndex=e},_onMarkerDragStart:function(t){a.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,t);var e=this._getCorners(),i=t.target._cornerIndex;this._oppositeCorner=e[(i+2)%4],this._toggleCornerMarkers(0,i)},_onMarkerDragEnd:function(t){var e,i=t.target;i===this._moveMarker&&(e=this._shape.getBounds().getCenter(),i.setLatLng(e)),this._toggleCornerMarkers(1),this._repositionCornerMarkers(),a.Edit.SimpleShape.prototype._onMarkerDragEnd.call(this,t)},_move:function(t){for(var e,i=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),o=this._shape.getBounds().getCenter(),r=[],n=0,s=i.length;n<s;n++)e=[i[n].lat-o.lat,i[n].lng-o.lng],r.push([t.lat+e[0],t.lng+e[1]]);this._shape.setLatLngs(r),this._repositionCornerMarkers(),this._map.fire(a.Draw.Event.EDITMOVE,{layer:this._shape})},_resize:function(t){var e;this._shape.setBounds(a.latLngBounds(t,this._oppositeCorner)),e=this._shape.getBounds(),this._moveMarker.setLatLng(e.getCenter()),this._map.fire(a.Draw.Event.EDITRESIZE,{layer:this._shape})},_getCorners:function(){var t=this._shape.getBounds();return[t.getNorthWest(),t.getNorthEast(),t.getSouthEast(),t.getSouthWest()]},_toggleCornerMarkers:function(t){for(var e=0,i=this._resizeMarkers.length;e<i;e++)this._resizeMarkers[e].setOpacity(t)},_repositionCornerMarkers:function(){for(var t=this._getCorners(),e=0,i=this._resizeMarkers.length;e<i;e++)this._resizeMarkers[e].setLatLng(t[e])}}),a.Rectangle.addInitHook(function(){a.Edit.Rectangle&&(this.editing=new a.Edit.Rectangle(this),this.options.editable&&this.editing.enable())}),a.Edit=a.Edit||{},a.Edit.CircleMarker=a.Edit.SimpleShape.extend({_createMoveMarker:function(){var t=this._shape.getLatLng();this._moveMarker=this._createMarker(t,this.options.moveIcon)},_createResizeMarker:function(){this._resizeMarkers=[]},_move:function(t){if(this._resizeMarkers.length){var e=this._getResizeMarkerPoint(t);this._resizeMarkers[0].setLatLng(e)}this._shape.setLatLng(t),this._map.fire(a.Draw.Event.EDITMOVE,{layer:this._shape})}}),a.CircleMarker.addInitHook(function(){a.Edit.CircleMarker&&(this.editing=new a.Edit.CircleMarker(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()})}),a.Edit=a.Edit||{},a.Edit.Circle=a.Edit.CircleMarker.extend({_createResizeMarker:function(){var t=this._shape.getLatLng(),e=this._getResizeMarkerPoint(t);this._resizeMarkers=[],this._resizeMarkers.push(this._createMarker(e,this.options.resizeIcon))},_getResizeMarkerPoint:function(t){var e=this._shape._radius*Math.cos(Math.PI/4),i=this._map.project(t);return this._map.unproject([i.x+e,i.y-e])},_resize:function(t){var e=this._moveMarker.getLatLng();a.GeometryUtil.isVersion07x()?radius=e.distanceTo(t):radius=this._map.distance(e,t),this._shape.setRadius(radius),this._map.editTooltip&&this._map._editTooltip.updateContent({text:a.drawLocal.edit.handlers.edit.tooltip.subtext+"<br />"+a.drawLocal.edit.handlers.edit.tooltip.text,subtext:a.drawLocal.draw.handlers.circle.radius+": "+a.GeometryUtil.readableDistance(radius,!0,this.options.feet,this.options.nautic)}),this._shape.setRadius(radius),this._map.fire(a.Draw.Event.EDITRESIZE,{layer:this._shape})}}),a.Circle.addInitHook(function(){a.Edit.Circle&&(this.editing=new a.Edit.Circle(this),this.options.editable&&this.editing.enable())}),a.Map.mergeOptions({touchExtend:!0}),a.Map.TouchExtend=a.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane},addHooks:function(){a.DomEvent.on(this._container,"touchstart",this._onTouchStart,this),a.DomEvent.on(this._container,"touchend",this._onTouchEnd,this),a.DomEvent.on(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(a.DomEvent.on(this._container,"MSPointerDown",this._onTouchStart,this),a.DomEvent.on(this._container,"MSPointerUp",this._onTouchEnd,this),a.DomEvent.on(this._container,"MSPointerMove",this._onTouchMove,this),a.DomEvent.on(this._container,"MSPointerCancel",this._onTouchCancel,this)):(a.DomEvent.on(this._container,"touchcancel",this._onTouchCancel,this),a.DomEvent.on(this._container,"touchleave",this._onTouchLeave,this))},removeHooks:function(){a.DomEvent.off(this._container,"touchstart",this._onTouchStart,this),a.DomEvent.off(this._container,"touchend",this._onTouchEnd,this),a.DomEvent.off(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(a.DomEvent.off(this._container,"MSPointerDown",this._onTouchStart,this),a.DomEvent.off(this._container,"MSPointerUp",this._onTouchEnd,this),a.DomEvent.off(this._container,"MSPointerMove",this._onTouchMove,this),a.DomEvent.off(this._container,"MSPointerCancel",this._onTouchCancel,this)):(a.DomEvent.off(this._container,"touchcancel",this._onTouchCancel,this),a.DomEvent.off(this._container,"touchleave",this._onTouchLeave,this))},_touchEvent:function(t,e){var i={};if(void 0!==t.touches){if(!t.touches.length)return;i=t.touches[0]}else{if("touch"!==t.pointerType)return;if(i=t,!this._filterClick(t))return}var o=this._map.mouseEventToContainerPoint(i),r=this._map.mouseEventToLayerPoint(i),a=this._map.layerPointToLatLng(r);this._map.fire(e,{latlng:a,layerPoint:r,containerPoint:o,pageX:i.pageX,pageY:i.pageY,originalEvent:t})},_filterClick:function(t){var e=t.timeStamp||t.originalEvent.timeStamp,i=a.DomEvent._lastClick&&e-a.DomEvent._lastClick;return i&&i>100&&i<500||t.target._simulatedClick&&!t._simulated?(a.DomEvent.stop(t),!1):(a.DomEvent._lastClick=e,!0)},_onTouchStart:function(t){this._map._loaded&&this._touchEvent(t,"touchstart")},_onTouchEnd:function(t){this._map._loaded&&this._touchEvent(t,"touchend")},_onTouchCancel:function(t){if(this._map._loaded){var e="touchcancel";this._detectIE()&&(e="pointercancel"),this._touchEvent(t,e)}},_onTouchLeave:function(t){this._map._loaded&&this._touchEvent(t,"touchleave")},_onTouchMove:function(t){this._map._loaded&&this._touchEvent(t,"touchmove")},_detectIE:function(){var t=o.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var r=t.indexOf("Edge/");return r>0&&parseInt(t.substring(r+5,t.indexOf(".",r)),10)}}),a.Map.addInitHook("addHandler","touchExtend",a.Map.TouchExtend),a.Marker.Touch=a.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?a.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu","touchstart","touchend","touchmove"];this._detectIE?e.concat(["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"]):e.concat(["touchcancel"]),a.DomUtil.addClass(t,"leaflet-clickable"),a.DomEvent.on(t,"click",this._onMouseClick,this),a.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var i=0;i<e.length;i++)a.DomEvent.on(t,e[i],this._fireMouseEvent,this);a.Handler.MarkerDrag&&(this.dragging=new a.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_detectIE:function(){var t=o.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var r=t.indexOf("Edge/");return r>0&&parseInt(t.substring(r+5,t.indexOf(".",r)),10)}}),a.LatLngUtil={cloneLatLngs:function(t){for(var e=[],i=0,o=t.length;i<o;i++)Array.isArray(t[i])?e.push(a.LatLngUtil.cloneLatLngs(t[i])):e.push(this.cloneLatLng(t[i]));return e},cloneLatLng:function(t){return a.latLng(t.lat,t.lng)}},function(){var t={km:2,ha:2,m:0,mi:2,ac:2,yd:0,ft:0,nm:2};a.GeometryUtil=a.extend(a.GeometryUtil||{},{geodesicArea:function(t){var e,i,o=t.length,r=0,a=Math.PI/180;if(o>2){for(var n=0;n<o;n++)e=t[n],r+=((i=t[(n+1)%o]).lng-e.lng)*a*(2+Math.sin(e.lat*a)+Math.sin(i.lat*a));r=6378137*r*6378137/2}return Math.abs(r)},formattedNumber:function(t,e){var i=parseFloat(t).toFixed(e),o=a.drawLocal.format&&a.drawLocal.format.numeric,r=o&&o.delimiters,n=r&&r.thousands,s=r&&r.decimal;if(n||s){var l=i.split(".");i=n?l[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+n):l[0],s=s||".",l.length>1&&(i=i+s+l[1])}return i},readableArea:function(e,i,o){var r,n;return o=a.Util.extend({},t,o),i?(n=["ha","m"],type=typeof i,"string"===type?n=[i]:"boolean"!==type&&(n=i),r=e>=1e6&&-1!==n.indexOf("km")?a.GeometryUtil.formattedNumber(1e-6*e,o.km)+" km²":e>=1e4&&-1!==n.indexOf("ha")?a.GeometryUtil.formattedNumber(1e-4*e,o.ha)+" ha":a.GeometryUtil.formattedNumber(e,o.m)+" m²"):r=(e/=.836127)>=3097600?a.GeometryUtil.formattedNumber(e/3097600,o.mi)+" mi²":e>=4840?a.GeometryUtil.formattedNumber(e/4840,o.ac)+" acres":a.GeometryUtil.formattedNumber(e,o.yd)+" yd²",r},readableDistance:function(e,i,o,r,n){var s;switch(n=a.Util.extend({},t,n),i?"string"==typeof i?i:"metric":o?"feet":r?"nauticalMile":"yards"){case"metric":s=e>1e3?a.GeometryUtil.formattedNumber(e/1e3,n.km)+" km":a.GeometryUtil.formattedNumber(e,n.m)+" m";break;case"feet":e*=3.28083,s=a.GeometryUtil.formattedNumber(e,n.ft)+" ft";break;case"nauticalMile":e*=.53996,s=a.GeometryUtil.formattedNumber(e/1e3,n.nm)+" nm";break;default:s=(e*=1.09361)>1760?a.GeometryUtil.formattedNumber(e/1760,n.mi)+" miles":a.GeometryUtil.formattedNumber(e,n.yd)+" yd"}return s},isVersion07x:function(){var t=a.version.split(".");return 0===parseInt(t[0],10)&&7===parseInt(t[1],10)}})}(),a.Util.extend(a.LineUtil,{segmentsIntersect:function(t,e,i,o){return this._checkCounterclockwise(t,i,o)!==this._checkCounterclockwise(e,i,o)&&this._checkCounterclockwise(t,e,i)!==this._checkCounterclockwise(t,e,o)},_checkCounterclockwise:function(t,e,i){return(i.y-t.y)*(e.x-t.x)>(e.y-t.y)*(i.x-t.x)}}),a.Polyline.include({intersects:function(){var t,e,i,o=this._getProjectedPoints(),r=o?o.length:0;if(this._tooFewPointsForIntersection())return!1;for(t=r-1;t>=3;t--)if(e=o[t-1],i=o[t],this._lineSegmentsIntersectsRange(e,i,t-2))return!0;return!1},newLatLngIntersects:function(t,e){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(t),e)},newPointIntersects:function(t,e){var i=this._getProjectedPoints(),o=i?i.length:0,r=i?i[o-1]:null,a=o-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(r,t,a,e?1:0)},_tooFewPointsForIntersection:function(t){var e=this._getProjectedPoints(),i=e?e.length:0;return!e||(i+=t||0)<=3},_lineSegmentsIntersectsRange:function(t,e,i,o){var r,n,s=this._getProjectedPoints();o=o||0;for(var l=i;l>o;l--)if(r=s[l-1],n=s[l],a.LineUtil.segmentsIntersect(t,e,r,n))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var t=[],e=this._defaultShape(),i=0;i<e.length;i++)t.push(this._map.latLngToLayerPoint(e[i]));return t}}),a.Polygon.include({intersects:function(){var t,e,i,o,r=this._getProjectedPoints();return!this._tooFewPointsForIntersection()&&(!!a.Polyline.prototype.intersects.call(this)||(t=r.length,e=r[0],i=r[t-1],o=t-2,this._lineSegmentsIntersectsRange(i,e,o,1)))}}),a.Control.Draw=a.Control.extend({options:{position:"topleft",draw:{},edit:!1},initialize:function(t){if(a.version<"0.7")throw new Error("Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/");var e;a.Control.prototype.initialize.call(this,t),this._toolbars={},a.DrawToolbar&&this.options.draw&&(e=new a.DrawToolbar(this.options.draw),this._toolbars[a.DrawToolbar.TYPE]=e,this._toolbars[a.DrawToolbar.TYPE].on("enable",this._toolbarEnabled,this)),a.EditToolbar&&this.options.edit&&(e=new a.EditToolbar(this.options.edit),this._toolbars[a.EditToolbar.TYPE]=e,this._toolbars[a.EditToolbar.TYPE].on("enable",this._toolbarEnabled,this)),a.toolbar=this},onAdd:function(t){var e,i=a.DomUtil.create("div","leaflet-draw"),o=!1;for(var r in this._toolbars)this._toolbars.hasOwnProperty(r)&&(e=this._toolbars[r].addToolbar(t))&&(o||(a.DomUtil.hasClass(e,"leaflet-draw-toolbar-top")||a.DomUtil.addClass(e.childNodes[0],"leaflet-draw-toolbar-top"),o=!0),i.appendChild(e));return i},onRemove:function(){for(var t in this._toolbars)this._toolbars.hasOwnProperty(t)&&this._toolbars[t].removeToolbar()},setDrawingOptions:function(t){for(var e in this._toolbars)this._toolbars[e]instanceof a.DrawToolbar&&this._toolbars[e].setOptions(t)},_toolbarEnabled:function(t){var e=t.target;for(var i in this._toolbars)this._toolbars[i]!==e&&this._toolbars[i].disable()}}),a.Map.mergeOptions({drawControlTooltips:!0,drawControl:!1}),a.Map.addInitHook(function(){this.options.drawControl&&(this.drawControl=new a.Control.Draw,this.addControl(this.drawControl))}),a.Toolbar=a.Class.extend({initialize:function(t){a.setOptions(this,t),this._modes={},this._actionButtons=[],this._activeMode=null;var e=a.version.split(".");1===parseInt(e[0],10)&&parseInt(e[1],10)>=2?a.Toolbar.include(a.Evented.prototype):a.Toolbar.include(a.Mixin.Events)},enabled:function(){return null!==this._activeMode},disable:function(){this.enabled()&&this._activeMode.handler.disable()},addToolbar:function(t){var e,i=a.DomUtil.create("div","leaflet-draw-section"),o=0,r=this._toolbarClass||"",n=this.getModeHandlers(t);for(this._toolbarContainer=a.DomUtil.create("div","leaflet-draw-toolbar leaflet-bar"),this._map=t,e=0;e<n.length;e++)n[e].enabled&&this._initModeHandler(n[e].handler,this._toolbarContainer,o++,r,n[e].title);if(o)return this._lastButtonIndex=--o,this._actionsContainer=a.DomUtil.create("ul","leaflet-draw-actions"),i.appendChild(this._toolbarContainer),i.appendChild(this._actionsContainer),i},removeToolbar:function(){for(var t in this._modes)this._modes.hasOwnProperty(t)&&(this._disposeButton(this._modes[t].button,this._modes[t].handler.enable,this._modes[t].handler),this._modes[t].handler.disable(),this._modes[t].handler.off("enabled",this._handlerActivated,this).off("disabled",this._handlerDeactivated,this));this._modes={};for(var e=0,i=this._actionButtons.length;e<i;e++)this._disposeButton(this._actionButtons[e].button,this._actionButtons[e].callback,this);this._actionButtons=[],this._actionsContainer=null},_initModeHandler:function(t,e,i,o,r){var a=t.type;this._modes[a]={},this._modes[a].handler=t,this._modes[a].button=this._createButton({type:a,title:r,className:o+"-"+a,container:e,callback:this._modes[a].handler.enable,context:this._modes[a].handler}),this._modes[a].buttonIndex=i,this._modes[a].handler.on("enabled",this._handlerActivated,this).on("disabled",this._handlerDeactivated,this)},_detectIOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!o.MSStream},_createButton:function(t){var e=a.DomUtil.create("a",t.className||"",t.container),i=a.DomUtil.create("span","sr-only",t.container);e.href="#",e.appendChild(i),t.title&&(e.title=t.title,i.innerHTML=t.title),t.text&&(e.innerHTML=t.text,i.innerHTML=t.text);var o=this._detectIOS()?"touchstart":"click";return a.DomEvent.on(e,"click",a.DomEvent.stopPropagation).on(e,"mousedown",a.DomEvent.stopPropagation).on(e,"dblclick",a.DomEvent.stopPropagation).on(e,"touchstart",a.DomEvent.stopPropagation).on(e,"click",a.DomEvent.preventDefault).on(e,o,t.callback,t.context),e},_disposeButton:function(t,e){var i=this._detectIOS()?"touchstart":"click";a.DomEvent.off(t,"click",a.DomEvent.stopPropagation).off(t,"mousedown",a.DomEvent.stopPropagation).off(t,"dblclick",a.DomEvent.stopPropagation).off(t,"touchstart",a.DomEvent.stopPropagation).off(t,"click",a.DomEvent.preventDefault).off(t,i,e)},_handlerActivated:function(t){this.disable(),this._activeMode=this._modes[t.handler],a.DomUtil.addClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._showActionsToolbar(),this.fire("enable")},_handlerDeactivated:function(){this._hideActionsToolbar(),a.DomUtil.removeClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._activeMode=null,this.fire("disable")},_createActions:function(t){var e,i,o,r,n=this._actionsContainer,s=this.getActions(t),l=s.length;for(i=0,o=this._actionButtons.length;i<o;i++)this._disposeButton(this._actionButtons[i].button,this._actionButtons[i].callback);for(this._actionButtons=[];n.firstChild;)n.removeChild(n.firstChild);for(var h=0;h<l;h++)"enabled"in s[h]&&!s[h].enabled||(e=a.DomUtil.create("li","",n),r=this._createButton({title:s[h].title,text:s[h].text,container:e,callback:s[h].callback,context:s[h].context}),this._actionButtons.push({button:r,callback:s[h].callback}))},_showActionsToolbar:function(){var t=this._activeMode.buttonIndex,e=this._lastButtonIndex,i=this._activeMode.button.offsetTop-1;this._createActions(this._activeMode.handler),this._actionsContainer.style.top=i+"px",0===t&&(a.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),a.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-top")),t===e&&(a.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),a.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-bottom")),this._actionsContainer.style.display="block",this._map.fire(a.Draw.Event.TOOLBAROPENED)},_hideActionsToolbar:function(){this._actionsContainer.style.display="none",a.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),a.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),a.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-top"),a.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-bottom"),this._map.fire(a.Draw.Event.TOOLBARCLOSED)}}),a.Draw=a.Draw||{},a.Draw.Tooltip=a.Class.extend({initialize:function(t){this._map=t,this._popupPane=t._panes.popupPane,this._visible=!1,this._container=t.options.drawControlTooltips?a.DomUtil.create("div","leaflet-draw-tooltip",this._popupPane):null,this._singleLineLabel=!1,this._map.on("mouseout",this._onMouseOut,this)},dispose:function(){this._map.off("mouseout",this._onMouseOut,this),this._container&&(this._popupPane.removeChild(this._container),this._container=null)},updateContent:function(t){return this._container?(t.subtext=t.subtext||"",0!==t.subtext.length||this._singleLineLabel?t.subtext.length>0&&this._singleLineLabel&&(a.DomUtil.removeClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!1):(a.DomUtil.addClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!0),this._container.innerHTML=(t.subtext.length>0?'<span class="leaflet-draw-tooltip-subtext">'+t.subtext+"</span><br />":"")+"<span>"+t.text+"</span>",t.text||t.subtext?(this._visible=!0,this._container.style.visibility="inherit"):(this._visible=!1,this._container.style.visibility="hidden"),this):this},updatePosition:function(t){var e=this._map.latLngToLayerPoint(t),i=this._container;return this._container&&(this._visible&&(i.style.visibility="inherit"),a.DomUtil.setPosition(i,e)),this},showAsError:function(){return this._container&&a.DomUtil.addClass(this._container,"leaflet-error-draw-tooltip"),this},removeError:function(){return this._container&&a.DomUtil.removeClass(this._container,"leaflet-error-draw-tooltip"),this},_onMouseOut:function(){this._container&&(this._container.style.visibility="hidden")}}),a.DrawToolbar=a.Toolbar.extend({statics:{TYPE:"draw"},options:{polyline:{},polygon:{},rectangle:{},circle:{},marker:{},circlemarker:{}},initialize:function(t){for(var e in this.options)this.options.hasOwnProperty(e)&&t[e]&&(t[e]=a.extend({},this.options[e],t[e]));this._toolbarClass="leaflet-draw-draw",a.Toolbar.prototype.initialize.call(this,t)},getModeHandlers:function(t){return[{enabled:this.options.polyline,handler:new a.Draw.Polyline(t,this.options.polyline),title:a.drawLocal.draw.toolbar.buttons.polyline},{enabled:this.options.polygon,handler:new a.Draw.Polygon(t,this.options.polygon),title:a.drawLocal.draw.toolbar.buttons.polygon},{enabled:this.options.rectangle,handler:new a.Draw.Rectangle(t,this.options.rectangle),title:a.drawLocal.draw.toolbar.buttons.rectangle},{enabled:this.options.circle,handler:new a.Draw.Circle(t,this.options.circle),title:a.drawLocal.draw.toolbar.buttons.circle},{enabled:this.options.marker,handler:new a.Draw.Marker(t,this.options.marker),title:a.drawLocal.draw.toolbar.buttons.marker},{enabled:this.options.circlemarker,handler:new a.Draw.CircleMarker(t,this.options.circlemarker),title:a.drawLocal.draw.toolbar.buttons.circlemarker}]},getActions:function(t){return[{enabled:t.completeShape,title:a.drawLocal.draw.toolbar.finish.title,text:a.drawLocal.draw.toolbar.finish.text,callback:t.completeShape,context:t},{enabled:t.deleteLastVertex,title:a.drawLocal.draw.toolbar.undo.title,text:a.drawLocal.draw.toolbar.undo.text,callback:t.deleteLastVertex,context:t},{title:a.drawLocal.draw.toolbar.actions.title,text:a.drawLocal.draw.toolbar.actions.text,callback:this.disable,context:this}]},setOptions:function(t){for(var e in a.setOptions(this,t),this._modes)this._modes.hasOwnProperty(e)&&t.hasOwnProperty(e)&&this._modes[e].handler.setOptions(t[e])}}),a.EditToolbar=a.Toolbar.extend({statics:{TYPE:"edit"},options:{edit:{selectedPathOptions:{dashArray:"10, 10",fill:!0,fillColor:"#fe57a1",fillOpacity:.1,maintainColor:!1}},remove:{},poly:null,featureGroup:null},initialize:function(t){t.edit&&(void 0===t.edit.selectedPathOptions&&(t.edit.selectedPathOptions=this.options.edit.selectedPathOptions),t.edit.selectedPathOptions=a.extend({},this.options.edit.selectedPathOptions,t.edit.selectedPathOptions)),t.remove&&(t.remove=a.extend({},this.options.remove,t.remove)),t.poly&&(t.poly=a.extend({},this.options.poly,t.poly)),this._toolbarClass="leaflet-draw-edit",a.Toolbar.prototype.initialize.call(this,t),this._selectedFeatureCount=0},getModeHandlers:function(t){var e=this.options.featureGroup;return[{enabled:this.options.edit,handler:new a.EditToolbar.Edit(t,{featureGroup:e,selectedPathOptions:this.options.edit.selectedPathOptions,poly:this.options.poly}),title:a.drawLocal.edit.toolbar.buttons.edit},{enabled:this.options.remove,handler:new a.EditToolbar.Delete(t,{featureGroup:e}),title:a.drawLocal.edit.toolbar.buttons.remove}]},getActions:function(t){var e=[{title:a.drawLocal.edit.toolbar.actions.save.title,text:a.drawLocal.edit.toolbar.actions.save.text,callback:this._save,context:this},{title:a.drawLocal.edit.toolbar.actions.cancel.title,text:a.drawLocal.edit.toolbar.actions.cancel.text,callback:this.disable,context:this}];return t.removeAllLayers&&e.push({title:a.drawLocal.edit.toolbar.actions.clearAll.title,text:a.drawLocal.edit.toolbar.actions.clearAll.text,callback:this._clearAllLayers,context:this}),e},addToolbar:function(t){var e=a.Toolbar.prototype.addToolbar.call(this,t);return this._checkDisabled(),this.options.featureGroup.on("layeradd layerremove",this._checkDisabled,this),e},removeToolbar:function(){this.options.featureGroup.off("layeradd layerremove",this._checkDisabled,this),a.Toolbar.prototype.removeToolbar.call(this)},disable:function(){this.enabled()&&(this._activeMode.handler.revertLayers(),a.Toolbar.prototype.disable.call(this))},_save:function(){this._activeMode.handler.save(),this._activeMode&&this._activeMode.handler.disable()},_clearAllLayers:function(){this._activeMode.handler.removeAllLayers(),this._activeMode&&this._activeMode.handler.disable()},_checkDisabled:function(){var t,e=0!==this.options.featureGroup.getLayers().length;this.options.edit&&(t=this._modes[a.EditToolbar.Edit.TYPE].button,e?a.DomUtil.removeClass(t,"leaflet-disabled"):a.DomUtil.addClass(t,"leaflet-disabled"),t.setAttribute("title",e?a.drawLocal.edit.toolbar.buttons.edit:a.drawLocal.edit.toolbar.buttons.editDisabled)),this.options.remove&&(t=this._modes[a.EditToolbar.Delete.TYPE].button,e?a.DomUtil.removeClass(t,"leaflet-disabled"):a.DomUtil.addClass(t,"leaflet-disabled"),t.setAttribute("title",e?a.drawLocal.edit.toolbar.buttons.remove:a.drawLocal.edit.toolbar.buttons.removeDisabled))}}),a.EditToolbar.Edit=a.Handler.extend({statics:{TYPE:"edit"},initialize:function(t,e){if(a.Handler.prototype.initialize.call(this,t),a.setOptions(this,e),this._featureGroup=e.featureGroup,!(this._featureGroup instanceof a.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this._uneditedLayerProps={},this.type=a.EditToolbar.Edit.TYPE;var i=a.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?a.EditToolbar.Edit.include(a.Evented.prototype):a.EditToolbar.Edit.include(a.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(a.Draw.Event.EDITSTART,{handler:this.type}),a.Handler.prototype.enable.call(this),this._featureGroup.on("layeradd",this._enableLayerEdit,this).on("layerremove",this._disableLayerEdit,this))},disable:function(){this._enabled&&(this._featureGroup.off("layeradd",this._enableLayerEdit,this).off("layerremove",this._disableLayerEdit,this),a.Handler.prototype.disable.call(this),this._map.fire(a.Draw.Event.EDITSTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(t.getContainer().focus(),this._featureGroup.eachLayer(this._enableLayerEdit,this),this._tooltip=new a.Draw.Tooltip(this._map),this._tooltip.updateContent({text:a.drawLocal.edit.handlers.edit.tooltip.text,subtext:a.drawLocal.edit.handlers.edit.tooltip.subtext}),t._editTooltip=this._tooltip,this._updateTooltip(),this._map.on("mousemove",this._onMouseMove,this).on("touchmove",this._onMouseMove,this).on("MSPointerMove",this._onMouseMove,this).on(a.Draw.Event.EDITVERTEX,this._updateTooltip,this))},removeHooks:function(){this._map&&(this._featureGroup.eachLayer(this._disableLayerEdit,this),this._uneditedLayerProps={},this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this).off("touchmove",this._onMouseMove,this).off("MSPointerMove",this._onMouseMove,this).off(a.Draw.Event.EDITVERTEX,this._updateTooltip,this))},revertLayers:function(){this._featureGroup.eachLayer(function(t){this._revertLayer(t)},this)},save:function(){var t=new a.LayerGroup;this._featureGroup.eachLayer(function(e){e.edited&&(t.addLayer(e),e.edited=!1)}),this._map.fire(a.Draw.Event.EDITED,{layers:t})},_backupLayer:function(t){var e=a.Util.stamp(t);this._uneditedLayerProps[e]||(t instanceof a.Polyline||t instanceof a.Polygon||t instanceof a.Rectangle?this._uneditedLayerProps[e]={latlngs:a.LatLngUtil.cloneLatLngs(t.getLatLngs())}:t instanceof a.Circle?this._uneditedLayerProps[e]={latlng:a.LatLngUtil.cloneLatLng(t.getLatLng()),radius:t.getRadius()}:(t instanceof a.Marker||t instanceof a.CircleMarker)&&(this._uneditedLayerProps[e]={latlng:a.LatLngUtil.cloneLatLng(t.getLatLng())}))},_getTooltipText:function(){return{text:a.drawLocal.edit.handlers.edit.tooltip.text,subtext:a.drawLocal.edit.handlers.edit.tooltip.subtext}},_updateTooltip:function(){this._tooltip.updateContent(this._getTooltipText())},_revertLayer:function(t){var e=a.Util.stamp(t);t.edited=!1,this._uneditedLayerProps.hasOwnProperty(e)&&(t instanceof a.Polyline||t instanceof a.Polygon||t instanceof a.Rectangle?t.setLatLngs(this._uneditedLayerProps[e].latlngs):t instanceof a.Circle?(t.setLatLng(this._uneditedLayerProps[e].latlng),t.setRadius(this._uneditedLayerProps[e].radius)):(t instanceof a.Marker||t instanceof a.CircleMarker)&&t.setLatLng(this._uneditedLayerProps[e].latlng),t.fire("revert-edited",{layer:t}))},_enableLayerEdit:function(t){var e,i,o=t.layer||t.target||t;this._backupLayer(o),this.options.poly&&(i=a.Util.extend({},this.options.poly),o.options.poly=i),this.options.selectedPathOptions&&((e=a.Util.extend({},this.options.selectedPathOptions)).maintainColor&&(e.color=o.options.color,e.fillColor=o.options.fillColor),o.options.original=a.extend({},o.options),o.options.editing=e),o instanceof a.Marker?(o.editing&&o.editing.enable(),o.dragging.enable(),o.on("dragend",this._onMarkerDragEnd).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onMarkerDragEnd,this).on("MSPointerUp",this._onMarkerDragEnd,this)):o.editing.enable()},_disableLayerEdit:function(t){var e=t.layer||t.target||t;e.edited=!1,e.editing&&e.editing.disable(),delete e.options.editing,delete e.options.original,this._selectedPathOptions&&(e instanceof a.Marker?this._toggleMarkerHighlight(e):(e.setStyle(e.options.previousOptions),delete e.options.previousOptions)),e instanceof a.Marker?(e.dragging.disable(),e.off("dragend",this._onMarkerDragEnd,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onMarkerDragEnd,this).off("MSPointerUp",this._onMarkerDragEnd,this)):e.editing.disable()},_onMouseMove:function(t){this._tooltip.updatePosition(t.latlng)},_onMarkerDragEnd:function(t){var e=t.target;e.edited=!0,this._map.fire(a.Draw.Event.EDITMOVE,{layer:e})},_onTouchMove:function(t){var e=t.originalEvent.changedTouches[0],i=this._map.mouseEventToLayerPoint(e),o=this._map.layerPointToLatLng(i);t.target.setLatLng(o)},_hasAvailableLayers:function(){return 0!==this._featureGroup.getLayers().length}}),a.EditToolbar.Delete=a.Handler.extend({statics:{TYPE:"remove"},initialize:function(t,e){if(a.Handler.prototype.initialize.call(this,t),a.Util.setOptions(this,e),this._deletableLayers=this.options.featureGroup,!(this._deletableLayers instanceof a.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this.type=a.EditToolbar.Delete.TYPE;var i=a.version.split(".");1===parseInt(i[0],10)&&parseInt(i[1],10)>=2?a.EditToolbar.Delete.include(a.Evented.prototype):a.EditToolbar.Delete.include(a.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(a.Draw.Event.DELETESTART,{handler:this.type}),a.Handler.prototype.enable.call(this),this._deletableLayers.on("layeradd",this._enableLayerDelete,this).on("layerremove",this._disableLayerDelete,this))},disable:function(){this._enabled&&(this._deletableLayers.off("layeradd",this._enableLayerDelete,this).off("layerremove",this._disableLayerDelete,this),a.Handler.prototype.disable.call(this),this._map.fire(a.Draw.Event.DELETESTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(t.getContainer().focus(),this._deletableLayers.eachLayer(this._enableLayerDelete,this),this._deletedLayers=new a.LayerGroup,this._tooltip=new a.Draw.Tooltip(this._map),this._tooltip.updateContent({text:a.drawLocal.edit.handlers.remove.tooltip.text}),this._map.on("mousemove",this._onMouseMove,this))},removeHooks:function(){this._map&&(this._deletableLayers.eachLayer(this._disableLayerDelete,this),this._deletedLayers=null,this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this))},revertLayers:function(){this._deletedLayers.eachLayer(function(t){this._deletableLayers.addLayer(t),t.fire("revert-deleted",{layer:t})},this)},save:function(){this._map.fire(a.Draw.Event.DELETED,{layers:this._deletedLayers})},removeAllLayers:function(){this._deletableLayers.eachLayer(function(t){this._removeLayer({layer:t})},this),this.save()},_enableLayerDelete:function(t){(t.layer||t.target||t).on("click",this._removeLayer,this)},_disableLayerDelete:function(t){var e=t.layer||t.target||t;e.off("click",this._removeLayer,this),this._deletedLayers.removeLayer(e)},_removeLayer:function(t){var e=t.layer||t.target||t;this._deletableLayers.removeLayer(e),this._deletedLayers.addLayer(e),e.fire("deleted")},_onMouseMove:function(t){this._tooltip.updatePosition(t.latlng)},_hasAvailableLayers:function(){return 0!==this._deletableLayers.getLayers().length}})},62128(t,e,i){"use strict";var o=i(96291),r=i.n(o),a=i(96918),n=i.n(a),s=i(77322),l=i.n(s),h=i(55800),d=i.n(h),c=i(10207),p=i.n(c),u=i(37746),_=i.n(u),f=i(2853),g={};g.styleTagTransform=_(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=n(),g.insertStyleElement=p(),r()(f.A,g),f.A&&f.A.locals&&f.A.locals},74937(t,e,i){"use strict";var o=i(67290),r=i.n(o),a=i(9727),n=i.n(a),s=i(6323),l=i.n(s),h=i(20610),d=i.n(h),c=i(97398),p=i.n(c),u=i(50555),_=i.n(u),f=i(90044),g={};g.styleTagTransform=_(),g.setAttributes=d(),g.insert=l().bind(null,"head"),g.domAPI=n(),g.insertStyleElement=p(),r()(f.A,g),f.A&&f.A.locals&&f.A.locals},32955(t,e,i){"use strict";var o=i(79678),r=i(40842),a=TypeError,n=Object.getOwnPropertyDescriptor,s=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!n(t,"length").writable)throw new a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},68562(t,e,i){"use strict";var o=i(92487),r=i(69843),a=TypeError,n=Object.getOwnPropertyDescriptor,s=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!n(t,"length").writable)throw new a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},14722(t,e,i){"use strict";var o=i(94994);t.exports=o([].slice)},27531(t,e,i){"use strict";var o=i(59387);t.exports=o([].slice)},78167(t,e,i){"use strict";var o=i(87198),r=i(46649),a=i(63522),n=i(24975)("toStringTag"),s=Object,l="Arguments"===a(function(){return arguments}());t.exports=o?a:function(t){var e,i,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=s(t),n))?i:l?a(e):"Object"===(o=a(e))&&r(e.callee)?"Arguments":o}},65358(t,e,i){"use strict";var o=i(7),r=i(33840),a=i(76331),n=i(44230)("toStringTag"),s=Object,l="Arguments"===a(function(){return arguments}());t.exports=o?a:function(t){var e,i,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=s(t),n))?i:l?a(e):"Object"===(o=a(e))&&r(e.callee)?"Arguments":o}},82121(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},69312(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},29597(t,e,i){"use strict";var o=i(19370),r=Function.prototype,a=r.apply,n=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?n.bind(a):function(){return n.apply(a,arguments)})},16788(t,e,i){"use strict";var o=i(48371),r=Function.prototype,a=r.apply,n=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?n.bind(a):function(){return n.apply(a,arguments)})},23986(t,e,i){"use strict";var o=i(57606),r=i(54548),a=i(19370),n=o(o.bind);t.exports=function(t,e){return r(t),void 0===e?t:a?n(t,e):function(){return t.apply(e,arguments)}}},88379(t,e,i){"use strict";var o=i(21999),r=i(67357),a=i(48371),n=o(o.bind);t.exports=function(t,e){return r(t),void 0===e?t:a?n(t,e):function(){return t.apply(e,arguments)}}},57606(t,e,i){"use strict";var o=i(63522),r=i(94994);t.exports=function(t){if("Function"===o(t))return r(t)}},21999(t,e,i){"use strict";var o=i(76331),r=i(59387);t.exports=function(t){if("Function"===o(t))return r(t)}},13983(t,e,i){"use strict";var o=i(78167),r=i(78088),a=i(92185),n=i(94497),s=i(24975)("iterator");t.exports=function(t){if(!a(t))return r(t,s)||r(t,"@@iterator")||n[o(t)]}},1174(t,e,i){"use strict";var o=i(65358),r=i(90897),a=i(79376),n=i(81688),s=i(44230)("iterator");t.exports=function(t){if(!a(t))return r(t,s)||r(t,"@@iterator")||n[o(t)]}},19269(t,e,i){"use strict";var o=i(27169),r=i(54548),a=i(21539),n=i(42387),s=i(13983),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?s(t):e;if(r(i))return a(o(i,t));throw new l(n(t)+" is not iterable")}},6460(t,e,i){"use strict";var o=i(62776),r=i(67357),a=i(8890),n=i(13386),s=i(1174),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?s(t):e;if(r(i))return a(o(i,t));throw new l(n(t)+" is not iterable")}},2773(t,e,i){"use strict";var o=i(24975),r=i(94497),a=o("iterator"),n=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||n[a]===t)}},38380(t,e,i){"use strict";var o=i(44230),r=i(81688),a=o("iterator"),n=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||n[a]===t)}},40842(t,e,i){"use strict";var o=i(63522);t.exports=Array.isArray||function(t){return"Array"===o(t)}},69843(t,e,i){"use strict";var o=i(76331);t.exports=Array.isArray||function(t){return"Array"===o(t)}},46300(t,e,i){"use strict";var o=i(66700),r=i(33041).get;t.exports=function(t){if(!o(t))return!1;var e=r(t);return!!e&&"RawJSON"===e.type}},75461(t,e,i){"use strict";var o=i(79509),r=i(20232).get;t.exports=function(t){if(!o(t))return!1;var e=r(t);return!!e&&"RawJSON"===e.type}},53726(t,e,i){"use strict";var o=i(23986),r=i(27169),a=i(21539),n=i(42387),s=i(2773),l=i(68576),h=i(36669),d=i(19269),c=i(13983),p=i(95999),u=TypeError,_=function(t,e){this.stopped=t,this.result=e},f=_.prototype;t.exports=function(t,e,i){var g,m,v,w,b,y,k,L=i&&i.that,E=!(!i||!i.AS_ENTRIES),M=!(!i||!i.IS_RECORD),x=!(!i||!i.IS_ITERATOR),D=!(!i||!i.INTERRUPTED),T=o(e,L),C=function(t){var e=g;return g=void 0,e&&p(e,"normal"),new _(!0,t)},P=function(t){return E?(a(t),D?T(t[0],t[1],C):T(t[0],t[1])):D?T(t,C):T(t)};if(M)g=t.iterator;else if(x)g=t;else{if(!(m=c(t)))throw new u(n(t)+" is not iterable");if(s(m)){for(v=0,w=l(t);w>v;v++)if((b=P(t[v]))&&h(f,b))return b;return new _(!1)}g=d(t,m)}for(y=M?t.next:g.next;!(k=r(y,g)).done;){var S=k.value;try{b=P(S)}catch(t){if(!g)throw t;p(g,"throw",t)}if("object"==typeof b&&b&&h(f,b))return b}return new _(!1)}},18119(t,e,i){"use strict";var o=i(88379),r=i(62776),a=i(8890),n=i(13386),s=i(38380),l=i(81385),h=i(23860),d=i(6460),c=i(1174),p=i(83190),u=TypeError,_=function(t,e){this.stopped=t,this.result=e},f=_.prototype;t.exports=function(t,e,i){var g,m,v,w,b,y,k,L=i&&i.that,E=!(!i||!i.AS_ENTRIES),M=!(!i||!i.IS_RECORD),x=!(!i||!i.IS_ITERATOR),D=!(!i||!i.INTERRUPTED),T=o(e,L),C=function(t){var e=g;return g=void 0,e&&p(e,"normal"),new _(!0,t)},P=function(t){return E?(a(t),D?T(t[0],t[1],C):T(t[0],t[1])):D?T(t,C):T(t)};if(M)g=t.iterator;else if(x)g=t;else{if(!(m=c(t)))throw new u(n(t)+" is not iterable");if(s(m)){for(v=0,w=l(t);w>v;v++)if((b=P(t[v]))&&h(f,b))return b;return new _(!1)}g=d(t,m)}for(y=M?t.next:g.next;!(k=r(y,g)).done;){var S=k.value;try{b=P(S)}catch(t){if(!g)throw t;p(g,"throw",t)}if("object"==typeof b&&b&&h(f,b))return b}return new _(!1)}},94497(t){"use strict";t.exports={}},81688(t){"use strict";t.exports={}},90919(t,e,i){"use strict";var o=i(10587);t.exports=!o(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})},26526(t,e,i){"use strict";var o=i(97778);t.exports=!o(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})},69450(t,e,i){"use strict";var o=i(94994),r=i(32549),a=SyntaxError,n=parseInt,s=String.fromCharCode,l=o("".charAt),h=o("".slice),d=o(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},p=/^[\da-f]{4}$/i,u=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var i=!0,o="";e<t.length;){var _=l(t,e);if("\\"===_){var f=h(t,e,e+2);if(r(c,f))o+=c[f],e+=2;else{if("\\u"!==f)throw new a('Unknown escape sequence: "'+f+'"');var g=h(t,e+=2,e+4);if(!d(p,g))throw new a("Bad Unicode escape at: "+e);o+=s(n(g,16)),e+=4}}else{if('"'===_){i=!1,e++;break}if(d(u,_))throw new a("Bad control character in string literal at: "+e);o+=_,e++}}if(i)throw new a("Unterminated string at: "+e);return{value:o,end:e}}},50035(t,e,i){"use strict";var o=i(59387),r=i(19740),a=SyntaxError,n=parseInt,s=String.fromCharCode,l=o("".charAt),h=o("".slice),d=o(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},p=/^[\da-f]{4}$/i,u=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var i=!0,o="";e<t.length;){var _=l(t,e);if("\\"===_){var f=h(t,e,e+2);if(r(c,f))o+=c[f],e+=2;else{if("\\u"!==f)throw new a('Unknown escape sequence: "'+f+'"');var g=h(t,e+=2,e+4);if(!d(p,g))throw new a("Bad Unicode escape at: "+e);o+=s(n(g,16)),e+=4}}else{if('"'===_){i=!1,e++;break}if(d(u,_))throw new a("Bad control character in string literal at: "+e);o+=_,e++}}if(i)throw new a("Unterminated string at: "+e);return{value:o,end:e}}},87198(t,e,i){"use strict";var o={};o[i(24975)("toStringTag")]="z",t.exports="[object z]"===String(o)},7(t,e,i){"use strict";var o={};o[i(44230)("toStringTag")]="z",t.exports="[object z]"===String(o)},38603(t,e,i){"use strict";var o=i(78167),r=String;t.exports=function(t){if("Symbol"===o(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},25794(t,e,i){"use strict";var o=i(65358),r=String;t.exports=function(t){if("Symbol"===o(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},44764(t,e,i){"use strict";var o=i(57920),r=i(84921),a=i(68576),n=i(32955),s=i(82121);o({target:"Array",proto:!0,arity:1,forced:i(10587)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=r(this),i=a(e),o=arguments.length;s(i+o);for(var l=0;l<o;l++)e[i]=arguments[l],i++;return n(e,i),i}})},57573(t,e,i){"use strict";var o=i(22313),r=i(72112),a=i(81385),n=i(68562),s=i(69312);o({target:"Array",proto:!0,arity:1,forced:i(97778)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=r(this),i=a(e),o=arguments.length;s(i+o);for(var l=0;l<o;l++)e[i]=arguments[l],i++;return n(e,i),i}})},58134(t,e,i){"use strict";var o=i(57920),r=i(27169),a=i(53726),n=i(54548),s=i(21539),l=i(12227),h=i(95999),d=i(84649)("forEach",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(t){s(this);try{n(t)}catch(t){h(this,"throw",t)}if(d)return r(d,this,t);var e=l(this),i=0;a(e,function(e){t(e,i++)},{IS_RECORD:!0})}})},70943(t,e,i){"use strict";var o=i(22313),r=i(62776),a=i(18119),n=i(67357),s=i(8890),l=i(83226),h=i(83190),d=i(71840)("forEach",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(t){s(this);try{n(t)}catch(t){h(this,"throw",t)}if(d)return r(d,this,t);var e=l(this),i=0;a(e,function(e){t(e,i++)},{IS_RECORD:!0})}})},50144(t,e,i){"use strict";var o=i(57920),r=i(9619),a=i(29597),n=i(27169),s=i(94994),l=i(10587),h=i(40842),d=i(46649),c=i(46300),p=i(5129),u=i(63522),_=i(38603),f=i(14722),g=i(69450),m=i(11154),v=i(71819),w=i(90919),b=String,y=r("JSON","stringify"),k=s(/./.exec),L=s("".charAt),E=s("".charCodeAt),M=s("".replace),x=s("".slice),D=s([].push),T=s(1.1.toString),C=/[\uD800-\uDFFF]/g,P=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,O=m(),I=O.length,U=!v||l(function(){var t=r("Symbol")("stringify detection");return"[null]"!==y([t])||"{}"!==y({a:t})||"{}"!==y(Object(t))}),z=l(function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")}),H=U?function(t,e){var i=f(arguments),o=G(e);if(d(o)||void 0!==t&&!p(t))return i[1]=function(t,e){if(d(o)&&(e=n(o,this,b(t),e)),!p(e))return e},a(y,null,i)}:y,R=function(t,e,i){var o=L(i,e-1),r=L(i,e+1);return k(P,t)&&!k(S,r)||k(S,t)&&!k(P,o)?"\\u"+T(E(t,0),16):t},G=function(t){if(d(t))return t;if(h(t)){for(var e=t.length,i=[],o=0;o<e;o++){var r=t[o];"string"==typeof r?D(i,r):"number"!=typeof r&&"Number"!==u(r)&&"String"!==u(r)||D(i,_(r))}var a=i.length,n=!0;return function(t,e){if(n)return n=!1,e;if(h(this))return e;for(var o=0;o<a;o++)if(i[o]===t)return e}}};y&&o({target:"JSON",stat:!0,arity:3,forced:U||z||!w},{stringify:function(t,e,i){var o=G(e),r=[],a=H(t,function(t,e){var i=d(o)?n(o,this,b(t),e):e;return!w&&c(i)?O+(D(r,i.rawJSON)-1):i},i);if("string"!=typeof a)return a;if(z&&(a=M(a,C,R)),w)return a;for(var s="",l=a.length,h=0;h<l;h++){var p=L(a,h);if('"'===p){var u=g(a,++h).end-1,_=x(a,h,u);s+=x(_,0,I)===O?r[x(_,I)]:'"'+_+'"',h=u}else s+=p}return s}})},62953(t,e,i){"use strict";var o=i(22313),r=i(80618),a=i(16788),n=i(62776),s=i(59387),l=i(97778),h=i(69843),d=i(33840),c=i(75461),p=i(40736),u=i(76331),_=i(25794),f=i(27531),g=i(50035),m=i(23963),v=i(59010),w=i(26526),b=String,y=r("JSON","stringify"),k=s(/./.exec),L=s("".charAt),E=s("".charCodeAt),M=s("".replace),x=s("".slice),D=s([].push),T=s(1.1.toString),C=/[\uD800-\uDFFF]/g,P=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,O=m(),I=O.length,U=!v||l(function(){var t=r("Symbol")("stringify detection");return"[null]"!==y([t])||"{}"!==y({a:t})||"{}"!==y(Object(t))}),z=l(function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")}),H=U?function(t,e){var i=f(arguments),o=G(e);if(d(o)||void 0!==t&&!p(t))return i[1]=function(t,e){if(d(o)&&(e=n(o,this,b(t),e)),!p(e))return e},a(y,null,i)}:y,R=function(t,e,i){var o=L(i,e-1),r=L(i,e+1);return k(P,t)&&!k(S,r)||k(S,t)&&!k(P,o)?"\\u"+T(E(t,0),16):t},G=function(t){if(d(t))return t;if(h(t)){for(var e=t.length,i=[],o=0;o<e;o++){var r=t[o];"string"==typeof r?D(i,r):"number"!=typeof r&&"Number"!==u(r)&&"String"!==u(r)||D(i,_(r))}var a=i.length,n=!0;return function(t,e){if(n)return n=!1,e;if(h(this))return e;for(var o=0;o<a;o++)if(i[o]===t)return e}}};y&&o({target:"JSON",stat:!0,arity:3,forced:U||z||!w},{stringify:function(t,e,i){var o=G(e),r=[],a=H(t,function(t,e){var i=d(o)?n(o,this,b(t),e):e;return!w&&c(i)?O+(D(r,i.rawJSON)-1):i},i);if("string"!=typeof a)return a;if(z&&(a=M(a,C,R)),w)return a;for(var s="",l=a.length,h=0;h<l;h++){var p=L(a,h);if('"'===p){var u=g(a,++h).end-1,_=x(a,h,u);s+=x(_,0,I)===O?r[x(_,I)]:'"'+_+'"',h=u}else s+=p}return s}})},25809(t,e,i){"use strict";i(58134)},96648(t,e,i){"use strict";i(70943)}}]);
@@ -1 +0,0 @@
1
- .ProseMirror{--ProseMirror-numLines:10;min-height:calc(var(--ProseMirror-numLines) * 1.25rem);white-space:pre-wrap}[dir] .ProseMirror{padding-top:var(--lineHeight-m);padding-bottom:var(--lineHeight-m)}[dir=ltr] .ProseMirror,[dir=rtl] .ProseMirror{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem;padding-left:1rem;padding-right:1rem}[dir] .ProseMirror:focus{box-shadow:none}:where(.ProseMirror-fullscreen-container){height:.25rem;overflow:hidden}.ProseMirror .rte2-style-bold{font-weight:700}.ProseMirror .rte2-style-italic{font-style:italic}.ProseMirror .rte2-style-underline{text-decoration-line:underline}.ProseMirror .rte2-style-strikethrough{text-decoration-line:line-through}[dir=ltr] .ProseMirror .cms-textAlign-left{text-align:left}[dir=rtl] .ProseMirror .cms-textAlign-left{text-align:right}[dir] .ProseMirror :where(.cms-textAlign-center,[dir] .rte2-style-align-center){text-align:center}[dir=ltr] .ProseMirror :where(.cms-textAlign-right,[dir=ltr] .rte2-style-align-right){text-align:right}[dir=rtl] .ProseMirror :where(.cms-textAlign-right,[dir=rtl] .rte2-style-align-right){text-align:left}.ProseMirror .rte2-style-subscript{bottom:-.25rem}.ProseMirror .rte2-style-subscript,.ProseMirror .rte2-style-superscript{position:relative;vertical-align:baseline;font-size:75%;line-height:0}.ProseMirror .rte2-style-superscript{top:-.5rem}.ProseMirror .rte2-style-brightspot-core-rte-heading-HeadingThree{font-size:1.125rem;line-height:1.75rem;font-weight:600}.ProseMirror .rte2-style-brightspot-core-rte-heading-HeadingTwo{font-size:1.5rem;line-height:2rem;font-weight:600}.ProseMirror :is(bsp-line,bsp-break){display:block}.ProseMirror :is(bsp-line,bsp-break):has(>.ProseMirror-trailingBreak){line-height:var(--lineHeight-m)}[dir] .ProseMirror :where(ul,[dir] ol):not(.Dropdown,[dir] .ProseMirror-tableSubmenuList){margin-top:1.25rem;margin-bottom:1.25rem}[dir=ltr] .ProseMirror :where(ul,[dir=ltr] ol):not(.Dropdown,[dir=ltr] .ProseMirror-tableSubmenuList){margin-left:2rem}[dir=rtl] .ProseMirror :where(ul,[dir=rtl] ol):not(.Dropdown,[dir=rtl] .ProseMirror-tableSubmenuList){margin-right:2rem}.ProseMirror ul{list-style-type:disc}.ProseMirror ul ul{list-style-type:circle}.ProseMirror ul ul ul{list-style-type:square}.ProseMirror ol{list-style-type:decimal}.ProseMirror ol ol{list-style-type:lower-alpha}.ProseMirror li{position:relative}.ProseMirror:has(+.ProseMirror-moveEnhancementOverlay){caret-color:transparent;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}[dir] .ProseMirror:has(+.ProseMirror-moveEnhancementOverlay){border-color:transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.ProseMirror:has(+.ProseMirror-moveEnhancementOverlay)>:not(.Enhancement.readOnly.ProseMirror-selectednode){opacity:.6}.ProseMirror:has(+.ProseMirror-moveEnhancementOverlay) .Enhancement.readOnly.ProseMirror-selectednode{--tw-border-opacity:1}[dir] .ProseMirror:has(+.ProseMirror-moveEnhancementOverlay) .Enhancement.readOnly.ProseMirror-selectednode{border-color:oklch(var(--btu-theme-primary-700)/var(--tw-border-opacity))}.ProseMirror:has(+.ProseMirror-moveEnhancementOverlay) .Enhancement.readOnly.ProseMirror-selectednode>*{opacity:.6}.ProseMirror .rte2-style-comment{gap:.5rem;--tw-bg-opacity:1;--tw-text-opacity:1;color:oklch(var(--btu-theme-primary-800)/var(--tw-text-opacity))}[dir] .ProseMirror .rte2-style-comment{border-radius:.25rem;background-color:oklch(var(--btu-theme-primary-50)/var(--tw-bg-opacity))}[dir=ltr] .ProseMirror .rte2-style-comment,[dir=rtl] .ProseMirror .rte2-style-comment{margin-left:.25rem;margin-right:.25rem;padding-left:.25rem;padding-right:.25rem}.ProseMirror .rte2-style-comment:before{font-family:lucide;display:inline-flex;font-feature-settings:"liga" 0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:var(--icon-size);font-style:normal;font-weight:400;letter-spacing:normal;line-height:var(--icon-size);text-transform:none;white-space:nowrap;word-wrap:normal;vertical-align:top;--tw-content:"\e116";padding-inline-end:.25rem;content:var(--tw-content);--icon-size:1.25rem}[dir=ltr] .ProseMirror .rte2-style-comment:before{direction:ltr}[dir=rtl] .ProseMirror .rte2-style-comment:before{direction:rtl}.ProseMirror .rte2-style-comment[data-collapse=true]:before{content:var(--tw-content);padding-inline-end:0}.ProseMirror .rte2-style-comment .collapsed{display:none}.is-locked .ProseMirror .rte2-style-comment{opacity:.6}.ProseMirror-comments{display:none}.rte2-style-ins-insert{--tw-bg-opacity:1;--tw-text-opacity:1;color:oklch(var(--btu-theme-success-900)/var(--tw-text-opacity));text-decoration-line:none}[dir] .rte2-style-ins-insert{background-color:oklch(var(--btu-theme-success-200)/var(--tw-bg-opacity))}.rte2-style-ins-insert .Enhancement{--tw-bg-opacity:1}[dir] .rte2-style-ins-insert .Enhancement{background-color:oklch(var(--btu-theme-success-50)/var(--tw-bg-opacity))}.rte2-style-ins-delete{--tw-bg-opacity:1;--tw-text-opacity:1;color:oklch(var(--btu-theme-error-900)/var(--tw-text-opacity))}[dir] .rte2-style-ins-delete{background-color:oklch(var(--btu-theme-error-200)/var(--tw-bg-opacity))}.rte2-style-ins-delete .Enhancement{--tw-bg-opacity:1;--tw-text-opacity:1;color:oklch(var(--btu-theme-error-600)/var(--tw-text-opacity))}[dir] .rte2-style-ins-delete .Enhancement{background-color:oklch(var(--btu-theme-error-50)/var(--tw-bg-opacity))}.rte2-style-ins-delete .ProsemirrorEnhancementMenu{display:none}[dir] .ProseMirror-previewMode .rte2-style-ins-insert,[dir] .ProseMirror-previewMode .rte2-style-ins-insert .Enhancement{background-color:transparent}.ProseMirror-previewMode .rte2-style-ins-delete{display:none}.ProseMirror-aiPreviewMode .rte2-style-ins-ai{--tw-bg-opacity:1;--tw-text-opacity:1;color:oklch(var(--btu-theme-purple-900)/var(--tw-text-opacity))}[dir] .ProseMirror-aiPreviewMode .rte2-style-ins-ai{background-color:oklch(var(--btu-theme-purple-100)/var(--tw-bg-opacity))}.ProseMirror-aiInlinePreviewMode .rte2-style-ai-inline-highlight{--tw-bg-opacity:1}[dir] .ProseMirror-aiInlinePreviewMode .rte2-style-ai-inline-highlight{background-color:oklch(var(--btu-theme-primary-50)/var(--tw-bg-opacity))}.ProseMirror-aiInlinePreviewMode .rte2-style-ai-inline-ins{--tw-bg-opacity:1;--tw-text-opacity:1;color:oklch(var(--btu-theme-primary-900)/var(--tw-text-opacity));text-decoration-line:none}[dir] .ProseMirror-aiInlinePreviewMode .rte2-style-ai-inline-ins{background-color:oklch(var(--btu-theme-primary-50)/var(--tw-bg-opacity))}.ProseMirror-aiInlinePreviewMode .rte2-style-ai-inline-del{--tw-bg-opacity:1;text-decoration-line:line-through}[dir] .ProseMirror-aiInlinePreviewMode .rte2-style-ai-inline-del{background-color:oklch(var(--btu-theme-gray-50)/var(--tw-bg-opacity))}.CIG-row:only-child.is-unlabeled[data-field=richText]{width:100%}
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkbrightspot_cms=self.webpackChunkbrightspot_cms||[]).push([[8215],{55938(t,e,a){a.d(e,{default:()=>m}),a(44764),a(84978),a(25809);var r=a(80572),o=a.n(r),s=a(4981),i=a.n(s),n=a(57432),l=a.n(n),c=a(38745);if(7717==a.j)var p=a(40627);var b=a(25815);let d,h;i()(o()),l()(o());const f=o().getOptions().colors?.[0];d="string"==typeof f?f:"#7cb5ec";const y=o().color(d).setOpacity(0).get("rgba");h="string"==typeof y?y:"rgba(124,181,236,0)";const u={shared:!0,formatter:function(){const t=t=>'<br><span style="color:'+(0,b.htmlEncode)("string"==typeof t.series.color?t.series.color:"")+'">●</span> '+(0,b.htmlEncode)(t.series.name)+": <b>"+t.y+"</b>";let e=this.x;if(this.points)for(let a=0;a<this.points.length;a++)e+=t(this.points[a]);else this.point&&(e+=t(this.point));return e?.toString()}},A={Default:{credits:{enabled:!1},legend:{accessibility:{enabled:!1}},title:void 0,xAxis:{tickLength:0},yAxis:{opposite:!0,title:void 0}},AreaFilled:{chart:{type:"area"},tooltip:u},AreaStacked:{chart:{type:"area"},plotOptions:{area:{stacking:"normal",lineColor:"#666666",lineWidth:1,marker:{lineWidth:1,lineColor:"#666666"}}},tooltip:u},BarHorizontal:{chart:{type:"bar"},plotOptions:{bar:{dataLabels:{enabled:!0}}},tooltip:u},BarGrouped:{chart:{type:"bar"},plotOptions:{bar:{dataLabels:{enabled:!0,formatter:function(){return this.y?.toString()||""}}}},tooltip:u},BarStacked:{chart:{type:"bar"},plotOptions:{series:{stacking:"normal"}},tooltip:u},Line:{chart:{type:"line"},tooltip:u},LineZoomable:{chart:{zooming:{type:"x"},type:"area"},plotOptions:{area:{fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,d],[1,h]]},marker:{radius:2},lineWidth:1,states:{hover:{lineWidth:1}}}},tooltip:u},Pie:{chart:{type:"pie"},tooltip:{pointFormat:"Total: <b>{point.y}</b><br>Percentage: <b>{point.percentage:.1f}%</b>"},accessibility:{point:{valueSuffix:"%"}},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,format:"<b>{point.name}</b>: {point.percentage:.1f} %"}}}},Scatter:{chart:{type:"scatter",zooming:{type:"xy"}},plotOptions:{scatter:{marker:{radius:3,states:{hover:{enabled:!0}}},states:{hover:{enabled:!1}}}},tooltip:u}};o().theme={chart:{height:300,style:{fontFamily:"inherit",fontSize:"100%"}},colors:["var(--color-blue6)","var(--color-gray6)","var(--color-red6)","var(--color-yellow6)","var(--color-green6)"]},o().setOptions(o().theme),o().setOptions({lang:{noData:"No Data to Display"}});const g=(t,e,a=!1)=>{const r=[],o=[];(0,p.A)(t,"thead > tr:first-child > th").forEach((t,a)=>{a>0&&r.push({name:t.textContent||void 0,data:[],type:e})});for(const e of(0,p.A)(t,"tbody > tr")){const t=(0,p.A)(e,"th, td");for(let e=1;e<t.length;++e)r[e-1].data?.push(parseFloat(t[e].textContent||"0"))}return a&&r.forEach(t=>{const e=t.data;let a=0;if(e){for(let t=e.length;t--;)a+=e[t];o.push({name:t.name,y:a})}}),a?[{type:"pie",data:o}]:r};class m{constructor(t){let e;const a=(0,c.A)("div",{className:"Chart"});t.parentNode?.insertBefore(a,t.nextSibling),t.style.display="none";const r=(t=>{const e=[];for(const a of(0,p.A)(t,"tbody > tr")){const t=(0,p.A)(a,"th, td");e.push(t[0].textContent||"")}return e})(t),s={formatter:function(){return r[parseInt(this.value.toString())]}},i={categories:r};switch(t.getAttribute("data-chart-type")){case"AREA_FILLED":e=Object.assign({},A.AreaFilled,A.Default,{labels:s,xAxis:i,series:g(t,A.AreaFilled.chart?.type||"")});break;case"AREA_STACKED":e=Object.assign({},A.AreaStacked,A.Default,{labels:s,xAxis:i,series:g(t,A.AreaStacked.chart?.type||"")});break;case"BAR_HORIZONTAL":e=Object.assign({},A.BarHorizontal,A.Default,{labels:s,xAxis:i,series:g(t,A.BarHorizontal.chart?.type||"")});break;case"BAR_GROUPED":e=Object.assign({},A.BarGrouped,A.Default,{labels:s,xAxis:i,series:g(t,A.BarGrouped.chart?.type||"")});break;case"BAR_STACKED":e=Object.assign({},A.BarStacked,A.Default,{labels:s,xAxis:i,series:g(t,A.BarStacked.chart?.type||"")});break;case"LINE":e=Object.assign({},A.Line,A.Default,{labels:s,xAxis:i,series:g(t,A.Line.chart?.type||"")});break;case"LINE_ZOOMABLE":e=Object.assign({},A.LineZoomable,A.Default,{labels:s,xAxis:i,series:g(t,A.LineZoomable.chart?.type||"")});break;case"PIE":e=Object.assign({},A.Pie,A.Default,{labels:s,xAxis:i,series:g(t,A.Pie.chart?.type||"",!0)});break;case"SCATTER":e=Object.assign({},A.Scatter,A.Default,{labels:s,xAxis:i,series:g(t,A.Scatter.chart?.type||"")});break;default:e={}}e&&new(o().Chart)(a,e,()=>{a.dispatchEvent(new CustomEvent("highchart-loaded",{bubbles:!0}))})}}},68747(t,e,a){a.d(e,{default:()=>m}),a(57573),a(49371),a(96648);var r=a(93381),o=a.n(r),s=a(92172),i=a.n(s),n=a(21825),l=a.n(n),c=a(25936);if(3324==a.j)var p=a(76394);var b=a(96654);let d,h;i()(o()),l()(o());const f=o().getOptions().colors?.[0];d="string"==typeof f?f:"#7cb5ec";const y=o().color(d).setOpacity(0).get("rgba");h="string"==typeof y?y:"rgba(124,181,236,0)";const u={shared:!0,formatter:function(){const t=t=>'<br><span style="color:'+(0,b.htmlEncode)("string"==typeof t.series.color?t.series.color:"")+'">●</span> '+(0,b.htmlEncode)(t.series.name)+": <b>"+t.y+"</b>";let e=this.x;if(this.points)for(let a=0;a<this.points.length;a++)e+=t(this.points[a]);else this.point&&(e+=t(this.point));return e?.toString()}},A={Default:{credits:{enabled:!1},legend:{accessibility:{enabled:!1}},title:void 0,xAxis:{tickLength:0},yAxis:{opposite:!0,title:void 0}},AreaFilled:{chart:{type:"area"},tooltip:u},AreaStacked:{chart:{type:"area"},plotOptions:{area:{stacking:"normal",lineColor:"#666666",lineWidth:1,marker:{lineWidth:1,lineColor:"#666666"}}},tooltip:u},BarHorizontal:{chart:{type:"bar"},plotOptions:{bar:{dataLabels:{enabled:!0}}},tooltip:u},BarGrouped:{chart:{type:"bar"},plotOptions:{bar:{dataLabels:{enabled:!0,formatter:function(){return this.y?.toString()||""}}}},tooltip:u},BarStacked:{chart:{type:"bar"},plotOptions:{series:{stacking:"normal"}},tooltip:u},Line:{chart:{type:"line"},tooltip:u},LineZoomable:{chart:{zooming:{type:"x"},type:"area"},plotOptions:{area:{fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,d],[1,h]]},marker:{radius:2},lineWidth:1,states:{hover:{lineWidth:1}}}},tooltip:u},Pie:{chart:{type:"pie"},tooltip:{pointFormat:"Total: <b>{point.y}</b><br>Percentage: <b>{point.percentage:.1f}%</b>"},accessibility:{point:{valueSuffix:"%"}},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,format:"<b>{point.name}</b>: {point.percentage:.1f} %"}}}},Scatter:{chart:{type:"scatter",zooming:{type:"xy"}},plotOptions:{scatter:{marker:{radius:3,states:{hover:{enabled:!0}}},states:{hover:{enabled:!1}}}},tooltip:u}};o().theme={chart:{height:300,style:{fontFamily:"inherit",fontSize:"100%"}},colors:["var(--color-blue6)","var(--color-gray6)","var(--color-red6)","var(--color-yellow6)","var(--color-green6)"]},o().setOptions(o().theme),o().setOptions({lang:{noData:"No Data to Display"}});const g=(t,e,a=!1)=>{const r=[],o=[];(0,p.A)(t,"thead > tr:first-child > th").forEach((t,a)=>{a>0&&r.push({name:t.textContent||void 0,data:[],type:e})});for(const e of(0,p.A)(t,"tbody > tr")){const t=(0,p.A)(e,"th, td");for(let e=1;e<t.length;++e)r[e-1].data?.push(parseFloat(t[e].textContent||"0"))}return a&&r.forEach(t=>{const e=t.data;let a=0;if(e){for(let t=e.length;t--;)a+=e[t];o.push({name:t.name,y:a})}}),a?[{type:"pie",data:o}]:r};class m{constructor(t){let e;const a=(0,c.A)("div",{className:"Chart"});t.parentNode?.insertBefore(a,t.nextSibling),t.style.display="none";const r=(t=>{const e=[];for(const a of(0,p.A)(t,"tbody > tr")){const t=(0,p.A)(a,"th, td");e.push(t[0].textContent||"")}return e})(t),s={formatter:function(){return r[parseInt(this.value.toString())]}},i={categories:r};switch(t.getAttribute("data-chart-type")){case"AREA_FILLED":e=Object.assign({},A.AreaFilled,A.Default,{labels:s,xAxis:i,series:g(t,A.AreaFilled.chart?.type||"")});break;case"AREA_STACKED":e=Object.assign({},A.AreaStacked,A.Default,{labels:s,xAxis:i,series:g(t,A.AreaStacked.chart?.type||"")});break;case"BAR_HORIZONTAL":e=Object.assign({},A.BarHorizontal,A.Default,{labels:s,xAxis:i,series:g(t,A.BarHorizontal.chart?.type||"")});break;case"BAR_GROUPED":e=Object.assign({},A.BarGrouped,A.Default,{labels:s,xAxis:i,series:g(t,A.BarGrouped.chart?.type||"")});break;case"BAR_STACKED":e=Object.assign({},A.BarStacked,A.Default,{labels:s,xAxis:i,series:g(t,A.BarStacked.chart?.type||"")});break;case"LINE":e=Object.assign({},A.Line,A.Default,{labels:s,xAxis:i,series:g(t,A.Line.chart?.type||"")});break;case"LINE_ZOOMABLE":e=Object.assign({},A.LineZoomable,A.Default,{labels:s,xAxis:i,series:g(t,A.LineZoomable.chart?.type||"")});break;case"PIE":e=Object.assign({},A.Pie,A.Default,{labels:s,xAxis:i,series:g(t,A.Pie.chart?.type||"",!0)});break;case"SCATTER":e=Object.assign({},A.Scatter,A.Default,{labels:s,xAxis:i,series:g(t,A.Scatter.chart?.type||"")});break;default:e={}}e&&new(o().Chart)(a,e,()=>{a.dispatchEvent(new CustomEvent("highchart-loaded",{bubbles:!0}))})}}},38745(t,e,a){function r(t,...e){const a=document.createElement(t),r=e[0];if(!("object"!=typeof r||Array.isArray(r)||r instanceof Node)){e.shift();for(const[t,e]of Object.entries(r))"dataset"===t?Object.keys(e).forEach(t=>a.dataset[t]=e[t]):void 0===e?a.removeAttribute(t):t in a?Object.assign(a,{[t]:e}):a.setAttribute(t,e)}return o(a,e),a}function o(t,e){if(e)if(Array.isArray(e)||e instanceof NodeList)for(const a of e)o(t,a);else e instanceof Node?t.appendChild(e):t.appendChild(document.createTextNode(e.toString()))}a.d(e,{A:()=>r}),Object.defineProperty(r,"name",{value:"default",configurable:!0}),a(84978),a(25809)},25936(t,e,a){function r(t,...e){const a=document.createElement(t),r=e[0];if(!("object"!=typeof r||Array.isArray(r)||r instanceof Node)){e.shift();for(const[t,e]of Object.entries(r))"dataset"===t?Object.keys(e).forEach(t=>a.dataset[t]=e[t]):void 0===e?a.removeAttribute(t):t in a?Object.assign(a,{[t]:e}):a.setAttribute(t,e)}return o(a,e),a}function o(t,e){if(e)if(Array.isArray(e)||e instanceof NodeList)for(const a of e)o(t,a);else e instanceof Node?t.appendChild(e):t.appendChild(document.createTextNode(e.toString()))}a.d(e,{A:()=>r}),Object.defineProperty(r,"name",{value:"default",configurable:!0}),a(49371),a(96648)},40627(t,e,a){function r(t,e){return t?(Array.isArray(e)&&(e=e.join(",")),t.querySelectorAll(e)):[]}a.d(e,{A:()=>r}),Object.defineProperty(r,"name",{value:"default",configurable:!0})},76394(t,e,a){function r(t,e){return t?(Array.isArray(e)&&(e=e.join(",")),t.querySelectorAll(e)):[]}a.d(e,{A:()=>r}),Object.defineProperty(r,"name",{value:"default",configurable:!0})}}]);