wagtail 6.0.2__py3-none-any.whl → 6.1__py3-none-any.whl

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 (1634) hide show
  1. wagtail/__init__.py +1 -1
  2. wagtail/admin/checks.py +51 -0
  3. wagtail/admin/compare.py +1 -1
  4. wagtail/admin/filters.py +70 -1
  5. wagtail/admin/forms/account.py +1 -1
  6. wagtail/admin/forms/collections.py +15 -0
  7. wagtail/admin/forms/pages.py +49 -0
  8. wagtail/admin/locale/ar/LC_MESSAGES/django.mo +0 -0
  9. wagtail/admin/locale/ar/LC_MESSAGES/django.po +40 -34
  10. wagtail/admin/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  11. wagtail/admin/locale/be/LC_MESSAGES/django.mo +0 -0
  12. wagtail/admin/locale/be/LC_MESSAGES/django.po +49 -46
  13. wagtail/admin/locale/bg/LC_MESSAGES/django.po +4 -4
  14. wagtail/admin/locale/bn/LC_MESSAGES/django.po +4 -4
  15. wagtail/admin/locale/ca/LC_MESSAGES/django.mo +0 -0
  16. wagtail/admin/locale/ca/LC_MESSAGES/django.po +168 -93
  17. wagtail/admin/locale/cs/LC_MESSAGES/django.mo +0 -0
  18. wagtail/admin/locale/cs/LC_MESSAGES/django.po +67 -77
  19. wagtail/admin/locale/cy/LC_MESSAGES/django.mo +0 -0
  20. wagtail/admin/locale/cy/LC_MESSAGES/django.po +22 -16
  21. wagtail/admin/locale/da/LC_MESSAGES/django.mo +0 -0
  22. wagtail/admin/locale/da/LC_MESSAGES/django.po +22 -19
  23. wagtail/admin/locale/de/LC_MESSAGES/django.mo +0 -0
  24. wagtail/admin/locale/de/LC_MESSAGES/django.po +171 -93
  25. wagtail/admin/locale/dv/LC_MESSAGES/django.mo +0 -0
  26. wagtail/admin/locale/dv/LC_MESSAGES/django.po +73 -86
  27. wagtail/admin/locale/el/LC_MESSAGES/django.mo +0 -0
  28. wagtail/admin/locale/el/LC_MESSAGES/django.po +40 -31
  29. wagtail/admin/locale/en/LC_MESSAGES/django.po +474 -385
  30. wagtail/admin/locale/en/LC_MESSAGES/djangojs.po +3 -3
  31. wagtail/admin/locale/es/LC_MESSAGES/django.mo +0 -0
  32. wagtail/admin/locale/es/LC_MESSAGES/django.po +76 -87
  33. wagtail/admin/locale/es_419/LC_MESSAGES/django.po +7 -7
  34. wagtail/admin/locale/es_VE/LC_MESSAGES/django.po +1 -1
  35. wagtail/admin/locale/et/LC_MESSAGES/django.mo +0 -0
  36. wagtail/admin/locale/et/LC_MESSAGES/django.po +67 -77
  37. wagtail/admin/locale/eu/LC_MESSAGES/django.po +1 -1
  38. wagtail/admin/locale/fa/LC_MESSAGES/django.mo +0 -0
  39. wagtail/admin/locale/fa/LC_MESSAGES/django.po +40 -34
  40. wagtail/admin/locale/fi/LC_MESSAGES/django.mo +0 -0
  41. wagtail/admin/locale/fi/LC_MESSAGES/django.po +73 -80
  42. wagtail/admin/locale/fr/LC_MESSAGES/django.mo +0 -0
  43. wagtail/admin/locale/fr/LC_MESSAGES/django.po +79 -90
  44. wagtail/admin/locale/gl/LC_MESSAGES/django.mo +0 -0
  45. wagtail/admin/locale/gl/LC_MESSAGES/django.po +161 -88
  46. wagtail/admin/locale/he_IL/LC_MESSAGES/django.po +10 -10
  47. wagtail/admin/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  48. wagtail/admin/locale/hr_HR/LC_MESSAGES/django.po +70 -77
  49. wagtail/admin/locale/ht/LC_MESSAGES/django.po +1 -1
  50. wagtail/admin/locale/hu/LC_MESSAGES/django.mo +0 -0
  51. wagtail/admin/locale/hu/LC_MESSAGES/django.po +79 -90
  52. wagtail/admin/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  53. wagtail/admin/locale/id_ID/LC_MESSAGES/django.po +34 -28
  54. wagtail/admin/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  55. wagtail/admin/locale/is_IS/LC_MESSAGES/django.po +76 -87
  56. wagtail/admin/locale/it/LC_MESSAGES/django.mo +0 -0
  57. wagtail/admin/locale/it/LC_MESSAGES/django.po +202 -90
  58. wagtail/admin/locale/ja/LC_MESSAGES/django.mo +0 -0
  59. wagtail/admin/locale/ja/LC_MESSAGES/django.po +52 -50
  60. wagtail/admin/locale/ka/LC_MESSAGES/django.po +4 -4
  61. wagtail/admin/locale/ko/LC_MESSAGES/django.mo +0 -0
  62. wagtail/admin/locale/ko/LC_MESSAGES/django.po +76 -83
  63. wagtail/admin/locale/lt/LC_MESSAGES/django.mo +0 -0
  64. wagtail/admin/locale/lt/LC_MESSAGES/django.po +62 -60
  65. wagtail/admin/locale/lv/LC_MESSAGES/django.mo +0 -0
  66. wagtail/admin/locale/lv/LC_MESSAGES/django.po +28 -19
  67. wagtail/admin/locale/mi/LC_MESSAGES/django.mo +0 -0
  68. wagtail/admin/locale/mi/LC_MESSAGES/django.po +19 -13
  69. wagtail/admin/locale/mn/LC_MESSAGES/django.mo +0 -0
  70. wagtail/admin/locale/mn/LC_MESSAGES/django.po +34 -28
  71. wagtail/admin/locale/my/LC_MESSAGES/django.po +4 -4
  72. wagtail/admin/locale/nb/LC_MESSAGES/django.mo +0 -0
  73. wagtail/admin/locale/nb/LC_MESSAGES/django.po +58 -49
  74. wagtail/admin/locale/nl/LC_MESSAGES/django.mo +0 -0
  75. wagtail/admin/locale/nl/LC_MESSAGES/django.po +79 -90
  76. wagtail/admin/locale/pl/LC_MESSAGES/django.mo +0 -0
  77. wagtail/admin/locale/pl/LC_MESSAGES/django.po +76 -87
  78. wagtail/admin/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  79. wagtail/admin/locale/pt_BR/LC_MESSAGES/django.po +73 -80
  80. wagtail/admin/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  81. wagtail/admin/locale/pt_PT/LC_MESSAGES/django.po +146 -82
  82. wagtail/admin/locale/ro/LC_MESSAGES/django.mo +0 -0
  83. wagtail/admin/locale/ro/LC_MESSAGES/django.po +79 -90
  84. wagtail/admin/locale/ru/LC_MESSAGES/django.mo +0 -0
  85. wagtail/admin/locale/ru/LC_MESSAGES/django.po +162 -88
  86. wagtail/admin/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  87. wagtail/admin/locale/sk_SK/LC_MESSAGES/django.po +22 -22
  88. wagtail/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
  89. wagtail/admin/locale/sl/LC_MESSAGES/django.po +79 -90
  90. wagtail/admin/locale/sv/LC_MESSAGES/django.mo +0 -0
  91. wagtail/admin/locale/sv/LC_MESSAGES/django.po +79 -90
  92. wagtail/admin/locale/tet/LC_MESSAGES/django.mo +0 -0
  93. wagtail/admin/locale/tet/LC_MESSAGES/django.po +28 -22
  94. wagtail/admin/locale/th/LC_MESSAGES/django.mo +0 -0
  95. wagtail/admin/locale/th/LC_MESSAGES/django.po +31 -25
  96. wagtail/admin/locale/tr/LC_MESSAGES/django.mo +0 -0
  97. wagtail/admin/locale/tr/LC_MESSAGES/django.po +40 -34
  98. wagtail/admin/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  99. wagtail/admin/locale/tr_TR/LC_MESSAGES/django.po +43 -37
  100. wagtail/admin/locale/uk/LC_MESSAGES/django.mo +0 -0
  101. wagtail/admin/locale/uk/LC_MESSAGES/django.po +73 -84
  102. wagtail/admin/locale/vi/LC_MESSAGES/django.mo +0 -0
  103. wagtail/admin/locale/vi/LC_MESSAGES/django.po +16 -10
  104. wagtail/admin/locale/zh/LC_MESSAGES/django.po +4 -4
  105. wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  106. wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.po +76 -83
  107. wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  108. wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.po +73 -80
  109. wagtail/admin/panels/comment_panel.py +1 -1
  110. wagtail/admin/panels/field_panel.py +1 -1
  111. wagtail/admin/rich_text/converters/editor_html.py +3 -1
  112. wagtail/admin/rich_text/editors/draftail/__init__.py +28 -2
  113. wagtail/admin/static/wagtailadmin/css/core.css +1 -1
  114. wagtail/admin/static/wagtailadmin/css/panels/draftail.css +1 -1
  115. wagtail/admin/static/wagtailadmin/images/favicon.ico +0 -0
  116. wagtail/admin/static/wagtailadmin/js/bulk-actions.js +1 -1
  117. wagtail/admin/static/wagtailadmin/js/chooser-modal.js +1 -1
  118. wagtail/admin/static/wagtailadmin/js/chooser-widget-telepath.js +1 -1
  119. wagtail/admin/static/wagtailadmin/js/chooser-widget.js +1 -1
  120. wagtail/admin/static/wagtailadmin/js/comments.js +1 -1
  121. wagtail/admin/static/wagtailadmin/js/core.js +1 -1
  122. wagtail/admin/static/wagtailadmin/js/core.js.LICENSE.txt +1 -1
  123. wagtail/admin/static/wagtailadmin/js/date-time-chooser.js +1 -1
  124. wagtail/admin/static/wagtailadmin/js/draftail.js +1 -1
  125. wagtail/admin/static/wagtailadmin/js/expanding-formset.js +1 -1
  126. wagtail/admin/static/wagtailadmin/js/filtered-select.js +1 -1
  127. wagtail/admin/static/wagtailadmin/js/modal-workflow.js +1 -1
  128. wagtail/admin/static/wagtailadmin/js/page-chooser-modal.js +1 -1
  129. wagtail/admin/static/wagtailadmin/js/page-chooser-telepath.js +1 -1
  130. wagtail/admin/static/wagtailadmin/js/page-chooser.js +1 -1
  131. wagtail/admin/static/wagtailadmin/js/preview-panel.js +1 -1
  132. wagtail/admin/static/wagtailadmin/js/privacy-switch.js +1 -1
  133. wagtail/admin/static/wagtailadmin/js/sidebar.js +1 -1
  134. wagtail/admin/static/wagtailadmin/js/task-chooser-modal.js +1 -1
  135. wagtail/admin/static/wagtailadmin/js/task-chooser.js +1 -1
  136. wagtail/admin/static/wagtailadmin/js/telepath/blocks.js +1 -1
  137. wagtail/admin/static/wagtailadmin/js/telepath/telepath.js +1 -1
  138. wagtail/admin/static/wagtailadmin/js/telepath/widgets.js +1 -1
  139. wagtail/admin/static/wagtailadmin/js/userbar.js +1 -1
  140. wagtail/admin/static/wagtailadmin/js/vendor.js +1 -1
  141. wagtail/admin/static/wagtailadmin/js/vendor.js.LICENSE.txt +4 -4
  142. wagtail/admin/static/wagtailadmin/js/wagtailadmin.js +1 -1
  143. wagtail/admin/static/wagtailadmin/js/workflow-action.js +1 -1
  144. wagtail/admin/staticfiles.py +1 -0
  145. wagtail/admin/templates/wagtailadmin/base.html +1 -0
  146. wagtail/admin/templates/wagtailadmin/collection_privacy/set_privacy.html +3 -1
  147. wagtail/admin/templates/wagtailadmin/collections/index_results.html +10 -0
  148. wagtail/admin/templates/wagtailadmin/generic/base.html +1 -9
  149. wagtail/admin/templates/wagtailadmin/generic/form.html +3 -2
  150. wagtail/admin/templates/wagtailadmin/generic/history/action_cell.html +27 -0
  151. wagtail/admin/templates/wagtailadmin/home/workflow_objects_to_moderate.html +3 -3
  152. wagtail/admin/templates/wagtailadmin/icons/keyboard.svg +1 -0
  153. wagtail/admin/templates/wagtailadmin/page_privacy/set_privacy.html +3 -1
  154. wagtail/admin/templates/wagtailadmin/pages/_editor_js.html +0 -14
  155. wagtail/admin/templates/wagtailadmin/pages/action_menu/save_draft.html +3 -1
  156. wagtail/admin/templates/wagtailadmin/pages/choose_parent.html +17 -0
  157. wagtail/admin/templates/wagtailadmin/pages/explorable_index.html +8 -0
  158. wagtail/admin/templates/wagtailadmin/pages/history.html +1 -61
  159. wagtail/admin/templates/wagtailadmin/pages/index.html +1 -3
  160. wagtail/admin/templates/wagtailadmin/pages/listing/_locked_indicator.html +2 -2
  161. wagtail/admin/templates/wagtailadmin/pages/listing/_page_title_column_header.html +25 -27
  162. wagtail/admin/templates/wagtailadmin/pages/listing/_page_title_explore.html +2 -2
  163. wagtail/admin/templates/wagtailadmin/pages/page_listing_header.html +2 -1
  164. wagtail/admin/templates/wagtailadmin/panels/multi_field_panel_child.html +1 -1
  165. wagtail/admin/templates/wagtailadmin/panels/publishing/schedule_publishing_panel.html +3 -1
  166. wagtail/admin/templates/wagtailadmin/panels/tabbed_interface.html +1 -1
  167. wagtail/admin/templates/wagtailadmin/shared/active_filters.html +2 -1
  168. wagtail/admin/templates/wagtailadmin/shared/breadcrumbs.html +8 -0
  169. wagtail/admin/templates/wagtailadmin/shared/forms/single_checkbox.html +1 -1
  170. wagtail/admin/templates/wagtailadmin/shared/headers/page_edit_header.html +1 -1
  171. wagtail/admin/templates/wagtailadmin/shared/headers/slim_header.html +21 -9
  172. wagtail/admin/templates/wagtailadmin/shared/human_readable_date.html +1 -1
  173. wagtail/admin/templates/wagtailadmin/shared/keyboard_shortcuts_dialog.html +29 -0
  174. wagtail/admin/templates/wagtailadmin/shared/side_panel_toggle.html +2 -1
  175. wagtail/admin/templates/wagtailadmin/skeleton.html +2 -1
  176. wagtail/admin/templates/wagtailadmin/tables/related_objects_cell.html +9 -0
  177. wagtail/admin/templates/wagtailadmin/tables/title_cell.html +9 -7
  178. wagtail/admin/templates/wagtailadmin/widgets/draftail_rich_text_area.html +1 -1
  179. wagtail/admin/templates/wagtailadmin/workflows/create.html +6 -23
  180. wagtail/admin/templates/wagtailadmin/workflows/create_task.html +6 -15
  181. wagtail/admin/templates/wagtailadmin/workflows/edit.html +6 -23
  182. wagtail/admin/templates/wagtailadmin/workflows/edit_task.html +6 -13
  183. wagtail/admin/templates/wagtailadmin/workflows/includes/task_usage_cell.html +4 -4
  184. wagtail/admin/templates/wagtailadmin/workflows/includes/workflow_tasks_cell.html +18 -0
  185. wagtail/admin/templates/wagtailadmin/workflows/includes/workflow_title_cell.html +7 -0
  186. wagtail/admin/templates/wagtailadmin/workflows/includes/workflow_used_by_cell.html +25 -0
  187. wagtail/admin/templates/wagtailadmin/workflows/index.html +0 -99
  188. wagtail/admin/templates/wagtailadmin/workflows/index_results.html +10 -0
  189. wagtail/admin/templates/wagtailadmin/workflows/task_index.html +0 -30
  190. wagtail/admin/templates/wagtailadmin/workflows/task_index_results.html +10 -0
  191. wagtail/admin/templates/wagtailadmin/workflows/usage.html +1 -1
  192. wagtail/admin/templatetags/wagtailadmin_tags.py +116 -39
  193. wagtail/admin/tests/pages/test_create_page.py +10 -4
  194. wagtail/admin/tests/pages/test_custom_listing.py +37 -0
  195. wagtail/admin/tests/pages/test_edit_page.py +6 -6
  196. wagtail/admin/tests/pages/test_explorer_view.py +25 -22
  197. wagtail/admin/tests/pages/test_move_page.py +1 -1
  198. wagtail/admin/tests/pages/test_page_search.py +39 -0
  199. wagtail/admin/tests/pages/test_page_usage.py +50 -2
  200. wagtail/admin/tests/pages/test_parent_page_chooser_view.py +119 -0
  201. wagtail/admin/tests/pages/test_preview.py +18 -4
  202. wagtail/admin/tests/test_account_management.py +20 -1
  203. wagtail/admin/tests/test_audit_log.py +172 -5
  204. wagtail/admin/tests/test_checks.py +92 -0
  205. wagtail/admin/tests/test_collections_views.py +19 -5
  206. wagtail/admin/tests/test_compare.py +6 -6
  207. wagtail/admin/tests/test_dashboard.py +404 -0
  208. wagtail/admin/tests/test_dbwhitelister.py +4 -5
  209. wagtail/admin/tests/test_edit_handlers.py +2 -2
  210. wagtail/admin/tests/test_keyboard_shortcuts.py +84 -0
  211. wagtail/admin/tests/test_page_chooser.py +31 -18
  212. wagtail/admin/tests/test_privacy.py +36 -2
  213. wagtail/admin/tests/test_rich_text.py +168 -23
  214. wagtail/admin/tests/test_templatetags.py +411 -43
  215. wagtail/admin/tests/test_views.py +4 -2
  216. wagtail/admin/tests/test_workflows.py +531 -9
  217. wagtail/admin/tests/tests.py +3 -1
  218. wagtail/admin/tests/ui/test_tables.py +48 -1
  219. wagtail/admin/tests/viewsets/test_model_viewset.py +154 -28
  220. wagtail/admin/ui/side_panels.py +3 -1
  221. wagtail/admin/ui/tables/__init__.py +13 -5
  222. wagtail/admin/ui/tables/pages.py +17 -6
  223. wagtail/admin/urls/__init__.py +8 -3
  224. wagtail/admin/urls/pages.py +5 -0
  225. wagtail/admin/urls/workflows.py +10 -0
  226. wagtail/admin/views/chooser.py +20 -24
  227. wagtail/admin/views/collections.py +17 -1
  228. wagtail/admin/views/generic/base.py +31 -4
  229. wagtail/admin/views/generic/history.py +221 -53
  230. wagtail/admin/views/generic/mixins.py +7 -4
  231. wagtail/admin/views/generic/models.py +80 -38
  232. wagtail/admin/views/generic/multiple_upload.py +17 -8
  233. wagtail/admin/views/generic/usage.py +17 -11
  234. wagtail/admin/views/home.py +15 -12
  235. wagtail/admin/views/mixins.py +30 -0
  236. wagtail/admin/views/pages/choose_parent.py +73 -0
  237. wagtail/admin/views/pages/history.py +54 -66
  238. wagtail/admin/views/pages/listing.py +187 -106
  239. wagtail/admin/views/pages/search.py +1 -0
  240. wagtail/admin/views/pages/usage.py +6 -1
  241. wagtail/admin/views/pages/utils.py +70 -1
  242. wagtail/admin/views/workflows.py +150 -21
  243. wagtail/admin/viewsets/model.py +2 -2
  244. wagtail/admin/viewsets/pages.py +77 -0
  245. wagtail/admin/wagtail_hooks.py +40 -2
  246. wagtail/admin/widgets/button.py +10 -9
  247. wagtail/api/v2/filters.py +1 -1
  248. wagtail/api/v2/tests/test_pages.py +1 -1
  249. wagtail/blocks/base.py +18 -9
  250. wagtail/blocks/field_block.py +9 -7
  251. wagtail/blocks/list_block.py +16 -6
  252. wagtail/blocks/static_block.py +3 -0
  253. wagtail/blocks/stream_block.py +58 -23
  254. wagtail/blocks/struct_block.py +15 -9
  255. wagtail/contrib/forms/locale/af/LC_MESSAGES/django.po +1 -1
  256. wagtail/contrib/forms/locale/ar/LC_MESSAGES/django.mo +0 -0
  257. wagtail/contrib/forms/locale/ar/LC_MESSAGES/django.po +5 -8
  258. wagtail/contrib/forms/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  259. wagtail/contrib/forms/locale/be/LC_MESSAGES/django.mo +0 -0
  260. wagtail/contrib/forms/locale/be/LC_MESSAGES/django.po +5 -8
  261. wagtail/contrib/forms/locale/bg/LC_MESSAGES/django.po +1 -1
  262. wagtail/contrib/forms/locale/bn/LC_MESSAGES/django.po +1 -1
  263. wagtail/contrib/forms/locale/ca/LC_MESSAGES/django.mo +0 -0
  264. wagtail/contrib/forms/locale/ca/LC_MESSAGES/django.po +5 -11
  265. wagtail/contrib/forms/locale/cs/LC_MESSAGES/django.mo +0 -0
  266. wagtail/contrib/forms/locale/cs/LC_MESSAGES/django.po +5 -11
  267. wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.mo +0 -0
  268. wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.po +5 -8
  269. wagtail/contrib/forms/locale/da/LC_MESSAGES/django.po +1 -1
  270. wagtail/contrib/forms/locale/de/LC_MESSAGES/django.mo +0 -0
  271. wagtail/contrib/forms/locale/de/LC_MESSAGES/django.po +5 -11
  272. wagtail/contrib/forms/locale/dv/LC_MESSAGES/django.mo +0 -0
  273. wagtail/contrib/forms/locale/dv/LC_MESSAGES/django.po +1 -7
  274. wagtail/contrib/forms/locale/el/LC_MESSAGES/django.mo +0 -0
  275. wagtail/contrib/forms/locale/el/LC_MESSAGES/django.po +5 -8
  276. wagtail/contrib/forms/locale/en/LC_MESSAGES/django.po +39 -47
  277. wagtail/contrib/forms/locale/es/LC_MESSAGES/django.mo +0 -0
  278. wagtail/contrib/forms/locale/es/LC_MESSAGES/django.po +5 -11
  279. wagtail/contrib/forms/locale/es_419/LC_MESSAGES/django.po +1 -1
  280. wagtail/contrib/forms/locale/et/LC_MESSAGES/django.mo +0 -0
  281. wagtail/contrib/forms/locale/et/LC_MESSAGES/django.po +5 -11
  282. wagtail/contrib/forms/locale/eu/LC_MESSAGES/django.po +1 -1
  283. wagtail/contrib/forms/locale/fa/LC_MESSAGES/django.mo +0 -0
  284. wagtail/contrib/forms/locale/fa/LC_MESSAGES/django.po +5 -8
  285. wagtail/contrib/forms/locale/fi/LC_MESSAGES/django.mo +0 -0
  286. wagtail/contrib/forms/locale/fi/LC_MESSAGES/django.po +5 -11
  287. wagtail/contrib/forms/locale/fr/LC_MESSAGES/django.mo +0 -0
  288. wagtail/contrib/forms/locale/fr/LC_MESSAGES/django.po +5 -11
  289. wagtail/contrib/forms/locale/gl/LC_MESSAGES/django.mo +0 -0
  290. wagtail/contrib/forms/locale/gl/LC_MESSAGES/django.po +5 -11
  291. wagtail/contrib/forms/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  292. wagtail/contrib/forms/locale/he_IL/LC_MESSAGES/django.po +1 -4
  293. wagtail/contrib/forms/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  294. wagtail/contrib/forms/locale/hr_HR/LC_MESSAGES/django.po +5 -11
  295. wagtail/contrib/forms/locale/ht/LC_MESSAGES/django.po +1 -1
  296. wagtail/contrib/forms/locale/hu/LC_MESSAGES/django.mo +0 -0
  297. wagtail/contrib/forms/locale/hu/LC_MESSAGES/django.po +5 -11
  298. wagtail/contrib/forms/locale/hy/LC_MESSAGES/django.po +1 -1
  299. wagtail/contrib/forms/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  300. wagtail/contrib/forms/locale/id_ID/LC_MESSAGES/django.po +5 -8
  301. wagtail/contrib/forms/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  302. wagtail/contrib/forms/locale/is_IS/LC_MESSAGES/django.po +5 -11
  303. wagtail/contrib/forms/locale/it/LC_MESSAGES/django.mo +0 -0
  304. wagtail/contrib/forms/locale/it/LC_MESSAGES/django.po +5 -11
  305. wagtail/contrib/forms/locale/ja/LC_MESSAGES/django.mo +0 -0
  306. wagtail/contrib/forms/locale/ja/LC_MESSAGES/django.po +5 -11
  307. wagtail/contrib/forms/locale/ka/LC_MESSAGES/django.po +1 -1
  308. wagtail/contrib/forms/locale/ko/LC_MESSAGES/django.mo +0 -0
  309. wagtail/contrib/forms/locale/ko/LC_MESSAGES/django.po +5 -11
  310. wagtail/contrib/forms/locale/lt/LC_MESSAGES/django.mo +0 -0
  311. wagtail/contrib/forms/locale/lt/LC_MESSAGES/django.po +5 -11
  312. wagtail/contrib/forms/locale/lv/LC_MESSAGES/django.mo +0 -0
  313. wagtail/contrib/forms/locale/lv/LC_MESSAGES/django.po +4 -7
  314. wagtail/contrib/forms/locale/mi/LC_MESSAGES/django.mo +0 -0
  315. wagtail/contrib/forms/locale/mi/LC_MESSAGES/django.po +1 -4
  316. wagtail/contrib/forms/locale/mn/LC_MESSAGES/django.mo +0 -0
  317. wagtail/contrib/forms/locale/mn/LC_MESSAGES/django.po +5 -8
  318. wagtail/contrib/forms/locale/my/LC_MESSAGES/django.mo +0 -0
  319. wagtail/contrib/forms/locale/my/LC_MESSAGES/django.po +5 -8
  320. wagtail/contrib/forms/locale/nb/LC_MESSAGES/django.mo +0 -0
  321. wagtail/contrib/forms/locale/nb/LC_MESSAGES/django.po +5 -8
  322. wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.mo +0 -0
  323. wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.po +5 -11
  324. wagtail/contrib/forms/locale/pl/LC_MESSAGES/django.mo +0 -0
  325. wagtail/contrib/forms/locale/pl/LC_MESSAGES/django.po +5 -11
  326. wagtail/contrib/forms/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  327. wagtail/contrib/forms/locale/pt_BR/LC_MESSAGES/django.po +5 -11
  328. wagtail/contrib/forms/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  329. wagtail/contrib/forms/locale/pt_PT/LC_MESSAGES/django.po +5 -11
  330. wagtail/contrib/forms/locale/ro/LC_MESSAGES/django.mo +0 -0
  331. wagtail/contrib/forms/locale/ro/LC_MESSAGES/django.po +5 -11
  332. wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.mo +0 -0
  333. wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.po +5 -11
  334. wagtail/contrib/forms/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  335. wagtail/contrib/forms/locale/sk_SK/LC_MESSAGES/django.po +5 -8
  336. wagtail/contrib/forms/locale/sl/LC_MESSAGES/django.mo +0 -0
  337. wagtail/contrib/forms/locale/sl/LC_MESSAGES/django.po +5 -11
  338. wagtail/contrib/forms/locale/sv/LC_MESSAGES/django.mo +0 -0
  339. wagtail/contrib/forms/locale/sv/LC_MESSAGES/django.po +5 -11
  340. wagtail/contrib/forms/locale/tet/LC_MESSAGES/django.mo +0 -0
  341. wagtail/contrib/forms/locale/tet/LC_MESSAGES/django.po +5 -8
  342. wagtail/contrib/forms/locale/th/LC_MESSAGES/django.mo +0 -0
  343. wagtail/contrib/forms/locale/th/LC_MESSAGES/django.po +5 -8
  344. wagtail/contrib/forms/locale/tr/LC_MESSAGES/django.mo +0 -0
  345. wagtail/contrib/forms/locale/tr/LC_MESSAGES/django.po +5 -8
  346. wagtail/contrib/forms/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  347. wagtail/contrib/forms/locale/tr_TR/LC_MESSAGES/django.po +5 -8
  348. wagtail/contrib/forms/locale/uk/LC_MESSAGES/django.mo +0 -0
  349. wagtail/contrib/forms/locale/uk/LC_MESSAGES/django.po +5 -11
  350. wagtail/contrib/forms/locale/vi/LC_MESSAGES/django.po +1 -1
  351. wagtail/contrib/forms/locale/zh/LC_MESSAGES/django.po +1 -1
  352. wagtail/contrib/forms/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  353. wagtail/contrib/forms/locale/zh_Hans/LC_MESSAGES/django.po +5 -11
  354. wagtail/contrib/forms/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  355. wagtail/contrib/forms/locale/zh_Hant/LC_MESSAGES/django.po +5 -11
  356. wagtail/contrib/forms/models.py +5 -5
  357. wagtail/contrib/forms/templates/wagtailforms/list_submissions.html +44 -33
  358. wagtail/contrib/forms/templates/wagtailforms/submissions_index.html +2 -63
  359. wagtail/contrib/forms/tests/test_models.py +26 -0
  360. wagtail/contrib/forms/urls.py +6 -0
  361. wagtail/contrib/forms/views.py +52 -49
  362. wagtail/contrib/redirects/locale/af/LC_MESSAGES/django.po +1 -1
  363. wagtail/contrib/redirects/locale/ar/LC_MESSAGES/django.mo +0 -0
  364. wagtail/contrib/redirects/locale/ar/LC_MESSAGES/django.po +7 -17
  365. wagtail/contrib/redirects/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  366. wagtail/contrib/redirects/locale/be/LC_MESSAGES/django.mo +0 -0
  367. wagtail/contrib/redirects/locale/be/LC_MESSAGES/django.po +1 -9
  368. wagtail/contrib/redirects/locale/bg/LC_MESSAGES/django.po +4 -4
  369. wagtail/contrib/redirects/locale/bn/LC_MESSAGES/django.po +1 -1
  370. wagtail/contrib/redirects/locale/ca/LC_MESSAGES/django.mo +0 -0
  371. wagtail/contrib/redirects/locale/ca/LC_MESSAGES/django.po +16 -22
  372. wagtail/contrib/redirects/locale/cs/LC_MESSAGES/django.po +13 -13
  373. wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.po +13 -13
  374. wagtail/contrib/redirects/locale/da/LC_MESSAGES/django.po +1 -1
  375. wagtail/contrib/redirects/locale/de/LC_MESSAGES/django.mo +0 -0
  376. wagtail/contrib/redirects/locale/de/LC_MESSAGES/django.po +13 -19
  377. wagtail/contrib/redirects/locale/dv/LC_MESSAGES/django.mo +0 -0
  378. wagtail/contrib/redirects/locale/dv/LC_MESSAGES/django.po +1 -7
  379. wagtail/contrib/redirects/locale/el/LC_MESSAGES/django.po +7 -7
  380. wagtail/contrib/redirects/locale/en/LC_MESSAGES/django.po +34 -42
  381. wagtail/contrib/redirects/locale/en_IN/LC_MESSAGES/django.po +1 -1
  382. wagtail/contrib/redirects/locale/es/LC_MESSAGES/django.mo +0 -0
  383. wagtail/contrib/redirects/locale/es/LC_MESSAGES/django.po +13 -20
  384. wagtail/contrib/redirects/locale/es_419/LC_MESSAGES/django.mo +0 -0
  385. wagtail/contrib/redirects/locale/es_419/LC_MESSAGES/django.po +1 -8
  386. wagtail/contrib/redirects/locale/es_VE/LC_MESSAGES/django.po +1 -1
  387. wagtail/contrib/redirects/locale/et/LC_MESSAGES/django.po +7 -7
  388. wagtail/contrib/redirects/locale/eu/LC_MESSAGES/django.po +1 -1
  389. wagtail/contrib/redirects/locale/fa/LC_MESSAGES/django.mo +0 -0
  390. wagtail/contrib/redirects/locale/fa/LC_MESSAGES/django.po +7 -13
  391. wagtail/contrib/redirects/locale/fi/LC_MESSAGES/django.mo +0 -0
  392. wagtail/contrib/redirects/locale/fi/LC_MESSAGES/django.po +13 -19
  393. wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.mo +0 -0
  394. wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.po +13 -20
  395. wagtail/contrib/redirects/locale/gl/LC_MESSAGES/django.mo +0 -0
  396. wagtail/contrib/redirects/locale/gl/LC_MESSAGES/django.po +13 -19
  397. wagtail/contrib/redirects/locale/he_IL/LC_MESSAGES/django.po +1 -1
  398. wagtail/contrib/redirects/locale/hi/LC_MESSAGES/django.po +1 -1
  399. wagtail/contrib/redirects/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  400. wagtail/contrib/redirects/locale/hr_HR/LC_MESSAGES/django.po +13 -20
  401. wagtail/contrib/redirects/locale/ht/LC_MESSAGES/django.po +1 -1
  402. wagtail/contrib/redirects/locale/hu/LC_MESSAGES/django.mo +0 -0
  403. wagtail/contrib/redirects/locale/hu/LC_MESSAGES/django.po +13 -19
  404. wagtail/contrib/redirects/locale/hy/LC_MESSAGES/django.po +1 -1
  405. wagtail/contrib/redirects/locale/id_ID/LC_MESSAGES/django.po +7 -7
  406. wagtail/contrib/redirects/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  407. wagtail/contrib/redirects/locale/is_IS/LC_MESSAGES/django.po +13 -19
  408. wagtail/contrib/redirects/locale/it/LC_MESSAGES/django.mo +0 -0
  409. wagtail/contrib/redirects/locale/it/LC_MESSAGES/django.po +13 -20
  410. wagtail/contrib/redirects/locale/ja/LC_MESSAGES/django.po +7 -7
  411. wagtail/contrib/redirects/locale/ka/LC_MESSAGES/django.po +1 -1
  412. wagtail/contrib/redirects/locale/ko/LC_MESSAGES/django.mo +0 -0
  413. wagtail/contrib/redirects/locale/ko/LC_MESSAGES/django.po +7 -12
  414. wagtail/contrib/redirects/locale/lt/LC_MESSAGES/django.po +13 -13
  415. wagtail/contrib/redirects/locale/lv/LC_MESSAGES/django.po +5 -5
  416. wagtail/contrib/redirects/locale/mi/LC_MESSAGES/django.po +1 -1
  417. wagtail/contrib/redirects/locale/mn/LC_MESSAGES/django.po +7 -7
  418. wagtail/contrib/redirects/locale/my/LC_MESSAGES/django.po +1 -1
  419. wagtail/contrib/redirects/locale/nb/LC_MESSAGES/django.mo +0 -0
  420. wagtail/contrib/redirects/locale/nb/LC_MESSAGES/django.po +13 -19
  421. wagtail/contrib/redirects/locale/nl/LC_MESSAGES/django.mo +0 -0
  422. wagtail/contrib/redirects/locale/nl/LC_MESSAGES/django.po +13 -19
  423. wagtail/contrib/redirects/locale/pl/LC_MESSAGES/django.mo +0 -0
  424. wagtail/contrib/redirects/locale/pl/LC_MESSAGES/django.po +13 -21
  425. wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  426. wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.po +13 -20
  427. wagtail/contrib/redirects/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  428. wagtail/contrib/redirects/locale/pt_PT/LC_MESSAGES/django.po +13 -20
  429. wagtail/contrib/redirects/locale/ro/LC_MESSAGES/django.mo +0 -0
  430. wagtail/contrib/redirects/locale/ro/LC_MESSAGES/django.po +13 -20
  431. wagtail/contrib/redirects/locale/ru/LC_MESSAGES/django.mo +0 -0
  432. wagtail/contrib/redirects/locale/ru/LC_MESSAGES/django.po +13 -21
  433. wagtail/contrib/redirects/locale/sk_SK/LC_MESSAGES/django.po +7 -7
  434. wagtail/contrib/redirects/locale/sl/LC_MESSAGES/django.mo +0 -0
  435. wagtail/contrib/redirects/locale/sl/LC_MESSAGES/django.po +13 -21
  436. wagtail/contrib/redirects/locale/sr/LC_MESSAGES/django.po +1 -1
  437. wagtail/contrib/redirects/locale/sv/LC_MESSAGES/django.mo +0 -0
  438. wagtail/contrib/redirects/locale/sv/LC_MESSAGES/django.po +13 -19
  439. wagtail/contrib/redirects/locale/ta/LC_MESSAGES/django.po +1 -1
  440. wagtail/contrib/redirects/locale/tet/LC_MESSAGES/django.po +7 -7
  441. wagtail/contrib/redirects/locale/th/LC_MESSAGES/django.po +7 -7
  442. wagtail/contrib/redirects/locale/tr/LC_MESSAGES/django.po +7 -7
  443. wagtail/contrib/redirects/locale/tr_TR/LC_MESSAGES/django.po +7 -7
  444. wagtail/contrib/redirects/locale/uk/LC_MESSAGES/django.mo +0 -0
  445. wagtail/contrib/redirects/locale/uk/LC_MESSAGES/django.po +13 -21
  446. wagtail/contrib/redirects/locale/vi/LC_MESSAGES/django.po +1 -1
  447. wagtail/contrib/redirects/locale/zh/LC_MESSAGES/django.po +4 -4
  448. wagtail/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  449. wagtail/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.po +13 -18
  450. wagtail/contrib/redirects/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  451. wagtail/contrib/redirects/locale/zh_Hant/LC_MESSAGES/django.po +7 -12
  452. wagtail/contrib/redirects/signal_handlers.py +1 -1
  453. wagtail/contrib/redirects/templates/wagtailredirects/index.html +1 -36
  454. wagtail/contrib/redirects/templates/wagtailredirects/index_results.html +18 -0
  455. wagtail/contrib/redirects/templates/wagtailredirects/redirect_target_cell.html +8 -0
  456. wagtail/contrib/redirects/tests/test_import_command.py +1 -1
  457. wagtail/contrib/redirects/tests/test_redirects.py +79 -8
  458. wagtail/contrib/redirects/urls.py +2 -1
  459. wagtail/contrib/redirects/views.py +85 -55
  460. wagtail/contrib/search_promotions/admin_urls.py +2 -1
  461. wagtail/contrib/search_promotions/locale/af/LC_MESSAGES/django.po +1 -1
  462. wagtail/contrib/search_promotions/locale/ar/LC_MESSAGES/django.mo +0 -0
  463. wagtail/contrib/search_promotions/locale/ar/LC_MESSAGES/django.po +29 -42
  464. wagtail/contrib/search_promotions/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  465. wagtail/contrib/search_promotions/locale/be/LC_MESSAGES/django.mo +0 -0
  466. wagtail/contrib/search_promotions/locale/be/LC_MESSAGES/django.po +29 -40
  467. wagtail/contrib/search_promotions/locale/bg/LC_MESSAGES/django.po +15 -15
  468. wagtail/contrib/search_promotions/locale/bn/LC_MESSAGES/django.po +4 -4
  469. wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.mo +0 -0
  470. wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.po +35 -53
  471. wagtail/contrib/search_promotions/locale/cs/LC_MESSAGES/django.mo +0 -0
  472. wagtail/contrib/search_promotions/locale/cs/LC_MESSAGES/django.po +31 -46
  473. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.mo +0 -0
  474. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.po +29 -44
  475. wagtail/contrib/search_promotions/locale/da/LC_MESSAGES/django.po +4 -4
  476. wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.mo +0 -0
  477. wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.po +35 -53
  478. wagtail/contrib/search_promotions/locale/dv/LC_MESSAGES/django.mo +0 -0
  479. wagtail/contrib/search_promotions/locale/dv/LC_MESSAGES/django.po +4 -10
  480. wagtail/contrib/search_promotions/locale/el/LC_MESSAGES/django.mo +0 -0
  481. wagtail/contrib/search_promotions/locale/el/LC_MESSAGES/django.po +32 -35
  482. wagtail/contrib/search_promotions/locale/en/LC_MESSAGES/django.po +41 -64
  483. wagtail/contrib/search_promotions/locale/en_IN/LC_MESSAGES/django.po +1 -1
  484. wagtail/contrib/search_promotions/locale/es/LC_MESSAGES/django.mo +0 -0
  485. wagtail/contrib/search_promotions/locale/es/LC_MESSAGES/django.po +31 -53
  486. wagtail/contrib/search_promotions/locale/es_419/LC_MESSAGES/django.mo +0 -0
  487. wagtail/contrib/search_promotions/locale/es_419/LC_MESSAGES/django.po +4 -11
  488. wagtail/contrib/search_promotions/locale/es_VE/LC_MESSAGES/django.po +1 -1
  489. wagtail/contrib/search_promotions/locale/et/LC_MESSAGES/django.mo +0 -0
  490. wagtail/contrib/search_promotions/locale/et/LC_MESSAGES/django.po +31 -46
  491. wagtail/contrib/search_promotions/locale/eu/LC_MESSAGES/django.po +4 -4
  492. wagtail/contrib/search_promotions/locale/fa/LC_MESSAGES/django.mo +0 -0
  493. wagtail/contrib/search_promotions/locale/fa/LC_MESSAGES/django.po +29 -38
  494. wagtail/contrib/search_promotions/locale/fi/LC_MESSAGES/django.mo +0 -0
  495. wagtail/contrib/search_promotions/locale/fi/LC_MESSAGES/django.po +31 -52
  496. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.mo +0 -0
  497. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.po +31 -53
  498. wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.mo +0 -0
  499. wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.po +35 -53
  500. wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.po +16 -16
  501. wagtail/contrib/search_promotions/locale/hi/LC_MESSAGES/django.po +1 -1
  502. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  503. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.po +31 -53
  504. wagtail/contrib/search_promotions/locale/ht/LC_MESSAGES/django.po +4 -4
  505. wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.mo +0 -0
  506. wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.po +31 -52
  507. wagtail/contrib/search_promotions/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  508. wagtail/contrib/search_promotions/locale/id_ID/LC_MESSAGES/django.po +32 -35
  509. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  510. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.po +31 -52
  511. wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.mo +0 -0
  512. wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.po +31 -53
  513. wagtail/contrib/search_promotions/locale/ja/LC_MESSAGES/django.mo +0 -0
  514. wagtail/contrib/search_promotions/locale/ja/LC_MESSAGES/django.po +30 -33
  515. wagtail/contrib/search_promotions/locale/ka/LC_MESSAGES/django.po +4 -4
  516. wagtail/contrib/search_promotions/locale/ko/LC_MESSAGES/django.mo +0 -0
  517. wagtail/contrib/search_promotions/locale/ko/LC_MESSAGES/django.po +30 -50
  518. wagtail/contrib/search_promotions/locale/lt/LC_MESSAGES/django.mo +0 -0
  519. wagtail/contrib/search_promotions/locale/lt/LC_MESSAGES/django.po +32 -35
  520. wagtail/contrib/search_promotions/locale/lv/LC_MESSAGES/django.po +16 -16
  521. wagtail/contrib/search_promotions/locale/mi/LC_MESSAGES/django.po +10 -10
  522. wagtail/contrib/search_promotions/locale/mn/LC_MESSAGES/django.po +16 -16
  523. wagtail/contrib/search_promotions/locale/my/LC_MESSAGES/django.po +4 -4
  524. wagtail/contrib/search_promotions/locale/nb/LC_MESSAGES/django.mo +0 -0
  525. wagtail/contrib/search_promotions/locale/nb/LC_MESSAGES/django.po +31 -40
  526. wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.mo +0 -0
  527. wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.po +31 -52
  528. wagtail/contrib/search_promotions/locale/pl/LC_MESSAGES/django.mo +0 -0
  529. wagtail/contrib/search_promotions/locale/pl/LC_MESSAGES/django.po +31 -54
  530. wagtail/contrib/search_promotions/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  531. wagtail/contrib/search_promotions/locale/pt_BR/LC_MESSAGES/django.po +29 -51
  532. wagtail/contrib/search_promotions/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  533. wagtail/contrib/search_promotions/locale/pt_PT/LC_MESSAGES/django.po +31 -53
  534. wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.mo +0 -0
  535. wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.po +31 -53
  536. wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.mo +0 -0
  537. wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.po +35 -55
  538. wagtail/contrib/search_promotions/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  539. wagtail/contrib/search_promotions/locale/sk_SK/LC_MESSAGES/django.po +33 -36
  540. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.mo +0 -0
  541. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.po +31 -54
  542. wagtail/contrib/search_promotions/locale/sr/LC_MESSAGES/django.po +1 -1
  543. wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.mo +0 -0
  544. wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.po +29 -50
  545. wagtail/contrib/search_promotions/locale/ta/LC_MESSAGES/django.po +1 -1
  546. wagtail/contrib/search_promotions/locale/tet/LC_MESSAGES/django.mo +0 -0
  547. wagtail/contrib/search_promotions/locale/tet/LC_MESSAGES/django.po +23 -26
  548. wagtail/contrib/search_promotions/locale/th/LC_MESSAGES/django.mo +0 -0
  549. wagtail/contrib/search_promotions/locale/th/LC_MESSAGES/django.po +30 -33
  550. wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.mo +0 -0
  551. wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.po +30 -33
  552. wagtail/contrib/search_promotions/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  553. wagtail/contrib/search_promotions/locale/tr_TR/LC_MESSAGES/django.po +30 -33
  554. wagtail/contrib/search_promotions/locale/uk/LC_MESSAGES/django.mo +0 -0
  555. wagtail/contrib/search_promotions/locale/uk/LC_MESSAGES/django.po +30 -53
  556. wagtail/contrib/search_promotions/locale/vi/LC_MESSAGES/django.po +4 -4
  557. wagtail/contrib/search_promotions/locale/zh/LC_MESSAGES/django.po +15 -15
  558. wagtail/contrib/search_promotions/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  559. wagtail/contrib/search_promotions/locale/zh_Hans/LC_MESSAGES/django.po +29 -49
  560. wagtail/contrib/search_promotions/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  561. wagtail/contrib/search_promotions/locale/zh_Hant/LC_MESSAGES/django.po +29 -37
  562. wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/index.html +1 -16
  563. wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/index_results.html +11 -0
  564. wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/list.html +0 -51
  565. wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/results.html +3 -16
  566. wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/search_promotion_column.html +15 -0
  567. wagtail/contrib/search_promotions/tests.py +122 -9
  568. wagtail/contrib/search_promotions/views.py +66 -65
  569. wagtail/contrib/settings/locale/af/LC_MESSAGES/django.po +1 -1
  570. wagtail/contrib/settings/locale/ar/LC_MESSAGES/django.po +1 -1
  571. wagtail/contrib/settings/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  572. wagtail/contrib/settings/locale/be/LC_MESSAGES/django.po +1 -1
  573. wagtail/contrib/settings/locale/bg/LC_MESSAGES/django.po +1 -1
  574. wagtail/contrib/settings/locale/bn/LC_MESSAGES/django.po +1 -1
  575. wagtail/contrib/settings/locale/ca/LC_MESSAGES/django.po +1 -1
  576. wagtail/contrib/settings/locale/cs/LC_MESSAGES/django.po +1 -1
  577. wagtail/contrib/settings/locale/cy/LC_MESSAGES/django.po +1 -1
  578. wagtail/contrib/settings/locale/da/LC_MESSAGES/django.po +1 -1
  579. wagtail/contrib/settings/locale/de/LC_MESSAGES/django.po +1 -1
  580. wagtail/contrib/settings/locale/dv/LC_MESSAGES/django.po +1 -1
  581. wagtail/contrib/settings/locale/el/LC_MESSAGES/django.po +1 -1
  582. wagtail/contrib/settings/locale/en/LC_MESSAGES/django.po +3 -3
  583. wagtail/contrib/settings/locale/en_IN/LC_MESSAGES/django.po +1 -1
  584. wagtail/contrib/settings/locale/es/LC_MESSAGES/django.po +1 -1
  585. wagtail/contrib/settings/locale/es_419/LC_MESSAGES/django.po +1 -1
  586. wagtail/contrib/settings/locale/es_VE/LC_MESSAGES/django.po +1 -1
  587. wagtail/contrib/settings/locale/et/LC_MESSAGES/django.po +1 -1
  588. wagtail/contrib/settings/locale/fa/LC_MESSAGES/django.po +1 -1
  589. wagtail/contrib/settings/locale/fi/LC_MESSAGES/django.po +1 -1
  590. wagtail/contrib/settings/locale/fr/LC_MESSAGES/django.po +1 -1
  591. wagtail/contrib/settings/locale/gl/LC_MESSAGES/django.po +1 -1
  592. wagtail/contrib/settings/locale/he_IL/LC_MESSAGES/django.po +1 -1
  593. wagtail/contrib/settings/locale/hi/LC_MESSAGES/django.mo +0 -0
  594. wagtail/contrib/settings/locale/hi/LC_MESSAGES/django.po +4 -1
  595. wagtail/contrib/settings/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  596. wagtail/contrib/settings/locale/ht/LC_MESSAGES/django.po +1 -1
  597. wagtail/contrib/settings/locale/hu/LC_MESSAGES/django.po +1 -1
  598. wagtail/contrib/settings/locale/id_ID/LC_MESSAGES/django.po +1 -1
  599. wagtail/contrib/settings/locale/is_IS/LC_MESSAGES/django.po +1 -1
  600. wagtail/contrib/settings/locale/it/LC_MESSAGES/django.po +1 -1
  601. wagtail/contrib/settings/locale/ja/LC_MESSAGES/django.po +1 -1
  602. wagtail/contrib/settings/locale/ka/LC_MESSAGES/django.po +1 -1
  603. wagtail/contrib/settings/locale/ko/LC_MESSAGES/django.po +1 -1
  604. wagtail/contrib/settings/locale/lt/LC_MESSAGES/django.po +1 -1
  605. wagtail/contrib/settings/locale/lv/LC_MESSAGES/django.po +1 -1
  606. wagtail/contrib/settings/locale/mi/LC_MESSAGES/django.po +1 -1
  607. wagtail/contrib/settings/locale/mn/LC_MESSAGES/django.po +1 -1
  608. wagtail/contrib/settings/locale/my/LC_MESSAGES/django.po +1 -1
  609. wagtail/contrib/settings/locale/nb/LC_MESSAGES/django.po +1 -1
  610. wagtail/contrib/settings/locale/nl/LC_MESSAGES/django.po +1 -1
  611. wagtail/contrib/settings/locale/pl/LC_MESSAGES/django.po +1 -1
  612. wagtail/contrib/settings/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  613. wagtail/contrib/settings/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  614. wagtail/contrib/settings/locale/ro/LC_MESSAGES/django.po +1 -1
  615. wagtail/contrib/settings/locale/ru/LC_MESSAGES/django.po +1 -1
  616. wagtail/contrib/settings/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  617. wagtail/contrib/settings/locale/sl/LC_MESSAGES/django.po +1 -1
  618. wagtail/contrib/settings/locale/sr/LC_MESSAGES/django.po +1 -1
  619. wagtail/contrib/settings/locale/sv/LC_MESSAGES/django.po +1 -1
  620. wagtail/contrib/settings/locale/ta/LC_MESSAGES/django.po +1 -1
  621. wagtail/contrib/settings/locale/tet/LC_MESSAGES/django.po +1 -1
  622. wagtail/contrib/settings/locale/th/LC_MESSAGES/django.po +1 -1
  623. wagtail/contrib/settings/locale/tr/LC_MESSAGES/django.po +1 -1
  624. wagtail/contrib/settings/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  625. wagtail/contrib/settings/locale/uk/LC_MESSAGES/django.po +1 -1
  626. wagtail/contrib/settings/locale/vi/LC_MESSAGES/django.po +1 -1
  627. wagtail/contrib/settings/locale/zh/LC_MESSAGES/django.po +1 -1
  628. wagtail/contrib/settings/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  629. wagtail/contrib/settings/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  630. wagtail/contrib/settings/registry.py +10 -5
  631. wagtail/contrib/settings/tests/generic/test_admin.py +97 -1
  632. wagtail/contrib/settings/tests/site_specific/test_admin.py +102 -4
  633. wagtail/contrib/settings/tests/site_specific/test_model.py +3 -3
  634. wagtail/contrib/settings/tests/site_specific/test_templates.py +1 -1
  635. wagtail/contrib/settings/views.py +3 -1
  636. wagtail/contrib/simple_translation/locale/ar/LC_MESSAGES/django.po +1 -1
  637. wagtail/contrib/simple_translation/locale/be/LC_MESSAGES/django.po +1 -1
  638. wagtail/contrib/simple_translation/locale/ca/LC_MESSAGES/django.po +1 -1
  639. wagtail/contrib/simple_translation/locale/cs/LC_MESSAGES/django.po +1 -1
  640. wagtail/contrib/simple_translation/locale/cy/LC_MESSAGES/django.po +1 -1
  641. wagtail/contrib/simple_translation/locale/de/LC_MESSAGES/django.po +1 -1
  642. wagtail/contrib/simple_translation/locale/dv/LC_MESSAGES/django.po +1 -1
  643. wagtail/contrib/simple_translation/locale/el/LC_MESSAGES/django.po +1 -1
  644. wagtail/contrib/simple_translation/locale/en/LC_MESSAGES/django.po +1 -1
  645. wagtail/contrib/simple_translation/locale/es/LC_MESSAGES/django.po +1 -1
  646. wagtail/contrib/simple_translation/locale/es_419/LC_MESSAGES/django.po +1 -1
  647. wagtail/contrib/simple_translation/locale/fa/LC_MESSAGES/django.po +1 -1
  648. wagtail/contrib/simple_translation/locale/fi/LC_MESSAGES/django.po +1 -1
  649. wagtail/contrib/simple_translation/locale/fr/LC_MESSAGES/django.po +1 -1
  650. wagtail/contrib/simple_translation/locale/gl/LC_MESSAGES/django.po +1 -1
  651. wagtail/contrib/simple_translation/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  652. wagtail/contrib/simple_translation/locale/hu/LC_MESSAGES/django.po +1 -1
  653. wagtail/contrib/simple_translation/locale/is_IS/LC_MESSAGES/django.po +1 -1
  654. wagtail/contrib/simple_translation/locale/it/LC_MESSAGES/django.po +1 -1
  655. wagtail/contrib/simple_translation/locale/ko/LC_MESSAGES/django.po +1 -1
  656. wagtail/contrib/simple_translation/locale/lt/LC_MESSAGES/django.po +1 -1
  657. wagtail/contrib/simple_translation/locale/mi/LC_MESSAGES/django.po +1 -1
  658. wagtail/contrib/simple_translation/locale/mn/LC_MESSAGES/django.po +1 -1
  659. wagtail/contrib/simple_translation/locale/nb/LC_MESSAGES/django.po +1 -1
  660. wagtail/contrib/simple_translation/locale/nl/LC_MESSAGES/django.po +1 -1
  661. wagtail/contrib/simple_translation/locale/pl/LC_MESSAGES/django.po +1 -1
  662. wagtail/contrib/simple_translation/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  663. wagtail/contrib/simple_translation/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  664. wagtail/contrib/simple_translation/locale/ro/LC_MESSAGES/django.po +1 -1
  665. wagtail/contrib/simple_translation/locale/ru/LC_MESSAGES/django.po +1 -1
  666. wagtail/contrib/simple_translation/locale/sl/LC_MESSAGES/django.po +1 -1
  667. wagtail/contrib/simple_translation/locale/sv/LC_MESSAGES/django.po +1 -1
  668. wagtail/contrib/simple_translation/locale/uk/LC_MESSAGES/django.po +1 -1
  669. wagtail/contrib/simple_translation/locale/vi/LC_MESSAGES/django.po +1 -1
  670. wagtail/contrib/simple_translation/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  671. wagtail/contrib/simple_translation/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  672. wagtail/contrib/simple_translation/tests/test_wagtail_hooks.py +2 -2
  673. wagtail/contrib/styleguide/locale/af/LC_MESSAGES/django.po +1 -1
  674. wagtail/contrib/styleguide/locale/ar/LC_MESSAGES/django.po +1 -1
  675. wagtail/contrib/styleguide/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  676. wagtail/contrib/styleguide/locale/be/LC_MESSAGES/django.po +1 -1
  677. wagtail/contrib/styleguide/locale/bg/LC_MESSAGES/django.po +1 -1
  678. wagtail/contrib/styleguide/locale/bn/LC_MESSAGES/django.po +1 -1
  679. wagtail/contrib/styleguide/locale/ca/LC_MESSAGES/django.po +1 -1
  680. wagtail/contrib/styleguide/locale/cs/LC_MESSAGES/django.po +1 -1
  681. wagtail/contrib/styleguide/locale/cy/LC_MESSAGES/django.po +1 -1
  682. wagtail/contrib/styleguide/locale/da/LC_MESSAGES/django.po +1 -1
  683. wagtail/contrib/styleguide/locale/de/LC_MESSAGES/django.po +1 -1
  684. wagtail/contrib/styleguide/locale/dv/LC_MESSAGES/django.po +1 -1
  685. wagtail/contrib/styleguide/locale/el/LC_MESSAGES/django.po +1 -1
  686. wagtail/contrib/styleguide/locale/en/LC_MESSAGES/django.po +7 -7
  687. wagtail/contrib/styleguide/locale/en_IN/LC_MESSAGES/django.po +1 -1
  688. wagtail/contrib/styleguide/locale/es/LC_MESSAGES/django.po +1 -1
  689. wagtail/contrib/styleguide/locale/es_419/LC_MESSAGES/django.po +1 -1
  690. wagtail/contrib/styleguide/locale/es_VE/LC_MESSAGES/django.po +1 -1
  691. wagtail/contrib/styleguide/locale/et/LC_MESSAGES/django.po +1 -1
  692. wagtail/contrib/styleguide/locale/fa/LC_MESSAGES/django.po +1 -1
  693. wagtail/contrib/styleguide/locale/fi/LC_MESSAGES/django.po +1 -1
  694. wagtail/contrib/styleguide/locale/fr/LC_MESSAGES/django.po +1 -1
  695. wagtail/contrib/styleguide/locale/gl/LC_MESSAGES/django.po +1 -1
  696. wagtail/contrib/styleguide/locale/he_IL/LC_MESSAGES/django.po +1 -1
  697. wagtail/contrib/styleguide/locale/hi/LC_MESSAGES/django.po +1 -1
  698. wagtail/contrib/styleguide/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  699. wagtail/contrib/styleguide/locale/ht/LC_MESSAGES/django.po +1 -1
  700. wagtail/contrib/styleguide/locale/hu/LC_MESSAGES/django.po +1 -1
  701. wagtail/contrib/styleguide/locale/id_ID/LC_MESSAGES/django.po +1 -1
  702. wagtail/contrib/styleguide/locale/is_IS/LC_MESSAGES/django.po +1 -1
  703. wagtail/contrib/styleguide/locale/it/LC_MESSAGES/django.po +1 -1
  704. wagtail/contrib/styleguide/locale/ja/LC_MESSAGES/django.po +1 -1
  705. wagtail/contrib/styleguide/locale/ka/LC_MESSAGES/django.po +1 -1
  706. wagtail/contrib/styleguide/locale/ko/LC_MESSAGES/django.po +1 -1
  707. wagtail/contrib/styleguide/locale/lt/LC_MESSAGES/django.po +1 -1
  708. wagtail/contrib/styleguide/locale/lv/LC_MESSAGES/django.po +1 -1
  709. wagtail/contrib/styleguide/locale/mi/LC_MESSAGES/django.po +1 -1
  710. wagtail/contrib/styleguide/locale/mn/LC_MESSAGES/django.po +1 -1
  711. wagtail/contrib/styleguide/locale/my/LC_MESSAGES/django.po +1 -1
  712. wagtail/contrib/styleguide/locale/nb/LC_MESSAGES/django.po +1 -1
  713. wagtail/contrib/styleguide/locale/nl/LC_MESSAGES/django.po +1 -1
  714. wagtail/contrib/styleguide/locale/pl/LC_MESSAGES/django.po +1 -1
  715. wagtail/contrib/styleguide/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  716. wagtail/contrib/styleguide/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  717. wagtail/contrib/styleguide/locale/ro/LC_MESSAGES/django.po +1 -1
  718. wagtail/contrib/styleguide/locale/ru/LC_MESSAGES/django.po +1 -1
  719. wagtail/contrib/styleguide/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  720. wagtail/contrib/styleguide/locale/sl/LC_MESSAGES/django.po +1 -1
  721. wagtail/contrib/styleguide/locale/sv/LC_MESSAGES/django.po +1 -1
  722. wagtail/contrib/styleguide/locale/ta/LC_MESSAGES/django.po +1 -1
  723. wagtail/contrib/styleguide/locale/tet/LC_MESSAGES/django.po +1 -1
  724. wagtail/contrib/styleguide/locale/th/LC_MESSAGES/django.po +1 -1
  725. wagtail/contrib/styleguide/locale/tr/LC_MESSAGES/django.po +1 -1
  726. wagtail/contrib/styleguide/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  727. wagtail/contrib/styleguide/locale/uk/LC_MESSAGES/django.po +1 -1
  728. wagtail/contrib/styleguide/locale/vi/LC_MESSAGES/django.po +1 -1
  729. wagtail/contrib/styleguide/locale/zh/LC_MESSAGES/django.po +1 -1
  730. wagtail/contrib/styleguide/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  731. wagtail/contrib/styleguide/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  732. wagtail/contrib/styleguide/tests.py +8 -0
  733. wagtail/contrib/styleguide/views.py +1 -1
  734. wagtail/contrib/table_block/blocks.py +1 -1
  735. wagtail/contrib/table_block/locale/ar/LC_MESSAGES/django.po +1 -1
  736. wagtail/contrib/table_block/locale/be/LC_MESSAGES/django.po +1 -1
  737. wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.po +1 -1
  738. wagtail/contrib/table_block/locale/cs/LC_MESSAGES/django.po +1 -1
  739. wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.po +1 -1
  740. wagtail/contrib/table_block/locale/de/LC_MESSAGES/django.po +1 -1
  741. wagtail/contrib/table_block/locale/dv/LC_MESSAGES/django.po +1 -1
  742. wagtail/contrib/table_block/locale/el/LC_MESSAGES/django.po +1 -1
  743. wagtail/contrib/table_block/locale/en/LC_MESSAGES/django.po +1 -1
  744. wagtail/contrib/table_block/locale/en_IN/LC_MESSAGES/django.po +1 -1
  745. wagtail/contrib/table_block/locale/es/LC_MESSAGES/django.po +1 -1
  746. wagtail/contrib/table_block/locale/et/LC_MESSAGES/django.po +1 -1
  747. wagtail/contrib/table_block/locale/fa/LC_MESSAGES/django.po +1 -1
  748. wagtail/contrib/table_block/locale/fi/LC_MESSAGES/django.po +1 -1
  749. wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.po +1 -1
  750. wagtail/contrib/table_block/locale/gl/LC_MESSAGES/django.po +1 -1
  751. wagtail/contrib/table_block/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  752. wagtail/contrib/table_block/locale/ht/LC_MESSAGES/django.po +1 -1
  753. wagtail/contrib/table_block/locale/hu/LC_MESSAGES/django.po +1 -1
  754. wagtail/contrib/table_block/locale/id_ID/LC_MESSAGES/django.po +1 -1
  755. wagtail/contrib/table_block/locale/is_IS/LC_MESSAGES/django.po +1 -1
  756. wagtail/contrib/table_block/locale/it/LC_MESSAGES/django.po +1 -1
  757. wagtail/contrib/table_block/locale/ja/LC_MESSAGES/django.po +1 -1
  758. wagtail/contrib/table_block/locale/ko/LC_MESSAGES/django.po +1 -1
  759. wagtail/contrib/table_block/locale/lt/LC_MESSAGES/django.po +1 -1
  760. wagtail/contrib/table_block/locale/lv/LC_MESSAGES/django.po +1 -1
  761. wagtail/contrib/table_block/locale/mi/LC_MESSAGES/django.po +1 -1
  762. wagtail/contrib/table_block/locale/mn/LC_MESSAGES/django.po +1 -1
  763. wagtail/contrib/table_block/locale/my/LC_MESSAGES/django.po +1 -1
  764. wagtail/contrib/table_block/locale/nb/LC_MESSAGES/django.po +1 -1
  765. wagtail/contrib/table_block/locale/nl/LC_MESSAGES/django.po +1 -1
  766. wagtail/contrib/table_block/locale/pl/LC_MESSAGES/django.po +1 -1
  767. wagtail/contrib/table_block/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  768. wagtail/contrib/table_block/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  769. wagtail/contrib/table_block/locale/ro/LC_MESSAGES/django.po +1 -1
  770. wagtail/contrib/table_block/locale/ru/LC_MESSAGES/django.po +1 -1
  771. wagtail/contrib/table_block/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  772. wagtail/contrib/table_block/locale/sl/LC_MESSAGES/django.po +1 -1
  773. wagtail/contrib/table_block/locale/sv/LC_MESSAGES/django.po +1 -1
  774. wagtail/contrib/table_block/locale/tet/LC_MESSAGES/django.po +1 -1
  775. wagtail/contrib/table_block/locale/th/LC_MESSAGES/django.po +1 -1
  776. wagtail/contrib/table_block/locale/tr/LC_MESSAGES/django.po +1 -1
  777. wagtail/contrib/table_block/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  778. wagtail/contrib/table_block/locale/uk/LC_MESSAGES/django.po +1 -1
  779. wagtail/contrib/table_block/locale/vi/LC_MESSAGES/django.po +1 -1
  780. wagtail/contrib/table_block/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  781. wagtail/contrib/table_block/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  782. wagtail/contrib/table_block/static/table_block/js/table.js +1 -1
  783. wagtail/contrib/typed_table_block/locale/ar/LC_MESSAGES/django.po +1 -1
  784. wagtail/contrib/typed_table_block/locale/be/LC_MESSAGES/django.po +1 -1
  785. wagtail/contrib/typed_table_block/locale/ca/LC_MESSAGES/django.po +1 -1
  786. wagtail/contrib/typed_table_block/locale/cy/LC_MESSAGES/django.po +1 -1
  787. wagtail/contrib/typed_table_block/locale/de/LC_MESSAGES/django.po +1 -1
  788. wagtail/contrib/typed_table_block/locale/dv/LC_MESSAGES/django.po +1 -1
  789. wagtail/contrib/typed_table_block/locale/el/LC_MESSAGES/django.po +1 -1
  790. wagtail/contrib/typed_table_block/locale/en/LC_MESSAGES/django.po +1 -1
  791. wagtail/contrib/typed_table_block/locale/es/LC_MESSAGES/django.po +1 -1
  792. wagtail/contrib/typed_table_block/locale/fa/LC_MESSAGES/django.po +1 -1
  793. wagtail/contrib/typed_table_block/locale/fi/LC_MESSAGES/django.po +1 -1
  794. wagtail/contrib/typed_table_block/locale/fr/LC_MESSAGES/django.po +1 -1
  795. wagtail/contrib/typed_table_block/locale/gl/LC_MESSAGES/django.po +1 -1
  796. wagtail/contrib/typed_table_block/locale/hu/LC_MESSAGES/django.po +1 -1
  797. wagtail/contrib/typed_table_block/locale/is_IS/LC_MESSAGES/django.po +1 -1
  798. wagtail/contrib/typed_table_block/locale/it/LC_MESSAGES/django.po +1 -1
  799. wagtail/contrib/typed_table_block/locale/ko/LC_MESSAGES/django.po +1 -1
  800. wagtail/contrib/typed_table_block/locale/lt/LC_MESSAGES/django.po +1 -1
  801. wagtail/contrib/typed_table_block/locale/nl/LC_MESSAGES/django.po +1 -1
  802. wagtail/contrib/typed_table_block/locale/pl/LC_MESSAGES/django.po +1 -1
  803. wagtail/contrib/typed_table_block/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  804. wagtail/contrib/typed_table_block/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  805. wagtail/contrib/typed_table_block/locale/ro/LC_MESSAGES/django.po +1 -1
  806. wagtail/contrib/typed_table_block/locale/ru/LC_MESSAGES/django.po +1 -1
  807. wagtail/contrib/typed_table_block/locale/sl/LC_MESSAGES/django.po +1 -1
  808. wagtail/contrib/typed_table_block/locale/sv/LC_MESSAGES/django.po +1 -1
  809. wagtail/contrib/typed_table_block/locale/th/LC_MESSAGES/django.po +1 -1
  810. wagtail/contrib/typed_table_block/locale/uk/LC_MESSAGES/django.po +1 -1
  811. wagtail/contrib/typed_table_block/locale/zh/LC_MESSAGES/django.po +1 -1
  812. wagtail/contrib/typed_table_block/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  813. wagtail/contrib/typed_table_block/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  814. wagtail/contrib/typed_table_block/static/typed_table_block/js/typed_table_block.js +1 -1
  815. wagtail/coreutils.py +3 -2
  816. wagtail/documents/admin_urls.py +2 -2
  817. wagtail/documents/locale/af/LC_MESSAGES/django.po +1 -1
  818. wagtail/documents/locale/ar/LC_MESSAGES/django.po +1 -1
  819. wagtail/documents/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  820. wagtail/documents/locale/be/LC_MESSAGES/django.po +1 -1
  821. wagtail/documents/locale/bg/LC_MESSAGES/django.po +1 -1
  822. wagtail/documents/locale/bn/LC_MESSAGES/django.po +1 -1
  823. wagtail/documents/locale/ca/LC_MESSAGES/django.po +1 -1
  824. wagtail/documents/locale/cs/LC_MESSAGES/django.po +1 -1
  825. wagtail/documents/locale/cy/LC_MESSAGES/django.po +1 -1
  826. wagtail/documents/locale/da/LC_MESSAGES/django.po +1 -1
  827. wagtail/documents/locale/de/LC_MESSAGES/django.po +1 -1
  828. wagtail/documents/locale/dv/LC_MESSAGES/django.po +1 -1
  829. wagtail/documents/locale/el/LC_MESSAGES/django.po +1 -1
  830. wagtail/documents/locale/en/LC_MESSAGES/django.po +22 -22
  831. wagtail/documents/locale/en_IN/LC_MESSAGES/django.po +1 -1
  832. wagtail/documents/locale/es/LC_MESSAGES/django.po +1 -1
  833. wagtail/documents/locale/es_419/LC_MESSAGES/django.po +1 -1
  834. wagtail/documents/locale/es_VE/LC_MESSAGES/django.po +1 -1
  835. wagtail/documents/locale/et/LC_MESSAGES/django.po +1 -1
  836. wagtail/documents/locale/eu/LC_MESSAGES/django.po +1 -1
  837. wagtail/documents/locale/fa/LC_MESSAGES/django.po +1 -1
  838. wagtail/documents/locale/fi/LC_MESSAGES/django.po +1 -1
  839. wagtail/documents/locale/fr/LC_MESSAGES/django.po +1 -1
  840. wagtail/documents/locale/gl/LC_MESSAGES/django.po +1 -1
  841. wagtail/documents/locale/he_IL/LC_MESSAGES/django.po +1 -1
  842. wagtail/documents/locale/hi/LC_MESSAGES/django.po +1 -1
  843. wagtail/documents/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  844. wagtail/documents/locale/ht/LC_MESSAGES/django.po +1 -1
  845. wagtail/documents/locale/hu/LC_MESSAGES/django.po +1 -1
  846. wagtail/documents/locale/id_ID/LC_MESSAGES/django.po +1 -1
  847. wagtail/documents/locale/is_IS/LC_MESSAGES/django.po +1 -1
  848. wagtail/documents/locale/it/LC_MESSAGES/django.po +1 -1
  849. wagtail/documents/locale/ja/LC_MESSAGES/django.po +1 -1
  850. wagtail/documents/locale/ka/LC_MESSAGES/django.po +1 -1
  851. wagtail/documents/locale/ko/LC_MESSAGES/django.po +1 -1
  852. wagtail/documents/locale/lt/LC_MESSAGES/django.po +1 -1
  853. wagtail/documents/locale/lv/LC_MESSAGES/django.po +1 -1
  854. wagtail/documents/locale/mi/LC_MESSAGES/django.po +1 -1
  855. wagtail/documents/locale/mn/LC_MESSAGES/django.po +1 -1
  856. wagtail/documents/locale/my/LC_MESSAGES/django.po +1 -1
  857. wagtail/documents/locale/nb/LC_MESSAGES/django.po +1 -1
  858. wagtail/documents/locale/nl/LC_MESSAGES/django.po +1 -1
  859. wagtail/documents/locale/pl/LC_MESSAGES/django.po +1 -1
  860. wagtail/documents/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  861. wagtail/documents/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  862. wagtail/documents/locale/ro/LC_MESSAGES/django.po +1 -1
  863. wagtail/documents/locale/ru/LC_MESSAGES/django.mo +0 -0
  864. wagtail/documents/locale/ru/LC_MESSAGES/django.po +4 -4
  865. wagtail/documents/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  866. wagtail/documents/locale/sl/LC_MESSAGES/django.po +1 -1
  867. wagtail/documents/locale/sr/LC_MESSAGES/django.po +1 -1
  868. wagtail/documents/locale/sv/LC_MESSAGES/django.po +1 -1
  869. wagtail/documents/locale/ta/LC_MESSAGES/django.po +1 -1
  870. wagtail/documents/locale/tet/LC_MESSAGES/django.po +1 -1
  871. wagtail/documents/locale/th/LC_MESSAGES/django.po +1 -1
  872. wagtail/documents/locale/tr/LC_MESSAGES/django.po +1 -1
  873. wagtail/documents/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  874. wagtail/documents/locale/uk/LC_MESSAGES/django.po +1 -1
  875. wagtail/documents/locale/vi/LC_MESSAGES/django.po +1 -1
  876. wagtail/documents/locale/zh/LC_MESSAGES/django.po +1 -1
  877. wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  878. wagtail/documents/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  879. wagtail/documents/migrations/0013_delete_uploadeddocument.py +16 -0
  880. wagtail/documents/models.py +1 -20
  881. wagtail/documents/rich_text/__init__.py +11 -7
  882. wagtail/documents/static/wagtaildocs/js/document-chooser-modal.js +1 -1
  883. wagtail/documents/static/wagtaildocs/js/document-chooser-telepath.js +1 -1
  884. wagtail/documents/static/wagtaildocs/js/document-chooser.js +1 -1
  885. wagtail/documents/templates/wagtaildocs/documents/index.html +0 -16
  886. wagtail/documents/tests/test_admin_views.py +155 -23
  887. wagtail/documents/tests/test_collection_privacy.py +55 -1
  888. wagtail/documents/tests/test_rich_text.py +14 -0
  889. wagtail/documents/views/documents.py +25 -22
  890. wagtail/documents/views/multiple.py +6 -7
  891. wagtail/documents/views/serve.py +16 -1
  892. wagtail/documents/wagtail_hooks.py +20 -15
  893. wagtail/embeds/blocks.py +5 -0
  894. wagtail/embeds/locale/ar/LC_MESSAGES/django.po +1 -1
  895. wagtail/embeds/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  896. wagtail/embeds/locale/be/LC_MESSAGES/django.po +1 -1
  897. wagtail/embeds/locale/bg/LC_MESSAGES/django.po +1 -1
  898. wagtail/embeds/locale/bn/LC_MESSAGES/django.po +1 -1
  899. wagtail/embeds/locale/ca/LC_MESSAGES/django.po +1 -1
  900. wagtail/embeds/locale/cs/LC_MESSAGES/django.po +1 -1
  901. wagtail/embeds/locale/cy/LC_MESSAGES/django.po +1 -1
  902. wagtail/embeds/locale/da/LC_MESSAGES/django.po +1 -1
  903. wagtail/embeds/locale/de/LC_MESSAGES/django.po +1 -1
  904. wagtail/embeds/locale/dv/LC_MESSAGES/django.po +1 -1
  905. wagtail/embeds/locale/el/LC_MESSAGES/django.po +1 -1
  906. wagtail/embeds/locale/en/LC_MESSAGES/django.po +2 -2
  907. wagtail/embeds/locale/es/LC_MESSAGES/django.po +1 -1
  908. wagtail/embeds/locale/es_419/LC_MESSAGES/django.po +1 -1
  909. wagtail/embeds/locale/et/LC_MESSAGES/django.po +1 -1
  910. wagtail/embeds/locale/fa/LC_MESSAGES/django.po +1 -1
  911. wagtail/embeds/locale/fi/LC_MESSAGES/django.po +1 -1
  912. wagtail/embeds/locale/fr/LC_MESSAGES/django.po +1 -1
  913. wagtail/embeds/locale/gl/LC_MESSAGES/django.po +1 -1
  914. wagtail/embeds/locale/he_IL/LC_MESSAGES/django.po +1 -1
  915. wagtail/embeds/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  916. wagtail/embeds/locale/ht/LC_MESSAGES/django.po +1 -1
  917. wagtail/embeds/locale/hu/LC_MESSAGES/django.po +1 -1
  918. wagtail/embeds/locale/id_ID/LC_MESSAGES/django.po +1 -1
  919. wagtail/embeds/locale/is_IS/LC_MESSAGES/django.po +1 -1
  920. wagtail/embeds/locale/it/LC_MESSAGES/django.po +1 -1
  921. wagtail/embeds/locale/ja/LC_MESSAGES/django.po +1 -1
  922. wagtail/embeds/locale/ko/LC_MESSAGES/django.po +1 -1
  923. wagtail/embeds/locale/lt/LC_MESSAGES/django.po +1 -1
  924. wagtail/embeds/locale/lv/LC_MESSAGES/django.po +1 -1
  925. wagtail/embeds/locale/mi/LC_MESSAGES/django.po +1 -1
  926. wagtail/embeds/locale/mn/LC_MESSAGES/django.po +1 -1
  927. wagtail/embeds/locale/my/LC_MESSAGES/django.po +1 -1
  928. wagtail/embeds/locale/nb/LC_MESSAGES/django.po +1 -1
  929. wagtail/embeds/locale/nl/LC_MESSAGES/django.po +1 -1
  930. wagtail/embeds/locale/pl/LC_MESSAGES/django.po +1 -1
  931. wagtail/embeds/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  932. wagtail/embeds/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  933. wagtail/embeds/locale/ro/LC_MESSAGES/django.po +1 -1
  934. wagtail/embeds/locale/ru/LC_MESSAGES/django.po +1 -1
  935. wagtail/embeds/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  936. wagtail/embeds/locale/sl/LC_MESSAGES/django.po +1 -1
  937. wagtail/embeds/locale/sv/LC_MESSAGES/django.po +1 -1
  938. wagtail/embeds/locale/tet/LC_MESSAGES/django.po +1 -1
  939. wagtail/embeds/locale/th/LC_MESSAGES/django.po +1 -1
  940. wagtail/embeds/locale/tr/LC_MESSAGES/django.po +1 -1
  941. wagtail/embeds/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  942. wagtail/embeds/locale/uk/LC_MESSAGES/django.po +1 -1
  943. wagtail/embeds/locale/vi/LC_MESSAGES/django.po +1 -1
  944. wagtail/embeds/locale/zh/LC_MESSAGES/django.po +1 -1
  945. wagtail/embeds/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  946. wagtail/embeds/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  947. wagtail/embeds/rich_text/__init__.py +1 -1
  948. wagtail/embeds/tests/test_rich_text.py +14 -0
  949. wagtail/embeds/wagtail_hooks.py +4 -14
  950. wagtail/fields.py +3 -48
  951. wagtail/images/admin_urls.py +2 -2
  952. wagtail/images/check_files/wagtail.jpg +0 -0
  953. wagtail/images/check_files/wagtail.png +0 -0
  954. wagtail/images/fields.py +2 -0
  955. wagtail/images/image_operations.py +1 -1
  956. wagtail/images/locale/af/LC_MESSAGES/django.po +1 -1
  957. wagtail/images/locale/ar/LC_MESSAGES/django.mo +0 -0
  958. wagtail/images/locale/ar/LC_MESSAGES/django.po +1 -4
  959. wagtail/images/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  960. wagtail/images/locale/be/LC_MESSAGES/django.po +1 -1
  961. wagtail/images/locale/bg/LC_MESSAGES/django.po +1 -1
  962. wagtail/images/locale/bn/LC_MESSAGES/django.po +1 -1
  963. wagtail/images/locale/ca/LC_MESSAGES/django.mo +0 -0
  964. wagtail/images/locale/ca/LC_MESSAGES/django.po +3 -12
  965. wagtail/images/locale/cs/LC_MESSAGES/django.mo +0 -0
  966. wagtail/images/locale/cs/LC_MESSAGES/django.po +1 -7
  967. wagtail/images/locale/cy/LC_MESSAGES/django.mo +0 -0
  968. wagtail/images/locale/cy/LC_MESSAGES/django.po +1 -4
  969. wagtail/images/locale/da/LC_MESSAGES/django.po +1 -1
  970. wagtail/images/locale/de/LC_MESSAGES/django.mo +0 -0
  971. wagtail/images/locale/de/LC_MESSAGES/django.po +1 -10
  972. wagtail/images/locale/dv/LC_MESSAGES/django.mo +0 -0
  973. wagtail/images/locale/dv/LC_MESSAGES/django.po +1 -7
  974. wagtail/images/locale/el/LC_MESSAGES/django.po +1 -1
  975. wagtail/images/locale/en/LC_MESSAGES/django.po +33 -45
  976. wagtail/images/locale/en_IN/LC_MESSAGES/django.po +1 -1
  977. wagtail/images/locale/es/LC_MESSAGES/django.mo +0 -0
  978. wagtail/images/locale/es/LC_MESSAGES/django.po +1 -10
  979. wagtail/images/locale/es_419/LC_MESSAGES/django.po +1 -1
  980. wagtail/images/locale/et/LC_MESSAGES/django.mo +0 -0
  981. wagtail/images/locale/et/LC_MESSAGES/django.po +1 -4
  982. wagtail/images/locale/eu/LC_MESSAGES/django.po +1 -1
  983. wagtail/images/locale/fa/LC_MESSAGES/django.po +1 -1
  984. wagtail/images/locale/fi/LC_MESSAGES/django.mo +0 -0
  985. wagtail/images/locale/fi/LC_MESSAGES/django.po +1 -10
  986. wagtail/images/locale/fr/LC_MESSAGES/django.mo +0 -0
  987. wagtail/images/locale/fr/LC_MESSAGES/django.po +1 -10
  988. wagtail/images/locale/gl/LC_MESSAGES/django.mo +0 -0
  989. wagtail/images/locale/gl/LC_MESSAGES/django.po +1 -10
  990. wagtail/images/locale/he_IL/LC_MESSAGES/django.po +1 -1
  991. wagtail/images/locale/hi/LC_MESSAGES/django.po +1 -1
  992. wagtail/images/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  993. wagtail/images/locale/hr_HR/LC_MESSAGES/django.po +1 -4
  994. wagtail/images/locale/ht/LC_MESSAGES/django.po +1 -1
  995. wagtail/images/locale/hu/LC_MESSAGES/django.mo +0 -0
  996. wagtail/images/locale/hu/LC_MESSAGES/django.po +1 -10
  997. wagtail/images/locale/id_ID/LC_MESSAGES/django.po +1 -1
  998. wagtail/images/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  999. wagtail/images/locale/is_IS/LC_MESSAGES/django.po +1 -10
  1000. wagtail/images/locale/it/LC_MESSAGES/django.mo +0 -0
  1001. wagtail/images/locale/it/LC_MESSAGES/django.po +18 -7
  1002. wagtail/images/locale/ja/LC_MESSAGES/django.po +1 -1
  1003. wagtail/images/locale/ka/LC_MESSAGES/django.po +1 -1
  1004. wagtail/images/locale/ko/LC_MESSAGES/django.mo +0 -0
  1005. wagtail/images/locale/ko/LC_MESSAGES/django.po +1 -4
  1006. wagtail/images/locale/lt/LC_MESSAGES/django.mo +0 -0
  1007. wagtail/images/locale/lt/LC_MESSAGES/django.po +1 -4
  1008. wagtail/images/locale/lv/LC_MESSAGES/django.po +1 -1
  1009. wagtail/images/locale/mi/LC_MESSAGES/django.po +1 -1
  1010. wagtail/images/locale/mn/LC_MESSAGES/django.po +1 -1
  1011. wagtail/images/locale/my/LC_MESSAGES/django.po +1 -1
  1012. wagtail/images/locale/nb/LC_MESSAGES/django.mo +0 -0
  1013. wagtail/images/locale/nb/LC_MESSAGES/django.po +1 -10
  1014. wagtail/images/locale/nl/LC_MESSAGES/django.mo +0 -0
  1015. wagtail/images/locale/nl/LC_MESSAGES/django.po +1 -10
  1016. wagtail/images/locale/pl/LC_MESSAGES/django.mo +0 -0
  1017. wagtail/images/locale/pl/LC_MESSAGES/django.po +1 -10
  1018. wagtail/images/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  1019. wagtail/images/locale/pt_BR/LC_MESSAGES/django.po +1 -4
  1020. wagtail/images/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  1021. wagtail/images/locale/pt_PT/LC_MESSAGES/django.po +5 -4
  1022. wagtail/images/locale/ro/LC_MESSAGES/django.mo +0 -0
  1023. wagtail/images/locale/ro/LC_MESSAGES/django.po +1 -10
  1024. wagtail/images/locale/ru/LC_MESSAGES/django.mo +0 -0
  1025. wagtail/images/locale/ru/LC_MESSAGES/django.po +3 -12
  1026. wagtail/images/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1027. wagtail/images/locale/sl/LC_MESSAGES/django.mo +0 -0
  1028. wagtail/images/locale/sl/LC_MESSAGES/django.po +1 -10
  1029. wagtail/images/locale/sv/LC_MESSAGES/django.mo +0 -0
  1030. wagtail/images/locale/sv/LC_MESSAGES/django.po +1 -10
  1031. wagtail/images/locale/tet/LC_MESSAGES/django.po +1 -1
  1032. wagtail/images/locale/th/LC_MESSAGES/django.po +1 -1
  1033. wagtail/images/locale/tr/LC_MESSAGES/django.po +1 -1
  1034. wagtail/images/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1035. wagtail/images/locale/uk/LC_MESSAGES/django.mo +0 -0
  1036. wagtail/images/locale/uk/LC_MESSAGES/django.po +1 -7
  1037. wagtail/images/locale/vi/LC_MESSAGES/django.po +1 -1
  1038. wagtail/images/locale/zh/LC_MESSAGES/django.po +1 -1
  1039. wagtail/images/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  1040. wagtail/images/locale/zh_Hans/LC_MESSAGES/django.po +1 -4
  1041. wagtail/images/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  1042. wagtail/images/locale/zh_Hant/LC_MESSAGES/django.po +1 -4
  1043. wagtail/images/migrations/0026_delete_uploadedimage.py +16 -0
  1044. wagtail/images/models.py +49 -43
  1045. wagtail/images/rich_text/__init__.py +18 -8
  1046. wagtail/images/static/wagtailimages/js/image-chooser-modal.js +1 -1
  1047. wagtail/images/static/wagtailimages/js/image-chooser-telepath.js +1 -1
  1048. wagtail/images/static/wagtailimages/js/image-chooser.js +1 -1
  1049. wagtail/images/templates/wagtailimages/images/image_listing_header.html +6 -0
  1050. wagtail/images/templates/wagtailimages/images/index.html +11 -51
  1051. wagtail/images/tests/test_admin_views.py +119 -62
  1052. wagtail/images/tests/test_image_operations.py +10 -0
  1053. wagtail/images/tests/test_models.py +35 -33
  1054. wagtail/images/tests/test_rich_text.py +14 -0
  1055. wagtail/images/tests/utils.py +1 -1
  1056. wagtail/images/views/images.py +35 -64
  1057. wagtail/images/views/multiple.py +6 -7
  1058. wagtail/images/wagtail_hooks.py +4 -14
  1059. wagtail/locale/af/LC_MESSAGES/django.po +1 -1
  1060. wagtail/locale/ar/LC_MESSAGES/django.mo +0 -0
  1061. wagtail/locale/ar/LC_MESSAGES/django.po +4 -10
  1062. wagtail/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  1063. wagtail/locale/be/LC_MESSAGES/django.mo +0 -0
  1064. wagtail/locale/be/LC_MESSAGES/django.po +4 -10
  1065. wagtail/locale/bg/LC_MESSAGES/django.po +1 -1
  1066. wagtail/locale/bn/LC_MESSAGES/django.po +1 -1
  1067. wagtail/locale/ca/LC_MESSAGES/django.mo +0 -0
  1068. wagtail/locale/ca/LC_MESSAGES/django.po +25 -10
  1069. wagtail/locale/cs/LC_MESSAGES/django.mo +0 -0
  1070. wagtail/locale/cs/LC_MESSAGES/django.po +4 -10
  1071. wagtail/locale/cy/LC_MESSAGES/django.mo +0 -0
  1072. wagtail/locale/cy/LC_MESSAGES/django.po +4 -1
  1073. wagtail/locale/da/LC_MESSAGES/django.mo +0 -0
  1074. wagtail/locale/da/LC_MESSAGES/django.po +4 -1
  1075. wagtail/locale/de/LC_MESSAGES/django.mo +0 -0
  1076. wagtail/locale/de/LC_MESSAGES/django.po +22 -9
  1077. wagtail/locale/dv/LC_MESSAGES/django.mo +0 -0
  1078. wagtail/locale/dv/LC_MESSAGES/django.po +4 -10
  1079. wagtail/locale/el/LC_MESSAGES/django.mo +0 -0
  1080. wagtail/locale/el/LC_MESSAGES/django.po +4 -10
  1081. wagtail/locale/en/LC_MESSAGES/django.po +150 -136
  1082. wagtail/locale/es/LC_MESSAGES/django.mo +0 -0
  1083. wagtail/locale/es/LC_MESSAGES/django.po +4 -10
  1084. wagtail/locale/es_419/LC_MESSAGES/django.po +1 -1
  1085. wagtail/locale/et/LC_MESSAGES/django.mo +0 -0
  1086. wagtail/locale/et/LC_MESSAGES/django.po +4 -10
  1087. wagtail/locale/eu/LC_MESSAGES/django.po +1 -1
  1088. wagtail/locale/fa/LC_MESSAGES/django.mo +0 -0
  1089. wagtail/locale/fa/LC_MESSAGES/django.po +4 -10
  1090. wagtail/locale/fi/LC_MESSAGES/django.mo +0 -0
  1091. wagtail/locale/fi/LC_MESSAGES/django.po +4 -10
  1092. wagtail/locale/fr/LC_MESSAGES/django.mo +0 -0
  1093. wagtail/locale/fr/LC_MESSAGES/django.po +4 -10
  1094. wagtail/locale/gl/LC_MESSAGES/django.mo +0 -0
  1095. wagtail/locale/gl/LC_MESSAGES/django.po +22 -9
  1096. wagtail/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  1097. wagtail/locale/he_IL/LC_MESSAGES/django.po +1 -4
  1098. wagtail/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  1099. wagtail/locale/hr_HR/LC_MESSAGES/django.po +4 -10
  1100. wagtail/locale/hu/LC_MESSAGES/django.mo +0 -0
  1101. wagtail/locale/hu/LC_MESSAGES/django.po +4 -10
  1102. wagtail/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  1103. wagtail/locale/id_ID/LC_MESSAGES/django.po +4 -10
  1104. wagtail/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  1105. wagtail/locale/is_IS/LC_MESSAGES/django.po +4 -10
  1106. wagtail/locale/it/LC_MESSAGES/django.mo +0 -0
  1107. wagtail/locale/it/LC_MESSAGES/django.po +29 -10
  1108. wagtail/locale/ja/LC_MESSAGES/django.mo +0 -0
  1109. wagtail/locale/ja/LC_MESSAGES/django.po +4 -10
  1110. wagtail/locale/ka/LC_MESSAGES/django.po +1 -1
  1111. wagtail/locale/ko/LC_MESSAGES/django.mo +0 -0
  1112. wagtail/locale/ko/LC_MESSAGES/django.po +4 -10
  1113. wagtail/locale/lt/LC_MESSAGES/django.mo +0 -0
  1114. wagtail/locale/lt/LC_MESSAGES/django.po +4 -10
  1115. wagtail/locale/lv/LC_MESSAGES/django.mo +0 -0
  1116. wagtail/locale/lv/LC_MESSAGES/django.po +1 -4
  1117. wagtail/locale/mi/LC_MESSAGES/django.mo +0 -0
  1118. wagtail/locale/mi/LC_MESSAGES/django.po +4 -10
  1119. wagtail/locale/mn/LC_MESSAGES/django.mo +0 -0
  1120. wagtail/locale/mn/LC_MESSAGES/django.po +4 -10
  1121. wagtail/locale/my/LC_MESSAGES/django.po +1 -1
  1122. wagtail/locale/nb/LC_MESSAGES/django.mo +0 -0
  1123. wagtail/locale/nb/LC_MESSAGES/django.po +4 -10
  1124. wagtail/locale/nl/LC_MESSAGES/django.mo +0 -0
  1125. wagtail/locale/nl/LC_MESSAGES/django.po +4 -10
  1126. wagtail/locale/pl/LC_MESSAGES/django.mo +0 -0
  1127. wagtail/locale/pl/LC_MESSAGES/django.po +4 -10
  1128. wagtail/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  1129. wagtail/locale/pt_BR/LC_MESSAGES/django.po +4 -10
  1130. wagtail/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  1131. wagtail/locale/pt_PT/LC_MESSAGES/django.po +4 -10
  1132. wagtail/locale/ro/LC_MESSAGES/django.mo +0 -0
  1133. wagtail/locale/ro/LC_MESSAGES/django.po +4 -10
  1134. wagtail/locale/ru/LC_MESSAGES/django.mo +0 -0
  1135. wagtail/locale/ru/LC_MESSAGES/django.po +22 -9
  1136. wagtail/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  1137. wagtail/locale/sk_SK/LC_MESSAGES/django.po +4 -10
  1138. wagtail/locale/sl/LC_MESSAGES/django.mo +0 -0
  1139. wagtail/locale/sl/LC_MESSAGES/django.po +1 -10
  1140. wagtail/locale/sv/LC_MESSAGES/django.mo +0 -0
  1141. wagtail/locale/sv/LC_MESSAGES/django.po +4 -10
  1142. wagtail/locale/tet/LC_MESSAGES/django.mo +0 -0
  1143. wagtail/locale/tet/LC_MESSAGES/django.po +4 -4
  1144. wagtail/locale/th/LC_MESSAGES/django.mo +0 -0
  1145. wagtail/locale/th/LC_MESSAGES/django.po +4 -10
  1146. wagtail/locale/tr/LC_MESSAGES/django.mo +0 -0
  1147. wagtail/locale/tr/LC_MESSAGES/django.po +4 -10
  1148. wagtail/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  1149. wagtail/locale/tr_TR/LC_MESSAGES/django.po +4 -10
  1150. wagtail/locale/uk/LC_MESSAGES/django.mo +0 -0
  1151. wagtail/locale/uk/LC_MESSAGES/django.po +8 -8
  1152. wagtail/locale/vi/LC_MESSAGES/django.mo +0 -0
  1153. wagtail/locale/vi/LC_MESSAGES/django.po +4 -1
  1154. wagtail/locale/zh/LC_MESSAGES/django.po +1 -1
  1155. wagtail/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  1156. wagtail/locale/zh_Hans/LC_MESSAGES/django.po +4 -10
  1157. wagtail/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  1158. wagtail/locale/zh_Hant/LC_MESSAGES/django.po +4 -10
  1159. wagtail/locales/locale/ar/LC_MESSAGES/django.po +1 -1
  1160. wagtail/locales/locale/be/LC_MESSAGES/django.po +1 -1
  1161. wagtail/locales/locale/bg/LC_MESSAGES/django.po +1 -1
  1162. wagtail/locales/locale/ca/LC_MESSAGES/django.po +1 -1
  1163. wagtail/locales/locale/cs/LC_MESSAGES/django.po +1 -1
  1164. wagtail/locales/locale/cy/LC_MESSAGES/django.po +1 -1
  1165. wagtail/locales/locale/da/LC_MESSAGES/django.po +1 -1
  1166. wagtail/locales/locale/de/LC_MESSAGES/django.po +1 -1
  1167. wagtail/locales/locale/dv/LC_MESSAGES/django.po +1 -1
  1168. wagtail/locales/locale/el/LC_MESSAGES/django.po +1 -1
  1169. wagtail/locales/locale/en/LC_MESSAGES/django.po +1 -1
  1170. wagtail/locales/locale/es/LC_MESSAGES/django.po +1 -1
  1171. wagtail/locales/locale/et/LC_MESSAGES/django.po +1 -1
  1172. wagtail/locales/locale/fa/LC_MESSAGES/django.po +1 -1
  1173. wagtail/locales/locale/fi/LC_MESSAGES/django.po +1 -1
  1174. wagtail/locales/locale/fr/LC_MESSAGES/django.po +1 -1
  1175. wagtail/locales/locale/gl/LC_MESSAGES/django.po +1 -1
  1176. wagtail/locales/locale/he_IL/LC_MESSAGES/django.po +1 -1
  1177. wagtail/locales/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  1178. wagtail/locales/locale/hu/LC_MESSAGES/django.po +1 -1
  1179. wagtail/locales/locale/id_ID/LC_MESSAGES/django.po +1 -1
  1180. wagtail/locales/locale/is_IS/LC_MESSAGES/django.po +1 -1
  1181. wagtail/locales/locale/it/LC_MESSAGES/django.po +1 -1
  1182. wagtail/locales/locale/ja/LC_MESSAGES/django.po +1 -1
  1183. wagtail/locales/locale/ko/LC_MESSAGES/django.po +1 -1
  1184. wagtail/locales/locale/lt/LC_MESSAGES/django.po +1 -1
  1185. wagtail/locales/locale/lv/LC_MESSAGES/django.po +1 -1
  1186. wagtail/locales/locale/mi/LC_MESSAGES/django.po +1 -1
  1187. wagtail/locales/locale/mn/LC_MESSAGES/django.po +1 -1
  1188. wagtail/locales/locale/my/LC_MESSAGES/django.po +1 -1
  1189. wagtail/locales/locale/nb/LC_MESSAGES/django.po +1 -1
  1190. wagtail/locales/locale/nl/LC_MESSAGES/django.po +1 -1
  1191. wagtail/locales/locale/pl/LC_MESSAGES/django.po +1 -1
  1192. wagtail/locales/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  1193. wagtail/locales/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1194. wagtail/locales/locale/ro/LC_MESSAGES/django.po +1 -1
  1195. wagtail/locales/locale/ru/LC_MESSAGES/django.po +1 -1
  1196. wagtail/locales/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1197. wagtail/locales/locale/sl/LC_MESSAGES/django.po +1 -1
  1198. wagtail/locales/locale/sv/LC_MESSAGES/django.po +1 -1
  1199. wagtail/locales/locale/tet/LC_MESSAGES/django.po +1 -1
  1200. wagtail/locales/locale/th/LC_MESSAGES/django.po +1 -1
  1201. wagtail/locales/locale/tr/LC_MESSAGES/django.po +1 -1
  1202. wagtail/locales/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1203. wagtail/locales/locale/uk/LC_MESSAGES/django.po +1 -1
  1204. wagtail/locales/locale/vi/LC_MESSAGES/django.po +1 -1
  1205. wagtail/locales/locale/zh/LC_MESSAGES/django.po +1 -1
  1206. wagtail/locales/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1207. wagtail/locales/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1208. wagtail/locales/tests.py +18 -3
  1209. wagtail/locales/views.py +0 -1
  1210. wagtail/management/commands/convert_mariadb_uuids.py +43 -0
  1211. wagtail/management/commands/rebuild_references_index.py +3 -1
  1212. wagtail/migrations/0092_alter_collectionviewrestriction_password_and_more.py +33 -0
  1213. wagtail/migrations/0093_uploadedfile.py +53 -0
  1214. wagtail/models/__init__.py +147 -32
  1215. wagtail/models/collections.py +4 -189
  1216. wagtail/models/i18n.py +1 -1
  1217. wagtail/models/media.py +221 -0
  1218. wagtail/models/reference_index.py +1 -1
  1219. wagtail/models/view_restrictions.py +10 -3
  1220. wagtail/project_template/project_name/settings/base.py +6 -0
  1221. wagtail/project_template/requirements.txt +1 -1
  1222. wagtail/rich_text/__init__.py +25 -8
  1223. wagtail/rich_text/pages.py +19 -8
  1224. wagtail/rich_text/rewriters.py +140 -68
  1225. wagtail/search/backends/database/mysql/mysql.py +3 -3
  1226. wagtail/search/backends/database/postgres/postgres.py +3 -3
  1227. wagtail/search/backends/database/sqlite/sqlite.py +2 -2
  1228. wagtail/search/backends/elasticsearch7.py +4 -0
  1229. wagtail/search/locale/ar/LC_MESSAGES/django.po +1 -1
  1230. wagtail/search/locale/be/LC_MESSAGES/django.po +1 -1
  1231. wagtail/search/locale/ca/LC_MESSAGES/django.po +1 -1
  1232. wagtail/search/locale/cs/LC_MESSAGES/django.po +1 -1
  1233. wagtail/search/locale/cy/LC_MESSAGES/django.po +1 -1
  1234. wagtail/search/locale/de/LC_MESSAGES/django.po +1 -1
  1235. wagtail/search/locale/dv/LC_MESSAGES/django.po +1 -1
  1236. wagtail/search/locale/en/LC_MESSAGES/django.po +3 -3
  1237. wagtail/search/locale/es/LC_MESSAGES/django.po +1 -1
  1238. wagtail/search/locale/et/LC_MESSAGES/django.po +1 -1
  1239. wagtail/search/locale/fi/LC_MESSAGES/django.po +1 -1
  1240. wagtail/search/locale/fr/LC_MESSAGES/django.po +1 -1
  1241. wagtail/search/locale/gl/LC_MESSAGES/django.po +1 -1
  1242. wagtail/search/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  1243. wagtail/search/locale/ht/LC_MESSAGES/django.po +1 -1
  1244. wagtail/search/locale/hu/LC_MESSAGES/django.po +1 -1
  1245. wagtail/search/locale/id_ID/LC_MESSAGES/django.po +1 -1
  1246. wagtail/search/locale/is_IS/LC_MESSAGES/django.po +1 -1
  1247. wagtail/search/locale/it/LC_MESSAGES/django.po +1 -1
  1248. wagtail/search/locale/ja/LC_MESSAGES/django.po +1 -1
  1249. wagtail/search/locale/ko/LC_MESSAGES/django.po +1 -1
  1250. wagtail/search/locale/lt/LC_MESSAGES/django.po +1 -1
  1251. wagtail/search/locale/mi/LC_MESSAGES/django.po +1 -1
  1252. wagtail/search/locale/mn/LC_MESSAGES/django.po +1 -1
  1253. wagtail/search/locale/my/LC_MESSAGES/django.po +1 -1
  1254. wagtail/search/locale/nb/LC_MESSAGES/django.po +1 -1
  1255. wagtail/search/locale/nl/LC_MESSAGES/django.po +1 -1
  1256. wagtail/search/locale/pl/LC_MESSAGES/django.po +1 -1
  1257. wagtail/search/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  1258. wagtail/search/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1259. wagtail/search/locale/ro/LC_MESSAGES/django.po +1 -1
  1260. wagtail/search/locale/ru/LC_MESSAGES/django.po +1 -1
  1261. wagtail/search/locale/sl/LC_MESSAGES/django.po +1 -1
  1262. wagtail/search/locale/sv/LC_MESSAGES/django.po +1 -1
  1263. wagtail/search/locale/tet/LC_MESSAGES/django.po +1 -1
  1264. wagtail/search/locale/th/LC_MESSAGES/django.po +1 -1
  1265. wagtail/search/locale/tr/LC_MESSAGES/django.po +1 -1
  1266. wagtail/search/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1267. wagtail/search/locale/uk/LC_MESSAGES/django.po +1 -1
  1268. wagtail/search/locale/vi/LC_MESSAGES/django.po +1 -1
  1269. wagtail/search/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1270. wagtail/search/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1271. wagtail/search/tests/test_postgres_backend.py +50 -0
  1272. wagtail/sites/locale/ar/LC_MESSAGES/django.po +1 -1
  1273. wagtail/sites/locale/be/LC_MESSAGES/django.po +1 -1
  1274. wagtail/sites/locale/bn/LC_MESSAGES/django.po +1 -1
  1275. wagtail/sites/locale/ca/LC_MESSAGES/django.po +1 -1
  1276. wagtail/sites/locale/cs/LC_MESSAGES/django.po +1 -1
  1277. wagtail/sites/locale/cy/LC_MESSAGES/django.po +1 -1
  1278. wagtail/sites/locale/da/LC_MESSAGES/django.po +1 -1
  1279. wagtail/sites/locale/de/LC_MESSAGES/django.po +1 -1
  1280. wagtail/sites/locale/dv/LC_MESSAGES/django.po +1 -1
  1281. wagtail/sites/locale/el/LC_MESSAGES/django.po +1 -1
  1282. wagtail/sites/locale/en/LC_MESSAGES/django.po +8 -8
  1283. wagtail/sites/locale/en_IN/LC_MESSAGES/django.po +1 -1
  1284. wagtail/sites/locale/es/LC_MESSAGES/django.po +1 -1
  1285. wagtail/sites/locale/es_419/LC_MESSAGES/django.po +1 -1
  1286. wagtail/sites/locale/es_VE/LC_MESSAGES/django.po +1 -1
  1287. wagtail/sites/locale/et/LC_MESSAGES/django.po +1 -1
  1288. wagtail/sites/locale/fa/LC_MESSAGES/django.po +1 -1
  1289. wagtail/sites/locale/fi/LC_MESSAGES/django.po +1 -1
  1290. wagtail/sites/locale/fr/LC_MESSAGES/django.po +1 -1
  1291. wagtail/sites/locale/gl/LC_MESSAGES/django.po +1 -1
  1292. wagtail/sites/locale/he_IL/LC_MESSAGES/django.po +1 -1
  1293. wagtail/sites/locale/hi/LC_MESSAGES/django.po +1 -1
  1294. wagtail/sites/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  1295. wagtail/sites/locale/ht/LC_MESSAGES/django.po +1 -1
  1296. wagtail/sites/locale/hu/LC_MESSAGES/django.po +1 -1
  1297. wagtail/sites/locale/id_ID/LC_MESSAGES/django.po +1 -1
  1298. wagtail/sites/locale/is_IS/LC_MESSAGES/django.po +1 -1
  1299. wagtail/sites/locale/it/LC_MESSAGES/django.po +1 -1
  1300. wagtail/sites/locale/ja/LC_MESSAGES/django.po +1 -1
  1301. wagtail/sites/locale/ka/LC_MESSAGES/django.po +1 -1
  1302. wagtail/sites/locale/ko/LC_MESSAGES/django.po +1 -1
  1303. wagtail/sites/locale/lt/LC_MESSAGES/django.po +1 -1
  1304. wagtail/sites/locale/lv/LC_MESSAGES/django.po +1 -1
  1305. wagtail/sites/locale/mi/LC_MESSAGES/django.po +1 -1
  1306. wagtail/sites/locale/mn/LC_MESSAGES/django.po +1 -1
  1307. wagtail/sites/locale/my/LC_MESSAGES/django.po +1 -1
  1308. wagtail/sites/locale/nb/LC_MESSAGES/django.po +1 -1
  1309. wagtail/sites/locale/nl/LC_MESSAGES/django.po +1 -1
  1310. wagtail/sites/locale/pl/LC_MESSAGES/django.po +1 -1
  1311. wagtail/sites/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  1312. wagtail/sites/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1313. wagtail/sites/locale/ro/LC_MESSAGES/django.po +1 -1
  1314. wagtail/sites/locale/ru/LC_MESSAGES/django.po +1 -1
  1315. wagtail/sites/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1316. wagtail/sites/locale/sl/LC_MESSAGES/django.po +1 -1
  1317. wagtail/sites/locale/sr/LC_MESSAGES/django.po +1 -1
  1318. wagtail/sites/locale/sv/LC_MESSAGES/django.po +1 -1
  1319. wagtail/sites/locale/ta/LC_MESSAGES/django.po +1 -1
  1320. wagtail/sites/locale/tet/LC_MESSAGES/django.po +1 -1
  1321. wagtail/sites/locale/th/LC_MESSAGES/django.po +1 -1
  1322. wagtail/sites/locale/tr/LC_MESSAGES/django.po +1 -1
  1323. wagtail/sites/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1324. wagtail/sites/locale/uk/LC_MESSAGES/django.po +1 -1
  1325. wagtail/sites/locale/vi/LC_MESSAGES/django.po +1 -1
  1326. wagtail/sites/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1327. wagtail/sites/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1328. wagtail/sites/tests.py +35 -9
  1329. wagtail/sites/views.py +3 -1
  1330. wagtail/snippets/locale/af/LC_MESSAGES/django.mo +0 -0
  1331. wagtail/snippets/locale/af/LC_MESSAGES/django.po +1 -4
  1332. wagtail/snippets/locale/ar/LC_MESSAGES/django.mo +0 -0
  1333. wagtail/snippets/locale/ar/LC_MESSAGES/django.po +1 -19
  1334. wagtail/snippets/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  1335. wagtail/snippets/locale/be/LC_MESSAGES/django.mo +0 -0
  1336. wagtail/snippets/locale/be/LC_MESSAGES/django.po +1 -22
  1337. wagtail/snippets/locale/bg/LC_MESSAGES/django.mo +0 -0
  1338. wagtail/snippets/locale/bg/LC_MESSAGES/django.po +1 -10
  1339. wagtail/snippets/locale/bn/LC_MESSAGES/django.mo +0 -0
  1340. wagtail/snippets/locale/bn/LC_MESSAGES/django.po +1 -4
  1341. wagtail/snippets/locale/ca/LC_MESSAGES/django.mo +0 -0
  1342. wagtail/snippets/locale/ca/LC_MESSAGES/django.po +1 -31
  1343. wagtail/snippets/locale/cs/LC_MESSAGES/django.mo +0 -0
  1344. wagtail/snippets/locale/cs/LC_MESSAGES/django.po +1 -31
  1345. wagtail/snippets/locale/cy/LC_MESSAGES/django.mo +0 -0
  1346. wagtail/snippets/locale/cy/LC_MESSAGES/django.po +1 -13
  1347. wagtail/snippets/locale/da/LC_MESSAGES/django.mo +0 -0
  1348. wagtail/snippets/locale/da/LC_MESSAGES/django.po +1 -16
  1349. wagtail/snippets/locale/de/LC_MESSAGES/django.mo +0 -0
  1350. wagtail/snippets/locale/de/LC_MESSAGES/django.po +6 -37
  1351. wagtail/snippets/locale/dv/LC_MESSAGES/django.mo +0 -0
  1352. wagtail/snippets/locale/dv/LC_MESSAGES/django.po +1 -31
  1353. wagtail/snippets/locale/el/LC_MESSAGES/django.mo +0 -0
  1354. wagtail/snippets/locale/el/LC_MESSAGES/django.po +1 -19
  1355. wagtail/snippets/locale/en/LC_MESSAGES/django.po +16 -56
  1356. wagtail/snippets/locale/en_IN/LC_MESSAGES/django.po +1 -1
  1357. wagtail/snippets/locale/es/LC_MESSAGES/django.mo +0 -0
  1358. wagtail/snippets/locale/es/LC_MESSAGES/django.po +1 -31
  1359. wagtail/snippets/locale/es_419/LC_MESSAGES/django.mo +0 -0
  1360. wagtail/snippets/locale/es_419/LC_MESSAGES/django.po +1 -4
  1361. wagtail/snippets/locale/es_VE/LC_MESSAGES/django.po +1 -1
  1362. wagtail/snippets/locale/et/LC_MESSAGES/django.mo +0 -0
  1363. wagtail/snippets/locale/et/LC_MESSAGES/django.po +1 -31
  1364. wagtail/snippets/locale/eu/LC_MESSAGES/django.mo +0 -0
  1365. wagtail/snippets/locale/eu/LC_MESSAGES/django.po +1 -7
  1366. wagtail/snippets/locale/fa/LC_MESSAGES/django.mo +0 -0
  1367. wagtail/snippets/locale/fa/LC_MESSAGES/django.po +1 -28
  1368. wagtail/snippets/locale/fi/LC_MESSAGES/django.mo +0 -0
  1369. wagtail/snippets/locale/fi/LC_MESSAGES/django.po +1 -31
  1370. wagtail/snippets/locale/fr/LC_MESSAGES/django.mo +0 -0
  1371. wagtail/snippets/locale/fr/LC_MESSAGES/django.po +1 -31
  1372. wagtail/snippets/locale/gl/LC_MESSAGES/django.mo +0 -0
  1373. wagtail/snippets/locale/gl/LC_MESSAGES/django.po +1 -31
  1374. wagtail/snippets/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  1375. wagtail/snippets/locale/he_IL/LC_MESSAGES/django.po +1 -10
  1376. wagtail/snippets/locale/hi/LC_MESSAGES/django.po +1 -1
  1377. wagtail/snippets/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  1378. wagtail/snippets/locale/hr_HR/LC_MESSAGES/django.po +1 -31
  1379. wagtail/snippets/locale/ht/LC_MESSAGES/django.mo +0 -0
  1380. wagtail/snippets/locale/ht/LC_MESSAGES/django.po +1 -7
  1381. wagtail/snippets/locale/hu/LC_MESSAGES/django.mo +0 -0
  1382. wagtail/snippets/locale/hu/LC_MESSAGES/django.po +1 -31
  1383. wagtail/snippets/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  1384. wagtail/snippets/locale/id_ID/LC_MESSAGES/django.po +1 -19
  1385. wagtail/snippets/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  1386. wagtail/snippets/locale/is_IS/LC_MESSAGES/django.po +1 -31
  1387. wagtail/snippets/locale/it/LC_MESSAGES/django.mo +0 -0
  1388. wagtail/snippets/locale/it/LC_MESSAGES/django.po +1 -31
  1389. wagtail/snippets/locale/ja/LC_MESSAGES/django.mo +0 -0
  1390. wagtail/snippets/locale/ja/LC_MESSAGES/django.po +1 -25
  1391. wagtail/snippets/locale/ka/LC_MESSAGES/django.mo +0 -0
  1392. wagtail/snippets/locale/ka/LC_MESSAGES/django.po +1 -7
  1393. wagtail/snippets/locale/ko/LC_MESSAGES/django.mo +0 -0
  1394. wagtail/snippets/locale/ko/LC_MESSAGES/django.po +1 -31
  1395. wagtail/snippets/locale/lt/LC_MESSAGES/django.mo +0 -0
  1396. wagtail/snippets/locale/lt/LC_MESSAGES/django.po +1 -31
  1397. wagtail/snippets/locale/lv/LC_MESSAGES/django.mo +0 -0
  1398. wagtail/snippets/locale/lv/LC_MESSAGES/django.po +1 -13
  1399. wagtail/snippets/locale/mi/LC_MESSAGES/django.mo +0 -0
  1400. wagtail/snippets/locale/mi/LC_MESSAGES/django.po +1 -10
  1401. wagtail/snippets/locale/mn/LC_MESSAGES/django.mo +0 -0
  1402. wagtail/snippets/locale/mn/LC_MESSAGES/django.po +1 -22
  1403. wagtail/snippets/locale/my/LC_MESSAGES/django.mo +0 -0
  1404. wagtail/snippets/locale/my/LC_MESSAGES/django.po +1 -7
  1405. wagtail/snippets/locale/nb/LC_MESSAGES/django.mo +0 -0
  1406. wagtail/snippets/locale/nb/LC_MESSAGES/django.po +1 -31
  1407. wagtail/snippets/locale/nl/LC_MESSAGES/django.mo +0 -0
  1408. wagtail/snippets/locale/nl/LC_MESSAGES/django.po +1 -31
  1409. wagtail/snippets/locale/pl/LC_MESSAGES/django.mo +0 -0
  1410. wagtail/snippets/locale/pl/LC_MESSAGES/django.po +1 -31
  1411. wagtail/snippets/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  1412. wagtail/snippets/locale/pt_BR/LC_MESSAGES/django.po +1 -31
  1413. wagtail/snippets/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  1414. wagtail/snippets/locale/pt_PT/LC_MESSAGES/django.po +1 -31
  1415. wagtail/snippets/locale/ro/LC_MESSAGES/django.mo +0 -0
  1416. wagtail/snippets/locale/ro/LC_MESSAGES/django.po +1 -31
  1417. wagtail/snippets/locale/ru/LC_MESSAGES/django.mo +0 -0
  1418. wagtail/snippets/locale/ru/LC_MESSAGES/django.po +1 -31
  1419. wagtail/snippets/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  1420. wagtail/snippets/locale/sk_SK/LC_MESSAGES/django.po +1 -16
  1421. wagtail/snippets/locale/sl/LC_MESSAGES/django.mo +0 -0
  1422. wagtail/snippets/locale/sl/LC_MESSAGES/django.po +1 -31
  1423. wagtail/snippets/locale/sr/LC_MESSAGES/django.po +1 -1
  1424. wagtail/snippets/locale/sv/LC_MESSAGES/django.mo +0 -0
  1425. wagtail/snippets/locale/sv/LC_MESSAGES/django.po +1 -31
  1426. wagtail/snippets/locale/ta/LC_MESSAGES/django.po +1 -1
  1427. wagtail/snippets/locale/tet/LC_MESSAGES/django.mo +0 -0
  1428. wagtail/snippets/locale/tet/LC_MESSAGES/django.po +1 -19
  1429. wagtail/snippets/locale/th/LC_MESSAGES/django.mo +0 -0
  1430. wagtail/snippets/locale/th/LC_MESSAGES/django.po +1 -19
  1431. wagtail/snippets/locale/tr/LC_MESSAGES/django.mo +0 -0
  1432. wagtail/snippets/locale/tr/LC_MESSAGES/django.po +1 -19
  1433. wagtail/snippets/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  1434. wagtail/snippets/locale/tr_TR/LC_MESSAGES/django.po +1 -19
  1435. wagtail/snippets/locale/uk/LC_MESSAGES/django.mo +0 -0
  1436. wagtail/snippets/locale/uk/LC_MESSAGES/django.po +1 -31
  1437. wagtail/snippets/locale/vi/LC_MESSAGES/django.mo +0 -0
  1438. wagtail/snippets/locale/vi/LC_MESSAGES/django.po +1 -10
  1439. wagtail/snippets/locale/zh/LC_MESSAGES/django.mo +0 -0
  1440. wagtail/snippets/locale/zh/LC_MESSAGES/django.po +1 -10
  1441. wagtail/snippets/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  1442. wagtail/snippets/locale/zh_Hans/LC_MESSAGES/django.po +1 -31
  1443. wagtail/snippets/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  1444. wagtail/snippets/locale/zh_Hant/LC_MESSAGES/django.po +1 -31
  1445. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser-telepath.js +1 -1
  1446. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser.js +1 -1
  1447. wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/publish.html +3 -1
  1448. wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/save.html +3 -1
  1449. wagtail/snippets/templates/wagtailsnippets/snippets/create.html +1 -1
  1450. wagtail/snippets/templates/wagtailsnippets/snippets/edit.html +1 -1
  1451. wagtail/snippets/tests/test_preview.py +13 -2
  1452. wagtail/snippets/tests/test_snippets.py +41 -16
  1453. wagtail/snippets/tests/test_viewset.py +63 -18
  1454. wagtail/snippets/tests/test_workflows.py +12 -0
  1455. wagtail/snippets/views/snippets.py +1 -59
  1456. wagtail/templatetags/wagtailcore_tags.py +1 -1
  1457. wagtail/test/demosite/models.py +1 -1
  1458. wagtail/test/middleware.py +14 -1
  1459. wagtail/test/testapp/fixtures/test.json +20 -0
  1460. wagtail/test/testapp/migrations/0001_squashed_0073_revisablechildmodel_secret_text.py +8 -8
  1461. wagtail/test/testapp/migrations/0023_snippetchoosermodel_full_featured.py +1 -0
  1462. wagtail/test/testapp/migrations/0034_custompermissionmodel.py +44 -0
  1463. wagtail/test/testapp/migrations/0035_modelwithcustommanager.py +30 -0
  1464. wagtail/test/testapp/migrations/0036_complexdefaultstreampage.py +28 -0
  1465. wagtail/test/testapp/migrations/0037_testpermissionedgenericsetting_and_more.py +42 -0
  1466. wagtail/test/testapp/models.py +125 -2
  1467. wagtail/test/testapp/templates/tests/custom_docs_password_required.html +10 -0
  1468. wagtail/test/testapp/templates/tests/custom_page_password_required.html +10 -0
  1469. wagtail/test/testapp/views.py +25 -3
  1470. wagtail/test/testapp/wagtail_hooks.py +19 -0
  1471. wagtail/test/utils/wagtail_tests.py +2 -2
  1472. wagtail/tests/test_blocks.py +262 -1
  1473. wagtail/tests/test_migrations.py +1 -1
  1474. wagtail/tests/test_page_model.py +77 -0
  1475. wagtail/tests/test_page_privacy.py +18 -1
  1476. wagtail/tests/test_rich_text.py +95 -5
  1477. wagtail/tests/test_streamfield.py +43 -0
  1478. wagtail/tests/test_utils.py +8 -2
  1479. wagtail/tests/test_views.py +52 -1
  1480. wagtail/tests/test_whitelist.py +7 -7
  1481. wagtail/users/forms.py +3 -1
  1482. wagtail/users/locale/af/LC_MESSAGES/django.po +1 -1
  1483. wagtail/users/locale/ar/LC_MESSAGES/django.mo +0 -0
  1484. wagtail/users/locale/ar/LC_MESSAGES/django.po +16 -20
  1485. wagtail/users/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  1486. wagtail/users/locale/be/LC_MESSAGES/django.mo +0 -0
  1487. wagtail/users/locale/be/LC_MESSAGES/django.po +25 -50
  1488. wagtail/users/locale/bg/LC_MESSAGES/django.mo +0 -0
  1489. wagtail/users/locale/bg/LC_MESSAGES/django.po +10 -13
  1490. wagtail/users/locale/bn/LC_MESSAGES/django.mo +0 -0
  1491. wagtail/users/locale/bn/LC_MESSAGES/django.po +1 -4
  1492. wagtail/users/locale/ca/LC_MESSAGES/django.mo +0 -0
  1493. wagtail/users/locale/ca/LC_MESSAGES/django.po +70 -50
  1494. wagtail/users/locale/cs/LC_MESSAGES/django.mo +0 -0
  1495. wagtail/users/locale/cs/LC_MESSAGES/django.po +21 -37
  1496. wagtail/users/locale/cy/LC_MESSAGES/django.mo +0 -0
  1497. wagtail/users/locale/cy/LC_MESSAGES/django.po +22 -39
  1498. wagtail/users/locale/da/LC_MESSAGES/django.mo +0 -0
  1499. wagtail/users/locale/da/LC_MESSAGES/django.po +1 -4
  1500. wagtail/users/locale/de/LC_MESSAGES/django.mo +0 -0
  1501. wagtail/users/locale/de/LC_MESSAGES/django.po +69 -50
  1502. wagtail/users/locale/dv/LC_MESSAGES/django.mo +0 -0
  1503. wagtail/users/locale/dv/LC_MESSAGES/django.po +7 -3
  1504. wagtail/users/locale/el/LC_MESSAGES/django.mo +0 -0
  1505. wagtail/users/locale/el/LC_MESSAGES/django.po +16 -17
  1506. wagtail/users/locale/en/LC_MESSAGES/django.po +124 -96
  1507. wagtail/users/locale/es/LC_MESSAGES/django.mo +0 -0
  1508. wagtail/users/locale/es/LC_MESSAGES/django.po +25 -37
  1509. wagtail/users/locale/es_419/LC_MESSAGES/django.mo +0 -0
  1510. wagtail/users/locale/es_419/LC_MESSAGES/django.po +1 -4
  1511. wagtail/users/locale/es_VE/LC_MESSAGES/django.po +1 -1
  1512. wagtail/users/locale/et/LC_MESSAGES/django.mo +0 -0
  1513. wagtail/users/locale/et/LC_MESSAGES/django.po +16 -31
  1514. wagtail/users/locale/eu/LC_MESSAGES/django.po +1 -1
  1515. wagtail/users/locale/fa/LC_MESSAGES/django.mo +0 -0
  1516. wagtail/users/locale/fa/LC_MESSAGES/django.po +13 -17
  1517. wagtail/users/locale/fi/LC_MESSAGES/django.mo +0 -0
  1518. wagtail/users/locale/fi/LC_MESSAGES/django.po +28 -49
  1519. wagtail/users/locale/fr/LC_MESSAGES/django.mo +0 -0
  1520. wagtail/users/locale/fr/LC_MESSAGES/django.po +29 -49
  1521. wagtail/users/locale/gl/LC_MESSAGES/django.mo +0 -0
  1522. wagtail/users/locale/gl/LC_MESSAGES/django.po +69 -49
  1523. wagtail/users/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  1524. wagtail/users/locale/he_IL/LC_MESSAGES/django.po +16 -13
  1525. wagtail/users/locale/hi/LC_MESSAGES/django.po +1 -1
  1526. wagtail/users/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  1527. wagtail/users/locale/hr_HR/LC_MESSAGES/django.po +29 -50
  1528. wagtail/users/locale/ht/LC_MESSAGES/django.mo +0 -0
  1529. wagtail/users/locale/ht/LC_MESSAGES/django.po +4 -4
  1530. wagtail/users/locale/hu/LC_MESSAGES/django.mo +0 -0
  1531. wagtail/users/locale/hu/LC_MESSAGES/django.po +29 -50
  1532. wagtail/users/locale/hy/LC_MESSAGES/django.po +1 -1
  1533. wagtail/users/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  1534. wagtail/users/locale/id_ID/LC_MESSAGES/django.po +13 -18
  1535. wagtail/users/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  1536. wagtail/users/locale/is_IS/LC_MESSAGES/django.po +29 -49
  1537. wagtail/users/locale/it/LC_MESSAGES/django.mo +0 -0
  1538. wagtail/users/locale/it/LC_MESSAGES/django.po +69 -50
  1539. wagtail/users/locale/ja/LC_MESSAGES/django.mo +0 -0
  1540. wagtail/users/locale/ja/LC_MESSAGES/django.po +16 -20
  1541. wagtail/users/locale/ka/LC_MESSAGES/django.mo +0 -0
  1542. wagtail/users/locale/ka/LC_MESSAGES/django.po +6 -6
  1543. wagtail/users/locale/ko/LC_MESSAGES/django.mo +0 -0
  1544. wagtail/users/locale/ko/LC_MESSAGES/django.po +16 -20
  1545. wagtail/users/locale/lt/LC_MESSAGES/django.mo +0 -0
  1546. wagtail/users/locale/lt/LC_MESSAGES/django.po +18 -25
  1547. wagtail/users/locale/lv/LC_MESSAGES/django.mo +0 -0
  1548. wagtail/users/locale/lv/LC_MESSAGES/django.po +16 -17
  1549. wagtail/users/locale/mi/LC_MESSAGES/django.mo +0 -0
  1550. wagtail/users/locale/mi/LC_MESSAGES/django.po +16 -19
  1551. wagtail/users/locale/mn/LC_MESSAGES/django.mo +0 -0
  1552. wagtail/users/locale/mn/LC_MESSAGES/django.po +20 -35
  1553. wagtail/users/locale/my/LC_MESSAGES/django.mo +0 -0
  1554. wagtail/users/locale/my/LC_MESSAGES/django.po +7 -11
  1555. wagtail/users/locale/nb/LC_MESSAGES/django.mo +0 -0
  1556. wagtail/users/locale/nb/LC_MESSAGES/django.po +32 -48
  1557. wagtail/users/locale/nl/LC_MESSAGES/django.mo +0 -0
  1558. wagtail/users/locale/nl/LC_MESSAGES/django.po +32 -48
  1559. wagtail/users/locale/pl/LC_MESSAGES/django.mo +0 -0
  1560. wagtail/users/locale/pl/LC_MESSAGES/django.po +29 -49
  1561. wagtail/users/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  1562. wagtail/users/locale/pt_BR/LC_MESSAGES/django.po +28 -40
  1563. wagtail/users/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  1564. wagtail/users/locale/pt_PT/LC_MESSAGES/django.po +25 -49
  1565. wagtail/users/locale/ro/LC_MESSAGES/django.mo +0 -0
  1566. wagtail/users/locale/ro/LC_MESSAGES/django.po +32 -50
  1567. wagtail/users/locale/ru/LC_MESSAGES/django.mo +0 -0
  1568. wagtail/users/locale/ru/LC_MESSAGES/django.po +69 -51
  1569. wagtail/users/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  1570. wagtail/users/locale/sk_SK/LC_MESSAGES/django.po +16 -19
  1571. wagtail/users/locale/sl/LC_MESSAGES/django.mo +0 -0
  1572. wagtail/users/locale/sl/LC_MESSAGES/django.po +29 -40
  1573. wagtail/users/locale/sv/LC_MESSAGES/django.mo +0 -0
  1574. wagtail/users/locale/sv/LC_MESSAGES/django.po +22 -37
  1575. wagtail/users/locale/tet/LC_MESSAGES/django.mo +0 -0
  1576. wagtail/users/locale/tet/LC_MESSAGES/django.po +13 -20
  1577. wagtail/users/locale/th/LC_MESSAGES/django.mo +0 -0
  1578. wagtail/users/locale/th/LC_MESSAGES/django.po +13 -20
  1579. wagtail/users/locale/tr/LC_MESSAGES/django.mo +0 -0
  1580. wagtail/users/locale/tr/LC_MESSAGES/django.po +13 -20
  1581. wagtail/users/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  1582. wagtail/users/locale/tr_TR/LC_MESSAGES/django.po +16 -20
  1583. wagtail/users/locale/uk/LC_MESSAGES/django.mo +0 -0
  1584. wagtail/users/locale/uk/LC_MESSAGES/django.po +29 -40
  1585. wagtail/users/locale/vi/LC_MESSAGES/django.mo +0 -0
  1586. wagtail/users/locale/vi/LC_MESSAGES/django.po +10 -14
  1587. wagtail/users/locale/zh/LC_MESSAGES/django.mo +0 -0
  1588. wagtail/users/locale/zh/LC_MESSAGES/django.po +10 -13
  1589. wagtail/users/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  1590. wagtail/users/locale/zh_Hans/LC_MESSAGES/django.po +25 -37
  1591. wagtail/users/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  1592. wagtail/users/locale/zh_Hant/LC_MESSAGES/django.po +16 -23
  1593. wagtail/users/migrations/0013_userprofile_density.py +23 -0
  1594. wagtail/users/models.py +14 -3
  1595. wagtail/users/templates/wagtailusers/groups/create.html +1 -7
  1596. wagtail/users/templates/wagtailusers/groups/edit.html +1 -13
  1597. wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html +46 -2
  1598. wagtail/users/templates/wagtailusers/groups/includes/group_form_js.html +0 -2
  1599. wagtail/users/templates/wagtailusers/users/create.html +1 -9
  1600. wagtail/users/templates/wagtailusers/users/edit.html +1 -9
  1601. wagtail/users/templates/wagtailusers/users/index.html +2 -5
  1602. wagtail/users/templates/wagtailusers/users/index_results.html +3 -13
  1603. wagtail/users/templates/wagtailusers/users/user_cell.html +9 -0
  1604. wagtail/users/templatetags/wagtailusers_tags.py +107 -20
  1605. wagtail/users/tests/test_admin_views.py +669 -90
  1606. wagtail/users/views/groups.py +58 -61
  1607. wagtail/users/views/users.py +211 -92
  1608. wagtail/users/wagtail_hooks.py +6 -38
  1609. wagtail/users/widgets.py +3 -5
  1610. wagtail/utils/text.py +1 -1
  1611. wagtail/views.py +5 -9
  1612. wagtail/whitelist.py +1 -1
  1613. {wagtail-6.0.2.dist-info → wagtail-6.1.dist-info}/METADATA +4 -5
  1614. {wagtail-6.0.2.dist-info → wagtail-6.1.dist-info}/RECORD +1618 -1596
  1615. wagtail/admin/static/wagtailadmin/js/page-editor.js +0 -1
  1616. wagtail/admin/static/wagtailadmin/js/vendor/mousetrap.min.js +0 -1
  1617. wagtail/admin/static/wagtailadmin/js/vendor/urlify.js +0 -1
  1618. wagtail/admin/static/wagtailadmin/js/vendor/xregexp.min.js +0 -1
  1619. wagtail/admin/templates/wagtailadmin/collections/index.html +0 -34
  1620. wagtail/admin/templates/wagtailadmin/pages/revisions/_actions.html +0 -22
  1621. wagtail/admin/templates/wagtailadmin/shared/page_breadcrumbs.html +0 -55
  1622. wagtail/admin/tests/pages/test_dashboard.py +0 -172
  1623. wagtail/contrib/redirects/templates/wagtailredirects/results.html +0 -23
  1624. wagtail/documents/templates/wagtaildocs/documents/list.html +0 -2
  1625. wagtail/search/tests/test_postgres_stemming.py +0 -40
  1626. wagtail/sites/templates/wagtailsites/create.html +0 -6
  1627. wagtail/sites/templates/wagtailsites/edit.html +0 -6
  1628. wagtail/snippets/templates/wagtailsnippets/snippets/revisions/_actions.html +0 -36
  1629. wagtail/users/templates/wagtailusers/users/list.html +0 -62
  1630. wagtail/users/urls/users.py +0 -12
  1631. {wagtail-6.0.2.dist-info → wagtail-6.1.dist-info}/LICENSE +0 -0
  1632. {wagtail-6.0.2.dist-info → wagtail-6.1.dist-info}/WHEEL +0 -0
  1633. {wagtail-6.0.2.dist-info → wagtail-6.1.dist-info}/entry_points.txt +0 -0
  1634. {wagtail-6.0.2.dist-info → wagtail-6.1.dist-info}/top_level.txt +0 -0
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see core.js.LICENSE.txt */
2
- (()=>{"use strict";var e,t={6525:(e,t,n)=>{var i=n(5311),o=n.n(i),r=n(6599),a=n(7647),s=n.n(a),l=n(1302),c=n(3407),h=n(5697),d=n.n(h);d().shape({live:d().bool.isRequired,status:d().string.isRequired}).isRequired;var u=n(335),p=n.n(u);const f=({name:e,component:t,className:n,duration:i,children:o})=>s().createElement(p(),{component:t,transitionEnterTimeout:i,transitionLeaveTimeout:i,transitionName:`w-transition-${e}`,className:n},o);f.propTypes={name:d().oneOf(["push","pop"]).isRequired,component:d().string,className:d().string,duration:d().number,children:d().node},f.defaultProps={component:"div",children:null,className:null,duration:210};var g=n(434);class m extends r.Controller{static values={continue:{type:Boolean,default:!1},url:String};click(){this.element.click()}noop(){}post(e){e.preventDefault(),e.stopPropagation();const t=document.createElement("form");t.action=this.urlValue,t.method="POST";const n=document.createElement("input");if(n.type="hidden",n.name="csrfmiddlewaretoken",n.value=g.QF.CSRF_TOKEN,t.appendChild(n),!this.continueValue){const e=document.createElement("input");e.type="hidden",e.name="next",e.value=window.location.href,t.appendChild(e)}document.body.appendChild(t),t.submit()}redirect(e){const t=e?.params?.url??e?.detail?.url??this.element.value;t&&window.location.assign(t)}reset(e){const t=this.element,n=t.value,{value:i=""}={value:t instanceof HTMLInputElement?t.defaultValue:"",...e?.params,...e?.detail};n!==i&&(t.value=i,this.dispatch("change",{bubbles:!0,cancelable:!1,prefix:"",target:t}))}select(){const e=this.element;e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.select()}}var v=new Map;function b(e){var t=v.get(e);t&&t.destroy()}function y(e){var t=v.get(e);t&&t.update()}var w=null;"undefined"==typeof window?((w=function(e){return e}).destroy=function(e){return e},w.update=function(e){return e}):((w=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!v.has(e)){var t,n=null,i=window.getComputedStyle(e),o=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),r=function(t){e.removeEventListener("autosize:destroy",r),e.removeEventListener("autosize:update",s),e.removeEventListener("input",o),window.removeEventListener("resize",s),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),v.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",r),e.addEventListener("autosize:update",s),e.addEventListener("input",o),window.addEventListener("resize",s),e.style.overflowX="hidden",e.style.wordWrap="break-word",v.set(e,{destroy:r,update:s}),s()}function a(t){var o,r,s=t.restoreTextAlign,l=void 0===s?null:s,c=t.testForHeightReduction,h=void 0===c||c,d=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),h&&(o=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),r="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&r>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),r=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=r+"px",l&&(e.style.textAlign=l),o&&o(),n!==r&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=r),d!==i.overflow&&!l)){var u=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===u?"end":"start"),a({restoreTextAlign:u,testForHeightReduction:!0})}}function s(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],b),e},w.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],y),e});const E=w;var C=n(9437);class T extends r.Controller{resizeObserver;resize(){E.update(this.element)}initialize(){this.resize=(0,C.D)(this.resize.bind(this),50)}connect(){E(this.element),this.resizeObserver=new ResizeObserver(this.resize),this.resizeObserver.observe(this.element)}disconnect(){this.resizeObserver?.disconnect(),E.destroy(this.element)}}class S extends r.Controller{static classes=["actionInactive"];static targets=["action","all","item"];lastChanged;shiftActive;connect(){this.toggle(),this.handleShiftKey=this.handleShiftKey.bind(this),document.addEventListener("keydown",this.handleShiftKey),document.addEventListener("keyup",this.handleShiftKey)}getValidTargets(e=this.itemTargets){return e.filter((({disabled:e})=>!e))}handleShiftKey(e){if(!e)return;const{shiftKey:t,type:n}=e;"keydown"===n&&t&&(this.shiftActive=!0),"keyup"===n&&this.shiftActive&&(this.shiftActive=!1)}toggle(e){const t=this.getValidTargets(),n=this.lastChanged;if(this.shiftActive&&n instanceof HTMLElement){this.shiftActive=!1;const i=t.findIndex((e=>e===n)),o=t.findIndex((t=>t===e?.target)),[r,a]=[i,o].sort(((e,t)=>e-t));t.forEach(((e,n)=>{n>=r&&n<=a&&(e.checked=!!t[i].checked,this.dispatch("change",{target:e,bubbles:!0}))}))}this.lastChanged=t.find((t=>t.contains(e?.target)))??null;const i=t.filter((e=>e.checked)).length,o=i>0,r=i===t.length;this.getValidTargets(this.allTargets).forEach((e=>{e.checked=r}));const a=this.actionInactiveClasses;a.length&&this.actionTargets.forEach((e=>{a.forEach((t=>{e.classList.toggle(t,!o)}))}))}toggleAll(e){const{force:t=null}={...e.detail,...e.params};this.lastChanged=null;let n=!1;if("boolean"==typeof t)n=t;else if(e.target instanceof HTMLInputElement)n=e.target.checked;else{const e=this.allTargets[0];n=!e?.checked}this.getValidTargets().forEach((e=>{e.checked!==n&&(e.checked=n,e.dispatchEvent(new Event("change",{bubbles:!0})))})),this.toggle()}disconnect(){document?.removeEventListener("keydown",this.handleShiftKey),document?.removeEventListener("keyup",this.handleShiftKey)}}class A extends r.Controller{static targets=["value"];copy(e){const{value:t=(this.hasValueTarget?this.valueTarget.value:this.element.value||null)}={...e.detail,...e.params};t&&(this.dispatch("copy").defaultPrevented||new Promise(((e,n)=>{navigator.clipboard?navigator.clipboard.writeText(t).then(e,n):n()})).then((()=>this.dispatch("copied",{detail:{clear:!0,type:"success"}}))).catch((()=>this.dispatch("error",{detail:{clear:!0,type:"error"}}))))}}var D=n(4676);class V extends r.Controller{static classes=["added","hide","show"];static targets=["container","template"];static values={autoClear:{default:0,type:Number},clearDelay:{default:0,type:Number},showDelay:{default:0,type:Number}};isClearing;add(e){const{clear:t=!1,text:n="",type:i=null}={...e?.detail,...e?.params};this.element.classList.add(...this.addedClasses),t&&this.clear();const o=this.getTemplateContent(i);if(!o)return;const r=o.lastElementChild;r instanceof HTMLElement&&n&&(r.textContent=n),this.containerTarget.appendChild(o),(0,C.D)((()=>{this.element.classList.remove(...this.hideClasses),this.element.classList.add(...this.showClasses),this.dispatch("added")}),this.showDelayValue||null)().then((()=>{this.autoClearValue&&(0,C.D)((()=>{this.clear()}),this.autoClearValue)()}))}clear(e){if(this.isClearing=!1,!e)return void(this.containerTarget.innerHTML="");const t=this.clearDelayValue||null,n=this.element;this.isClearing=!0,n.classList.remove(...this.addedClasses),n.classList.remove(...this.showClasses),n.classList.add(...this.hideClasses),(0,C.D)(D.Z,t)().then((()=>{this?.isClearing&&(this.containerTarget.innerHTML="",this.dispatch("cleared"),this.isClearing=!1)}))}getTemplateContent(e){const t=e&&this.templateTargets.find((({dataset:t})=>t.type===e))||this.templateTarget,n=t.content.firstElementChild?.cloneNode(!0);return n instanceof HTMLElement?n:null}}var _=n(9408);class x extends r.Controller{static classes=["active"];static targets=["label","total"];static values={container:{default:"body",type:String},find:{default:".error-message,.help-critical",type:String},labels:{default:[],type:Array},min:{default:0,type:Number},total:{default:0,type:Number}};connect(){this.count()}count(){return this.totalValue=[...document.querySelectorAll(this.containerValue||"body")].map((e=>e.querySelectorAll(this.findValue).length)).reduce(((e,t)=>e+t),0),this.totalValue}getLabel(e){const t=(0,_.qP)("%(num)s error","%(num)s errors",e);if(this.labelsValue.length>1){const[t,n=this.labelsValue[1],i="__total__"]=this.labelsValue;return(0,_.qP)(t,n,e).replace(i,`${e}`)}return t.replace("%(num)s",`${e}`)}minValueChanged(){this.totalValueChanged(this.count())}totalValueChanged(e){const t=this.minValue;this.hasActiveClass&&this.element.classList.toggle(this.activeClass,e>t),this.hasLabelTarget&&(this.labelTarget.textContent=e>t?this.getLabel(e):""),this.hasTotalTarget&&(this.totalTarget.textContent=e>t?`${e}`:"")}}var L=n(859);class k extends r.Controller{static classes=["dismissed"];static values={dismissed:{default:!1,type:Boolean},id:{default:"",type:String}};toggle(){var e;this.idValue&&(this.element.classList.add(this.dismissedClass),this.dismissedValue=!0,e={[this.idValue]:!0},fetch(g.QF.ADMIN_URLS?.DISMISSIBLES,{method:"PATCH",headers:{[g.QF.CSRF_HEADER_NAME]:g.QF.CSRF_TOKEN,"Content-Type":"application/json"},body:JSON.stringify(e),mode:"same-origin"}))}}class O extends r.Controller{static targets=["count","menu","toggle"];static values={activeSubmenu:{default:"",type:String},countAttr:{default:"",type:String}};static outlets=["w-action","w-dropdown"];countTargetConnected(){this.updateCount()}connect(){this.open=this.open.bind(this)}wActionOutletConnected(e,t){t.addEventListener("click",this.open)}wActionOutletDisconnected(e,t){t.removeEventListener("click",this.open)}updateCount(){const e=document.querySelectorAll(`[${this.countAttrValue}]`).length;this.countTargets.forEach((t=>{const n=t.dataset.countName,i=n?document.querySelectorAll(`[${this.countAttrValue}=${n}]`).length:e;t.hidden=0===i,t.textContent=i.toString()}))}updateParams(e){const t=e;if("listing-results"===e.target?.id){const e=new URLSearchParams(t.detail?.requestUrl.split("?")[1]),n=new URLSearchParams;e.forEach(((e,t)=>{""===e.trim()||t.startsWith("_w_")||n.append(t,e)}));const i=`?${n.toString()}`;window.history.replaceState(null,"",i)}this.updateCount()}open(e){const t=e.target?.closest("button");this.activeSubmenuValue=t.getAttribute("aria-controls")||""}close(){this.activeSubmenuValue=""}delayedClose(){setTimeout((()=>this.close()),200)}activeSubmenuValueChanged(e,t){if(t){const e=document.querySelector(`[aria-controls="${t}"]`);this.toggle(!1,e)}if(e){const t=document.querySelector(`[aria-controls="${e}"]`);this.toggle(!0,t)}}preventOutletClickaway(e){const t=e.detail.target;if(!t)return;const n=this.toggleTargets.map((e=>e.getAttribute("aria-controls"))),i=t.closest("button")?.getAttribute("aria-controls")||"";n.includes(i)&&e.preventDefault()}toggle(e,t){this.hasWDropdownOutlet&&e&&this.wDropdownOutlet.show();const n=t.getAttribute("aria-controls"),i=this.element.querySelector(`#${n}`);i&&(t.setAttribute("aria-expanded",e.toString()),i.hidden=!e,this.menuTarget.hidden=e,e?i.focus():t.focus())}}var P=n(8689);const R=async()=>{"loading"===document.readyState&&await new Promise((e=>{document.addEventListener("DOMContentLoaded",(()=>e()),{once:!0,passive:!0})}))},N={name:"hideOnEsc",defaultValue:!0,fn({hide:e}){function t(t){"Escape"===t.key&&e()}return{onShow(){document.addEventListener("keydown",t)},onHide(){document.removeEventListener("keydown",t)}}}};class I extends r.Controller{static values={content:String,offset:Array,placement:{default:"bottom",type:String}};tippy;connect(){this.tippy=(0,P.ZP)(this.element,this.options)}contentValueChanged(e,t){t&&t!==e&&this.tippy?.setProps(this.options)}placementValueChanged(e,t){t&&t!==e&&this.tippy?.setProps(this.options)}hide(){this.tippy?.hide()}show(){this.tippy?.show()}get options(){return{content:this.contentValue,placement:this.placementValue,plugins:this.plugins,...this.hasOffsetValue&&{offset:this.offsetValue}}}get plugins(){return[N]}disconnect(){this.tippy?.destroy()}static afterLoad(){R().then((()=>{(0,P.ZP)("[data-tippy-content]",{plugins:[N]})}))}}const M={name:"hideTooltipOnBreadcrumbAndCollapse",fn({hide:e}){function t(){e()}return{onShow(){document.addEventListener("w-breadcrumbs:opened",t),document.addEventListener("w-breadcrumbs:closed",t)},onHide(){document.removeEventListener("w-breadcrumbs:closed",t),document.removeEventListener("w-breadcrumbs:opened",t)}}}},B={name:"hideTooltipOnClickInside",defaultValue:!0,fn(e){const t=()=>e.hide();return{onShow(){e.popper.addEventListener("click",t)},onHide(){e.popper.removeEventListener("click",t)}}}},F={name:"rotateToggleIcon",fn(e){const t=e.reference.querySelector(".icon-arrow-down, .icon-arrow-up");return t?{onShow:()=>t.classList.add("w-rotate-180"),onHide:()=>t.classList.remove("w-rotate-180")}:{}}};class H extends r.Controller{static targets=["toggle","content"];static values={hideOnClick:{default:!1,type:Boolean},keepMounted:{default:!1,type:Boolean},offset:Array,theme:{default:"dropdown",type:String}};tippy;connect(){this.tippy=(0,P.ZP)(this.toggleTarget,this.options)}hide(){this.tippy?.hide()}show(){this.tippy?.show()}get options(){const e=this.toggleTarget.getAttribute("aria-label");let t;return this.hasContentTarget&&(this.contentTarget.hidden=!1),e&&(t=(0,P.ZP)(this.toggleTarget,{content:e,placement:"bottom",plugins:[N]})),{...this.hasContentTarget?{content:this.contentTarget}:{},...this.themeOptions,trigger:"click",interactive:!0,...this.hasOffsetValue&&{offset:this.offsetValue},getReferenceClientRect:()=>this.reference.getBoundingClientRect(),theme:this.themeValue,onCreate:e=>{if(this.keepMountedValue){const{popper:t}=e;this.element.append(t),t.hidden=!0}},onShow:e=>{if(t&&t.disable(),this.keepMountedValue){const{popper:t}=e;t.hidden=!1}},onShown:()=>{this.dispatch("shown")},onHide:()=>{this.dispatch("hide"),t&&t.enable()},onHidden:e=>{if(this.keepMountedValue){const{popper:t}=e;this.element.append(t),t.hidden=!0}}}}get themeOptions(){return{dropdown:{arrow:!0,maxWidth:350,placement:"bottom",plugins:this.plugins},drilldown:{arrow:!1,maxWidth:"none",placement:"bottom-end",hideOnClick:!1,plugins:this.plugins.concat([this.hideTooltipOnClickAway])},"dropdown-button":{arrow:!1,maxWidth:"none",placement:"bottom-start",plugins:this.plugins}}[this.themeValue]}get hideTooltipOnClickAway(){return{name:"hideTooltipOnClickAway",fn:e=>{const t=t=>{this.dispatch("clickaway",{cancelable:!0,detail:{target:t.target}}).defaultPrevented||!e.state.isShown||this.reference.contains(t.target)&&!this.toggleTarget.contains(t.target)||e.hide()};return{onShow(){document.addEventListener("click",t)},onHide(){document.removeEventListener("click",t)}}}}}get plugins(){const e=[M,N,F];return this.hideOnClickValue&&e.push(B),e}get reference(){const e=this.toggleTarget.parentElement;return"dropdown-button"===this.themeValue?e.parentElement:e}}class z extends r.Controller{static classes=["ready","remove"];static values={delay:{default:-1,type:Number},event:{default:"",type:String}};connect(){this.ready()}ready(){const e=this.eventValue.split(" ").filter(Boolean),t=this.delayValue;(0,C.D)((()=>!0),t<0?null:t)().then((()=>{this.element.classList.add(...this.readyClasses),this.element.classList.remove(...this.removeClasses),this.dispatch("ready",{bubbles:!0,cancelable:!1}),e.forEach((e=>{this.dispatch(e,{bubbles:!0,cancelable:!1,prefix:""})})),this.remove()}))}remove(){const e=this.element,t=this.application.schema.controllerAttribute,n=(e.getAttribute(t)?.split(" ")??[]).filter((e=>e!==this.identifier)).join(" ");n?e.setAttribute(t,n):e.removeAttribute(t)}}class j extends r.Controller{static values={attrName:{default:"href",type:String},preserveKeys:{default:[],type:Array},reflectKeys:{default:["__all__"],type:Array}};get url(){return new URL(this.element.getAttribute(this.attrNameValue)||"",window.location.href)}connect(){this.setParamsFromLocation()}get reflectAll(){return this.reflectKeysValue.includes("__all__")}setParamsFromURL(e){const t=new URLSearchParams,n=this.reflectAll;e.searchParams.forEach(((e,i)=>{i.startsWith("_w_")||this.preserveKeysValue.includes(i)||!n&&!this.reflectKeysValue.includes(i)||t.append(i,e)}));const i=this.url;i.searchParams.forEach(((e,n)=>{this.preserveKeysValue.includes(n)&&t.append(n,e)})),i.search=t.toString(),this.element.setAttribute(this.attrNameValue,i.toString())}setParamsFromSwapRequest(e){e.detail?.requestUrl&&this.setParamsFromURL(new URL(e.detail.requestUrl,window.location.href))}setParamsFromLocation(){this.setParamsFromURL(new URL(window.location.href))}}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(){return U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},U.apply(this,arguments)}function W(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var K=W(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Z=W(/Edge/i),G=W(/firefox/i),Q=W(/safari/i)&&!W(/chrome/i)&&!W(/android/i),J=W(/iP(ad|od|hone)/i),ee=W(/chrome/i)&&W(/android/i),te={capture:!1,passive:!1};function ne(e,t,n){e.addEventListener(t,n,!K&&te)}function ie(e,t,n){e.removeEventListener(t,n,!K&&te)}function oe(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function re(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ae(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&oe(e,t):oe(e,t))||i&&e===n)return e;if(e===n)break}while(e=re(e))}return null}var se,le=/\s+/g;function ce(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(le," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(le," ")}}function he(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function de(e,t){var n="";if("string"==typeof e)n=e;else do{var i=he(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function ue(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function pe(){return document.scrollingElement||document.documentElement}function fe(e,t,n,i,o){if(e.getBoundingClientRect||e===window){var r,a,s,l,c,h,d;if(e!==window&&e.parentNode&&e!==pe()?(a=(r=e.getBoundingClientRect()).top,s=r.left,l=r.bottom,c=r.right,h=r.height,d=r.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,h=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!K))do{if(o&&o.getBoundingClientRect&&("none"!==he(o,"transform")||n&&"static"!==he(o,"position"))){var u=o.getBoundingClientRect();a-=u.top+parseInt(he(o,"border-top-width")),s-=u.left+parseInt(he(o,"border-left-width")),l=a+r.height,c=s+r.width;break}}while(o=o.parentNode);if(i&&e!==window){var p=de(o||e),f=p&&p.a,g=p&&p.d;p&&(l=(a/=g)+(h/=g),c=(s/=f)+(d/=f))}return{top:a,left:s,bottom:l,right:c,width:d,height:h}}}function ge(e,t,n){for(var i=we(e,!0),o=fe(e)[t];i;){var r=fe(i)[n];if(!("top"===n||"left"===n?o>=r:o<=r))return i;if(i===pe())break;i=we(i,!1)}return!1}function me(e,t,n,i){for(var o=0,r=0,a=e.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==Ct.ghost&&(i||a[r]!==Ct.dragged)&&ae(a[r],n.draggable,e,!1)){if(o===t)return a[r];o++}r++}return null}function ve(e,t){for(var n=e.lastElementChild;n&&(n===Ct.ghost||"none"===he(n,"display")||t&&!oe(n,t));)n=n.previousElementSibling;return n||null}function be(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ct.clone||t&&!oe(e,t)||n++;return n}function ye(e){var t=0,n=0,i=pe();if(e)do{var o=de(e),r=o.a,a=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,n]}function we(e,t){if(!e||!e.getBoundingClientRect)return pe();var n=e,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=he(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return pe();if(i||t)return n;i=!0}}}while(n=n.parentNode);return pe()}function Ee(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Ce(e,t){return function(){if(!se){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),se=setTimeout((function(){se=void 0}),t)}}}function Te(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Se(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var Ae="Sortable"+(new Date).getTime();var De=[],Ve={initializeByDefault:!0},_e={mount:function(e){for(var t in Ve)Ve.hasOwnProperty(t)&&!(t in e)&&(e[t]=Ve[t]);De.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),De.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var o=e+"Global";De.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][o]&&t[i.pluginName][o](Y({sortable:t},n)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](Y({sortable:t},n)))}))},initializePlugins:function(e,t,n,i){for(var o in De.forEach((function(i){var o=i.pluginName;if(e.options[o]||i.initializeByDefault){var r=new i(e,t,e.options);r.sortable=e,r.options=e.options,e[o]=r,U(n,r.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var r=this.modifyOption(e,o,e.options[o]);void 0!==r&&(e.options[o]=r)}},getEventProperties:function(e,t){var n={};return De.forEach((function(i){"function"==typeof i.eventProperties&&U(n,i.eventProperties.call(t[i.pluginName],e))})),n},modifyOption:function(e,t,n){var i;return De.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(i=o.optionListeners[t].call(e[o.pluginName],n))})),i}};var xe=["evt"],Le=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,o=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,xe);_e.pluginEvent.bind(Ct)(e,t,Y({dragEl:Oe,parentEl:Pe,ghostEl:Re,rootEl:Ne,nextEl:Ie,lastDownEl:Me,cloneEl:Be,cloneHidden:Fe,dragStarted:Qe,putSortable:qe,activeSortable:Ct.active,originalEvent:i,oldIndex:He,oldDraggableIndex:je,newIndex:ze,newDraggableIndex:Xe,hideGhostForTarget:bt,unhideGhostForTarget:yt,cloneNowHidden:function(){Fe=!0},cloneNowShown:function(){Fe=!1},dispatchSortableEvent:function(e){ke({sortable:t,name:e,originalEvent:i})}},o))};function ke(e){!function(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,r=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,h=e.oldDraggableIndex,d=e.newDraggableIndex,u=e.originalEvent,p=e.putSortable,f=e.extraEventProperties;if(t=t||n&&n[Ae]){var g,m=t.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||K||Z?(g=document.createEvent("Event")).initEvent(i,!0,!0):g=new CustomEvent(i,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=s||n,g.item=o||n,g.clone=r,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=h,g.newDraggableIndex=d,g.originalEvent=u,g.pullMode=p?p.lastPutMode:void 0;var b=Y(Y({},f),_e.getEventProperties(i,t));for(var y in b)g[y]=b[y];n&&n.dispatchEvent(g),m[v]&&m[v].call(t,g)}}(Y({putSortable:qe,cloneEl:Be,targetEl:Oe,rootEl:Ne,oldIndex:He,oldDraggableIndex:je,newIndex:ze,newDraggableIndex:Xe},e))}var Oe,Pe,Re,Ne,Ie,Me,Be,Fe,He,ze,je,Xe,Ye,qe,$e,Ue,We,Ke,Ze,Ge,Qe,Je,et,tt,nt,it=!1,ot=!1,rt=[],at=!1,st=!1,lt=[],ct=!1,ht=[],dt="undefined"!=typeof document,ut=J,pt=Z||K?"cssFloat":"float",ft=dt&&!ee&&!J&&"draggable"in document.createElement("div"),gt=function(){if(dt){if(K)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),mt=function(e,t){var n=he(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=me(e,0,t),r=me(e,1,t),a=o&&he(o),s=r&&he(r),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+fe(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+fe(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var h="left"===a.float?"left":"right";return!r||"both"!==s.clear&&s.clear!==h?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===n[pt]||r&&"none"===n[pt]&&l+c>i)?"vertical":"horizontal"},vt=function(e){function t(e,n){return function(i,o,r,a){var s=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(i,o,r,a),n)(i,o,r,a);var l=(n?i:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},i=e.group;i&&"object"==q(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},bt=function(){!gt&&Re&&he(Re,"display","none")},yt=function(){!gt&&Re&&he(Re,"display","")};dt&&!ee&&document.addEventListener("click",(function(e){if(ot)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ot=!1,!1}),!0);var wt=function(e){if(Oe){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,r=e.clientY,rt.some((function(e){var t=e[Ae].options.emptyInsertThreshold;if(t&&!ve(e)){var n=fe(e),i=o>=n.left-t&&o<=n.right+t,s=r>=n.top-t&&r<=n.bottom+t;return i&&s?a=e:void 0}})),a);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Ae]._onDragOver(n)}}var o,r,a},Et=function(e){Oe&&Oe.parentNode[Ae]._isOutsideThisEl(e.target)};function Ct(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=U({},t),e[Ae]=this;var n,i,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return mt(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ct.supportPointer&&"PointerEvent"in window&&!Q,emptyInsertThreshold:5};for(var r in _e.initializePlugins(this,e,o),o)!(r in t)&&(t[r]=o[r]);for(var a in vt(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&ft,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ne(e,"pointerdown",this._onTapStart):(ne(e,"mousedown",this._onTapStart),ne(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ne(e,"dragover",this),ne(e,"dragenter",this)),rt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),U(this,(i=[],{captureAnimationState:function(){i=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==he(e,"display")&&e!==Ct.ghost){i.push({target:e,rect:fe(e)});var t=Y({},i[i.length-1].rect);if(e.thisAnimationDuration){var n=de(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){i.push(e)},removeAnimationState:function(e){i.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}(i,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,r=0;i.forEach((function(e){var n=0,i=e.target,a=i.fromRect,s=fe(i),l=i.prevFromRect,c=i.prevToRect,h=e.rect,d=de(i,!0);d&&(s.top-=d.f,s.left-=d.e),i.toRect=s,i.thisAnimationDuration&&Ee(l,s)&&!Ee(a,s)&&(h.top-s.top)/(h.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(n=function(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}(h,l,c,t.options)),Ee(s,a)||(i.prevFromRect=a,i.prevToRect=s,n||(n=t.options.animation),t.animate(i,h,s,n)),n&&(o=!0,r=Math.max(r,n),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout((function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null}),n),i.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),r):"function"==typeof e&&e(),i=[]},animate:function(e,t,n,i){if(i){he(e,"transition",""),he(e,"transform","");var o=de(this.el),r=o&&o.a,a=o&&o.d,s=(t.left-n.left)/(r||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,he(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),he(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),he(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){he(e,"transition",""),he(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}))}function Tt(e,t,n,i,o,r,a,s){var l,c,h=e[Ae],d=h.options.onMove;return!window.CustomEvent||K||Z?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||fe(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(c=d.call(h,l,a)),c}function St(e){e.draggable=!1}function At(){ct=!1}function Dt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function Vt(e){return setTimeout(e,0)}function _t(e){return clearTimeout(e)}Ct.prototype={constructor:Ct,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Je=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Oe):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,o=i.preventOnFilter,r=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=i.filter;if(function(e){ht.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&ht.push(i)}}(n),!Oe&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||i.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!Q||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=ae(s,i.draggable,n,!1))&&s.animated||Me===s)){if(He=be(s),je=be(s,i.draggable),"function"==typeof c){if(c.call(this,e,s,this))return ke({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Le("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=ae(l,i.trim(),n,!1))return ke({sortable:t,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),Le("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());i.handle&&!ae(l,i.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var i,o=this,r=o.el,a=o.options,s=r.ownerDocument;if(n&&!Oe&&n.parentNode===r){var l=fe(n);if(Ne=r,Pe=(Oe=n).parentNode,Ie=Oe.nextSibling,Me=n,Ye=a.group,Ct.dragged=Oe,$e={target:Oe,clientX:(t||e).clientX,clientY:(t||e).clientY},Ze=$e.clientX-l.left,Ge=$e.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Oe.style["will-change"]="all",i=function(){Le("delayEnded",o,{evt:e}),Ct.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!G&&o.nativeDraggable&&(Oe.draggable=!0),o._triggerDragStart(e,t),ke({sortable:o,name:"choose",originalEvent:e}),ce(Oe,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){ue(Oe,e.trim(),St)})),ne(s,"dragover",wt),ne(s,"mousemove",wt),ne(s,"touchmove",wt),ne(s,"mouseup",o._onDrop),ne(s,"touchend",o._onDrop),ne(s,"touchcancel",o._onDrop),G&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Oe.draggable=!0),Le("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Z||K))i();else{if(Ct.eventCanceled)return void this._onDrop();ne(s,"mouseup",o._disableDelayedDrag),ne(s,"touchend",o._disableDelayedDrag),ne(s,"touchcancel",o._disableDelayedDrag),ne(s,"mousemove",o._delayedDragTouchMoveHandler),ne(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&ne(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Oe&&St(Oe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ie(e,"mouseup",this._disableDelayedDrag),ie(e,"touchend",this._disableDelayedDrag),ie(e,"touchcancel",this._disableDelayedDrag),ie(e,"mousemove",this._delayedDragTouchMoveHandler),ie(e,"touchmove",this._delayedDragTouchMoveHandler),ie(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?ne(document,"pointermove",this._onTouchMove):ne(document,t?"touchmove":"mousemove",this._onTouchMove):(ne(Oe,"dragend",this),ne(Ne,"dragstart",this._onDragStart));try{document.selection?Vt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(it=!1,Ne&&Oe){Le("dragStarted",this,{evt:t}),this.nativeDraggable&&ne(document,"dragover",Et);var n=this.options;!e&&ce(Oe,n.dragClass,!1),ce(Oe,n.ghostClass,!0),Ct.active=this,e&&this._appendGhost(),ke({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ue){this._lastX=Ue.clientX,this._lastY=Ue.clientY,bt();for(var e=document.elementFromPoint(Ue.clientX,Ue.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ue.clientX,Ue.clientY))!==t;)t=e;if(Oe.parentNode[Ae]._isOutsideThisEl(e),t)do{if(t[Ae]&&t[Ae]._onDragOver({clientX:Ue.clientX,clientY:Ue.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);yt()}},_onTouchMove:function(e){if($e){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,o=e.touches?e.touches[0]:e,r=Re&&de(Re,!0),a=Re&&r&&r.a,s=Re&&r&&r.d,l=ut&&nt&&ye(nt),c=(o.clientX-$e.clientX+i.x)/(a||1)+(l?l[0]-lt[0]:0)/(a||1),h=(o.clientY-$e.clientY+i.y)/(s||1)+(l?l[1]-lt[1]:0)/(s||1);if(!Ct.active&&!it){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Re){r?(r.e+=c-(We||0),r.f+=h-(Ke||0)):r={a:1,b:0,c:0,d:1,e:c,f:h};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");he(Re,"webkitTransform",d),he(Re,"mozTransform",d),he(Re,"msTransform",d),he(Re,"transform",d),We=c,Ke=h,Ue=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Re){var e=this.options.fallbackOnBody?document.body:Ne,t=fe(Oe,!0,ut,!0,e),n=this.options;if(ut){for(nt=e;"static"===he(nt,"position")&&"none"===he(nt,"transform")&&nt!==document;)nt=nt.parentNode;nt!==document.body&&nt!==document.documentElement?(nt===document&&(nt=pe()),t.top+=nt.scrollTop,t.left+=nt.scrollLeft):nt=pe(),lt=ye(nt)}ce(Re=Oe.cloneNode(!0),n.ghostClass,!1),ce(Re,n.fallbackClass,!0),ce(Re,n.dragClass,!0),he(Re,"transition",""),he(Re,"transform",""),he(Re,"box-sizing","border-box"),he(Re,"margin",0),he(Re,"top",t.top),he(Re,"left",t.left),he(Re,"width",t.width),he(Re,"height",t.height),he(Re,"opacity","0.8"),he(Re,"position",ut?"absolute":"fixed"),he(Re,"zIndex","100000"),he(Re,"pointerEvents","none"),Ct.ghost=Re,e.appendChild(Re),he(Re,"transform-origin",Ze/parseInt(Re.style.width)*100+"% "+Ge/parseInt(Re.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,o=n.options;Le("dragStart",this,{evt:e}),Ct.eventCanceled?this._onDrop():(Le("setupClone",this),Ct.eventCanceled||((Be=Se(Oe)).removeAttribute("id"),Be.draggable=!1,Be.style["will-change"]="",this._hideClone(),ce(Be,this.options.chosenClass,!1),Ct.clone=Be),n.cloneId=Vt((function(){Le("clone",n),Ct.eventCanceled||(n.options.removeCloneOnHide||Ne.insertBefore(Be,Oe),n._hideClone(),ke({sortable:n,name:"clone"}))})),!t&&ce(Oe,o.dragClass,!0),t?(ot=!0,n._loopId=setInterval(n._emulateDragOver,50)):(ie(document,"mouseup",n._onDrop),ie(document,"touchend",n._onDrop),ie(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(n,i,Oe)),ne(document,"drop",n),he(Oe,"transform","translateZ(0)")),it=!0,n._dragStartId=Vt(n._dragStarted.bind(n,t,e)),ne(document,"selectstart",n),Qe=!0,Q&&he(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,i,o,r=this.el,a=e.target,s=this.options,l=s.group,c=Ct.active,h=Ye===l,d=s.sort,u=qe||c,p=this,f=!1;if(!ct){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=ae(a,s.draggable,r,!0),x("dragOver"),Ct.eventCanceled)return f;if(Oe.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return k(!1);if(ot=!1,c&&!s.disabled&&(h?d||(i=Pe!==Ne):qe===this||(this.lastPutMode=Ye.checkPull(this,c,Oe,e))&&l.checkPut(this,c,Oe,e))){if(o="vertical"===this._getDirection(e,a),t=fe(Oe),x("dragOverValid"),Ct.eventCanceled)return f;if(i)return Pe=Ne,L(),this._hideClone(),x("revert"),Ct.eventCanceled||(Ie?Ne.insertBefore(Oe,Ie):Ne.appendChild(Oe)),k(!0);var g=ve(r,s.draggable);if(!g||function(e,t,n){var i=fe(ve(n.el,n.options.draggable));return t?e.clientX>i.right+10||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+10}(e,o,this)&&!g.animated){if(g===Oe)return k(!1);if(g&&r===e.target&&(a=g),a&&(n=fe(a)),!1!==Tt(Ne,r,Oe,t,a,n,e,!!a))return L(),g&&g.nextSibling?r.insertBefore(Oe,g.nextSibling):r.appendChild(Oe),Pe=r,O(),k(!0)}else if(g&&function(e,t,n){var i=fe(me(n.el,0,n.options,!0));return t?e.clientX<i.left-10||e.clientY<i.top&&e.clientX<i.right:e.clientY<i.top-10||e.clientY<i.bottom&&e.clientX<i.left}(e,o,this)){var m=me(r,0,s,!0);if(m===Oe)return k(!1);if(n=fe(a=m),!1!==Tt(Ne,r,Oe,t,a,n,e,!1))return L(),r.insertBefore(Oe,m),Pe=r,O(),k(!0)}else if(a.parentNode===r){n=fe(a);var v,b,y,w=Oe.parentNode!==r,E=!function(e,t,n){var i=n?e.left:e.top,o=n?e.right:e.bottom,r=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return i===a||o===s||i+r/2===a+l/2}(Oe.animated&&Oe.toRect||t,a.animated&&a.toRect||n,o),C=o?"top":"left",T=ge(a,"top","top")||ge(Oe,"top","top"),S=T?T.scrollTop:void 0;if(Je!==a&&(b=n[C],at=!1,st=!E&&s.invertSwap||w),v=function(e,t,n,i,o,r,a,s){var l=i?e.clientY:e.clientX,c=i?n.height:n.width,h=i?n.top:n.left,d=i?n.bottom:n.right,u=!1;if(!a)if(s&&tt<c*o){if(!at&&(1===et?l>h+c*r/2:l<d-c*r/2)&&(at=!0),at)u=!0;else if(1===et?l<h+tt:l>d-tt)return-et}else if(l>h+c*(1-o)/2&&l<d-c*(1-o)/2)return function(e){return be(Oe)<be(e)?1:-1}(t);return(u=u||a)&&(l<h+c*r/2||l>d-c*r/2)?l>h+c/2?1:-1:0}(e,a,n,o,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,st,Je===a),0!==v){var A=be(Oe);do{A-=v,y=Pe.children[A]}while(y&&("none"===he(y,"display")||y===Re))}if(0===v||y===a)return k(!1);Je=a,et=v;var D=a.nextElementSibling,V=!1,_=Tt(Ne,r,Oe,t,a,n,e,V=1===v);if(!1!==_)return 1!==_&&-1!==_||(V=1===_),ct=!0,setTimeout(At,30),L(),V&&!D?r.appendChild(Oe):a.parentNode.insertBefore(Oe,V?D:a),T&&Te(T,0,S-T.scrollTop),Pe=Oe.parentNode,void 0===b||st||(tt=Math.abs(b-fe(a)[C])),O(),k(!0)}if(r.contains(Oe))return k(!1)}return!1}function x(s,l){Le(s,p,Y({evt:e,isOwner:h,axis:o?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:d,fromSortable:u,target:a,completed:k,onMove:function(n,i){return Tt(Ne,r,Oe,t,n,fe(n),e,i)},changed:O},l))}function L(){x("dragOverAnimationCapture"),p.captureAnimationState(),p!==u&&u.captureAnimationState()}function k(t){return x("dragOverCompleted",{insertion:t}),t&&(h?c._hideClone():c._showClone(p),p!==u&&(ce(Oe,qe?qe.options.ghostClass:c.options.ghostClass,!1),ce(Oe,s.ghostClass,!0)),qe!==p&&p!==Ct.active?qe=p:p===Ct.active&&qe&&(qe=null),u===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){x("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(a===Oe&&!Oe.animated||a===r&&!a.animated)&&(Je=null),s.dragoverBubble||e.rootEl||a===document||(Oe.parentNode[Ae]._isOutsideThisEl(e.target),!t&&wt(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function O(){ze=be(Oe),Xe=be(Oe,s.draggable),ke({sortable:p,name:"change",toEl:r,newIndex:ze,newDraggableIndex:Xe,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ie(document,"mousemove",this._onTouchMove),ie(document,"touchmove",this._onTouchMove),ie(document,"pointermove",this._onTouchMove),ie(document,"dragover",wt),ie(document,"mousemove",wt),ie(document,"touchmove",wt)},_offUpEvents:function(){var e=this.el.ownerDocument;ie(e,"mouseup",this._onDrop),ie(e,"touchend",this._onDrop),ie(e,"pointerup",this._onDrop),ie(e,"touchcancel",this._onDrop),ie(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ze=be(Oe),Xe=be(Oe,n.draggable),Le("drop",this,{evt:e}),Pe=Oe&&Oe.parentNode,ze=be(Oe),Xe=be(Oe,n.draggable),Ct.eventCanceled||(it=!1,st=!1,at=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_t(this.cloneId),_t(this._dragStartId),this.nativeDraggable&&(ie(document,"drop",this),ie(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Q&&he(document.body,"user-select",""),he(Oe,"transform",""),e&&(Qe&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Re&&Re.parentNode&&Re.parentNode.removeChild(Re),(Ne===Pe||qe&&"clone"!==qe.lastPutMode)&&Be&&Be.parentNode&&Be.parentNode.removeChild(Be),Oe&&(this.nativeDraggable&&ie(Oe,"dragend",this),St(Oe),Oe.style["will-change"]="",Qe&&!it&&ce(Oe,qe?qe.options.ghostClass:this.options.ghostClass,!1),ce(Oe,this.options.chosenClass,!1),ke({sortable:this,name:"unchoose",toEl:Pe,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ne!==Pe?(ze>=0&&(ke({rootEl:Pe,name:"add",toEl:Pe,fromEl:Ne,originalEvent:e}),ke({sortable:this,name:"remove",toEl:Pe,originalEvent:e}),ke({rootEl:Pe,name:"sort",toEl:Pe,fromEl:Ne,originalEvent:e}),ke({sortable:this,name:"sort",toEl:Pe,originalEvent:e})),qe&&qe.save()):ze!==He&&ze>=0&&(ke({sortable:this,name:"update",toEl:Pe,originalEvent:e}),ke({sortable:this,name:"sort",toEl:Pe,originalEvent:e})),Ct.active&&(null!=ze&&-1!==ze||(ze=He,Xe=je),ke({sortable:this,name:"end",toEl:Pe,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Le("nulling",this),Ne=Oe=Pe=Re=Ie=Be=Me=Fe=$e=Ue=Qe=ze=Xe=He=je=Je=et=qe=Ye=Ct.dragged=Ct.ghost=Ct.clone=Ct.active=null,ht.forEach((function(e){e.checked=!0})),ht.length=We=Ke=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Oe&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,o=n.length,r=this.options;i<o;i++)ae(e=n[i],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||Dt(e));return t},sort:function(e,t){var n={},i=this.el;this.toArray().forEach((function(e,t){var o=i.children[t];ae(o,this.options.draggable,i,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(i.removeChild(n[e]),i.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ae(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var i=_e.modifyOption(this,e,t);n[e]=void 0!==i?i:t,"group"===e&&vt(n)},destroy:function(){Le("destroy",this);var e=this.el;e[Ae]=null,ie(e,"mousedown",this._onTapStart),ie(e,"touchstart",this._onTapStart),ie(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(ie(e,"dragover",this),ie(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),rt.splice(rt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Fe){if(Le("hideClone",this),Ct.eventCanceled)return;he(Be,"display","none"),this.options.removeCloneOnHide&&Be.parentNode&&Be.parentNode.removeChild(Be),Fe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Fe){if(Le("showClone",this),Ct.eventCanceled)return;Oe.parentNode!=Ne||this.options.group.revertClone?Ie?Ne.insertBefore(Be,Ie):Ne.appendChild(Be):Ne.insertBefore(Be,Oe),this.options.group.revertClone&&this.animate(Oe,Be),he(Be,"display",""),Fe=!1}}else this._hideClone()}},dt&&ne(document,"touchmove",(function(e){(Ct.active||it)&&e.cancelable&&e.preventDefault()})),Ct.utils={on:ne,off:ie,css:he,find:ue,is:function(e,t){return!!ae(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:Ce,closest:ae,toggleClass:ce,clone:Se,index:be,nextTick:Vt,cancelNextTick:_t,detectDirection:mt,getChild:me},Ct.get=function(e){return e[Ae]},Ct.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ct.utils=Y(Y({},Ct.utils),e.utils)),_e.mount(e)}))},Ct.create=function(e,t){return new Ct(e,t)},Ct.version="1.15.0";var xt,Lt,kt,Ot,Pt,Rt,Nt=[],It=!1;function Mt(){Nt.forEach((function(e){clearInterval(e.pid)})),Nt=[]}function Bt(){clearInterval(Rt)}var Ft=Ce((function(e,t,n,i){if(t.scroll){var o,r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=pe(),h=!1;Lt!==n&&(Lt=n,Mt(),xt=t.scroll,o=t.scrollFn,!0===xt&&(xt=we(n,!0)));var d=0,u=xt;do{var p=u,f=fe(p),g=f.top,m=f.bottom,v=f.left,b=f.right,y=f.width,w=f.height,E=void 0,C=void 0,T=p.scrollWidth,S=p.scrollHeight,A=he(p),D=p.scrollLeft,V=p.scrollTop;p===c?(E=y<T&&("auto"===A.overflowX||"scroll"===A.overflowX||"visible"===A.overflowX),C=w<S&&("auto"===A.overflowY||"scroll"===A.overflowY||"visible"===A.overflowY)):(E=y<T&&("auto"===A.overflowX||"scroll"===A.overflowX),C=w<S&&("auto"===A.overflowY||"scroll"===A.overflowY));var _=E&&(Math.abs(b-r)<=s&&D+y<T)-(Math.abs(v-r)<=s&&!!D),x=C&&(Math.abs(m-a)<=s&&V+w<S)-(Math.abs(g-a)<=s&&!!V);if(!Nt[d])for(var L=0;L<=d;L++)Nt[L]||(Nt[L]={});Nt[d].vx==_&&Nt[d].vy==x&&Nt[d].el===p||(Nt[d].el=p,Nt[d].vx=_,Nt[d].vy=x,clearInterval(Nt[d].pid),0==_&&0==x||(h=!0,Nt[d].pid=setInterval(function(){i&&0===this.layer&&Ct.active._onTouchMove(Pt);var t=Nt[this.layer].vy?Nt[this.layer].vy*l:0,n=Nt[this.layer].vx?Nt[this.layer].vx*l:0;"function"==typeof o&&"continue"!==o.call(Ct.dragged.parentNode[Ae],n,t,e,Pt,Nt[this.layer].el)||Te(Nt[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&u!==c&&(u=we(u,!1)));It=h}}),30),Ht=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,o=e.activeSortable,r=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||o;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,h=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(h)&&(r("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function zt(){}function jt(){}zt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=me(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ht},U(zt,{pluginName:"revertOnSpill"}),jt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:Ht},U(jt,{pluginName:"removeOnSpill"}),Ct.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?ne(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ne(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ne(document,"touchmove",this._handleFallbackAutoScroll):ne(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ie(document,"dragover",this._handleAutoScroll):(ie(document,"pointermove",this._handleFallbackAutoScroll),ie(document,"touchmove",this._handleFallbackAutoScroll),ie(document,"mousemove",this._handleFallbackAutoScroll)),Bt(),Mt(),clearTimeout(se),se=void 0},nulling:function(){Pt=Lt=xt=It=Rt=kt=Ot=null,Nt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,r=document.elementFromPoint(i,o);if(Pt=e,t||this.options.forceAutoScrollFallback||Z||K||Q){Ft(e,this.options,r,t);var a=we(r,!0);!It||Rt&&i===kt&&o===Ot||(Rt&&Bt(),Rt=setInterval((function(){var r=we(document.elementFromPoint(i,o),!0);r!==a&&(a=r,Mt()),Ft(e,n.options,r,t)}),10),kt=i,Ot=o)}else{if(!this.options.bubbleScroll||we(r,!0)===pe())return void Mt();Ft(e,this.options,we(r,!1),!1)}}},U(e,{pluginName:"scroll",initializeByDefault:!0})}),Ct.mount(jt,zt);const Xt=Ct;var Yt;!function(e){e.Up="UP",e.Down="DOWN"}(Yt||(Yt={}));class qt extends r.Controller{static classes=["active","chosen","drag","ghost"];static targets=["handle","item"];static values={animation:{default:200,type:Number},container:{default:"",type:String},message:{default:"",type:String},url:String};order;sortable;constructor(e){super(e),this.order=[]}connect(){const e=this.containerValue,t=e&&this.element.querySelector(e)||this.element;this.sortable=Xt.create(t,this.options),this.order=this.sortable.toArray(),this.dispatch("ready",{cancelable:!1,detail:{order:this.order}})}get options(){const e=this.identifier;return{...this.hasGhostClass?{ghostClass:this.ghostClass}:{},...this.hasChosenClass?{chosenClass:this.chosenClass}:{},...this.hasDragClass?{dragClass:this.dragClass}:{},animation:this.animationValue,dataIdAttr:`data-${e}-item-id`,draggable:`[data-${e}-target="item"]`,handle:`[data-${e}-target="handle"]`,onStart:()=>{this.element.classList.add(...this.activeClasses)},onEnd:({item:e,newIndex:t,oldIndex:n})=>{this.element.classList.remove(...this.activeClasses),n!==t&&(this.order=this.sortable.toArray(),this.submit({...this.getItemData(e),newIndex:t}))}}}getItemData(e){const t=this.identifier,n=e instanceof HTMLElement&&e.closest(`[data-${t}-target='item']`);return n?{id:n.getAttribute(`data-${t}-item-id`)||"",label:n.getAttribute(`data-${t}-item-label`)||""}:{id:"",label:""}}apply({currentTarget:e}){const{id:t,label:n}=this.getItemData(e),i=this.order.indexOf(t);this.submit({id:t,label:n,newIndex:i})}move({currentTarget:e},t){const n=this.identifier,i=e instanceof HTMLElement&&e.closest(`[data-${n}-target='item']`);if(!i)return;const o=i.getAttribute(`data-${n}-item-id`)||"",r=this.order.indexOf(o);this.order.splice(r,1),t===Yt.Down?this.order.splice(r+1,0,o):t===Yt.Up&&r>0?this.order.splice(r-1,0,o):this.order.splice(r,0,o),this.sortable.sort(this.order,!0)}up(e){this.move(e,Yt.Up),e.currentTarget?.focus()}down(e){this.move(e,Yt.Down),e.currentTarget?.focus()}submit({id:e,label:t,newIndex:n}){let i=this.urlValue.replace("999999",e);null!==n&&(i+="?position="+n);const o=(this.messageValue||"__LABEL__").replace("__LABEL__",t),r=this.element.closest("form"),a=r&&r.querySelector('input[name="csrfmiddlewaretoken"]');if(a instanceof HTMLInputElement){const e=a.value,t=new FormData;t.append("csrfmiddlewaretoken",e),fetch(i,{method:"POST",body:t}).then((e=>{if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`)})).then((()=>{this.dispatch("w-messages:add",{prefix:"",target:window.document,detail:{clear:!0,text:o,type:"success"},cancelable:!1})})).catch((e=>{throw e}))}}disconnect(){this.sortable&&this.sortable.destroy()}}class $t extends r.Controller{static classes=["active"];static targets=["label"];static values={active:{default:"",type:String},duration:{default:3e4,type:Number},label:{default:"",type:String},loading:{default:!1,type:Boolean}};timer;connect(){if(this.hasLabelTarget)return;const e=this.element.querySelector("em");e&&e.setAttribute(`data-${this.identifier}-target`,"label")}activate(){const e=this.element.closest("form");e&&e.checkValidity&&!e.noValidate&&!e.checkValidity()||window.setTimeout((()=>{this.loadingValue=!0,this.timer=window.setTimeout((()=>{this.loadingValue=!1}),this.durationValue)}))}loadingValueChanged(e){const t=this.hasActiveClass?this.activeClass:"button-longrunning-active";this.element.classList.toggle(t,e),this.labelValue||(this.labelValue=this.hasLabelTarget?this.labelTarget.textContent:this.element.textContent),e?(this.element.setAttribute("disabled",""),this.activeValue&&this.hasLabelTarget&&(this.labelTarget.textContent=this.activeValue)):(this.element.removeAttribute("disabled"),this.labelValue&&this.hasLabelTarget&&(this.labelTarget.textContent=this.labelValue))}disconnect(){this.timer&&clearTimeout(this.timer)}}class Ut extends r.Controller{static classes=["closed","closeIcon","opened","openedContent","openIcon"];static targets=["content","toggle"];static values={closed:{default:!1,type:Boolean},peeking:{default:!1,type:Boolean},peekTarget:{default:"",type:String}};cleanUpPeekListener;connect(){const e=!!this.peekTargetValue&&this.element.closest(this.peekTargetValue);if(e){const t=()=>{this.peekingValue&&this.close(),this.peekingValue=!1};e.addEventListener("mouseleave",t,{passive:!0}),this.cleanUpPeekListener=()=>{e.removeEventListener("mouseleave",t)}}new Promise((e=>{setTimeout(e)})).then((()=>{this.dispatch("ready",{cancelable:!1,detail:{closed:this.closedValue}})}))}closedValueChanged(e,t){if(t===e)return;const n=this.closedClasses,i=this.openedClasses,o=this.contentTargets,r=void 0===t,a=this.peekingValue,s=this.openedContentClasses,l=this.toggles;if(a||this.updateToggleIcon(e),e){if(this.dispatch("closing",{cancelable:!0}).defaultPrevented)return;l.forEach((e=>{e.setAttribute("aria-expanded","false")})),o.forEach((e=>{e.classList.remove(...s),e.hidden=!0})),this.element.classList.add(...n),this.element.classList.remove(...i),this.dispatch("closed",{cancelable:!1})}else{if(this.dispatch("opening",{cancelable:!0}).defaultPrevented)return;l.forEach((e=>{e.setAttribute("aria-expanded","true")})),o.forEach((e=>{e.classList.add(...s),e.hidden=!1})),this.element.classList.remove(...n),this.element.classList.add(...i),this.dispatch("opened",{cancelable:!1})}r||l.forEach((t=>{this.dispatch("toggled",{cancelable:!1,detail:{closed:e},target:t})}))}close(){this.closedValue=!0}open(){this.closedValue=!1}peek(){this.closedValue&&(this.peekingValue=!0,this.open())}toggle(){if(this.peekingValue)return this.peekingValue=!1,void this.updateToggleIcon(!1);this.closedValue=!this.closedValue}get toggles(){const e=this.contentTargets.map((e=>e.id)).flatMap((e=>Array.from(document.querySelectorAll(`[aria-controls~="${e}"]`)))).concat(...this.toggleTargets);return Array.from(new Set(e))}updateToggleIcon(e=!1){if(!this.hasCloseIconClass||!this.hasOpenIconClass)return;const t=this.closeIconClass,n=this.openIconClass;t!==n&&this.toggles.map((e=>{const t=e.querySelector(".icon"),n=t?.querySelector("use");return n&&t?[t,n]:[]})).filter((({length:e})=>e)).forEach((([i,o])=>{e?(i.classList.remove(t),i.classList.add(n),o.setAttribute("href",`#${n}`)):(i.classList.remove(n),i.classList.add(t),o.setAttribute("href",`#${t}`))}))}disconnect(){this.cleanUpPeekListener?.call(this)}}class Wt extends r.Controller{skipToTarget;connect(){this.skipToTarget=document.querySelector(this.element.getAttribute("href")||"main")}handleBlur(){this.skipToTarget&&(this.skipToTarget.removeAttribute("tabindex"),this.skipToTarget.removeEventListener("blur",this.handleBlur),this.skipToTarget.removeEventListener("focusout",this.handleBlur))}skip(){this.skipToTarget&&(this.skipToTarget.setAttribute("tabindex","-1"),this.skipToTarget.addEventListener("blur",this.handleBlur),this.skipToTarget.addEventListener("focusout",this.handleBlur),this.skipToTarget.focus())}}const Kt=(e,{unicodeSlugsEnabled:t=!1}={})=>t?e.replace(/\s+/g,"-").replace(/[&/\\#,+()$~%.'":`@^!*?<>{}]/g,"").toLowerCase():e.replace(/\s+/g,"-").replace(/[^A-Za-z0-9\-_]/g,"").toLowerCase();class Zt extends r.Controller{static values={allowUnicode:{default:!1,type:Boolean}};compare(e){if(!this.element.value)return!0;const t=this[e.detail?.compareAs||e.params?.compareAs||"slugify"]({detail:{value:e.detail?.value||""}},!0),n=this.element.value,i=t.trim()===n.trim();return i||e?.preventDefault(),i}slugify(e,t=!1){const n=this.allowUnicodeValue,{value:i=this.element.value}=e?.detail||{},o=Kt(i.trim(),{unicodeSlugsEnabled:n});return t||(this.element.value=o),o}urlify(e,t=!1){const n=this.allowUnicodeValue,{value:i=this.element.value}=e?.detail||{},o=((e,t={})=>window.URLify(e,255)||Kt(e,t))(i.trim(),{unicodeSlugsEnabled:n});return t||(this.element.value=o),o}}class Gt extends r.Controller{submit(){const e=this.element.form;if(!e)throw new Error(`${this.identifier} controlled element must be part of a <form />`);e.requestSubmit?e.requestSubmit():e.submit()}}class Qt extends r.Controller{static defaultClearParam="p";static targets=["input"];static values={icon:{default:"",type:String},loading:{default:!1,type:Boolean},src:{default:"",type:String},target:{default:"#listing-results",type:String},wait:{default:200,type:Number}};abortController;iconElement;replaceLazy;searchLazy;submitLazy;connect(){const e=this.hasInputTarget?this.inputTarget.form:this.element;this.srcValue=this.srcValue||e?.getAttribute("action")||"";const t=this.target;this.iconElement=null;const n=(this.hasInputTarget?this.inputTarget:this.element).parentElement;this.iconElement=n?.querySelector("use")||null,this.iconValue=this.iconElement?.getAttribute("href")||"",this.loadingValue=!1,this.replaceLazy=(0,C.D)(this.replace.bind(this),this.waitValue),this.searchLazy=(0,C.D)(this.search.bind(this),this.waitValue),this.submitLazy=(0,C.D)(this.submit.bind(this),this.waitValue),this.dispatch("ready",{cancelable:!1,target:t})}get target(){const e=this.targetValue,t=document.querySelector(e),n=t&&t instanceof HTMLElement,i=!!this.srcValue,o=[];if(n||o.push(`Cannot find valid target element at "${e}"`),i||o.push("Cannot find valid src URL value"),o.length)throw new Error(o.join(", "));return t}loadingValueChanged(e,t){const n=void 0===t?null:this.target;e?(n?.setAttribute("aria-busy","true"),this.iconElement?.setAttribute("href","#icon-spinner")):(n?.removeAttribute("aria-busy"),this.iconElement?.setAttribute("href",this.iconValue))}search(e){const t=(e?.detail?.clear||e?.params?.clear||this.constructor.defaultClearParam).split(" "),n=this.hasInputTarget?this.inputTarget:this.element,i=n.name,o=new URLSearchParams(window.location.search),r=o.get(i)||"",a=n.value||"";if(r.trim()===a.trim())return;a?o.set(i,a):o.delete(i),t.forEach((e=>{o.delete(e)}));const s="?"+o.toString(),l=this.srcValue;this.replace(l+s).then((()=>{window.history.replaceState(null,"",s)}))}submit(){const e=this.hasInputTarget?this.inputTarget.form:this.element,t="?"+new URLSearchParams(new FormData(e)).toString(),n=this.srcValue;this.replace(n+t)}async replace(e){const t=this.target,n=("string"==typeof e?e:e?.detail?.url||e?.params?.url||"")||this.srcValue;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;const{signal:i}=this.abortController;return this.loadingValue=!0,this.dispatch("begin",{cancelable:!0,detail:{requestUrl:n},target:this.target}).defaultPrevented?Promise.resolve():fetch(n,{headers:{"x-requested-with":"XMLHttpRequest"},signal:i}).then((e=>{if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);return e.text()})).then((e=>(t.innerHTML=e,this.dispatch("success",{cancelable:!1,detail:{requestUrl:n,results:e},target:t}),e))).catch((e=>{i.aborted||(this.dispatch("error",{cancelable:!1,detail:{error:e,requestUrl:n},target:t}),console.error(`Error fetching ${n}`,e))})).finally((()=>{i===this.abortController?.signal&&(this.loadingValue=!1)}))}disconnect(){this.loadingValue=!1,this.replaceLazy?.cancel(),this.searchLazy?.cancel(),this.submitLazy?.cancel()}}class Jt extends r.Controller{static values={debounce:{default:100,type:Number},delay:{default:0,type:Number},disabled:{default:!1,type:Boolean},quiet:{default:!1,type:Boolean},target:String};connect(){this.processTargetElements("start",!0),this.apply=(0,C.D)(this.apply.bind(this),this.debounceValue)}check(){this.processTargetElements("check",!0)}apply(e){const t=e?.params?.apply||this.element.value,n=e=>{e.value=t,this.quietValue||this.dispatch("change",{cancelable:!1,prefix:"",target:e})};this.processTargetElements("apply").forEach((e=>{this.delayValue?setTimeout((()=>{n(e)}),this.delayValue):n(e)}))}clear(){this.processTargetElements("clear").forEach((e=>{setTimeout((()=>{e.setAttribute("value",""),this.quietValue||this.dispatch("change",{cancelable:!1,prefix:"",target:e})}),this.delayValue)}))}ping(){this.processTargetElements("ping",!1,{bubbles:!0})}processTargetElements(e,t=!1,n={}){if(!t&&this.disabledValue)return[];const i=[...document.querySelectorAll(this.targetValue)],o=i.filter((t=>!this.dispatch(e,{bubbles:!1,cancelable:!0,...n,detail:{element:this.element,value:this.element.value},target:t}).defaultPrevented));return t&&(this.disabledValue=i.length>o.length),o}}class en extends r.Controller{static values={options:{default:{},type:Object},url:String};tagit;connect(){const e=this.cleanTag.bind(this);o()(this.element).tagit({autocomplete:{source:this.urlValue},preprocessTag:e,...this.optionsValue})}cleanTag(e){return e&&'"'!==e[0]&&e.indexOf(" ")>-1?`"${e}"`:e}clear(){o()(this.element).tagit("removeAll")}}var tn=n(9633);const nn={initial:1e4,long:3e3,notify:30,short:300};class on extends r.Controller{static values={confirmation:{default:"",type:String},durations:{default:nn,type:Object},force:{default:!1,type:Boolean},hasComments:{default:!1,type:Boolean},hasEdits:{default:!1,type:Boolean},watch:{default:"edits",type:String}};initialFormData;observer;runningCheck;initialize(){this.notify=(0,C.D)(this.notify.bind(this),this.durationsValue.notify)}connect(){this.clear();const e=this.durationsValue,t=this.watchValue;t.includes("comments")&&this.watchComments(e),t.includes("edits")&&this.watchEdits(e),this.dispatch("ready",{cancelable:!1})}get formData(){const e=["comment_","comments-","csrfmiddlewaretoken","next"],t=new FormData(this.element);return JSON.stringify([...t.entries()].filter((([t])=>!e.some((e=>t.startsWith(e))))),((e,t)=>t instanceof File?{name:t.name,size:t.size,type:t.type}:t))}check(){const{long:e,short:t}=this.durationsValue;return this.runningCheck&&this.runningCheck.cancel(),this.runningCheck=(0,C.D)((()=>{this.forceValue?this.hasEditsValue=!0:this.initialFormData?this.hasEditsValue=this.initialFormData!==this.formData:this.hasEditsValue=!1}),this.hasEditsValue?e:t),this.runningCheck()}clear(){this.hasCommentsValue=!1,this.hasEditsValue=!1}confirm(e){const t=this.confirmationValue;return t&&(this.forceValue||this.hasCommentsValue||this.hasEditsValue)?(e.returnValue=t,t):null}hasCommentsValueChanged(e,t){e!==t&&this.notify()}hasEditsValueChanged(e,t){e!==t&&this.notify()}notify(){const e=this.hasCommentsValue,t=this.hasEditsValue;if(!e&&!t)return void this.dispatch("clear",{cancelable:!1});const[n]=[t&&e&&"all",e&&"comments",t&&"edits"].filter(Boolean);this.dispatch("add",{cancelable:!1,detail:{type:n}})}submit(){this.confirmationValue=""}watchComments({long:e,short:t}){let n;const{commentApp:i}=window.comments,o=i.selectors.selectIsDirty(i.store.getState());this.dispatch("watch-edits",{cancelable:!1,detail:{initialComments:o}}),this.hasCommentsValue=o,i.store.subscribe((()=>{n&&n.cancel(),n=(0,C.D)((()=>{this.hasCommentsValue=i.selectors.selectIsDirty(i.store.getState())}),this.hasCommentsValue?e:t),n()}))}watchEdits({initial:e}){const t=this.element;(0,C.D)((()=>{const e=this.formData;this.initialFormData=e,this.dispatch("watch-edits",{cancelable:!1,detail:{initialFormData:e}});const n=e=>e.nodeType===e.ELEMENT_NODE&&["INPUT","TEXTAREA","SELECT"].includes(e.tagName),i=new MutationObserver((e=>{e.some((e=>Array.from(e.addedNodes).some(n)||Array.from(e.removedNodes).some(n)))&&this.check()}));i.observe(t,{attributes:!1,childList:!0,subtree:!0}),this.observer=i}),e)()}disconnect(){this.runningCheck&&this.runningCheck.cancel(),this.observer&&this.observer.disconnect()}static afterLoad(e){window.enableDirtyFormCheck=(t,{alwaysDirty:n=!1,confirmationMessage:i=""})=>{R().then((()=>{const o=document.querySelector(`${t}:not([data-controller~='${e}'])`);o instanceof HTMLFormElement&&([["data-w-unsaved-confirmation-value",i||" "],["data-w-unsaved-force-value",String(n||!1)],["data-w-unsaved-watch-value","edits comments"]].forEach((([e,t])=>{o.setAttribute(e,t)})),o.setAttribute("data-action",[o.getAttribute("data-action")||"","w-unsaved#submit","beforeunload@window->w-unsaved#confirm","change->w-unsaved#check","keyup->w-unsaved#check"].filter(Boolean).join(" ")),o.setAttribute("data-controller",[o.getAttribute("data-controller")||"",e].filter(Boolean).join(" ")))}))}}}class rn extends Error{constructor(e){super(e),this.message=`Version number '${e}' is not formatted correctly.`}}class an extends Error{constructor(){super(),this.message="Can only compare prerelease versions"}}class sn{static MAJOR=new sn("Major");static MINOR=new sn("Minor");static PATCH=new sn("Patch");static PRE_RELEASE_STEP=new sn("PreReleaseStep");static PRE_RELEASE_VERSION=new sn("PreReleaseVersion");constructor(e){this.name=e}}class ln{constructor(e){const t=e.match(/^(?<major>\d+)\.{1}(?<minor>\d+)((\.{1}(?<patch>\d+))|(?<preReleaseStep>a|b|rc|\.dev){1}(?<preReleaseVersion>\d+)){0,1}$/);if(null===t)throw new rn(e);const n=t.groups;this.major=parseInt(n.major,10),this.minor=parseInt(n.minor,10),this.patch=n.patch?parseInt(n.patch,10):0,this.preReleaseStep=n.preReleaseStep?n.preReleaseStep:null,this.preReleaseVersion=n.preReleaseVersion?parseInt(n.preReleaseVersion,10):null}isPreRelease(){return null!==this.preReleaseStep}isPreReleaseStepBehind(e){if(!this.isPreRelease()||!e.isPreRelease())throw new an;return"a"===this.preReleaseStep&&("b"===e.preReleaseStep||"rc"===e.preReleaseStep)||"b"===this.preReleaseStep&&"rc"===e.preReleaseStep}howMuchBehind(e){if(this.major<e.major)return sn.MAJOR;if(this.major===e.major&&this.minor<e.minor)return sn.MINOR;if(this.major===e.major&&this.minor===e.minor&&!this.isPreRelease()&&!e.isPreRelease()&&this.patch<e.patch)return sn.PATCH;if(this.major===e.major&&this.minor===e.minor&&this.isPreRelease()){if(!e.isPreRelease())return sn.MINOR;if(this.isPreReleaseStepBehind(e))return sn.PRE_RELEASE_STEP;if(this.preReleaseStep===e.preReleaseStep&&this.preReleaseVersion<e.preReleaseVersion)return sn.PRE_RELEASE_VERSION}return null}}class cn extends r.Controller{static classes=["hidden"];static targets=["latestVersion","link"];static values={currentVersion:String,ltsOnly:{default:!1,type:Boolean},url:{default:"https://releases.wagtail.org/latest.txt",type:String}};connect(){this.checkVersion()}checkVersion(){const e=this.urlValue,t=new ln(this.currentVersionValue),n=this.ltsOnlyValue;fetch(e,{referrerPolicy:"strict-origin-when-cross-origin"}).then((t=>{if(200!==t.status)throw Error(`Unexpected response from ${e}. Status: ${t.status}`);return t.json()})).then((e=>{let i=e;if(i&&i.lts&&n&&(i=i.lts),i&&i.version){const e=new ln(i.version),o=t.howMuchBehind(e);let r=null;if(!o)return;if(r=o===sn.MAJOR||o===sn.MINOR?i.minorUrl:i.url,this.latestVersionTarget instanceof HTMLElement){const e=[i.version,n?"(LTS)":""].join(" ").trim();this.latestVersionTarget.textContent=e}this.linkTarget instanceof HTMLElement&&this.linkTarget.setAttribute("href",r||""),this.element.classList.remove(this.hiddenClass)}})).catch((t=>{console.error(`Error fetching ${e}. Error: ${t}`)}))}}const hn=[{controllerConstructor:m,identifier:"w-action"},{controllerConstructor:T,identifier:"w-autosize"},{controllerConstructor:S,identifier:"w-bulk"},{controllerConstructor:A,identifier:"w-clipboard"},{controllerConstructor:V,identifier:"w-clone"},{controllerConstructor:V,identifier:"w-messages"},{controllerConstructor:x,identifier:"w-count"},{controllerConstructor:L.Y,identifier:"w-dialog"},{controllerConstructor:k,identifier:"w-dismissible"},{controllerConstructor:O,identifier:"w-drilldown"},{controllerConstructor:H,identifier:"w-dropdown"},{controllerConstructor:z,identifier:"w-init"},{controllerConstructor:j,identifier:"w-link"},{controllerConstructor:qt,identifier:"w-orderable"},{controllerConstructor:$t,identifier:"w-progress"},{controllerConstructor:Ut,identifier:"w-breadcrumbs"},{controllerConstructor:Ut,identifier:"w-reveal"},{controllerConstructor:Wt,identifier:"w-skip-link"},{controllerConstructor:Zt,identifier:"w-slug"},{controllerConstructor:Gt,identifier:"w-submit"},{controllerConstructor:Qt,identifier:"w-swap"},{controllerConstructor:Jt,identifier:"w-sync"},{controllerConstructor:en,identifier:"w-tag"},{controllerConstructor:tn.y,identifier:"w-teleport"},{controllerConstructor:I,identifier:"w-tooltip"},{controllerConstructor:on,identifier:"w-unsaved"},{controllerConstructor:cn,identifier:"w-upgrade"}];var dn=n(5447);window.StimulusModule=r;const un=window.wagtail||{};un.app=(({debug:e=!1,definitions:t=[],root:n=document.documentElement}={})=>{const i=r.Application.start(n);return i.debug=e,i.load(t),i})({definitions:hn}),un.components={Icon:l.Z,Portal:c.Z},window.wagtail=un,window.escapeHtml=dn.X,o()((()=>{o()(".drop-zone").on("dragover",(function(){o()(this).addClass("hovered")})).on("dragleave dragend drop",(function(){o()(this).removeClass("hovered")}))}))},5311:e=>{e.exports=jQuery}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.m=t,e=[],i.O=(t,n,o,r)=>{if(!n){var a=1/0;for(h=0;h<e.length;h++){for(var[n,o,r]=e[h],s=!0,l=0;l<n.length;l++)(!1&r||a>=r)&&Object.keys(i.O).every((e=>i.O[e](n[l])))?n.splice(l--,1):(s=!1,r<a&&(a=r));if(s){e.splice(h--,1);var c=o();void 0!==c&&(t=c)}}return t}r=r||0;for(var h=e.length;h>0&&e[h-1][2]>r;h--)e[h]=e[h-1];e[h]=[n,o,r]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=321,(()=>{var e={321:0};i.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(o in s)i.o(s,o)&&(i.m[o]=s[o]);if(l)var h=l(i)}for(t&&t(n);c<a.length;c++)r=a[c],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return i.O(h)},n=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=i.O(void 0,[751],(()=>i(6525)));o=i.O(o)})();
2
+ (()=>{var e,t={6411:(e,t,n)=>{var i;!function(o,r,a){if(o){for(var s,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},c={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},d={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},h={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},u=1;u<20;++u)l[111+u]="f"+u;for(u=0;u<=9;++u)l[u+96]=u.toString();y.prototype.bind=function(e,t,n){var i=this;return e=e instanceof Array?e:[e],i._bindMultiple.call(i,e,t,n),i},y.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},y.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},y.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(b(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},y.init=function(){var e=y(r);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),o.Mousetrap=y,e.exports&&(e.exports=y),void 0===(i=function(){return y}.call(t,n,t,e))||(e.exports=i)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function f(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}function m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function g(e,t,n){return n||(n=function(){if(!s)for(var e in s={},l)e>95&&e<112||l.hasOwnProperty(e)&&(s[l[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function v(e,t){var n,i,o,r=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)i=n[o],h[i]&&(i=h[i]),t&&"keypress"!=t&&d[i]&&(i=d[i],r.push("shift")),m(i)&&r.push(i);return{key:i,modifiers:r,action:t=g(i,r,t)}}function b(e,t){return null!==e&&e!==r&&(e===t||b(e.parentNode,t))}function y(e){var t=this;if(e=e||r,!(t instanceof y))return new y(e);t.target=e,t._callbacks={},t._directMap={};var n,i={},o=!1,a=!1,s=!1;function l(e){e=e||{};var t,n=!1;for(t in i)e[t]?n=!0:i[t]=0;n||(s=!1)}function c(e,n,o,r,a,s){var l,c,d,h,u=[],p=o.type;if(!t._callbacks[e])return[];for("keyup"==p&&m(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(c=t._callbacks[e][l],(r||!c.seq||i[c.seq]==c.level)&&p==c.action&&("keypress"==p&&!o.metaKey&&!o.ctrlKey||(d=n,h=c.modifiers,d.sort().join(",")===h.sort().join(",")))){var f=!r&&c.combo==a,g=r&&c.seq==r&&c.level==s;(f||g)&&t._callbacks[e].splice(l,1),u.push(c)}return u}function d(e,n,i,o){t.stopCallback(n,n.target||n.srcElement,i,o)||!1===e(n,i)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function h(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=f(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function u(e,r,a,h,p){t._directMap[e+":"+a]=r;var m,g=(e=e.replace(/\s+/g," ")).split(" ");g.length>1?function(e,t,r,a){function c(t){return function(){s=t,++i[e],clearTimeout(n),n=setTimeout(l,1e3)}}function h(t){d(r,t,e),"keyup"!==a&&(o=f(t)),setTimeout(l,10)}i[e]=0;for(var p=0;p<t.length;++p){var m=p+1===t.length?h:c(a||v(t[p+1]).action);u(t[p],m,a,e,p)}}(e,g,r,a):(m=v(e,a),t._callbacks[m.key]=t._callbacks[m.key]||[],c(m.key,m.modifiers,{type:m.action},h,e,p),t._callbacks[m.key][h?"unshift":"push"]({callback:r,modifiers:m.modifiers,action:m.action,seq:h,level:p,combo:e}))}t._handleKey=function(e,t,n){var i,o=c(e,t,n),r={},h=0,u=!1;for(i=0;i<o.length;++i)o[i].seq&&(h=Math.max(h,o[i].level));for(i=0;i<o.length;++i)if(o[i].seq){if(o[i].level!=h)continue;u=!0,r[o[i].seq]=1,d(o[i].callback,n,o[i].combo,o[i].seq)}else u||d(o[i].callback,n,o[i].combo);var p="keypress"==n.type&&a;n.type!=s||m(e)||p||l(r),a=u&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var i=0;i<e.length;++i)u(e[i],t,n)},p(e,"keypress",h),p(e,"keydown",h),p(e,"keyup",h)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},9610:()=>{!function(e){if(e){var t={},n=e.prototype.stopCallback;e.prototype.stopCallback=function(e,i,o,r){return!!this.paused||!t[o]&&!t[r]&&n.call(this,e,i,o)},e.prototype.bindGlobal=function(e,n,i){if(this.bind(e,n,i),e instanceof Array)for(var o=0;o<e.length;o++)t[e[o]]=!0;else t[e]=!0},e.init()}}("undefined"!=typeof Mousetrap?Mousetrap:void 0)},2029:(e,t,n)=>{"use strict";var i=n(1669),o=n.n(i),r=n(2891),a=n(2427),s=n.n(a),l=n(1238),c=n(5996),d=n(5556),h=n.n(d);h().shape({live:h().bool.isRequired,status:h().string.isRequired}).isRequired;var u=n(862),p=n.n(u);const f=({name:e,component:t,className:n,duration:i,children:o})=>s().createElement(p(),{component:t,transitionEnterTimeout:i,transitionLeaveTimeout:i,transitionName:`w-transition-${e}`,className:n},o);f.propTypes={name:h().oneOf(["push","pop"]).isRequired,component:h().string,className:h().string,duration:h().number,children:h().node},f.defaultProps={component:"div",children:null,className:null,duration:210};var m=n(6508);class g extends r.Controller{static values={continue:{type:Boolean,default:!1},url:String};click(){this.element.click()}noop(){}post(e){e.preventDefault(),e.stopPropagation();const t=document.createElement("form");t.action=this.urlValue,t.method="POST";const n=document.createElement("input");if(n.type="hidden",n.name="csrfmiddlewaretoken",n.value=m.HE.CSRF_TOKEN,t.appendChild(n),!this.continueValue){const e=document.createElement("input");e.type="hidden",e.name="next",e.value=window.location.href,t.appendChild(e)}document.body.appendChild(t),t.submit()}redirect(e){const t=e?.params?.url??e?.detail?.url??this.element.value;t&&window.location.assign(t)}reset(e){const t=this.element,n=t.value,{value:i=""}={value:t instanceof HTMLInputElement?t.defaultValue:"",...e?.params,...e?.detail};n!==i&&(t.value=i,this.dispatch("change",{bubbles:!0,cancelable:!1,prefix:"",target:t}))}select(){const e=this.element;e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.select()}}var v=new Map;function b(e){var t=v.get(e);t&&t.destroy()}function y(e){var t=v.get(e);t&&t.update()}var w=null;"undefined"==typeof window?((w=function(e){return e}).destroy=function(e){return e},w.update=function(e){return e}):((w=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!v.has(e)){var t,n=null,i=window.getComputedStyle(e),o=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),r=function(t){e.removeEventListener("autosize:destroy",r),e.removeEventListener("autosize:update",s),e.removeEventListener("input",o),window.removeEventListener("resize",s),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),v.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",r),e.addEventListener("autosize:update",s),e.addEventListener("input",o),window.addEventListener("resize",s),e.style.overflowX="hidden",e.style.wordWrap="break-word",v.set(e,{destroy:r,update:s}),s()}function a(t){var o,r,s=t.restoreTextAlign,l=void 0===s?null:s,c=t.testForHeightReduction,d=void 0===c||c,h=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),d&&(o=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),r="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&r>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),r=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=r+"px",l&&(e.style.textAlign=l),o&&o(),n!==r&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=r),h!==i.overflow&&!l)){var u=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===u?"end":"start"),a({restoreTextAlign:u,testForHeightReduction:!0})}}function s(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],b),e},w.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],y),e});const E=w;var C=n(8667);class S extends r.Controller{resizeObserver;resize(){E.update(this.element)}initialize(){this.resize=(0,C.s)(this.resize.bind(this),50)}connect(){E(this.element),this.resizeObserver=new ResizeObserver(this.resize),this.resizeObserver.observe(this.element)}disconnect(){this.resizeObserver?.disconnect(),E.destroy(this.element)}}class T extends r.Controller{static values={arguments:{type:Array,default:[]},data:{type:Object,default:{}}};connect(){const e=window.telepath;if(!e)throw new Error("`window.telepath` is not available.");const t=this.element,n=t.id;if(!n)throw new Error("Controlled element needs an id attribute.");const i=e.unpack(this.dataValue);i.render(t,n,...this.argumentsValue),this.dispatch("ready",{detail:{...i},cancelable:!1})}static afterLoad(){window.initBlockWidget=e=>{const t=document.querySelector("#"+e+"[data-block]");if(!t)return;const n=JSON.parse(t.dataset.data);if(window.telepath){const i=window.telepath.unpack(n),o=JSON.parse(t.dataset.value),r=JSON.parse(t.dataset.error);i.render(t,e,o,r)}}}}class A extends r.Controller{static classes=["actionInactive"];static targets=["action","all","item"];lastChanged;shiftActive;connect(){this.toggle(),this.handleShiftKey=this.handleShiftKey.bind(this),document.addEventListener("keydown",this.handleShiftKey),document.addEventListener("keyup",this.handleShiftKey)}getValidTargets(e=null,t=this.itemTargets,n=`data-${this.identifier}-group-param`){const i=t.filter((({disabled:e})=>!e));if(!e)return i;const o=e.split(" ");return i.filter((e=>{const t=new Set((e.getAttribute(n)||"").split(" "));return o.some(t.has.bind(t))}))}handleShiftKey(e){if(!e)return;const{shiftKey:t,type:n}=e;"keydown"===n&&t&&(this.shiftActive=!0),"keyup"===n&&this.shiftActive&&(this.shiftActive=!1)}toggle(e){const{group:t=null}={...e?.detail,...e?.params},n=this.getValidTargets(t),i=this.lastChanged;if(this.shiftActive&&i instanceof HTMLElement){this.shiftActive=!1;const t=n.findIndex((e=>e===i)),o=n.findIndex((t=>t===e?.target)),[r,a]=[t,o].sort(((e,t)=>e-t));n.forEach(((e,i)=>{i>=r&&i<=a&&(e.checked=!!n[t].checked,this.dispatch("change",{target:e,bubbles:!0}))}))}this.lastChanged=n.find((t=>t.contains(e?.target)))??null;const o=n.filter((e=>e.checked)).length,r=o>0,a=o===n.length;this.getValidTargets(t,this.allTargets).forEach((e=>{e.checked=a}));const s=this.actionInactiveClasses;s.length&&this.actionTargets.forEach((e=>{s.forEach((t=>{e.classList.toggle(t,!r)}))}))}toggleAll(e){const{force:t=null,group:n=null}={...e.detail,...e.params};this.lastChanged=null;let i=!1;if("boolean"==typeof t)i=t;else if(e.target instanceof HTMLInputElement)i=e.target.checked;else{const e=this.allTargets[0];i=!e?.checked}this.getValidTargets(n).forEach((e=>{e.checked!==i&&(e.checked=i,e.dispatchEvent(new Event("change",{bubbles:!0})))})),this.toggle(e)}disconnect(){document?.removeEventListener("keydown",this.handleShiftKey),document?.removeEventListener("keyup",this.handleShiftKey)}}class _ extends r.Controller{static targets=["value"];copy(e){const{value:t=(this.hasValueTarget?this.valueTarget.value:this.element.value||null)}={...e.detail,...e.params};t&&(this.dispatch("copy").defaultPrevented||new Promise(((e,n)=>{navigator.clipboard?navigator.clipboard.writeText(t).then(e,n):n()})).then((()=>this.dispatch("copied",{detail:{clear:!0,type:"success"}}))).catch((()=>this.dispatch("error",{detail:{clear:!0,type:"error"}}))))}}var k=n(3476);class x extends r.Controller{static classes=["added","hide","show"];static targets=["container","template"];static values={autoClear:{default:0,type:Number},clearDelay:{default:0,type:Number},showDelay:{default:0,type:Number}};isClearing;add(e){const{clear:t=!1,text:n="",type:i=null}={...e?.detail,...e?.params};this.element.classList.add(...this.addedClasses),t&&this.clear();const o=this.getTemplateContent(i);if(!o)return;const r=o.lastElementChild;r instanceof HTMLElement&&n&&(r.textContent=n),this.containerTarget.appendChild(o),(0,C.s)((()=>{this.element.classList.remove(...this.hideClasses),this.element.classList.add(...this.showClasses),this.dispatch("added")}),this.showDelayValue||null)().then((()=>{this.autoClearValue&&(0,C.s)((()=>{this.clear()}),this.autoClearValue)()}))}clear(e){if(this.isClearing=!1,!e)return void(this.containerTarget.innerHTML="");const t=this.clearDelayValue||null,n=this.element;this.isClearing=!0,n.classList.remove(...this.addedClasses),n.classList.remove(...this.showClasses),n.classList.add(...this.hideClasses),(0,C.s)(k.l,t)().then((()=>{this?.isClearing&&(this.containerTarget.innerHTML="",this.dispatch("cleared"),this.isClearing=!1)}))}getTemplateContent(e){const t=e&&this.templateTargets.find((({dataset:t})=>t.type===e))||this.templateTarget,n=t.content.firstElementChild?.cloneNode(!0);return n instanceof HTMLElement?n:null}}var O=n(2833);class D extends r.Controller{static classes=["active"];static targets=["label","total"];static values={container:{default:"body",type:String},find:{default:".error-message,.help-critical",type:String},labels:{default:[],type:Array},min:{default:0,type:Number},total:{default:0,type:Number}};connect(){this.count()}count(){return this.totalValue=[...document.querySelectorAll(this.containerValue||"body")].map((e=>e.querySelectorAll(this.findValue).length)).reduce(((e,t)=>e+t),0),this.totalValue}getLabel(e){const t=(0,O.WI)("%(num)s error","%(num)s errors",e);if(this.labelsValue.length>1){const[t,n=this.labelsValue[1],i="__total__"]=this.labelsValue;return(0,O.WI)(t,n,e).replace(i,`${e}`)}return t.replace("%(num)s",`${e}`)}minValueChanged(){this.totalValueChanged(this.count())}totalValueChanged(e){const t=this.minValue;this.hasActiveClass&&this.element.classList.toggle(this.activeClass,e>t),this.hasLabelTarget&&(this.labelTarget.textContent=e>t?this.getLabel(e):""),this.hasTotalTarget&&(this.totalTarget.textContent=e>t?`${e}`:"")}}var V=n(9104);class L extends r.Controller{static classes=["dismissed"];static values={dismissed:{default:!1,type:Boolean},id:{default:"",type:String}};toggle(){var e;this.idValue&&(this.element.classList.add(this.dismissedClass),this.dismissedValue=!0,e={[this.idValue]:!0},fetch(m.HE.ADMIN_URLS?.DISMISSIBLES,{method:"PATCH",headers:{[m.HE.CSRF_HEADER_NAME]:m.HE.CSRF_TOKEN,"Content-Type":"application/json"},body:JSON.stringify(e),mode:"same-origin"}))}}class P extends r.Controller{static targets=["count","menu","toggle"];static values={activeSubmenu:{default:"",type:String},countAttr:{default:"",type:String}};static outlets=["w-action","w-dropdown"];countTargetConnected(){this.updateCount()}connect(){this.open=this.open.bind(this)}wActionOutletConnected(e,t){t.addEventListener("click",this.open)}wActionOutletDisconnected(e,t){t.removeEventListener("click",this.open)}updateCount(){const e=document.querySelectorAll(`[${this.countAttrValue}]`).length;this.countTargets.forEach((t=>{const n=t.dataset.countName,i=n?document.querySelectorAll(`[${this.countAttrValue}=${n}]`).length:e;t.hidden=0===i,t.textContent=i.toString()}))}open(e){const t=e.target?.closest("button");this.activeSubmenuValue=t.getAttribute("aria-controls")||""}close(){this.activeSubmenuValue=""}delayedClose(){setTimeout((()=>this.close()),200)}activeSubmenuValueChanged(e,t){if(t){const e=document.querySelector(`[aria-controls="${t}"]`);this.toggle(!1,e)}if(e){const t=document.querySelector(`[aria-controls="${e}"]`);this.toggle(!0,t)}}preventOutletClickaway(e){const t=e.detail.target;if(!t)return;const n=this.toggleTargets.map((e=>e.getAttribute("aria-controls"))),i=t.closest("button")?.getAttribute("aria-controls")||"";n.includes(i)&&e.preventDefault()}toggle(e,t){this.hasWDropdownOutlet&&e&&this.wDropdownOutlet.show();const n=t.getAttribute("aria-controls"),i=this.element.querySelector(`#${n}`);i&&(t.setAttribute("aria-expanded",e.toString()),i.hidden=!e,this.menuTarget.hidden=e,e?i.focus():t.focus())}}var I=n(7381),M=n(1083);const N={name:"hideOnEsc",defaultValue:!0,fn({hide:e}){function t(t){"Escape"===t.key&&e()}return{onShow(){document.addEventListener("keydown",t)},onHide(){document.removeEventListener("keydown",t)}}}};class R extends r.Controller{static values={content:String,offset:Array,placement:{default:"bottom",type:String}};tippy;connect(){this.tippy=(0,I.Ay)(this.element,this.options)}contentValueChanged(e,t){t&&t!==e&&this.tippy?.setProps(this.options)}placementValueChanged(e,t){t&&t!==e&&this.tippy?.setProps(this.options)}hide(){this.tippy?.hide()}show(){this.tippy?.show()}get options(){return{content:this.contentValue,placement:this.placementValue,plugins:this.plugins,...this.hasOffsetValue&&{offset:this.offsetValue}}}get plugins(){return[N]}disconnect(){this.tippy?.destroy()}static afterLoad(){(0,M.Q)().then((()=>{(0,I.Ay)("[data-tippy-content]",{plugins:[N]})}))}}const B={name:"hideTooltipOnBreadcrumbAndCollapse",fn({hide:e}){function t(){e()}return{onShow(){document.addEventListener("w-breadcrumbs:opened",t),document.addEventListener("w-breadcrumbs:closed",t)},onHide(){document.removeEventListener("w-breadcrumbs:closed",t),document.removeEventListener("w-breadcrumbs:opened",t)}}}},F={name:"hideTooltipOnClickInside",defaultValue:!0,fn(e){const t=()=>e.hide();return{onShow(){e.popper.addEventListener("click",t)},onHide(){e.popper.removeEventListener("click",t)}}}},j={name:"rotateToggleIcon",fn(e){const t=e.reference.querySelector(".icon-arrow-down, .icon-arrow-up");return t?{onShow:()=>t.classList.add("w-rotate-180"),onHide:()=>t.classList.remove("w-rotate-180")}:{}}};class H extends r.Controller{static targets=["toggle","content"];static values={hideOnClick:{default:!1,type:Boolean},keepMounted:{default:!1,type:Boolean},offset:Array,theme:{default:"dropdown",type:String}};tippy;connect(){this.tippy=(0,I.Ay)(this.toggleTarget,this.options)}hide(){this.tippy?.hide()}show(){this.tippy?.show()}get options(){const e=this.toggleTarget.getAttribute("aria-label");let t;return this.hasContentTarget&&(this.contentTarget.hidden=!1),e&&(t=(0,I.Ay)(this.toggleTarget,{content:e,placement:"bottom",plugins:[N]})),{...this.hasContentTarget?{content:this.contentTarget}:{},...this.themeOptions,trigger:"click",interactive:!0,...this.hasOffsetValue&&{offset:this.offsetValue},getReferenceClientRect:()=>this.reference.getBoundingClientRect(),theme:this.themeValue,onCreate:e=>{if(this.keepMountedValue){const{popper:t}=e;this.element.append(t),t.hidden=!0}},onShow:e=>{if(t&&t.disable(),this.keepMountedValue){const{popper:t}=e;t.hidden=!1}},onShown:()=>{this.dispatch("shown")},onHide:()=>{this.dispatch("hide"),t&&t.enable()},onHidden:e=>{if(this.keepMountedValue){const{popper:t}=e;this.element.append(t),t.hidden=!0}}}}get themeOptions(){return{dropdown:{arrow:!0,maxWidth:350,placement:"bottom",plugins:this.plugins},drilldown:{arrow:!1,maxWidth:"none",placement:"bottom-end",hideOnClick:!1,plugins:this.plugins.concat([this.hideTooltipOnClickAway])},"dropdown-button":{arrow:!1,maxWidth:"none",placement:"bottom-start",plugins:this.plugins}}[this.themeValue]}get hideTooltipOnClickAway(){return{name:"hideTooltipOnClickAway",fn:e=>{const t=t=>{this.dispatch("clickaway",{cancelable:!0,detail:{target:t.target}}).defaultPrevented||!e.state.isShown||this.reference.contains(t.target)&&!this.toggleTarget.contains(t.target)||e.hide()};return{onShow(){document.addEventListener("click",t)},onHide(){document.removeEventListener("click",t)}}}}}get plugins(){const e=[B,N,j];return this.hideOnClickValue&&e.push(F),e}get reference(){const e=this.toggleTarget.parentElement;return"dropdown-button"===this.themeValue?e.parentElement:e}}class z extends r.Controller{static classes=["ready","remove"];static values={delay:{default:-1,type:Number},detail:{default:{},type:Object},event:{default:"",type:String}};connect(){this.ready()}ready(){const e=this.delayValue,t={...this.detailValue};(0,C.s)((()=>!0),e<0?null:e)().then((()=>{this.element.classList.add(...this.readyClasses),this.element.classList.remove(...this.removeClasses),this.dispatch("ready",{bubbles:!0,cancelable:!0,detail:t}).defaultPrevented||(this.eventValue.split(" ").filter(Boolean).forEach((e=>{this.dispatch(e,{bubbles:!0,cancelable:!1,detail:t,prefix:""})})),this.remove())}))}remove(){const e=this.element;this.constructor.classes.forEach((t=>{e.removeAttribute(`data-${this.identifier}-${t}-class`)})),Object.keys(this.constructor.values).forEach((t=>{e.removeAttribute(`data-${this.identifier}-${t}-value`)}));const t=this.application.schema.controllerAttribute,n=(e.getAttribute(t)?.split(" ")??[]).filter((e=>e!==this.identifier)).join(" ");n?e.setAttribute(t,n):e.removeAttribute(t)}}var $=n(6411),U=n.n($);n(9610);class q extends r.Controller{static values={key:{default:"",type:String},scope:{default:"",type:String}};initialize(){if(this.handleKey=this.handleKey.bind(this),!this.keyValue){const e=this.element.getAttribute("aria-keyshortcuts");e&&(this.keyValue=e)}}handleKey(e){e.preventDefault&&e.preventDefault(),this.element.click()}keyValueChanged(e,t){t&&t!==e&&U().unbind(t),"global"===this.scopeValue?U().bindGlobal(e,this.handleKey):U().bind(e,this.handleKey)}}class Y extends r.Controller{static values={attrName:{default:"href",type:String},preserveKeys:{default:[],type:Array},reflectKeys:{default:["__all__"],type:Array}};get url(){return new URL(this.element.getAttribute(this.attrNameValue)||"",window.location.href)}connect(){this.setParams()}get reflectAll(){return this.reflectKeysValue.includes("__all__")}setParamsFromURL(e){const t=new URLSearchParams,n=this.reflectAll;e.searchParams.forEach(((e,i)=>{i.startsWith("_w_")||this.preserveKeysValue.includes(i)||!n&&!this.reflectKeysValue.includes(i)||t.append(i,e)}));const i=this.url;i.searchParams.forEach(((e,n)=>{this.preserveKeysValue.includes(n)&&t.append(n,e)})),i.search=t.toString(),this.element.setAttribute(this.attrNameValue,i.toString())}setParams(e){e?e.detail?.requestUrl&&this.setParamsFromURL(new URL(e.detail.requestUrl,window.location.href)):this.setParamsFromURL(new URL(window.location.href))}}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(){return Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Z.apply(this,arguments)}function J(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Q=J(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ee=J(/Edge/i),te=J(/firefox/i),ne=J(/safari/i)&&!J(/chrome/i)&&!J(/android/i),ie=J(/iP(ad|od|hone)/i),oe=J(/chrome/i)&&J(/android/i),re={capture:!1,passive:!1};function ae(e,t,n){e.addEventListener(t,n,!Q&&re)}function se(e,t,n){e.removeEventListener(t,n,!Q&&re)}function le(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function ce(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function de(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&le(e,t):le(e,t))||i&&e===n)return e;if(e===n)break}while(e=ce(e))}return null}var he,ue=/\s+/g;function pe(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(ue," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(ue," ")}}function fe(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function me(e,t){var n="";if("string"==typeof e)n=e;else do{var i=fe(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function ge(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function ve(){return document.scrollingElement||document.documentElement}function be(e,t,n,i,o){if(e.getBoundingClientRect||e===window){var r,a,s,l,c,d,h;if(e!==window&&e.parentNode&&e!==ve()?(a=(r=e.getBoundingClientRect()).top,s=r.left,l=r.bottom,c=r.right,d=r.height,h=r.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!Q))do{if(o&&o.getBoundingClientRect&&("none"!==fe(o,"transform")||n&&"static"!==fe(o,"position"))){var u=o.getBoundingClientRect();a-=u.top+parseInt(fe(o,"border-top-width")),s-=u.left+parseInt(fe(o,"border-left-width")),l=a+r.height,c=s+r.width;break}}while(o=o.parentNode);if(i&&e!==window){var p=me(o||e),f=p&&p.a,m=p&&p.d;p&&(l=(a/=m)+(d/=m),c=(s/=f)+(h/=f))}return{top:a,left:s,bottom:l,right:c,width:h,height:d}}}function ye(e,t,n){for(var i=Te(e,!0),o=be(e)[t];i;){var r=be(i)[n];if(!("top"===n||"left"===n?o>=r:o<=r))return i;if(i===ve())break;i=Te(i,!1)}return!1}function we(e,t,n,i){for(var o=0,r=0,a=e.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==kt.ghost&&(i||a[r]!==kt.dragged)&&de(a[r],n.draggable,e,!1)){if(o===t)return a[r];o++}r++}return null}function Ee(e,t){for(var n=e.lastElementChild;n&&(n===kt.ghost||"none"===fe(n,"display")||t&&!le(n,t));)n=n.previousElementSibling;return n||null}function Ce(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===kt.clone||t&&!le(e,t)||n++;return n}function Se(e){var t=0,n=0,i=ve();if(e)do{var o=me(e),r=o.a,a=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,n]}function Te(e,t){if(!e||!e.getBoundingClientRect)return ve();var n=e,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=fe(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return ve();if(i||t)return n;i=!0}}}while(n=n.parentNode);return ve()}function Ae(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function _e(e,t){return function(){if(!he){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),he=setTimeout((function(){he=void 0}),t)}}}function ke(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function xe(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Oe(e,t,n){var i={};return Array.from(e.children).forEach((function(o){var r,a,s,l;if(de(o,t.draggable,e,!1)&&!o.animated&&o!==n){var c=be(o);i.left=Math.min(null!==(r=i.left)&&void 0!==r?r:1/0,c.left),i.top=Math.min(null!==(a=i.top)&&void 0!==a?a:1/0,c.top),i.right=Math.max(null!==(s=i.right)&&void 0!==s?s:-1/0,c.right),i.bottom=Math.max(null!==(l=i.bottom)&&void 0!==l?l:-1/0,c.bottom)}})),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var De="Sortable"+(new Date).getTime();var Ve=[],Le={initializeByDefault:!0},Pe={mount:function(e){for(var t in Le)Le.hasOwnProperty(t)&&!(t in e)&&(e[t]=Le[t]);Ve.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Ve.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var o=e+"Global";Ve.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][o]&&t[i.pluginName][o](K({sortable:t},n)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](K({sortable:t},n)))}))},initializePlugins:function(e,t,n,i){for(var o in Ve.forEach((function(i){var o=i.pluginName;if(e.options[o]||i.initializeByDefault){var r=new i(e,t,e.options);r.sortable=e,r.options=e.options,e[o]=r,Z(n,r.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var r=this.modifyOption(e,o,e.options[o]);void 0!==r&&(e.options[o]=r)}},getEventProperties:function(e,t){var n={};return Ve.forEach((function(i){"function"==typeof i.eventProperties&&Z(n,i.eventProperties.call(t[i.pluginName],e))})),n},modifyOption:function(e,t,n){var i;return Ve.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(i=o.optionListeners[t].call(e[o.pluginName],n))})),i}};var Ie=["evt"],Me=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,o=function(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,Ie);Pe.pluginEvent.bind(kt)(e,t,K({dragEl:Re,parentEl:Be,ghostEl:Fe,rootEl:je,nextEl:He,lastDownEl:ze,cloneEl:$e,cloneHidden:Ue,dragStarted:it,putSortable:Ge,activeSortable:kt.active,originalEvent:i,oldIndex:qe,oldDraggableIndex:Xe,newIndex:Ye,newDraggableIndex:Ke,hideGhostForTarget:St,unhideGhostForTarget:Tt,cloneNowHidden:function(){Ue=!0},cloneNowShown:function(){Ue=!1},dispatchSortableEvent:function(e){Ne({sortable:t,name:e,originalEvent:i})}},o))};function Ne(e){!function(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,r=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,h=e.newDraggableIndex,u=e.originalEvent,p=e.putSortable,f=e.extraEventProperties;if(t=t||n&&n[De]){var m,g=t.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||Q||ee?(m=document.createEvent("Event")).initEvent(i,!0,!0):m=new CustomEvent(i,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=s||n,m.item=o||n,m.clone=r,m.oldIndex=l,m.newIndex=c,m.oldDraggableIndex=d,m.newDraggableIndex=h,m.originalEvent=u,m.pullMode=p?p.lastPutMode:void 0;var b=K(K({},f),Pe.getEventProperties(i,t));for(var y in b)m[y]=b[y];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}(K({putSortable:Ge,cloneEl:$e,targetEl:Re,rootEl:je,oldIndex:qe,oldDraggableIndex:Xe,newIndex:Ye,newDraggableIndex:Ke},e))}var Re,Be,Fe,je,He,ze,$e,Ue,qe,Ye,Xe,Ke,We,Ge,Ze,Je,Qe,et,tt,nt,it,ot,rt,at,st,lt=!1,ct=!1,dt=[],ht=!1,ut=!1,pt=[],ft=!1,mt=[],gt="undefined"!=typeof document,vt=ie,bt=ee||Q?"cssFloat":"float",yt=gt&&!oe&&!ie&&"draggable"in document.createElement("div"),wt=function(){if(gt){if(Q)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Et=function(e,t){var n=fe(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=we(e,0,t),r=we(e,1,t),a=o&&fe(o),s=r&&fe(r),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+be(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+be(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var d="left"===a.float?"left":"right";return!r||"both"!==s.clear&&s.clear!==d?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===n[bt]||r&&"none"===n[bt]&&l+c>i)?"vertical":"horizontal"},Ct=function(e){function t(e,n){return function(i,o,r,a){var s=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(i,o,r,a),n)(i,o,r,a);var l=(n?i:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},i=e.group;i&&"object"==W(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},St=function(){!wt&&Fe&&fe(Fe,"display","none")},Tt=function(){!wt&&Fe&&fe(Fe,"display","")};gt&&!oe&&document.addEventListener("click",(function(e){if(ct)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ct=!1,!1}),!0);var At=function(e){if(Re){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,r=e.clientY,dt.some((function(e){var t=e[De].options.emptyInsertThreshold;if(t&&!Ee(e)){var n=be(e),i=o>=n.left-t&&o<=n.right+t,s=r>=n.top-t&&r<=n.bottom+t;return i&&s?a=e:void 0}})),a);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[De]._onDragOver(n)}}var o,r,a},_t=function(e){Re&&Re.parentNode[De]._isOutsideThisEl(e.target)};function kt(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Z({},t),e[De]=this;var n,i,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Et(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==kt.supportPointer&&"PointerEvent"in window&&!ne,emptyInsertThreshold:5};for(var r in Pe.initializePlugins(this,e,o),o)!(r in t)&&(t[r]=o[r]);for(var a in Ct(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&yt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ae(e,"pointerdown",this._onTapStart):(ae(e,"mousedown",this._onTapStart),ae(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ae(e,"dragover",this),ae(e,"dragenter",this)),dt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Z(this,(i=[],{captureAnimationState:function(){i=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==fe(e,"display")&&e!==kt.ghost){i.push({target:e,rect:be(e)});var t=K({},i[i.length-1].rect);if(e.thisAnimationDuration){var n=me(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){i.push(e)},removeAnimationState:function(e){i.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}(i,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,r=0;i.forEach((function(e){var n=0,i=e.target,a=i.fromRect,s=be(i),l=i.prevFromRect,c=i.prevToRect,d=e.rect,h=me(i,!0);h&&(s.top-=h.f,s.left-=h.e),i.toRect=s,i.thisAnimationDuration&&Ae(l,s)&&!Ae(a,s)&&(d.top-s.top)/(d.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(n=function(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}(d,l,c,t.options)),Ae(s,a)||(i.prevFromRect=a,i.prevToRect=s,n||(n=t.options.animation),t.animate(i,d,s,n)),n&&(o=!0,r=Math.max(r,n),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout((function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null}),n),i.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),r):"function"==typeof e&&e(),i=[]},animate:function(e,t,n,i){if(i){fe(e,"transition",""),fe(e,"transform","");var o=me(this.el),r=o&&o.a,a=o&&o.d,s=(t.left-n.left)/(r||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,fe(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),fe(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),fe(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){fe(e,"transition",""),fe(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}))}function xt(e,t,n,i,o,r,a,s){var l,c,d=e[De],h=d.options.onMove;return!window.CustomEvent||Q||ee?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||be(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),h&&(c=h.call(d,l,a)),c}function Ot(e){e.draggable=!1}function Dt(){ft=!1}function Vt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function Lt(e){return setTimeout(e,0)}function Pt(e){return clearTimeout(e)}kt.prototype={constructor:kt,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ot=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Re):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,o=i.preventOnFilter,r=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=i.filter;if(function(e){mt.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&mt.push(i)}}(n),!Re&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||i.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!ne||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=de(s,i.draggable,n,!1))&&s.animated||ze===s)){if(qe=Ce(s),Xe=Ce(s,i.draggable),"function"==typeof c){if(c.call(this,e,s,this))return Ne({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Me("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=de(l,i.trim(),n,!1))return Ne({sortable:t,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),Me("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());i.handle&&!de(l,i.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var i,o=this,r=o.el,a=o.options,s=r.ownerDocument;if(n&&!Re&&n.parentNode===r){var l=be(n);if(je=r,Be=(Re=n).parentNode,He=Re.nextSibling,ze=n,We=a.group,kt.dragged=Re,Ze={target:Re,clientX:(t||e).clientX,clientY:(t||e).clientY},tt=Ze.clientX-l.left,nt=Ze.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Re.style["will-change"]="all",i=function(){Me("delayEnded",o,{evt:e}),kt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!te&&o.nativeDraggable&&(Re.draggable=!0),o._triggerDragStart(e,t),Ne({sortable:o,name:"choose",originalEvent:e}),pe(Re,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){ge(Re,e.trim(),Ot)})),ae(s,"dragover",At),ae(s,"mousemove",At),ae(s,"touchmove",At),ae(s,"mouseup",o._onDrop),ae(s,"touchend",o._onDrop),ae(s,"touchcancel",o._onDrop),te&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Re.draggable=!0),Me("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(ee||Q))i();else{if(kt.eventCanceled)return void this._onDrop();ae(s,"mouseup",o._disableDelayedDrag),ae(s,"touchend",o._disableDelayedDrag),ae(s,"touchcancel",o._disableDelayedDrag),ae(s,"mousemove",o._delayedDragTouchMoveHandler),ae(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&ae(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Re&&Ot(Re),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;se(e,"mouseup",this._disableDelayedDrag),se(e,"touchend",this._disableDelayedDrag),se(e,"touchcancel",this._disableDelayedDrag),se(e,"mousemove",this._delayedDragTouchMoveHandler),se(e,"touchmove",this._delayedDragTouchMoveHandler),se(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?ae(document,"pointermove",this._onTouchMove):ae(document,t?"touchmove":"mousemove",this._onTouchMove):(ae(Re,"dragend",this),ae(je,"dragstart",this._onDragStart));try{document.selection?Lt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(lt=!1,je&&Re){Me("dragStarted",this,{evt:t}),this.nativeDraggable&&ae(document,"dragover",_t);var n=this.options;!e&&pe(Re,n.dragClass,!1),pe(Re,n.ghostClass,!0),kt.active=this,e&&this._appendGhost(),Ne({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Je){this._lastX=Je.clientX,this._lastY=Je.clientY,St();for(var e=document.elementFromPoint(Je.clientX,Je.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Je.clientX,Je.clientY))!==t;)t=e;if(Re.parentNode[De]._isOutsideThisEl(e),t)do{if(t[De]&&t[De]._onDragOver({clientX:Je.clientX,clientY:Je.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);Tt()}},_onTouchMove:function(e){if(Ze){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,o=e.touches?e.touches[0]:e,r=Fe&&me(Fe,!0),a=Fe&&r&&r.a,s=Fe&&r&&r.d,l=vt&&st&&Se(st),c=(o.clientX-Ze.clientX+i.x)/(a||1)+(l?l[0]-pt[0]:0)/(a||1),d=(o.clientY-Ze.clientY+i.y)/(s||1)+(l?l[1]-pt[1]:0)/(s||1);if(!kt.active&&!lt){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Fe){r?(r.e+=c-(Qe||0),r.f+=d-(et||0)):r={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");fe(Fe,"webkitTransform",h),fe(Fe,"mozTransform",h),fe(Fe,"msTransform",h),fe(Fe,"transform",h),Qe=c,et=d,Je=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Fe){var e=this.options.fallbackOnBody?document.body:je,t=be(Re,!0,vt,!0,e),n=this.options;if(vt){for(st=e;"static"===fe(st,"position")&&"none"===fe(st,"transform")&&st!==document;)st=st.parentNode;st!==document.body&&st!==document.documentElement?(st===document&&(st=ve()),t.top+=st.scrollTop,t.left+=st.scrollLeft):st=ve(),pt=Se(st)}pe(Fe=Re.cloneNode(!0),n.ghostClass,!1),pe(Fe,n.fallbackClass,!0),pe(Fe,n.dragClass,!0),fe(Fe,"transition",""),fe(Fe,"transform",""),fe(Fe,"box-sizing","border-box"),fe(Fe,"margin",0),fe(Fe,"top",t.top),fe(Fe,"left",t.left),fe(Fe,"width",t.width),fe(Fe,"height",t.height),fe(Fe,"opacity","0.8"),fe(Fe,"position",vt?"absolute":"fixed"),fe(Fe,"zIndex","100000"),fe(Fe,"pointerEvents","none"),kt.ghost=Fe,e.appendChild(Fe),fe(Fe,"transform-origin",tt/parseInt(Fe.style.width)*100+"% "+nt/parseInt(Fe.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,o=n.options;Me("dragStart",this,{evt:e}),kt.eventCanceled?this._onDrop():(Me("setupClone",this),kt.eventCanceled||(($e=xe(Re)).removeAttribute("id"),$e.draggable=!1,$e.style["will-change"]="",this._hideClone(),pe($e,this.options.chosenClass,!1),kt.clone=$e),n.cloneId=Lt((function(){Me("clone",n),kt.eventCanceled||(n.options.removeCloneOnHide||je.insertBefore($e,Re),n._hideClone(),Ne({sortable:n,name:"clone"}))})),!t&&pe(Re,o.dragClass,!0),t?(ct=!0,n._loopId=setInterval(n._emulateDragOver,50)):(se(document,"mouseup",n._onDrop),se(document,"touchend",n._onDrop),se(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(n,i,Re)),ae(document,"drop",n),fe(Re,"transform","translateZ(0)")),lt=!0,n._dragStartId=Lt(n._dragStarted.bind(n,t,e)),ae(document,"selectstart",n),it=!0,ne&&fe(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,i,o,r=this.el,a=e.target,s=this.options,l=s.group,c=kt.active,d=We===l,h=s.sort,u=Ge||c,p=this,f=!1;if(!ft){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=de(a,s.draggable,r,!0),O("dragOver"),kt.eventCanceled)return f;if(Re.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return V(!1);if(ct=!1,c&&!s.disabled&&(d?h||(i=Be!==je):Ge===this||(this.lastPutMode=We.checkPull(this,c,Re,e))&&l.checkPut(this,c,Re,e))){if(o="vertical"===this._getDirection(e,a),t=be(Re),O("dragOverValid"),kt.eventCanceled)return f;if(i)return Be=je,D(),this._hideClone(),O("revert"),kt.eventCanceled||(He?je.insertBefore(Re,He):je.appendChild(Re)),V(!0);var m=Ee(r,s.draggable);if(!m||function(e,t,n){var i=be(Ee(n.el,n.options.draggable)),o=Oe(n.el,n.options,Fe);return t?e.clientX>o.right+10||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>o.bottom+10||e.clientX>i.right&&e.clientY>i.top}(e,o,this)&&!m.animated){if(m===Re)return V(!1);if(m&&r===e.target&&(a=m),a&&(n=be(a)),!1!==xt(je,r,Re,t,a,n,e,!!a))return D(),m&&m.nextSibling?r.insertBefore(Re,m.nextSibling):r.appendChild(Re),Be=r,L(),V(!0)}else if(m&&function(e,t,n){var i=be(we(n.el,0,n.options,!0)),o=Oe(n.el,n.options,Fe);return t?e.clientX<o.left-10||e.clientY<i.top&&e.clientX<i.right:e.clientY<o.top-10||e.clientY<i.bottom&&e.clientX<i.left}(e,o,this)){var g=we(r,0,s,!0);if(g===Re)return V(!1);if(n=be(a=g),!1!==xt(je,r,Re,t,a,n,e,!1))return D(),r.insertBefore(Re,g),Be=r,L(),V(!0)}else if(a.parentNode===r){n=be(a);var v,b,y,w=Re.parentNode!==r,E=!function(e,t,n){var i=n?e.left:e.top,o=n?e.right:e.bottom,r=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return i===a||o===s||i+r/2===a+l/2}(Re.animated&&Re.toRect||t,a.animated&&a.toRect||n,o),C=o?"top":"left",S=ye(a,"top","top")||ye(Re,"top","top"),T=S?S.scrollTop:void 0;if(ot!==a&&(b=n[C],ht=!1,ut=!E&&s.invertSwap||w),v=function(e,t,n,i,o,r,a,s){var l=i?e.clientY:e.clientX,c=i?n.height:n.width,d=i?n.top:n.left,h=i?n.bottom:n.right,u=!1;if(!a)if(s&&at<c*o){if(!ht&&(1===rt?l>d+c*r/2:l<h-c*r/2)&&(ht=!0),ht)u=!0;else if(1===rt?l<d+at:l>h-at)return-rt}else if(l>d+c*(1-o)/2&&l<h-c*(1-o)/2)return function(e){return Ce(Re)<Ce(e)?1:-1}(t);return(u=u||a)&&(l<d+c*r/2||l>h-c*r/2)?l>d+c/2?1:-1:0}(e,a,n,o,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,ut,ot===a),0!==v){var A=Ce(Re);do{A-=v,y=Be.children[A]}while(y&&("none"===fe(y,"display")||y===Fe))}if(0===v||y===a)return V(!1);ot=a,rt=v;var _=a.nextElementSibling,k=!1,x=xt(je,r,Re,t,a,n,e,k=1===v);if(!1!==x)return 1!==x&&-1!==x||(k=1===x),ft=!0,setTimeout(Dt,30),D(),k&&!_?r.appendChild(Re):a.parentNode.insertBefore(Re,k?_:a),S&&ke(S,0,T-S.scrollTop),Be=Re.parentNode,void 0===b||ut||(at=Math.abs(b-be(a)[C])),L(),V(!0)}if(r.contains(Re))return V(!1)}return!1}function O(s,l){Me(s,p,K({evt:e,isOwner:d,axis:o?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:h,fromSortable:u,target:a,completed:V,onMove:function(n,i){return xt(je,r,Re,t,n,be(n),e,i)},changed:L},l))}function D(){O("dragOverAnimationCapture"),p.captureAnimationState(),p!==u&&u.captureAnimationState()}function V(t){return O("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(p),p!==u&&(pe(Re,Ge?Ge.options.ghostClass:c.options.ghostClass,!1),pe(Re,s.ghostClass,!0)),Ge!==p&&p!==kt.active?Ge=p:p===kt.active&&Ge&&(Ge=null),u===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){O("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(a===Re&&!Re.animated||a===r&&!a.animated)&&(ot=null),s.dragoverBubble||e.rootEl||a===document||(Re.parentNode[De]._isOutsideThisEl(e.target),!t&&At(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function L(){Ye=Ce(Re),Ke=Ce(Re,s.draggable),Ne({sortable:p,name:"change",toEl:r,newIndex:Ye,newDraggableIndex:Ke,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){se(document,"mousemove",this._onTouchMove),se(document,"touchmove",this._onTouchMove),se(document,"pointermove",this._onTouchMove),se(document,"dragover",At),se(document,"mousemove",At),se(document,"touchmove",At)},_offUpEvents:function(){var e=this.el.ownerDocument;se(e,"mouseup",this._onDrop),se(e,"touchend",this._onDrop),se(e,"pointerup",this._onDrop),se(e,"touchcancel",this._onDrop),se(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Ye=Ce(Re),Ke=Ce(Re,n.draggable),Me("drop",this,{evt:e}),Be=Re&&Re.parentNode,Ye=Ce(Re),Ke=Ce(Re,n.draggable),kt.eventCanceled||(lt=!1,ut=!1,ht=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Pt(this.cloneId),Pt(this._dragStartId),this.nativeDraggable&&(se(document,"drop",this),se(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ne&&fe(document.body,"user-select",""),fe(Re,"transform",""),e&&(it&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Fe&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),(je===Be||Ge&&"clone"!==Ge.lastPutMode)&&$e&&$e.parentNode&&$e.parentNode.removeChild($e),Re&&(this.nativeDraggable&&se(Re,"dragend",this),Ot(Re),Re.style["will-change"]="",it&&!lt&&pe(Re,Ge?Ge.options.ghostClass:this.options.ghostClass,!1),pe(Re,this.options.chosenClass,!1),Ne({sortable:this,name:"unchoose",toEl:Be,newIndex:null,newDraggableIndex:null,originalEvent:e}),je!==Be?(Ye>=0&&(Ne({rootEl:Be,name:"add",toEl:Be,fromEl:je,originalEvent:e}),Ne({sortable:this,name:"remove",toEl:Be,originalEvent:e}),Ne({rootEl:Be,name:"sort",toEl:Be,fromEl:je,originalEvent:e}),Ne({sortable:this,name:"sort",toEl:Be,originalEvent:e})),Ge&&Ge.save()):Ye!==qe&&Ye>=0&&(Ne({sortable:this,name:"update",toEl:Be,originalEvent:e}),Ne({sortable:this,name:"sort",toEl:Be,originalEvent:e})),kt.active&&(null!=Ye&&-1!==Ye||(Ye=qe,Ke=Xe),Ne({sortable:this,name:"end",toEl:Be,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Me("nulling",this),je=Re=Be=Fe=He=$e=ze=Ue=Ze=Je=it=Ye=Ke=qe=Xe=ot=rt=Ge=We=kt.dragged=kt.ghost=kt.clone=kt.active=null,mt.forEach((function(e){e.checked=!0})),mt.length=Qe=et=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Re&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,o=n.length,r=this.options;i<o;i++)de(e=n[i],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||Vt(e));return t},sort:function(e,t){var n={},i=this.el;this.toArray().forEach((function(e,t){var o=i.children[t];de(o,this.options.draggable,i,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(i.removeChild(n[e]),i.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return de(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var i=Pe.modifyOption(this,e,t);n[e]=void 0!==i?i:t,"group"===e&&Ct(n)},destroy:function(){Me("destroy",this);var e=this.el;e[De]=null,se(e,"mousedown",this._onTapStart),se(e,"touchstart",this._onTapStart),se(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(se(e,"dragover",this),se(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),dt.splice(dt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ue){if(Me("hideClone",this),kt.eventCanceled)return;fe($e,"display","none"),this.options.removeCloneOnHide&&$e.parentNode&&$e.parentNode.removeChild($e),Ue=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Ue){if(Me("showClone",this),kt.eventCanceled)return;Re.parentNode!=je||this.options.group.revertClone?He?je.insertBefore($e,He):je.appendChild($e):je.insertBefore($e,Re),this.options.group.revertClone&&this.animate(Re,$e),fe($e,"display",""),Ue=!1}}else this._hideClone()}},gt&&ae(document,"touchmove",(function(e){(kt.active||lt)&&e.cancelable&&e.preventDefault()})),kt.utils={on:ae,off:se,css:fe,find:ge,is:function(e,t){return!!de(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:_e,closest:de,toggleClass:pe,clone:xe,index:Ce,nextTick:Lt,cancelNextTick:Pt,detectDirection:Et,getChild:we},kt.get=function(e){return e[De]},kt.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(kt.utils=K(K({},kt.utils),e.utils)),Pe.mount(e)}))},kt.create=function(e,t){return new kt(e,t)},kt.version="1.15.2";var It,Mt,Nt,Rt,Bt,Ft,jt=[],Ht=!1;function zt(){jt.forEach((function(e){clearInterval(e.pid)})),jt=[]}function $t(){clearInterval(Ft)}var Ut=_e((function(e,t,n,i){if(t.scroll){var o,r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=ve(),d=!1;Mt!==n&&(Mt=n,zt(),It=t.scroll,o=t.scrollFn,!0===It&&(It=Te(n,!0)));var h=0,u=It;do{var p=u,f=be(p),m=f.top,g=f.bottom,v=f.left,b=f.right,y=f.width,w=f.height,E=void 0,C=void 0,S=p.scrollWidth,T=p.scrollHeight,A=fe(p),_=p.scrollLeft,k=p.scrollTop;p===c?(E=y<S&&("auto"===A.overflowX||"scroll"===A.overflowX||"visible"===A.overflowX),C=w<T&&("auto"===A.overflowY||"scroll"===A.overflowY||"visible"===A.overflowY)):(E=y<S&&("auto"===A.overflowX||"scroll"===A.overflowX),C=w<T&&("auto"===A.overflowY||"scroll"===A.overflowY));var x=E&&(Math.abs(b-r)<=s&&_+y<S)-(Math.abs(v-r)<=s&&!!_),O=C&&(Math.abs(g-a)<=s&&k+w<T)-(Math.abs(m-a)<=s&&!!k);if(!jt[h])for(var D=0;D<=h;D++)jt[D]||(jt[D]={});jt[h].vx==x&&jt[h].vy==O&&jt[h].el===p||(jt[h].el=p,jt[h].vx=x,jt[h].vy=O,clearInterval(jt[h].pid),0==x&&0==O||(d=!0,jt[h].pid=setInterval(function(){i&&0===this.layer&&kt.active._onTouchMove(Bt);var t=jt[this.layer].vy?jt[this.layer].vy*l:0,n=jt[this.layer].vx?jt[this.layer].vx*l:0;"function"==typeof o&&"continue"!==o.call(kt.dragged.parentNode[De],n,t,e,Bt,jt[this.layer].el)||ke(jt[this.layer].el,n,t)}.bind({layer:h}),24))),h++}while(t.bubbleScroll&&u!==c&&(u=Te(u,!1)));Ht=d}}),30),qt=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,o=e.activeSortable,r=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||o;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(r("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function Yt(){}function Xt(){}Yt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=we(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:qt},Z(Yt,{pluginName:"revertOnSpill"}),Xt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:qt},Z(Xt,{pluginName:"removeOnSpill"}),kt.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?ae(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ae(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ae(document,"touchmove",this._handleFallbackAutoScroll):ae(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?se(document,"dragover",this._handleAutoScroll):(se(document,"pointermove",this._handleFallbackAutoScroll),se(document,"touchmove",this._handleFallbackAutoScroll),se(document,"mousemove",this._handleFallbackAutoScroll)),$t(),zt(),clearTimeout(he),he=void 0},nulling:function(){Bt=Mt=It=Ht=Ft=Nt=Rt=null,jt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,r=document.elementFromPoint(i,o);if(Bt=e,t||this.options.forceAutoScrollFallback||ee||Q||ne){Ut(e,this.options,r,t);var a=Te(r,!0);!Ht||Ft&&i===Nt&&o===Rt||(Ft&&$t(),Ft=setInterval((function(){var r=Te(document.elementFromPoint(i,o),!0);r!==a&&(a=r,zt()),Ut(e,n.options,r,t)}),10),Nt=i,Rt=o)}else{if(!this.options.bubbleScroll||Te(r,!0)===ve())return void zt();Ut(e,this.options,Te(r,!1),!1)}}},Z(e,{pluginName:"scroll",initializeByDefault:!0})}),kt.mount(Xt,Yt);const Kt=kt;var Wt;!function(e){e.Up="UP",e.Down="DOWN"}(Wt||(Wt={}));class Gt extends r.Controller{static classes=["active","chosen","drag","ghost"];static targets=["handle","item"];static values={animation:{default:200,type:Number},container:{default:"",type:String},message:{default:"",type:String},url:String};order;sortable;constructor(e){super(e),this.order=[]}connect(){const e=this.containerValue,t=e&&this.element.querySelector(e)||this.element;this.sortable=Kt.create(t,this.options),this.order=this.sortable.toArray(),this.dispatch("ready",{cancelable:!1,detail:{order:this.order}})}get options(){const e=this.identifier;return{...this.hasGhostClass?{ghostClass:this.ghostClass}:{},...this.hasChosenClass?{chosenClass:this.chosenClass}:{},...this.hasDragClass?{dragClass:this.dragClass}:{},animation:this.animationValue,dataIdAttr:`data-${e}-item-id`,draggable:`[data-${e}-target="item"]`,handle:`[data-${e}-target="handle"]`,onStart:()=>{this.element.classList.add(...this.activeClasses)},onEnd:({item:e,newIndex:t,oldIndex:n})=>{this.element.classList.remove(...this.activeClasses),n!==t&&(this.order=this.sortable.toArray(),this.submit({...this.getItemData(e),newIndex:t}))}}}getItemData(e){const t=this.identifier,n=e instanceof HTMLElement&&e.closest(`[data-${t}-target='item']`);return n?{id:n.getAttribute(`data-${t}-item-id`)||"",label:n.getAttribute(`data-${t}-item-label`)||""}:{id:"",label:""}}apply({currentTarget:e}){const{id:t,label:n}=this.getItemData(e),i=this.order.indexOf(t);this.submit({id:t,label:n,newIndex:i})}move({currentTarget:e},t){const n=this.identifier,i=e instanceof HTMLElement&&e.closest(`[data-${n}-target='item']`);if(!i)return;const o=i.getAttribute(`data-${n}-item-id`)||"",r=this.order.indexOf(o);this.order.splice(r,1),t===Wt.Down?this.order.splice(r+1,0,o):t===Wt.Up&&r>0?this.order.splice(r-1,0,o):this.order.splice(r,0,o),this.sortable.sort(this.order,!0)}up(e){this.move(e,Wt.Up),e.currentTarget?.focus()}down(e){this.move(e,Wt.Down),e.currentTarget?.focus()}submit({id:e,label:t,newIndex:n}){let i=this.urlValue.replace("999999",e);null!==n&&(i+="?position="+n);const o=(this.messageValue||"__LABEL__").replace("__LABEL__",t),r=this.element.closest("form"),a=r&&r.querySelector('input[name="csrfmiddlewaretoken"]');if(a instanceof HTMLInputElement){const e=a.value,t=new FormData;t.append("csrfmiddlewaretoken",e),fetch(i,{method:"POST",body:t}).then((e=>{if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`)})).then((()=>{this.dispatch("w-messages:add",{prefix:"",target:window.document,detail:{clear:!0,text:o,type:"success"},cancelable:!1})})).catch((e=>{throw e}))}}disconnect(){this.sortable&&this.sortable.destroy()}}class Zt extends r.Controller{static classes=["active"];static targets=["label"];static values={active:{default:"",type:String},duration:{default:3e4,type:Number},label:{default:"",type:String},loading:{default:!1,type:Boolean}};timer;connect(){if(this.hasLabelTarget)return;const e=this.element.querySelector("em");e&&e.setAttribute(`data-${this.identifier}-target`,"label")}activate(){const e=this.element.closest("form");e&&e.checkValidity&&!e.noValidate&&!e.checkValidity()||window.setTimeout((()=>{this.loadingValue=!0,this.timer=window.setTimeout((()=>{this.loadingValue=!1}),this.durationValue)}))}loadingValueChanged(e){const t=this.hasActiveClass?this.activeClass:"button-longrunning-active";this.element.classList.toggle(t,e),this.labelValue||(this.labelValue=this.hasLabelTarget?this.labelTarget.textContent:this.element.textContent),e?(this.element.setAttribute("disabled",""),this.activeValue&&this.hasLabelTarget&&(this.labelTarget.textContent=this.activeValue)):(this.element.removeAttribute("disabled"),this.labelValue&&this.hasLabelTarget&&(this.labelTarget.textContent=this.labelValue))}disconnect(){this.timer&&clearTimeout(this.timer)}}class Jt extends r.Controller{static classes=["closed","closeIcon","opened","openedContent","openIcon"];static targets=["content","toggle"];static values={closed:{default:!1,type:Boolean},peeking:{default:!1,type:Boolean},peekTarget:{default:"",type:String}};cleanUpPeekListener;connect(){const e=!!this.peekTargetValue&&this.element.closest(this.peekTargetValue);if(e){const t=()=>{this.peekingValue&&this.close(),this.peekingValue=!1};e.addEventListener("mouseleave",t,{passive:!0}),this.cleanUpPeekListener=()=>{e.removeEventListener("mouseleave",t)}}new Promise((e=>{setTimeout(e)})).then((()=>{this.dispatch("ready",{cancelable:!1,detail:{closed:this.closedValue}})}))}closedValueChanged(e,t){if(t===e)return;const n=this.closedClasses,i=this.openedClasses,o=this.contentTargets,r=void 0===t,a=this.peekingValue,s=this.openedContentClasses,l=this.toggles;if(a||this.updateToggleIcon(e),e){if(this.dispatch("closing",{cancelable:!0}).defaultPrevented)return;l.forEach((e=>{e.setAttribute("aria-expanded","false")})),o.forEach((e=>{e.classList.remove(...s),e.hidden=!0})),this.element.classList.add(...n),this.element.classList.remove(...i),this.dispatch("closed",{cancelable:!1})}else{if(this.dispatch("opening",{cancelable:!0}).defaultPrevented)return;l.forEach((e=>{e.setAttribute("aria-expanded","true")})),o.forEach((e=>{e.classList.add(...s),e.hidden=!1})),this.element.classList.remove(...n),this.element.classList.add(...i),this.dispatch("opened",{cancelable:!1})}r||l.forEach((t=>{this.dispatch("toggled",{cancelable:!1,detail:{closed:e},target:t})}))}close(){this.closedValue=!0}open(){this.closedValue=!1}peek(){this.closedValue&&(this.peekingValue=!0,this.open())}toggle(){if(this.peekingValue)return this.peekingValue=!1,void this.updateToggleIcon(!1);this.closedValue=!this.closedValue}get toggles(){const e=this.contentTargets.map((e=>e.id)).flatMap((e=>Array.from(document.querySelectorAll(`[aria-controls~="${e}"]`)))).concat(...this.toggleTargets);return Array.from(new Set(e))}updateToggleIcon(e=!1){if(!this.hasCloseIconClass||!this.hasOpenIconClass)return;const t=this.closeIconClass,n=this.openIconClass;t!==n&&this.toggles.map((e=>{const t=e.querySelector(".icon"),n=t?.querySelector("use");return n&&t?[t,n]:[]})).filter((({length:e})=>e)).forEach((([i,o])=>{e?(i.classList.remove(t),i.classList.add(n),o.setAttribute("href",`#${n}`)):(i.classList.remove(n),i.classList.add(t),o.setAttribute("href",`#${t}`))}))}disconnect(){this.cleanUpPeekListener?.call(this)}}class Qt extends r.Controller{skipToTarget;connect(){this.skipToTarget=document.querySelector(this.element.getAttribute("href")||"main")}handleBlur(){this.skipToTarget&&(this.skipToTarget.removeAttribute("tabindex"),this.skipToTarget.removeEventListener("blur",this.handleBlur),this.skipToTarget.removeEventListener("focusout",this.handleBlur))}skip(){this.skipToTarget&&(this.skipToTarget.setAttribute("tabindex","-1"),this.skipToTarget.addEventListener("blur",this.handleBlur),this.skipToTarget.addEventListener("focusout",this.handleBlur),this.skipToTarget.focus())}}const en=JSON.parse('[{"LATIN_MAP":[["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","A"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","O"],["Ő","O"],["Ø","O"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","U"],["Ű","U"],["Ý","Y"],["Þ","TH"],["Ÿ","Y"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","a"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","o"],["ő","o"],["ø","o"],["ù","u"],["ú","u"],["û","u"],["ü","u"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"]]},{"LATIN_SYMBOLS_MAP":[["©","(c)"]]},{"GREEK_MAP":[["α","a"],["β","b"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","h"],["θ","8"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","3"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","w"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","h"],["ώ","w"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","H"],["Θ","8"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","3"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","W"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","H"],["Ώ","W"],["Ϊ","I"],["Ϋ","Y"]]},{"TURKISH_MAP":[["ş","s"],["Ş","S"],["ı","i"],["İ","I"],["ç","c"],["Ç","C"],["ü","u"],["Ü","U"],["ö","o"],["Ö","O"],["ğ","g"],["Ğ","G"]]},{"ROMANIAN_MAP":[["ă","a"],["î","i"],["ș","s"],["ț","t"],["â","a"],["Ă","A"],["Î","I"],["Ș","S"],["Ț","T"],["Â","A"]]},{"RUSSIAN_MAP":[["а","a"],["б","b"],["в","v"],["г","g"],["д","d"],["е","e"],["ё","yo"],["ж","zh"],["з","z"],["и","i"],["й","j"],["к","k"],["л","l"],["м","m"],["н","n"],["о","o"],["п","p"],["р","r"],["с","s"],["т","t"],["у","u"],["ф","f"],["х","h"],["ц","c"],["ч","ch"],["ш","sh"],["щ","sh"],["ъ",""],["ы","y"],["ь",""],["э","e"],["ю","yu"],["я","ya"],["А","A"],["Б","B"],["В","V"],["Г","G"],["Д","D"],["Е","E"],["Ё","Yo"],["Ж","Zh"],["З","Z"],["И","I"],["Й","J"],["К","K"],["Л","L"],["М","M"],["Н","N"],["О","O"],["П","P"],["Р","R"],["С","S"],["Т","T"],["У","U"],["Ф","F"],["Х","H"],["Ц","C"],["Ч","Ch"],["Ш","Sh"],["Щ","Sh"],["Ъ",""],["Ы","Y"],["Ь",""],["Э","E"],["Ю","Yu"],["Я","Ya"]]},{"UKRAINIAN_MAP":[["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"]]},{"CZECH_MAP":[["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"]]},{"SLOVAK_MAP":[["á","a"],["ä","a"],["č","c"],["ď","d"],["é","e"],["í","i"],["ľ","l"],["ĺ","l"],["ň","n"],["ó","o"],["ô","o"],["ŕ","r"],["š","s"],["ť","t"],["ú","u"],["ý","y"],["ž","z"],["Á","a"],["Ä","A"],["Č","C"],["Ď","D"],["É","E"],["Í","I"],["Ľ","L"],["Ĺ","L"],["Ň","N"],["Ó","O"],["Ô","O"],["Ŕ","R"],["Š","S"],["Ť","T"],["Ú","U"],["Ý","Y"],["Ž","Z"]]},{"POLISH_MAP":[["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ó","o"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ó","O"],["Ś","S"],["Ź","Z"],["Ż","Z"]]},{"LATVIAN_MAP":[["ā","a"],["č","c"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["š","s"],["ū","u"],["ž","z"],["Ā","A"],["Č","C"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Š","S"],["Ū","U"],["Ž","Z"]]},{"ARABIC_MAP":[["أ","a"],["ب","b"],["ت","t"],["ث","th"],["ج","g"],["ح","h"],["خ","kh"],["د","d"],["ذ","th"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","th"],["ع","aa"],["غ","gh"],["ف","f"],["ق","k"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","o"],["ي","y"]]},{"LITHUANIAN_MAP":[["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ž","Z"]]},{"SERBIAN_MAP":[["ђ","dj"],["ј","j"],["љ","lj"],["њ","nj"],["ћ","c"],["џ","dz"],["đ","dj"],["Ђ","Dj"],["Ј","j"],["Љ","Lj"],["Њ","Nj"],["Ћ","C"],["Џ","Dz"],["Đ","Dj"]]},{"AZERBAIJANI_MAP":[["ç","c"],["ə","e"],["ğ","g"],["ı","i"],["ö","o"],["ş","s"],["ü","u"],["Ç","C"],["Ə","E"],["Ğ","G"],["İ","I"],["Ö","O"],["Ş","S"],["Ü","U"]]},{"GEORGIAN_MAP":[["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","j"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","f"],["ქ","q"],["ღ","g"],["ყ","y"],["შ","sh"],["ჩ","ch"],["ც","c"],["ძ","dz"],["წ","w"],["ჭ","ch"],["ხ","x"],["ჯ","j"],["ჰ","h"]]}]').reduce(((e,t)=>(Object.values(t).flat().forEach((([t,n])=>{e[t]=n})),e)),{}),tn=new RegExp(Object.keys(en).join("|"),"g"),nn=(e,{numChars:t=255,allowUnicode:n=!1}={})=>{let i=e;return n||(i=i.replace(tn,(e=>en[e]))),i=i.toLowerCase(),i=n?i.replace(/[^-_\p{L}\p{N}\s]/gu,""):i.replace(/[^-\w\s]/g,""),i=i.replace(/^\s+|\s+$/g,""),i=i.replace(/[-\s]+/g,"-"),i=i.substring(0,t),i=i.replace(/-+$/g,""),i};class on extends r.Controller{static values={allowUnicode:{default:!1,type:Boolean}};compare(e){if(!this.element.value)return!0;const t=this[e.detail?.compareAs||e.params?.compareAs||"slugify"]({detail:{value:e.detail?.value||""}},!0),n=this.element.value,i=t.trim()===n.trim();return i||e?.preventDefault(),i}slugify(e,t=!1){const n=this.allowUnicodeValue,{value:i=this.element.value}=e?.detail||{},o=((e,{allowUnicode:t=!1}={})=>t?e.replace(/\s+/g,"-").replace(/[&/\\#,+()$~%.'":`@^!*?<>{}]/g,"").toLowerCase():e.replace(/\s+/g,"-").replace(/[^A-Za-z0-9\-_]/g,"").toLowerCase())(i.trim(),{allowUnicode:n});return t||(this.element.value=o),o}urlify(e,t=!1){const n=this.allowUnicodeValue,{value:i=this.element.value}=e?.detail||{},o=i.trim(),r=nn(o,{allowUnicode:n})||this.slugify({detail:{value:o}},!0);return t||(this.element.value=r),r}}class rn extends r.Controller{submit(){const e=this.element.form;if(!e)throw new Error(`${this.identifier} controlled element must be part of a <form />`);e.requestSubmit?e.requestSubmit():e.submit()}}class an extends r.Controller{static defaultClearParam="p";static targets=["input"];static values={icon:{default:"",type:String},loading:{default:!1,type:Boolean},reflect:{default:!1,type:Boolean},src:{default:"",type:String},target:{default:"#listing-results",type:String},wait:{default:200,type:Number}};abortController;iconElement;replaceLazy;searchLazy;submitLazy;connect(){const e=this.hasInputTarget?this.inputTarget.form:this.element;this.srcValue=this.srcValue||e?.getAttribute("action")||"";const t=this.target;this.iconElement=null;const n=(this.hasInputTarget?this.inputTarget:this.element).parentElement;this.iconElement=n?.querySelector("use")||null,this.iconValue=this.iconElement?.getAttribute("href")||"",this.loadingValue=!1,this.replaceLazy=(0,C.s)(this.replace.bind(this),this.waitValue),this.searchLazy=(0,C.s)(this.search.bind(this),this.waitValue),this.submitLazy=(0,C.s)(this.submit.bind(this),this.waitValue),this.dispatch("ready",{cancelable:!1,target:t})}get target(){const e=this.targetValue,t=document.querySelector(e),n=t&&t instanceof HTMLElement,i=!!this.srcValue,o=[];if(n||o.push(`Cannot find valid target element at "${e}"`),i||o.push("Cannot find valid src URL value"),o.length)throw new Error(o.join(", "));return t}loadingValueChanged(e,t){const n=void 0===t?null:this.target;e?(n?.setAttribute("aria-busy","true"),this.iconElement?.setAttribute("href","#icon-spinner")):(n?.removeAttribute("aria-busy"),this.iconElement?.setAttribute("href",this.iconValue))}search(e){const t=(e?.detail?.clear||e?.params?.clear||this.constructor.defaultClearParam).split(" "),n=this.hasInputTarget?this.inputTarget:this.element,i=n.name,o=new URLSearchParams(window.location.search),r=o.get(i)||"",a=n.value||"";if(r.trim()===a.trim())return;a?o.set(i,a):o.delete(i),t.forEach((e=>{o.delete(e)}));const s="?"+o.toString(),l=this.srcValue;this.replace(l+s).then((()=>{window.history.replaceState(null,"",s)}))}submit(){const e=this.hasInputTarget?this.inputTarget.form:this.element,t="?"+new URLSearchParams(new FormData(e)).toString(),n=this.srcValue;this.replace(n+t)}reflectParams(e){const t=new URL(e,window.location.href).searchParams,n=new URLSearchParams;t.forEach(((e,t)=>{""===e.trim()||t.startsWith("_w_")||n.append(t,e)}));const i=`?${n.toString()}`;window.history.replaceState(null,"",i)}async replace(e){const t=this.target,n=("string"==typeof e?e:e?.detail?.url||e?.params?.url||"")||this.srcValue;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;const{signal:i}=this.abortController;return this.loadingValue=!0,this.dispatch("begin",{cancelable:!0,detail:{requestUrl:n},target:this.target}).defaultPrevented?Promise.resolve():fetch(n,{headers:{"x-requested-with":"XMLHttpRequest"},signal:i}).then((e=>{if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`);return e.text()})).then((e=>(t.innerHTML=e,this.reflectValue&&(this.dispatch("reflect",{cancelable:!0,detail:{requestUrl:n},target:t}).defaultPrevented||this.reflectParams(n)),this.dispatch("success",{cancelable:!1,detail:{requestUrl:n,results:e},target:t}),e))).catch((e=>{i.aborted||(this.dispatch("error",{cancelable:!1,detail:{error:e,requestUrl:n},target:t}),console.error("Error fetching %s",n,e))})).finally((()=>{i===this.abortController?.signal&&(this.loadingValue=!1)}))}disconnect(){this.loadingValue=!1,this.replaceLazy?.cancel(),this.searchLazy?.cancel(),this.submitLazy?.cancel()}}class sn extends r.Controller{static values={debounce:{default:100,type:Number},delay:{default:0,type:Number},disabled:{default:!1,type:Boolean},quiet:{default:!1,type:Boolean},target:String};connect(){this.processTargetElements("start",!0),this.apply=(0,C.s)(this.apply.bind(this),this.debounceValue)}check(){this.processTargetElements("check",!0)}apply(e){const t=e?.params?.apply||this.element.value,n=e=>{e.value=t,this.quietValue||this.dispatch("change",{cancelable:!1,prefix:"",target:e})};this.processTargetElements("apply").forEach((e=>{this.delayValue?setTimeout((()=>{n(e)}),this.delayValue):n(e)}))}clear(){this.processTargetElements("clear").forEach((e=>{setTimeout((()=>{e.setAttribute("value",""),this.quietValue||this.dispatch("change",{cancelable:!1,prefix:"",target:e})}),this.delayValue)}))}ping(){this.processTargetElements("ping",!1,{bubbles:!0})}processTargetElements(e,t=!1,n={}){if(!t&&this.disabledValue)return[];const i=[...document.querySelectorAll(this.targetValue)],o=i.filter((t=>!this.dispatch(e,{bubbles:!1,cancelable:!0,...n,detail:{element:this.element,value:this.element.value},target:t}).defaultPrevented));return t&&(this.disabledValue=i.length>o.length),o}}class ln extends r.Controller{static values={options:{default:{},type:Object},url:String};tagit;connect(){const e=this.cleanTag.bind(this);o()(this.element).tagit({autocomplete:{source:this.urlValue},preprocessTag:e,...this.optionsValue})}cleanTag(e){return e&&'"'!==e[0]&&e.indexOf(" ")>-1?`"${e}"`:e}clear(){o()(this.element).tagit("removeAll")}}var cn=n(2223);const dn={initial:1e4,long:3e3,notify:30,short:300};class hn extends r.Controller{static values={confirmation:{default:"",type:String},durations:{default:dn,type:Object},force:{default:!1,type:Boolean},hasComments:{default:!1,type:Boolean},hasEdits:{default:!1,type:Boolean},watch:{default:"edits",type:String}};initialFormData;observer;runningCheck;initialize(){this.notify=(0,C.s)(this.notify.bind(this),this.durationsValue.notify)}connect(){this.clear();const e=this.durationsValue,t=this.watchValue;t.includes("comments")&&this.watchComments(e),t.includes("edits")&&this.watchEdits(e),this.dispatch("ready",{cancelable:!1})}get formData(){const e=["comment_","comments-","csrfmiddlewaretoken","next"],t=new FormData(this.element);return JSON.stringify([...t.entries()].filter((([t])=>!e.some((e=>t.startsWith(e))))),((e,t)=>t instanceof File?{name:t.name,size:t.size,type:t.type}:t))}check(){const{long:e,short:t}=this.durationsValue;return this.runningCheck&&this.runningCheck.cancel(),this.runningCheck=(0,C.s)((()=>{this.forceValue?this.hasEditsValue=!0:this.initialFormData?this.hasEditsValue=this.initialFormData!==this.formData:this.hasEditsValue=!1}),this.hasEditsValue?e:t),this.runningCheck()}clear(){this.hasCommentsValue=!1,this.hasEditsValue=!1}confirm(e){const t=this.confirmationValue;return t&&(this.forceValue||this.hasCommentsValue||this.hasEditsValue)?(e.returnValue=t,t):null}hasCommentsValueChanged(e,t){e!==t&&this.notify()}hasEditsValueChanged(e,t){e!==t&&this.notify()}getIsValidNode(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;const t=["input","textarea","select"];return t.includes(e.localName)||null!==e.querySelector(t.join(","))}notify(){const e=this.hasCommentsValue,t=this.hasEditsValue;if(!e&&!t)return void this.dispatch("clear",{cancelable:!1});const[n]=[t&&e&&"all",e&&"comments",t&&"edits"].filter(Boolean);this.dispatch("add",{cancelable:!1,detail:{type:n}})}submit(){this.confirmationValue=""}watchComments({long:e,short:t}){let n;const{commentApp:i}=window.comments,o=i.selectors.selectIsDirty(i.store.getState());this.dispatch("watch-edits",{cancelable:!1,detail:{initialComments:o}}),this.hasCommentsValue=o,i.store.subscribe((()=>{n&&n.cancel(),n=(0,C.s)((()=>{this.hasCommentsValue=i.selectors.selectIsDirty(i.store.getState())}),this.hasCommentsValue?e:t),n()}))}watchEdits({initial:e}){const t=this.element;(0,C.s)((()=>{const e=this.formData;this.initialFormData=e,this.dispatch("watch-edits",{cancelable:!1,detail:{initialFormData:e}});const n=new MutationObserver((e=>{e.some((e=>Array.from(e.addedNodes).some(this.getIsValidNode)||Array.from(e.removedNodes).some(this.getIsValidNode)))&&this.check()}));n.observe(t,{attributes:!1,childList:!0,subtree:!0}),this.observer=n}),e)()}disconnect(){this.runningCheck&&this.runningCheck.cancel(),this.observer&&this.observer.disconnect()}static afterLoad(e){window.enableDirtyFormCheck=(t,{alwaysDirty:n=!1,confirmationMessage:i=""})=>{(0,M.Q)().then((()=>{const o=document.querySelector(`${t}:not([data-controller~='${e}'])`);o instanceof HTMLFormElement&&([["data-w-unsaved-confirmation-value",i||" "],["data-w-unsaved-force-value",String(n||!1)],["data-w-unsaved-watch-value","edits comments"]].forEach((([e,t])=>{o.setAttribute(e,t)})),o.setAttribute("data-action",[o.getAttribute("data-action")||"","w-unsaved#submit","beforeunload@window->w-unsaved#confirm","change->w-unsaved#check","keyup->w-unsaved#check"].filter(Boolean).join(" ")),o.setAttribute("data-controller",[o.getAttribute("data-controller")||"",e].filter(Boolean).join(" ")))}))}}}class un extends Error{constructor(e){super(e),this.message=`Version number '${e}' is not formatted correctly.`}}class pn extends Error{constructor(){super(),this.message="Can only compare prerelease versions"}}class fn{static MAJOR=new fn("Major");static MINOR=new fn("Minor");static PATCH=new fn("Patch");static PRE_RELEASE_STEP=new fn("PreReleaseStep");static PRE_RELEASE_VERSION=new fn("PreReleaseVersion");constructor(e){this.name=e}}class mn{constructor(e){const t=e.match(/^(?<major>\d+)\.{1}(?<minor>\d+)((\.{1}(?<patch>\d+))|(?<preReleaseStep>a|b|rc|\.dev){1}(?<preReleaseVersion>\d+)){0,1}$/);if(null===t)throw new un(e);const n=t.groups;this.major=parseInt(n.major,10),this.minor=parseInt(n.minor,10),this.patch=n.patch?parseInt(n.patch,10):0,this.preReleaseStep=n.preReleaseStep?n.preReleaseStep:null,this.preReleaseVersion=n.preReleaseVersion?parseInt(n.preReleaseVersion,10):null}isPreRelease(){return null!==this.preReleaseStep}isPreReleaseStepBehind(e){if(!this.isPreRelease()||!e.isPreRelease())throw new pn;return"a"===this.preReleaseStep&&("b"===e.preReleaseStep||"rc"===e.preReleaseStep)||"b"===this.preReleaseStep&&"rc"===e.preReleaseStep}howMuchBehind(e){if(this.major<e.major)return fn.MAJOR;if(this.major===e.major&&this.minor<e.minor)return fn.MINOR;if(this.major===e.major&&this.minor===e.minor&&!this.isPreRelease()&&!e.isPreRelease()&&this.patch<e.patch)return fn.PATCH;if(this.major===e.major&&this.minor===e.minor&&this.isPreRelease()){if(!e.isPreRelease())return fn.MINOR;if(this.isPreReleaseStepBehind(e))return fn.PRE_RELEASE_STEP;if(this.preReleaseStep===e.preReleaseStep&&this.preReleaseVersion<e.preReleaseVersion)return fn.PRE_RELEASE_VERSION}return null}}class gn extends r.Controller{static classes=["hidden"];static targets=["latestVersion","link"];static values={currentVersion:String,ltsOnly:{default:!1,type:Boolean},url:{default:"https://releases.wagtail.org/latest.txt",type:String}};connect(){this.checkVersion()}checkVersion(){const e=this.urlValue,t=new mn(this.currentVersionValue),n=this.ltsOnlyValue;fetch(e,{referrerPolicy:"strict-origin-when-cross-origin"}).then((t=>{if(200!==t.status)throw Error(`Unexpected response from ${e}. Status: ${t.status}`);return t.json()})).then((e=>{let i=e;if(i&&i.lts&&n&&(i=i.lts),i&&i.version){const e=new mn(i.version),o=t.howMuchBehind(e);let r=null;if(!o)return;if(r=o===fn.MAJOR||o===fn.MINOR?i.minorUrl:i.url,this.latestVersionTarget instanceof HTMLElement){const e=[i.version,n?"(LTS)":""].join(" ").trim();this.latestVersionTarget.textContent=e}this.linkTarget instanceof HTMLElement&&this.linkTarget.setAttribute("href",r||""),this.element.classList.remove(this.hiddenClass)}})).catch((t=>{console.error(`Error fetching ${e}. Error: ${t}`)}))}}const vn=[{controllerConstructor:g,identifier:"w-action"},{controllerConstructor:S,identifier:"w-autosize"},{controllerConstructor:T,identifier:"w-block"},{controllerConstructor:A,identifier:"w-bulk"},{controllerConstructor:_,identifier:"w-clipboard"},{controllerConstructor:x,identifier:"w-clone"},{controllerConstructor:x,identifier:"w-messages"},{controllerConstructor:D,identifier:"w-count"},{controllerConstructor:V.v,identifier:"w-dialog"},{controllerConstructor:L,identifier:"w-dismissible"},{controllerConstructor:P,identifier:"w-drilldown"},{controllerConstructor:H,identifier:"w-dropdown"},{controllerConstructor:z,identifier:"w-init"},{controllerConstructor:q,identifier:"w-kbd"},{controllerConstructor:Y,identifier:"w-link"},{controllerConstructor:Gt,identifier:"w-orderable"},{controllerConstructor:Zt,identifier:"w-progress"},{controllerConstructor:Jt,identifier:"w-breadcrumbs"},{controllerConstructor:Jt,identifier:"w-reveal"},{controllerConstructor:Qt,identifier:"w-skip-link"},{controllerConstructor:on,identifier:"w-slug"},{controllerConstructor:rn,identifier:"w-submit"},{controllerConstructor:an,identifier:"w-swap"},{controllerConstructor:sn,identifier:"w-sync"},{controllerConstructor:ln,identifier:"w-tag"},{controllerConstructor:cn.I,identifier:"w-teleport"},{controllerConstructor:R,identifier:"w-tooltip"},{controllerConstructor:hn,identifier:"w-unsaved"},{controllerConstructor:gn,identifier:"w-upgrade"}],bn=(e,t=!("true"===e.getAttribute("aria-expanded")))=>{const n=document.querySelector(`#${e.getAttribute("aria-controls")}`);n&&(e.setAttribute("aria-expanded",`${t}`),t?n.removeAttribute("hidden"):"onbeforematch"in document.body?n.setAttribute("hidden","until-found"):n.setAttribute("hidden",""),e.dispatchEvent(new CustomEvent("commentAnchorVisibilityChange",{bubbles:!0})),e.dispatchEvent(new CustomEvent("wagtail:panel-toggle",{bubbles:!0,cancelable:!1,detail:{expanded:t}})))};function yn(e){const t=e.closest("[data-panel]"),n=document.querySelector(`#${e.getAttribute("aria-controls")}`);if(!n||!t||t.collapsibleInitialised)return;t.collapsibleInitialised=!0;const i=bn.bind(null,e),o=t.classList.contains("collapsed"),r=n.querySelector('[aria-invalid="true"], .error, .w-field--error'),a=o&&!r;a&&i(!1),e.addEventListener("click",i.bind(null,void 0));const s=t.querySelector("[data-panel-heading]");s&&s.addEventListener("click",i.bind(null,void 0)),n.addEventListener("beforematch",i.bind(null,!0)),e.dispatchEvent(new CustomEvent("wagtail:panel-init",{bubbles:!0,cancelable:!1,detail:{expanded:!a}}))}var wn=n(3410);class En extends wn.n{constructor(e){super(e.formsetPrefix,e),this.formsElt=o()("#"+e.formsetPrefix+"-FORMS");for(let e=0;e<this.formCount;e+=1){const t=this.opts.emptyChildFormPrefix.replace(/__prefix__/g,e);this.initChildControls(t)}this.updateControlStates(),setTimeout((()=>{this.formsElt.get(0)?.dispatchEvent(new CustomEvent("w-formset:ready",{bubbles:!0,cancelable:!1,detail:{...e}}))}))}updateControlStates(){this.updateChildCount(),this.updateMoveButtonDisabledStates(),this.updateAddButtonState()}initChildControls(e){const t="inline_child_"+e,n="id_"+e+"-DELETE",i=o()("#"+t),r=i.find("[data-inline-panel-child-move-up]:first "),a=i.find("[data-inline-panel-child-move-down]:first ");o()("#"+n+"-button").on("click",(()=>{o()("#"+n).val("1").get(0).dispatchEvent(new Event("change",{bubbles:!0})),i.addClass("deleted").slideUp((()=>{this.updateControlStates(),i.get(0).dispatchEvent(new CustomEvent("w-formset:removed",{bubbles:!0,cancelable:!1,detail:{...this.opts}}))}))})),this.opts.canOrder&&(r.on("click",(()=>{const t=i.find(`input[name="${e}-ORDER"]`),n=t.val(),o=i.prevAll(":not(.deleted)").first();if(!o.length)return;const r=o[0].id.replace("inline_child_",""),a=o.find(`input[name="${r}-ORDER"]`),s=a.val();this.animateSwap(i,o),i.insertBefore(o),t.val(s),a.val(n),this.updateControlStates()})),a.on("click",(()=>{const t=i.find(`input[name="${e}-ORDER"]`),n=t.val(),o=i.nextAll(":not(.deleted)").first();if(!o.length)return;const r=o[0].id.replace("inline_child_",""),a=o.find(`input[name="${r}-ORDER"]`),s=a.val();this.animateSwap(i,o),i.insertAfter(o),t.val(s),a.val(n),this.updateControlStates()}))),"1"===o()("#"+n).val()&&(o()("#"+t).addClass("deleted").hide(0,(()=>{this.updateControlStates()})),o()("#"+t).find(".error-message").remove())}updateMoveButtonDisabledStates(){if(this.opts.canOrder){const e=this.formsElt.children(":not(.deleted)");e.each((function(t){const n=0===t,i=t===e.length-1;o()("[data-inline-panel-child-move-up]:first",this).prop("disabled",n),o()("[data-inline-panel-child-move-down]:first",this).prop("disabled",i)}))}}updateChildCount(){this.formsElt.children(":not(.deleted)").each((function(e){o()("[data-inline-panel-child-count]",this).first().text(` ${e+1}`)}))}getChildCount(){return o()("> [data-inline-panel-child]",this.formsElt).not(".deleted").length}updateAddButtonState(){if(this.opts.maxForms){const e=o()("#"+this.opts.formsetPrefix+"-ADD");this.getChildCount()>=this.opts.maxForms?e.prop("disabled",!0):e.prop("disabled",!1)}}animateSwap(e,t){const n=this.formsElt,i=n.children(":not(.deleted)");n.css({position:"relative",height:n.height()}),i.each((function(){o()(this).css("top",o()(this).position().top)})).css({position:"absolute",width:"100%"}),e.animate({top:t.position().top},200,(()=>{n.removeAttr("style"),i.removeAttr("style")})),t.animate({top:e.position().top},200,(()=>{n.removeAttr("style"),i.removeAttr("style")}))}initialFocus(e){e&&e.length&&(e.attr("tabindex")||(e.attr("tabindex",-1),e.one("blur",(()=>{"-1"===e.attr("tabindex")&&e.removeAttr("tabindex")}))),e[0].scrollIntoView({behavior:"smooth"}),e.focus())}addForm(e={}){super.addForm({runCallbacks:!1});const t=this.formCount-1,n=this.opts.emptyChildFormPrefix.replace(/__prefix__/g,t);this.initChildControls(n),this.opts.canOrder&&o()("#id_"+n+"-ORDER").val(t+1).get(0).dispatchEvent(new Event("change",{bubbles:!0})),this.updateControlStates(),function(e=document.querySelectorAll("[data-panel-toggle]")){e.forEach(yn)}(document.querySelectorAll(`#inline_child_${n} [data-panel-toggle]`)),"runCallbacks"in e&&!e.runCallbacks||(this.opts.onAdd&&this.opts.onAdd(t),this.opts.onInit&&this.opts.onInit(t)),this.initialFocus(o()(`#inline_child_${n}-panel-content`));const i=this.formsElt.children().last().get(0);i&&i.dispatchEvent(new CustomEvent("w-formset:added",{bubbles:!0,cancelable:!1,detail:{formIndex:t,...this.opts}}))}}var Cn=n(4327);window.StimulusModule=r;const Sn=window.wagtail||{};Sn.app=(({debug:e=!1,definitions:t=[],root:n=document.documentElement}={})=>{const i=r.Application.start(n);return i.debug=e,i.load(t),i})({definitions:vn}),Sn.components={Icon:l.A,Portal:c.A},window.wagtail=Sn,window.escapeHtml=Cn.Z,window.InlinePanel=En,window.MultipleChooserPanel=class extends En{constructor(e){super(e),this.chooserWidgetFactory=window.telepath.unpack(JSON.parse(document.getElementById(`${e.formsetPrefix}-CHOOSER_WIDGET`).textContent)),document.getElementById(`${e.formsetPrefix}-OPEN_MODAL`).addEventListener("click",(()=>{this.chooserWidgetFactory.openModal((t=>{t.forEach((t=>{if(e.maxForms&&this.getChildCount()>=e.maxForms)return;this.addForm();const n=this.formCount-1,i=`${e.formsetPrefix}-${n}-${e.chooserFieldName}`;this.chooserWidgetFactory.getById(i).setStateFromModalData(t)}))}),{multiple:!0})}))}updateOpenModalButtonState(){if(this.opts.maxForms){const e=document.getElementById(`${this.opts.formsetPrefix}-OPEN_MODAL`);this.getChildCount()>=this.opts.maxForms?(e.setAttribute("disabled","true"),e.setAttribute("data-force-disabled","true")):(e.removeAttribute("disabled"),e.removeAttribute("data-force-disabled"))}}updateControlStates(){super.updateControlStates(),this.updateOpenModalButtonState()}},window.URLify=(e,t=255,n=!1)=>nn(e,{numChars:t,allowUnicode:n}),o()((()=>{o()(".drop-zone").on("dragover",(function(){o()(this).addClass("hovered")})).on("dragleave dragend drop",(function(){o()(this).removeClass("hovered")}))}))},1669:e=>{"use strict";e.exports=jQuery}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.m=t,e=[],i.O=(t,n,o,r)=>{if(!n){var a=1/0;for(d=0;d<e.length;d++){for(var[n,o,r]=e[d],s=!0,l=0;l<n.length;l++)(!1&r||a>=r)&&Object.keys(i.O).every((e=>i.O[e](n[l])))?n.splice(l--,1):(s=!1,r<a&&(a=r));if(s){e.splice(d--,1);var c=o();void 0!==c&&(t=c)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,o,r]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=114,(()=>{var e={114:0};i.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(o in s)i.o(s,o)&&(i.m[o]=s[o]);if(l)var d=l(i)}for(t&&t(n);c<a.length;c++)r=a[c],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return i.O(d)},n=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=i.O(void 0,[321],(()=>i(2029)));o=i.O(o)})();
@@ -1,5 +1,5 @@
1
1
  /**!
2
- * Sortable 1.15.0
2
+ * Sortable 1.15.2
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
5
5
  * @license MIT
@@ -1 +1 @@
1
- (()=>{"use strict";var e,t={8002:(e,t,n)=>{var a=n(5311),i=n.n(a);function o(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getYear()===t.getYear()}function r(e,t){o(new Date(t[0].value),e)||i()(this).find(".xdsoft_datepicker .xdsoft_current:not(.xdsoft_today)").removeClass("xdsoft_current")}i().fn.datetimepicker.defaults.i18n.wagtail_custom_locale={months:wagtailConfig.STRINGS.MONTHS,dayOfWeek:wagtailConfig.STRINGS.WEEKDAYS,dayOfWeekShort:wagtailConfig.STRINGS.WEEKDAYS_SHORT},i().datetimepicker.setLocale("wagtail_custom_locale"),window.dateEqual=o,window.hideCurrent=r,window.initDateChooser=function(e,t){window.dateTimePickerTranslations?i()("#"+e).datetimepicker(i().extend({closeOnDateSelect:!0,timepicker:!1,scrollInput:!1,format:"Y-m-d",onGenerate:r,onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{})):i()("#"+e).datetimepicker(i().extend({timepicker:!1,scrollInput:!1,format:"Y-m-d",onGenerate:r,onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{}))},window.initTimeChooser=function(e,t){window.dateTimePickerTranslations?i()("#"+e).datetimepicker(i().extend({closeOnDateSelect:!0,datepicker:!1,scrollInput:!1,format:"H:i",onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{})):i()("#"+e).datetimepicker(i().extend({datepicker:!1,format:"H:i",onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{}))},window.initDateTimeChooser=function(e,t){window.dateTimePickerTranslations?i()("#"+e).datetimepicker(i().extend({closeOnDateSelect:!0,format:"Y-m-d H:i",scrollInput:!1,onGenerate:r,onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{})):i()("#"+e).datetimepicker(i().extend({format:"Y-m-d H:i",onGenerate:r,onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{}))}},5311:e=>{e.exports=jQuery}},n={};function a(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,a),o.loaded=!0,o.exports}a.m=t,e=[],a.O=(t,n,i,o)=>{if(!n){var r=1/0;for(s=0;s<e.length;s++){for(var[n,i,o]=e[s],d=!0,l=0;l<n.length;l++)(!1&o||r>=o)&&Object.keys(a.O).every((e=>a.O[e](n[l])))?n.splice(l--,1):(d=!1,o<r&&(r=o));if(d){e.splice(s--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[n,i,o]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=465,(()=>{var e={465:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[r,d,l]=n,c=0;if(r.some((t=>0!==e[t]))){for(i in d)a.o(d,i)&&(a.m[i]=d[i]);if(l)var s=l(a)}for(t&&t(n);c<r.length;c++)o=r[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(s)},n=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=a.O(void 0,[751],(()=>a(8002)));i=a.O(i)})();
1
+ (()=>{"use strict";var e,t={1712:(e,t,n)=>{var a=n(1669),i=n.n(a);function o(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getYear()===t.getYear()}function r(e,t){o(new Date(t[0].value),e)||i()(this).find(".xdsoft_datepicker .xdsoft_current:not(.xdsoft_today)").removeClass("xdsoft_current")}i().fn.datetimepicker.defaults.i18n.wagtail_custom_locale={months:wagtailConfig.STRINGS.MONTHS,dayOfWeek:wagtailConfig.STRINGS.WEEKDAYS,dayOfWeekShort:wagtailConfig.STRINGS.WEEKDAYS_SHORT},i().datetimepicker.setLocale("wagtail_custom_locale"),window.dateEqual=o,window.hideCurrent=r,window.initDateChooser=function(e,t){window.dateTimePickerTranslations?i()("#"+e).datetimepicker(i().extend({closeOnDateSelect:!0,timepicker:!1,scrollInput:!1,format:"Y-m-d",onGenerate:r,onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{})):i()("#"+e).datetimepicker(i().extend({timepicker:!1,scrollInput:!1,format:"Y-m-d",onGenerate:r,onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{}))},window.initTimeChooser=function(e,t){window.dateTimePickerTranslations?i()("#"+e).datetimepicker(i().extend({closeOnDateSelect:!0,datepicker:!1,scrollInput:!1,format:"H:i",onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{})):i()("#"+e).datetimepicker(i().extend({datepicker:!1,format:"H:i",onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{}))},window.initDateTimeChooser=function(e,t){window.dateTimePickerTranslations?i()("#"+e).datetimepicker(i().extend({closeOnDateSelect:!0,format:"Y-m-d H:i",scrollInput:!1,onGenerate:r,onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{})):i()("#"+e).datetimepicker(i().extend({format:"Y-m-d H:i",onGenerate:r,onChangeDateTime(e,t){t.get(0).dispatchEvent(new Event("change",{bubbles:!0}))}},t||{}))}},1669:e=>{e.exports=jQuery}},n={};function a(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,a),o.loaded=!0,o.exports}a.m=t,e=[],a.O=(t,n,i,o)=>{if(!n){var r=1/0;for(s=0;s<e.length;s++){for(var[n,i,o]=e[s],d=!0,l=0;l<n.length;l++)(!1&o||r>=o)&&Object.keys(a.O).every((e=>a.O[e](n[l])))?n.splice(l--,1):(d=!1,o<r&&(r=o));if(d){e.splice(s--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[n,i,o]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=883,(()=>{var e={883:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[r,d,l]=n,c=0;if(r.some((t=>0!==e[t]))){for(i in d)a.o(d,i)&&(a.m[i]=d[i]);if(l)var s=l(a)}for(t&&t(n);c<r.length;c++)o=r[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(s)},n=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=a.O(void 0,[321],(()=>a(1712)));i=a.O(i)})();