bitz-react-admin-ui 2.7.4 → 2.7.5

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 (808) hide show
  1. package/dist/node_modules/@ant-design/colors/es/generate.mjs +93 -0
  2. package/dist/node_modules/@ant-design/colors/es/presets.mjs +72 -0
  3. package/dist/node_modules/@ant-design/cssinjs/es/Cache.mjs +40 -0
  4. package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.mjs +18 -0
  5. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.mjs +38 -0
  6. package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.mjs +9 -0
  7. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.mjs +51 -0
  8. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs +92 -0
  9. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs +15 -0
  10. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs +27 -0
  11. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.mjs +47 -0
  12. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs +22 -0
  13. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs +210 -0
  14. package/dist/node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.mjs +10 -0
  15. package/dist/node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.mjs +7 -0
  16. package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.mjs +8 -0
  17. package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.mjs +20 -0
  18. package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.mjs +104 -0
  19. package/dist/node_modules/@ant-design/cssinjs/es/theme/createTheme.mjs +10 -0
  20. package/dist/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs +4 -0
  21. package/dist/node_modules/@ant-design/cssinjs/es/util/cacheMapUtil.mjs +42 -0
  22. package/dist/node_modules/@ant-design/cssinjs/es/util/css-variables.mjs +28 -0
  23. package/dist/node_modules/@ant-design/cssinjs/es/util/index.mjs +52 -0
  24. package/dist/node_modules/@ant-design/cssinjs/node_modules/@emotion/hash/dist/hash.browser.esm.mjs +22 -0
  25. package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Enum.mjs +9 -0
  26. package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Parser.mjs +114 -0
  27. package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Serializer.mjs +29 -0
  28. package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Tokenizer.mjs +127 -0
  29. package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Utility.mjs +37 -0
  30. package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.mjs +63 -0
  31. package/dist/node_modules/@ant-design/cssinjs-utils/es/hooks/useCSP.mjs +6 -0
  32. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.mjs +59 -0
  33. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.mjs +44 -0
  34. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/calculator.mjs +8 -0
  35. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/index.mjs +11 -0
  36. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/genStyleUtils.mjs +156 -0
  37. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getCompVarPrefix.mjs +6 -0
  38. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getComponentToken.mjs +26 -0
  39. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getDefaultComponentToken.mjs +11 -0
  40. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/maxmin.mjs +36 -0
  41. package/dist/node_modules/@ant-design/cssinjs-utils/es/util/statistic.mjs +55 -0
  42. package/dist/node_modules/@ant-design/fast-color/es/FastColor.mjs +327 -0
  43. package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.mjs +42 -0
  44. package/dist/node_modules/@ant-design/icons/es/components/Context.mjs +6 -0
  45. package/dist/node_modules/@ant-design/icons/es/components/IconBase.mjs +46 -0
  46. package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.mjs +18 -0
  47. package/dist/node_modules/@ant-design/icons/es/icons/AlignCenterOutlined.mjs +15 -0
  48. package/dist/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs +15 -0
  49. package/dist/node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.mjs +15 -0
  50. package/dist/node_modules/@ant-design/icons/es/icons/ArrowRightOutlined.mjs +15 -0
  51. package/dist/node_modules/@ant-design/icons/es/icons/CaretDownFilled.mjs +15 -0
  52. package/dist/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs +15 -0
  53. package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleFilled.mjs +15 -0
  54. package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs +15 -0
  55. package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.mjs +15 -0
  56. package/dist/node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.mjs +15 -0
  57. package/dist/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.mjs +15 -0
  58. package/dist/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs +15 -0
  59. package/dist/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
  60. package/dist/node_modules/@ant-design/icons/es/icons/DeleteOutlined.mjs +15 -0
  61. package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.mjs +15 -0
  62. package/dist/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs +15 -0
  63. package/dist/node_modules/@ant-design/icons/es/icons/EditOutlined.mjs +15 -0
  64. package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.mjs +15 -0
  65. package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.mjs +15 -0
  66. package/dist/node_modules/@ant-design/icons/es/icons/EyeOutlined.mjs +15 -0
  67. package/dist/node_modules/@ant-design/icons/es/icons/FileTwoTone.mjs +15 -0
  68. package/dist/node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs +15 -0
  69. package/dist/node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs +15 -0
  70. package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleFilled.mjs +15 -0
  71. package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs +15 -0
  72. package/dist/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs +15 -0
  73. package/dist/node_modules/@ant-design/icons/es/icons/LoadingOutlined.mjs +15 -0
  74. package/dist/node_modules/@ant-design/icons/es/icons/MenuFoldOutlined.mjs +15 -0
  75. package/dist/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs +15 -0
  76. package/dist/node_modules/@ant-design/icons/es/icons/MenuUnfoldOutlined.mjs +15 -0
  77. package/dist/node_modules/@ant-design/icons/es/icons/MinusCircleOutlined.mjs +15 -0
  78. package/dist/node_modules/@ant-design/icons/es/icons/PaperClipOutlined.mjs +15 -0
  79. package/dist/node_modules/@ant-design/icons/es/icons/PauseCircleFilled.mjs +15 -0
  80. package/dist/node_modules/@ant-design/icons/es/icons/PictureTwoTone.mjs +15 -0
  81. package/dist/node_modules/@ant-design/icons/es/icons/PlayCircleFilled.mjs +15 -0
  82. package/dist/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs +15 -0
  83. package/dist/node_modules/@ant-design/icons/es/icons/PlusOutlined.mjs +15 -0
  84. package/dist/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs +15 -0
  85. package/dist/node_modules/@ant-design/icons/es/icons/ReloadOutlined.mjs +15 -0
  86. package/dist/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs +15 -0
  87. package/dist/node_modules/@ant-design/icons/es/icons/SearchOutlined.mjs +15 -0
  88. package/dist/node_modules/@ant-design/icons/es/icons/SettingFilled.mjs +15 -0
  89. package/dist/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs +15 -0
  90. package/dist/node_modules/@ant-design/icons/es/icons/SwapRightOutlined.mjs +15 -0
  91. package/dist/node_modules/@ant-design/icons/es/icons/UploadOutlined.mjs +15 -0
  92. package/dist/node_modules/@ant-design/icons/es/utils.mjs +127 -0
  93. package/dist/node_modules/@ant-design/icons-svg/es/asn/AlignCenterOutlined.mjs +5 -0
  94. package/dist/node_modules/@ant-design/icons-svg/es/asn/AppstoreOutlined.mjs +5 -0
  95. package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowLeftOutlined.mjs +5 -0
  96. package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowRightOutlined.mjs +5 -0
  97. package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownFilled.mjs +5 -0
  98. package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownOutlined.mjs +5 -0
  99. package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleFilled.mjs +5 -0
  100. package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.mjs +5 -0
  101. package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.mjs +5 -0
  102. package/dist/node_modules/@ant-design/icons-svg/es/asn/ClockCircleOutlined.mjs +5 -0
  103. package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.mjs +5 -0
  104. package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.mjs +5 -0
  105. package/dist/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
  106. package/dist/node_modules/@ant-design/icons-svg/es/asn/DeleteOutlined.mjs +5 -0
  107. package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.mjs +5 -0
  108. package/dist/node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.mjs +5 -0
  109. package/dist/node_modules/@ant-design/icons-svg/es/asn/EditOutlined.mjs +5 -0
  110. package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleFilled.mjs +5 -0
  111. package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.mjs +5 -0
  112. package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.mjs +5 -0
  113. package/dist/node_modules/@ant-design/icons-svg/es/asn/FileTwoTone.mjs +7 -0
  114. package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenExitOutlined.mjs +5 -0
  115. package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenOutlined.mjs +5 -0
  116. package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleFilled.mjs +5 -0
  117. package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleOutlined.mjs +5 -0
  118. package/dist/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.mjs +5 -0
  119. package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.mjs +5 -0
  120. package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuFoldOutlined.mjs +5 -0
  121. package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.mjs +5 -0
  122. package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuUnfoldOutlined.mjs +5 -0
  123. package/dist/node_modules/@ant-design/icons-svg/es/asn/MinusCircleOutlined.mjs +5 -0
  124. package/dist/node_modules/@ant-design/icons-svg/es/asn/PaperClipOutlined.mjs +5 -0
  125. package/dist/node_modules/@ant-design/icons-svg/es/asn/PauseCircleFilled.mjs +5 -0
  126. package/dist/node_modules/@ant-design/icons-svg/es/asn/PictureTwoTone.mjs +7 -0
  127. package/dist/node_modules/@ant-design/icons-svg/es/asn/PlayCircleFilled.mjs +5 -0
  128. package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusCircleFilled.mjs +5 -0
  129. package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.mjs +5 -0
  130. package/dist/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.mjs +5 -0
  131. package/dist/node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.mjs +5 -0
  132. package/dist/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.mjs +5 -0
  133. package/dist/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.mjs +5 -0
  134. package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingFilled.mjs +5 -0
  135. package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.mjs +5 -0
  136. package/dist/node_modules/@ant-design/icons-svg/es/asn/SwapRightOutlined.mjs +5 -0
  137. package/dist/node_modules/@ant-design/icons-svg/es/asn/UploadOutlined.mjs +5 -0
  138. package/dist/node_modules/@babel/runtime/helpers/defineProperty.mjs +18 -0
  139. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
  140. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.mjs +7 -0
  141. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
  142. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.mjs +8 -0
  143. package/dist/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.mjs +26 -0
  144. package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.mjs +7 -0
  145. package/dist/node_modules/@babel/runtime/helpers/esm/construct.mjs +13 -0
  146. package/dist/node_modules/@babel/runtime/helpers/esm/createClass.mjs +15 -0
  147. package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.mjs +18 -0
  148. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
  149. package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  150. package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.mjs +8 -0
  151. package/dist/node_modules/@babel/runtime/helpers/esm/inherits.mjs +17 -0
  152. package/dist/node_modules/@babel/runtime/helpers/esm/isNativeFunction.mjs +10 -0
  153. package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.mjs +13 -0
  154. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
  155. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.mjs +29 -0
  156. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.mjs +7 -0
  157. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
  158. package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.mjs +25 -0
  159. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
  160. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
  161. package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.mjs +12 -0
  162. package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.mjs +315 -0
  163. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.mjs +8 -0
  164. package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.mjs +10 -0
  165. package/dist/node_modules/@babel/runtime/helpers/esm/toArray.mjs +10 -0
  166. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
  167. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
  168. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
  169. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
  170. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
  171. package/dist/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.mjs +32 -0
  172. package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.mjs +13 -0
  173. package/dist/node_modules/@babel/runtime/helpers/objectSpread2.mjs +31 -0
  174. package/dist/node_modules/@babel/runtime/helpers/toPrimitive.mjs +22 -0
  175. package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.mjs +15 -0
  176. package/dist/node_modules/@babel/runtime/helpers/typeof.mjs +16 -0
  177. package/dist/node_modules/@better-scroll/core/dist/core.esm.mjs +1377 -0
  178. package/dist/node_modules/@better-scroll/wheel/dist/wheel.esm.mjs +253 -0
  179. package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.mjs +115 -0
  180. package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.mjs +153 -0
  181. package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.mjs +68 -0
  182. package/dist/node_modules/@ctrl/tinycolor/dist/module/index.mjs +183 -0
  183. package/dist/node_modules/@ctrl/tinycolor/dist/module/util.mjs +32 -0
  184. package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs +54 -0
  185. package/dist/node_modules/@dnd-kit/core/dist/core.esm.mjs +2524 -0
  186. package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs +27 -0
  187. package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +367 -0
  188. package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +235 -0
  189. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +251 -0
  190. package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.mjs +86 -0
  191. package/dist/node_modules/@emotion/css/dist/emotion-css.esm.mjs +7 -0
  192. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
  193. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
  194. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs +134 -0
  195. package/dist/node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +53 -0
  196. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.mjs +45 -0
  197. package/dist/node_modules/@emotion/unitless/dist/unitless.browser.esm.mjs +51 -0
  198. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +34 -0
  199. package/dist/node_modules/@fullcalendar/core/index.mjs +1365 -0
  200. package/dist/node_modules/@fullcalendar/core/internal-common.mjs +4823 -0
  201. package/dist/node_modules/@fullcalendar/core/locales/zh-cn.mjs +28 -0
  202. package/dist/node_modules/@fullcalendar/daygrid/index.mjs +32 -0
  203. package/dist/node_modules/@fullcalendar/daygrid/internal.mjs +746 -0
  204. package/dist/node_modules/@fullcalendar/interaction/index.mjs +842 -0
  205. package/dist/node_modules/@fullcalendar/list/index.mjs +54 -0
  206. package/dist/node_modules/@fullcalendar/list/internal.mjs +207 -0
  207. package/dist/node_modules/@fullcalendar/react/dist/index.mjs +71 -0
  208. package/dist/node_modules/@fullcalendar/timegrid/index.mjs +31 -0
  209. package/dist/node_modules/@fullcalendar/timegrid/internal.mjs +900 -0
  210. package/dist/node_modules/@rc-component/async-validator/es/index.mjs +159 -0
  211. package/dist/node_modules/@rc-component/async-validator/es/messages.mjs +58 -0
  212. package/dist/node_modules/@rc-component/async-validator/es/rule/enum.mjs +7 -0
  213. package/dist/node_modules/@rc-component/async-validator/es/rule/index.mjs +17 -0
  214. package/dist/node_modules/@rc-component/async-validator/es/rule/pattern.mjs +14 -0
  215. package/dist/node_modules/@rc-component/async-validator/es/rule/range.mjs +10 -0
  216. package/dist/node_modules/@rc-component/async-validator/es/rule/required.mjs +7 -0
  217. package/dist/node_modules/@rc-component/async-validator/es/rule/type.mjs +63 -0
  218. package/dist/node_modules/@rc-component/async-validator/es/rule/url.mjs +37 -0
  219. package/dist/node_modules/@rc-component/async-validator/es/rule/whitespace.mjs +7 -0
  220. package/dist/node_modules/@rc-component/async-validator/es/util.mjs +167 -0
  221. package/dist/node_modules/@rc-component/async-validator/es/validator/any.mjs +14 -0
  222. package/dist/node_modules/@rc-component/async-validator/es/validator/array.mjs +13 -0
  223. package/dist/node_modules/@rc-component/async-validator/es/validator/boolean.mjs +14 -0
  224. package/dist/node_modules/@rc-component/async-validator/es/validator/date.mjs +17 -0
  225. package/dist/node_modules/@rc-component/async-validator/es/validator/enum.mjs +14 -0
  226. package/dist/node_modules/@rc-component/async-validator/es/validator/float.mjs +14 -0
  227. package/dist/node_modules/@rc-component/async-validator/es/validator/index.mjs +37 -0
  228. package/dist/node_modules/@rc-component/async-validator/es/validator/integer.mjs +14 -0
  229. package/dist/node_modules/@rc-component/async-validator/es/validator/method.mjs +14 -0
  230. package/dist/node_modules/@rc-component/async-validator/es/validator/number.mjs +14 -0
  231. package/dist/node_modules/@rc-component/async-validator/es/validator/object.mjs +14 -0
  232. package/dist/node_modules/@rc-component/async-validator/es/validator/pattern.mjs +14 -0
  233. package/dist/node_modules/@rc-component/async-validator/es/validator/regexp.mjs +14 -0
  234. package/dist/node_modules/@rc-component/async-validator/es/validator/required.mjs +9 -0
  235. package/dist/node_modules/@rc-component/async-validator/es/validator/string.mjs +14 -0
  236. package/dist/node_modules/@rc-component/async-validator/es/validator/type.mjs +14 -0
  237. package/dist/node_modules/@rc-component/color-picker/es/ColorPicker.mjs +103 -0
  238. package/dist/node_modules/@rc-component/color-picker/es/color.mjs +47 -0
  239. package/dist/node_modules/@rc-component/color-picker/es/components/ColorBlock.mjs +18 -0
  240. package/dist/node_modules/@rc-component/color-picker/es/components/Gradient.mjs +22 -0
  241. package/dist/node_modules/@rc-component/color-picker/es/components/Handler.mjs +15 -0
  242. package/dist/node_modules/@rc-component/color-picker/es/components/Palette.mjs +14 -0
  243. package/dist/node_modules/@rc-component/color-picker/es/components/Picker.mjs +58 -0
  244. package/dist/node_modules/@rc-component/color-picker/es/components/Slider.mjs +76 -0
  245. package/dist/node_modules/@rc-component/color-picker/es/components/Transform.mjs +17 -0
  246. package/dist/node_modules/@rc-component/color-picker/es/hooks/useColorDrag.mjs +41 -0
  247. package/dist/node_modules/@rc-component/color-picker/es/hooks/useColorState.mjs +17 -0
  248. package/dist/node_modules/@rc-component/color-picker/es/hooks/useComponent.mjs +11 -0
  249. package/dist/node_modules/@rc-component/color-picker/es/util.mjs +50 -0
  250. package/dist/node_modules/@rc-component/portal/es/Context.mjs +5 -0
  251. package/dist/node_modules/@rc-component/portal/es/Portal.mjs +45 -0
  252. package/dist/node_modules/@rc-component/portal/es/index.mjs +4 -0
  253. package/dist/node_modules/@rc-component/portal/es/mock.mjs +8 -0
  254. package/dist/node_modules/@rc-component/portal/es/useDom.mjs +37 -0
  255. package/dist/node_modules/@rc-component/portal/es/useScrollLocker.mjs +29 -0
  256. package/dist/node_modules/@rc-component/portal/es/util.mjs +6 -0
  257. package/dist/node_modules/@rc-component/trigger/es/Popup/Arrow.mjs +22 -0
  258. package/dist/node_modules/@rc-component/trigger/es/Popup/Mask.mjs +24 -0
  259. package/dist/node_modules/@rc-component/trigger/es/Popup/PopupContent.mjs +11 -0
  260. package/dist/node_modules/@rc-component/trigger/es/Popup/index.mjs +92 -0
  261. package/dist/node_modules/@rc-component/trigger/es/TriggerWrapper.mjs +14 -0
  262. package/dist/node_modules/@rc-component/trigger/es/context.mjs +5 -0
  263. package/dist/node_modules/@rc-component/trigger/es/hooks/useAction.mjs +13 -0
  264. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.mjs +187 -0
  265. package/dist/node_modules/@rc-component/trigger/es/hooks/useWatch.mjs +27 -0
  266. package/dist/node_modules/@rc-component/trigger/es/hooks/useWinClick.mjs +27 -0
  267. package/dist/node_modules/@rc-component/trigger/es/index.mjs +213 -0
  268. package/dist/node_modules/@rc-component/trigger/es/util.mjs +61 -0
  269. package/dist/node_modules/ahooks/es/createUpdateEffect/index.mjs +20 -0
  270. package/dist/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
  271. package/dist/node_modules/ahooks/es/useControllableValue/index.mjs +23 -0
  272. package/dist/node_modules/ahooks/es/useInterval/index.mjs +17 -0
  273. package/dist/node_modules/ahooks/es/useLatest/index.mjs +8 -0
  274. package/dist/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
  275. package/dist/node_modules/ahooks/es/useRafState/index.mjs +16 -0
  276. package/dist/node_modules/ahooks/es/useSetState/index.mjs +16 -0
  277. package/dist/node_modules/ahooks/es/useSize/index.mjs +34 -0
  278. package/dist/node_modules/ahooks/es/useThrottleFn/index.mjs +28 -0
  279. package/dist/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
  280. package/dist/node_modules/ahooks/es/useUpdate/index.mjs +12 -0
  281. package/dist/node_modules/ahooks/es/useUpdateEffect/index.mjs +6 -0
  282. package/dist/node_modules/ahooks/es/useUpdateLayoutEffect/index.mjs +6 -0
  283. package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
  284. package/dist/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
  285. package/dist/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
  286. package/dist/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +18 -0
  287. package/dist/node_modules/ahooks/es/utils/index.mjs +9 -0
  288. package/dist/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
  289. package/dist/node_modules/ahooks/es/utils/isDev.mjs +5 -0
  290. package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
  291. package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
  292. package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
  293. package/dist/node_modules/antd/es/_util/ActionButton.mjs +70 -0
  294. package/dist/node_modules/antd/es/_util/ContextIsolator.mjs +20 -0
  295. package/dist/node_modules/antd/es/_util/PurePanel.mjs +16 -0
  296. package/dist/node_modules/antd/es/_util/colors.mjs +9 -0
  297. package/dist/node_modules/antd/es/_util/hooks/useClosable.mjs +66 -0
  298. package/dist/node_modules/antd/es/_util/hooks/useForceUpdate.mjs +8 -0
  299. package/dist/node_modules/antd/es/_util/hooks/usePatchElement.mjs +11 -0
  300. package/dist/node_modules/antd/es/_util/hooks/useZIndex.mjs +45 -0
  301. package/dist/node_modules/antd/es/_util/motion.mjs +34 -0
  302. package/dist/node_modules/antd/es/_util/placements.mjs +150 -0
  303. package/dist/node_modules/antd/es/_util/reactNode.mjs +13 -0
  304. package/dist/node_modules/antd/es/_util/styleChecker.mjs +5 -0
  305. package/dist/node_modules/antd/es/_util/toList.mjs +6 -0
  306. package/dist/node_modules/antd/es/_util/warning.mjs +38 -0
  307. package/dist/node_modules/antd/es/_util/wave/WaveEffect.mjs +96 -0
  308. package/dist/node_modules/antd/es/_util/wave/index.mjs +40 -0
  309. package/dist/node_modules/antd/es/_util/wave/interface.mjs +6 -0
  310. package/dist/node_modules/antd/es/_util/wave/style.mjs +47 -0
  311. package/dist/node_modules/antd/es/_util/wave/useWave.mjs +38 -0
  312. package/dist/node_modules/antd/es/_util/wave/util.mjs +16 -0
  313. package/dist/node_modules/antd/es/_util/zindexContext.mjs +7 -0
  314. package/dist/node_modules/antd/es/button/IconWrapper.mjs +18 -0
  315. package/dist/node_modules/antd/es/button/LoadingIcon.mjs +70 -0
  316. package/dist/node_modules/antd/es/button/button-group.mjs +65 -0
  317. package/dist/node_modules/antd/es/button/button.mjs +177 -0
  318. package/dist/node_modules/antd/es/button/buttonHelpers.mjs +44 -0
  319. package/dist/node_modules/antd/es/button/index.mjs +4 -0
  320. package/dist/node_modules/antd/es/button/style/compactCmp.mjs +75 -0
  321. package/dist/node_modules/antd/es/button/style/group.mjs +70 -0
  322. package/dist/node_modules/antd/es/button/style/index.mjs +373 -0
  323. package/dist/node_modules/antd/es/button/style/token.mjs +81 -0
  324. package/dist/node_modules/antd/es/calendar/locale/en_US.mjs +4 -0
  325. package/dist/node_modules/antd/es/color-picker/color.mjs +96 -0
  326. package/dist/node_modules/antd/es/color-picker/components/ColorPresets.mjs +17 -0
  327. package/dist/node_modules/antd/es/config-provider/DisabledContext.mjs +15 -0
  328. package/dist/node_modules/antd/es/config-provider/MotionWrapper.mjs +32 -0
  329. package/dist/node_modules/antd/es/config-provider/PropWarning.mjs +13 -0
  330. package/dist/node_modules/antd/es/config-provider/SizeContext.mjs +15 -0
  331. package/dist/node_modules/antd/es/config-provider/context.mjs +11 -0
  332. package/dist/node_modules/antd/es/config-provider/cssVariables.mjs +39 -0
  333. package/dist/node_modules/antd/es/config-provider/hooks/useCSSVarCls.mjs +23 -0
  334. package/dist/node_modules/antd/es/config-provider/hooks/useConfig.mjs +13 -0
  335. package/dist/node_modules/antd/es/config-provider/hooks/useSize.mjs +9 -0
  336. package/dist/node_modules/antd/es/config-provider/hooks/useTheme.mjs +41 -0
  337. package/dist/node_modules/antd/es/config-provider/hooks/useThemeKey.mjs +7 -0
  338. package/dist/node_modules/antd/es/config-provider/index.mjs +327 -0
  339. package/dist/node_modules/antd/es/date-picker/locale/en_US.mjs +20 -0
  340. package/dist/node_modules/antd/es/form/context.mjs +23 -0
  341. package/dist/node_modules/antd/es/form/validateMessagesContext.mjs +5 -0
  342. package/dist/node_modules/antd/es/locale/context.mjs +5 -0
  343. package/dist/node_modules/antd/es/locale/en_US.mjs +146 -0
  344. package/dist/node_modules/antd/es/locale/index.mjs +28 -0
  345. package/dist/node_modules/antd/es/locale/useLocale.mjs +17 -0
  346. package/dist/node_modules/antd/es/modal/ConfirmDialog.mjs +175 -0
  347. package/dist/node_modules/antd/es/modal/Modal.mjs +137 -0
  348. package/dist/node_modules/antd/es/modal/PurePanel.mjs +60 -0
  349. package/dist/node_modules/antd/es/modal/components/ConfirmCancelBtn.mjs +29 -0
  350. package/dist/node_modules/antd/es/modal/components/ConfirmOkBtn.mjs +30 -0
  351. package/dist/node_modules/antd/es/modal/components/NormalCancelBtn.mjs +16 -0
  352. package/dist/node_modules/antd/es/modal/components/NormalOkBtn.mjs +20 -0
  353. package/dist/node_modules/antd/es/modal/confirm.mjs +122 -0
  354. package/dist/node_modules/antd/es/modal/context.mjs +8 -0
  355. package/dist/node_modules/antd/es/modal/destroyFns.mjs +4 -0
  356. package/dist/node_modules/antd/es/modal/index.mjs +37 -0
  357. package/dist/node_modules/antd/es/modal/locale.mjs +19 -0
  358. package/dist/node_modules/antd/es/modal/shared.mjs +51 -0
  359. package/dist/node_modules/antd/es/modal/style/confirm.mjs +113 -0
  360. package/dist/node_modules/antd/es/modal/style/index.mjs +292 -0
  361. package/dist/node_modules/antd/es/modal/useModal/HookModal.mjs +60 -0
  362. package/dist/node_modules/antd/es/modal/useModal/index.mjs +73 -0
  363. package/dist/node_modules/antd/es/progress/Circle.mjs +60 -0
  364. package/dist/node_modules/antd/es/progress/Line.mjs +109 -0
  365. package/dist/node_modules/antd/es/progress/Steps.mjs +38 -0
  366. package/dist/node_modules/antd/es/progress/index.mjs +4 -0
  367. package/dist/node_modules/antd/es/progress/progress.mjs +120 -0
  368. package/dist/node_modules/antd/es/progress/style/index.mjs +313 -0
  369. package/dist/node_modules/antd/es/progress/utils.mjs +51 -0
  370. package/dist/node_modules/antd/es/skeleton/Avatar.mjs +31 -0
  371. package/dist/node_modules/antd/es/skeleton/Button.mjs +31 -0
  372. package/dist/node_modules/antd/es/skeleton/Element.mjs +29 -0
  373. package/dist/node_modules/antd/es/skeleton/Image.mjs +34 -0
  374. package/dist/node_modules/antd/es/skeleton/Input.mjs +31 -0
  375. package/dist/node_modules/antd/es/skeleton/Node.mjs +28 -0
  376. package/dist/node_modules/antd/es/skeleton/Paragraph.mjs +35 -0
  377. package/dist/node_modules/antd/es/skeleton/Skeleton.mjs +108 -0
  378. package/dist/node_modules/antd/es/skeleton/Title.mjs +22 -0
  379. package/dist/node_modules/antd/es/skeleton/index.mjs +4 -0
  380. package/dist/node_modules/antd/es/skeleton/style/index.mjs +311 -0
  381. package/dist/node_modules/antd/es/slider/Context.mjs +5 -0
  382. package/dist/node_modules/antd/es/slider/SliderTooltip.mjs +30 -0
  383. package/dist/node_modules/antd/es/slider/index.mjs +153 -0
  384. package/dist/node_modules/antd/es/slider/style/index.mjs +325 -0
  385. package/dist/node_modules/antd/es/slider/useRafLock.mjs +15 -0
  386. package/dist/node_modules/antd/es/space/Compact.mjs +37 -0
  387. package/dist/node_modules/antd/es/style/compact-item-vertical.mjs +44 -0
  388. package/dist/node_modules/antd/es/style/compact-item.mjs +61 -0
  389. package/dist/node_modules/antd/es/style/index.mjs +125 -0
  390. package/dist/node_modules/antd/es/style/motion/collapse.mjs +20 -0
  391. package/dist/node_modules/antd/es/style/motion/fade.mjs +50 -0
  392. package/dist/node_modules/antd/es/style/motion/motion.mjs +35 -0
  393. package/dist/node_modules/antd/es/style/motion/zoom.mjs +195 -0
  394. package/dist/node_modules/antd/es/style/placementArrow.mjs +164 -0
  395. package/dist/node_modules/antd/es/style/roundedArrow.mjs +74 -0
  396. package/dist/node_modules/antd/es/table/ExpandIcon.mjs +29 -0
  397. package/dist/node_modules/antd/es/theme/context.mjs +25 -0
  398. package/dist/node_modules/antd/es/theme/getDesignToken.mjs +23 -0
  399. package/dist/node_modules/antd/es/theme/interface/presetColors.mjs +4 -0
  400. package/dist/node_modules/antd/es/theme/themes/compact/genCompactSizeMapToken.mjs +20 -0
  401. package/dist/node_modules/antd/es/theme/themes/compact/index.mjs +16 -0
  402. package/dist/node_modules/antd/es/theme/themes/dark/colorAlgorithm.mjs +6 -0
  403. package/dist/node_modules/antd/es/theme/themes/dark/colors.mjs +51 -0
  404. package/dist/node_modules/antd/es/theme/themes/dark/index.mjs +21 -0
  405. package/dist/node_modules/antd/es/theme/themes/default/colorAlgorithm.mjs +6 -0
  406. package/dist/node_modules/antd/es/theme/themes/default/colors.mjs +49 -0
  407. package/dist/node_modules/antd/es/theme/themes/default/index.mjs +23 -0
  408. package/dist/node_modules/antd/es/theme/themes/seed.mjs +69 -0
  409. package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.mjs +78 -0
  410. package/dist/node_modules/antd/es/theme/themes/shared/genCommonMapToken.mjs +20 -0
  411. package/dist/node_modules/antd/es/theme/themes/shared/genControlHeight.mjs +13 -0
  412. package/dist/node_modules/antd/es/theme/themes/shared/genFontMapToken.mjs +29 -0
  413. package/dist/node_modules/antd/es/theme/themes/shared/genFontSizes.mjs +17 -0
  414. package/dist/node_modules/antd/es/theme/themes/shared/genRadius.mjs +13 -0
  415. package/dist/node_modules/antd/es/theme/themes/shared/genSizeMapToken.mjs +29 -0
  416. package/dist/node_modules/antd/es/theme/useToken.mjs +118 -0
  417. package/dist/node_modules/antd/es/theme/util/alias.mjs +162 -0
  418. package/dist/node_modules/antd/es/theme/util/genPresetColor.mjs +15 -0
  419. package/dist/node_modules/antd/es/theme/util/genStyleUtils.mjs +50 -0
  420. package/dist/node_modules/antd/es/theme/util/getAlphaColor.mjs +38 -0
  421. package/dist/node_modules/antd/es/theme/util/useResetIconStyle.mjs +36 -0
  422. package/dist/node_modules/antd/es/time-picker/locale/en_US.mjs +7 -0
  423. package/dist/node_modules/antd/es/tooltip/PurePanel.mjs +33 -0
  424. package/dist/node_modules/antd/es/tooltip/index.mjs +148 -0
  425. package/dist/node_modules/antd/es/tooltip/style/index.mjs +139 -0
  426. package/dist/node_modules/antd/es/tooltip/util.mjs +15 -0
  427. package/dist/node_modules/antd/es/typography/hooks/useCopyClick.mjs +64 -0
  428. package/dist/node_modules/antd/es/upload/Dragger.mjs +32 -0
  429. package/dist/node_modules/antd/es/upload/Upload.mjs +304 -0
  430. package/dist/node_modules/antd/es/upload/UploadList/ListItem.mjs +156 -0
  431. package/dist/node_modules/antd/es/upload/UploadList/index.mjs +167 -0
  432. package/dist/node_modules/antd/es/upload/index.mjs +9 -0
  433. package/dist/node_modules/antd/es/upload/style/dragger.mjs +84 -0
  434. package/dist/node_modules/antd/es/upload/style/index.mjs +65 -0
  435. package/dist/node_modules/antd/es/upload/style/list.mjs +115 -0
  436. package/dist/node_modules/antd/es/upload/style/motion.mjs +54 -0
  437. package/dist/node_modules/antd/es/upload/style/picture.mjs +240 -0
  438. package/dist/node_modules/antd/es/upload/style/rtl.mjs +13 -0
  439. package/dist/node_modules/antd/es/upload/utils.mjs +79 -0
  440. package/dist/node_modules/antd/es/version/index.mjs +4 -0
  441. package/dist/node_modules/antd/es/version/version.mjs +4 -0
  442. package/dist/node_modules/antd/es/watermark/context.mjs +25 -0
  443. package/dist/node_modules/antd/lib/calendar/locale/en_US.mjs +11 -0
  444. package/dist/node_modules/antd/lib/date-picker/locale/en_US.mjs +28 -0
  445. package/dist/node_modules/antd/lib/locale/en_US.mjs +157 -0
  446. package/dist/node_modules/antd/lib/time-picker/locale/en_US.mjs +10 -0
  447. package/dist/node_modules/antd/locale/en_US.mjs +8 -0
  448. package/dist/node_modules/antd-img-crop/dist/antd-img-crop.esm.mjs +137 -0
  449. package/dist/node_modules/better-scroll/dist/better-scroll.esm.mjs +3670 -0
  450. package/dist/node_modules/classnames/index.mjs +42 -0
  451. package/dist/node_modules/clsx/dist/clsx.mjs +23 -0
  452. package/dist/node_modules/copy-to-clipboard/index.mjs +46 -0
  453. package/dist/node_modules/dayjs/dayjs.min.mjs +297 -0
  454. package/dist/node_modules/dayjs/locale/zh-cn.mjs +19 -0
  455. package/dist/node_modules/dayjs/plugin/isBetween.mjs +19 -0
  456. package/dist/node_modules/dayjs/plugin/isSameOrAfter.mjs +18 -0
  457. package/dist/node_modules/dayjs/plugin/isSameOrBefore.mjs +18 -0
  458. package/dist/node_modules/dayjs/plugin/isToday.mjs +19 -0
  459. package/dist/node_modules/dayjs/plugin/isoWeek.mjs +34 -0
  460. package/dist/node_modules/dayjs/plugin/objectSupport.mjs +49 -0
  461. package/dist/node_modules/dayjs/plugin/relativeTime.mjs +49 -0
  462. package/dist/node_modules/dayjs/plugin/utc.mjs +87 -0
  463. package/dist/node_modules/dayjs/plugin/weekOfYear.mjs +31 -0
  464. package/dist/node_modules/immer/dist/immer.mjs +473 -0
  465. package/dist/node_modules/lodash/_Symbol.mjs +5 -0
  466. package/dist/node_modules/lodash/_baseGetTag.mjs +11 -0
  467. package/dist/node_modules/lodash/_baseTrim.mjs +9 -0
  468. package/dist/node_modules/lodash/_freeGlobal.mjs +5 -0
  469. package/dist/node_modules/lodash/_getRawTag.mjs +16 -0
  470. package/dist/node_modules/lodash/_objectToString.mjs +8 -0
  471. package/dist/node_modules/lodash/_root.mjs +5 -0
  472. package/dist/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
  473. package/dist/node_modules/lodash/debounce.mjs +55 -0
  474. package/dist/node_modules/lodash/isObject.mjs +8 -0
  475. package/dist/node_modules/lodash/isObjectLike.mjs +7 -0
  476. package/dist/node_modules/lodash/isSymbol.mjs +10 -0
  477. package/dist/node_modules/lodash/now.mjs +7 -0
  478. package/dist/node_modules/lodash/throttle.mjs +19 -0
  479. package/dist/node_modules/lodash/toNumber.mjs +23 -0
  480. package/dist/node_modules/lodash-es/_DataView.mjs +7 -0
  481. package/dist/node_modules/lodash-es/_Hash.mjs +20 -0
  482. package/dist/node_modules/lodash-es/_ListCache.mjs +20 -0
  483. package/dist/node_modules/lodash-es/_Map.mjs +7 -0
  484. package/dist/node_modules/lodash-es/_MapCache.mjs +20 -0
  485. package/dist/node_modules/lodash-es/_Promise.mjs +7 -0
  486. package/dist/node_modules/lodash-es/_Set.mjs +7 -0
  487. package/dist/node_modules/lodash-es/_Stack.mjs +18 -0
  488. package/dist/node_modules/lodash-es/_Symbol.mjs +6 -0
  489. package/dist/node_modules/lodash-es/_Uint8Array.mjs +6 -0
  490. package/dist/node_modules/lodash-es/_WeakMap.mjs +7 -0
  491. package/dist/node_modules/lodash-es/_apply.mjs +16 -0
  492. package/dist/node_modules/lodash-es/_arrayEach.mjs +8 -0
  493. package/dist/node_modules/lodash-es/_arrayFilter.mjs +10 -0
  494. package/dist/node_modules/lodash-es/_arrayLikeKeys.mjs +20 -0
  495. package/dist/node_modules/lodash-es/_arrayMap.mjs +8 -0
  496. package/dist/node_modules/lodash-es/_arrayPush.mjs +8 -0
  497. package/dist/node_modules/lodash-es/_assignMergeValue.mjs +8 -0
  498. package/dist/node_modules/lodash-es/_assignValue.mjs +10 -0
  499. package/dist/node_modules/lodash-es/_assocIndexOf.mjs +10 -0
  500. package/dist/node_modules/lodash-es/_baseAssign.mjs +8 -0
  501. package/dist/node_modules/lodash-es/_baseAssignIn.mjs +8 -0
  502. package/dist/node_modules/lodash-es/_baseAssignValue.mjs +12 -0
  503. package/dist/node_modules/lodash-es/_baseAt.mjs +9 -0
  504. package/dist/node_modules/lodash-es/_baseClone.mjs +65 -0
  505. package/dist/node_modules/lodash-es/_baseCreate.mjs +18 -0
  506. package/dist/node_modules/lodash-es/_baseFlatten.mjs +13 -0
  507. package/dist/node_modules/lodash-es/_baseFor.mjs +6 -0
  508. package/dist/node_modules/lodash-es/_baseGet.mjs +11 -0
  509. package/dist/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
  510. package/dist/node_modules/lodash-es/_baseGetTag.mjs +10 -0
  511. package/dist/node_modules/lodash-es/_baseIsArguments.mjs +9 -0
  512. package/dist/node_modules/lodash-es/_baseIsMap.mjs +9 -0
  513. package/dist/node_modules/lodash-es/_baseIsNative.mjs +16 -0
  514. package/dist/node_modules/lodash-es/_baseIsSet.mjs +9 -0
  515. package/dist/node_modules/lodash-es/_baseIsTypedArray.mjs +12 -0
  516. package/dist/node_modules/lodash-es/_baseKeys.mjs +14 -0
  517. package/dist/node_modules/lodash-es/_baseKeysIn.mjs +15 -0
  518. package/dist/node_modules/lodash-es/_baseMerge.mjs +20 -0
  519. package/dist/node_modules/lodash-es/_baseMergeDeep.mjs +31 -0
  520. package/dist/node_modules/lodash-es/_baseRest.mjs +9 -0
  521. package/dist/node_modules/lodash-es/_baseSetToString.mjs +15 -0
  522. package/dist/node_modules/lodash-es/_baseSlice.mjs +10 -0
  523. package/dist/node_modules/lodash-es/_baseTimes.mjs +8 -0
  524. package/dist/node_modules/lodash-es/_baseToString.mjs +18 -0
  525. package/dist/node_modules/lodash-es/_baseUnary.mjs +8 -0
  526. package/dist/node_modules/lodash-es/_baseUnset.mjs +10 -0
  527. package/dist/node_modules/lodash-es/_castPath.mjs +10 -0
  528. package/dist/node_modules/lodash-es/_cloneArrayBuffer.mjs +8 -0
  529. package/dist/node_modules/lodash-es/_cloneBuffer.mjs +11 -0
  530. package/dist/node_modules/lodash-es/_cloneDataView.mjs +8 -0
  531. package/dist/node_modules/lodash-es/_cloneRegExp.mjs +8 -0
  532. package/dist/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
  533. package/dist/node_modules/lodash-es/_cloneTypedArray.mjs +8 -0
  534. package/dist/node_modules/lodash-es/_copyArray.mjs +9 -0
  535. package/dist/node_modules/lodash-es/_copyObject.mjs +14 -0
  536. package/dist/node_modules/lodash-es/_copySymbols.mjs +8 -0
  537. package/dist/node_modules/lodash-es/_copySymbolsIn.mjs +8 -0
  538. package/dist/node_modules/lodash-es/_coreJsData.mjs +6 -0
  539. package/dist/node_modules/lodash-es/_createAssigner.mjs +15 -0
  540. package/dist/node_modules/lodash-es/_createBaseFor.mjs +13 -0
  541. package/dist/node_modules/lodash-es/_customOmitClone.mjs +7 -0
  542. package/dist/node_modules/lodash-es/_defineProperty.mjs +12 -0
  543. package/dist/node_modules/lodash-es/_flatRest.mjs +9 -0
  544. package/dist/node_modules/lodash-es/_freeGlobal.mjs +5 -0
  545. package/dist/node_modules/lodash-es/_getAllKeys.mjs +9 -0
  546. package/dist/node_modules/lodash-es/_getAllKeysIn.mjs +9 -0
  547. package/dist/node_modules/lodash-es/_getMapData.mjs +8 -0
  548. package/dist/node_modules/lodash-es/_getNative.mjs +9 -0
  549. package/dist/node_modules/lodash-es/_getPrototype.mjs +6 -0
  550. package/dist/node_modules/lodash-es/_getRawTag.mjs +15 -0
  551. package/dist/node_modules/lodash-es/_getSymbols.mjs +11 -0
  552. package/dist/node_modules/lodash-es/_getSymbolsIn.mjs +13 -0
  553. package/dist/node_modules/lodash-es/_getTag.mjs +29 -0
  554. package/dist/node_modules/lodash-es/_getValue.mjs +6 -0
  555. package/dist/node_modules/lodash-es/_hashClear.mjs +7 -0
  556. package/dist/node_modules/lodash-es/_hashDelete.mjs +7 -0
  557. package/dist/node_modules/lodash-es/_hashGet.mjs +13 -0
  558. package/dist/node_modules/lodash-es/_hashHas.mjs +9 -0
  559. package/dist/node_modules/lodash-es/_hashSet.mjs +9 -0
  560. package/dist/node_modules/lodash-es/_initCloneArray.mjs +8 -0
  561. package/dist/node_modules/lodash-es/_initCloneByTag.mjs +42 -0
  562. package/dist/node_modules/lodash-es/_initCloneObject.mjs +9 -0
  563. package/dist/node_modules/lodash-es/_isFlattenable.mjs +10 -0
  564. package/dist/node_modules/lodash-es/_isIndex.mjs +8 -0
  565. package/dist/node_modules/lodash-es/_isIterateeCall.mjs +13 -0
  566. package/dist/node_modules/lodash-es/_isKey.mjs +12 -0
  567. package/dist/node_modules/lodash-es/_isKeyable.mjs +7 -0
  568. package/dist/node_modules/lodash-es/_isMasked.mjs +11 -0
  569. package/dist/node_modules/lodash-es/_isPrototype.mjs +8 -0
  570. package/dist/node_modules/lodash-es/_listCacheClear.mjs +6 -0
  571. package/dist/node_modules/lodash-es/_listCacheDelete.mjs +12 -0
  572. package/dist/node_modules/lodash-es/_listCacheGet.mjs +8 -0
  573. package/dist/node_modules/lodash-es/_listCacheHas.mjs +7 -0
  574. package/dist/node_modules/lodash-es/_listCacheSet.mjs +8 -0
  575. package/dist/node_modules/lodash-es/_mapCacheClear.mjs +13 -0
  576. package/dist/node_modules/lodash-es/_mapCacheDelete.mjs +8 -0
  577. package/dist/node_modules/lodash-es/_mapCacheGet.mjs +7 -0
  578. package/dist/node_modules/lodash-es/_mapCacheHas.mjs +7 -0
  579. package/dist/node_modules/lodash-es/_mapCacheSet.mjs +8 -0
  580. package/dist/node_modules/lodash-es/_memoizeCapped.mjs +11 -0
  581. package/dist/node_modules/lodash-es/_nativeCreate.mjs +6 -0
  582. package/dist/node_modules/lodash-es/_nativeKeys.mjs +6 -0
  583. package/dist/node_modules/lodash-es/_nativeKeysIn.mjs +10 -0
  584. package/dist/node_modules/lodash-es/_nodeUtil.mjs +12 -0
  585. package/dist/node_modules/lodash-es/_objectToString.mjs +7 -0
  586. package/dist/node_modules/lodash-es/_overArg.mjs +8 -0
  587. package/dist/node_modules/lodash-es/_overRest.mjs +15 -0
  588. package/dist/node_modules/lodash-es/_parent.mjs +8 -0
  589. package/dist/node_modules/lodash-es/_root.mjs +6 -0
  590. package/dist/node_modules/lodash-es/_safeGet.mjs +7 -0
  591. package/dist/node_modules/lodash-es/_setToString.mjs +7 -0
  592. package/dist/node_modules/lodash-es/_shortOut.mjs +16 -0
  593. package/dist/node_modules/lodash-es/_stackClear.mjs +7 -0
  594. package/dist/node_modules/lodash-es/_stackDelete.mjs +7 -0
  595. package/dist/node_modules/lodash-es/_stackGet.mjs +6 -0
  596. package/dist/node_modules/lodash-es/_stackHas.mjs +6 -0
  597. package/dist/node_modules/lodash-es/_stackSet.mjs +17 -0
  598. package/dist/node_modules/lodash-es/_stringToPath.mjs +11 -0
  599. package/dist/node_modules/lodash-es/_toKey.mjs +11 -0
  600. package/dist/node_modules/lodash-es/_toSource.mjs +17 -0
  601. package/dist/node_modules/lodash-es/at.mjs +7 -0
  602. package/dist/node_modules/lodash-es/constant.mjs +8 -0
  603. package/dist/node_modules/lodash-es/eq.mjs +6 -0
  604. package/dist/node_modules/lodash-es/flatten.mjs +8 -0
  605. package/dist/node_modules/lodash-es/get.mjs +8 -0
  606. package/dist/node_modules/lodash-es/identity.mjs +6 -0
  607. package/dist/node_modules/lodash-es/isArguments.mjs +11 -0
  608. package/dist/node_modules/lodash-es/isArray.mjs +5 -0
  609. package/dist/node_modules/lodash-es/isArrayLike.mjs +8 -0
  610. package/dist/node_modules/lodash-es/isArrayLikeObject.mjs +8 -0
  611. package/dist/node_modules/lodash-es/isBoolean.mjs +9 -0
  612. package/dist/node_modules/lodash-es/isBuffer.mjs +7 -0
  613. package/dist/node_modules/lodash-es/isFunction.mjs +12 -0
  614. package/dist/node_modules/lodash-es/isLength.mjs +7 -0
  615. package/dist/node_modules/lodash-es/isMap.mjs +8 -0
  616. package/dist/node_modules/lodash-es/isObject.mjs +7 -0
  617. package/dist/node_modules/lodash-es/isObjectLike.mjs +6 -0
  618. package/dist/node_modules/lodash-es/isPlainObject.mjs +16 -0
  619. package/dist/node_modules/lodash-es/isSet.mjs +8 -0
  620. package/dist/node_modules/lodash-es/isSymbol.mjs +9 -0
  621. package/dist/node_modules/lodash-es/isTypedArray.mjs +8 -0
  622. package/dist/node_modules/lodash-es/keys.mjs +9 -0
  623. package/dist/node_modules/lodash-es/keysIn.mjs +9 -0
  624. package/dist/node_modules/lodash-es/last.mjs +7 -0
  625. package/dist/node_modules/lodash-es/memoize.mjs +18 -0
  626. package/dist/node_modules/lodash-es/merge.mjs +9 -0
  627. package/dist/node_modules/lodash-es/omit.mjs +24 -0
  628. package/dist/node_modules/lodash-es/stubArray.mjs +6 -0
  629. package/dist/node_modules/lodash-es/stubFalse.mjs +6 -0
  630. package/dist/node_modules/lodash-es/toPlainObject.mjs +8 -0
  631. package/dist/node_modules/lodash-es/toString.mjs +7 -0
  632. package/dist/node_modules/normalize-wheel/index.mjs +7 -0
  633. package/dist/node_modules/normalize-wheel/src/ExecutionEnvironment.mjs +11 -0
  634. package/dist/node_modules/normalize-wheel/src/UserAgent_DEPRECATED.mjs +142 -0
  635. package/dist/node_modules/normalize-wheel/src/isEventSupported.mjs +33 -0
  636. package/dist/node_modules/normalize-wheel/src/normalizeWheel.mjs +19 -0
  637. package/dist/node_modules/object-assign/index.mjs +55 -0
  638. package/dist/node_modules/preact/compat/dist/compat.module.mjs +202 -0
  639. package/dist/node_modules/preact/dist/preact.module.mjs +343 -0
  640. package/dist/node_modules/preact/hooks/dist/hooks.module.mjs +63 -0
  641. package/dist/node_modules/prop-types/checkPropTypes.mjs +55 -0
  642. package/dist/node_modules/prop-types/factoryWithThrowingShims.mjs +53 -0
  643. package/dist/node_modules/prop-types/factoryWithTypeCheckers.mjs +330 -0
  644. package/dist/node_modules/prop-types/index.mjs +16 -0
  645. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +11 -0
  646. package/dist/node_modules/prop-types/lib/has.mjs +7 -0
  647. package/dist/node_modules/rc-dialog/es/Dialog/Content/MemoChildren.mjs +11 -0
  648. package/dist/node_modules/rc-dialog/es/Dialog/Content/Panel.mjs +93 -0
  649. package/dist/node_modules/rc-dialog/es/Dialog/Content/index.mjs +43 -0
  650. package/dist/node_modules/rc-dialog/es/Dialog/Mask.mjs +25 -0
  651. package/dist/node_modules/rc-dialog/es/Dialog/index.mjs +114 -0
  652. package/dist/node_modules/rc-dialog/es/DialogWrap.mjs +32 -0
  653. package/dist/node_modules/rc-dialog/es/context.mjs +5 -0
  654. package/dist/node_modules/rc-dialog/es/index.mjs +6 -0
  655. package/dist/node_modules/rc-dialog/es/util.mjs +23 -0
  656. package/dist/node_modules/rc-field-form/es/Field.mjs +300 -0
  657. package/dist/node_modules/rc-field-form/es/FieldContext.mjs +41 -0
  658. package/dist/node_modules/rc-field-form/es/Form.mjs +78 -0
  659. package/dist/node_modules/rc-field-form/es/FormContext.mjs +46 -0
  660. package/dist/node_modules/rc-field-form/es/List.mjs +82 -0
  661. package/dist/node_modules/rc-field-form/es/ListContext.mjs +5 -0
  662. package/dist/node_modules/rc-field-form/es/index.mjs +22 -0
  663. package/dist/node_modules/rc-field-form/es/useForm.mjs +541 -0
  664. package/dist/node_modules/rc-field-form/es/useWatch.mjs +53 -0
  665. package/dist/node_modules/rc-field-form/es/utils/NameMap.mjs +66 -0
  666. package/dist/node_modules/rc-field-form/es/utils/asyncUtil.mjs +15 -0
  667. package/dist/node_modules/rc-field-form/es/utils/messages.mjs +50 -0
  668. package/dist/node_modules/rc-field-form/es/utils/typeUtil.mjs +10 -0
  669. package/dist/node_modules/rc-field-form/es/utils/validateUtil.mjs +203 -0
  670. package/dist/node_modules/rc-field-form/es/utils/valueUtil.mjs +60 -0
  671. package/dist/node_modules/rc-motion/es/CSSMotion.mjs +73 -0
  672. package/dist/node_modules/rc-motion/es/CSSMotionList.mjs +95 -0
  673. package/dist/node_modules/rc-motion/es/DomWrapper.mjs +21 -0
  674. package/dist/node_modules/rc-motion/es/context.mjs +13 -0
  675. package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.mjs +20 -0
  676. package/dist/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.mjs +6 -0
  677. package/dist/node_modules/rc-motion/es/hooks/useNextFrame.mjs +28 -0
  678. package/dist/node_modules/rc-motion/es/hooks/useStatus.mjs +91 -0
  679. package/dist/node_modules/rc-motion/es/hooks/useStepQueue.mjs +38 -0
  680. package/dist/node_modules/rc-motion/es/index.mjs +7 -0
  681. package/dist/node_modules/rc-motion/es/interface.mjs +13 -0
  682. package/dist/node_modules/rc-motion/es/util/diff.mjs +65 -0
  683. package/dist/node_modules/rc-motion/es/util/motion.mjs +51 -0
  684. package/dist/node_modules/rc-pagination/es/locale/en_US.mjs +18 -0
  685. package/dist/node_modules/rc-pagination/lib/locale/en_US.mjs +21 -0
  686. package/dist/node_modules/rc-picker/es/locale/common.mjs +9 -0
  687. package/dist/node_modules/rc-picker/es/locale/en_US.mjs +31 -0
  688. package/dist/node_modules/rc-picker/lib/locale/common.mjs +14 -0
  689. package/dist/node_modules/rc-picker/lib/locale/en_US.mjs +37 -0
  690. package/dist/node_modules/rc-progress/es/Circle/PtgCircle.mjs +52 -0
  691. package/dist/node_modules/rc-progress/es/Circle/index.mjs +83 -0
  692. package/dist/node_modules/rc-progress/es/Circle/util.mjs +23 -0
  693. package/dist/node_modules/rc-progress/es/Line.mjs +3 -0
  694. package/dist/node_modules/rc-progress/es/common.mjs +27 -0
  695. package/dist/node_modules/rc-progress/es/hooks/useId.mjs +18 -0
  696. package/dist/node_modules/rc-resize-observer/es/Collection.mjs +22 -0
  697. package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.mjs +21 -0
  698. package/dist/node_modules/rc-resize-observer/es/SingleObserver/index.mjs +59 -0
  699. package/dist/node_modules/rc-resize-observer/es/index.mjs +24 -0
  700. package/dist/node_modules/rc-resize-observer/es/utils/observerUtil.mjs +23 -0
  701. package/dist/node_modules/rc-slider/es/Handles/Handle.mjs +103 -0
  702. package/dist/node_modules/rc-slider/es/Handles/index.mjs +69 -0
  703. package/dist/node_modules/rc-slider/es/Marks/Mark.mjs +22 -0
  704. package/dist/node_modules/rc-slider/es/Marks/index.mjs +20 -0
  705. package/dist/node_modules/rc-slider/es/Slider.mjs +225 -0
  706. package/dist/node_modules/rc-slider/es/Steps/Dot.mjs +16 -0
  707. package/dist/node_modules/rc-slider/es/Steps/index.mjs +28 -0
  708. package/dist/node_modules/rc-slider/es/Tracks/Track.mjs +34 -0
  709. package/dist/node_modules/rc-slider/es/Tracks/index.mjs +50 -0
  710. package/dist/node_modules/rc-slider/es/context.mjs +17 -0
  711. package/dist/node_modules/rc-slider/es/hooks/useDrag.mjs +104 -0
  712. package/dist/node_modules/rc-slider/es/hooks/useOffset.mjs +104 -0
  713. package/dist/node_modules/rc-slider/es/hooks/useRange.mjs +13 -0
  714. package/dist/node_modules/rc-slider/es/index.mjs +5 -0
  715. package/dist/node_modules/rc-slider/es/util.mjs +29 -0
  716. package/dist/node_modules/rc-tooltip/es/Popup.mjs +17 -0
  717. package/dist/node_modules/rc-tooltip/es/Tooltip.mjs +52 -0
  718. package/dist/node_modules/rc-tooltip/es/index.mjs +6 -0
  719. package/dist/node_modules/rc-tooltip/es/placements.mjs +84 -0
  720. package/dist/node_modules/rc-upload/es/AjaxUploader.mjs +284 -0
  721. package/dist/node_modules/rc-upload/es/Upload.mjs +57 -0
  722. package/dist/node_modules/rc-upload/es/attr-accept.mjs +22 -0
  723. package/dist/node_modules/rc-upload/es/index.mjs +4 -0
  724. package/dist/node_modules/rc-upload/es/request.mjs +46 -0
  725. package/dist/node_modules/rc-upload/es/traverseFileTree.mjs +137 -0
  726. package/dist/node_modules/rc-upload/es/uid.mjs +7 -0
  727. package/dist/node_modules/rc-util/es/Children/toArray.mjs +11 -0
  728. package/dist/node_modules/rc-util/es/Dom/canUseDom.mjs +6 -0
  729. package/dist/node_modules/rc-util/es/Dom/contains.mjs +15 -0
  730. package/dist/node_modules/rc-util/es/Dom/dynamicCSS.mjs +87 -0
  731. package/dist/node_modules/rc-util/es/Dom/findDOMNode.mjs +24 -0
  732. package/dist/node_modules/rc-util/es/Dom/isVisible.mjs +22 -0
  733. package/dist/node_modules/rc-util/es/Dom/shadow.mjs +14 -0
  734. package/dist/node_modules/rc-util/es/KeyCode.mjs +517 -0
  735. package/dist/node_modules/rc-util/es/React/render.mjs +81 -0
  736. package/dist/node_modules/rc-util/es/getScrollBarSize.mjs +38 -0
  737. package/dist/node_modules/rc-util/es/hooks/useEvent.mjs +14 -0
  738. package/dist/node_modules/rc-util/es/hooks/useId.mjs +27 -0
  739. package/dist/node_modules/rc-util/es/hooks/useLayoutEffect.mjs +21 -0
  740. package/dist/node_modules/rc-util/es/hooks/useMemo.mjs +8 -0
  741. package/dist/node_modules/rc-util/es/hooks/useMergedState.mjs +25 -0
  742. package/dist/node_modules/rc-util/es/hooks/useState.mjs +17 -0
  743. package/dist/node_modules/rc-util/es/hooks/useSyncState.mjs +16 -0
  744. package/dist/node_modules/rc-util/es/isEqual.mjs +35 -0
  745. package/dist/node_modules/rc-util/es/isMobile.mjs +9 -0
  746. package/dist/node_modules/rc-util/es/omit.mjs +9 -0
  747. package/dist/node_modules/rc-util/es/pickAttrs.mjs +42 -0
  748. package/dist/node_modules/rc-util/es/raf.mjs +40 -0
  749. package/dist/node_modules/rc-util/es/ref.mjs +39 -0
  750. package/dist/node_modules/rc-util/es/utils/get.mjs +11 -0
  751. package/dist/node_modules/rc-util/es/utils/set.mjs +47 -0
  752. package/dist/node_modules/rc-util/es/warning.mjs +44 -0
  753. package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.mjs +103 -0
  754. package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.mjs +82 -0
  755. package/dist/node_modules/rc-util/node_modules/react-is/index.mjs +8 -0
  756. package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs +616 -0
  757. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +32 -0
  758. package/dist/node_modules/react/jsx-runtime.mjs +8 -0
  759. package/dist/node_modules/react-device-detect/dist/lib.mjs +721 -0
  760. package/dist/node_modules/react-dom/client.mjs +26 -0
  761. package/dist/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
  762. package/dist/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
  763. package/dist/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
  764. package/dist/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
  765. package/dist/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
  766. package/dist/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
  767. package/dist/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
  768. package/dist/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
  769. package/dist/node_modules/react-draggable/node_modules/clsx/dist/clsx.m.mjs +22 -0
  770. package/dist/node_modules/react-easy-crop/index.module.mjs +543 -0
  771. package/dist/node_modules/react-i18next/dist/es/context.mjs +19 -0
  772. package/dist/node_modules/react-i18next/dist/es/defaults.mjs +17 -0
  773. package/dist/node_modules/react-i18next/dist/es/i18nInstance.mjs +7 -0
  774. package/dist/node_modules/react-i18next/dist/es/unescape.mjs +25 -0
  775. package/dist/node_modules/react-i18next/dist/es/useTranslation.mjs +74 -0
  776. package/dist/node_modules/react-i18next/dist/es/utils.mjs +61 -0
  777. package/dist/node_modules/react-is/cjs/react-is.development.mjs +95 -0
  778. package/dist/node_modules/react-is/cjs/react-is.production.min.mjs +79 -0
  779. package/dist/node_modules/react-is/index.mjs +10 -0
  780. package/dist/node_modules/react-resizable/build/Resizable.mjs +201 -0
  781. package/dist/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
  782. package/dist/node_modules/react-resizable/build/propTypes.mjs +118 -0
  783. package/dist/node_modules/react-resizable/build/utils.mjs +54 -0
  784. package/dist/node_modules/react-resizable/index.mjs +13 -0
  785. package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +290 -0
  786. package/dist/node_modules/screenfull/index.mjs +122 -0
  787. package/dist/node_modules/stylis/src/Enum.mjs +12 -0
  788. package/dist/node_modules/stylis/src/Middleware.mjs +18 -0
  789. package/dist/node_modules/stylis/src/Parser.mjs +114 -0
  790. package/dist/node_modules/stylis/src/Serializer.mjs +28 -0
  791. package/dist/node_modules/stylis/src/Tokenizer.mjs +131 -0
  792. package/dist/node_modules/stylis/src/Utility.mjs +50 -0
  793. package/dist/node_modules/throttle-debounce/esm/index.mjs +35 -0
  794. package/dist/node_modules/toggle-selection/index.mjs +25 -0
  795. package/dist/node_modules/tslib/tslib.es6.mjs +97 -0
  796. package/dist/node_modules/ua-parser-js/dist/ua-parser.min.mjs +86 -0
  797. package/dist/node_modules/use-immer/dist/use-immer.module.mjs +13 -0
  798. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +61 -0
  799. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +60 -0
  800. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +85 -0
  801. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +50 -0
  802. package/dist/node_modules/use-sync-external-store/shim/index.mjs +10 -0
  803. package/dist/node_modules/use-sync-external-store/shim/with-selector.mjs +10 -0
  804. package/dist/node_modules/zustand/esm/index.mjs +24 -0
  805. package/dist/node_modules/zustand/esm/vanilla.mjs +16 -0
  806. package/dist/style.css +1 -1
  807. package/dist/utils/WithFluent.mjs +13 -13
  808. package/package.json +1 -1
@@ -0,0 +1,4823 @@
1
+ import { options as Se, render as fn, createElement as g, Component as pe, createContext as hn, isValidElement as gn, Fragment as me } from "../../preact/dist/preact.module.mjs";
2
+ import { createPortal as pn } from "../../preact/compat/dist/compat.module.mjs";
3
+ const St = [], _e = /* @__PURE__ */ new Map();
4
+ function mn(t) {
5
+ St.push(t), _e.forEach((e) => {
6
+ kt(e, t);
7
+ });
8
+ }
9
+ function ws(t) {
10
+ t.isConnected && // sometimes true if SSR system simulates DOM
11
+ t.getRootNode && wt(t.getRootNode());
12
+ }
13
+ function wt(t) {
14
+ let e = _e.get(t);
15
+ if (!e || !e.isConnected) {
16
+ if (e = t.querySelector("style[data-fullcalendar]"), !e) {
17
+ e = document.createElement("style"), e.setAttribute("data-fullcalendar", "");
18
+ const n = vn();
19
+ n && (e.nonce = n);
20
+ const r = t === document ? document.head : t, i = t === document ? r.querySelector("script,link[rel=stylesheet],link[as=style],style") : r.firstChild;
21
+ r.insertBefore(e, i);
22
+ }
23
+ _e.set(t, e), An(e);
24
+ }
25
+ }
26
+ function An(t) {
27
+ for (const e of St)
28
+ kt(t, e);
29
+ }
30
+ function kt(t, e) {
31
+ const { sheet: n } = t, r = n.cssRules.length;
32
+ e.split("}").forEach((i, s) => {
33
+ i = i.trim(), i && n.insertRule(i + "}", r + s);
34
+ });
35
+ }
36
+ let we;
37
+ function vn() {
38
+ return we === void 0 && (we = bn()), we;
39
+ }
40
+ function bn() {
41
+ const t = document.querySelector('meta[name="csp-nonce"]');
42
+ if (t && t.hasAttribute("content"))
43
+ return t.getAttribute("content");
44
+ const e = document.querySelector("script[nonce]");
45
+ return e && e.nonce || "";
46
+ }
47
+ typeof document < "u" && wt(document);
48
+ var yn = ':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';
49
+ mn(yn);
50
+ class ks {
51
+ constructor(e) {
52
+ this.drainedOption = e, this.isRunning = !1, this.isDirty = !1, this.pauseDepths = {}, this.timeoutId = 0;
53
+ }
54
+ request(e) {
55
+ this.isDirty = !0, this.isPaused() || (this.clearTimeout(), e == null ? this.tryDrain() : this.timeoutId = setTimeout(
56
+ // NOT OPTIMAL! TODO: look at debounce
57
+ this.tryDrain.bind(this),
58
+ e
59
+ ));
60
+ }
61
+ pause(e = "") {
62
+ let { pauseDepths: n } = this;
63
+ n[e] = (n[e] || 0) + 1, this.clearTimeout();
64
+ }
65
+ resume(e = "", n) {
66
+ let { pauseDepths: r } = this;
67
+ e in r && (n ? delete r[e] : (r[e] -= 1, r[e] <= 0 && delete r[e]), this.tryDrain());
68
+ }
69
+ isPaused() {
70
+ return Object.keys(this.pauseDepths).length;
71
+ }
72
+ tryDrain() {
73
+ if (!this.isRunning && !this.isPaused()) {
74
+ for (this.isRunning = !0; this.isDirty; )
75
+ this.isDirty = !1, this.drained();
76
+ this.isRunning = !1;
77
+ }
78
+ }
79
+ clear() {
80
+ this.clearTimeout(), this.isDirty = !1, this.pauseDepths = {};
81
+ }
82
+ clearTimeout() {
83
+ this.timeoutId && (clearTimeout(this.timeoutId), this.timeoutId = 0);
84
+ }
85
+ drained() {
86
+ this.drainedOption && this.drainedOption();
87
+ }
88
+ }
89
+ function Rt(t) {
90
+ t.parentNode && t.parentNode.removeChild(t);
91
+ }
92
+ function I(t, e) {
93
+ if (t.closest)
94
+ return t.closest(e);
95
+ if (!document.documentElement.contains(t))
96
+ return null;
97
+ do {
98
+ if (En(t, e))
99
+ return t;
100
+ t = t.parentElement || t.parentNode;
101
+ } while (t !== null && t.nodeType === 1);
102
+ return null;
103
+ }
104
+ function En(t, e) {
105
+ return (t.matches || t.matchesSelector || t.msMatchesSelector).call(t, e);
106
+ }
107
+ function Dn(t, e) {
108
+ let n = t instanceof HTMLElement ? [t] : t, r = [];
109
+ for (let i = 0; i < n.length; i += 1) {
110
+ let s = n[i].querySelectorAll(e);
111
+ for (let l = 0; l < s.length; l += 1)
112
+ r.push(s[l]);
113
+ }
114
+ return r;
115
+ }
116
+ const Cn = /(top|left|right|bottom|width|height)$/i;
117
+ function Mt(t, e) {
118
+ for (let n in e)
119
+ Sn(t, n, e[n]);
120
+ }
121
+ function Sn(t, e, n) {
122
+ n == null ? t.style[e] = "" : typeof n == "number" && Cn.test(e) ? t.style[e] = `${n}px` : t.style[e] = n;
123
+ }
124
+ function wn(t) {
125
+ var e, n;
126
+ return (n = (e = t.composedPath) === null || e === void 0 ? void 0 : e.call(t)[0]) !== null && n !== void 0 ? n : t.target;
127
+ }
128
+ let Ke = 0;
129
+ function Tt() {
130
+ return Ke += 1, "fc-dom-" + Ke;
131
+ }
132
+ function Ae(t) {
133
+ t.preventDefault();
134
+ }
135
+ function kn(t, e) {
136
+ return (n) => {
137
+ let r = I(n.target, t);
138
+ r && e.call(r, n, r);
139
+ };
140
+ }
141
+ function Rn(t, e, n, r) {
142
+ let i = kn(n, r);
143
+ return t.addEventListener(e, i), () => {
144
+ t.removeEventListener(e, i);
145
+ };
146
+ }
147
+ function Rs(t, e, n, r) {
148
+ let i;
149
+ return Rn(t, "mouseover", e, (s, l) => {
150
+ if (l !== i) {
151
+ i = l, n(s, l);
152
+ let a = (o) => {
153
+ i = null, r(o, l), l.removeEventListener("mouseleave", a);
154
+ };
155
+ l.addEventListener("mouseleave", a);
156
+ }
157
+ });
158
+ }
159
+ const et = [
160
+ "webkitTransitionEnd",
161
+ "otransitionend",
162
+ "oTransitionEnd",
163
+ "msTransitionEnd",
164
+ "transitionend"
165
+ ];
166
+ function Ms(t, e) {
167
+ let n = (r) => {
168
+ e(r), et.forEach((i) => {
169
+ t.removeEventListener(i, n);
170
+ });
171
+ };
172
+ et.forEach((r) => {
173
+ t.addEventListener(r, n);
174
+ });
175
+ }
176
+ function It(t) {
177
+ return Object.assign({ onClick: t }, Nt(t));
178
+ }
179
+ function Nt(t) {
180
+ return {
181
+ tabIndex: 0,
182
+ onKeyDown(e) {
183
+ (e.key === "Enter" || e.key === " ") && (t(e), e.preventDefault());
184
+ }
185
+ };
186
+ }
187
+ let tt = 0;
188
+ function $() {
189
+ return tt += 1, String(tt);
190
+ }
191
+ function Ts() {
192
+ document.body.classList.add("fc-not-allowed");
193
+ }
194
+ function Is() {
195
+ document.body.classList.remove("fc-not-allowed");
196
+ }
197
+ function Ns(t) {
198
+ t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.addEventListener("selectstart", Ae);
199
+ }
200
+ function Os(t) {
201
+ t.style.userSelect = "", t.style.webkitUserSelect = "", t.removeEventListener("selectstart", Ae);
202
+ }
203
+ function Bs(t) {
204
+ t.addEventListener("contextmenu", Ae);
205
+ }
206
+ function xs(t) {
207
+ t.removeEventListener("contextmenu", Ae);
208
+ }
209
+ function Mn(t) {
210
+ let e = [], n = [], r, i;
211
+ for (typeof t == "string" ? n = t.split(/\s*,\s*/) : typeof t == "function" ? n = [t] : Array.isArray(t) && (n = t), r = 0; r < n.length; r += 1)
212
+ i = n[r], typeof i == "string" ? e.push(i.charAt(0) === "-" ? { field: i.substring(1), order: -1 } : { field: i, order: 1 }) : typeof i == "function" && e.push({ func: i });
213
+ return e;
214
+ }
215
+ function Tn(t, e, n) {
216
+ let r, i;
217
+ for (r = 0; r < n.length; r += 1)
218
+ if (i = In(t, e, n[r]), i)
219
+ return i;
220
+ return 0;
221
+ }
222
+ function In(t, e, n) {
223
+ return n.func ? n.func(t, e) : Nn(t[n.field], e[n.field]) * (n.order || 1);
224
+ }
225
+ function Nn(t, e) {
226
+ return !t && !e ? 0 : e == null ? -1 : t == null ? 1 : typeof t == "string" || typeof e == "string" ? String(t).localeCompare(String(e)) : t - e;
227
+ }
228
+ function j(t, e) {
229
+ let n = String(t);
230
+ return "000".substr(0, e - n.length) + n;
231
+ }
232
+ function Ot(t, e, n) {
233
+ return typeof t == "function" ? t(...e) : typeof t == "string" ? e.reduce((r, i, s) => r.replace("$" + s, i || ""), t) : n;
234
+ }
235
+ function _s(t, e) {
236
+ return t - e;
237
+ }
238
+ function le(t) {
239
+ return t % 1 === 0;
240
+ }
241
+ function On(t) {
242
+ let e = t.querySelector(".fc-scrollgrid-shrink-frame"), n = t.querySelector(".fc-scrollgrid-shrink-cushion");
243
+ if (!e)
244
+ throw new Error("needs fc-scrollgrid-shrink-frame className");
245
+ if (!n)
246
+ throw new Error("needs fc-scrollgrid-shrink-cushion className");
247
+ return t.getBoundingClientRect().width - e.getBoundingClientRect().width + // the cell padding+border
248
+ n.getBoundingClientRect().width;
249
+ }
250
+ const nt = ["years", "months", "days", "milliseconds"], Bn = /^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;
251
+ function v(t, e) {
252
+ return typeof t == "string" ? xn(t) : typeof t == "object" && t ? rt(t) : typeof t == "number" ? rt({ [e || "milliseconds"]: t }) : null;
253
+ }
254
+ function xn(t) {
255
+ let e = Bn.exec(t);
256
+ if (e) {
257
+ let n = e[1] ? -1 : 1;
258
+ return {
259
+ years: 0,
260
+ months: 0,
261
+ days: n * (e[2] ? parseInt(e[2], 10) : 0),
262
+ milliseconds: n * ((e[3] ? parseInt(e[3], 10) : 0) * 60 * 60 * 1e3 + // hours
263
+ (e[4] ? parseInt(e[4], 10) : 0) * 60 * 1e3 + // minutes
264
+ (e[5] ? parseInt(e[5], 10) : 0) * 1e3 + // seconds
265
+ (e[6] ? parseInt(e[6], 10) : 0))
266
+ };
267
+ }
268
+ return null;
269
+ }
270
+ function rt(t) {
271
+ let e = {
272
+ years: t.years || t.year || 0,
273
+ months: t.months || t.month || 0,
274
+ days: t.days || t.day || 0,
275
+ milliseconds: (t.hours || t.hour || 0) * 60 * 60 * 1e3 + // hours
276
+ (t.minutes || t.minute || 0) * 60 * 1e3 + // minutes
277
+ (t.seconds || t.second || 0) * 1e3 + // seconds
278
+ (t.milliseconds || t.millisecond || t.ms || 0)
279
+ // ms
280
+ }, n = t.weeks || t.week;
281
+ return n && (e.days += n * 7, e.specifiedWeeks = !0), e;
282
+ }
283
+ function _n(t, e) {
284
+ return t.years === e.years && t.months === e.months && t.days === e.days && t.milliseconds === e.milliseconds;
285
+ }
286
+ function Hs(t, e) {
287
+ return {
288
+ years: t.years + e.years,
289
+ months: t.months + e.months,
290
+ days: t.days + e.days,
291
+ milliseconds: t.milliseconds + e.milliseconds
292
+ };
293
+ }
294
+ function Us(t, e) {
295
+ return {
296
+ years: t.years - e.years,
297
+ months: t.months - e.months,
298
+ days: t.days - e.days,
299
+ milliseconds: t.milliseconds - e.milliseconds
300
+ };
301
+ }
302
+ function Fs(t, e) {
303
+ return {
304
+ years: t.years * e,
305
+ months: t.months * e,
306
+ days: t.days * e,
307
+ milliseconds: t.milliseconds * e
308
+ };
309
+ }
310
+ function Hn(t) {
311
+ return W(t) / 365;
312
+ }
313
+ function Un(t) {
314
+ return W(t) / 30;
315
+ }
316
+ function W(t) {
317
+ return Z(t) / 864e5;
318
+ }
319
+ function Z(t) {
320
+ return t.years * (365 * 864e5) + t.months * (30 * 864e5) + t.days * 864e5 + t.milliseconds;
321
+ }
322
+ function zs(t, e) {
323
+ let n = null;
324
+ for (let r = 0; r < nt.length; r += 1) {
325
+ let i = nt[r];
326
+ if (e[i]) {
327
+ let s = t[i] / e[i];
328
+ if (!le(s) || n !== null && n !== s)
329
+ return null;
330
+ n = s;
331
+ } else if (t[i])
332
+ return null;
333
+ }
334
+ return n;
335
+ }
336
+ function it(t) {
337
+ let e = t.milliseconds;
338
+ if (e) {
339
+ if (e % 1e3 !== 0)
340
+ return { unit: "millisecond", value: e };
341
+ if (e % (1e3 * 60) !== 0)
342
+ return { unit: "second", value: e / 1e3 };
343
+ if (e % (1e3 * 60 * 60) !== 0)
344
+ return { unit: "minute", value: e / (1e3 * 60) };
345
+ if (e)
346
+ return { unit: "hour", value: e / (1e3 * 60 * 60) };
347
+ }
348
+ return t.days ? t.specifiedWeeks && t.days % 7 === 0 ? { unit: "week", value: t.days / 7 } : { unit: "day", value: t.days } : t.months ? { unit: "month", value: t.months } : t.years ? { unit: "year", value: t.years } : { unit: "millisecond", value: 0 };
349
+ }
350
+ function K(t, e, n) {
351
+ if (t === e)
352
+ return !0;
353
+ let r = t.length, i;
354
+ if (r !== e.length)
355
+ return !1;
356
+ for (i = 0; i < r; i += 1)
357
+ if (!(n ? n(t[i], e[i]) : t[i] === e[i]))
358
+ return !1;
359
+ return !0;
360
+ }
361
+ const Fn = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
362
+ function Ls(t, e) {
363
+ let n = N(t);
364
+ return n[2] += e * 7, w(n);
365
+ }
366
+ function R(t, e) {
367
+ let n = N(t);
368
+ return n[2] += e, w(n);
369
+ }
370
+ function x(t, e) {
371
+ let n = N(t);
372
+ return n[6] += e, w(n);
373
+ }
374
+ function Ps(t, e) {
375
+ return U(t, e) / 7;
376
+ }
377
+ function U(t, e) {
378
+ return (e.valueOf() - t.valueOf()) / (1e3 * 60 * 60 * 24);
379
+ }
380
+ function zn(t, e) {
381
+ return (e.valueOf() - t.valueOf()) / (1e3 * 60 * 60);
382
+ }
383
+ function Ln(t, e) {
384
+ return (e.valueOf() - t.valueOf()) / (1e3 * 60);
385
+ }
386
+ function Pn(t, e) {
387
+ return (e.valueOf() - t.valueOf()) / 1e3;
388
+ }
389
+ function Qn(t, e) {
390
+ let n = b(t), r = b(e);
391
+ return {
392
+ years: 0,
393
+ months: 0,
394
+ days: Math.round(U(n, r)),
395
+ milliseconds: e.valueOf() - r.valueOf() - (t.valueOf() - n.valueOf())
396
+ };
397
+ }
398
+ function jn(t, e) {
399
+ let n = He(t, e);
400
+ return n !== null && n % 7 === 0 ? n / 7 : null;
401
+ }
402
+ function He(t, e) {
403
+ return O(t) === O(e) ? Math.round(U(t, e)) : null;
404
+ }
405
+ function b(t) {
406
+ return w([
407
+ t.getUTCFullYear(),
408
+ t.getUTCMonth(),
409
+ t.getUTCDate()
410
+ ]);
411
+ }
412
+ function Wn(t) {
413
+ return w([
414
+ t.getUTCFullYear(),
415
+ t.getUTCMonth(),
416
+ t.getUTCDate(),
417
+ t.getUTCHours()
418
+ ]);
419
+ }
420
+ function Gn(t) {
421
+ return w([
422
+ t.getUTCFullYear(),
423
+ t.getUTCMonth(),
424
+ t.getUTCDate(),
425
+ t.getUTCHours(),
426
+ t.getUTCMinutes()
427
+ ]);
428
+ }
429
+ function Vn(t) {
430
+ return w([
431
+ t.getUTCFullYear(),
432
+ t.getUTCMonth(),
433
+ t.getUTCDate(),
434
+ t.getUTCHours(),
435
+ t.getUTCMinutes(),
436
+ t.getUTCSeconds()
437
+ ]);
438
+ }
439
+ function Yn(t, e, n) {
440
+ let r = t.getUTCFullYear(), i = ke(t, r, e, n);
441
+ if (i < 1)
442
+ return ke(t, r - 1, e, n);
443
+ let s = ke(t, r + 1, e, n);
444
+ return s >= 1 ? Math.min(i, s) : i;
445
+ }
446
+ function ke(t, e, n, r) {
447
+ let i = w([e, 0, 1 + qn(e, n, r)]), s = b(t), l = Math.round(U(i, s));
448
+ return Math.floor(l / 7) + 1;
449
+ }
450
+ function qn(t, e, n) {
451
+ let r = 7 + e - n;
452
+ return -((7 + w([t, 0, r]).getUTCDay() - e) % 7) + r - 1;
453
+ }
454
+ function st(t) {
455
+ return [
456
+ t.getFullYear(),
457
+ t.getMonth(),
458
+ t.getDate(),
459
+ t.getHours(),
460
+ t.getMinutes(),
461
+ t.getSeconds(),
462
+ t.getMilliseconds()
463
+ ];
464
+ }
465
+ function lt(t) {
466
+ return new Date(
467
+ t[0],
468
+ t[1] || 0,
469
+ t[2] == null ? 1 : t[2],
470
+ // day of month
471
+ t[3] || 0,
472
+ t[4] || 0,
473
+ t[5] || 0
474
+ );
475
+ }
476
+ function N(t) {
477
+ return [
478
+ t.getUTCFullYear(),
479
+ t.getUTCMonth(),
480
+ t.getUTCDate(),
481
+ t.getUTCHours(),
482
+ t.getUTCMinutes(),
483
+ t.getUTCSeconds(),
484
+ t.getUTCMilliseconds()
485
+ ];
486
+ }
487
+ function w(t) {
488
+ return t.length === 1 && (t = t.concat([0])), new Date(Date.UTC(...t));
489
+ }
490
+ function Bt(t) {
491
+ return !isNaN(t.valueOf());
492
+ }
493
+ function O(t) {
494
+ return t.getUTCHours() * 1e3 * 60 * 60 + t.getUTCMinutes() * 1e3 * 60 + t.getUTCSeconds() * 1e3 + t.getUTCMilliseconds();
495
+ }
496
+ function Zn(t, e, n = !1) {
497
+ let r = t.toISOString();
498
+ return r = r.replace(".000", ""), n && (r = r.replace("T00:00:00Z", "")), r.length > 10 && (e == null ? r = r.replace("Z", "") : e !== 0 && (r = r.replace("Z", Pe(e, !0)))), r;
499
+ }
500
+ function xt(t) {
501
+ return t.toISOString().replace(/T.*$/, "");
502
+ }
503
+ function Qs(t) {
504
+ return t.toISOString().match(/^\d{4}-\d{2}/)[0];
505
+ }
506
+ function js(t) {
507
+ return j(t.getUTCHours(), 2) + ":" + j(t.getUTCMinutes(), 2) + ":" + j(t.getUTCSeconds(), 2);
508
+ }
509
+ function Pe(t, e = !1) {
510
+ let n = t < 0 ? "-" : "+", r = Math.abs(t), i = Math.floor(r / 60), s = Math.round(r % 60);
511
+ return e ? `${n + j(i, 2)}:${j(s, 2)}` : `GMT${n}${i}${s ? `:${j(s, 2)}` : ""}`;
512
+ }
513
+ function E(t, e, n) {
514
+ let r, i;
515
+ return function(...s) {
516
+ if (!r)
517
+ i = t.apply(this, s);
518
+ else if (!K(r, s)) {
519
+ n && n(i);
520
+ let l = t.apply(this, s);
521
+ (!e || !e(l, i)) && (i = l);
522
+ }
523
+ return r = s, i;
524
+ };
525
+ }
526
+ function Jn(t, e, n) {
527
+ let r, i;
528
+ return (s) => {
529
+ if (!r)
530
+ i = t.call(this, s);
531
+ else if (!_(r, s)) {
532
+ n && n(i);
533
+ let l = t.call(this, s);
534
+ (!e || !e(l, i)) && (i = l);
535
+ }
536
+ return r = s, i;
537
+ };
538
+ }
539
+ const at = {
540
+ week: 3,
541
+ separator: 0,
542
+ omitZeroMinute: 0,
543
+ meridiem: 0,
544
+ omitCommas: 0
545
+ }, oe = {
546
+ timeZoneName: 7,
547
+ era: 6,
548
+ year: 5,
549
+ month: 4,
550
+ day: 2,
551
+ weekday: 2,
552
+ hour: 1,
553
+ minute: 1,
554
+ second: 1
555
+ }, ee = /\s*([ap])\.?m\.?/i, Xn = /,/g, $n = /\s+/g, Kn = /\u200e/g, er = /UTC|GMT/;
556
+ class tr {
557
+ constructor(e) {
558
+ let n = {}, r = {}, i = 0;
559
+ for (let s in e)
560
+ s in at ? (r[s] = e[s], i = Math.max(at[s], i)) : (n[s] = e[s], s in oe && (i = Math.max(oe[s], i)));
561
+ this.standardDateProps = n, this.extendedSettings = r, this.severity = i, this.buildFormattingFunc = E(ot);
562
+ }
563
+ format(e, n) {
564
+ return this.buildFormattingFunc(this.standardDateProps, this.extendedSettings, n)(e);
565
+ }
566
+ formatRange(e, n, r, i) {
567
+ let { standardDateProps: s, extendedSettings: l } = this, a = ar(e.marker, n.marker, r.calendarSystem);
568
+ if (!a)
569
+ return this.format(e, r);
570
+ let o = a;
571
+ o > 1 && // the two dates are different in a way that's larger scale than time
572
+ (s.year === "numeric" || s.year === "2-digit") && (s.month === "numeric" || s.month === "2-digit") && (s.day === "numeric" || s.day === "2-digit") && (o = 1);
573
+ let c = this.format(e, r), d = this.format(n, r);
574
+ if (c === d)
575
+ return c;
576
+ let h = or(s, o), f = ot(h, l, r), p = f(e), A = f(n), m = cr(c, p, d, A), y = l.separator || i || r.defaultSeparator || "";
577
+ return m ? m.before + p + y + A + m.after : c + y + d;
578
+ }
579
+ getLargestUnit() {
580
+ switch (this.severity) {
581
+ case 7:
582
+ case 6:
583
+ case 5:
584
+ return "year";
585
+ case 4:
586
+ return "month";
587
+ case 3:
588
+ return "week";
589
+ case 2:
590
+ return "day";
591
+ default:
592
+ return "time";
593
+ }
594
+ }
595
+ }
596
+ function ot(t, e, n) {
597
+ let r = Object.keys(t).length;
598
+ return r === 1 && t.timeZoneName === "short" ? (i) => Pe(i.timeZoneOffset) : r === 0 && e.week ? (i) => lr(n.computeWeekNumber(i.marker), n.weekText, n.weekTextLong, n.locale, e.week) : nr(t, e, n);
599
+ }
600
+ function nr(t, e, n) {
601
+ t = Object.assign({}, t), e = Object.assign({}, e), rr(t, e), t.timeZone = "UTC";
602
+ let r = new Intl.DateTimeFormat(n.locale.codes, t), i;
603
+ if (e.omitZeroMinute) {
604
+ let s = Object.assign({}, t);
605
+ delete s.minute, i = new Intl.DateTimeFormat(n.locale.codes, s);
606
+ }
607
+ return (s) => {
608
+ let { marker: l } = s, a;
609
+ i && !l.getUTCMinutes() ? a = i : a = r;
610
+ let o = a.format(l);
611
+ return ir(o, s, t, e, n);
612
+ };
613
+ }
614
+ function rr(t, e) {
615
+ t.timeZoneName && (t.hour || (t.hour = "2-digit"), t.minute || (t.minute = "2-digit")), t.timeZoneName === "long" && (t.timeZoneName = "short"), e.omitZeroMinute && (t.second || t.millisecond) && delete e.omitZeroMinute;
616
+ }
617
+ function ir(t, e, n, r, i) {
618
+ return t = t.replace(Kn, ""), n.timeZoneName === "short" && (t = sr(t, i.timeZone === "UTC" || e.timeZoneOffset == null ? "UTC" : (
619
+ // important to normalize for IE, which does "GMT"
620
+ Pe(e.timeZoneOffset)
621
+ ))), r.omitCommas && (t = t.replace(Xn, "").trim()), r.omitZeroMinute && (t = t.replace(":00", "")), r.meridiem === !1 ? t = t.replace(ee, "").trim() : r.meridiem === "narrow" ? t = t.replace(ee, (s, l) => l.toLocaleLowerCase()) : r.meridiem === "short" ? t = t.replace(ee, (s, l) => `${l.toLocaleLowerCase()}m`) : r.meridiem === "lowercase" && (t = t.replace(ee, (s) => s.toLocaleLowerCase())), t = t.replace($n, " "), t = t.trim(), t;
622
+ }
623
+ function sr(t, e) {
624
+ let n = !1;
625
+ return t = t.replace(er, () => (n = !0, e)), n || (t += ` ${e}`), t;
626
+ }
627
+ function lr(t, e, n, r, i) {
628
+ let s = [];
629
+ return i === "long" ? s.push(n) : (i === "short" || i === "narrow") && s.push(e), (i === "long" || i === "short") && s.push(" "), s.push(r.simpleNumberFormat.format(t)), r.options.direction === "rtl" && s.reverse(), s.join("");
630
+ }
631
+ function ar(t, e, n) {
632
+ return n.getMarkerYear(t) !== n.getMarkerYear(e) ? 5 : n.getMarkerMonth(t) !== n.getMarkerMonth(e) ? 4 : n.getMarkerDay(t) !== n.getMarkerDay(e) ? 2 : O(t) !== O(e) ? 1 : 0;
633
+ }
634
+ function or(t, e) {
635
+ let n = {};
636
+ for (let r in t)
637
+ (!(r in oe) || // not a date part prop (like timeZone)
638
+ oe[r] <= e) && (n[r] = t[r]);
639
+ return n;
640
+ }
641
+ function cr(t, e, n, r) {
642
+ let i = 0;
643
+ for (; i < t.length; ) {
644
+ let s = t.indexOf(e, i);
645
+ if (s === -1)
646
+ break;
647
+ let l = t.substr(0, s);
648
+ i = s + e.length;
649
+ let a = t.substr(i), o = 0;
650
+ for (; o < n.length; ) {
651
+ let c = n.indexOf(r, o);
652
+ if (c === -1)
653
+ break;
654
+ let d = n.substr(0, c);
655
+ o = c + r.length;
656
+ let h = n.substr(o);
657
+ if (l === d && a === h)
658
+ return {
659
+ before: l,
660
+ after: a
661
+ };
662
+ }
663
+ }
664
+ return null;
665
+ }
666
+ function ct(t, e) {
667
+ let n = e.markerToArray(t.marker);
668
+ return {
669
+ marker: t.marker,
670
+ timeZoneOffset: t.timeZoneOffset,
671
+ array: n,
672
+ year: n[0],
673
+ month: n[1],
674
+ day: n[2],
675
+ hour: n[3],
676
+ minute: n[4],
677
+ second: n[5],
678
+ millisecond: n[6]
679
+ };
680
+ }
681
+ function ce(t, e, n, r) {
682
+ let i = ct(t, n.calendarSystem), s = e ? ct(e, n.calendarSystem) : null;
683
+ return {
684
+ date: i,
685
+ start: i,
686
+ end: s,
687
+ timeZone: n.timeZone,
688
+ localeCodes: n.locale.codes,
689
+ defaultSeparator: r || n.defaultSeparator
690
+ };
691
+ }
692
+ class ur {
693
+ constructor(e) {
694
+ this.cmdStr = e;
695
+ }
696
+ format(e, n, r) {
697
+ return n.cmdFormatter(this.cmdStr, ce(e, null, n, r));
698
+ }
699
+ formatRange(e, n, r, i) {
700
+ return r.cmdFormatter(this.cmdStr, ce(e, n, r, i));
701
+ }
702
+ }
703
+ class dr {
704
+ constructor(e) {
705
+ this.func = e;
706
+ }
707
+ format(e, n, r) {
708
+ return this.func(ce(e, null, n, r));
709
+ }
710
+ formatRange(e, n, r, i) {
711
+ return this.func(ce(e, n, r, i));
712
+ }
713
+ }
714
+ function C(t) {
715
+ return typeof t == "object" && t ? new tr(t) : typeof t == "string" ? new ur(t) : typeof t == "function" ? new dr(t) : null;
716
+ }
717
+ const Ws = {
718
+ navLinkDayClick: u,
719
+ navLinkWeekClick: u,
720
+ duration: v,
721
+ bootstrapFontAwesome: u,
722
+ buttonIcons: u,
723
+ customButtons: u,
724
+ defaultAllDayEventDuration: v,
725
+ defaultTimedEventDuration: v,
726
+ nextDayThreshold: v,
727
+ scrollTime: v,
728
+ scrollTimeReset: Boolean,
729
+ slotMinTime: v,
730
+ slotMaxTime: v,
731
+ dayPopoverFormat: C,
732
+ slotDuration: v,
733
+ snapDuration: v,
734
+ headerToolbar: u,
735
+ footerToolbar: u,
736
+ defaultRangeSeparator: String,
737
+ titleRangeSeparator: String,
738
+ forceEventDuration: Boolean,
739
+ dayHeaders: Boolean,
740
+ dayHeaderFormat: C,
741
+ dayHeaderClassNames: u,
742
+ dayHeaderContent: u,
743
+ dayHeaderDidMount: u,
744
+ dayHeaderWillUnmount: u,
745
+ dayCellClassNames: u,
746
+ dayCellContent: u,
747
+ dayCellDidMount: u,
748
+ dayCellWillUnmount: u,
749
+ initialView: String,
750
+ aspectRatio: Number,
751
+ weekends: Boolean,
752
+ weekNumberCalculation: u,
753
+ weekNumbers: Boolean,
754
+ weekNumberClassNames: u,
755
+ weekNumberContent: u,
756
+ weekNumberDidMount: u,
757
+ weekNumberWillUnmount: u,
758
+ editable: Boolean,
759
+ viewClassNames: u,
760
+ viewDidMount: u,
761
+ viewWillUnmount: u,
762
+ nowIndicator: Boolean,
763
+ nowIndicatorClassNames: u,
764
+ nowIndicatorContent: u,
765
+ nowIndicatorDidMount: u,
766
+ nowIndicatorWillUnmount: u,
767
+ showNonCurrentDates: Boolean,
768
+ lazyFetching: Boolean,
769
+ startParam: String,
770
+ endParam: String,
771
+ timeZoneParam: String,
772
+ timeZone: String,
773
+ locales: u,
774
+ locale: u,
775
+ themeSystem: String,
776
+ dragRevertDuration: Number,
777
+ dragScroll: Boolean,
778
+ allDayMaintainDuration: Boolean,
779
+ unselectAuto: Boolean,
780
+ dropAccept: u,
781
+ eventOrder: Mn,
782
+ eventOrderStrict: Boolean,
783
+ handleWindowResize: Boolean,
784
+ windowResizeDelay: Number,
785
+ longPressDelay: Number,
786
+ eventDragMinDistance: Number,
787
+ expandRows: Boolean,
788
+ height: u,
789
+ contentHeight: u,
790
+ direction: String,
791
+ weekNumberFormat: C,
792
+ eventResizableFromStart: Boolean,
793
+ displayEventTime: Boolean,
794
+ displayEventEnd: Boolean,
795
+ weekText: String,
796
+ weekTextLong: String,
797
+ progressiveEventRendering: Boolean,
798
+ businessHours: u,
799
+ initialDate: u,
800
+ now: u,
801
+ eventDataTransform: u,
802
+ stickyHeaderDates: u,
803
+ stickyFooterScrollbar: u,
804
+ viewHeight: u,
805
+ defaultAllDay: Boolean,
806
+ eventSourceFailure: u,
807
+ eventSourceSuccess: u,
808
+ eventDisplay: String,
809
+ eventStartEditable: Boolean,
810
+ eventDurationEditable: Boolean,
811
+ eventOverlap: u,
812
+ eventConstraint: u,
813
+ eventAllow: u,
814
+ eventBackgroundColor: String,
815
+ eventBorderColor: String,
816
+ eventTextColor: String,
817
+ eventColor: String,
818
+ eventClassNames: u,
819
+ eventContent: u,
820
+ eventDidMount: u,
821
+ eventWillUnmount: u,
822
+ selectConstraint: u,
823
+ selectOverlap: u,
824
+ selectAllow: u,
825
+ droppable: Boolean,
826
+ unselectCancel: String,
827
+ slotLabelFormat: u,
828
+ slotLaneClassNames: u,
829
+ slotLaneContent: u,
830
+ slotLaneDidMount: u,
831
+ slotLaneWillUnmount: u,
832
+ slotLabelClassNames: u,
833
+ slotLabelContent: u,
834
+ slotLabelDidMount: u,
835
+ slotLabelWillUnmount: u,
836
+ dayMaxEvents: u,
837
+ dayMaxEventRows: u,
838
+ dayMinWidth: Number,
839
+ slotLabelInterval: v,
840
+ allDayText: String,
841
+ allDayClassNames: u,
842
+ allDayContent: u,
843
+ allDayDidMount: u,
844
+ allDayWillUnmount: u,
845
+ slotMinWidth: Number,
846
+ navLinks: Boolean,
847
+ eventTimeFormat: C,
848
+ rerenderDelay: Number,
849
+ moreLinkText: u,
850
+ moreLinkHint: u,
851
+ selectMinDistance: Number,
852
+ selectable: Boolean,
853
+ selectLongPressDelay: Number,
854
+ eventLongPressDelay: Number,
855
+ selectMirror: Boolean,
856
+ eventMaxStack: Number,
857
+ eventMinHeight: Number,
858
+ eventMinWidth: Number,
859
+ eventShortHeight: Number,
860
+ slotEventOverlap: Boolean,
861
+ plugins: u,
862
+ firstDay: Number,
863
+ dayCount: Number,
864
+ dateAlignment: String,
865
+ dateIncrement: v,
866
+ hiddenDays: u,
867
+ fixedWeekCount: Boolean,
868
+ validRange: u,
869
+ visibleRange: u,
870
+ titleFormat: u,
871
+ eventInteractive: Boolean,
872
+ // only used by list-view, but languages define the value, so we need it in base options
873
+ noEventsText: String,
874
+ viewHint: u,
875
+ navLinkHint: u,
876
+ closeHint: String,
877
+ timeHint: String,
878
+ eventHint: String,
879
+ moreLinkClick: u,
880
+ moreLinkClassNames: u,
881
+ moreLinkContent: u,
882
+ moreLinkDidMount: u,
883
+ moreLinkWillUnmount: u,
884
+ monthStartFormat: C,
885
+ // for connectors
886
+ // (can't be part of plugin system b/c must be provided at runtime)
887
+ handleCustomRendering: u,
888
+ customRenderingMetaMap: u,
889
+ customRenderingReplaces: Boolean
890
+ }, Gs = {
891
+ eventDisplay: "auto",
892
+ defaultRangeSeparator: " - ",
893
+ titleRangeSeparator: " – ",
894
+ defaultTimedEventDuration: "01:00:00",
895
+ defaultAllDayEventDuration: { day: 1 },
896
+ forceEventDuration: !1,
897
+ nextDayThreshold: "00:00:00",
898
+ dayHeaders: !0,
899
+ initialView: "",
900
+ aspectRatio: 1.35,
901
+ headerToolbar: {
902
+ start: "title",
903
+ center: "",
904
+ end: "today prev,next"
905
+ },
906
+ weekends: !0,
907
+ weekNumbers: !1,
908
+ weekNumberCalculation: "local",
909
+ editable: !1,
910
+ nowIndicator: !1,
911
+ scrollTime: "06:00:00",
912
+ scrollTimeReset: !0,
913
+ slotMinTime: "00:00:00",
914
+ slotMaxTime: "24:00:00",
915
+ showNonCurrentDates: !0,
916
+ lazyFetching: !0,
917
+ startParam: "start",
918
+ endParam: "end",
919
+ timeZoneParam: "timeZone",
920
+ timeZone: "local",
921
+ locales: [],
922
+ locale: "",
923
+ themeSystem: "standard",
924
+ dragRevertDuration: 500,
925
+ dragScroll: !0,
926
+ allDayMaintainDuration: !1,
927
+ unselectAuto: !0,
928
+ dropAccept: "*",
929
+ eventOrder: "start,-duration,allDay,title",
930
+ dayPopoverFormat: { month: "long", day: "numeric", year: "numeric" },
931
+ handleWindowResize: !0,
932
+ windowResizeDelay: 100,
933
+ longPressDelay: 1e3,
934
+ eventDragMinDistance: 5,
935
+ expandRows: !1,
936
+ navLinks: !1,
937
+ selectable: !1,
938
+ eventMinHeight: 15,
939
+ eventMinWidth: 30,
940
+ eventShortHeight: 30,
941
+ monthStartFormat: { month: "long", day: "numeric" }
942
+ }, Vs = {
943
+ datesSet: u,
944
+ eventsSet: u,
945
+ eventAdd: u,
946
+ eventChange: u,
947
+ eventRemove: u,
948
+ windowResize: u,
949
+ eventClick: u,
950
+ eventMouseEnter: u,
951
+ eventMouseLeave: u,
952
+ select: u,
953
+ unselect: u,
954
+ loading: u,
955
+ // internal
956
+ _unmount: u,
957
+ _beforeprint: u,
958
+ _afterprint: u,
959
+ _noEventDrop: u,
960
+ _noEventResize: u,
961
+ _resize: u,
962
+ _scrollRequest: u
963
+ }, Ys = {
964
+ buttonText: u,
965
+ buttonHints: u,
966
+ views: u,
967
+ plugins: u,
968
+ initialEvents: u,
969
+ events: u,
970
+ eventSources: u
971
+ }, fr = {
972
+ headerToolbar: B,
973
+ footerToolbar: B,
974
+ buttonText: B,
975
+ buttonHints: B,
976
+ buttonIcons: B,
977
+ dateIncrement: B,
978
+ plugins: te,
979
+ events: te,
980
+ eventSources: te,
981
+ resources: te
982
+ };
983
+ function B(t, e) {
984
+ return typeof t == "object" && typeof e == "object" && t && e ? _(t, e) : t === e;
985
+ }
986
+ function te(t, e) {
987
+ return Array.isArray(t) && Array.isArray(e) ? K(t, e) : t === e;
988
+ }
989
+ const qs = {
990
+ type: String,
991
+ component: u,
992
+ buttonText: String,
993
+ buttonTextKey: String,
994
+ dateProfileGeneratorClass: u,
995
+ usesMinMaxTime: Boolean,
996
+ classNames: u,
997
+ content: u,
998
+ didMount: u,
999
+ willUnmount: u
1000
+ };
1001
+ function Zs(t) {
1002
+ return _t(t, fr);
1003
+ }
1004
+ function Qe(t, e) {
1005
+ let n = {}, r = {};
1006
+ for (let i in e)
1007
+ i in t && (n[i] = e[i](t[i]));
1008
+ for (let i in t)
1009
+ i in e || (r[i] = t[i]);
1010
+ return { refined: n, extra: r };
1011
+ }
1012
+ function u(t) {
1013
+ return t;
1014
+ }
1015
+ const { hasOwnProperty: ue } = Object.prototype;
1016
+ function _t(t, e) {
1017
+ let n = {};
1018
+ if (e) {
1019
+ for (let r in e)
1020
+ if (e[r] === B) {
1021
+ let i = [];
1022
+ for (let s = t.length - 1; s >= 0; s -= 1) {
1023
+ let l = t[s][r];
1024
+ if (typeof l == "object" && l)
1025
+ i.unshift(l);
1026
+ else if (l !== void 0) {
1027
+ n[r] = l;
1028
+ break;
1029
+ }
1030
+ }
1031
+ i.length && (n[r] = _t(i));
1032
+ }
1033
+ }
1034
+ for (let r = t.length - 1; r >= 0; r -= 1) {
1035
+ let i = t[r];
1036
+ for (let s in i)
1037
+ s in n || (n[s] = i[s]);
1038
+ }
1039
+ return n;
1040
+ }
1041
+ function de(t, e) {
1042
+ let n = {};
1043
+ for (let r in t)
1044
+ e(t[r], r) && (n[r] = t[r]);
1045
+ return n;
1046
+ }
1047
+ function J(t, e) {
1048
+ let n = {};
1049
+ for (let r in t)
1050
+ n[r] = e(t[r], r);
1051
+ return n;
1052
+ }
1053
+ function Js(t) {
1054
+ let e = {};
1055
+ for (let n of t)
1056
+ e[n] = !0;
1057
+ return e;
1058
+ }
1059
+ function Ht(t) {
1060
+ let e = [];
1061
+ for (let n in t)
1062
+ e.push(t[n]);
1063
+ return e;
1064
+ }
1065
+ function _(t, e) {
1066
+ if (t === e)
1067
+ return !0;
1068
+ for (let n in t)
1069
+ if (ue.call(t, n) && !(n in e))
1070
+ return !1;
1071
+ for (let n in e)
1072
+ if (ue.call(e, n) && t[n] !== e[n])
1073
+ return !1;
1074
+ return !0;
1075
+ }
1076
+ const hr = /^on[A-Z]/;
1077
+ function gr(t, e) {
1078
+ const n = Ue(t, e);
1079
+ for (let r of n)
1080
+ if (!hr.test(r))
1081
+ return !1;
1082
+ return !0;
1083
+ }
1084
+ function Ue(t, e) {
1085
+ let n = [];
1086
+ for (let r in t)
1087
+ ue.call(t, r) && (r in e || n.push(r));
1088
+ for (let r in e)
1089
+ ue.call(e, r) && t[r] !== e[r] && n.push(r);
1090
+ return n;
1091
+ }
1092
+ function Re(t, e, n = {}) {
1093
+ if (t === e)
1094
+ return !0;
1095
+ for (let r in e)
1096
+ if (!(r in t && pr(t[r], e[r], n[r])))
1097
+ return !1;
1098
+ for (let r in t)
1099
+ if (!(r in e))
1100
+ return !1;
1101
+ return !0;
1102
+ }
1103
+ function pr(t, e, n) {
1104
+ return t === e || n === !0 ? !0 : n ? n(t, e) : !1;
1105
+ }
1106
+ function mr(t, e = 0, n, r = 1) {
1107
+ let i = [];
1108
+ n == null && (n = Object.keys(t).length);
1109
+ for (let s = e; s < n; s += r) {
1110
+ let l = t[s];
1111
+ l !== void 0 && i.push(l);
1112
+ }
1113
+ return i;
1114
+ }
1115
+ let Ut = {};
1116
+ function Ar(t, e) {
1117
+ Ut[t] = e;
1118
+ }
1119
+ function vr(t) {
1120
+ return new Ut[t]();
1121
+ }
1122
+ class br {
1123
+ getMarkerYear(e) {
1124
+ return e.getUTCFullYear();
1125
+ }
1126
+ getMarkerMonth(e) {
1127
+ return e.getUTCMonth();
1128
+ }
1129
+ getMarkerDay(e) {
1130
+ return e.getUTCDate();
1131
+ }
1132
+ arrayToMarker(e) {
1133
+ return w(e);
1134
+ }
1135
+ markerToArray(e) {
1136
+ return N(e);
1137
+ }
1138
+ }
1139
+ Ar("gregory", br);
1140
+ const yr = /^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;
1141
+ function Er(t) {
1142
+ let e = yr.exec(t);
1143
+ if (e) {
1144
+ let n = new Date(Date.UTC(Number(e[1]), e[3] ? Number(e[3]) - 1 : 0, Number(e[5] || 1), Number(e[7] || 0), Number(e[8] || 0), Number(e[10] || 0), e[12] ? +`0.${e[12]}` * 1e3 : 0));
1145
+ if (Bt(n)) {
1146
+ let r = null;
1147
+ return e[13] && (r = (e[15] === "-" ? -1 : 1) * (Number(e[16] || 0) * 60 + Number(e[18] || 0))), {
1148
+ marker: n,
1149
+ isTimeUnspecified: !e[6],
1150
+ timeZoneOffset: r
1151
+ };
1152
+ }
1153
+ }
1154
+ return null;
1155
+ }
1156
+ class Xs {
1157
+ constructor(e) {
1158
+ let n = this.timeZone = e.timeZone, r = n !== "local" && n !== "UTC";
1159
+ e.namedTimeZoneImpl && r && (this.namedTimeZoneImpl = new e.namedTimeZoneImpl(n)), this.canComputeOffset = !!(!r || this.namedTimeZoneImpl), this.calendarSystem = vr(e.calendarSystem), this.locale = e.locale, this.weekDow = e.locale.week.dow, this.weekDoy = e.locale.week.doy, e.weekNumberCalculation === "ISO" && (this.weekDow = 1, this.weekDoy = 4), typeof e.firstDay == "number" && (this.weekDow = e.firstDay), typeof e.weekNumberCalculation == "function" && (this.weekNumberFunc = e.weekNumberCalculation), this.weekText = e.weekText != null ? e.weekText : e.locale.options.weekText, this.weekTextLong = (e.weekTextLong != null ? e.weekTextLong : e.locale.options.weekTextLong) || this.weekText, this.cmdFormatter = e.cmdFormatter, this.defaultSeparator = e.defaultSeparator;
1160
+ }
1161
+ // Creating / Parsing
1162
+ createMarker(e) {
1163
+ let n = this.createMarkerMeta(e);
1164
+ return n === null ? null : n.marker;
1165
+ }
1166
+ createNowMarker() {
1167
+ return this.canComputeOffset ? this.timestampToMarker((/* @__PURE__ */ new Date()).valueOf()) : w(st(/* @__PURE__ */ new Date()));
1168
+ }
1169
+ createMarkerMeta(e) {
1170
+ if (typeof e == "string")
1171
+ return this.parse(e);
1172
+ let n = null;
1173
+ return typeof e == "number" ? n = this.timestampToMarker(e) : e instanceof Date ? (e = e.valueOf(), isNaN(e) || (n = this.timestampToMarker(e))) : Array.isArray(e) && (n = w(e)), n === null || !Bt(n) ? null : { marker: n, isTimeUnspecified: !1, forcedTzo: null };
1174
+ }
1175
+ parse(e) {
1176
+ let n = Er(e);
1177
+ if (n === null)
1178
+ return null;
1179
+ let { marker: r } = n, i = null;
1180
+ return n.timeZoneOffset !== null && (this.canComputeOffset ? r = this.timestampToMarker(r.valueOf() - n.timeZoneOffset * 60 * 1e3) : i = n.timeZoneOffset), { marker: r, isTimeUnspecified: n.isTimeUnspecified, forcedTzo: i };
1181
+ }
1182
+ // Accessors
1183
+ getYear(e) {
1184
+ return this.calendarSystem.getMarkerYear(e);
1185
+ }
1186
+ getMonth(e) {
1187
+ return this.calendarSystem.getMarkerMonth(e);
1188
+ }
1189
+ getDay(e) {
1190
+ return this.calendarSystem.getMarkerDay(e);
1191
+ }
1192
+ // Adding / Subtracting
1193
+ add(e, n) {
1194
+ let r = this.calendarSystem.markerToArray(e);
1195
+ return r[0] += n.years, r[1] += n.months, r[2] += n.days, r[6] += n.milliseconds, this.calendarSystem.arrayToMarker(r);
1196
+ }
1197
+ subtract(e, n) {
1198
+ let r = this.calendarSystem.markerToArray(e);
1199
+ return r[0] -= n.years, r[1] -= n.months, r[2] -= n.days, r[6] -= n.milliseconds, this.calendarSystem.arrayToMarker(r);
1200
+ }
1201
+ addYears(e, n) {
1202
+ let r = this.calendarSystem.markerToArray(e);
1203
+ return r[0] += n, this.calendarSystem.arrayToMarker(r);
1204
+ }
1205
+ addMonths(e, n) {
1206
+ let r = this.calendarSystem.markerToArray(e);
1207
+ return r[1] += n, this.calendarSystem.arrayToMarker(r);
1208
+ }
1209
+ // Diffing Whole Units
1210
+ diffWholeYears(e, n) {
1211
+ let { calendarSystem: r } = this;
1212
+ return O(e) === O(n) && r.getMarkerDay(e) === r.getMarkerDay(n) && r.getMarkerMonth(e) === r.getMarkerMonth(n) ? r.getMarkerYear(n) - r.getMarkerYear(e) : null;
1213
+ }
1214
+ diffWholeMonths(e, n) {
1215
+ let { calendarSystem: r } = this;
1216
+ return O(e) === O(n) && r.getMarkerDay(e) === r.getMarkerDay(n) ? r.getMarkerMonth(n) - r.getMarkerMonth(e) + (r.getMarkerYear(n) - r.getMarkerYear(e)) * 12 : null;
1217
+ }
1218
+ // Range / Duration
1219
+ greatestWholeUnit(e, n) {
1220
+ let r = this.diffWholeYears(e, n);
1221
+ return r !== null ? { unit: "year", value: r } : (r = this.diffWholeMonths(e, n), r !== null ? { unit: "month", value: r } : (r = jn(e, n), r !== null ? { unit: "week", value: r } : (r = He(e, n), r !== null ? { unit: "day", value: r } : (r = zn(e, n), le(r) ? { unit: "hour", value: r } : (r = Ln(e, n), le(r) ? { unit: "minute", value: r } : (r = Pn(e, n), le(r) ? { unit: "second", value: r } : { unit: "millisecond", value: n.valueOf() - e.valueOf() }))))));
1222
+ }
1223
+ countDurationsBetween(e, n, r) {
1224
+ let i;
1225
+ return r.years && (i = this.diffWholeYears(e, n), i !== null) ? i / Hn(r) : r.months && (i = this.diffWholeMonths(e, n), i !== null) ? i / Un(r) : r.days && (i = He(e, n), i !== null) ? i / W(r) : (n.valueOf() - e.valueOf()) / Z(r);
1226
+ }
1227
+ // Start-Of
1228
+ // these DON'T return zoned-dates. only UTC start-of dates
1229
+ startOf(e, n) {
1230
+ return n === "year" ? this.startOfYear(e) : n === "month" ? this.startOfMonth(e) : n === "week" ? this.startOfWeek(e) : n === "day" ? b(e) : n === "hour" ? Wn(e) : n === "minute" ? Gn(e) : n === "second" ? Vn(e) : null;
1231
+ }
1232
+ startOfYear(e) {
1233
+ return this.calendarSystem.arrayToMarker([
1234
+ this.calendarSystem.getMarkerYear(e)
1235
+ ]);
1236
+ }
1237
+ startOfMonth(e) {
1238
+ return this.calendarSystem.arrayToMarker([
1239
+ this.calendarSystem.getMarkerYear(e),
1240
+ this.calendarSystem.getMarkerMonth(e)
1241
+ ]);
1242
+ }
1243
+ startOfWeek(e) {
1244
+ return this.calendarSystem.arrayToMarker([
1245
+ this.calendarSystem.getMarkerYear(e),
1246
+ this.calendarSystem.getMarkerMonth(e),
1247
+ e.getUTCDate() - (e.getUTCDay() - this.weekDow + 7) % 7
1248
+ ]);
1249
+ }
1250
+ // Week Number
1251
+ computeWeekNumber(e) {
1252
+ return this.weekNumberFunc ? this.weekNumberFunc(this.toDate(e)) : Yn(e, this.weekDow, this.weekDoy);
1253
+ }
1254
+ // TODO: choke on timeZoneName: long
1255
+ format(e, n, r = {}) {
1256
+ return n.format({
1257
+ marker: e,
1258
+ timeZoneOffset: r.forcedTzo != null ? r.forcedTzo : this.offsetForMarker(e)
1259
+ }, this);
1260
+ }
1261
+ formatRange(e, n, r, i = {}) {
1262
+ return i.isEndExclusive && (n = x(n, -1)), r.formatRange({
1263
+ marker: e,
1264
+ timeZoneOffset: i.forcedStartTzo != null ? i.forcedStartTzo : this.offsetForMarker(e)
1265
+ }, {
1266
+ marker: n,
1267
+ timeZoneOffset: i.forcedEndTzo != null ? i.forcedEndTzo : this.offsetForMarker(n)
1268
+ }, this, i.defaultSeparator);
1269
+ }
1270
+ /*
1271
+ DUMB: the omitTime arg is dumb. if we omit the time, we want to omit the timezone offset. and if we do that,
1272
+ might as well use buildIsoString or some other util directly
1273
+ */
1274
+ formatIso(e, n = {}) {
1275
+ let r = null;
1276
+ return n.omitTimeZoneOffset || (n.forcedTzo != null ? r = n.forcedTzo : r = this.offsetForMarker(e)), Zn(e, r, n.omitTime);
1277
+ }
1278
+ // TimeZone
1279
+ timestampToMarker(e) {
1280
+ return this.timeZone === "local" ? w(st(new Date(e))) : this.timeZone === "UTC" || !this.namedTimeZoneImpl ? new Date(e) : w(this.namedTimeZoneImpl.timestampToArray(e));
1281
+ }
1282
+ offsetForMarker(e) {
1283
+ return this.timeZone === "local" ? -lt(N(e)).getTimezoneOffset() : this.timeZone === "UTC" ? 0 : this.namedTimeZoneImpl ? this.namedTimeZoneImpl.offsetForArray(N(e)) : null;
1284
+ }
1285
+ // Conversion
1286
+ toDate(e, n) {
1287
+ return this.timeZone === "local" ? lt(N(e)) : this.timeZone === "UTC" ? new Date(e.valueOf()) : this.namedTimeZoneImpl ? new Date(e.valueOf() - this.namedTimeZoneImpl.offsetForArray(N(e)) * 1e3 * 60) : new Date(e.valueOf() - (n || 0));
1288
+ }
1289
+ }
1290
+ class ve {
1291
+ constructor(e) {
1292
+ this.iconOverrideOption && this.setIconOverride(e[this.iconOverrideOption]);
1293
+ }
1294
+ setIconOverride(e) {
1295
+ let n, r;
1296
+ if (typeof e == "object" && e) {
1297
+ n = Object.assign({}, this.iconClasses);
1298
+ for (r in e)
1299
+ n[r] = this.applyIconOverridePrefix(e[r]);
1300
+ this.iconClasses = n;
1301
+ } else
1302
+ e === !1 && (this.iconClasses = {});
1303
+ }
1304
+ applyIconOverridePrefix(e) {
1305
+ let n = this.iconOverridePrefix;
1306
+ return n && e.indexOf(n) !== 0 && (e = n + e), e;
1307
+ }
1308
+ getClass(e) {
1309
+ return this.classes[e] || "";
1310
+ }
1311
+ getIconClass(e, n) {
1312
+ let r;
1313
+ return n && this.rtlIconClasses ? r = this.rtlIconClasses[e] || this.iconClasses[e] : r = this.iconClasses[e], r ? `${this.baseIconClass} ${r}` : "";
1314
+ }
1315
+ getCustomButtonIconClass(e) {
1316
+ let n;
1317
+ return this.iconOverrideCustomButtonOption && (n = e[this.iconOverrideCustomButtonOption], n) ? `${this.baseIconClass} ${this.applyIconOverridePrefix(n)}` : "";
1318
+ }
1319
+ }
1320
+ ve.prototype.classes = {};
1321
+ ve.prototype.iconClasses = {};
1322
+ ve.prototype.baseIconClass = "";
1323
+ ve.prototype.iconOverridePrefix = "";
1324
+ function ut(t) {
1325
+ t();
1326
+ let e = Se.debounceRendering, n = [];
1327
+ function r(i) {
1328
+ n.push(i);
1329
+ }
1330
+ for (Se.debounceRendering = r, fn(g(Dr, {}), document.createElement("div")); n.length; )
1331
+ n.shift()();
1332
+ Se.debounceRendering = e;
1333
+ }
1334
+ class Dr extends pe {
1335
+ render() {
1336
+ return g("div", {});
1337
+ }
1338
+ componentDidMount() {
1339
+ this.setState({});
1340
+ }
1341
+ }
1342
+ function Ft(t) {
1343
+ let e = hn(t), n = e.Provider;
1344
+ return e.Provider = function() {
1345
+ let r = !this.getChildContext, i = n.apply(this, arguments);
1346
+ if (r) {
1347
+ let s = [];
1348
+ this.shouldComponentUpdate = (l) => {
1349
+ this.props.value !== l.value && s.forEach((a) => {
1350
+ a.context = l.value, a.forceUpdate();
1351
+ });
1352
+ }, this.sub = (l) => {
1353
+ s.push(l);
1354
+ let a = l.componentWillUnmount;
1355
+ l.componentWillUnmount = () => {
1356
+ s.splice(s.indexOf(l), 1), a && a.call(l);
1357
+ };
1358
+ };
1359
+ }
1360
+ return i;
1361
+ }, e;
1362
+ }
1363
+ class Cr {
1364
+ constructor(e, n, r, i) {
1365
+ this.execFunc = e, this.emitter = n, this.scrollTime = r, this.scrollTimeReset = i, this.handleScrollRequest = (s) => {
1366
+ this.queuedRequest = Object.assign({}, this.queuedRequest || {}, s), this.drain();
1367
+ }, n.on("_scrollRequest", this.handleScrollRequest), this.fireInitialScroll();
1368
+ }
1369
+ detach() {
1370
+ this.emitter.off("_scrollRequest", this.handleScrollRequest);
1371
+ }
1372
+ update(e) {
1373
+ e && this.scrollTimeReset ? this.fireInitialScroll() : this.drain();
1374
+ }
1375
+ fireInitialScroll() {
1376
+ this.handleScrollRequest({
1377
+ time: this.scrollTime
1378
+ });
1379
+ }
1380
+ drain() {
1381
+ this.queuedRequest && this.execFunc(this.queuedRequest) && (this.queuedRequest = null);
1382
+ }
1383
+ }
1384
+ const G = Ft({});
1385
+ function $s(t, e, n, r, i, s, l, a, o, c, d, h, f) {
1386
+ return {
1387
+ dateEnv: i,
1388
+ options: n,
1389
+ pluginHooks: l,
1390
+ emitter: c,
1391
+ dispatch: a,
1392
+ getCurrentData: o,
1393
+ calendarApi: d,
1394
+ viewSpec: t,
1395
+ viewApi: e,
1396
+ dateProfileGenerator: r,
1397
+ theme: s,
1398
+ isRtl: n.direction === "rtl",
1399
+ addResizeHandler(p) {
1400
+ c.on("_resize", p);
1401
+ },
1402
+ removeResizeHandler(p) {
1403
+ c.off("_resize", p);
1404
+ },
1405
+ createScrollResponder(p) {
1406
+ return new Cr(p, c, v(n.scrollTime), n.scrollTimeReset);
1407
+ },
1408
+ registerInteractiveComponent: h,
1409
+ unregisterInteractiveComponent: f
1410
+ };
1411
+ }
1412
+ class V extends pe {
1413
+ shouldComponentUpdate(e, n) {
1414
+ return this.debug && console.log(Ue(e, this.props), Ue(n, this.state)), !Re(this.props, e, this.propEquality) || !Re(this.state, n, this.stateEquality);
1415
+ }
1416
+ // HACK for freakin' React StrictMode
1417
+ safeSetState(e) {
1418
+ Re(this.state, Object.assign(Object.assign({}, this.state), e), this.stateEquality) || this.setState(e);
1419
+ }
1420
+ }
1421
+ V.addPropsEquality = Sr;
1422
+ V.addStateEquality = wr;
1423
+ V.contextType = G;
1424
+ V.prototype.propEquality = {};
1425
+ V.prototype.stateEquality = {};
1426
+ class D extends V {
1427
+ }
1428
+ D.contextType = G;
1429
+ function Sr(t) {
1430
+ let e = Object.create(this.prototype.propEquality);
1431
+ Object.assign(e, t), this.prototype.propEquality = e;
1432
+ }
1433
+ function wr(t) {
1434
+ let e = Object.create(this.prototype.stateEquality);
1435
+ Object.assign(e, t), this.prototype.stateEquality = e;
1436
+ }
1437
+ function Y(t, e) {
1438
+ typeof t == "function" ? t(e) : t && (t.current = e);
1439
+ }
1440
+ class je extends D {
1441
+ constructor() {
1442
+ super(...arguments), this.id = $(), this.queuedDomNodes = [], this.currentDomNodes = [], this.handleEl = (e) => {
1443
+ const { options: n } = this.context, { generatorName: r } = this.props;
1444
+ (!n.customRenderingReplaces || !Fe(r, n)) && this.updateElRef(e);
1445
+ }, this.updateElRef = (e) => {
1446
+ this.props.elRef && Y(this.props.elRef, e);
1447
+ };
1448
+ }
1449
+ render() {
1450
+ const { props: e, context: n } = this, { options: r } = n, { customGenerator: i, defaultGenerator: s, renderProps: l } = e, a = zt(e, [], this.handleEl);
1451
+ let o = !1, c, d = [], h;
1452
+ if (i != null) {
1453
+ const f = typeof i == "function" ? i(l, g) : i;
1454
+ if (f === !0)
1455
+ o = !0;
1456
+ else {
1457
+ const p = f && typeof f == "object";
1458
+ p && "html" in f ? a.dangerouslySetInnerHTML = { __html: f.html } : p && "domNodes" in f ? d = Array.prototype.slice.call(f.domNodes) : (p ? gn(f) : typeof f != "function") ? c = f : h = f;
1459
+ }
1460
+ } else
1461
+ o = !Fe(e.generatorName, r);
1462
+ return o && s && (c = s(l)), this.queuedDomNodes = d, this.currentGeneratorMeta = h, g(e.elTag, a, c);
1463
+ }
1464
+ componentDidMount() {
1465
+ this.applyQueueudDomNodes(), this.triggerCustomRendering(!0);
1466
+ }
1467
+ componentDidUpdate() {
1468
+ this.applyQueueudDomNodes(), this.triggerCustomRendering(!0);
1469
+ }
1470
+ componentWillUnmount() {
1471
+ this.triggerCustomRendering(!1);
1472
+ }
1473
+ triggerCustomRendering(e) {
1474
+ var n;
1475
+ const { props: r, context: i } = this, { handleCustomRendering: s, customRenderingMetaMap: l } = i.options;
1476
+ if (s) {
1477
+ const a = (n = this.currentGeneratorMeta) !== null && n !== void 0 ? n : l == null ? void 0 : l[r.generatorName];
1478
+ a && s(Object.assign(Object.assign({
1479
+ id: this.id,
1480
+ isActive: e,
1481
+ containerEl: this.base,
1482
+ reportNewContainerEl: this.updateElRef,
1483
+ // front-end framework tells us about new container els
1484
+ generatorMeta: a
1485
+ }, r), { elClasses: (r.elClasses || []).filter(kr) }));
1486
+ }
1487
+ }
1488
+ applyQueueudDomNodes() {
1489
+ const { queuedDomNodes: e, currentDomNodes: n } = this, r = this.base;
1490
+ if (!K(e, n)) {
1491
+ n.forEach(Rt);
1492
+ for (let i of e)
1493
+ r.appendChild(i);
1494
+ this.currentDomNodes = e;
1495
+ }
1496
+ }
1497
+ }
1498
+ je.addPropsEquality({
1499
+ elClasses: K,
1500
+ elStyle: _,
1501
+ elAttrs: gr,
1502
+ renderProps: _
1503
+ });
1504
+ function Fe(t, e) {
1505
+ var n;
1506
+ return !!(e.handleCustomRendering && t && (!((n = e.customRenderingMetaMap) === null || n === void 0) && n[t]));
1507
+ }
1508
+ function zt(t, e, n) {
1509
+ const r = Object.assign(Object.assign({}, t.elAttrs), { ref: n });
1510
+ return (t.elClasses || e) && (r.className = (t.elClasses || []).concat(e || []).concat(r.className || []).filter(Boolean).join(" ")), t.elStyle && (r.style = t.elStyle), r;
1511
+ }
1512
+ function kr(t) {
1513
+ return !!t;
1514
+ }
1515
+ const Rr = Ft(0);
1516
+ class T extends pe {
1517
+ constructor() {
1518
+ super(...arguments), this.InnerContent = Mr.bind(void 0, this), this.handleEl = (e) => {
1519
+ this.el = e, this.props.elRef && (Y(this.props.elRef, e), e && this.didMountMisfire && this.componentDidMount());
1520
+ };
1521
+ }
1522
+ render() {
1523
+ const { props: e } = this, n = Tr(e.classNameGenerator, e.renderProps);
1524
+ if (e.children) {
1525
+ const r = zt(e, n, this.handleEl), i = e.children(this.InnerContent, e.renderProps, r);
1526
+ return e.elTag ? g(e.elTag, r, i) : i;
1527
+ } else
1528
+ return g(je, Object.assign(Object.assign({}, e), { elRef: this.handleEl, elTag: e.elTag || "div", elClasses: (e.elClasses || []).concat(n), renderId: this.context }));
1529
+ }
1530
+ componentDidMount() {
1531
+ var e, n;
1532
+ this.el ? (n = (e = this.props).didMount) === null || n === void 0 || n.call(e, Object.assign(Object.assign({}, this.props.renderProps), { el: this.el })) : this.didMountMisfire = !0;
1533
+ }
1534
+ componentWillUnmount() {
1535
+ var e, n;
1536
+ (n = (e = this.props).willUnmount) === null || n === void 0 || n.call(e, Object.assign(Object.assign({}, this.props.renderProps), { el: this.el }));
1537
+ }
1538
+ }
1539
+ T.contextType = Rr;
1540
+ function Mr(t, e) {
1541
+ const n = t.props;
1542
+ return g(je, Object.assign({ renderProps: n.renderProps, generatorName: n.generatorName, customGenerator: n.customGenerator, defaultGenerator: n.defaultGenerator, renderId: t.context }, e));
1543
+ }
1544
+ function Tr(t, e) {
1545
+ const n = typeof t == "function" ? t(e) : t || [];
1546
+ return typeof n == "string" ? [n] : n;
1547
+ }
1548
+ class Ks extends D {
1549
+ render() {
1550
+ let { props: e, context: n } = this, { options: r } = n, i = { view: n.viewApi };
1551
+ return g(T, Object.assign({}, e, { elTag: e.elTag || "div", elClasses: [
1552
+ ...Ir(e.viewSpec),
1553
+ ...e.elClasses || []
1554
+ ], renderProps: i, classNameGenerator: r.viewClassNames, generatorName: void 0, didMount: r.viewDidMount, willUnmount: r.viewWillUnmount }), () => e.children);
1555
+ }
1556
+ }
1557
+ function Ir(t) {
1558
+ return [
1559
+ `fc-${t.type}-view`,
1560
+ "fc-view"
1561
+ ];
1562
+ }
1563
+ function Nr(t, e) {
1564
+ let n = null, r = null;
1565
+ return t.start && (n = e.createMarker(t.start)), t.end && (r = e.createMarker(t.end)), !n && !r || n && r && r < n ? null : { start: n, end: r };
1566
+ }
1567
+ function dt(t, e) {
1568
+ let n = [], { start: r } = e, i, s;
1569
+ for (t.sort(Or), i = 0; i < t.length; i += 1)
1570
+ s = t[i], s.start > r && n.push({ start: r, end: s.start }), s.end > r && (r = s.end);
1571
+ return r < e.end && n.push({ start: r, end: e.end }), n;
1572
+ }
1573
+ function Or(t, e) {
1574
+ return t.start.valueOf() - e.start.valueOf();
1575
+ }
1576
+ function fe(t, e) {
1577
+ let { start: n, end: r } = t, i = null;
1578
+ return e.start !== null && (n === null ? n = e.start : n = new Date(Math.max(n.valueOf(), e.start.valueOf()))), e.end != null && (r === null ? r = e.end : r = new Date(Math.min(r.valueOf(), e.end.valueOf()))), (n === null || r === null || n < r) && (i = { start: n, end: r }), i;
1579
+ }
1580
+ function Br(t, e) {
1581
+ return (t.start === null ? null : t.start.valueOf()) === (e.start === null ? null : e.start.valueOf()) && (t.end === null ? null : t.end.valueOf()) === (e.end === null ? null : e.end.valueOf());
1582
+ }
1583
+ function We(t, e) {
1584
+ return (t.end === null || e.start === null || t.end > e.start) && (t.start === null || e.end === null || t.start < e.end);
1585
+ }
1586
+ function Ge(t, e) {
1587
+ return (t.start === null || e.start !== null && e.start >= t.start) && (t.end === null || e.end !== null && e.end <= t.end);
1588
+ }
1589
+ function q(t, e) {
1590
+ return (t.start === null || e >= t.start) && (t.end === null || e < t.end);
1591
+ }
1592
+ function xr(t, e) {
1593
+ return e.start != null && t < e.start ? e.start : e.end != null && t >= e.end ? new Date(e.end.valueOf() - 1) : t;
1594
+ }
1595
+ function Lt(t) {
1596
+ let e = Math.floor(U(t.start, t.end)) || 1, n = b(t.start), r = R(n, e);
1597
+ return { start: n, end: r };
1598
+ }
1599
+ function Ve(t, e = v(0)) {
1600
+ let n = null, r = null;
1601
+ if (t.end) {
1602
+ r = b(t.end);
1603
+ let i = t.end.valueOf() - r.valueOf();
1604
+ i && i >= Z(e) && (r = R(r, 1));
1605
+ }
1606
+ return t.start && (n = b(t.start), r && r <= n && (r = R(n, 1))), { start: n, end: r };
1607
+ }
1608
+ function el(t) {
1609
+ let e = Ve(t);
1610
+ return U(e.start, e.end) > 1;
1611
+ }
1612
+ function ne(t, e, n, r) {
1613
+ return r === "year" ? v(n.diffWholeYears(t, e), "year") : r === "month" ? v(n.diffWholeMonths(t, e), "month") : Qn(t, e);
1614
+ }
1615
+ function tl(t, e) {
1616
+ switch (e.type) {
1617
+ case "CHANGE_DATE":
1618
+ return e.dateMarker;
1619
+ default:
1620
+ return t;
1621
+ }
1622
+ }
1623
+ function nl(t, e) {
1624
+ let n = t.initialDate;
1625
+ return n != null ? e.createMarker(n) : be(t.now, e);
1626
+ }
1627
+ function be(t, e) {
1628
+ return typeof t == "function" && (t = t()), t == null ? e.createNowMarker() : e.createMarker(t);
1629
+ }
1630
+ class rl {
1631
+ constructor(e) {
1632
+ this.props = e, this.nowDate = be(e.nowInput, e.dateEnv), this.initHiddenDays();
1633
+ }
1634
+ /* Date Range Computation
1635
+ ------------------------------------------------------------------------------------------------------------------*/
1636
+ // Builds a structure with info about what the dates/ranges will be for the "prev" view.
1637
+ buildPrev(e, n, r) {
1638
+ let { dateEnv: i } = this.props, s = i.subtract(
1639
+ i.startOf(n, e.currentRangeUnit),
1640
+ // important for start-of-month
1641
+ e.dateIncrement
1642
+ );
1643
+ return this.build(s, -1, r);
1644
+ }
1645
+ // Builds a structure with info about what the dates/ranges will be for the "next" view.
1646
+ buildNext(e, n, r) {
1647
+ let { dateEnv: i } = this.props, s = i.add(
1648
+ i.startOf(n, e.currentRangeUnit),
1649
+ // important for start-of-month
1650
+ e.dateIncrement
1651
+ );
1652
+ return this.build(s, 1, r);
1653
+ }
1654
+ // Builds a structure holding dates/ranges for rendering around the given date.
1655
+ // Optional direction param indicates whether the date is being incremented/decremented
1656
+ // from its previous value. decremented = -1, incremented = 1 (default).
1657
+ build(e, n, r = !0) {
1658
+ let { props: i } = this, s, l, a, o, c, d;
1659
+ return s = this.buildValidRange(), s = this.trimHiddenDays(s), r && (e = xr(e, s)), l = this.buildCurrentRangeInfo(e, n), a = /^(year|month|week|day)$/.test(l.unit), o = this.buildRenderRange(this.trimHiddenDays(l.range), l.unit, a), o = this.trimHiddenDays(o), c = o, i.showNonCurrentDates || (c = fe(c, l.range)), c = this.adjustActiveRange(c), c = fe(c, s), d = We(l.range, s), q(o, e) || (e = o.start), {
1660
+ currentDate: e,
1661
+ // constraint for where prev/next operations can go and where events can be dragged/resized to.
1662
+ // an object with optional start and end properties.
1663
+ validRange: s,
1664
+ // range the view is formally responsible for.
1665
+ // for example, a month view might have 1st-31st, excluding padded dates
1666
+ currentRange: l.range,
1667
+ // name of largest unit being displayed, like "month" or "week"
1668
+ currentRangeUnit: l.unit,
1669
+ isRangeAllDay: a,
1670
+ // dates that display events and accept drag-n-drop
1671
+ // will be `null` if no dates accept events
1672
+ activeRange: c,
1673
+ // date range with a rendered skeleton
1674
+ // includes not-active days that need some sort of DOM
1675
+ renderRange: o,
1676
+ // Duration object that denotes the first visible time of any given day
1677
+ slotMinTime: i.slotMinTime,
1678
+ // Duration object that denotes the exclusive visible end time of any given day
1679
+ slotMaxTime: i.slotMaxTime,
1680
+ isValid: d,
1681
+ // how far the current date will move for a prev/next operation
1682
+ dateIncrement: this.buildDateIncrement(l.duration)
1683
+ // pass a fallback (might be null) ^
1684
+ };
1685
+ }
1686
+ // Builds an object with optional start/end properties.
1687
+ // Indicates the minimum/maximum dates to display.
1688
+ // not responsible for trimming hidden days.
1689
+ buildValidRange() {
1690
+ let e = this.props.validRangeInput, n = typeof e == "function" ? e.call(this.props.calendarApi, this.nowDate) : e;
1691
+ return this.refineRange(n) || { start: null, end: null };
1692
+ }
1693
+ // Builds a structure with info about the "current" range, the range that is
1694
+ // highlighted as being the current month for example.
1695
+ // See build() for a description of `direction`.
1696
+ // Guaranteed to have `range` and `unit` properties. `duration` is optional.
1697
+ buildCurrentRangeInfo(e, n) {
1698
+ let { props: r } = this, i = null, s = null, l = null, a;
1699
+ return r.duration ? (i = r.duration, s = r.durationUnit, l = this.buildRangeFromDuration(e, n, i, s)) : (a = this.props.dayCount) ? (s = "day", l = this.buildRangeFromDayCount(e, n, a)) : (l = this.buildCustomVisibleRange(e)) ? s = r.dateEnv.greatestWholeUnit(l.start, l.end).unit : (i = this.getFallbackDuration(), s = it(i).unit, l = this.buildRangeFromDuration(e, n, i, s)), { duration: i, unit: s, range: l };
1700
+ }
1701
+ getFallbackDuration() {
1702
+ return v({ day: 1 });
1703
+ }
1704
+ // Returns a new activeRange to have time values (un-ambiguate)
1705
+ // slotMinTime or slotMaxTime causes the range to expand.
1706
+ adjustActiveRange(e) {
1707
+ let { dateEnv: n, usesMinMaxTime: r, slotMinTime: i, slotMaxTime: s } = this.props, { start: l, end: a } = e;
1708
+ return r && (W(i) < 0 && (l = b(l), l = n.add(l, i)), W(s) > 1 && (a = b(a), a = R(a, -1), a = n.add(a, s))), { start: l, end: a };
1709
+ }
1710
+ // Builds the "current" range when it is specified as an explicit duration.
1711
+ // `unit` is the already-computed greatestDurationDenominator unit of duration.
1712
+ buildRangeFromDuration(e, n, r, i) {
1713
+ let { dateEnv: s, dateAlignment: l } = this.props, a, o, c;
1714
+ if (!l) {
1715
+ let { dateIncrement: h } = this.props;
1716
+ h && Z(h) < Z(r) ? l = it(h).unit : l = i;
1717
+ }
1718
+ W(r) <= 1 && this.isHiddenDay(a) && (a = this.skipHiddenDays(a, n), a = b(a));
1719
+ function d() {
1720
+ a = s.startOf(e, l), o = s.add(a, r), c = { start: a, end: o };
1721
+ }
1722
+ return d(), this.trimHiddenDays(c) || (e = this.skipHiddenDays(e, n), d()), c;
1723
+ }
1724
+ // Builds the "current" range when a dayCount is specified.
1725
+ buildRangeFromDayCount(e, n, r) {
1726
+ let { dateEnv: i, dateAlignment: s } = this.props, l = 0, a = e, o;
1727
+ s && (a = i.startOf(a, s)), a = b(a), a = this.skipHiddenDays(a, n), o = a;
1728
+ do
1729
+ o = R(o, 1), this.isHiddenDay(o) || (l += 1);
1730
+ while (l < r);
1731
+ return { start: a, end: o };
1732
+ }
1733
+ // Builds a normalized range object for the "visible" range,
1734
+ // which is a way to define the currentRange and activeRange at the same time.
1735
+ buildCustomVisibleRange(e) {
1736
+ let { props: n } = this, r = n.visibleRangeInput, i = typeof r == "function" ? r.call(n.calendarApi, n.dateEnv.toDate(e)) : r, s = this.refineRange(i);
1737
+ return s && (s.start == null || s.end == null) ? null : s;
1738
+ }
1739
+ // Computes the range that will represent the element/cells for *rendering*,
1740
+ // but which may have voided days/times.
1741
+ // not responsible for trimming hidden days.
1742
+ buildRenderRange(e, n, r) {
1743
+ return e;
1744
+ }
1745
+ // Compute the duration value that should be added/substracted to the current date
1746
+ // when a prev/next operation happens.
1747
+ buildDateIncrement(e) {
1748
+ let { dateIncrement: n } = this.props, r;
1749
+ return n || ((r = this.props.dateAlignment) ? v(1, r) : e || v({ days: 1 }));
1750
+ }
1751
+ refineRange(e) {
1752
+ if (e) {
1753
+ let n = Nr(e, this.props.dateEnv);
1754
+ return n && (n = Ve(n)), n;
1755
+ }
1756
+ return null;
1757
+ }
1758
+ /* Hidden Days
1759
+ ------------------------------------------------------------------------------------------------------------------*/
1760
+ // Initializes internal variables related to calculating hidden days-of-week
1761
+ initHiddenDays() {
1762
+ let e = this.props.hiddenDays || [], n = [], r = 0, i;
1763
+ for (this.props.weekends === !1 && e.push(0, 6), i = 0; i < 7; i += 1)
1764
+ (n[i] = e.indexOf(i) !== -1) || (r += 1);
1765
+ if (!r)
1766
+ throw new Error("invalid hiddenDays");
1767
+ this.isHiddenDayHash = n;
1768
+ }
1769
+ // Remove days from the beginning and end of the range that are computed as hidden.
1770
+ // If the whole range is trimmed off, returns null
1771
+ trimHiddenDays(e) {
1772
+ let { start: n, end: r } = e;
1773
+ return n && (n = this.skipHiddenDays(n)), r && (r = this.skipHiddenDays(r, -1, !0)), n == null || r == null || n < r ? { start: n, end: r } : null;
1774
+ }
1775
+ // Is the current day hidden?
1776
+ // `day` is a day-of-week index (0-6), or a Date (used for UTC)
1777
+ isHiddenDay(e) {
1778
+ return e instanceof Date && (e = e.getUTCDay()), this.isHiddenDayHash[e];
1779
+ }
1780
+ // Incrementing the current day until it is no longer a hidden day, returning a copy.
1781
+ // DOES NOT CONSIDER validRange!
1782
+ // If the initial value of `date` is not a hidden day, don't do anything.
1783
+ // Pass `isExclusive` as `true` if you are dealing with an end date.
1784
+ // `inc` defaults to `1` (increment one day forward each time)
1785
+ skipHiddenDays(e, n = 1, r = !1) {
1786
+ for (; this.isHiddenDayHash[(e.getUTCDay() + (r ? n : 0) + 7) % 7]; )
1787
+ e = R(e, n);
1788
+ return e;
1789
+ }
1790
+ }
1791
+ function Ye(t, e, n, r) {
1792
+ return {
1793
+ instanceId: $(),
1794
+ defId: t,
1795
+ range: e,
1796
+ forcedStartTzo: n ?? null,
1797
+ forcedEndTzo: r ?? null
1798
+ };
1799
+ }
1800
+ function _r(t, e, n, r) {
1801
+ for (let i = 0; i < r.length; i += 1) {
1802
+ let s = r[i].parse(t, n);
1803
+ if (s) {
1804
+ let { allDay: l } = t;
1805
+ return l == null && (l = e, l == null && (l = s.allDayGuess, l == null && (l = !1))), {
1806
+ allDay: l,
1807
+ duration: s.duration,
1808
+ typeData: s.typeData,
1809
+ typeId: i
1810
+ };
1811
+ }
1812
+ }
1813
+ return null;
1814
+ }
1815
+ function H(t, e, n) {
1816
+ let { dateEnv: r, pluginHooks: i, options: s } = n, { defs: l, instances: a } = t;
1817
+ a = de(a, (o) => !l[o.defId].recurringDef);
1818
+ for (let o in l) {
1819
+ let c = l[o];
1820
+ if (c.recurringDef) {
1821
+ let { duration: d } = c.recurringDef;
1822
+ d || (d = c.allDay ? s.defaultAllDayEventDuration : s.defaultTimedEventDuration);
1823
+ let h = Hr(c, d, e, r, i.recurringTypes);
1824
+ for (let f of h) {
1825
+ let p = Ye(o, {
1826
+ start: f,
1827
+ end: r.add(f, d)
1828
+ });
1829
+ a[p.instanceId] = p;
1830
+ }
1831
+ }
1832
+ }
1833
+ return { defs: l, instances: a };
1834
+ }
1835
+ function Hr(t, e, n, r, i) {
1836
+ let l = i[t.recurringDef.typeId].expand(t.recurringDef.typeData, {
1837
+ start: r.subtract(n.start, e),
1838
+ end: n.end
1839
+ }, r);
1840
+ return t.allDay && (l = l.map(b)), l;
1841
+ }
1842
+ const ae = {
1843
+ id: String,
1844
+ groupId: String,
1845
+ title: String,
1846
+ url: String,
1847
+ interactive: Boolean
1848
+ }, Pt = {
1849
+ start: u,
1850
+ end: u,
1851
+ date: u,
1852
+ allDay: Boolean
1853
+ }, Ur = Object.assign(Object.assign(Object.assign({}, ae), Pt), { extendedProps: u });
1854
+ function Qt(t, e, n, r, i = qe(n), s, l) {
1855
+ let { refined: a, extra: o } = jt(t, n, i), c = zr(e, n), d = _r(a, c, n.dateEnv, n.pluginHooks.recurringTypes);
1856
+ if (d) {
1857
+ let f = ze(a, o, e ? e.sourceId : "", d.allDay, !!d.duration, n, s);
1858
+ return f.recurringDef = {
1859
+ typeId: d.typeId,
1860
+ typeData: d.typeData,
1861
+ duration: d.duration
1862
+ }, { def: f, instance: null };
1863
+ }
1864
+ let h = Fr(a, c, n, r);
1865
+ if (h) {
1866
+ let f = ze(a, o, e ? e.sourceId : "", h.allDay, h.hasEnd, n, s), p = Ye(f.defId, h.range, h.forcedStartTzo, h.forcedEndTzo);
1867
+ return l && f.publicId && l[f.publicId] && (p.instanceId = l[f.publicId]), { def: f, instance: p };
1868
+ }
1869
+ return null;
1870
+ }
1871
+ function jt(t, e, n = qe(e)) {
1872
+ return Qe(t, n);
1873
+ }
1874
+ function qe(t) {
1875
+ return Object.assign(Object.assign(Object.assign({}, he), Ur), t.pluginHooks.eventRefiners);
1876
+ }
1877
+ function ze(t, e, n, r, i, s, l) {
1878
+ let a = {
1879
+ title: t.title || "",
1880
+ groupId: t.groupId || "",
1881
+ publicId: t.id || "",
1882
+ url: t.url || "",
1883
+ recurringDef: null,
1884
+ defId: (l && t.id ? l[t.id] : "") || $(),
1885
+ sourceId: n,
1886
+ allDay: r,
1887
+ hasEnd: i,
1888
+ interactive: t.interactive,
1889
+ ui: Wt(t, s),
1890
+ extendedProps: Object.assign(Object.assign({}, t.extendedProps || {}), e)
1891
+ };
1892
+ for (let o of s.pluginHooks.eventDefMemberAdders)
1893
+ Object.assign(a, o(t));
1894
+ return Object.freeze(a.ui.classNames), Object.freeze(a.extendedProps), a;
1895
+ }
1896
+ function Fr(t, e, n, r) {
1897
+ let { allDay: i } = t, s, l = null, a = !1, o, c = null, d = t.start != null ? t.start : t.date;
1898
+ if (s = n.dateEnv.createMarkerMeta(d), s)
1899
+ l = s.marker;
1900
+ else if (!r)
1901
+ return null;
1902
+ return t.end != null && (o = n.dateEnv.createMarkerMeta(t.end)), i == null && (e != null ? i = e : i = (!s || s.isTimeUnspecified) && (!o || o.isTimeUnspecified)), i && l && (l = b(l)), o && (c = o.marker, i && (c = b(c)), l && c <= l && (c = null)), c ? a = !0 : r || (a = n.options.forceEventDuration || !1, c = n.dateEnv.add(l, i ? n.options.defaultAllDayEventDuration : n.options.defaultTimedEventDuration)), {
1903
+ allDay: i,
1904
+ hasEnd: a,
1905
+ range: { start: l, end: c },
1906
+ forcedStartTzo: s ? s.forcedTzo : null,
1907
+ forcedEndTzo: o ? o.forcedTzo : null
1908
+ };
1909
+ }
1910
+ function zr(t, e) {
1911
+ let n = null;
1912
+ return t && (n = t.defaultAllDay), n == null && (n = e.options.defaultAllDay), n;
1913
+ }
1914
+ function X(t, e, n, r, i, s) {
1915
+ let l = F(), a = qe(n);
1916
+ for (let o of t) {
1917
+ let c = Qt(o, e, n, r, a, i, s);
1918
+ c && Le(c, l);
1919
+ }
1920
+ return l;
1921
+ }
1922
+ function Le(t, e = F()) {
1923
+ return e.defs[t.def.defId] = t.def, t.instance && (e.instances[t.instance.instanceId] = t.instance), e;
1924
+ }
1925
+ function Lr(t, e) {
1926
+ let n = t.instances[e];
1927
+ if (n) {
1928
+ let r = t.defs[n.defId], i = ye(t, (s) => Pr(r, s));
1929
+ return i.defs[r.defId] = r, i.instances[n.instanceId] = n, i;
1930
+ }
1931
+ return F();
1932
+ }
1933
+ function Pr(t, e) {
1934
+ return !!(t.groupId && t.groupId === e.groupId);
1935
+ }
1936
+ function F() {
1937
+ return { defs: {}, instances: {} };
1938
+ }
1939
+ function Ze(t, e) {
1940
+ return {
1941
+ defs: Object.assign(Object.assign({}, t.defs), e.defs),
1942
+ instances: Object.assign(Object.assign({}, t.instances), e.instances)
1943
+ };
1944
+ }
1945
+ function ye(t, e) {
1946
+ let n = de(t.defs, e), r = de(t.instances, (i) => n[i.defId]);
1947
+ return { defs: n, instances: r };
1948
+ }
1949
+ function Qr(t, e) {
1950
+ let { defs: n, instances: r } = t, i = {}, s = {};
1951
+ for (let l in n)
1952
+ e.defs[l] || (i[l] = n[l]);
1953
+ for (let l in r)
1954
+ !e.instances[l] && // not explicitly excluded
1955
+ i[r[l].defId] && (s[l] = r[l]);
1956
+ return {
1957
+ defs: i,
1958
+ instances: s
1959
+ };
1960
+ }
1961
+ function jr(t, e) {
1962
+ return Array.isArray(t) ? X(t, null, e, !0) : typeof t == "object" && t ? X([t], null, e, !0) : t != null ? String(t) : null;
1963
+ }
1964
+ function ft(t) {
1965
+ return Array.isArray(t) ? t : typeof t == "string" ? t.split(/\s+/) : [];
1966
+ }
1967
+ const he = {
1968
+ display: String,
1969
+ editable: Boolean,
1970
+ startEditable: Boolean,
1971
+ durationEditable: Boolean,
1972
+ constraint: u,
1973
+ overlap: u,
1974
+ allow: u,
1975
+ className: ft,
1976
+ classNames: ft,
1977
+ color: String,
1978
+ backgroundColor: String,
1979
+ borderColor: String,
1980
+ textColor: String
1981
+ }, Wr = {
1982
+ display: null,
1983
+ startEditable: null,
1984
+ durationEditable: null,
1985
+ constraints: [],
1986
+ overlap: null,
1987
+ allows: [],
1988
+ backgroundColor: "",
1989
+ borderColor: "",
1990
+ textColor: "",
1991
+ classNames: []
1992
+ };
1993
+ function Wt(t, e) {
1994
+ let n = jr(t.constraint, e);
1995
+ return {
1996
+ display: t.display || null,
1997
+ startEditable: t.startEditable != null ? t.startEditable : t.editable,
1998
+ durationEditable: t.durationEditable != null ? t.durationEditable : t.editable,
1999
+ constraints: n != null ? [n] : [],
2000
+ overlap: t.overlap != null ? t.overlap : null,
2001
+ allows: t.allow != null ? [t.allow] : [],
2002
+ backgroundColor: t.backgroundColor || t.color || "",
2003
+ borderColor: t.borderColor || t.color || "",
2004
+ textColor: t.textColor || "",
2005
+ classNames: (t.className || []).concat(t.classNames || [])
2006
+ // join singular and plural
2007
+ };
2008
+ }
2009
+ function Gt(t) {
2010
+ return t.reduce(Gr, Wr);
2011
+ }
2012
+ function Gr(t, e) {
2013
+ return {
2014
+ display: e.display != null ? e.display : t.display,
2015
+ startEditable: e.startEditable != null ? e.startEditable : t.startEditable,
2016
+ durationEditable: e.durationEditable != null ? e.durationEditable : t.durationEditable,
2017
+ constraints: t.constraints.concat(e.constraints),
2018
+ overlap: typeof e.overlap == "boolean" ? e.overlap : t.overlap,
2019
+ allows: t.allows.concat(e.allows),
2020
+ backgroundColor: e.backgroundColor || t.backgroundColor,
2021
+ borderColor: e.borderColor || t.borderColor,
2022
+ textColor: e.textColor || t.textColor,
2023
+ classNames: t.classNames.concat(e.classNames)
2024
+ };
2025
+ }
2026
+ const Vr = {
2027
+ id: String,
2028
+ defaultAllDay: Boolean,
2029
+ url: String,
2030
+ format: String,
2031
+ events: u,
2032
+ eventDataTransform: u,
2033
+ // for any network-related sources
2034
+ success: u,
2035
+ failure: u
2036
+ };
2037
+ function Yr(t, e, n = qr(e)) {
2038
+ let r;
2039
+ if (typeof t == "string" ? r = { url: t } : typeof t == "function" || Array.isArray(t) ? r = { events: t } : typeof t == "object" && t && (r = t), r) {
2040
+ let { refined: i, extra: s } = Qe(r, n), l = Zr(i, e);
2041
+ if (l)
2042
+ return {
2043
+ _raw: t,
2044
+ isFetching: !1,
2045
+ latestFetchId: "",
2046
+ fetchRange: null,
2047
+ defaultAllDay: i.defaultAllDay,
2048
+ eventDataTransform: i.eventDataTransform,
2049
+ success: i.success,
2050
+ failure: i.failure,
2051
+ publicId: i.id || "",
2052
+ sourceId: $(),
2053
+ sourceDefId: l.sourceDefId,
2054
+ meta: l.meta,
2055
+ ui: Wt(i, e),
2056
+ extendedProps: s
2057
+ };
2058
+ }
2059
+ return null;
2060
+ }
2061
+ function qr(t) {
2062
+ return Object.assign(Object.assign(Object.assign({}, he), Vr), t.pluginHooks.eventSourceRefiners);
2063
+ }
2064
+ function Zr(t, e) {
2065
+ let n = e.pluginHooks.eventSourceDefs;
2066
+ for (let r = n.length - 1; r >= 0; r -= 1) {
2067
+ let s = n[r].parseMeta(t);
2068
+ if (s)
2069
+ return { sourceDefId: r, meta: s };
2070
+ }
2071
+ return null;
2072
+ }
2073
+ function il(t, e, n, r, i) {
2074
+ switch (e.type) {
2075
+ case "RECEIVE_EVENTS":
2076
+ return Jr(t, n[e.sourceId], e.fetchId, e.fetchRange, e.rawEvents, i);
2077
+ case "RESET_RAW_EVENTS":
2078
+ return Xr(t, n[e.sourceId], e.rawEvents, r.activeRange, i);
2079
+ case "ADD_EVENTS":
2080
+ return $r(
2081
+ t,
2082
+ e.eventStore,
2083
+ // new ones
2084
+ r ? r.activeRange : null,
2085
+ i
2086
+ );
2087
+ case "RESET_EVENTS":
2088
+ return e.eventStore;
2089
+ case "MERGE_EVENTS":
2090
+ return Ze(t, e.eventStore);
2091
+ case "PREV":
2092
+ case "NEXT":
2093
+ case "CHANGE_DATE":
2094
+ case "CHANGE_VIEW_TYPE":
2095
+ return r ? H(t, r.activeRange, i) : t;
2096
+ case "REMOVE_EVENTS":
2097
+ return Qr(t, e.eventStore);
2098
+ case "REMOVE_EVENT_SOURCE":
2099
+ return Yt(t, e.sourceId);
2100
+ case "REMOVE_ALL_EVENT_SOURCES":
2101
+ return ye(t, (s) => !s.sourceId);
2102
+ case "REMOVE_ALL_EVENTS":
2103
+ return F();
2104
+ default:
2105
+ return t;
2106
+ }
2107
+ }
2108
+ function Jr(t, e, n, r, i, s) {
2109
+ if (e && // not already removed
2110
+ n === e.latestFetchId) {
2111
+ let l = X(Vt(i, e, s), e, s);
2112
+ return r && (l = H(l, r, s)), Ze(Yt(t, e.sourceId), l);
2113
+ }
2114
+ return t;
2115
+ }
2116
+ function Xr(t, e, n, r, i) {
2117
+ const { defIdMap: s, instanceIdMap: l } = ei(t);
2118
+ let a = X(Vt(n, e, i), e, i, !1, s, l);
2119
+ return H(a, r, i);
2120
+ }
2121
+ function Vt(t, e, n) {
2122
+ let r = n.options.eventDataTransform, i = e ? e.eventDataTransform : null;
2123
+ return i && (t = ht(t, i)), r && (t = ht(t, r)), t;
2124
+ }
2125
+ function ht(t, e) {
2126
+ let n;
2127
+ if (!e)
2128
+ n = t;
2129
+ else {
2130
+ n = [];
2131
+ for (let r of t) {
2132
+ let i = e(r);
2133
+ i ? n.push(i) : i == null && n.push(r);
2134
+ }
2135
+ }
2136
+ return n;
2137
+ }
2138
+ function $r(t, e, n, r) {
2139
+ return n && (e = H(e, n, r)), Ze(t, e);
2140
+ }
2141
+ function sl(t, e, n) {
2142
+ let { defs: r } = t, i = J(t.instances, (s) => r[s.defId].allDay ? s : Object.assign(Object.assign({}, s), { range: {
2143
+ start: n.createMarker(e.toDate(s.range.start, s.forcedStartTzo)),
2144
+ end: n.createMarker(e.toDate(s.range.end, s.forcedEndTzo))
2145
+ }, forcedStartTzo: n.canComputeOffset ? null : s.forcedStartTzo, forcedEndTzo: n.canComputeOffset ? null : s.forcedEndTzo }));
2146
+ return { defs: r, instances: i };
2147
+ }
2148
+ function Yt(t, e) {
2149
+ return ye(t, (n) => n.sourceId !== e);
2150
+ }
2151
+ function Kr(t, e) {
2152
+ return {
2153
+ defs: t.defs,
2154
+ instances: de(t.instances, (n) => !e[n.instanceId])
2155
+ };
2156
+ }
2157
+ function ei(t) {
2158
+ const { defs: e, instances: n } = t, r = {}, i = {};
2159
+ for (let s in e) {
2160
+ const l = e[s], { publicId: a } = l;
2161
+ a && (r[a] = s);
2162
+ }
2163
+ for (let s in n) {
2164
+ const l = n[s], a = e[l.defId], { publicId: o } = a;
2165
+ o && (i[o] = s);
2166
+ }
2167
+ return { defIdMap: r, instanceIdMap: i };
2168
+ }
2169
+ class ti {
2170
+ constructor() {
2171
+ this.handlers = {}, this.thisContext = null;
2172
+ }
2173
+ setThisContext(e) {
2174
+ this.thisContext = e;
2175
+ }
2176
+ setOptions(e) {
2177
+ this.options = e;
2178
+ }
2179
+ on(e, n) {
2180
+ ni(this.handlers, e, n);
2181
+ }
2182
+ off(e, n) {
2183
+ ri(this.handlers, e, n);
2184
+ }
2185
+ trigger(e, ...n) {
2186
+ let r = this.handlers[e] || [], i = this.options && this.options[e], s = [].concat(i || [], r);
2187
+ for (let l of s)
2188
+ l.apply(this.thisContext, n);
2189
+ }
2190
+ hasHandlers(e) {
2191
+ return !!(this.handlers[e] && this.handlers[e].length || this.options && this.options[e]);
2192
+ }
2193
+ }
2194
+ function ni(t, e, n) {
2195
+ (t[e] || (t[e] = [])).push(n);
2196
+ }
2197
+ function ri(t, e, n) {
2198
+ n ? t[e] && (t[e] = t[e].filter((r) => r !== n)) : delete t[e];
2199
+ }
2200
+ const ii = {
2201
+ startTime: "09:00",
2202
+ endTime: "17:00",
2203
+ daysOfWeek: [1, 2, 3, 4, 5],
2204
+ display: "inverse-background",
2205
+ classNames: "fc-non-business",
2206
+ groupId: "_businessHours"
2207
+ // so multiple defs get grouped
2208
+ };
2209
+ function ll(t, e) {
2210
+ return X(si(t), null, e);
2211
+ }
2212
+ function si(t) {
2213
+ let e;
2214
+ return t === !0 ? e = [{}] : Array.isArray(t) ? e = t.filter((n) => n.daysOfWeek) : typeof t == "object" && t ? e = [t] : e = [], e = e.map((n) => Object.assign(Object.assign({}, ii), n)), e;
2215
+ }
2216
+ function li(t, e, n) {
2217
+ n.emitter.trigger("select", Object.assign(Object.assign({}, Je(t, n)), { jsEvent: e ? e.origEvent : null, view: n.viewApi || n.calendarApi.view }));
2218
+ }
2219
+ function ai(t, e) {
2220
+ e.emitter.trigger("unselect", {
2221
+ jsEvent: t ? t.origEvent : null,
2222
+ view: e.viewApi || e.calendarApi.view
2223
+ });
2224
+ }
2225
+ function Je(t, e) {
2226
+ let n = {};
2227
+ for (let r of e.pluginHooks.dateSpanTransforms)
2228
+ Object.assign(n, r(t, e));
2229
+ return Object.assign(n, Di(t, e.dateEnv)), n;
2230
+ }
2231
+ function gt(t, e, n) {
2232
+ let { dateEnv: r, options: i } = n, s = e;
2233
+ return t ? (s = b(s), s = r.add(s, i.defaultAllDayEventDuration)) : s = r.add(s, i.defaultTimedEventDuration), s;
2234
+ }
2235
+ function oi(t, e, n, r) {
2236
+ let i = ge(t.defs, e), s = F();
2237
+ for (let l in t.defs) {
2238
+ let a = t.defs[l];
2239
+ s.defs[l] = ci(a, i[l], n, r);
2240
+ }
2241
+ for (let l in t.instances) {
2242
+ let a = t.instances[l], o = s.defs[a.defId];
2243
+ s.instances[l] = ui(a, o, i[a.defId], n, r);
2244
+ }
2245
+ return s;
2246
+ }
2247
+ function ci(t, e, n, r) {
2248
+ let i = n.standardProps || {};
2249
+ i.hasEnd == null && e.durationEditable && (n.startDelta || n.endDelta) && (i.hasEnd = !0);
2250
+ let s = Object.assign(Object.assign(Object.assign({}, t), i), { ui: Object.assign(Object.assign({}, t.ui), i.ui) });
2251
+ n.extendedProps && (s.extendedProps = Object.assign(Object.assign({}, s.extendedProps), n.extendedProps));
2252
+ for (let l of r.pluginHooks.eventDefMutationAppliers)
2253
+ l(s, n, r);
2254
+ return !s.hasEnd && r.options.forceEventDuration && (s.hasEnd = !0), s;
2255
+ }
2256
+ function ui(t, e, n, r, i) {
2257
+ let { dateEnv: s } = i, l = r.standardProps && r.standardProps.allDay === !0, a = r.standardProps && r.standardProps.hasEnd === !1, o = Object.assign({}, t);
2258
+ return l && (o.range = Lt(o.range)), r.datesDelta && n.startEditable && (o.range = {
2259
+ start: s.add(o.range.start, r.datesDelta),
2260
+ end: s.add(o.range.end, r.datesDelta)
2261
+ }), r.startDelta && n.durationEditable && (o.range = {
2262
+ start: s.add(o.range.start, r.startDelta),
2263
+ end: o.range.end
2264
+ }), r.endDelta && n.durationEditable && (o.range = {
2265
+ start: o.range.start,
2266
+ end: s.add(o.range.end, r.endDelta)
2267
+ }), a && (o.range = {
2268
+ start: o.range.start,
2269
+ end: gt(e.allDay, o.range.start, i)
2270
+ }), e.allDay && (o.range = {
2271
+ start: b(o.range.start),
2272
+ end: b(o.range.end)
2273
+ }), o.range.end < o.range.start && (o.range.end = gt(e.allDay, o.range.start, i)), o;
2274
+ }
2275
+ class Q {
2276
+ constructor(e, n) {
2277
+ this.context = e, this.internalEventSource = n;
2278
+ }
2279
+ remove() {
2280
+ this.context.dispatch({
2281
+ type: "REMOVE_EVENT_SOURCE",
2282
+ sourceId: this.internalEventSource.sourceId
2283
+ });
2284
+ }
2285
+ refetch() {
2286
+ this.context.dispatch({
2287
+ type: "FETCH_EVENT_SOURCES",
2288
+ sourceIds: [this.internalEventSource.sourceId],
2289
+ isRefetch: !0
2290
+ });
2291
+ }
2292
+ get id() {
2293
+ return this.internalEventSource.publicId;
2294
+ }
2295
+ get url() {
2296
+ return this.internalEventSource.meta.url;
2297
+ }
2298
+ get format() {
2299
+ return this.internalEventSource.meta.format;
2300
+ }
2301
+ }
2302
+ class S {
2303
+ // instance will be null if expressing a recurring event that has no current instances,
2304
+ // OR if trying to validate an incoming external event that has no dates assigned
2305
+ constructor(e, n, r) {
2306
+ this._context = e, this._def = n, this._instance = r || null;
2307
+ }
2308
+ /*
2309
+ TODO: make event struct more responsible for this
2310
+ */
2311
+ setProp(e, n) {
2312
+ if (e in Pt)
2313
+ console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");
2314
+ else if (e === "id")
2315
+ n = ae[e](n), this.mutate({
2316
+ standardProps: { publicId: n }
2317
+ // hardcoded internal name
2318
+ });
2319
+ else if (e in ae)
2320
+ n = ae[e](n), this.mutate({
2321
+ standardProps: { [e]: n }
2322
+ });
2323
+ else if (e in he) {
2324
+ let r = he[e](n);
2325
+ e === "color" ? r = { backgroundColor: n, borderColor: n } : e === "editable" ? r = { startEditable: n, durationEditable: n } : r = { [e]: n }, this.mutate({
2326
+ standardProps: { ui: r }
2327
+ });
2328
+ } else
2329
+ console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`);
2330
+ }
2331
+ setExtendedProp(e, n) {
2332
+ this.mutate({
2333
+ extendedProps: { [e]: n }
2334
+ });
2335
+ }
2336
+ setStart(e, n = {}) {
2337
+ let { dateEnv: r } = this._context, i = r.createMarker(e);
2338
+ if (i && this._instance) {
2339
+ let s = this._instance.range, l = ne(s.start, i, r, n.granularity);
2340
+ n.maintainDuration ? this.mutate({ datesDelta: l }) : this.mutate({ startDelta: l });
2341
+ }
2342
+ }
2343
+ setEnd(e, n = {}) {
2344
+ let { dateEnv: r } = this._context, i;
2345
+ if (!(e != null && (i = r.createMarker(e), !i)) && this._instance)
2346
+ if (i) {
2347
+ let s = ne(this._instance.range.end, i, r, n.granularity);
2348
+ this.mutate({ endDelta: s });
2349
+ } else
2350
+ this.mutate({ standardProps: { hasEnd: !1 } });
2351
+ }
2352
+ setDates(e, n, r = {}) {
2353
+ let { dateEnv: i } = this._context, s = { allDay: r.allDay }, l = i.createMarker(e), a;
2354
+ if (l && !(n != null && (a = i.createMarker(n), !a)) && this._instance) {
2355
+ let o = this._instance.range;
2356
+ r.allDay === !0 && (o = Lt(o));
2357
+ let c = ne(o.start, l, i, r.granularity);
2358
+ if (a) {
2359
+ let d = ne(o.end, a, i, r.granularity);
2360
+ _n(c, d) ? this.mutate({ datesDelta: c, standardProps: s }) : this.mutate({ startDelta: c, endDelta: d, standardProps: s });
2361
+ } else
2362
+ s.hasEnd = !1, this.mutate({ datesDelta: c, standardProps: s });
2363
+ }
2364
+ }
2365
+ moveStart(e) {
2366
+ let n = v(e);
2367
+ n && this.mutate({ startDelta: n });
2368
+ }
2369
+ moveEnd(e) {
2370
+ let n = v(e);
2371
+ n && this.mutate({ endDelta: n });
2372
+ }
2373
+ moveDates(e) {
2374
+ let n = v(e);
2375
+ n && this.mutate({ datesDelta: n });
2376
+ }
2377
+ setAllDay(e, n = {}) {
2378
+ let r = { allDay: e }, { maintainDuration: i } = n;
2379
+ i == null && (i = this._context.options.allDayMaintainDuration), this._def.allDay !== e && (r.hasEnd = i), this.mutate({ standardProps: r });
2380
+ }
2381
+ formatRange(e) {
2382
+ let { dateEnv: n } = this._context, r = this._instance, i = C(e);
2383
+ return this._def.hasEnd ? n.formatRange(r.range.start, r.range.end, i, {
2384
+ forcedStartTzo: r.forcedStartTzo,
2385
+ forcedEndTzo: r.forcedEndTzo
2386
+ }) : n.format(r.range.start, i, {
2387
+ forcedTzo: r.forcedStartTzo
2388
+ });
2389
+ }
2390
+ mutate(e) {
2391
+ let n = this._instance;
2392
+ if (n) {
2393
+ let r = this._def, i = this._context, { eventStore: s } = i.getCurrentData(), l = Lr(s, n.instanceId);
2394
+ l = oi(l, {
2395
+ "": {
2396
+ display: "",
2397
+ startEditable: !0,
2398
+ durationEditable: !0,
2399
+ constraints: [],
2400
+ overlap: null,
2401
+ allows: [],
2402
+ backgroundColor: "",
2403
+ borderColor: "",
2404
+ textColor: "",
2405
+ classNames: []
2406
+ }
2407
+ }, e, i);
2408
+ let o = new S(i, r, n);
2409
+ this._def = l.defs[r.defId], this._instance = l.instances[n.instanceId], i.dispatch({
2410
+ type: "MERGE_EVENTS",
2411
+ eventStore: l
2412
+ }), i.emitter.trigger("eventChange", {
2413
+ oldEvent: o,
2414
+ event: this,
2415
+ relatedEvents: Zt(l, i, n),
2416
+ revert() {
2417
+ i.dispatch({
2418
+ type: "RESET_EVENTS",
2419
+ eventStore: s
2420
+ // the ORIGINAL store
2421
+ });
2422
+ }
2423
+ });
2424
+ }
2425
+ }
2426
+ remove() {
2427
+ let e = this._context, n = qt(this);
2428
+ e.dispatch({
2429
+ type: "REMOVE_EVENTS",
2430
+ eventStore: n
2431
+ }), e.emitter.trigger("eventRemove", {
2432
+ event: this,
2433
+ relatedEvents: [],
2434
+ revert() {
2435
+ e.dispatch({
2436
+ type: "MERGE_EVENTS",
2437
+ eventStore: n
2438
+ });
2439
+ }
2440
+ });
2441
+ }
2442
+ get source() {
2443
+ let { sourceId: e } = this._def;
2444
+ return e ? new Q(this._context, this._context.getCurrentData().eventSources[e]) : null;
2445
+ }
2446
+ get start() {
2447
+ return this._instance ? this._context.dateEnv.toDate(this._instance.range.start) : null;
2448
+ }
2449
+ get end() {
2450
+ return this._instance && this._def.hasEnd ? this._context.dateEnv.toDate(this._instance.range.end) : null;
2451
+ }
2452
+ get startStr() {
2453
+ let e = this._instance;
2454
+ return e ? this._context.dateEnv.formatIso(e.range.start, {
2455
+ omitTime: this._def.allDay,
2456
+ forcedTzo: e.forcedStartTzo
2457
+ }) : "";
2458
+ }
2459
+ get endStr() {
2460
+ let e = this._instance;
2461
+ return e && this._def.hasEnd ? this._context.dateEnv.formatIso(e.range.end, {
2462
+ omitTime: this._def.allDay,
2463
+ forcedTzo: e.forcedEndTzo
2464
+ }) : "";
2465
+ }
2466
+ // computable props that all access the def
2467
+ // TODO: find a TypeScript-compatible way to do this at scale
2468
+ get id() {
2469
+ return this._def.publicId;
2470
+ }
2471
+ get groupId() {
2472
+ return this._def.groupId;
2473
+ }
2474
+ get allDay() {
2475
+ return this._def.allDay;
2476
+ }
2477
+ get title() {
2478
+ return this._def.title;
2479
+ }
2480
+ get url() {
2481
+ return this._def.url;
2482
+ }
2483
+ get display() {
2484
+ return this._def.ui.display || "auto";
2485
+ }
2486
+ // bad. just normalize the type earlier
2487
+ get startEditable() {
2488
+ return this._def.ui.startEditable;
2489
+ }
2490
+ get durationEditable() {
2491
+ return this._def.ui.durationEditable;
2492
+ }
2493
+ get constraint() {
2494
+ return this._def.ui.constraints[0] || null;
2495
+ }
2496
+ get overlap() {
2497
+ return this._def.ui.overlap;
2498
+ }
2499
+ get allow() {
2500
+ return this._def.ui.allows[0] || null;
2501
+ }
2502
+ get backgroundColor() {
2503
+ return this._def.ui.backgroundColor;
2504
+ }
2505
+ get borderColor() {
2506
+ return this._def.ui.borderColor;
2507
+ }
2508
+ get textColor() {
2509
+ return this._def.ui.textColor;
2510
+ }
2511
+ // NOTE: user can't modify these because Object.freeze was called in event-def parsing
2512
+ get classNames() {
2513
+ return this._def.ui.classNames;
2514
+ }
2515
+ get extendedProps() {
2516
+ return this._def.extendedProps;
2517
+ }
2518
+ toPlainObject(e = {}) {
2519
+ let n = this._def, { ui: r } = n, { startStr: i, endStr: s } = this, l = {
2520
+ allDay: n.allDay
2521
+ };
2522
+ return n.title && (l.title = n.title), i && (l.start = i), s && (l.end = s), n.publicId && (l.id = n.publicId), n.groupId && (l.groupId = n.groupId), n.url && (l.url = n.url), r.display && r.display !== "auto" && (l.display = r.display), e.collapseColor && r.backgroundColor && r.backgroundColor === r.borderColor ? l.color = r.backgroundColor : (r.backgroundColor && (l.backgroundColor = r.backgroundColor), r.borderColor && (l.borderColor = r.borderColor)), r.textColor && (l.textColor = r.textColor), r.classNames.length && (l.classNames = r.classNames), Object.keys(n.extendedProps).length && (e.collapseExtendedProps ? Object.assign(l, n.extendedProps) : l.extendedProps = n.extendedProps), l;
2523
+ }
2524
+ toJSON() {
2525
+ return this.toPlainObject();
2526
+ }
2527
+ }
2528
+ function qt(t) {
2529
+ let e = t._def, n = t._instance;
2530
+ return {
2531
+ defs: { [e.defId]: e },
2532
+ instances: n ? { [n.instanceId]: n } : {}
2533
+ };
2534
+ }
2535
+ function Zt(t, e, n) {
2536
+ let { defs: r, instances: i } = t, s = [], l = n ? n.instanceId : "";
2537
+ for (let a in i) {
2538
+ let o = i[a], c = r[o.defId];
2539
+ o.instanceId !== l && s.push(new S(e, c, o));
2540
+ }
2541
+ return s;
2542
+ }
2543
+ function pt(t, e, n, r) {
2544
+ let i = {}, s = {}, l = {}, a = [], o = [], c = ge(t.defs, e);
2545
+ for (let d in t.defs) {
2546
+ let h = t.defs[d];
2547
+ c[h.defId].display === "inverse-background" && (h.groupId ? (i[h.groupId] = [], l[h.groupId] || (l[h.groupId] = h)) : s[d] = []);
2548
+ }
2549
+ for (let d in t.instances) {
2550
+ let h = t.instances[d], f = t.defs[h.defId], p = c[f.defId], A = h.range, m = !f.allDay && r ? Ve(A, r) : A, y = fe(m, n);
2551
+ y && (p.display === "inverse-background" ? f.groupId ? i[f.groupId].push(y) : s[h.defId].push(y) : p.display !== "none" && (p.display === "background" ? a : o).push({
2552
+ def: f,
2553
+ ui: p,
2554
+ instance: h,
2555
+ range: y,
2556
+ isStart: m.start && m.start.valueOf() === y.start.valueOf(),
2557
+ isEnd: m.end && m.end.valueOf() === y.end.valueOf()
2558
+ }));
2559
+ }
2560
+ for (let d in i) {
2561
+ let h = i[d], f = dt(h, n);
2562
+ for (let p of f) {
2563
+ let A = l[d], m = c[A.defId];
2564
+ a.push({
2565
+ def: A,
2566
+ ui: m,
2567
+ instance: null,
2568
+ range: p,
2569
+ isStart: !1,
2570
+ isEnd: !1
2571
+ });
2572
+ }
2573
+ }
2574
+ for (let d in s) {
2575
+ let h = s[d], f = dt(h, n);
2576
+ for (let p of f)
2577
+ a.push({
2578
+ def: t.defs[d],
2579
+ ui: c[d],
2580
+ instance: null,
2581
+ range: p,
2582
+ isStart: !1,
2583
+ isEnd: !1
2584
+ });
2585
+ }
2586
+ return { bg: a, fg: o };
2587
+ }
2588
+ function al(t) {
2589
+ return t.ui.display === "background" || t.ui.display === "inverse-background";
2590
+ }
2591
+ function mt(t, e) {
2592
+ t.fcSeg = e;
2593
+ }
2594
+ function ol(t) {
2595
+ return t.fcSeg || t.parentNode.fcSeg || // for the harness
2596
+ null;
2597
+ }
2598
+ function ge(t, e) {
2599
+ return J(t, (n) => Jt(n, e));
2600
+ }
2601
+ function Jt(t, e) {
2602
+ let n = [];
2603
+ return e[""] && n.push(e[""]), e[t.defId] && n.push(e[t.defId]), n.push(t.ui), Gt(n);
2604
+ }
2605
+ function cl(t, e) {
2606
+ let n = t.map(di);
2607
+ return n.sort((r, i) => Tn(r, i, e)), n.map((r) => r._seg);
2608
+ }
2609
+ function di(t) {
2610
+ let { eventRange: e } = t, n = e.def, r = e.instance ? e.instance.range : e.range, i = r.start ? r.start.valueOf() : 0, s = r.end ? r.end.valueOf() : 0;
2611
+ return Object.assign(Object.assign(Object.assign({}, n.extendedProps), n), {
2612
+ id: n.publicId,
2613
+ start: i,
2614
+ end: s,
2615
+ duration: s - i,
2616
+ allDay: Number(n.allDay),
2617
+ _seg: t
2618
+ });
2619
+ }
2620
+ function fi(t, e) {
2621
+ let { pluginHooks: n } = e, r = n.isDraggableTransformers, { def: i, ui: s } = t.eventRange, l = s.startEditable;
2622
+ for (let a of r)
2623
+ l = a(l, i, s, e);
2624
+ return l;
2625
+ }
2626
+ function hi(t, e) {
2627
+ return t.isStart && t.eventRange.ui.durationEditable && e.options.eventResizableFromStart;
2628
+ }
2629
+ function gi(t, e) {
2630
+ return t.isEnd && t.eventRange.ui.durationEditable;
2631
+ }
2632
+ function pi(t, e, n, r, i, s, l) {
2633
+ let { dateEnv: a, options: o } = n, { displayEventTime: c, displayEventEnd: d } = o, h = t.eventRange.def, f = t.eventRange.instance;
2634
+ c == null && (c = r !== !1), d == null && (d = i !== !1);
2635
+ let p = f.range.start, A = f.range.end, m = s || t.start || t.eventRange.range.start, y = l || t.end || t.eventRange.range.end, k = b(p).valueOf() === b(m).valueOf(), M = b(x(A, -1)).valueOf() === b(x(y, -1)).valueOf();
2636
+ return c && !h.allDay && (k || M) ? (m = k ? p : m, y = M ? A : y, d && h.hasEnd ? a.formatRange(m, y, e, {
2637
+ forcedStartTzo: s ? null : f.forcedStartTzo,
2638
+ forcedEndTzo: l ? null : f.forcedEndTzo
2639
+ }) : a.format(m, e, {
2640
+ forcedTzo: s ? null : f.forcedStartTzo
2641
+ // nooooo, same
2642
+ })) : "";
2643
+ }
2644
+ function ul(t, e, n) {
2645
+ let r = t.eventRange.range;
2646
+ return {
2647
+ isPast: r.end <= (n || e.start),
2648
+ isFuture: r.start >= (n || e.end),
2649
+ isToday: e && q(e, r.start)
2650
+ };
2651
+ }
2652
+ function mi(t) {
2653
+ let e = ["fc-event"];
2654
+ return t.isMirror && e.push("fc-event-mirror"), t.isDraggable && e.push("fc-event-draggable"), (t.isStartResizable || t.isEndResizable) && e.push("fc-event-resizable"), t.isDragging && e.push("fc-event-dragging"), t.isResizing && e.push("fc-event-resizing"), t.isSelected && e.push("fc-event-selected"), t.isStart && e.push("fc-event-start"), t.isEnd && e.push("fc-event-end"), t.isPast && e.push("fc-event-past"), t.isToday && e.push("fc-event-today"), t.isFuture && e.push("fc-event-future"), e;
2655
+ }
2656
+ function dl(t) {
2657
+ return t.instance ? t.instance.instanceId : `${t.def.defId}:${t.range.start.toISOString()}`;
2658
+ }
2659
+ function Ai(t, e) {
2660
+ let { def: n, instance: r } = t.eventRange, { url: i } = n;
2661
+ if (i)
2662
+ return { href: i };
2663
+ let { emitter: s, options: l } = e, { eventInteractive: a } = l;
2664
+ return a == null && (a = n.interactive, a == null && (a = !!s.hasHandlers("eventClick"))), a ? Nt((o) => {
2665
+ s.trigger("eventClick", {
2666
+ el: o.target,
2667
+ event: new S(e, n, r),
2668
+ jsEvent: o,
2669
+ view: e.viewApi
2670
+ });
2671
+ }) : {};
2672
+ }
2673
+ const vi = {
2674
+ start: u,
2675
+ end: u,
2676
+ allDay: Boolean
2677
+ };
2678
+ function bi(t, e, n) {
2679
+ let r = yi(t, e), { range: i } = r;
2680
+ if (!i.start)
2681
+ return null;
2682
+ if (!i.end) {
2683
+ if (n == null)
2684
+ return null;
2685
+ i.end = e.add(i.start, n);
2686
+ }
2687
+ return r;
2688
+ }
2689
+ function yi(t, e) {
2690
+ let { refined: n, extra: r } = Qe(t, vi), i = n.start ? e.createMarkerMeta(n.start) : null, s = n.end ? e.createMarkerMeta(n.end) : null, { allDay: l } = n;
2691
+ return l == null && (l = i && i.isTimeUnspecified && (!s || s.isTimeUnspecified)), Object.assign({ range: {
2692
+ start: i ? i.marker : null,
2693
+ end: s ? s.marker : null
2694
+ }, allDay: l }, r);
2695
+ }
2696
+ function fl(t, e) {
2697
+ return Br(t.range, e.range) && t.allDay === e.allDay && Ei(t, e);
2698
+ }
2699
+ function Ei(t, e) {
2700
+ for (let n in e)
2701
+ if (n !== "range" && n !== "allDay" && t[n] !== e[n])
2702
+ return !1;
2703
+ for (let n in t)
2704
+ if (!(n in e))
2705
+ return !1;
2706
+ return !0;
2707
+ }
2708
+ function Di(t, e) {
2709
+ return Object.assign(Object.assign({}, Xt(t.range, e, t.allDay)), { allDay: t.allDay });
2710
+ }
2711
+ function hl(t, e, n) {
2712
+ return Object.assign(Object.assign({}, Xt(t, e, n)), { timeZone: e.timeZone });
2713
+ }
2714
+ function Xt(t, e, n) {
2715
+ return {
2716
+ start: e.toDate(t.start),
2717
+ end: e.toDate(t.end),
2718
+ startStr: e.formatIso(t.start, { omitTime: n }),
2719
+ endStr: e.formatIso(t.end, { omitTime: n })
2720
+ };
2721
+ }
2722
+ function Ci(t, e, n) {
2723
+ let r = jt({ editable: !1 }, n), i = ze(
2724
+ r.refined,
2725
+ r.extra,
2726
+ "",
2727
+ // sourceId
2728
+ t.allDay,
2729
+ !0,
2730
+ // hasEnd
2731
+ n
2732
+ );
2733
+ return {
2734
+ def: i,
2735
+ ui: Jt(i, e),
2736
+ instance: Ye(i.defId, t.range),
2737
+ range: t.range,
2738
+ isStart: !0,
2739
+ isEnd: !0
2740
+ };
2741
+ }
2742
+ function gl(t, e, n) {
2743
+ let r = !1, i = function(a) {
2744
+ r || (r = !0, e(a));
2745
+ }, s = function(a) {
2746
+ r || (r = !0, n(a));
2747
+ }, l = t(i, s);
2748
+ l && typeof l.then == "function" && l.then(i, s);
2749
+ }
2750
+ class At extends Error {
2751
+ constructor(e, n) {
2752
+ super(e), this.response = n;
2753
+ }
2754
+ }
2755
+ function pl(t, e, n) {
2756
+ t = t.toUpperCase();
2757
+ const r = {
2758
+ method: t
2759
+ };
2760
+ return t === "GET" ? e += (e.indexOf("?") === -1 ? "?" : "&") + new URLSearchParams(n) : (r.body = new URLSearchParams(n), r.headers = {
2761
+ "Content-Type": "application/x-www-form-urlencoded"
2762
+ }), fetch(e, r).then((i) => {
2763
+ if (i.ok)
2764
+ return i.json().then((s) => [s, i], () => {
2765
+ throw new At("Failure parsing JSON", i);
2766
+ });
2767
+ throw new At("Request failed", i);
2768
+ });
2769
+ }
2770
+ let Me;
2771
+ function $t() {
2772
+ return Me == null && (Me = Si()), Me;
2773
+ }
2774
+ function Si() {
2775
+ if (typeof document > "u")
2776
+ return !0;
2777
+ let t = document.createElement("div");
2778
+ t.style.position = "absolute", t.style.top = "0px", t.style.left = "0px", t.innerHTML = "<table><tr><td><div></div></td></tr></table>", t.querySelector("table").style.height = "100px", t.querySelector("div").style.height = "100%", document.body.appendChild(t);
2779
+ let n = t.querySelector("div").offsetHeight > 0;
2780
+ return document.body.removeChild(t), n;
2781
+ }
2782
+ class ml extends D {
2783
+ constructor() {
2784
+ super(...arguments), this.state = {
2785
+ forPrint: !1
2786
+ }, this.handleBeforePrint = () => {
2787
+ ut(() => {
2788
+ this.setState({ forPrint: !0 });
2789
+ });
2790
+ }, this.handleAfterPrint = () => {
2791
+ ut(() => {
2792
+ this.setState({ forPrint: !1 });
2793
+ });
2794
+ };
2795
+ }
2796
+ render() {
2797
+ let { props: e } = this, { options: n } = e, { forPrint: r } = this.state, i = r || n.height === "auto" || n.contentHeight === "auto", s = !i && n.height != null ? n.height : "", l = [
2798
+ "fc",
2799
+ r ? "fc-media-print" : "fc-media-screen",
2800
+ `fc-direction-${n.direction}`,
2801
+ e.theme.getClass("root")
2802
+ ];
2803
+ return $t() || l.push("fc-liquid-hack"), e.children(l, s, i, r);
2804
+ }
2805
+ componentDidMount() {
2806
+ let { emitter: e } = this.props;
2807
+ e.on("_beforeprint", this.handleBeforePrint), e.on("_afterprint", this.handleAfterPrint);
2808
+ }
2809
+ componentWillUnmount() {
2810
+ let { emitter: e } = this.props;
2811
+ e.off("_beforeprint", this.handleBeforePrint), e.off("_afterprint", this.handleAfterPrint);
2812
+ }
2813
+ }
2814
+ class Al {
2815
+ constructor(e) {
2816
+ this.component = e.component, this.isHitComboAllowed = e.isHitComboAllowed || null;
2817
+ }
2818
+ destroy() {
2819
+ }
2820
+ }
2821
+ function vl(t, e) {
2822
+ return {
2823
+ component: t,
2824
+ el: e.el,
2825
+ useEventCenter: e.useEventCenter != null ? e.useEventCenter : !0,
2826
+ isHitComboAllowed: e.isHitComboAllowed || null
2827
+ };
2828
+ }
2829
+ function bl(t) {
2830
+ return {
2831
+ [t.component.uid]: t
2832
+ };
2833
+ }
2834
+ const yl = {};
2835
+ class El {
2836
+ getCurrentData() {
2837
+ return this.currentDataManager.getCurrentData();
2838
+ }
2839
+ dispatch(e) {
2840
+ this.currentDataManager.dispatch(e);
2841
+ }
2842
+ get view() {
2843
+ return this.getCurrentData().viewApi;
2844
+ }
2845
+ batchRendering(e) {
2846
+ e();
2847
+ }
2848
+ updateSize() {
2849
+ this.trigger("_resize", !0);
2850
+ }
2851
+ // Options
2852
+ // -----------------------------------------------------------------------------------------------------------------
2853
+ setOption(e, n) {
2854
+ this.dispatch({
2855
+ type: "SET_OPTION",
2856
+ optionName: e,
2857
+ rawOptionValue: n
2858
+ });
2859
+ }
2860
+ getOption(e) {
2861
+ return this.currentDataManager.currentCalendarOptionsInput[e];
2862
+ }
2863
+ getAvailableLocaleCodes() {
2864
+ return Object.keys(this.getCurrentData().availableRawLocales);
2865
+ }
2866
+ // Trigger
2867
+ // -----------------------------------------------------------------------------------------------------------------
2868
+ on(e, n) {
2869
+ let { currentDataManager: r } = this;
2870
+ r.currentCalendarOptionsRefiners[e] ? r.emitter.on(e, n) : console.warn(`Unknown listener name '${e}'`);
2871
+ }
2872
+ off(e, n) {
2873
+ this.currentDataManager.emitter.off(e, n);
2874
+ }
2875
+ // not meant for public use
2876
+ trigger(e, ...n) {
2877
+ this.currentDataManager.emitter.trigger(e, ...n);
2878
+ }
2879
+ // View
2880
+ // -----------------------------------------------------------------------------------------------------------------
2881
+ changeView(e, n) {
2882
+ this.batchRendering(() => {
2883
+ if (this.unselect(), n)
2884
+ if (n.start && n.end)
2885
+ this.dispatch({
2886
+ type: "CHANGE_VIEW_TYPE",
2887
+ viewType: e
2888
+ }), this.dispatch({
2889
+ type: "SET_OPTION",
2890
+ optionName: "visibleRange",
2891
+ rawOptionValue: n
2892
+ });
2893
+ else {
2894
+ let { dateEnv: r } = this.getCurrentData();
2895
+ this.dispatch({
2896
+ type: "CHANGE_VIEW_TYPE",
2897
+ viewType: e,
2898
+ dateMarker: r.createMarker(n)
2899
+ });
2900
+ }
2901
+ else
2902
+ this.dispatch({
2903
+ type: "CHANGE_VIEW_TYPE",
2904
+ viewType: e
2905
+ });
2906
+ });
2907
+ }
2908
+ // Forces navigation to a view for the given date.
2909
+ // `viewType` can be a specific view name or a generic one like "week" or "day".
2910
+ // needs to change
2911
+ zoomTo(e, n) {
2912
+ let r = this.getCurrentData(), i;
2913
+ n = n || "day", i = r.viewSpecs[n] || this.getUnitViewSpec(n), this.unselect(), i ? this.dispatch({
2914
+ type: "CHANGE_VIEW_TYPE",
2915
+ viewType: i.type,
2916
+ dateMarker: e
2917
+ }) : this.dispatch({
2918
+ type: "CHANGE_DATE",
2919
+ dateMarker: e
2920
+ });
2921
+ }
2922
+ // Given a duration singular unit, like "week" or "day", finds a matching view spec.
2923
+ // Preference is given to views that have corresponding buttons.
2924
+ getUnitViewSpec(e) {
2925
+ let { viewSpecs: n, toolbarConfig: r } = this.getCurrentData(), i = [].concat(r.header ? r.header.viewsWithButtons : [], r.footer ? r.footer.viewsWithButtons : []), s, l;
2926
+ for (let a in n)
2927
+ i.push(a);
2928
+ for (s = 0; s < i.length; s += 1)
2929
+ if (l = n[i[s]], l && l.singleUnit === e)
2930
+ return l;
2931
+ return null;
2932
+ }
2933
+ // Current Date
2934
+ // -----------------------------------------------------------------------------------------------------------------
2935
+ prev() {
2936
+ this.unselect(), this.dispatch({ type: "PREV" });
2937
+ }
2938
+ next() {
2939
+ this.unselect(), this.dispatch({ type: "NEXT" });
2940
+ }
2941
+ prevYear() {
2942
+ let e = this.getCurrentData();
2943
+ this.unselect(), this.dispatch({
2944
+ type: "CHANGE_DATE",
2945
+ dateMarker: e.dateEnv.addYears(e.currentDate, -1)
2946
+ });
2947
+ }
2948
+ nextYear() {
2949
+ let e = this.getCurrentData();
2950
+ this.unselect(), this.dispatch({
2951
+ type: "CHANGE_DATE",
2952
+ dateMarker: e.dateEnv.addYears(e.currentDate, 1)
2953
+ });
2954
+ }
2955
+ today() {
2956
+ let e = this.getCurrentData();
2957
+ this.unselect(), this.dispatch({
2958
+ type: "CHANGE_DATE",
2959
+ dateMarker: be(e.calendarOptions.now, e.dateEnv)
2960
+ });
2961
+ }
2962
+ gotoDate(e) {
2963
+ let n = this.getCurrentData();
2964
+ this.unselect(), this.dispatch({
2965
+ type: "CHANGE_DATE",
2966
+ dateMarker: n.dateEnv.createMarker(e)
2967
+ });
2968
+ }
2969
+ incrementDate(e) {
2970
+ let n = this.getCurrentData(), r = v(e);
2971
+ r && (this.unselect(), this.dispatch({
2972
+ type: "CHANGE_DATE",
2973
+ dateMarker: n.dateEnv.add(n.currentDate, r)
2974
+ }));
2975
+ }
2976
+ getDate() {
2977
+ let e = this.getCurrentData();
2978
+ return e.dateEnv.toDate(e.currentDate);
2979
+ }
2980
+ // Date Formatting Utils
2981
+ // -----------------------------------------------------------------------------------------------------------------
2982
+ formatDate(e, n) {
2983
+ let { dateEnv: r } = this.getCurrentData();
2984
+ return r.format(r.createMarker(e), C(n));
2985
+ }
2986
+ // `settings` is for formatter AND isEndExclusive
2987
+ formatRange(e, n, r) {
2988
+ let { dateEnv: i } = this.getCurrentData();
2989
+ return i.formatRange(i.createMarker(e), i.createMarker(n), C(r), r);
2990
+ }
2991
+ formatIso(e, n) {
2992
+ let { dateEnv: r } = this.getCurrentData();
2993
+ return r.formatIso(r.createMarker(e), { omitTime: n });
2994
+ }
2995
+ // Date Selection / Event Selection / DayClick
2996
+ // -----------------------------------------------------------------------------------------------------------------
2997
+ select(e, n) {
2998
+ let r;
2999
+ n == null ? e.start != null ? r = e : r = {
3000
+ start: e,
3001
+ end: null
3002
+ } : r = {
3003
+ start: e,
3004
+ end: n
3005
+ };
3006
+ let i = this.getCurrentData(), s = bi(r, i.dateEnv, v({ days: 1 }));
3007
+ s && (this.dispatch({ type: "SELECT_DATES", selection: s }), li(s, null, i));
3008
+ }
3009
+ unselect(e) {
3010
+ let n = this.getCurrentData();
3011
+ n.dateSelection && (this.dispatch({ type: "UNSELECT_DATES" }), ai(e, n));
3012
+ }
3013
+ // Public Events API
3014
+ // -----------------------------------------------------------------------------------------------------------------
3015
+ addEvent(e, n) {
3016
+ if (e instanceof S) {
3017
+ let l = e._def, a = e._instance;
3018
+ return this.getCurrentData().eventStore.defs[l.defId] || (this.dispatch({
3019
+ type: "ADD_EVENTS",
3020
+ eventStore: Le({ def: l, instance: a })
3021
+ // TODO: better util for two args?
3022
+ }), this.triggerEventAdd(e)), e;
3023
+ }
3024
+ let r = this.getCurrentData(), i;
3025
+ if (n instanceof Q)
3026
+ i = n.internalEventSource;
3027
+ else if (typeof n == "boolean")
3028
+ n && ([i] = Ht(r.eventSources));
3029
+ else if (n != null) {
3030
+ let l = this.getEventSourceById(n);
3031
+ if (!l)
3032
+ return console.warn(`Could not find an event source with ID "${n}"`), null;
3033
+ i = l.internalEventSource;
3034
+ }
3035
+ let s = Qt(e, i, r, !1);
3036
+ if (s) {
3037
+ let l = new S(r, s.def, s.def.recurringDef ? null : s.instance);
3038
+ return this.dispatch({
3039
+ type: "ADD_EVENTS",
3040
+ eventStore: Le(s)
3041
+ }), this.triggerEventAdd(l), l;
3042
+ }
3043
+ return null;
3044
+ }
3045
+ triggerEventAdd(e) {
3046
+ let { emitter: n } = this.getCurrentData();
3047
+ n.trigger("eventAdd", {
3048
+ event: e,
3049
+ relatedEvents: [],
3050
+ revert: () => {
3051
+ this.dispatch({
3052
+ type: "REMOVE_EVENTS",
3053
+ eventStore: qt(e)
3054
+ });
3055
+ }
3056
+ });
3057
+ }
3058
+ // TODO: optimize
3059
+ getEventById(e) {
3060
+ let n = this.getCurrentData(), { defs: r, instances: i } = n.eventStore;
3061
+ e = String(e);
3062
+ for (let s in r) {
3063
+ let l = r[s];
3064
+ if (l.publicId === e) {
3065
+ if (l.recurringDef)
3066
+ return new S(n, l, null);
3067
+ for (let a in i) {
3068
+ let o = i[a];
3069
+ if (o.defId === l.defId)
3070
+ return new S(n, l, o);
3071
+ }
3072
+ }
3073
+ }
3074
+ return null;
3075
+ }
3076
+ getEvents() {
3077
+ let e = this.getCurrentData();
3078
+ return Zt(e.eventStore, e);
3079
+ }
3080
+ removeAllEvents() {
3081
+ this.dispatch({ type: "REMOVE_ALL_EVENTS" });
3082
+ }
3083
+ // Public Event Sources API
3084
+ // -----------------------------------------------------------------------------------------------------------------
3085
+ getEventSources() {
3086
+ let e = this.getCurrentData(), n = e.eventSources, r = [];
3087
+ for (let i in n)
3088
+ r.push(new Q(e, n[i]));
3089
+ return r;
3090
+ }
3091
+ getEventSourceById(e) {
3092
+ let n = this.getCurrentData(), r = n.eventSources;
3093
+ e = String(e);
3094
+ for (let i in r)
3095
+ if (r[i].publicId === e)
3096
+ return new Q(n, r[i]);
3097
+ return null;
3098
+ }
3099
+ addEventSource(e) {
3100
+ let n = this.getCurrentData();
3101
+ if (e instanceof Q)
3102
+ return n.eventSources[e.internalEventSource.sourceId] || this.dispatch({
3103
+ type: "ADD_EVENT_SOURCES",
3104
+ sources: [e.internalEventSource]
3105
+ }), e;
3106
+ let r = Yr(e, n);
3107
+ return r ? (this.dispatch({ type: "ADD_EVENT_SOURCES", sources: [r] }), new Q(n, r)) : null;
3108
+ }
3109
+ removeAllEventSources() {
3110
+ this.dispatch({ type: "REMOVE_ALL_EVENT_SOURCES" });
3111
+ }
3112
+ refetchEvents() {
3113
+ this.dispatch({ type: "FETCH_EVENT_SOURCES", isRefetch: !0 });
3114
+ }
3115
+ // Scroll
3116
+ // -----------------------------------------------------------------------------------------------------------------
3117
+ scrollToTime(e) {
3118
+ let n = v(e);
3119
+ n && this.trigger("_scrollRequest", { time: n });
3120
+ }
3121
+ }
3122
+ function Dl(t, e) {
3123
+ return t.left >= e.left && t.left < e.right && t.top >= e.top && t.top < e.bottom;
3124
+ }
3125
+ function wi(t, e) {
3126
+ let n = {
3127
+ left: Math.max(t.left, e.left),
3128
+ right: Math.min(t.right, e.right),
3129
+ top: Math.max(t.top, e.top),
3130
+ bottom: Math.min(t.bottom, e.bottom)
3131
+ };
3132
+ return n.left < n.right && n.top < n.bottom ? n : !1;
3133
+ }
3134
+ function Cl(t, e) {
3135
+ return {
3136
+ left: Math.min(Math.max(t.left, e.left), e.right),
3137
+ top: Math.min(Math.max(t.top, e.top), e.bottom)
3138
+ };
3139
+ }
3140
+ function Sl(t) {
3141
+ return {
3142
+ left: (t.left + t.right) / 2,
3143
+ top: (t.top + t.bottom) / 2
3144
+ };
3145
+ }
3146
+ function wl(t, e) {
3147
+ return {
3148
+ left: t.left - e.left,
3149
+ top: t.top - e.top
3150
+ };
3151
+ }
3152
+ const Te = F();
3153
+ class kl {
3154
+ constructor() {
3155
+ this.getKeysForEventDefs = E(this._getKeysForEventDefs), this.splitDateSelection = E(this._splitDateSpan), this.splitEventStore = E(this._splitEventStore), this.splitIndividualUi = E(this._splitIndividualUi), this.splitEventDrag = E(this._splitInteraction), this.splitEventResize = E(this._splitInteraction), this.eventUiBuilders = {};
3156
+ }
3157
+ splitProps(e) {
3158
+ let n = this.getKeyInfo(e), r = this.getKeysForEventDefs(e.eventStore), i = this.splitDateSelection(e.dateSelection), s = this.splitIndividualUi(e.eventUiBases, r), l = this.splitEventStore(e.eventStore, r), a = this.splitEventDrag(e.eventDrag), o = this.splitEventResize(e.eventResize), c = {};
3159
+ this.eventUiBuilders = J(n, (d, h) => this.eventUiBuilders[h] || E(ki));
3160
+ for (let d in n) {
3161
+ let h = n[d], f = l[d] || Te, p = this.eventUiBuilders[d];
3162
+ c[d] = {
3163
+ businessHours: h.businessHours || e.businessHours,
3164
+ dateSelection: i[d] || null,
3165
+ eventStore: f,
3166
+ eventUiBases: p(e.eventUiBases[""], h.ui, s[d]),
3167
+ eventSelection: f.instances[e.eventSelection] ? e.eventSelection : "",
3168
+ eventDrag: a[d] || null,
3169
+ eventResize: o[d] || null
3170
+ };
3171
+ }
3172
+ return c;
3173
+ }
3174
+ _splitDateSpan(e) {
3175
+ let n = {};
3176
+ if (e) {
3177
+ let r = this.getKeysForDateSpan(e);
3178
+ for (let i of r)
3179
+ n[i] = e;
3180
+ }
3181
+ return n;
3182
+ }
3183
+ _getKeysForEventDefs(e) {
3184
+ return J(e.defs, (n) => this.getKeysForEventDef(n));
3185
+ }
3186
+ _splitEventStore(e, n) {
3187
+ let { defs: r, instances: i } = e, s = {};
3188
+ for (let l in r)
3189
+ for (let a of n[l])
3190
+ s[a] || (s[a] = F()), s[a].defs[l] = r[l];
3191
+ for (let l in i) {
3192
+ let a = i[l];
3193
+ for (let o of n[a.defId])
3194
+ s[o] && (s[o].instances[l] = a);
3195
+ }
3196
+ return s;
3197
+ }
3198
+ _splitIndividualUi(e, n) {
3199
+ let r = {};
3200
+ for (let i in e)
3201
+ if (i)
3202
+ for (let s of n[i])
3203
+ r[s] || (r[s] = {}), r[s][i] = e[i];
3204
+ return r;
3205
+ }
3206
+ _splitInteraction(e) {
3207
+ let n = {};
3208
+ if (e) {
3209
+ let r = this._splitEventStore(e.affectedEvents, this._getKeysForEventDefs(e.affectedEvents)), i = this._getKeysForEventDefs(e.mutatedEvents), s = this._splitEventStore(e.mutatedEvents, i), l = (a) => {
3210
+ n[a] || (n[a] = {
3211
+ affectedEvents: r[a] || Te,
3212
+ mutatedEvents: s[a] || Te,
3213
+ isEvent: e.isEvent
3214
+ });
3215
+ };
3216
+ for (let a in r)
3217
+ l(a);
3218
+ for (let a in s)
3219
+ l(a);
3220
+ }
3221
+ return n;
3222
+ }
3223
+ }
3224
+ function ki(t, e, n) {
3225
+ let r = [];
3226
+ t && r.push(t), e && r.push(e);
3227
+ let i = {
3228
+ "": Gt(r)
3229
+ };
3230
+ return n && Object.assign(i, n), i;
3231
+ }
3232
+ function Kt(t, e, n, r) {
3233
+ return {
3234
+ dow: t.getUTCDay(),
3235
+ isDisabled: !!(r && !q(r.activeRange, t)),
3236
+ isOther: !!(r && !q(r.currentRange, t)),
3237
+ isToday: !!(e && q(e, t)),
3238
+ isPast: !!(n ? t < n : e && t < e.start),
3239
+ isFuture: !!(n ? t > n : e && t >= e.end)
3240
+ };
3241
+ }
3242
+ function Xe(t, e) {
3243
+ let n = [
3244
+ "fc-day",
3245
+ `fc-day-${Fn[t.dow]}`
3246
+ ];
3247
+ return t.isDisabled ? n.push("fc-day-disabled") : (t.isToday && (n.push("fc-day-today"), n.push(e.getClass("today"))), t.isPast && n.push("fc-day-past"), t.isFuture && n.push("fc-day-future"), t.isOther && n.push("fc-day-other")), n;
3248
+ }
3249
+ const Ri = C({ year: "numeric", month: "long", day: "numeric" }), Mi = C({ week: "long" });
3250
+ function Ti(t, e, n = "day", r = !0) {
3251
+ const { dateEnv: i, options: s, calendarApi: l } = t;
3252
+ let a = i.format(e, n === "week" ? Mi : Ri);
3253
+ if (s.navLinks) {
3254
+ let o = i.toDate(e);
3255
+ const c = (d) => {
3256
+ let h = n === "day" ? s.navLinkDayClick : n === "week" ? s.navLinkWeekClick : null;
3257
+ typeof h == "function" ? h.call(l, i.toDate(e), d) : (typeof h == "string" && (n = h), l.zoomTo(e, n));
3258
+ };
3259
+ return Object.assign({ title: Ot(s.navLinkHint, [a, o], a), "data-navlink": "" }, r ? It(c) : { onClick: c });
3260
+ }
3261
+ return { "aria-label": a };
3262
+ }
3263
+ let Ie = null;
3264
+ function Ii() {
3265
+ return Ie === null && (Ie = Ni()), Ie;
3266
+ }
3267
+ function Ni() {
3268
+ let t = document.createElement("div");
3269
+ Mt(t, {
3270
+ position: "absolute",
3271
+ top: -1e3,
3272
+ left: 0,
3273
+ border: 0,
3274
+ padding: 0,
3275
+ overflow: "scroll",
3276
+ direction: "rtl"
3277
+ }), t.innerHTML = "<div></div>", document.body.appendChild(t);
3278
+ let n = t.firstChild.getBoundingClientRect().left > t.getBoundingClientRect().left;
3279
+ return Rt(t), n;
3280
+ }
3281
+ let Ne;
3282
+ function Oi() {
3283
+ return Ne || (Ne = Bi()), Ne;
3284
+ }
3285
+ function Bi() {
3286
+ let t = document.createElement("div");
3287
+ t.style.overflow = "scroll", t.style.position = "absolute", t.style.top = "-9999px", t.style.left = "-9999px", document.body.appendChild(t);
3288
+ let e = en(t);
3289
+ return document.body.removeChild(t), e;
3290
+ }
3291
+ function en(t) {
3292
+ return {
3293
+ x: t.offsetHeight - t.clientHeight,
3294
+ y: t.offsetWidth - t.clientWidth
3295
+ };
3296
+ }
3297
+ function xi(t, e = !1) {
3298
+ let n = window.getComputedStyle(t), r = parseInt(n.borderLeftWidth, 10) || 0, i = parseInt(n.borderRightWidth, 10) || 0, s = parseInt(n.borderTopWidth, 10) || 0, l = parseInt(n.borderBottomWidth, 10) || 0, a = en(t), o = a.y - r - i, c = a.x - s - l, d = {
3299
+ borderLeft: r,
3300
+ borderRight: i,
3301
+ borderTop: s,
3302
+ borderBottom: l,
3303
+ scrollbarBottom: c,
3304
+ scrollbarLeft: 0,
3305
+ scrollbarRight: 0
3306
+ };
3307
+ return Ii() && n.direction === "rtl" ? d.scrollbarLeft = o : d.scrollbarRight = o, e && (d.paddingLeft = parseInt(n.paddingLeft, 10) || 0, d.paddingRight = parseInt(n.paddingRight, 10) || 0, d.paddingTop = parseInt(n.paddingTop, 10) || 0, d.paddingBottom = parseInt(n.paddingBottom, 10) || 0), d;
3308
+ }
3309
+ function Rl(t, e = !1, n) {
3310
+ let r = n ? t.getBoundingClientRect() : _i(t), i = xi(t, e), s = {
3311
+ left: r.left + i.borderLeft + i.scrollbarLeft,
3312
+ right: r.right - i.borderRight - i.scrollbarRight,
3313
+ top: r.top + i.borderTop,
3314
+ bottom: r.bottom - i.borderBottom - i.scrollbarBottom
3315
+ };
3316
+ return e && (s.left += i.paddingLeft, s.right -= i.paddingRight, s.top += i.paddingTop, s.bottom -= i.paddingBottom), s;
3317
+ }
3318
+ function _i(t) {
3319
+ let e = t.getBoundingClientRect();
3320
+ return {
3321
+ left: e.left + window.scrollX,
3322
+ top: e.top + window.scrollY,
3323
+ right: e.right + window.scrollX,
3324
+ bottom: e.bottom + window.scrollY
3325
+ };
3326
+ }
3327
+ function Hi(t) {
3328
+ let e = Ui(t), n = t.getBoundingClientRect();
3329
+ for (let r of e) {
3330
+ let i = wi(n, r.getBoundingClientRect());
3331
+ if (i)
3332
+ n = i;
3333
+ else
3334
+ return null;
3335
+ }
3336
+ return n;
3337
+ }
3338
+ function Ui(t) {
3339
+ let e = [];
3340
+ for (; t instanceof HTMLElement; ) {
3341
+ let n = window.getComputedStyle(t);
3342
+ if (n.position === "fixed")
3343
+ break;
3344
+ /(auto|scroll)/.test(n.overflow + n.overflowY + n.overflowX) && e.push(t), t = t.parentNode;
3345
+ }
3346
+ return e;
3347
+ }
3348
+ class Ml {
3349
+ constructor(e, n, r, i) {
3350
+ this.els = n;
3351
+ let s = this.originClientRect = e.getBoundingClientRect();
3352
+ r && this.buildElHorizontals(s.left), i && this.buildElVerticals(s.top);
3353
+ }
3354
+ // Populates the left/right internal coordinate arrays
3355
+ buildElHorizontals(e) {
3356
+ let n = [], r = [];
3357
+ for (let i of this.els) {
3358
+ let s = i.getBoundingClientRect();
3359
+ n.push(s.left - e), r.push(s.right - e);
3360
+ }
3361
+ this.lefts = n, this.rights = r;
3362
+ }
3363
+ // Populates the top/bottom internal coordinate arrays
3364
+ buildElVerticals(e) {
3365
+ let n = [], r = [];
3366
+ for (let i of this.els) {
3367
+ let s = i.getBoundingClientRect();
3368
+ n.push(s.top - e), r.push(s.bottom - e);
3369
+ }
3370
+ this.tops = n, this.bottoms = r;
3371
+ }
3372
+ // Given a left offset (from document left), returns the index of the el that it horizontally intersects.
3373
+ // If no intersection is made, returns undefined.
3374
+ leftToIndex(e) {
3375
+ let { lefts: n, rights: r } = this, i = n.length, s;
3376
+ for (s = 0; s < i; s += 1)
3377
+ if (e >= n[s] && e < r[s])
3378
+ return s;
3379
+ }
3380
+ // Given a top offset (from document top), returns the index of the el that it vertically intersects.
3381
+ // If no intersection is made, returns undefined.
3382
+ topToIndex(e) {
3383
+ let { tops: n, bottoms: r } = this, i = n.length, s;
3384
+ for (s = 0; s < i; s += 1)
3385
+ if (e >= n[s] && e < r[s])
3386
+ return s;
3387
+ }
3388
+ // Gets the width of the element at the given index
3389
+ getWidth(e) {
3390
+ return this.rights[e] - this.lefts[e];
3391
+ }
3392
+ // Gets the height of the element at the given index
3393
+ getHeight(e) {
3394
+ return this.bottoms[e] - this.tops[e];
3395
+ }
3396
+ similarTo(e) {
3397
+ return re(this.tops || [], e.tops || []) && re(this.bottoms || [], e.bottoms || []) && re(this.lefts || [], e.lefts || []) && re(this.rights || [], e.rights || []);
3398
+ }
3399
+ }
3400
+ function re(t, e) {
3401
+ const n = t.length;
3402
+ if (n !== e.length)
3403
+ return !1;
3404
+ for (let r = 0; r < n; r++)
3405
+ if (Math.round(t[r]) !== Math.round(e[r]))
3406
+ return !1;
3407
+ return !0;
3408
+ }
3409
+ class tn {
3410
+ getMaxScrollTop() {
3411
+ return this.getScrollHeight() - this.getClientHeight();
3412
+ }
3413
+ getMaxScrollLeft() {
3414
+ return this.getScrollWidth() - this.getClientWidth();
3415
+ }
3416
+ canScrollVertically() {
3417
+ return this.getMaxScrollTop() > 0;
3418
+ }
3419
+ canScrollHorizontally() {
3420
+ return this.getMaxScrollLeft() > 0;
3421
+ }
3422
+ canScrollUp() {
3423
+ return this.getScrollTop() > 0;
3424
+ }
3425
+ canScrollDown() {
3426
+ return this.getScrollTop() < this.getMaxScrollTop();
3427
+ }
3428
+ canScrollLeft() {
3429
+ return this.getScrollLeft() > 0;
3430
+ }
3431
+ canScrollRight() {
3432
+ return this.getScrollLeft() < this.getMaxScrollLeft();
3433
+ }
3434
+ }
3435
+ class Tl extends tn {
3436
+ constructor(e) {
3437
+ super(), this.el = e;
3438
+ }
3439
+ getScrollTop() {
3440
+ return this.el.scrollTop;
3441
+ }
3442
+ getScrollLeft() {
3443
+ return this.el.scrollLeft;
3444
+ }
3445
+ setScrollTop(e) {
3446
+ this.el.scrollTop = e;
3447
+ }
3448
+ setScrollLeft(e) {
3449
+ this.el.scrollLeft = e;
3450
+ }
3451
+ getScrollWidth() {
3452
+ return this.el.scrollWidth;
3453
+ }
3454
+ getScrollHeight() {
3455
+ return this.el.scrollHeight;
3456
+ }
3457
+ getClientHeight() {
3458
+ return this.el.clientHeight;
3459
+ }
3460
+ getClientWidth() {
3461
+ return this.el.clientWidth;
3462
+ }
3463
+ }
3464
+ class Il extends tn {
3465
+ getScrollTop() {
3466
+ return window.scrollY;
3467
+ }
3468
+ getScrollLeft() {
3469
+ return window.scrollX;
3470
+ }
3471
+ setScrollTop(e) {
3472
+ window.scroll(window.scrollX, e);
3473
+ }
3474
+ setScrollLeft(e) {
3475
+ window.scroll(e, window.scrollY);
3476
+ }
3477
+ getScrollWidth() {
3478
+ return document.documentElement.scrollWidth;
3479
+ }
3480
+ getScrollHeight() {
3481
+ return document.documentElement.scrollHeight;
3482
+ }
3483
+ getClientHeight() {
3484
+ return document.documentElement.clientHeight;
3485
+ }
3486
+ getClientWidth() {
3487
+ return document.documentElement.clientWidth;
3488
+ }
3489
+ }
3490
+ class Fi extends D {
3491
+ constructor() {
3492
+ super(...arguments), this.uid = $();
3493
+ }
3494
+ // Hit System
3495
+ // -----------------------------------------------------------------------------------------------------------------
3496
+ prepareHits() {
3497
+ }
3498
+ queryHit(e, n, r, i) {
3499
+ return null;
3500
+ }
3501
+ // Pointer Interaction Utils
3502
+ // -----------------------------------------------------------------------------------------------------------------
3503
+ isValidSegDownEl(e) {
3504
+ return !this.props.eventDrag && // HACK
3505
+ !this.props.eventResize && // HACK
3506
+ !I(e, ".fc-event-mirror");
3507
+ }
3508
+ isValidDateDownEl(e) {
3509
+ return !I(e, ".fc-event:not(.fc-bg-event)") && !I(e, ".fc-more-link") && // a "more.." link
3510
+ !I(e, "a[data-navlink]") && // a clickable nav link
3511
+ !I(e, ".fc-popover");
3512
+ }
3513
+ }
3514
+ class Nl {
3515
+ constructor(e = (n) => n.thickness || 1) {
3516
+ this.getEntryThickness = e, this.strictOrder = !1, this.allowReslicing = !1, this.maxCoord = -1, this.maxStackCnt = -1, this.levelCoords = [], this.entriesByLevel = [], this.stackCnts = {};
3517
+ }
3518
+ addSegs(e) {
3519
+ let n = [];
3520
+ for (let r of e)
3521
+ this.insertEntry(r, n);
3522
+ return n;
3523
+ }
3524
+ insertEntry(e, n) {
3525
+ let r = this.findInsertion(e);
3526
+ this.isInsertionValid(r, e) ? this.insertEntryAt(e, r) : this.handleInvalidInsertion(r, e, n);
3527
+ }
3528
+ isInsertionValid(e, n) {
3529
+ return (this.maxCoord === -1 || e.levelCoord + this.getEntryThickness(n) <= this.maxCoord) && (this.maxStackCnt === -1 || e.stackCnt < this.maxStackCnt);
3530
+ }
3531
+ handleInvalidInsertion(e, n, r) {
3532
+ if (this.allowReslicing && e.touchingEntry) {
3533
+ const i = Object.assign(Object.assign({}, n), { span: nn(n.span, e.touchingEntry.span) });
3534
+ r.push(i), this.splitEntry(n, e.touchingEntry, r);
3535
+ } else
3536
+ r.push(n);
3537
+ }
3538
+ /*
3539
+ Does NOT add what hit the `barrier` into hiddenEntries. Should already be done.
3540
+ */
3541
+ splitEntry(e, n, r) {
3542
+ let i = e.span, s = n.span;
3543
+ i.start < s.start && this.insertEntry({
3544
+ index: e.index,
3545
+ thickness: e.thickness,
3546
+ span: { start: i.start, end: s.start }
3547
+ }, r), i.end > s.end && this.insertEntry({
3548
+ index: e.index,
3549
+ thickness: e.thickness,
3550
+ span: { start: s.end, end: i.end }
3551
+ }, r);
3552
+ }
3553
+ insertEntryAt(e, n) {
3554
+ let { entriesByLevel: r, levelCoords: i } = this;
3555
+ n.lateral === -1 ? (Oe(i, n.level, n.levelCoord), Oe(r, n.level, [e])) : Oe(r[n.level], n.lateral, e), this.stackCnts[bt(e)] = n.stackCnt;
3556
+ }
3557
+ /*
3558
+ does not care about limits
3559
+ */
3560
+ findInsertion(e) {
3561
+ let { levelCoords: n, entriesByLevel: r, strictOrder: i, stackCnts: s } = this, l = n.length, a = 0, o = -1, c = -1, d = null, h = 0;
3562
+ for (let A = 0; A < l; A += 1) {
3563
+ const m = n[A];
3564
+ if (!i && m >= a + this.getEntryThickness(e))
3565
+ break;
3566
+ let y = r[A], k, M = yt(y, e.span.start, vt), z = M[0] + M[1];
3567
+ for (
3568
+ ;
3569
+ // loop through entries that horizontally intersect
3570
+ (k = y[z]) && // but not past the whole entry list
3571
+ k.span.start < e.span.end;
3572
+ ) {
3573
+ let L = m + this.getEntryThickness(k);
3574
+ L > a && (a = L, d = k, o = A, c = z), L === a && (h = Math.max(h, s[bt(k)] + 1)), z += 1;
3575
+ }
3576
+ }
3577
+ let f = 0;
3578
+ if (d)
3579
+ for (f = o + 1; f < l && n[f] < a; )
3580
+ f += 1;
3581
+ let p = -1;
3582
+ return f < l && n[f] === a && (p = yt(r[f], e.span.end, vt)[0]), {
3583
+ touchingLevel: o,
3584
+ touchingLateral: c,
3585
+ touchingEntry: d,
3586
+ stackCnt: h,
3587
+ levelCoord: a,
3588
+ level: f,
3589
+ lateral: p
3590
+ };
3591
+ }
3592
+ // sorted by levelCoord (lowest to highest)
3593
+ toRects() {
3594
+ let { entriesByLevel: e, levelCoords: n } = this, r = e.length, i = [];
3595
+ for (let s = 0; s < r; s += 1) {
3596
+ let l = e[s], a = n[s];
3597
+ for (let o of l)
3598
+ i.push(Object.assign(Object.assign({}, o), { thickness: this.getEntryThickness(o), levelCoord: a }));
3599
+ }
3600
+ return i;
3601
+ }
3602
+ }
3603
+ function vt(t) {
3604
+ return t.span.end;
3605
+ }
3606
+ function bt(t) {
3607
+ return t.index + ":" + t.span.start;
3608
+ }
3609
+ function Ol(t) {
3610
+ let e = [];
3611
+ for (let n of t) {
3612
+ let r = [], i = {
3613
+ span: n.span,
3614
+ entries: [n]
3615
+ };
3616
+ for (let s of e)
3617
+ nn(s.span, i.span) ? i = {
3618
+ entries: s.entries.concat(i.entries),
3619
+ span: zi(s.span, i.span)
3620
+ } : r.push(s);
3621
+ r.push(i), e = r;
3622
+ }
3623
+ return e;
3624
+ }
3625
+ function zi(t, e) {
3626
+ return {
3627
+ start: Math.min(t.start, e.start),
3628
+ end: Math.max(t.end, e.end)
3629
+ };
3630
+ }
3631
+ function nn(t, e) {
3632
+ let n = Math.max(t.start, e.start), r = Math.min(t.end, e.end);
3633
+ return n < r ? { start: n, end: r } : null;
3634
+ }
3635
+ function Oe(t, e, n) {
3636
+ t.splice(e, 0, n);
3637
+ }
3638
+ function yt(t, e, n) {
3639
+ let r = 0, i = t.length;
3640
+ if (!i || e < n(t[r]))
3641
+ return [0, 0];
3642
+ if (e > n(t[i - 1]))
3643
+ return [i, 0];
3644
+ for (; r < i; ) {
3645
+ let s = Math.floor(r + (i - r) / 2), l = n(t[s]);
3646
+ if (e < l)
3647
+ i = s;
3648
+ else if (e > l)
3649
+ r = s + 1;
3650
+ else
3651
+ return [s, 1];
3652
+ }
3653
+ return [r, 0];
3654
+ }
3655
+ class Bl {
3656
+ constructor(e, n) {
3657
+ this.emitter = new ti();
3658
+ }
3659
+ destroy() {
3660
+ }
3661
+ setMirrorIsVisible(e) {
3662
+ }
3663
+ setMirrorNeedsRevert(e) {
3664
+ }
3665
+ setAutoScrollEnabled(e) {
3666
+ }
3667
+ }
3668
+ const xl = {};
3669
+ function Li(t, e) {
3670
+ return !t || e > 10 ? C({ weekday: "short" }) : e > 1 ? C({ weekday: "short", month: "numeric", day: "numeric", omitCommas: !0 }) : C({ weekday: "long" });
3671
+ }
3672
+ const rn = "fc-col-header-cell";
3673
+ function sn(t) {
3674
+ return t.text;
3675
+ }
3676
+ class Pi extends D {
3677
+ render() {
3678
+ let { dateEnv: e, options: n, theme: r, viewApi: i } = this.context, { props: s } = this, { date: l, dateProfile: a } = s, o = Kt(l, s.todayRange, null, a), c = [rn].concat(Xe(o, r)), d = e.format(l, s.dayHeaderFormat), h = !o.isDisabled && s.colCnt > 1 ? Ti(this.context, l) : {}, f = Object.assign(Object.assign(Object.assign({ date: e.toDate(l), view: i }, s.extraRenderProps), { text: d }), o);
3679
+ return g(T, { elTag: "th", elClasses: c, elAttrs: Object.assign({ role: "columnheader", colSpan: s.colSpan, "data-date": o.isDisabled ? void 0 : xt(l) }, s.extraDataAttrs), renderProps: f, generatorName: "dayHeaderContent", customGenerator: n.dayHeaderContent, defaultGenerator: sn, classNameGenerator: n.dayHeaderClassNames, didMount: n.dayHeaderDidMount, willUnmount: n.dayHeaderWillUnmount }, (p) => g("div", { className: "fc-scrollgrid-sync-inner" }, !o.isDisabled && g(p, { elTag: "a", elAttrs: h, elClasses: [
3680
+ "fc-col-header-cell-cushion",
3681
+ s.isSticky && "fc-sticky"
3682
+ ] })));
3683
+ }
3684
+ }
3685
+ const Qi = C({ weekday: "long" });
3686
+ class ji extends D {
3687
+ render() {
3688
+ let { props: e } = this, { dateEnv: n, theme: r, viewApi: i, options: s } = this.context, l = R(/* @__PURE__ */ new Date(2592e5), e.dow), a = {
3689
+ dow: e.dow,
3690
+ isDisabled: !1,
3691
+ isFuture: !1,
3692
+ isPast: !1,
3693
+ isToday: !1,
3694
+ isOther: !1
3695
+ }, o = n.format(l, e.dayHeaderFormat), c = Object.assign(Object.assign(Object.assign(Object.assign({
3696
+ // TODO: make this public?
3697
+ date: l
3698
+ }, a), { view: i }), e.extraRenderProps), { text: o });
3699
+ return g(T, { elTag: "th", elClasses: [
3700
+ rn,
3701
+ ...Xe(a, r),
3702
+ ...e.extraClassNames || []
3703
+ ], elAttrs: Object.assign({ role: "columnheader", colSpan: e.colSpan }, e.extraDataAttrs), renderProps: c, generatorName: "dayHeaderContent", customGenerator: s.dayHeaderContent, defaultGenerator: sn, classNameGenerator: s.dayHeaderClassNames, didMount: s.dayHeaderDidMount, willUnmount: s.dayHeaderWillUnmount }, (d) => g(
3704
+ "div",
3705
+ { className: "fc-scrollgrid-sync-inner" },
3706
+ g(d, { elTag: "a", elClasses: [
3707
+ "fc-col-header-cell-cushion",
3708
+ e.isSticky && "fc-sticky"
3709
+ ], elAttrs: {
3710
+ "aria-label": n.format(l, Qi)
3711
+ } })
3712
+ ));
3713
+ }
3714
+ }
3715
+ class ln extends pe {
3716
+ constructor(e, n) {
3717
+ super(e, n), this.initialNowDate = be(n.options.now, n.dateEnv), this.initialNowQueriedMs = (/* @__PURE__ */ new Date()).valueOf(), this.state = this.computeTiming().currentState;
3718
+ }
3719
+ render() {
3720
+ let { props: e, state: n } = this;
3721
+ return e.children(n.nowDate, n.todayRange);
3722
+ }
3723
+ componentDidMount() {
3724
+ this.setTimeout();
3725
+ }
3726
+ componentDidUpdate(e) {
3727
+ e.unit !== this.props.unit && (this.clearTimeout(), this.setTimeout());
3728
+ }
3729
+ componentWillUnmount() {
3730
+ this.clearTimeout();
3731
+ }
3732
+ computeTiming() {
3733
+ let { props: e, context: n } = this, r = x(this.initialNowDate, (/* @__PURE__ */ new Date()).valueOf() - this.initialNowQueriedMs), i = n.dateEnv.startOf(r, e.unit), s = n.dateEnv.add(i, v(1, e.unit)), l = s.valueOf() - r.valueOf();
3734
+ return l = Math.min(1e3 * 60 * 60 * 24, l), {
3735
+ currentState: { nowDate: i, todayRange: Et(i) },
3736
+ nextState: { nowDate: s, todayRange: Et(s) },
3737
+ waitMs: l
3738
+ };
3739
+ }
3740
+ setTimeout() {
3741
+ let { nextState: e, waitMs: n } = this.computeTiming();
3742
+ this.timeoutId = setTimeout(() => {
3743
+ this.setState(e, () => {
3744
+ this.setTimeout();
3745
+ });
3746
+ }, n);
3747
+ }
3748
+ clearTimeout() {
3749
+ this.timeoutId && clearTimeout(this.timeoutId);
3750
+ }
3751
+ }
3752
+ ln.contextType = G;
3753
+ function Et(t) {
3754
+ let e = b(t), n = R(e, 1);
3755
+ return { start: e, end: n };
3756
+ }
3757
+ class _l extends D {
3758
+ constructor() {
3759
+ super(...arguments), this.createDayHeaderFormatter = E(Wi);
3760
+ }
3761
+ render() {
3762
+ let { context: e } = this, { dates: n, dateProfile: r, datesRepDistinctDays: i, renderIntro: s } = this.props, l = this.createDayHeaderFormatter(e.options.dayHeaderFormat, i, n.length);
3763
+ return g(ln, { unit: "day" }, (a, o) => g(
3764
+ "tr",
3765
+ { role: "row" },
3766
+ s && s("day"),
3767
+ n.map((c) => i ? g(Pi, { key: c.toISOString(), date: c, dateProfile: r, todayRange: o, colCnt: n.length, dayHeaderFormat: l }) : g(ji, { key: c.getUTCDay(), dow: c.getUTCDay(), dayHeaderFormat: l }))
3768
+ ));
3769
+ }
3770
+ }
3771
+ function Wi(t, e, n) {
3772
+ return t || Li(e, n);
3773
+ }
3774
+ class Hl {
3775
+ constructor(e, n) {
3776
+ let r = e.start, { end: i } = e, s = [], l = [], a = -1;
3777
+ for (; r < i; )
3778
+ n.isHiddenDay(r) ? s.push(a + 0.5) : (a += 1, s.push(a), l.push(r)), r = R(r, 1);
3779
+ this.dates = l, this.indices = s, this.cnt = l.length;
3780
+ }
3781
+ sliceRange(e) {
3782
+ let n = this.getDateDayIndex(e.start), r = this.getDateDayIndex(R(e.end, -1)), i = Math.max(0, n), s = Math.min(this.cnt - 1, r);
3783
+ return i = Math.ceil(i), s = Math.floor(s), i <= s ? {
3784
+ firstIndex: i,
3785
+ lastIndex: s,
3786
+ isStart: n === i,
3787
+ isEnd: r === s
3788
+ } : null;
3789
+ }
3790
+ // Given a date, returns its chronolocial cell-index from the first cell of the grid.
3791
+ // If the date lies between cells (because of hiddenDays), returns a floating-point value between offsets.
3792
+ // If before the first offset, returns a negative number.
3793
+ // If after the last offset, returns an offset past the last cell offset.
3794
+ // Only works for *start* dates of cells. Will not work for exclusive end dates for cells.
3795
+ getDateDayIndex(e) {
3796
+ let { indices: n } = this, r = Math.floor(U(this.dates[0], e));
3797
+ return r < 0 ? n[0] - 1 : r >= n.length ? n[n.length - 1] + 1 : n[r];
3798
+ }
3799
+ }
3800
+ class Ul {
3801
+ constructor(e, n) {
3802
+ let { dates: r } = e, i, s, l;
3803
+ if (n) {
3804
+ for (s = r[0].getUTCDay(), i = 1; i < r.length && r[i].getUTCDay() !== s; i += 1)
3805
+ ;
3806
+ l = Math.ceil(r.length / i);
3807
+ } else
3808
+ l = 1, i = r.length;
3809
+ this.rowCnt = l, this.colCnt = i, this.daySeries = e, this.cells = this.buildCells(), this.headerDates = this.buildHeaderDates();
3810
+ }
3811
+ buildCells() {
3812
+ let e = [];
3813
+ for (let n = 0; n < this.rowCnt; n += 1) {
3814
+ let r = [];
3815
+ for (let i = 0; i < this.colCnt; i += 1)
3816
+ r.push(this.buildCell(n, i));
3817
+ e.push(r);
3818
+ }
3819
+ return e;
3820
+ }
3821
+ buildCell(e, n) {
3822
+ let r = this.daySeries.dates[e * this.colCnt + n];
3823
+ return {
3824
+ key: r.toISOString(),
3825
+ date: r
3826
+ };
3827
+ }
3828
+ buildHeaderDates() {
3829
+ let e = [];
3830
+ for (let n = 0; n < this.colCnt; n += 1)
3831
+ e.push(this.cells[0][n].date);
3832
+ return e;
3833
+ }
3834
+ sliceRange(e) {
3835
+ let { colCnt: n } = this, r = this.daySeries.sliceRange(e), i = [];
3836
+ if (r) {
3837
+ let { firstIndex: s, lastIndex: l } = r, a = s;
3838
+ for (; a <= l; ) {
3839
+ let o = Math.floor(a / n), c = Math.min((o + 1) * n, l + 1);
3840
+ i.push({
3841
+ row: o,
3842
+ firstCol: a % n,
3843
+ lastCol: (c - 1) % n,
3844
+ isStart: r.isStart && a === s,
3845
+ isEnd: r.isEnd && c - 1 === l
3846
+ }), a = c;
3847
+ }
3848
+ }
3849
+ return i;
3850
+ }
3851
+ }
3852
+ class Fl {
3853
+ constructor() {
3854
+ this.sliceBusinessHours = E(this._sliceBusinessHours), this.sliceDateSelection = E(this._sliceDateSpan), this.sliceEventStore = E(this._sliceEventStore), this.sliceEventDrag = E(this._sliceInteraction), this.sliceEventResize = E(this._sliceInteraction), this.forceDayIfListItem = !1;
3855
+ }
3856
+ sliceProps(e, n, r, i, ...s) {
3857
+ let { eventUiBases: l } = e, a = this.sliceEventStore(e.eventStore, l, n, r, ...s);
3858
+ return {
3859
+ dateSelectionSegs: this.sliceDateSelection(e.dateSelection, n, r, l, i, ...s),
3860
+ businessHourSegs: this.sliceBusinessHours(e.businessHours, n, r, i, ...s),
3861
+ fgEventSegs: a.fg,
3862
+ bgEventSegs: a.bg,
3863
+ eventDrag: this.sliceEventDrag(e.eventDrag, l, n, r, ...s),
3864
+ eventResize: this.sliceEventResize(e.eventResize, l, n, r, ...s),
3865
+ eventSelection: e.eventSelection
3866
+ };
3867
+ }
3868
+ sliceNowDate(e, n, r, i, ...s) {
3869
+ return this._sliceDateSpan(
3870
+ { range: { start: e, end: x(e, 1) }, allDay: !1 },
3871
+ // add 1 ms, protect against null range
3872
+ n,
3873
+ r,
3874
+ {},
3875
+ i,
3876
+ ...s
3877
+ );
3878
+ }
3879
+ _sliceBusinessHours(e, n, r, i, ...s) {
3880
+ return e ? this._sliceEventStore(H(e, ie(n, !!r), i), {}, n, r, ...s).bg : [];
3881
+ }
3882
+ _sliceEventStore(e, n, r, i, ...s) {
3883
+ if (e) {
3884
+ let l = pt(e, n, ie(r, !!i), i);
3885
+ return {
3886
+ bg: this.sliceEventRanges(l.bg, s),
3887
+ fg: this.sliceEventRanges(l.fg, s)
3888
+ };
3889
+ }
3890
+ return { bg: [], fg: [] };
3891
+ }
3892
+ _sliceInteraction(e, n, r, i, ...s) {
3893
+ if (!e)
3894
+ return null;
3895
+ let l = pt(e.mutatedEvents, n, ie(r, !!i), i);
3896
+ return {
3897
+ segs: this.sliceEventRanges(l.fg, s),
3898
+ affectedInstances: e.affectedEvents.instances,
3899
+ isEvent: e.isEvent
3900
+ };
3901
+ }
3902
+ _sliceDateSpan(e, n, r, i, s, ...l) {
3903
+ if (!e)
3904
+ return [];
3905
+ let a = ie(n, !!r), o = fe(e.range, a);
3906
+ if (o) {
3907
+ e = Object.assign(Object.assign({}, e), { range: o });
3908
+ let c = Ci(e, i, s), d = this.sliceRange(e.range, ...l);
3909
+ for (let h of d)
3910
+ h.eventRange = c;
3911
+ return d;
3912
+ }
3913
+ return [];
3914
+ }
3915
+ /*
3916
+ "complete" seg means it has component and eventRange
3917
+ */
3918
+ sliceEventRanges(e, n) {
3919
+ let r = [];
3920
+ for (let i of e)
3921
+ r.push(...this.sliceEventRange(i, n));
3922
+ return r;
3923
+ }
3924
+ /*
3925
+ "complete" seg means it has component and eventRange
3926
+ */
3927
+ sliceEventRange(e, n) {
3928
+ let r = e.range;
3929
+ this.forceDayIfListItem && e.ui.display === "list-item" && (r = {
3930
+ start: r.start,
3931
+ end: R(r.start, 1)
3932
+ });
3933
+ let i = this.sliceRange(r, ...n);
3934
+ for (let s of i)
3935
+ s.eventRange = e, s.isStart = e.isStart && s.isStart, s.isEnd = e.isEnd && s.isEnd;
3936
+ return i;
3937
+ }
3938
+ }
3939
+ function ie(t, e) {
3940
+ let n = t.activeRange;
3941
+ return e ? n : {
3942
+ start: x(n.start, t.slotMinTime.milliseconds),
3943
+ end: x(n.end, t.slotMaxTime.milliseconds - 864e5)
3944
+ // 864e5 = ms in a day
3945
+ };
3946
+ }
3947
+ function zl(t, e, n) {
3948
+ let { instances: r } = t.mutatedEvents;
3949
+ for (let i in r)
3950
+ if (!Ge(e.validRange, r[i].range))
3951
+ return !1;
3952
+ return an({ eventDrag: t }, n);
3953
+ }
3954
+ function Ll(t, e, n) {
3955
+ return Ge(e.validRange, t.range) ? an({ dateSelection: t }, n) : !1;
3956
+ }
3957
+ function an(t, e) {
3958
+ let n = e.getCurrentData(), r = Object.assign({ businessHours: n.businessHours, dateSelection: "", eventStore: n.eventStore, eventUiBases: n.eventUiBases, eventSelection: "", eventDrag: null, eventResize: null }, t);
3959
+ return (e.pluginHooks.isPropsValid || Gi)(r, e);
3960
+ }
3961
+ function Gi(t, e, n = {}, r) {
3962
+ return !(t.eventDrag && !Vi(t, e, n, r) || t.dateSelection && !Yi(t, e, n, r));
3963
+ }
3964
+ function Vi(t, e, n, r) {
3965
+ let i = e.getCurrentData(), s = t.eventDrag, l = s.mutatedEvents, a = l.defs, o = l.instances, c = ge(a, s.isEvent ? t.eventUiBases : { "": i.selectionConfig });
3966
+ r && (c = J(c, r));
3967
+ let d = Kr(t.eventStore, s.affectedEvents.instances), h = d.defs, f = d.instances, p = ge(h, t.eventUiBases);
3968
+ for (let A in o) {
3969
+ let m = o[A], y = m.range, k = c[m.defId], M = a[m.defId];
3970
+ if (!on(k.constraints, y, d, t.businessHours, e))
3971
+ return !1;
3972
+ let { eventOverlap: z } = e.options, L = typeof z == "function" ? z : null;
3973
+ for (let Ee in f) {
3974
+ let P = f[Ee];
3975
+ if (We(y, P.range) && (p[P.defId].overlap === !1 && s.isEvent || k.overlap === !1 || L && !L(
3976
+ new S(e, h[P.defId], P),
3977
+ // still event
3978
+ new S(e, M, m)
3979
+ )))
3980
+ return !1;
3981
+ }
3982
+ let $e = i.eventStore;
3983
+ for (let Ee of k.allows) {
3984
+ let P = Object.assign(Object.assign({}, n), { range: m.range, allDay: M.allDay }), De = $e.defs[M.defId], dn = $e.instances[A], Ce;
3985
+ if (De ? Ce = new S(e, De, dn) : Ce = new S(e, M), !Ee(Je(P, e), Ce))
3986
+ return !1;
3987
+ }
3988
+ }
3989
+ return !0;
3990
+ }
3991
+ function Yi(t, e, n, r) {
3992
+ let i = t.eventStore, s = i.defs, l = i.instances, a = t.dateSelection, o = a.range, { selectionConfig: c } = e.getCurrentData();
3993
+ if (r && (c = r(c)), !on(c.constraints, o, i, t.businessHours, e))
3994
+ return !1;
3995
+ let { selectOverlap: d } = e.options, h = typeof d == "function" ? d : null;
3996
+ for (let f in l) {
3997
+ let p = l[f];
3998
+ if (We(o, p.range) && (c.overlap === !1 || h && !h(new S(e, s[p.defId], p), null)))
3999
+ return !1;
4000
+ }
4001
+ for (let f of c.allows) {
4002
+ let p = Object.assign(Object.assign({}, n), a);
4003
+ if (!f(Je(p, e), null))
4004
+ return !1;
4005
+ }
4006
+ return !0;
4007
+ }
4008
+ function on(t, e, n, r, i) {
4009
+ for (let s of t)
4010
+ if (!Zi(qi(s, e, n, r, i), e))
4011
+ return !1;
4012
+ return !0;
4013
+ }
4014
+ function qi(t, e, n, r, i) {
4015
+ return t === "businessHours" ? Be(H(r, e, i)) : typeof t == "string" ? Be(ye(n, (s) => s.groupId === t)) : typeof t == "object" && t ? Be(H(t, e, i)) : [];
4016
+ }
4017
+ function Be(t) {
4018
+ let { instances: e } = t, n = [];
4019
+ for (let r in e)
4020
+ n.push(e[r].range);
4021
+ return n;
4022
+ }
4023
+ function Zi(t, e) {
4024
+ for (let n of t)
4025
+ if (Ge(n, e))
4026
+ return !0;
4027
+ return !1;
4028
+ }
4029
+ const se = /^(visible|hidden)$/;
4030
+ class Ji extends D {
4031
+ constructor() {
4032
+ super(...arguments), this.handleEl = (e) => {
4033
+ this.el = e, Y(this.props.elRef, e);
4034
+ };
4035
+ }
4036
+ render() {
4037
+ let { props: e } = this, { liquid: n, liquidIsAbsolute: r } = e, i = n && r, s = ["fc-scroller"];
4038
+ return n && (r ? s.push("fc-scroller-liquid-absolute") : s.push("fc-scroller-liquid")), g("div", { ref: this.handleEl, className: s.join(" "), style: {
4039
+ overflowX: e.overflowX,
4040
+ overflowY: e.overflowY,
4041
+ left: i && -(e.overcomeLeft || 0) || "",
4042
+ right: i && -(e.overcomeRight || 0) || "",
4043
+ bottom: i && -(e.overcomeBottom || 0) || "",
4044
+ marginLeft: !i && -(e.overcomeLeft || 0) || "",
4045
+ marginRight: !i && -(e.overcomeRight || 0) || "",
4046
+ marginBottom: !i && -(e.overcomeBottom || 0) || "",
4047
+ maxHeight: e.maxHeight || ""
4048
+ } }, e.children);
4049
+ }
4050
+ needsXScrolling() {
4051
+ if (se.test(this.props.overflowX))
4052
+ return !1;
4053
+ let { el: e } = this, n = this.el.getBoundingClientRect().width - this.getYScrollbarWidth(), { children: r } = e;
4054
+ for (let i = 0; i < r.length; i += 1)
4055
+ if (r[i].getBoundingClientRect().width > n)
4056
+ return !0;
4057
+ return !1;
4058
+ }
4059
+ needsYScrolling() {
4060
+ if (se.test(this.props.overflowY))
4061
+ return !1;
4062
+ let { el: e } = this, n = this.el.getBoundingClientRect().height - this.getXScrollbarWidth(), { children: r } = e;
4063
+ for (let i = 0; i < r.length; i += 1)
4064
+ if (r[i].getBoundingClientRect().height > n)
4065
+ return !0;
4066
+ return !1;
4067
+ }
4068
+ getXScrollbarWidth() {
4069
+ return se.test(this.props.overflowX) ? 0 : this.el.offsetHeight - this.el.clientHeight;
4070
+ }
4071
+ getYScrollbarWidth() {
4072
+ return se.test(this.props.overflowY) ? 0 : this.el.offsetWidth - this.el.clientWidth;
4073
+ }
4074
+ }
4075
+ class Dt {
4076
+ constructor(e) {
4077
+ this.masterCallback = e, this.currentMap = {}, this.depths = {}, this.callbackMap = {}, this.handleValue = (n, r) => {
4078
+ let { depths: i, currentMap: s } = this, l = !1, a = !1;
4079
+ n !== null ? (l = r in s, s[r] = n, i[r] = (i[r] || 0) + 1, a = !0) : (i[r] -= 1, i[r] || (delete s[r], delete this.callbackMap[r], l = !0)), this.masterCallback && (l && this.masterCallback(null, String(r)), a && this.masterCallback(n, String(r)));
4080
+ };
4081
+ }
4082
+ createRef(e) {
4083
+ let n = this.callbackMap[e];
4084
+ return n || (n = this.callbackMap[e] = (r) => {
4085
+ this.handleValue(r, String(e));
4086
+ }), n;
4087
+ }
4088
+ // TODO: check callers that don't care about order. should use getAll instead
4089
+ // NOTE: this method has become less valuable now that we are encouraged to map order by some other index
4090
+ // TODO: provide ONE array-export function, buildArray, which fails on non-numeric indexes. caller can manipulate and "collect"
4091
+ collect(e, n, r) {
4092
+ return mr(this.currentMap, e, n, r);
4093
+ }
4094
+ getAll() {
4095
+ return Ht(this.currentMap);
4096
+ }
4097
+ }
4098
+ function Xi(t) {
4099
+ let e = Dn(t, ".fc-scrollgrid-shrink"), n = 0;
4100
+ for (let r of e)
4101
+ n = Math.max(n, On(r));
4102
+ return Math.ceil(n);
4103
+ }
4104
+ function cn(t, e) {
4105
+ return t.liquid && e.liquid;
4106
+ }
4107
+ function $i(t, e) {
4108
+ return e.maxHeight != null || // if its possible for the height to max out, we might need scrollbars
4109
+ cn(t, e);
4110
+ }
4111
+ function Ki(t, e, n, r) {
4112
+ let { expandRows: i } = n;
4113
+ return typeof e.content == "function" ? e.content(n) : g("table", {
4114
+ role: "presentation",
4115
+ className: [
4116
+ e.tableClassName,
4117
+ t.syncRowHeights ? "fc-scrollgrid-sync-table" : ""
4118
+ ].join(" "),
4119
+ style: {
4120
+ minWidth: n.tableMinWidth,
4121
+ width: n.clientWidth,
4122
+ height: i ? n.clientHeight : ""
4123
+ // css `height` on a <table> serves as a min-height
4124
+ }
4125
+ }, n.tableColGroupNode, g(r ? "thead" : "tbody", {
4126
+ role: "presentation"
4127
+ }, typeof e.rowContent == "function" ? e.rowContent(n) : e.rowContent));
4128
+ }
4129
+ function es(t, e) {
4130
+ return K(t, e, _);
4131
+ }
4132
+ function ts(t, e) {
4133
+ let n = [];
4134
+ for (let r of t) {
4135
+ let i = r.span || 1;
4136
+ for (let s = 0; s < i; s += 1)
4137
+ n.push(g("col", { style: {
4138
+ width: r.width === "shrink" ? ns(e) : r.width || "",
4139
+ minWidth: r.minWidth || ""
4140
+ } }));
4141
+ }
4142
+ return g("colgroup", {}, ...n);
4143
+ }
4144
+ function ns(t) {
4145
+ return t ?? 4;
4146
+ }
4147
+ function rs(t) {
4148
+ for (let e of t)
4149
+ if (e.width === "shrink")
4150
+ return !0;
4151
+ return !1;
4152
+ }
4153
+ function is(t, e) {
4154
+ let n = [
4155
+ "fc-scrollgrid",
4156
+ e.theme.getClass("table")
4157
+ ];
4158
+ return t && n.push("fc-scrollgrid-liquid"), n;
4159
+ }
4160
+ function ss(t, e) {
4161
+ let n = [
4162
+ "fc-scrollgrid-section",
4163
+ `fc-scrollgrid-section-${t.type}`,
4164
+ t.className
4165
+ // used?
4166
+ ];
4167
+ return e && t.liquid && t.maxHeight == null && n.push("fc-scrollgrid-section-liquid"), t.isSticky && n.push("fc-scrollgrid-section-sticky"), n;
4168
+ }
4169
+ function Pl(t) {
4170
+ return g("div", { className: "fc-scrollgrid-sticky-shim", style: {
4171
+ width: t.clientWidth,
4172
+ minWidth: t.tableMinWidth
4173
+ } });
4174
+ }
4175
+ function Ql(t) {
4176
+ let { stickyHeaderDates: e } = t;
4177
+ return (e == null || e === "auto") && (e = t.height === "auto" || t.viewHeight === "auto"), e;
4178
+ }
4179
+ function jl(t) {
4180
+ let { stickyFooterScrollbar: e } = t;
4181
+ return (e == null || e === "auto") && (e = t.height === "auto" || t.viewHeight === "auto"), e;
4182
+ }
4183
+ class ls extends D {
4184
+ constructor() {
4185
+ super(...arguments), this.processCols = E((e) => e, es), this.renderMicroColGroup = E(ts), this.scrollerRefs = new Dt(), this.scrollerElRefs = new Dt(this._handleScrollerEl.bind(this)), this.state = {
4186
+ shrinkWidth: null,
4187
+ forceYScrollbars: !1,
4188
+ scrollerClientWidths: {},
4189
+ scrollerClientHeights: {}
4190
+ }, this.handleSizing = () => {
4191
+ this.safeSetState(Object.assign({ shrinkWidth: this.computeShrinkWidth() }, this.computeScrollerDims()));
4192
+ };
4193
+ }
4194
+ render() {
4195
+ let { props: e, state: n, context: r } = this, i = e.sections || [], s = this.processCols(e.cols), l = this.renderMicroColGroup(s, n.shrinkWidth), a = is(e.liquid, r);
4196
+ e.collapsibleWidth && a.push("fc-scrollgrid-collapsible");
4197
+ let o = i.length, c = 0, d, h = [], f = [], p = [];
4198
+ for (; c < o && (d = i[c]).type === "header"; )
4199
+ h.push(this.renderSection(d, l, !0)), c += 1;
4200
+ for (; c < o && (d = i[c]).type === "body"; )
4201
+ f.push(this.renderSection(d, l, !1)), c += 1;
4202
+ for (; c < o && (d = i[c]).type === "footer"; )
4203
+ p.push(this.renderSection(d, l, !0)), c += 1;
4204
+ let A = !$t();
4205
+ const m = { role: "rowgroup" };
4206
+ return g("table", {
4207
+ role: "grid",
4208
+ className: a.join(" "),
4209
+ style: { height: e.height }
4210
+ }, !!(!A && h.length) && g("thead", m, ...h), !!(!A && f.length) && g("tbody", m, ...f), !!(!A && p.length) && g("tfoot", m, ...p), A && g("tbody", m, ...h, ...f, ...p));
4211
+ }
4212
+ renderSection(e, n, r) {
4213
+ return "outerContent" in e ? g(me, { key: e.key }, e.outerContent) : g("tr", { key: e.key, role: "presentation", className: ss(e, this.props.liquid).join(" ") }, this.renderChunkTd(e, n, e.chunk, r));
4214
+ }
4215
+ renderChunkTd(e, n, r, i) {
4216
+ if ("outerContent" in r)
4217
+ return r.outerContent;
4218
+ let { props: s } = this, { forceYScrollbars: l, scrollerClientWidths: a, scrollerClientHeights: o } = this.state, c = $i(s, e), d = cn(s, e), h = s.liquid ? l ? "scroll" : c ? "auto" : "hidden" : "visible", f = e.key, p = Ki(e, r, {
4219
+ tableColGroupNode: n,
4220
+ tableMinWidth: "",
4221
+ clientWidth: !s.collapsibleWidth && a[f] !== void 0 ? a[f] : null,
4222
+ clientHeight: o[f] !== void 0 ? o[f] : null,
4223
+ expandRows: e.expandRows,
4224
+ syncRowHeights: !1,
4225
+ rowSyncHeights: [],
4226
+ reportRowHeightChange: () => {
4227
+ }
4228
+ }, i);
4229
+ return g(i ? "th" : "td", {
4230
+ ref: r.elRef,
4231
+ role: "presentation"
4232
+ }, g(
4233
+ "div",
4234
+ { className: `fc-scroller-harness${d ? " fc-scroller-harness-liquid" : ""}` },
4235
+ g(Ji, { ref: this.scrollerRefs.createRef(f), elRef: this.scrollerElRefs.createRef(f), overflowY: h, overflowX: s.liquid ? "hidden" : "visible", maxHeight: e.maxHeight, liquid: d, liquidIsAbsolute: !0 }, p)
4236
+ ));
4237
+ }
4238
+ _handleScrollerEl(e, n) {
4239
+ let r = as(this.props.sections, n);
4240
+ r && Y(r.chunk.scrollerElRef, e);
4241
+ }
4242
+ componentDidMount() {
4243
+ this.handleSizing(), this.context.addResizeHandler(this.handleSizing);
4244
+ }
4245
+ componentDidUpdate() {
4246
+ this.handleSizing();
4247
+ }
4248
+ componentWillUnmount() {
4249
+ this.context.removeResizeHandler(this.handleSizing);
4250
+ }
4251
+ computeShrinkWidth() {
4252
+ return rs(this.props.cols) ? Xi(this.scrollerElRefs.getAll()) : 0;
4253
+ }
4254
+ computeScrollerDims() {
4255
+ let e = Oi(), { scrollerRefs: n, scrollerElRefs: r } = this, i = !1, s = {}, l = {};
4256
+ for (let a in n.currentMap) {
4257
+ let o = n.currentMap[a];
4258
+ if (o && o.needsYScrolling()) {
4259
+ i = !0;
4260
+ break;
4261
+ }
4262
+ }
4263
+ for (let a of this.props.sections) {
4264
+ let o = a.key, c = r.currentMap[o];
4265
+ if (c) {
4266
+ let d = c.parentNode;
4267
+ s[o] = Math.floor(d.getBoundingClientRect().width - (i ? e.y : 0)), l[o] = Math.floor(d.getBoundingClientRect().height);
4268
+ }
4269
+ }
4270
+ return { forceYScrollbars: i, scrollerClientWidths: s, scrollerClientHeights: l };
4271
+ }
4272
+ }
4273
+ ls.addStateEquality({
4274
+ scrollerClientWidths: _,
4275
+ scrollerClientHeights: _
4276
+ });
4277
+ function as(t, e) {
4278
+ for (let n of t)
4279
+ if (n.key === e)
4280
+ return n;
4281
+ return null;
4282
+ }
4283
+ class un extends D {
4284
+ constructor() {
4285
+ super(...arguments), this.handleEl = (e) => {
4286
+ this.el = e, e && mt(e, this.props.seg);
4287
+ };
4288
+ }
4289
+ render() {
4290
+ const { props: e, context: n } = this, { options: r } = n, { seg: i } = e, { eventRange: s } = i, { ui: l } = s, a = {
4291
+ event: new S(n, s.def, s.instance),
4292
+ view: n.viewApi,
4293
+ timeText: e.timeText,
4294
+ textColor: l.textColor,
4295
+ backgroundColor: l.backgroundColor,
4296
+ borderColor: l.borderColor,
4297
+ isDraggable: !e.disableDragging && fi(i, n),
4298
+ isStartResizable: !e.disableResizing && hi(i, n),
4299
+ isEndResizable: !e.disableResizing && gi(i),
4300
+ isMirror: !!(e.isDragging || e.isResizing || e.isDateSelecting),
4301
+ isStart: !!i.isStart,
4302
+ isEnd: !!i.isEnd,
4303
+ isPast: !!e.isPast,
4304
+ isFuture: !!e.isFuture,
4305
+ isToday: !!e.isToday,
4306
+ isSelected: !!e.isSelected,
4307
+ isDragging: !!e.isDragging,
4308
+ isResizing: !!e.isResizing
4309
+ };
4310
+ return g(T, Object.assign({}, e, { elRef: this.handleEl, elClasses: [
4311
+ ...mi(a),
4312
+ ...i.eventRange.ui.classNames,
4313
+ ...e.elClasses || []
4314
+ ], renderProps: a, generatorName: "eventContent", customGenerator: r.eventContent, defaultGenerator: e.defaultGenerator, classNameGenerator: r.eventClassNames, didMount: r.eventDidMount, willUnmount: r.eventWillUnmount }));
4315
+ }
4316
+ componentDidUpdate(e) {
4317
+ this.el && this.props.seg !== e.seg && mt(this.el, this.props.seg);
4318
+ }
4319
+ }
4320
+ class Wl extends D {
4321
+ render() {
4322
+ let { props: e, context: n } = this, { options: r } = n, { seg: i } = e, { ui: s } = i.eventRange, l = r.eventTimeFormat || e.defaultTimeFormat, a = pi(i, l, n, e.defaultDisplayEventTime, e.defaultDisplayEventEnd);
4323
+ return g(un, Object.assign({}, e, { elTag: "a", elStyle: {
4324
+ borderColor: s.borderColor,
4325
+ backgroundColor: s.backgroundColor
4326
+ }, elAttrs: Ai(i, n), defaultGenerator: os, timeText: a }), (o, c) => g(
4327
+ me,
4328
+ null,
4329
+ g(o, { elTag: "div", elClasses: ["fc-event-main"], elStyle: { color: c.textColor } }),
4330
+ !!c.isStartResizable && g("div", { className: "fc-event-resizer fc-event-resizer-start" }),
4331
+ !!c.isEndResizable && g("div", { className: "fc-event-resizer fc-event-resizer-end" })
4332
+ ));
4333
+ }
4334
+ }
4335
+ function os(t) {
4336
+ return g(
4337
+ "div",
4338
+ { className: "fc-event-main-frame" },
4339
+ t.timeText && g("div", { className: "fc-event-time" }, t.timeText),
4340
+ g(
4341
+ "div",
4342
+ { className: "fc-event-title-container" },
4343
+ g("div", { className: "fc-event-title fc-sticky" }, t.event.title || g(me, null, " "))
4344
+ )
4345
+ );
4346
+ }
4347
+ const Gl = (t) => g(G.Consumer, null, (e) => {
4348
+ let { options: n } = e, r = {
4349
+ isAxis: t.isAxis,
4350
+ date: e.dateEnv.toDate(t.date),
4351
+ view: e.viewApi
4352
+ };
4353
+ return g(T, Object.assign({}, t, { elTag: t.elTag || "div", renderProps: r, generatorName: "nowIndicatorContent", customGenerator: n.nowIndicatorContent, classNameGenerator: n.nowIndicatorClassNames, didMount: n.nowIndicatorDidMount, willUnmount: n.nowIndicatorWillUnmount }));
4354
+ }), cs = C({ day: "numeric" });
4355
+ class us extends D {
4356
+ constructor() {
4357
+ super(...arguments), this.refineRenderProps = Jn(fs);
4358
+ }
4359
+ render() {
4360
+ let { props: e, context: n } = this, { options: r } = n, i = this.refineRenderProps({
4361
+ date: e.date,
4362
+ dateProfile: e.dateProfile,
4363
+ todayRange: e.todayRange,
4364
+ isMonthStart: e.isMonthStart || !1,
4365
+ showDayNumber: e.showDayNumber,
4366
+ extraRenderProps: e.extraRenderProps,
4367
+ viewApi: n.viewApi,
4368
+ dateEnv: n.dateEnv,
4369
+ monthStartFormat: r.monthStartFormat
4370
+ });
4371
+ return g(T, Object.assign({}, e, { elClasses: [
4372
+ ...Xe(i, n.theme),
4373
+ ...e.elClasses || []
4374
+ ], elAttrs: Object.assign(Object.assign({}, e.elAttrs), i.isDisabled ? {} : { "data-date": xt(e.date) }), renderProps: i, generatorName: "dayCellContent", customGenerator: r.dayCellContent, defaultGenerator: e.defaultGenerator, classNameGenerator: (
4375
+ // don't use custom classNames if disabled
4376
+ i.isDisabled ? void 0 : r.dayCellClassNames
4377
+ ), didMount: r.dayCellDidMount, willUnmount: r.dayCellWillUnmount }));
4378
+ }
4379
+ }
4380
+ function ds(t) {
4381
+ return !!(t.dayCellContent || Fe("dayCellContent", t));
4382
+ }
4383
+ function fs(t) {
4384
+ let { date: e, dateEnv: n, dateProfile: r, isMonthStart: i } = t, s = Kt(e, t.todayRange, null, r), l = t.showDayNumber ? n.format(e, i ? t.monthStartFormat : cs) : "";
4385
+ return Object.assign(Object.assign(Object.assign({ date: n.toDate(e), view: t.viewApi }, s), {
4386
+ isMonthStart: i,
4387
+ dayNumberText: l
4388
+ }), t.extraRenderProps);
4389
+ }
4390
+ class Vl extends D {
4391
+ render() {
4392
+ let { props: e } = this, { seg: n } = e;
4393
+ return g(un, { elTag: "div", elClasses: ["fc-bg-event"], elStyle: { backgroundColor: n.eventRange.ui.backgroundColor }, defaultGenerator: hs, seg: n, timeText: "", isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: !1, isPast: e.isPast, isFuture: e.isFuture, isToday: e.isToday, disableDragging: !0, disableResizing: !0 });
4394
+ }
4395
+ }
4396
+ function hs(t) {
4397
+ let { title: e } = t.event;
4398
+ return e && g("div", { className: "fc-event-title" }, t.event.title);
4399
+ }
4400
+ function Yl(t) {
4401
+ return g("div", { className: `fc-${t}` });
4402
+ }
4403
+ const ql = (t) => g(G.Consumer, null, (e) => {
4404
+ let { dateEnv: n, options: r } = e, { date: i } = t, s = r.weekNumberFormat || t.defaultFormat, l = n.computeWeekNumber(i), a = n.format(i, s);
4405
+ return g(
4406
+ T,
4407
+ Object.assign({}, t, { renderProps: { num: l, text: a, date: i }, generatorName: "weekNumberContent", customGenerator: r.weekNumberContent, defaultGenerator: gs, classNameGenerator: r.weekNumberClassNames, didMount: r.weekNumberDidMount, willUnmount: r.weekNumberWillUnmount })
4408
+ );
4409
+ });
4410
+ function gs(t) {
4411
+ return t.text;
4412
+ }
4413
+ const xe = 10;
4414
+ class ps extends D {
4415
+ constructor() {
4416
+ super(...arguments), this.state = {
4417
+ titleId: Tt()
4418
+ }, this.handleRootEl = (e) => {
4419
+ this.rootEl = e, this.props.elRef && Y(this.props.elRef, e);
4420
+ }, this.handleDocumentMouseDown = (e) => {
4421
+ const n = wn(e);
4422
+ this.rootEl.contains(n) || this.handleCloseClick();
4423
+ }, this.handleDocumentKeyDown = (e) => {
4424
+ e.key === "Escape" && this.handleCloseClick();
4425
+ }, this.handleCloseClick = () => {
4426
+ let { onClose: e } = this.props;
4427
+ e && e();
4428
+ };
4429
+ }
4430
+ render() {
4431
+ let { theme: e, options: n } = this.context, { props: r, state: i } = this, s = [
4432
+ "fc-popover",
4433
+ e.getClass("popover")
4434
+ ].concat(r.extraClassNames || []);
4435
+ return pn(g(
4436
+ "div",
4437
+ Object.assign({}, r.extraAttrs, { id: r.id, className: s.join(" "), "aria-labelledby": i.titleId, ref: this.handleRootEl }),
4438
+ g(
4439
+ "div",
4440
+ { className: "fc-popover-header " + e.getClass("popoverHeader") },
4441
+ g("span", { className: "fc-popover-title", id: i.titleId }, r.title),
4442
+ g("span", { className: "fc-popover-close " + e.getIconClass("close"), title: n.closeHint, onClick: this.handleCloseClick })
4443
+ ),
4444
+ g("div", { className: "fc-popover-body " + e.getClass("popoverContent") }, r.children)
4445
+ ), r.parentEl);
4446
+ }
4447
+ componentDidMount() {
4448
+ document.addEventListener("mousedown", this.handleDocumentMouseDown), document.addEventListener("keydown", this.handleDocumentKeyDown), this.updateSize();
4449
+ }
4450
+ componentWillUnmount() {
4451
+ document.removeEventListener("mousedown", this.handleDocumentMouseDown), document.removeEventListener("keydown", this.handleDocumentKeyDown);
4452
+ }
4453
+ updateSize() {
4454
+ let { isRtl: e } = this.context, { alignmentEl: n, alignGridTop: r } = this.props, { rootEl: i } = this, s = Hi(n);
4455
+ if (s) {
4456
+ let l = i.getBoundingClientRect(), a = r ? I(n, ".fc-scrollgrid").getBoundingClientRect().top : s.top, o = e ? s.right - l.width : s.left;
4457
+ a = Math.max(a, xe), o = Math.min(o, document.documentElement.clientWidth - xe - l.width), o = Math.max(o, xe);
4458
+ let c = i.offsetParent.getBoundingClientRect();
4459
+ Mt(i, {
4460
+ top: a - c.top,
4461
+ left: o - c.left
4462
+ });
4463
+ }
4464
+ }
4465
+ }
4466
+ class ms extends Fi {
4467
+ constructor() {
4468
+ super(...arguments), this.handleRootEl = (e) => {
4469
+ this.rootEl = e, e ? this.context.registerInteractiveComponent(this, {
4470
+ el: e,
4471
+ useEventCenter: !1
4472
+ }) : this.context.unregisterInteractiveComponent(this);
4473
+ };
4474
+ }
4475
+ render() {
4476
+ let { options: e, dateEnv: n } = this.context, { props: r } = this, { startDate: i, todayRange: s, dateProfile: l } = r, a = n.format(i, e.dayPopoverFormat);
4477
+ return g(us, { elRef: this.handleRootEl, date: i, dateProfile: l, todayRange: s }, (o, c, d) => g(
4478
+ ps,
4479
+ { elRef: d.ref, id: r.id, title: a, extraClassNames: ["fc-more-popover"].concat(d.className || []), extraAttrs: d, parentEl: r.parentEl, alignmentEl: r.alignmentEl, alignGridTop: r.alignGridTop, onClose: r.onClose },
4480
+ ds(e) && g(o, { elTag: "div", elClasses: ["fc-more-popover-misc"] }),
4481
+ r.children
4482
+ ));
4483
+ }
4484
+ queryHit(e, n, r, i) {
4485
+ let { rootEl: s, props: l } = this;
4486
+ return e >= 0 && e < r && n >= 0 && n < i ? {
4487
+ dateProfile: l.dateProfile,
4488
+ dateSpan: Object.assign({ allDay: !l.forceTimed, range: {
4489
+ start: l.startDate,
4490
+ end: l.endDate
4491
+ } }, l.extraDateSpan),
4492
+ dayEl: s,
4493
+ rect: {
4494
+ left: 0,
4495
+ top: 0,
4496
+ right: r,
4497
+ bottom: i
4498
+ },
4499
+ layer: 1
4500
+ // important when comparing with hits from other components
4501
+ } : null;
4502
+ }
4503
+ }
4504
+ class Zl extends D {
4505
+ constructor() {
4506
+ super(...arguments), this.state = {
4507
+ isPopoverOpen: !1,
4508
+ popoverId: Tt()
4509
+ }, this.handleLinkEl = (e) => {
4510
+ this.linkEl = e, this.props.elRef && Y(this.props.elRef, e);
4511
+ }, this.handleClick = (e) => {
4512
+ let { props: n, context: r } = this, { moreLinkClick: i } = r.options, s = Ct(n).start;
4513
+ function l(a) {
4514
+ let { def: o, instance: c, range: d } = a.eventRange;
4515
+ return {
4516
+ event: new S(r, o, c),
4517
+ start: r.dateEnv.toDate(d.start),
4518
+ end: r.dateEnv.toDate(d.end),
4519
+ isStart: a.isStart,
4520
+ isEnd: a.isEnd
4521
+ };
4522
+ }
4523
+ typeof i == "function" && (i = i({
4524
+ date: s,
4525
+ allDay: !!n.allDayDate,
4526
+ allSegs: n.allSegs.map(l),
4527
+ hiddenSegs: n.hiddenSegs.map(l),
4528
+ jsEvent: e,
4529
+ view: r.viewApi
4530
+ })), !i || i === "popover" ? this.setState({ isPopoverOpen: !0 }) : typeof i == "string" && r.calendarApi.zoomTo(s, i);
4531
+ }, this.handlePopoverClose = () => {
4532
+ this.setState({ isPopoverOpen: !1 });
4533
+ };
4534
+ }
4535
+ render() {
4536
+ let { props: e, state: n } = this;
4537
+ return g(G.Consumer, null, (r) => {
4538
+ let { viewApi: i, options: s, calendarApi: l } = r, { moreLinkText: a } = s, { moreCnt: o } = e, c = Ct(e), d = typeof a == "function" ? a.call(l, o) : `+${o} ${a}`, h = Ot(s.moreLinkHint, [o], d), f = {
4539
+ num: o,
4540
+ shortText: `+${o}`,
4541
+ text: d,
4542
+ view: i
4543
+ };
4544
+ return g(
4545
+ me,
4546
+ null,
4547
+ !!e.moreCnt && g(T, { elTag: e.elTag || "a", elRef: this.handleLinkEl, elClasses: [
4548
+ ...e.elClasses || [],
4549
+ "fc-more-link"
4550
+ ], elStyle: e.elStyle, elAttrs: Object.assign(Object.assign(Object.assign({}, e.elAttrs), It(this.handleClick)), { title: h, "aria-expanded": n.isPopoverOpen, "aria-controls": n.isPopoverOpen ? n.popoverId : "" }), renderProps: f, generatorName: "moreLinkContent", customGenerator: s.moreLinkContent, defaultGenerator: e.defaultGenerator || As, classNameGenerator: s.moreLinkClassNames, didMount: s.moreLinkDidMount, willUnmount: s.moreLinkWillUnmount }, e.children),
4551
+ n.isPopoverOpen && g(ms, { id: n.popoverId, startDate: c.start, endDate: c.end, dateProfile: e.dateProfile, todayRange: e.todayRange, extraDateSpan: e.extraDateSpan, parentEl: this.parentEl, alignmentEl: e.alignmentElRef ? e.alignmentElRef.current : this.linkEl, alignGridTop: e.alignGridTop, forceTimed: e.forceTimed, onClose: this.handlePopoverClose }, e.popoverContent())
4552
+ );
4553
+ });
4554
+ }
4555
+ componentDidMount() {
4556
+ this.updateParentEl();
4557
+ }
4558
+ componentDidUpdate() {
4559
+ this.updateParentEl();
4560
+ }
4561
+ updateParentEl() {
4562
+ this.linkEl && (this.parentEl = I(this.linkEl, ".fc-view-harness"));
4563
+ }
4564
+ }
4565
+ function As(t) {
4566
+ return t.text;
4567
+ }
4568
+ function Ct(t) {
4569
+ if (t.allDayDate)
4570
+ return {
4571
+ start: t.allDayDate,
4572
+ end: R(t.allDayDate, 1)
4573
+ };
4574
+ let { hiddenSegs: e } = t;
4575
+ return {
4576
+ start: vs(e),
4577
+ end: ys(e)
4578
+ };
4579
+ }
4580
+ function vs(t) {
4581
+ return t.reduce(bs).eventRange.range.start;
4582
+ }
4583
+ function bs(t, e) {
4584
+ return t.eventRange.range.start < e.eventRange.range.start ? t : e;
4585
+ }
4586
+ function ys(t) {
4587
+ return t.reduce(Es).eventRange.range.end;
4588
+ }
4589
+ function Es(t, e) {
4590
+ return t.eventRange.range.end > e.eventRange.range.end ? t : e;
4591
+ }
4592
+ class Ds {
4593
+ constructor() {
4594
+ this.handlers = [];
4595
+ }
4596
+ set(e) {
4597
+ this.currentValue = e;
4598
+ for (let n of this.handlers)
4599
+ n(e);
4600
+ }
4601
+ subscribe(e) {
4602
+ this.handlers.push(e), this.currentValue !== void 0 && e(this.currentValue);
4603
+ }
4604
+ }
4605
+ class Jl extends Ds {
4606
+ constructor() {
4607
+ super(...arguments), this.map = /* @__PURE__ */ new Map();
4608
+ }
4609
+ // for consistent order
4610
+ handle(e) {
4611
+ const { map: n } = this;
4612
+ let r = !1;
4613
+ e.isActive ? (n.set(e.id, e), r = !0) : n.has(e.id) && (n.delete(e.id), r = !0), r && this.set(n);
4614
+ }
4615
+ }
4616
+ export {
4617
+ I as $,
4618
+ Jn as A,
4619
+ D as B,
4620
+ T as C,
4621
+ ks as D,
4622
+ _ as E,
4623
+ ti as F,
4624
+ nl as G,
4625
+ q as H,
4626
+ F as I,
4627
+ tl as J,
4628
+ il as K,
4629
+ sl as L,
4630
+ Zs as M,
4631
+ Ws as N,
4632
+ Vs as O,
4633
+ Ys as P,
4634
+ fr as Q,
4635
+ qs as R,
4636
+ Xs as S,
4637
+ ve as T,
4638
+ rl as U,
4639
+ G as V,
4640
+ Wt as W,
4641
+ ll as X,
4642
+ Y,
4643
+ Al as Z,
4644
+ ol as _,
4645
+ J as a,
4646
+ S as a0,
4647
+ Rn as a1,
4648
+ Rs as a2,
4649
+ V as a3,
4650
+ $s as a4,
4651
+ Tt as a5,
4652
+ vl as a6,
4653
+ yl as a7,
4654
+ be as a8,
4655
+ El as a9,
4656
+ ne as aA,
4657
+ wi as aE,
4658
+ Dl as aF,
4659
+ Cl as aG,
4660
+ Sl as aH,
4661
+ wl as aI,
4662
+ Re as aK,
4663
+ mr as aL,
4664
+ Dn as aM,
4665
+ Rt as aO,
4666
+ Mt as aP,
4667
+ En as aQ,
4668
+ wn as aR,
4669
+ ft as aS,
4670
+ $t as aT,
4671
+ Ze as aU,
4672
+ Lr as aV,
4673
+ Le as aW,
4674
+ Gt as aX,
4675
+ kl as aY,
4676
+ Xe as aZ,
4677
+ Kt as a_,
4678
+ ut as aa,
4679
+ ml as ab,
4680
+ Rr as ac,
4681
+ ws as ad,
4682
+ Sn as ae,
4683
+ pt as af,
4684
+ At as ag,
4685
+ Ft as ah,
4686
+ Qe as ai,
4687
+ Ye as aj,
4688
+ ze as ak,
4689
+ jt as al,
4690
+ j as am,
4691
+ le as an,
4692
+ Mn as ao,
4693
+ Tn as ap,
4694
+ Nn as aq,
4695
+ Ns as ar,
4696
+ Os as as,
4697
+ Bs as at,
4698
+ xs as au,
4699
+ _s as av,
4700
+ Is as aw,
4701
+ Ts as ax,
4702
+ Ve as ay,
4703
+ el as az,
4704
+ Ir as b,
4705
+ ls as b$,
4706
+ Ti as b0,
4707
+ Ae as b1,
4708
+ Ms as b2,
4709
+ Rl as b3,
4710
+ xi as b4,
4711
+ Ui as b5,
4712
+ _i as b6,
4713
+ Br as b7,
4714
+ We as b8,
4715
+ Ge as b9,
4716
+ Nl as bA,
4717
+ bt as bB,
4718
+ vt as bC,
4719
+ yt as bD,
4720
+ Ol as bE,
4721
+ nn as bF,
4722
+ bl as bG,
4723
+ Bl as bH,
4724
+ xl as bI,
4725
+ _l as bK,
4726
+ Li as bL,
4727
+ Pi as bM,
4728
+ ji as bN,
4729
+ Hl as bO,
4730
+ al as bP,
4731
+ pi as bQ,
4732
+ cl as bR,
4733
+ ul as bS,
4734
+ dl as bT,
4735
+ Ai as bU,
4736
+ Ul as bV,
4737
+ Fl as bW,
4738
+ oi as bX,
4739
+ Gi as bY,
4740
+ zl as bZ,
4741
+ Ll as b_,
4742
+ Ml as ba,
4743
+ tn as bb,
4744
+ Tl as bc,
4745
+ Il as bd,
4746
+ Fi as be,
4747
+ fl as bf,
4748
+ x as bg,
4749
+ Ls as bh,
4750
+ Ps as bi,
4751
+ jn as bj,
4752
+ Qn as bk,
4753
+ U as bl,
4754
+ Bt as bm,
4755
+ Fs as bo,
4756
+ Hs as bp,
4757
+ Z as bs,
4758
+ zs as bt,
4759
+ js as bu,
4760
+ xt as bv,
4761
+ Zn as bw,
4762
+ Qs as bx,
4763
+ Er as bz,
4764
+ it as c,
4765
+ rs as c0,
4766
+ ts as c1,
4767
+ is as c2,
4768
+ ss as c3,
4769
+ cn as c4,
4770
+ $i as c5,
4771
+ Ki as c6,
4772
+ Xi as c7,
4773
+ ns as c8,
4774
+ es as c9,
4775
+ Pl as ca,
4776
+ jl as cb,
4777
+ Ql as cc,
4778
+ Ji as cd,
4779
+ Oi as ce,
4780
+ Dt as cf,
4781
+ Ii as cg,
4782
+ ln as ch,
4783
+ Cr as ci,
4784
+ Wl as cj,
4785
+ Gl as ck,
4786
+ us as cl,
4787
+ ds as cm,
4788
+ un as cn,
4789
+ Yl as co,
4790
+ Vl as cp,
4791
+ ql as cq,
4792
+ Zl as cr,
4793
+ vs as cs,
4794
+ Ks as ct,
4795
+ li as cu,
4796
+ gt as cv,
4797
+ mn as cw,
4798
+ zt as cx,
4799
+ Jl as cy,
4800
+ v as d,
4801
+ Gs as e,
4802
+ Js as f,
4803
+ $ as g,
4804
+ de as h,
4805
+ K as i,
4806
+ qr as j,
4807
+ Ot as k,
4808
+ hl as l,
4809
+ _t as m,
4810
+ u as n,
4811
+ fe as o,
4812
+ Yr as p,
4813
+ b as q,
4814
+ pl as r,
4815
+ Us as s,
4816
+ R as t,
4817
+ gl as u,
4818
+ Ht as v,
4819
+ Zt as w,
4820
+ C as x,
4821
+ He as y,
4822
+ E as z
4823
+ };