fullcalendar 7.0.0-rc.3 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{all.global.js → all/global.js} +1493 -1016
- package/{all.d.ts → all/index.d.ts} +2 -2
- package/{all.js → all/index.js} +6 -6
- package/chunks/0488b422.js +3 -0
- package/chunks/{ff57dabb.js → 0a23096d.js} +9 -9
- package/chunks/{a11afabb.js → 14ee3137.js} +4 -4
- package/chunks/{701b7a0f.js → 2325ef50.js} +5 -5
- package/chunks/{6a5adf72.js → 426074dc.js} +3 -3
- package/chunks/{47e249b4.js → 428932f2.js} +1 -1
- package/chunks/{29b9414d.js → 4dcf5e12.js} +4 -4
- package/chunks/{aaba6e06.js → 7543b6db.js} +6 -6
- package/chunks/{0f2af6c8.js → 7bccf5c2.js} +6 -6
- package/chunks/{9b47bd3a.js → 83cfee2d.js} +1 -1
- package/chunks/{42d31328.js → 9340c3b6.js} +5 -5
- package/chunks/{8d305402.js → 9568f388.js} +2 -2
- package/chunks/{efc9a924.js → a87fdcf5.js} +6 -6
- package/chunks/{b80e4134.js → ca5d1416.js} +13 -10
- package/chunks/{b54a92a2.js → d3e122bd.js} +1 -1
- package/chunks/{af6186cf.js → e2e9e519.js} +2 -2
- package/chunks/{66f4cbf1.js → ef24f7de.js} +2 -2
- package/chunks/{5ad9e40e.js → f19c550e.js} +3 -3
- package/chunks/{525b2105.js → f1b2da23.js} +4 -4
- package/chunks/{6a85e95f.js → fe16a100.js} +4 -4
- package/daygrid.js +1 -1
- package/index.js +4 -4
- package/interaction.js +6 -6
- package/list.js +1 -1
- package/locales/{af.global.js → af/global.js} +1 -1
- package/locales/{locale.d.ts → af/index.d.ts} +1 -1
- package/locales/af/index.js +1 -0
- package/locales/{ar.global.js → ar/global.js} +1 -1
- package/locales/ar/index.d.ts +2 -0
- package/locales/ar/index.js +1 -0
- package/locales/{ar-dz.global.js → ar-dz/global.js} +1 -1
- package/locales/ar-dz/index.d.ts +2 -0
- package/locales/ar-dz/index.js +1 -0
- package/locales/{ar-kw.global.js → ar-kw/global.js} +1 -1
- package/locales/ar-kw/index.d.ts +2 -0
- package/locales/ar-kw/index.js +1 -0
- package/locales/{ar-ly.global.js → ar-ly/global.js} +1 -1
- package/locales/ar-ly/index.d.ts +2 -0
- package/locales/ar-ly/index.js +1 -0
- package/locales/{ar-ma.global.js → ar-ma/global.js} +1 -1
- package/locales/ar-ma/index.d.ts +2 -0
- package/locales/ar-ma/index.js +1 -0
- package/locales/{ar-sa.global.js → ar-sa/global.js} +1 -1
- package/locales/ar-sa/index.d.ts +2 -0
- package/locales/ar-sa/index.js +1 -0
- package/locales/{ar-tn.global.js → ar-tn/global.js} +1 -1
- package/locales/ar-tn/index.d.ts +2 -0
- package/locales/ar-tn/index.js +1 -0
- package/locales/{az.global.js → az/global.js} +1 -1
- package/locales/az/index.d.ts +2 -0
- package/locales/az/index.js +1 -0
- package/locales/{bg.global.js → bg/global.js} +1 -1
- package/locales/bg/index.d.ts +2 -0
- package/locales/bg/index.js +1 -0
- package/locales/{bn.global.js → bn/global.js} +1 -1
- package/locales/bn/index.d.ts +2 -0
- package/locales/bn/index.js +1 -0
- package/locales/{bs.global.js → bs/global.js} +1 -1
- package/locales/bs/index.d.ts +2 -0
- package/locales/bs/index.js +1 -0
- package/locales/{ca.global.js → ca/global.js} +1 -1
- package/locales/ca/index.d.ts +2 -0
- package/locales/ca/index.js +1 -0
- package/locales/{cs.global.js → cs/global.js} +1 -1
- package/locales/cs/index.d.ts +2 -0
- package/locales/cs/index.js +1 -0
- package/locales/{cy.global.js → cy/global.js} +1 -1
- package/locales/cy/index.d.ts +2 -0
- package/locales/cy/index.js +1 -0
- package/locales/{da.global.js → da/global.js} +1 -1
- package/locales/da/index.d.ts +2 -0
- package/locales/da/index.js +1 -0
- package/locales/{de.global.js → de/global.js} +1 -1
- package/locales/de/index.d.ts +2 -0
- package/locales/de/index.js +1 -0
- package/locales/{de-at.global.js → de-at/global.js} +1 -1
- package/locales/de-at/index.d.ts +2 -0
- package/locales/de-at/index.js +1 -0
- package/locales/{el.global.js → el/global.js} +1 -1
- package/locales/el/index.d.ts +2 -0
- package/locales/el/index.js +1 -0
- package/locales/{en-au.global.js → en-au/global.js} +1 -1
- package/locales/en-au/index.d.ts +2 -0
- package/locales/en-au/index.js +1 -0
- package/locales/{en-gb.global.js → en-gb/global.js} +1 -1
- package/locales/en-gb/index.d.ts +2 -0
- package/locales/en-gb/index.js +1 -0
- package/locales/{en-nz.global.js → en-nz/global.js} +1 -1
- package/locales/en-nz/index.d.ts +2 -0
- package/locales/en-nz/index.js +1 -0
- package/locales/{eo.global.js → eo/global.js} +1 -1
- package/locales/eo/index.d.ts +2 -0
- package/locales/eo/index.js +1 -0
- package/locales/{es.global.js → es/global.js} +1 -1
- package/locales/es/index.d.ts +2 -0
- package/locales/es/index.js +1 -0
- package/locales/{es-us.global.js → es-us/global.js} +1 -1
- package/locales/es-us/index.d.ts +2 -0
- package/locales/es-us/index.js +1 -0
- package/locales/{et.global.js → et/global.js} +1 -1
- package/locales/et/index.d.ts +2 -0
- package/locales/et/index.js +1 -0
- package/locales/{eu.global.js → eu/global.js} +1 -1
- package/locales/eu/index.d.ts +2 -0
- package/locales/eu/index.js +1 -0
- package/locales/{fa.global.js → fa/global.js} +1 -1
- package/locales/fa/index.d.ts +2 -0
- package/locales/fa/index.js +1 -0
- package/locales/{fi.global.js → fi/global.js} +1 -1
- package/locales/fi/index.d.ts +2 -0
- package/locales/fi/index.js +1 -0
- package/locales/{fr.global.js → fr/global.js} +1 -1
- package/locales/fr/index.d.ts +2 -0
- package/locales/fr/index.js +1 -0
- package/locales/{fr-ca.global.js → fr-ca/global.js} +1 -1
- package/locales/fr-ca/index.d.ts +2 -0
- package/locales/fr-ca/index.js +1 -0
- package/locales/{fr-ch.global.js → fr-ch/global.js} +1 -1
- package/locales/fr-ch/index.d.ts +2 -0
- package/locales/fr-ch/index.js +1 -0
- package/locales/{gl.global.js → gl/global.js} +1 -1
- package/locales/gl/index.d.ts +2 -0
- package/locales/gl/index.js +1 -0
- package/locales/{he.global.js → he/global.js} +1 -1
- package/locales/he/index.d.ts +2 -0
- package/locales/he/index.js +1 -0
- package/locales/{hi.global.js → hi/global.js} +1 -1
- package/locales/hi/index.d.ts +2 -0
- package/locales/hi/index.js +1 -0
- package/locales/{hr.global.js → hr/global.js} +1 -1
- package/locales/hr/index.d.ts +2 -0
- package/locales/hr/index.js +1 -0
- package/locales/{hu.global.js → hu/global.js} +1 -1
- package/locales/hu/index.d.ts +2 -0
- package/locales/hu/index.js +1 -0
- package/locales/{hy-am.global.js → hy-am/global.js} +1 -1
- package/locales/hy-am/index.d.ts +2 -0
- package/locales/hy-am/index.js +1 -0
- package/locales/{id.global.js → id/global.js} +1 -1
- package/locales/id/index.d.ts +2 -0
- package/locales/id/index.js +1 -0
- package/locales/{is.global.js → is/global.js} +1 -1
- package/locales/is/index.d.ts +2 -0
- package/locales/is/index.js +1 -0
- package/locales/{it.global.js → it/global.js} +1 -1
- package/locales/it/index.d.ts +2 -0
- package/locales/it/index.js +1 -0
- package/locales/{ja.global.js → ja/global.js} +1 -1
- package/locales/ja/index.d.ts +2 -0
- package/locales/ja/index.js +1 -0
- package/locales/{ka.global.js → ka/global.js} +1 -1
- package/locales/ka/index.d.ts +2 -0
- package/locales/ka/index.js +1 -0
- package/locales/{kk.global.js → kk/global.js} +1 -1
- package/locales/kk/index.d.ts +2 -0
- package/locales/kk/index.js +1 -0
- package/locales/{km.global.js → km/global.js} +1 -1
- package/locales/km/index.d.ts +2 -0
- package/locales/km/index.js +1 -0
- package/locales/{ko.global.js → ko/global.js} +1 -1
- package/locales/ko/index.d.ts +2 -0
- package/locales/ko/index.js +1 -0
- package/locales/{ku.global.js → ku/global.js} +1 -1
- package/locales/ku/index.d.ts +2 -0
- package/locales/ku/index.js +1 -0
- package/locales/{lb.global.js → lb/global.js} +1 -1
- package/locales/lb/index.d.ts +2 -0
- package/locales/lb/index.js +1 -0
- package/locales/{lt.global.js → lt/global.js} +1 -1
- package/locales/lt/index.d.ts +2 -0
- package/locales/lt/index.js +1 -0
- package/locales/{lv.global.js → lv/global.js} +1 -1
- package/locales/lv/index.d.ts +2 -0
- package/locales/lv/index.js +1 -0
- package/locales/{mk.global.js → mk/global.js} +1 -1
- package/locales/mk/index.d.ts +2 -0
- package/locales/mk/index.js +1 -0
- package/locales/{ms.global.js → ms/global.js} +1 -1
- package/locales/ms/index.d.ts +2 -0
- package/locales/ms/index.js +1 -0
- package/locales/{nb.global.js → nb/global.js} +1 -1
- package/locales/nb/index.d.ts +2 -0
- package/locales/nb/index.js +1 -0
- package/locales/{ne.global.js → ne/global.js} +1 -1
- package/locales/ne/index.d.ts +2 -0
- package/locales/ne/index.js +1 -0
- package/locales/{nl.global.js → nl/global.js} +1 -1
- package/locales/nl/index.d.ts +2 -0
- package/locales/nl/index.js +1 -0
- package/locales/{nn.global.js → nn/global.js} +1 -1
- package/locales/nn/index.d.ts +2 -0
- package/locales/nn/index.js +1 -0
- package/locales/{pl.global.js → pl/global.js} +1 -1
- package/locales/pl/index.d.ts +2 -0
- package/locales/pl/index.js +1 -0
- package/locales/{pt.global.js → pt/global.js} +1 -1
- package/locales/pt/index.d.ts +2 -0
- package/locales/pt/index.js +1 -0
- package/locales/{pt-br.global.js → pt-br/global.js} +1 -1
- package/locales/pt-br/index.d.ts +2 -0
- package/locales/pt-br/index.js +1 -0
- package/locales/{ro.global.js → ro/global.js} +1 -1
- package/locales/ro/index.d.ts +2 -0
- package/locales/ro/index.js +1 -0
- package/locales/{ru.global.js → ru/global.js} +1 -1
- package/locales/ru/index.d.ts +2 -0
- package/locales/ru/index.js +1 -0
- package/locales/{si-lk.global.js → si-lk/global.js} +1 -1
- package/locales/si-lk/index.d.ts +2 -0
- package/locales/si-lk/index.js +1 -0
- package/locales/{sk.global.js → sk/global.js} +1 -1
- package/locales/sk/index.d.ts +2 -0
- package/locales/sk/index.js +1 -0
- package/locales/{sl.global.js → sl/global.js} +1 -1
- package/locales/sl/index.d.ts +2 -0
- package/locales/sl/index.js +1 -0
- package/locales/{sm.global.js → sm/global.js} +1 -1
- package/locales/sm/index.d.ts +2 -0
- package/locales/sm/index.js +1 -0
- package/locales/{sq.global.js → sq/global.js} +1 -1
- package/locales/sq/index.d.ts +2 -0
- package/locales/sq/index.js +1 -0
- package/locales/{sr.global.js → sr/global.js} +1 -1
- package/locales/sr/index.d.ts +2 -0
- package/locales/sr/index.js +1 -0
- package/locales/{sr-cyrl.global.js → sr-cyrl/global.js} +1 -1
- package/locales/sr-cyrl/index.d.ts +2 -0
- package/locales/sr-cyrl/index.js +1 -0
- package/locales/{sv.global.js → sv/global.js} +1 -1
- package/locales/sv/index.d.ts +2 -0
- package/locales/sv/index.js +1 -0
- package/locales/{ta-in.global.js → ta-in/global.js} +1 -1
- package/locales/ta-in/index.d.ts +2 -0
- package/locales/ta-in/index.js +1 -0
- package/locales/{th.global.js → th/global.js} +1 -1
- package/locales/th/index.d.ts +2 -0
- package/locales/th/index.js +1 -0
- package/locales/{tr.global.js → tr/global.js} +1 -1
- package/locales/tr/index.d.ts +2 -0
- package/locales/tr/index.js +1 -0
- package/locales/{ug.global.js → ug/global.js} +1 -1
- package/locales/ug/index.d.ts +2 -0
- package/locales/ug/index.js +1 -0
- package/locales/{uk.global.js → uk/global.js} +1 -1
- package/locales/uk/index.d.ts +2 -0
- package/locales/uk/index.js +1 -0
- package/locales/{uz.global.js → uz/global.js} +1 -1
- package/locales/uz/index.d.ts +2 -0
- package/locales/uz/index.js +1 -0
- package/locales/{uz-cy.global.js → uz-cy/global.js} +1 -1
- package/locales/uz-cy/index.d.ts +2 -0
- package/locales/uz-cy/index.js +1 -0
- package/locales/{vi.global.js → vi/global.js} +1 -1
- package/locales/vi/index.d.ts +2 -0
- package/locales/vi/index.js +1 -0
- package/locales/{zh-cn.global.js → zh-cn/global.js} +1 -1
- package/locales/zh-cn/index.d.ts +2 -0
- package/locales/zh-cn/index.js +1 -0
- package/locales/{zh-tw.global.js → zh-tw/global.js} +1 -1
- package/locales/zh-tw/index.d.ts +2 -0
- package/locales/zh-tw/index.js +1 -0
- package/{locales-all.global.js → locales-all/global.js} +1 -1
- package/{locales-all.d.ts → locales-all/index.d.ts} +1 -1
- package/locales-all/index.js +85 -0
- package/multimonth.js +1 -1
- package/package.json +23 -23
- package/protected-api.js +12 -12
- package/protected-styles.js +1 -1
- package/public-api.js +3 -3
- package/public-components.js +1 -1
- package/skeleton.css +104 -104
- package/themes/breezy/global.js +1 -1
- package/themes/{classic.d.ts → breezy/index.d.ts} +1 -1
- package/themes/{breezy.js → breezy/index.js} +1 -1
- package/themes/classic/global.js +1 -1
- package/themes/{forma.d.ts → classic/index.d.ts} +1 -1
- package/themes/{classic.js → classic/index.js} +1 -1
- package/themes/forma/global.js +1 -1
- package/themes/{monarch.d.ts → forma/index.d.ts} +1 -1
- package/themes/{forma.js → forma/index.js} +1 -1
- package/themes/monarch/global.js +1 -1
- package/themes/{breezy.d.ts → monarch/index.d.ts} +1 -1
- package/themes/{monarch.js → monarch/index.js} +1 -1
- package/themes/pulse/global.js +1 -1
- package/themes/pulse/index.d.ts +5 -0
- package/themes/{pulse.js → pulse/index.js} +1 -1
- package/timegrid.js +1 -1
- package/chunks/3878c729.js +0 -3
- package/locales/af.js +0 -1
- package/locales/ar-dz.js +0 -1
- package/locales/ar-kw.js +0 -1
- package/locales/ar-ly.js +0 -1
- package/locales/ar-ma.js +0 -1
- package/locales/ar-sa.js +0 -1
- package/locales/ar-tn.js +0 -1
- package/locales/ar.js +0 -1
- package/locales/az.js +0 -1
- package/locales/bg.js +0 -1
- package/locales/bn.js +0 -1
- package/locales/bs.js +0 -1
- package/locales/ca.js +0 -1
- package/locales/cs.js +0 -1
- package/locales/cy.js +0 -1
- package/locales/da.js +0 -1
- package/locales/de-at.js +0 -1
- package/locales/de.js +0 -1
- package/locales/el.js +0 -1
- package/locales/en-au.js +0 -1
- package/locales/en-gb.js +0 -1
- package/locales/en-nz.js +0 -1
- package/locales/eo.js +0 -1
- package/locales/es-us.js +0 -1
- package/locales/es.js +0 -1
- package/locales/et.js +0 -1
- package/locales/eu.js +0 -1
- package/locales/fa.js +0 -1
- package/locales/fi.js +0 -1
- package/locales/fr-ca.js +0 -1
- package/locales/fr-ch.js +0 -1
- package/locales/fr.js +0 -1
- package/locales/gl.js +0 -1
- package/locales/he.js +0 -1
- package/locales/hi.js +0 -1
- package/locales/hr.js +0 -1
- package/locales/hu.js +0 -1
- package/locales/hy-am.js +0 -1
- package/locales/id.js +0 -1
- package/locales/is.js +0 -1
- package/locales/it.js +0 -1
- package/locales/ja.js +0 -1
- package/locales/ka.js +0 -1
- package/locales/kk.js +0 -1
- package/locales/km.js +0 -1
- package/locales/ko.js +0 -1
- package/locales/ku.js +0 -1
- package/locales/lb.js +0 -1
- package/locales/lt.js +0 -1
- package/locales/lv.js +0 -1
- package/locales/mk.js +0 -1
- package/locales/ms.js +0 -1
- package/locales/nb.js +0 -1
- package/locales/ne.js +0 -1
- package/locales/nl.js +0 -1
- package/locales/nn.js +0 -1
- package/locales/pl.js +0 -1
- package/locales/pt-br.js +0 -1
- package/locales/pt.js +0 -1
- package/locales/ro.js +0 -1
- package/locales/ru.js +0 -1
- package/locales/si-lk.js +0 -1
- package/locales/sk.js +0 -1
- package/locales/sl.js +0 -1
- package/locales/sm.js +0 -1
- package/locales/sq.js +0 -1
- package/locales/sr-cyrl.js +0 -1
- package/locales/sr.js +0 -1
- package/locales/sv.js +0 -1
- package/locales/ta-in.js +0 -1
- package/locales/th.js +0 -1
- package/locales/tr.js +0 -1
- package/locales/ug.js +0 -1
- package/locales/uk.js +0 -1
- package/locales/uz-cy.js +0 -1
- package/locales/uz.js +0 -1
- package/locales/vi.js +0 -1
- package/locales/zh-cn.js +0 -1
- package/locales/zh-tw.js +0 -1
- package/locales-all.js +0 -85
- package/themes/pulse.d.ts +0 -5
- /package/chunks/{87d77fe0.js → 1e0eda69.js} +0 -0
- /package/chunks/{64db98e5.js → 8c4ccebb.js} +0 -0
- /package/chunks/{cd88b911.js → d83ddbce.js} +0 -0
|
@@ -1,960 +1,1434 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar (Vanilla JS) v7.0.0
|
|
2
|
+
FullCalendar (Vanilla JS) v7.0.0
|
|
3
3
|
Docs & License: https://fullcalendar.io
|
|
4
4
|
(c) 2026 Adam Shaw
|
|
5
5
|
*/
|
|
6
6
|
var FullCalendar = (function (exports) {
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var n$1,l$3,u$3,t$1,i$2,r$1,o$1,e$2,f$2,c$3,s$3,a$2,h,p$2,v$1,y,d$1={},w$2=[],_$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g$1=Array.isArray;function m$1(n,l){for(var u in l)n[u]=l[u];return n}function b(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function k$1(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n$1.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===e[o]&&(e[o]=l.defaultProps[o]);return x$1(l,e,i,r,null)}function x$1(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u$3:o,__i:-1,__u:0};return null==o&&null!=l$3.vnode&&l$3.vnode(e),e}function M$1(){return {current:null}}function S(n){return n.children}function C(n,l){this.props=n,this.context=l;}function $$1(n,l){if(null==l)return n.__?$$1(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?$$1(n):null}function I$1(n){if(n.__P&&n.__d){var u=n.__v,t=u.__e,i=[],r=[],o=m$1({},u);o.__v=u.__v+1,l$3.vnode&&l$3.vnode(o),q$1(n.__P,o,u,n.__n,n.__P.namespaceURI,32&u.__u?[t]:null,i,null==t?$$1(u):t,!!(32&u.__u),r),o.__v=u.__v,o.__.__k[o.__i]=o,D(i,o,r),u.__e=u.__=null,o.__e!=t&&P$2(o);}}function P$2(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(l){if(null!=l&&null!=l.__e)return n.__e=n.__c.base=l.__e}),P$2(n)}function A$1(n){(!n.__d&&(n.__d=!0)&&i$2.push(n)&&!H$2.__r++||r$1!=l$3.debounceRendering)&&((r$1=l$3.debounceRendering)||o$1)(H$2);}function H$2(){try{for(var n,l=1;i$2.length;)i$2.length>l&&i$2.sort(e$2),n=i$2.shift(),l=i$2.length,I$1(n);}finally{i$2.length=H$2.__r=0;}}function L$1(n,l,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,_,g,m=t&&t.__k||w$2,b=l.length;for(f=T$1(u,l,m,f,b),a=0;a<b;a++)null!=(p=u.__k[a])&&(h=-1!=p.__i&&m[p.__i]||d$1,p.__i=a,_=q$1(n,p,h,i,r,o,e,f,c,s),v=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&J$2(h.ref,null,p),s.push(p.ref,p.__c||v,p)),null==y&&null!=v&&(y=v),(g=!!(4&p.__u))||h.__k===p.__k?(f=j$2(p,f,n,g),g&&h.__e&&(h.__e=null)):"function"==typeof p.type&&void 0!==_?f=_:v&&(f=v.nextSibling),p.__u&=-7);return u.__e=y,f}function T$1(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?("string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?o=n.__k[r]=x$1(null,o,null,null,null):g$1(o)?o=n.__k[r]=x$1(S,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=n.__k[r]=x$1(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):n.__k[r]=o,f=r+h,o.__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=O$2(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=$$1(e)),K$2(e,e));return t}function j$2(n,l,u,t){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,l=j$2(i[r],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=$$1(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function F$1(n,l){return l=l||[],null==n||"boolean"==typeof n||(g$1(n)?n.some(function(n){F$1(n,l);}):l.push(n)),l}function O$2(n,l,u,t){var i,r,o,e=n.key,f=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==e||s&&e==c.key&&f==c.type)return u;if(t>(s?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[o=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return o;return -1}function z$1(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||_$1.test(l)?u:u+"px";}function N(n,l,u,t,i){var r,o;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||z$1(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||z$1(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(a$2,"$1")),o=l.toLowerCase(),l=o in n||"onFocusOut"==l||"onFocusIn"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u[s$3]=t[s$3]:(u[s$3]=h,n.addEventListener(l,r?v$1:p$2,r)):n.removeEventListener(l,r?v$1:p$2,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function V$2(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u[c$3])u[c$3]=h++;else if(u[c$3]<t[s$3])return;return t(l$3.event?l$3.event(u):u)}}}function q$1(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,d,_,k,x,M,$,I,P,A,H,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l$3.__b)&&a(u);n:if("function"==typeof T)try{if(k=u.props,x=T.prototype&&T.prototype.render,M=(a=T.contextType)&&i[a.__c],$=a?M?M.props.value:a.__:i,t.__c?_=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(k,$):(u.__c=h=new C(k,$),h.constructor=T,h.render=Q$2),M&&M.sub(h),h.state||(h.state={}),h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=m$1({},h.__s)),m$1(h.__s,T.getDerivedStateFromProps(k,h.__s))),v=h.props,y=h.state,h.__v=u,p)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(x&&null==T.getDerivedStateFromProps&&k!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,$),u.__v==t.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,$)){u.__v!=t.__v&&(h.props=k,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),w$2.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,$),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,d);});}if(h.context=$,h.props=k,h.__P=n,h.__e=!1,I=l$3.__r,P=0,x)h.state=h.__s,h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),w$2.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++P<25);h.state=h.__s,null!=h.getChildContext&&(i=m$1(m$1({},i),h.getChildContext())),x&&!p&&null!=h.getSnapshotBeforeUpdate&&(d=h.getSnapshotBeforeUpdate(v,y)),A=null!=a&&a.type===S&&null==a.key?E$2(a.props.children):a,f=L$1(n,g$1(A)?A:[A],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),_&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f;}else {for(H=o.length;H--;)b(o[H]);B$3(u);}else u.__e=t.__e,u.__k=t.__k,n.then||B$3(u);l$3.__e(n,u,t);}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=G$2(t.__e,u,t,i,r,o,e,c,s);return (a=l$3.diffed)&&a(u),128&u.__u?void 0:f}function B$3(n){n&&(n.__c&&(n.__c.__e=!0),n.__k&&n.__k.some(B$3));}function D(n,u,t){for(var i=0;i<t.length;i++)J$2(t[i],t[++i],t[++i]);l$3.__c&&l$3.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$3.__e(n,u.__v);}});}function E$2(n){return "object"!=typeof n||null==n||n.__b>0?n:g$1(n)?n.map(E$2):m$1({},n)}function G$2(u,t,i,r,o,e,f,c,s){var a,h,p,v,y,w,_,m=i.props||d$1,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((y=e[a])&&"setAttribute"in y==!!x&&(x?y.localName==x:3==y.nodeType)){u=y,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l$3.__m&&l$3.__m(t,e),c=!1),e=null;}if(null==x)m===k||c&&u.data==k||(u.data=k);else {if(e=e&&n$1.call(u.childNodes),!c&&null!=e)for(m={},a=0;a<u.attributes.length;a++)m[(y=u.attributes[a]).name]=y.value;for(a in m)y=m[a],"dangerouslySetInnerHTML"==a?p=y:"children"==a||a in k||"value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k||N(u,a,null,y,o);for(a in k)y=k[a],"children"==a?v=y:"dangerouslySetInnerHTML"==a?h=y:"value"==a?w=y:"checked"==a?_=y:c&&"function"!=typeof y||m[a]===y||N(u,a,y,m[a],o);if(h)c||p&&(h.__html==p.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(p&&(u.innerHTML=""),L$1("template"==t.type?u.content:u,g$1(v)?v:[v],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&$$1(i,0),c,s),null!=e)for(a=e.length;a--;)b(e[a]);c||(a="value","progress"==x&&null==w?u.removeAttribute("value"):null!=w&&(w!==u[a]||"progress"==x&&!w||"option"==x&&w!=m[a])&&N(u,a,w,m[a],o),a="checked",null!=_&&_!=u[a]&&N(u,a,_,m[a],o));}return u}function J$2(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l$3.__e(n,t);}}function K$2(n,u,t){var i,r;if(l$3.unmount&&l$3.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||J$2(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$3.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&K$2(i[r],u,t||"function"!=typeof n.type);t||b(n.__e),n.__c=n.__=n.__e=void 0;}function Q$2(n,l,u){return this.constructor(n,u)}function R(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l$3.__&&l$3.__(u,t),o=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],q$1(t,u=(!r&&i||t).__k=k$1(S,null,[u]),o||d$1,d$1,t.namespaceURI,!r&&i?[i]:o?null:t.firstChild?n$1.call(t.childNodes):null,e,!r&&i?i:o?o.__e:t.firstChild,r,f),D(e,u,f);}function U$2(n,l){R(n,l,U$2);}function W$2(l,u,t){var i,r,o,e,f=m$1({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==o?i=u[o]:"ref"==o?r=u[o]:f[o]=void 0===u[o]&&null!=e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):t),x$1(l.type,f,i||l.key,r||l.ref,null)}function X$2(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null;},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=!0,A$1(n);});},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n);};}),n.children}return l.__c="__cC"+y++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n$1=w$2.slice,l$3={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},u$3=0,t$1=function(n){return null!=n&&void 0===n.constructor},C.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=m$1({},this.state),"function"==typeof n&&(n=n(m$1({},u),this.props)),n&&m$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),A$1(this));},C.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),A$1(this));},C.prototype.render=S,i$2=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e$2=function(n,l){return n.__v.__b-l.__v.__b},H$2.__r=0,f$2=Math.random().toString(8),c$3="__d"+f$2,s$3="__a"+f$2,a$2=/(PointerCapture)$|Capture$/i,h=0,p$2=V$2(!1),v$1=V$2(!0),y=0;
|
|
9
|
+
var n$1,l$2,u$2,t$1,i$2,r$1,o$1,e$1,f$2,c$2,s$2,a$2,h,p$1,v$1,y,d={},w$1=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g$1=Array.isArray;function m$1(n,l){for(var u in l)n[u]=l[u];return n}function b(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function k$1(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n$1.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===e[o]&&(e[o]=l.defaultProps[o]);return x(l,e,i,r,null)}function x(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u$2:o,__i:-1,__u:0};return null==o&&null!=l$2.vnode&&l$2.vnode(e),e}function M$1(){return {current:null}}function S(n){return n.children}function C(n,l){this.props=n,this.context=l;}function $$1(n,l){if(null==l)return n.__?$$1(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?$$1(n):null}function I(n){if(n.__P&&n.__d){var u=n.__v,t=u.__e,i=[],r=[],o=m$1({},u);o.__v=u.__v+1,l$2.vnode&&l$2.vnode(o),q$1(n.__P,o,u,n.__n,n.__P.namespaceURI,32&u.__u?[t]:null,i,null==t?$$1(u):t,!!(32&u.__u),r),o.__v=u.__v,o.__.__k[o.__i]=o,D(i,o,r),u.__e=u.__=null,o.__e!=t&&P$1(o);}}function P$1(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(l){if(null!=l&&null!=l.__e)return n.__e=n.__c.base=l.__e}),P$1(n)}function A(n){(!n.__d&&(n.__d=!0)&&i$2.push(n)&&!H$1.__r++||r$1!=l$2.debounceRendering)&&((r$1=l$2.debounceRendering)||o$1)(H$1);}function H$1(){try{for(var n,l=1;i$2.length;)i$2.length>l&&i$2.sort(e$1),n=i$2.shift(),l=i$2.length,I(n);}finally{i$2.length=H$1.__r=0;}}function L(n,l,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,_,g,m=t&&t.__k||w$1,b=l.length;for(f=T$1(u,l,m,f,b),a=0;a<b;a++)null!=(p=u.__k[a])&&(h=-1!=p.__i&&m[p.__i]||d,p.__i=a,_=q$1(n,p,h,i,r,o,e,f,c,s),v=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&J$1(h.ref,null,p),s.push(p.ref,p.__c||v,p)),null==y&&null!=v&&(y=v),(g=!!(4&p.__u))||h.__k===p.__k?(f=j$2(p,f,n,g),g&&h.__e&&(h.__e=null)):"function"==typeof p.type&&void 0!==_?f=_:v&&(f=v.nextSibling),p.__u&=-7);return u.__e=y,f}function T$1(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?("string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?o=n.__k[r]=x(null,o,null,null,null):g$1(o)?o=n.__k[r]=x(S,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=n.__k[r]=x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):n.__k[r]=o,f=r+h,o.__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=O$1(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=$$1(e)),K$1(e,e));return t}function j$2(n,l,u,t){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,l=j$2(i[r],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=$$1(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function F(n,l){return l=l||[],null==n||"boolean"==typeof n||(g$1(n)?n.some(function(n){F(n,l);}):l.push(n)),l}function O$1(n,l,u,t){var i,r,o,e=n.key,f=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==e||s&&e==c.key&&f==c.type)return u;if(t>(s?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[o=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return o;return -1}function z$1(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||_.test(l)?u:u+"px";}function N(n,l,u,t,i){var r,o;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||z$1(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||z$1(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(a$2,"$1")),o=l.toLowerCase(),l=o in n||"onFocusOut"==l||"onFocusIn"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u[s$2]=t[s$2]:(u[s$2]=h,n.addEventListener(l,r?v$1:p$1,r)):n.removeEventListener(l,r?v$1:p$1,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function V$1(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u[c$2])u[c$2]=h++;else if(u[c$2]<t[s$2])return;return t(l$2.event?l$2.event(u):u)}}}function q$1(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,d,_,k,x,M,$,I,P,A,H,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l$2.__b)&&a(u);n:if("function"==typeof T)try{if(k=u.props,x=T.prototype&&T.prototype.render,M=(a=T.contextType)&&i[a.__c],$=a?M?M.props.value:a.__:i,t.__c?_=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(k,$):(u.__c=h=new C(k,$),h.constructor=T,h.render=Q$1),M&&M.sub(h),h.state||(h.state={}),h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=m$1({},h.__s)),m$1(h.__s,T.getDerivedStateFromProps(k,h.__s))),v=h.props,y=h.state,h.__v=u,p)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(x&&null==T.getDerivedStateFromProps&&k!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,$),u.__v==t.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,$)){u.__v!=t.__v&&(h.props=k,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),w$1.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,$),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,d);});}if(h.context=$,h.props=k,h.__P=n,h.__e=!1,I=l$2.__r,P=0,x)h.state=h.__s,h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),w$1.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++P<25);h.state=h.__s,null!=h.getChildContext&&(i=m$1(m$1({},i),h.getChildContext())),x&&!p&&null!=h.getSnapshotBeforeUpdate&&(d=h.getSnapshotBeforeUpdate(v,y)),A=null!=a&&a.type===S&&null==a.key?E$1(a.props.children):a,f=L(n,g$1(A)?A:[A],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),_&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f;}else {for(H=o.length;H--;)b(o[H]);B$2(u);}else u.__e=t.__e,u.__k=t.__k,n.then||B$2(u);l$2.__e(n,u,t);}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=G$1(t.__e,u,t,i,r,o,e,c,s);return (a=l$2.diffed)&&a(u),128&u.__u?void 0:f}function B$2(n){n&&(n.__c&&(n.__c.__e=!0),n.__k&&n.__k.some(B$2));}function D(n,u,t){for(var i=0;i<t.length;i++)J$1(t[i],t[++i],t[++i]);l$2.__c&&l$2.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$2.__e(n,u.__v);}});}function E$1(n){return "object"!=typeof n||null==n||n.__b>0?n:g$1(n)?n.map(E$1):m$1({},n)}function G$1(u,t,i,r,o,e,f,c,s){var a,h,p,v,y,w,_,m=i.props||d,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((y=e[a])&&"setAttribute"in y==!!x&&(x?y.localName==x:3==y.nodeType)){u=y,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l$2.__m&&l$2.__m(t,e),c=!1),e=null;}if(null==x)m===k||c&&u.data==k||(u.data=k);else {if(e=e&&n$1.call(u.childNodes),!c&&null!=e)for(m={},a=0;a<u.attributes.length;a++)m[(y=u.attributes[a]).name]=y.value;for(a in m)y=m[a],"dangerouslySetInnerHTML"==a?p=y:"children"==a||a in k||"value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k||N(u,a,null,y,o);for(a in k)y=k[a],"children"==a?v=y:"dangerouslySetInnerHTML"==a?h=y:"value"==a?w=y:"checked"==a?_=y:c&&"function"!=typeof y||m[a]===y||N(u,a,y,m[a],o);if(h)c||p&&(h.__html==p.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(p&&(u.innerHTML=""),L("template"==t.type?u.content:u,g$1(v)?v:[v],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&$$1(i,0),c,s),null!=e)for(a=e.length;a--;)b(e[a]);c||(a="value","progress"==x&&null==w?u.removeAttribute("value"):null!=w&&(w!==u[a]||"progress"==x&&!w||"option"==x&&w!=m[a])&&N(u,a,w,m[a],o),a="checked",null!=_&&_!=u[a]&&N(u,a,_,m[a],o));}return u}function J$1(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l$2.__e(n,t);}}function K$1(n,u,t){var i,r;if(l$2.unmount&&l$2.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||J$1(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$2.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&K$1(i[r],u,t||"function"!=typeof n.type);t||b(n.__e),n.__c=n.__=n.__e=void 0;}function Q$1(n,l,u){return this.constructor(n,u)}function R(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l$2.__&&l$2.__(u,t),o=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],q$1(t,u=(!r&&i||t).__k=k$1(S,null,[u]),o||d,d,t.namespaceURI,!r&&i?[i]:o?null:t.firstChild?n$1.call(t.childNodes):null,e,!r&&i?i:o?o.__e:t.firstChild,r,f),D(e,u,f);}function U$1(n,l){R(n,l,U$1);}function W$1(l,u,t){var i,r,o,e,f=m$1({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==o?i=u[o]:"ref"==o?r=u[o]:f[o]=void 0===u[o]&&null!=e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):t),x(l.type,f,i||l.key,r||l.ref,null)}function X$1(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null;},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=!0,A(n);});},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n);};}),n.children}return l.__c="__cC"+y++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n$1=w$1.slice,l$2={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},u$2=0,t$1=function(n){return null!=n&&void 0===n.constructor},C.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=m$1({},this.state),"function"==typeof n&&(n=n(m$1({},u),this.props)),n&&m$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),A(this));},C.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),A(this));},C.prototype.render=S,i$2=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e$1=function(n,l){return n.__v.__b-l.__v.__b},H$1.__r=0,f$2=Math.random().toString(8),c$2="__d"+f$2,s$2="__a"+f$2,a$2=/(PointerCapture)$|Capture$/i,h=0,p$1=V$1(!1),v$1=V$1(!0),y=0;
|
|
10
10
|
|
|
11
11
|
var preact = /*#__PURE__*/Object.freeze({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
__proto__: null,
|
|
13
|
+
Component: C,
|
|
14
|
+
Fragment: S,
|
|
15
|
+
cloneElement: W$1,
|
|
16
|
+
createContext: X$1,
|
|
17
|
+
createElement: k$1,
|
|
18
|
+
createRef: M$1,
|
|
19
|
+
h: k$1,
|
|
20
|
+
hydrate: U$1,
|
|
21
|
+
get isValidElement () { return t$1; },
|
|
22
|
+
get options () { return l$2; },
|
|
23
|
+
render: R,
|
|
24
|
+
toChildArray: F
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
var t=/["&<]/;function n(r){if(0===r.length||!1===t.test(r))return r;for(var e=0,n=0,o="",f="";n<r.length;n++){switch(r.charCodeAt(n)){case 34:f=""";break;case 38:f="&";break;case 60:f="<";break;default:continue}n!==e&&(o+=r.slice(e,n)),o+=f,e=n+1;}return n!==e&&(o+=r.slice(e,n)),o}var o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f$1=0,i$1=Array.isArray;function u$
|
|
27
|
+
var t=/["&<]/;function n(r){if(0===r.length||!1===t.test(r))return r;for(var e=0,n=0,o="",f="";n<r.length;n++){switch(r.charCodeAt(n)){case 34:f=""";break;case 38:f="&";break;case 60:f="<";break;default:continue}n!==e&&(o+=r.slice(e,n)),o+=f,e=n+1;}return n!==e&&(o+=r.slice(e,n)),o}var o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f$1=0,i$1=Array.isArray;function u$1(e,t,n,o,i,u){t||(t={});var a,c,p=t;if("ref"in p)for(c in p={},t)"ref"==c?a=t[c]:p[c]=t[c];var l={type:e,props:p,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--f$1,__i:-1,__u:0,__source:i,__self:u};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===p[c]&&(p[c]=a[c]);return l$2.vnode&&l$2.vnode(l),l}function a$1(r){var t=u$1(S,{tpl:r,exprs:[].slice.call(arguments,1)});return t.key=t.__v,t}var c$1={},p=/[A-Z]/g;function l$1(e,t){if(l$2.attr){var f=l$2.attr(e,t);if("string"==typeof f)return f}if(t=function(r){return null!==r&&"object"==typeof r&&"function"==typeof r.valueOf?r.valueOf():r}(t),"ref"===e||"key"===e)return "";if("style"===e&&"object"==typeof t){var i="";for(var u in t){var a=t[u];if(null!=a&&""!==a){var l="-"==u[0]?u:c$1[u]||(c$1[u]=u.replace(p,"-$&").toLowerCase()),s=";";"number"!=typeof a||l.startsWith("--")||o.test(l)||(s="px;"),i=i+l+":"+a+s;}}return e+'="'+n(i)+'"'}return null==t||!1===t||"function"==typeof t||"object"==typeof t?"":!0===t?e:e+'="'+n(""+t)+'"'}function s$1(r){if(null==r||"boolean"==typeof r||"function"==typeof r)return null;if("object"==typeof r){if(void 0===r.constructor)return r;if(i$1(r)){for(var e=0;e<r.length;e++)r[e]=s$1(r[e]);return r}}return n(""+r)}
|
|
28
28
|
|
|
29
29
|
var jsxRuntime = /*#__PURE__*/Object.freeze({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
__proto__: null,
|
|
31
|
+
jsx: u$1,
|
|
32
|
+
jsxAttr: l$1,
|
|
33
|
+
jsxDEV: u$1,
|
|
34
|
+
jsxEscape: s$1,
|
|
35
|
+
jsxTemplate: a$1,
|
|
36
|
+
jsxs: u$1,
|
|
37
|
+
Fragment: S
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
const NativeTemporal = globalThis.Temporal;
|
|
41
|
+
const expectedFinite = (entityName, num) => `Non-finite ${entityName}: ${num}`;
|
|
42
|
+
const forbiddenBigIntToNumber = (entityName) => `Cannot convert bigint to ${entityName}`;
|
|
43
|
+
const invalidObject = 'Invalid object';
|
|
44
|
+
const numberOutOfRange = (entityName, val, min, max) => invalidEntity$1(entityName, val) + `; must be between ${min}-${max}`;
|
|
45
|
+
// Entity/Fields/Bags
|
|
46
|
+
const invalidEntity$1 = (fieldName, val) => `Invalid ${fieldName}: ${val}`;
|
|
47
|
+
|
|
48
|
+
const nanoInMicro$1 = 1_000;
|
|
49
|
+
const nanoInMilli$1 = 1_000_000;
|
|
50
|
+
const nanoInSec$1 = 1_000_000_000;
|
|
51
|
+
const nanoInMinute$1 = 60_000_000_000;
|
|
52
|
+
const nanoInHour$1 = 3_600_000_000_000;
|
|
53
|
+
function normalizeOptions(options) {
|
|
54
|
+
if (options === undefined) {
|
|
55
|
+
return Object.create(null);
|
|
56
|
+
}
|
|
57
|
+
return requireObjectLike(options);
|
|
58
|
+
}
|
|
59
|
+
function toFiniteNumber(arg, entityName = 'number') {
|
|
60
|
+
if (typeof arg === 'bigint') {
|
|
61
|
+
throw new TypeError(forbiddenBigIntToNumber(entityName));
|
|
62
|
+
}
|
|
63
|
+
arg = Number(arg);
|
|
64
|
+
if (!Number.isFinite(arg)) {
|
|
65
|
+
throw new RangeError(expectedFinite(entityName, arg));
|
|
66
|
+
}
|
|
67
|
+
return arg;
|
|
68
|
+
}
|
|
69
|
+
function toIntegerWithTrunc(arg, entityName) {
|
|
70
|
+
return Math.trunc(toFiniteNumber(arg, entityName)) || 0; // ensure no -0
|
|
71
|
+
}
|
|
72
|
+
/*
|
|
73
|
+
min/max are inclusive
|
|
74
|
+
*/
|
|
75
|
+
function constrainToRange$1(num, min, max) {
|
|
76
|
+
return Math.min(Math.max(num, min), max);
|
|
77
|
+
}
|
|
78
|
+
function isObjectLike(arg) {
|
|
79
|
+
return arg !== null && (typeof arg === 'object' || typeof arg === 'function');
|
|
80
|
+
}
|
|
81
|
+
function requireObjectLike(arg) {
|
|
82
|
+
if (!isObjectLike(arg)) {
|
|
83
|
+
throw new TypeError(invalidObject);
|
|
45
84
|
}
|
|
46
|
-
return
|
|
47
|
-
})(e, n), t, o, r);
|
|
85
|
+
return arg;
|
|
48
86
|
}
|
|
49
87
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
88
|
+
const invalidEntity = invalidEntity$1;
|
|
89
|
+
|
|
90
|
+
const missingField = fieldName => `Missing ${fieldName}`;
|
|
91
|
+
|
|
92
|
+
const invalidChoice = (fieldName, val, choiceMap) => invalidEntity$1(fieldName, val) + "; must be " + Object.keys(choiceMap).join();
|
|
93
|
+
|
|
94
|
+
const forbiddenValueOf$1 = "Cannot use valueOf";
|
|
95
|
+
|
|
96
|
+
const invalidCallingContext = "Invalid calling context";
|
|
97
|
+
|
|
98
|
+
const exoticCalendarRequired = (calendarId, remedy) => `Unknown calendar ${calendarId}; might need ${remedy}`;
|
|
99
|
+
|
|
100
|
+
const invalidTimeZone = calendarId => invalidEntity$1("TimeZone", calendarId);
|
|
101
|
+
|
|
102
|
+
const outOfBoundsDate = "Out-of-bounds date";
|
|
103
|
+
|
|
104
|
+
const invalidSubstring = substring => `Invalid substring: ${substring}`;
|
|
105
|
+
|
|
106
|
+
const constrainToRange = constrainToRange$1;
|
|
107
|
+
|
|
108
|
+
function throwRangeError(message) {
|
|
109
|
+
throw new RangeError(message);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function throwTypeError(message) {
|
|
113
|
+
throw new TypeError(message);
|
|
56
114
|
}
|
|
57
115
|
|
|
58
|
-
function
|
|
59
|
-
return
|
|
116
|
+
function clampProp(props, propName, min, max, overflow) {
|
|
117
|
+
return clampEntity(propName, ((props, propName) => {
|
|
118
|
+
const propVal = props[propName];
|
|
119
|
+
return void 0 === propVal && throwTypeError(missingField(propName)), propVal;
|
|
120
|
+
})(props, propName), min, max, overflow);
|
|
60
121
|
}
|
|
61
122
|
|
|
62
|
-
function
|
|
63
|
-
const
|
|
64
|
-
return (
|
|
65
|
-
|
|
66
|
-
|
|
123
|
+
function clampEntity(entityName, num, min, max, overflow, choices) {
|
|
124
|
+
const clamped = constrainToRange(num, min, max);
|
|
125
|
+
return overflow && num !== clamped && throwRangeError(((entityName, val, min, max, choices) => choices ? numberOutOfRange(entityName, choices[val], choices[min], choices[max]) : numberOutOfRange(entityName, val, min, max))(entityName, num, min, max, choices)),
|
|
126
|
+
clamped;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function memoize$1(generator, MapClass = Map) {
|
|
130
|
+
const map = new MapClass;
|
|
131
|
+
return (key, ...otherArgs) => {
|
|
132
|
+
if (map.has(key)) {
|
|
133
|
+
return map.get(key);
|
|
67
134
|
}
|
|
68
|
-
const
|
|
69
|
-
return
|
|
135
|
+
const val = generator(key, ...otherArgs);
|
|
136
|
+
return map.set(key, val), val;
|
|
70
137
|
};
|
|
71
138
|
}
|
|
72
139
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
140
|
+
const createNameDescriptors = name => createPropDescriptors({
|
|
141
|
+
name: name
|
|
142
|
+
}, 1);
|
|
143
|
+
|
|
144
|
+
const createPropDescriptors = (propVals, readonly) => mapProps(value => ({
|
|
145
|
+
value: value,
|
|
146
|
+
configurable: 1,
|
|
147
|
+
writable: !readonly
|
|
148
|
+
}), propVals);
|
|
149
|
+
|
|
150
|
+
const createStringTagDescriptors = value => ({
|
|
151
|
+
[Symbol.toStringTag]: {
|
|
152
|
+
value: value,
|
|
153
|
+
configurable: 1
|
|
78
154
|
}
|
|
79
|
-
|
|
80
|
-
}
|
|
155
|
+
});
|
|
81
156
|
|
|
82
|
-
function
|
|
83
|
-
const
|
|
84
|
-
for (const
|
|
85
|
-
|
|
157
|
+
function mapProps(transformer, props) {
|
|
158
|
+
const res = {};
|
|
159
|
+
for (const propName in props) {
|
|
160
|
+
res[propName] = transformer(props[propName], propName);
|
|
86
161
|
}
|
|
87
|
-
return
|
|
162
|
+
return res;
|
|
88
163
|
}
|
|
89
164
|
|
|
90
|
-
function
|
|
91
|
-
const
|
|
92
|
-
for (
|
|
93
|
-
|
|
94
|
-
o[i] = e(i, r, t);
|
|
165
|
+
function createPropGetters(propNames) {
|
|
166
|
+
const getters = {};
|
|
167
|
+
for (const propName of propNames) {
|
|
168
|
+
getters[propName] = slots => slots[propName];
|
|
95
169
|
}
|
|
96
|
-
return
|
|
170
|
+
return getters;
|
|
97
171
|
}
|
|
98
172
|
|
|
99
|
-
function
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
o[n[r]] = t[e[r]];
|
|
173
|
+
function pluckProps(propNames, props, dest = Object.create(null)) {
|
|
174
|
+
for (const propName of propNames) {
|
|
175
|
+
dest[propName] = props[propName];
|
|
103
176
|
}
|
|
104
|
-
return
|
|
177
|
+
return dest;
|
|
105
178
|
}
|
|
106
179
|
|
|
107
|
-
function
|
|
108
|
-
|
|
109
|
-
for (const o of e) {
|
|
110
|
-
t[o] = n[o];
|
|
111
|
-
}
|
|
112
|
-
return t;
|
|
180
|
+
function bindArgs(f, ...boundArgs) {
|
|
181
|
+
return (...dynamicArgs) => f(...boundArgs, ...dynamicArgs);
|
|
113
182
|
}
|
|
114
183
|
|
|
115
|
-
function
|
|
116
|
-
|
|
184
|
+
function noop() {}
|
|
185
|
+
|
|
186
|
+
function capitalize(s) {
|
|
187
|
+
return s[0].toUpperCase() + s.substring(1);
|
|
117
188
|
}
|
|
118
189
|
|
|
119
|
-
function
|
|
120
|
-
return
|
|
190
|
+
function createRegExp(meat) {
|
|
191
|
+
return new RegExp(`^${meat}$`, "i");
|
|
121
192
|
}
|
|
122
193
|
|
|
123
|
-
function
|
|
124
|
-
return
|
|
194
|
+
function parseSubsecNano(fracStr) {
|
|
195
|
+
return parseInt(fracStr.padEnd(9, "0"));
|
|
125
196
|
}
|
|
126
197
|
|
|
127
|
-
function
|
|
128
|
-
return
|
|
198
|
+
function parseSign(s) {
|
|
199
|
+
return s && "+" !== s ? -1 : 1;
|
|
129
200
|
}
|
|
130
201
|
|
|
131
|
-
function
|
|
132
|
-
return
|
|
202
|
+
function parseInt0(s) {
|
|
203
|
+
return void 0 === s ? 0 : parseInt(s);
|
|
133
204
|
}
|
|
134
205
|
|
|
135
|
-
function
|
|
136
|
-
return
|
|
206
|
+
function padNumber(digits, num) {
|
|
207
|
+
return String(num).padStart(digits, "0");
|
|
137
208
|
}
|
|
138
209
|
|
|
139
|
-
|
|
140
|
-
|
|
210
|
+
const padNumber2 = /*@__PURE__*/ bindArgs(padNumber, 2);
|
|
211
|
+
|
|
212
|
+
function compareNumbers$1(a, b) {
|
|
213
|
+
return Math.sign(a - b);
|
|
141
214
|
}
|
|
142
215
|
|
|
143
|
-
function
|
|
144
|
-
|
|
216
|
+
function divFloorBigInt(num, denom) {
|
|
217
|
+
const whole = num / denom;
|
|
218
|
+
return num % denom < 0n ? whole - 1n : whole;
|
|
145
219
|
}
|
|
146
220
|
|
|
147
|
-
function
|
|
148
|
-
|
|
221
|
+
function divModFloorBigInt(num, divisor) {
|
|
222
|
+
const quotient = divFloorBigInt(num, divisor);
|
|
223
|
+
return [ quotient, num - quotient * divisor ];
|
|
149
224
|
}
|
|
150
225
|
|
|
151
|
-
function
|
|
152
|
-
return Math.
|
|
226
|
+
function divModFloor(num, divisor) {
|
|
227
|
+
return [ Math.floor(num / divisor), modFloor(num, divisor) ];
|
|
153
228
|
}
|
|
154
229
|
|
|
155
|
-
function
|
|
156
|
-
return
|
|
230
|
+
function modFloor(num, divisor) {
|
|
231
|
+
return (num % divisor + divisor) % divisor;
|
|
157
232
|
}
|
|
158
233
|
|
|
159
|
-
function
|
|
160
|
-
|
|
161
|
-
for (let i = 0; i <= n; i++) {
|
|
162
|
-
const n = e[t[i]], a = Zu[i], s = go / a, [c, u] = divModTrunc(n, s);
|
|
163
|
-
o += u * a, r += c;
|
|
164
|
-
}
|
|
165
|
-
const [i, a] = divModTrunc(o, go);
|
|
166
|
-
return [ r + i, a ];
|
|
234
|
+
function divTrunc(num, divisor) {
|
|
235
|
+
return Math.trunc(num / divisor) || 0;
|
|
167
236
|
}
|
|
168
237
|
|
|
169
|
-
function
|
|
170
|
-
|
|
171
|
-
for (let r = n; r >= 0; r--) {
|
|
172
|
-
const n = Zu[r];
|
|
173
|
-
o[t[r]] = divTrunc(e, n), e = modTrunc(e, n);
|
|
174
|
-
}
|
|
175
|
-
return o;
|
|
238
|
+
function hasHalf(num) {
|
|
239
|
+
return .5 === Math.abs(num % 1);
|
|
176
240
|
}
|
|
177
241
|
|
|
178
|
-
function
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
return e;
|
|
242
|
+
function normalizeEraName(era) {
|
|
243
|
+
const normalized = era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
244
|
+
return "bc" === normalized || "b" === normalized ? "bce" : "ad" === normalized || "a" === normalized ? "ce" : normalized;
|
|
183
245
|
}
|
|
184
246
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return n;
|
|
247
|
+
const isoCalendarImpl = void 0;
|
|
248
|
+
|
|
249
|
+
function getCalendarSlotId(calendar) {
|
|
250
|
+
return calendar === isoCalendarImpl ? "iso8601" : 0 === calendar ? "gregory" : calendar.id;
|
|
190
251
|
}
|
|
191
252
|
|
|
192
|
-
function
|
|
193
|
-
|
|
194
|
-
throw new RangeError(expectedInteger(n, e));
|
|
195
|
-
}
|
|
196
|
-
return e || 0;
|
|
253
|
+
function formatMonthCode(monthCodeNumber, isLeapMonth) {
|
|
254
|
+
return "M" + padNumber2(monthCodeNumber) + (isLeapMonth ? "L" : "");
|
|
197
255
|
}
|
|
198
256
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
257
|
+
const unitNameMap = {
|
|
258
|
+
nanosecond: 0,
|
|
259
|
+
microsecond: 1,
|
|
260
|
+
millisecond: 2,
|
|
261
|
+
second: 3,
|
|
262
|
+
minute: 4,
|
|
263
|
+
hour: 5,
|
|
264
|
+
day: 6,
|
|
265
|
+
week: 7,
|
|
266
|
+
month: 8,
|
|
267
|
+
year: 9
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
const unitNamesAsc = /*@__PURE__*/ Object.keys(unitNameMap);
|
|
271
|
+
|
|
272
|
+
const nanoInMicro = nanoInMicro$1;
|
|
273
|
+
|
|
274
|
+
const nanoInMilli = nanoInMilli$1;
|
|
275
|
+
|
|
276
|
+
const nanoInSec = nanoInSec$1;
|
|
277
|
+
|
|
278
|
+
const nanoInMinute = nanoInMinute$1;
|
|
279
|
+
|
|
280
|
+
const nanoInHour = nanoInHour$1;
|
|
281
|
+
|
|
282
|
+
const nanoInUtcDay = 864e11;
|
|
283
|
+
|
|
284
|
+
const bigNanoInMilli = /*@__PURE__*/ BigInt(nanoInMilli);
|
|
285
|
+
|
|
286
|
+
const bigNanoInSec = /*@__PURE__*/ BigInt(nanoInSec);
|
|
287
|
+
|
|
288
|
+
const bigNanoInUtcDay = /*@__PURE__*/ BigInt(nanoInUtcDay);
|
|
289
|
+
|
|
290
|
+
const timeFieldNamesAsc = /*@__PURE__*/ unitNamesAsc.slice(0, 6);
|
|
291
|
+
|
|
292
|
+
const timeGetters$1 = /*@__PURE__*/ createPropGetters(timeFieldNamesAsc);
|
|
293
|
+
|
|
294
|
+
const calendarDateFieldNamesAsc = [ "day", "month", "year" ];
|
|
295
|
+
|
|
296
|
+
function validateTimeFields(timeFields) {
|
|
297
|
+
return constrainTimeFields(timeFields, 1), timeFields;
|
|
204
298
|
}
|
|
205
299
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
300
|
+
const maxValues = {
|
|
301
|
+
hour: 23,
|
|
302
|
+
minute: 59,
|
|
303
|
+
second: 59
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
function constrainTimeFields(timeFields, overflow) {
|
|
307
|
+
const constrainedFields = {};
|
|
308
|
+
for (const fieldName of timeFieldNamesAsc) {
|
|
309
|
+
constrainedFields[fieldName] = clampEntity(fieldName, timeFields[fieldName], 0, maxValues[fieldName] || 999, overflow);
|
|
212
310
|
}
|
|
213
|
-
return
|
|
311
|
+
return constrainedFields;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function timeFieldsToNano(timeFields) {
|
|
315
|
+
return timeFieldsToSec(timeFields) * nanoInSec + timeFieldsToSubsecNano(timeFields);
|
|
214
316
|
}
|
|
215
317
|
|
|
216
|
-
function
|
|
217
|
-
return
|
|
318
|
+
function timeFieldsToSec(timeFields) {
|
|
319
|
+
return 3600 * timeFields.hour + 60 * timeFields.minute + timeFields.second;
|
|
218
320
|
}
|
|
219
321
|
|
|
220
|
-
function
|
|
221
|
-
return
|
|
322
|
+
function timeFieldsToSubsecNano(timeFields) {
|
|
323
|
+
return timeFields.millisecond * nanoInMilli + timeFields.microsecond * nanoInMicro + timeFields.nanosecond;
|
|
222
324
|
}
|
|
223
325
|
|
|
224
|
-
function
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
return
|
|
326
|
+
function nanoToTimeFields(timeNano) {
|
|
327
|
+
const [timeMilli, nanoAfterMilli] = divModFloor(timeNano, nanoInMilli);
|
|
328
|
+
const [microsecond, nanosecond] = divModFloor(nanoAfterMilli, nanoInMicro);
|
|
329
|
+
return milliToTimeFields(timeMilli, microsecond, nanosecond);
|
|
228
330
|
}
|
|
229
331
|
|
|
230
|
-
function
|
|
231
|
-
|
|
332
|
+
function milliToTimeFields(timeMilli, microsecond = 0, nanosecond = 0) {
|
|
333
|
+
const [hour, milliAfterHour] = divModFloor(timeMilli, 36e5);
|
|
334
|
+
const [minute, milliAfterMinute] = divModFloor(milliAfterHour, 6e4);
|
|
335
|
+
const [second, millisecond] = divModFloor(milliAfterMinute, 1e3);
|
|
336
|
+
return {
|
|
337
|
+
hour: hour,
|
|
338
|
+
minute: minute,
|
|
339
|
+
second: second,
|
|
340
|
+
millisecond: millisecond,
|
|
341
|
+
microsecond: microsecond,
|
|
342
|
+
nanosecond: nanosecond
|
|
343
|
+
};
|
|
232
344
|
}
|
|
233
345
|
|
|
234
|
-
function
|
|
235
|
-
|
|
346
|
+
function epochNanoToSecMod(epochNano) {
|
|
347
|
+
const [epochSec, nano] = divModFloorBigInt(epochNano, bigNanoInSec);
|
|
348
|
+
return [ Number(epochSec), Number(nano) ];
|
|
236
349
|
}
|
|
237
350
|
|
|
238
|
-
function
|
|
239
|
-
return
|
|
351
|
+
function isoDateTimeToEpochNano(isoDateTime) {
|
|
352
|
+
return isoDateToEpochNano(isoDateTime) + BigInt(timeFieldsToNano(isoDateTime));
|
|
240
353
|
}
|
|
241
354
|
|
|
242
|
-
function
|
|
243
|
-
|
|
244
|
-
return [ o, r * n ];
|
|
355
|
+
function isoDateToEpochNano(isoDate) {
|
|
356
|
+
return BigInt(isoDateToEpochDays(isoDate)) * bigNanoInUtcDay;
|
|
245
357
|
}
|
|
246
358
|
|
|
247
|
-
function
|
|
248
|
-
|
|
249
|
-
return [ o * (go / n) + i, a ];
|
|
359
|
+
function isoDateToEpochDays(isoDate) {
|
|
360
|
+
return isoArgsToEpochDays(isoDate.year, isoDate.month, isoDate.day);
|
|
250
361
|
}
|
|
251
362
|
|
|
252
|
-
function
|
|
253
|
-
const
|
|
254
|
-
return
|
|
255
|
-
|
|
256
|
-
isoDay: e.isoDay + t,
|
|
257
|
-
isoNanosecond: e.isoNanosecond - t
|
|
258
|
-
})), e;
|
|
363
|
+
function isoArgsToEpochDays(isoYear, isoMonth = 1, isoDay = 1) {
|
|
364
|
+
const monthIndex = isoMonth - 1;
|
|
365
|
+
return isoYear += Math.floor(monthIndex / 12), isoMonth = modFloor(monthIndex, 12),
|
|
366
|
+
Date.UTC(isoYear % 400 - 400, isoMonth, 0) / 864e5 + 146097 * (divTrunc(isoYear, 400) + 1) + isoDay;
|
|
259
367
|
}
|
|
260
368
|
|
|
261
|
-
function
|
|
262
|
-
|
|
263
|
-
|
|
369
|
+
function epochNanoToIsoDateTime(epochNano) {
|
|
370
|
+
const [epochDays, nanoAfterDay] = divModFloorBigInt(epochNano, bigNanoInUtcDay);
|
|
371
|
+
return {
|
|
372
|
+
...epochDaysToIsoDate(Number(epochDays)),
|
|
373
|
+
...nanoToTimeFields(Number(nanoAfterDay))
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
function epochDaysToIsoDate(epochDays) {
|
|
378
|
+
const legacyDate = new Date(864e5 * modFloor(epochDays, 146097));
|
|
379
|
+
return {
|
|
380
|
+
year: legacyDate.getUTCFullYear() + 400 * Math.floor(epochDays / 146097),
|
|
381
|
+
month: legacyDate.getUTCMonth() + 1,
|
|
382
|
+
day: legacyDate.getUTCDate()
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
function computeIsoMonthCodeParts(month) {
|
|
387
|
+
return [ month, 0 ];
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
function computeIsoFieldsFromParts(year, month, day) {
|
|
391
|
+
return {
|
|
392
|
+
year: year,
|
|
393
|
+
month: month,
|
|
394
|
+
day: day
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
function computeIsoDaysInMonth(year, month) {
|
|
399
|
+
switch (month) {
|
|
400
|
+
case 2:
|
|
401
|
+
return computeIsoInLeapYear(year) ? 29 : 28;
|
|
402
|
+
|
|
403
|
+
case 4:
|
|
404
|
+
case 6:
|
|
405
|
+
case 9:
|
|
406
|
+
case 11:
|
|
407
|
+
return 30;
|
|
264
408
|
}
|
|
265
|
-
return
|
|
409
|
+
return 31;
|
|
266
410
|
}
|
|
267
411
|
|
|
268
|
-
function
|
|
269
|
-
return
|
|
412
|
+
function computeIsoDaysInYear(year) {
|
|
413
|
+
return computeIsoInLeapYear(year) ? 366 : 365;
|
|
270
414
|
}
|
|
271
415
|
|
|
272
|
-
function
|
|
273
|
-
|
|
274
|
-
return [ nanoToGivenFields(t, 5, w$1), n ];
|
|
416
|
+
function computeIsoInLeapYear(year) {
|
|
417
|
+
return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0);
|
|
275
418
|
}
|
|
276
419
|
|
|
277
|
-
function
|
|
278
|
-
return
|
|
420
|
+
function computeIsoDayOfWeek(isoDateFields) {
|
|
421
|
+
return modFloor(isoArgsToEpochDays(isoDateFields.year, isoDateFields.month, isoDateFields.day) + 4, 7) || 7;
|
|
279
422
|
}
|
|
280
423
|
|
|
281
|
-
function
|
|
282
|
-
return
|
|
424
|
+
function computeIsoDayOfYear(isoDateFields) {
|
|
425
|
+
return isoArgsToEpochDays(isoDateFields.year, isoDateFields.month, isoDateFields.day) - isoArgsToEpochDays(isoDateFields.year) + 1;
|
|
283
426
|
}
|
|
284
427
|
|
|
285
|
-
function
|
|
286
|
-
|
|
428
|
+
function computeIsoWeekFields(isoDateFields) {
|
|
429
|
+
let yearOfWeek = isoDateFields.year;
|
|
430
|
+
let weekOfYear = Math.floor((computeIsoDayOfYear(isoDateFields) - computeIsoDayOfWeek(isoDateFields) + 10) / 7);
|
|
431
|
+
let weeksInYear = computeIsoWeeksInYear(yearOfWeek);
|
|
432
|
+
return weekOfYear < 1 ? weekOfYear = weeksInYear = computeIsoWeeksInYear(--yearOfWeek) : weekOfYear > weeksInYear && (weekOfYear = 1,
|
|
433
|
+
weeksInYear = computeIsoWeeksInYear(++yearOfWeek)), {
|
|
434
|
+
weekOfYear: weekOfYear,
|
|
435
|
+
yearOfWeek: yearOfWeek,
|
|
436
|
+
Ie: weeksInYear
|
|
437
|
+
};
|
|
287
438
|
}
|
|
288
439
|
|
|
289
|
-
function
|
|
290
|
-
const
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
}
|
|
440
|
+
function computeIsoWeeksInYear(year) {
|
|
441
|
+
const y0DayOfWeek = computeIsoDayOfWeek({
|
|
442
|
+
year: year,
|
|
443
|
+
month: 1,
|
|
444
|
+
day: 1
|
|
445
|
+
});
|
|
446
|
+
return 4 === y0DayOfWeek || 3 === y0DayOfWeek && computeIsoInLeapYear(year) ? 53 : 52;
|
|
295
447
|
}
|
|
296
448
|
|
|
297
|
-
function
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
449
|
+
function computeGregoryEraFields({year: year}) {
|
|
450
|
+
return year < 1 ? {
|
|
451
|
+
era: "bce",
|
|
452
|
+
eraYear: 1 - year
|
|
453
|
+
} : {
|
|
454
|
+
era: "ce",
|
|
455
|
+
eraYear: year
|
|
456
|
+
};
|
|
304
457
|
}
|
|
305
458
|
|
|
306
|
-
function
|
|
307
|
-
return
|
|
459
|
+
function validateIsoDateTimeFields(isoDateTime) {
|
|
460
|
+
return validateIsoDateFields(isoDateTime), validateTimeFields(isoDateTime);
|
|
308
461
|
}
|
|
309
462
|
|
|
310
|
-
function
|
|
311
|
-
|
|
312
|
-
if (!isNaN(o)) {
|
|
313
|
-
return o - t * Cu;
|
|
314
|
-
}
|
|
463
|
+
function validateIsoDateFields(isoInternals) {
|
|
464
|
+
return constrainIsoDateFields(isoInternals, 1), isoInternals;
|
|
315
465
|
}
|
|
316
466
|
|
|
317
|
-
function
|
|
318
|
-
const
|
|
319
|
-
|
|
467
|
+
function constrainIsoDateFields(isoDate, overflow) {
|
|
468
|
+
const {year: year} = isoDate;
|
|
469
|
+
const month = clampProp(isoDate, "month", 1, 12, overflow);
|
|
470
|
+
return {
|
|
471
|
+
year: year,
|
|
472
|
+
month: month,
|
|
473
|
+
day: clampProp(isoDate, "day", 1, computeIsoDaysInMonth(year, month), overflow)
|
|
474
|
+
};
|
|
320
475
|
}
|
|
321
476
|
|
|
322
|
-
function
|
|
323
|
-
|
|
324
|
-
o < 0 && (o += go, t -= 1);
|
|
325
|
-
const [r, i] = divModFloor(o, Ke), [a, s] = divModFloor(i, ro);
|
|
326
|
-
return Pa(t * Cu + r, a, s);
|
|
477
|
+
function computeCalendarDateFields(calendar, isoDate) {
|
|
478
|
+
return calendar ? calendar.ie(isoDate) : isoDate;
|
|
327
479
|
}
|
|
328
480
|
|
|
329
|
-
function
|
|
330
|
-
|
|
331
|
-
return zipProps(pl, [ r.getUTCFullYear(), r.getUTCMonth() + 1, r.getUTCDate() + o, r.getUTCHours(), r.getUTCMinutes(), r.getUTCSeconds(), r.getUTCMilliseconds(), n, t ]);
|
|
481
|
+
function computeCalendarMonthCodeParts(calendar, year, month) {
|
|
482
|
+
return calendar ? calendar.O(year, month) : computeIsoMonthCodeParts(month);
|
|
332
483
|
}
|
|
333
484
|
|
|
334
|
-
function
|
|
335
|
-
|
|
336
|
-
throw new RangeError(Mu);
|
|
337
|
-
}
|
|
338
|
-
const t = e.formatToParts(n), o = {};
|
|
339
|
-
for (const e of t) {
|
|
340
|
-
o[e.type] = e.value;
|
|
341
|
-
}
|
|
342
|
-
return o;
|
|
485
|
+
function computeCalendarEraFields(calendar, isoDate) {
|
|
486
|
+
return 0 === calendar ? computeGregoryEraFields(isoDate) : calendar ? calendar.h(isoDate) : {};
|
|
343
487
|
}
|
|
344
488
|
|
|
345
|
-
function
|
|
346
|
-
return
|
|
489
|
+
function computeCalendarIsoFieldsFromParts(calendar, year, month, day) {
|
|
490
|
+
return calendar ? calendar.je(year, month, day) : computeIsoFieldsFromParts(year, month, day);
|
|
347
491
|
}
|
|
348
492
|
|
|
349
|
-
function
|
|
350
|
-
return
|
|
493
|
+
function computeCalendarMonthsInYearForYear(calendar, year) {
|
|
494
|
+
return calendar ? calendar.k(year) : 12;
|
|
351
495
|
}
|
|
352
496
|
|
|
353
|
-
function
|
|
354
|
-
return
|
|
497
|
+
function computeCalendarDaysInMonthForYearMonth(calendar, year, month) {
|
|
498
|
+
return calendar ? calendar.p(year, month) : computeIsoDaysInMonth(year, month);
|
|
355
499
|
}
|
|
356
500
|
|
|
357
|
-
function
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
501
|
+
function computeCalendarMonthCode(calendar, isoDate) {
|
|
502
|
+
const {year: year, month: month} = computeCalendarDateFields(calendar, isoDate);
|
|
503
|
+
const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);
|
|
504
|
+
return formatMonthCode(monthCodeNumber, isLeapMonth);
|
|
505
|
+
}
|
|
361
506
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
507
|
+
function computeCalendarInLeapYear(calendar, isoDate) {
|
|
508
|
+
const {year: year} = computeCalendarDateFields(calendar, isoDate);
|
|
509
|
+
return calendar ? calendar.u(year) : computeIsoInLeapYear(year);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
function computeCalendarMonthsInYear(calendar, isoDate) {
|
|
513
|
+
const {year: year} = computeCalendarDateFields(calendar, isoDate);
|
|
514
|
+
return computeCalendarMonthsInYearForYear(calendar, year);
|
|
369
515
|
}
|
|
370
516
|
|
|
371
|
-
function
|
|
372
|
-
|
|
517
|
+
function computeCalendarDaysInMonth(calendar, isoDate) {
|
|
518
|
+
const {year: year, month: month} = computeCalendarDateFields(calendar, isoDate);
|
|
519
|
+
return computeCalendarDaysInMonthForYearMonth(calendar, year, month);
|
|
373
520
|
}
|
|
374
521
|
|
|
375
|
-
function
|
|
376
|
-
|
|
522
|
+
function computeCalendarDaysInYear(calendar, isoDate) {
|
|
523
|
+
const {year: year} = computeCalendarDateFields(calendar, isoDate);
|
|
524
|
+
return calendar ? calendar.j(year) : computeIsoDaysInYear(year);
|
|
377
525
|
}
|
|
378
526
|
|
|
379
|
-
function
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
const {isoYear: n} = e;
|
|
383
|
-
return n < 1 ? [ "japanese-inverse", 1 - n ] : [ "japanese", n ];
|
|
527
|
+
function computeCalendarDayOfYear(calendar, isoDate) {
|
|
528
|
+
if (!calendar) {
|
|
529
|
+
return computeIsoDayOfYear(isoDate);
|
|
384
530
|
}
|
|
385
|
-
const
|
|
386
|
-
|
|
531
|
+
const {year: year} = computeCalendarDateFields(calendar, isoDate);
|
|
532
|
+
const yearStartIsoDate = computeCalendarIsoFieldsFromParts(calendar, year, 1, 1);
|
|
533
|
+
return isoDateToEpochDays(isoDate) - isoDateToEpochDays(yearStartIsoDate) + 1;
|
|
387
534
|
}
|
|
388
535
|
|
|
389
|
-
function
|
|
390
|
-
return
|
|
536
|
+
function computeCalendarWeekOfYear(calendar, isoDate) {
|
|
537
|
+
return calendar === isoCalendarImpl ? computeIsoWeekFields(isoDate).weekOfYear : void 0;
|
|
391
538
|
}
|
|
392
539
|
|
|
393
|
-
function
|
|
394
|
-
return
|
|
540
|
+
function computeCalendarYearOfWeek(calendar, isoDate) {
|
|
541
|
+
return calendar === isoCalendarImpl ? computeIsoWeekFields(isoDate).yearOfWeek : void 0;
|
|
395
542
|
}
|
|
396
543
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
isoDay: clampProp(e, "isoDay", 1, computeIsoDaysInMonth(t, o), n)
|
|
403
|
-
};
|
|
544
|
+
const requireString = /*@__PURE__*/ bindArgs(requireType, "string");
|
|
545
|
+
|
|
546
|
+
function requireType(typeName, arg, entityName = typeName) {
|
|
547
|
+
return typeof arg !== typeName && throwTypeError(invalidEntity(entityName, arg)),
|
|
548
|
+
arg;
|
|
404
549
|
}
|
|
405
550
|
|
|
406
|
-
function
|
|
407
|
-
return
|
|
551
|
+
function requireNumberIsInteger(num, entityName = "number") {
|
|
552
|
+
return Number.isInteger(num) || throwRangeError(((entityName, num) => `Non-integer ${entityName}: ${num}`)(entityName, num)),
|
|
553
|
+
num || 0;
|
|
408
554
|
}
|
|
409
555
|
|
|
410
|
-
function
|
|
411
|
-
return
|
|
556
|
+
function toString$3(arg) {
|
|
557
|
+
return "symbol" == typeof arg && throwTypeError("Cannot convert Symbol to string"),
|
|
558
|
+
String(arg);
|
|
412
559
|
}
|
|
413
560
|
|
|
414
|
-
function
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
561
|
+
function toStrictInteger(arg, entityName) {
|
|
562
|
+
return requireNumberIsInteger(toFiniteNumber(arg, entityName), entityName);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
const epochDisambigMap = {
|
|
566
|
+
compatible: 0,
|
|
567
|
+
reject: 1,
|
|
568
|
+
earlier: 2,
|
|
569
|
+
later: 3
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
const roundingModeFuncs = [ Math.floor, num => hasHalf(num) ? Math.floor(num) : Math.round(num), Math.ceil, num => hasHalf(num) ? Math.ceil(num) : Math.round(num), Math.trunc, num => hasHalf(num) ? Math.trunc(num) || 0 : Math.round(num), num => num < 0 ? Math.floor(num) : Math.ceil(num), num => Math.sign(num) * Math.round(Math.abs(num)) || 0, num => hasHalf(num) ? (num = Math.trunc(num) || 0) + num % 2 : Math.round(num) ];
|
|
573
|
+
|
|
574
|
+
function coerceChoiceOption(optionName, enumNameMap, options, defaultChoice = 0) {
|
|
575
|
+
const enumArg = options[optionName];
|
|
576
|
+
if (void 0 === enumArg) {
|
|
577
|
+
return defaultChoice;
|
|
422
578
|
}
|
|
423
|
-
|
|
579
|
+
const enumStr = toString$3(enumArg);
|
|
580
|
+
const enumNum = enumNameMap[enumStr];
|
|
581
|
+
return void 0 === enumNum && throwRangeError(invalidChoice(optionName, enumStr, enumNameMap)),
|
|
582
|
+
enumNum;
|
|
424
583
|
}
|
|
425
584
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
585
|
+
const coerceEpochDisambig = /*@__PURE__*/ bindArgs(coerceChoiceOption, "disambiguation", epochDisambigMap);
|
|
586
|
+
|
|
587
|
+
const epochNanoMax = /*@__PURE__*/ BigInt(1e8) * bigNanoInUtcDay;
|
|
588
|
+
|
|
589
|
+
const epochNanoMin = /*@__PURE__*/ BigInt(-1e8) * bigNanoInUtcDay;
|
|
590
|
+
|
|
591
|
+
const plainDateEpochNanoMin = epochNanoMin - bigNanoInUtcDay;
|
|
592
|
+
|
|
593
|
+
function checkIsoDateTimeInBounds(isoDateTime) {
|
|
594
|
+
const epochNano = isoDateToEpochNano(isoDateTime);
|
|
595
|
+
return checkIsoDateEpochNanoInBounds(epochNano), epochNano !== plainDateEpochNanoMin || timeFieldsToNano(isoDateTime) || throwRangeError(outOfBoundsDate),
|
|
596
|
+
isoDateTime;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
function checkIsoDateEpochNanoInBounds(epochNano, allowPlainDateLowerEdge = 1) {
|
|
600
|
+
(epochNano < (allowPlainDateLowerEdge ? plainDateEpochNanoMin : epochNanoMin) || epochNano > epochNanoMax) && throwRangeError(outOfBoundsDate);
|
|
431
601
|
}
|
|
432
602
|
|
|
433
|
-
function
|
|
603
|
+
function checkEpochNanoInBounds(epochNano) {
|
|
604
|
+
return (epochNano < epochNanoMin || epochNano > epochNanoMax) && throwRangeError(outOfBoundsDate),
|
|
605
|
+
epochNano;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
function isoDateTimeAndOffsetToEpochNano(isoDateTime, offsetNano) {
|
|
609
|
+
return checkEpochNanoInBounds(isoDateToEpochNano(isoDateTime) + BigInt(timeFieldsToNano(isoDateTime) - offsetNano));
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
function createEpochNanoSlots(epochNano) {
|
|
434
613
|
return {
|
|
435
|
-
|
|
436
|
-
calendar: t,
|
|
437
|
-
timeZone: n,
|
|
438
|
-
epochNanoseconds: e
|
|
614
|
+
epochNanoseconds: epochNano
|
|
439
615
|
};
|
|
440
616
|
}
|
|
441
617
|
|
|
442
|
-
function
|
|
618
|
+
function createZonedEpochNanoSlots(epochNano, timeZone, calendar) {
|
|
443
619
|
return {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
620
|
+
calendar: calendar,
|
|
621
|
+
timeZone: timeZone,
|
|
622
|
+
epochNanoseconds: epochNano
|
|
447
623
|
};
|
|
448
624
|
}
|
|
449
625
|
|
|
450
|
-
function
|
|
451
|
-
return
|
|
626
|
+
function createDateTimeSlots(isoDateTime, calendar) {
|
|
627
|
+
return pluckProps(timeFieldNamesAsc, isoDateTime, createDateSlots(isoDateTime, calendar));
|
|
452
628
|
}
|
|
453
629
|
|
|
454
|
-
function
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
|
|
630
|
+
function createDateSlots(isoDate, calendar) {
|
|
631
|
+
return pluckProps(calendarDateFieldNamesAsc, isoDate, {
|
|
632
|
+
calendar: calendar
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
function getEpochMilli(slots) {
|
|
637
|
+
return epochNano = slots.epochNanoseconds, Number(divFloorBigInt(epochNano, bigNanoInMilli));
|
|
638
|
+
var epochNano;
|
|
460
639
|
}
|
|
461
640
|
|
|
462
|
-
function
|
|
463
|
-
|
|
464
|
-
return t = void 0 === n ? t.replace(af, "") : t.slice(0, n), t ? "." + t : "";
|
|
641
|
+
function getEpochNano(slots) {
|
|
642
|
+
return slots.epochNanoseconds;
|
|
465
643
|
}
|
|
466
644
|
|
|
467
|
-
function
|
|
468
|
-
return
|
|
645
|
+
function roundToMinute$4(offsetNano) {
|
|
646
|
+
return roundNumberToInc(offsetNano, nanoInMinute, 7);
|
|
469
647
|
}
|
|
470
648
|
|
|
471
|
-
function
|
|
472
|
-
|
|
649
|
+
function roundNumberToInc(num, roundingInc, roundingMode) {
|
|
650
|
+
return roundWithMode(num / roundingInc, roundingMode) * roundingInc;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
function roundWithMode(num, roundingMode) {
|
|
654
|
+
return roundingModeFuncs[roundingMode](num);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
const zonedEpochSlotsToIso = /*@__PURE__*/ memoize$1(_zonedEpochSlotsToIso, WeakMap);
|
|
658
|
+
|
|
659
|
+
function _zonedEpochSlotsToIso(slots) {
|
|
660
|
+
const {epochNanoseconds: epochNanoseconds, timeZone: timeZone} = slots;
|
|
661
|
+
const offsetNanoseconds = timeZone.C(epochNanoseconds);
|
|
473
662
|
return {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
offsetNanoseconds: o
|
|
663
|
+
...epochNanoToIsoDateTime(epochNanoseconds + BigInt(offsetNanoseconds)),
|
|
664
|
+
offsetNanoseconds: offsetNanoseconds
|
|
477
665
|
};
|
|
478
666
|
}
|
|
479
667
|
|
|
480
|
-
function
|
|
481
|
-
if (1 ===
|
|
482
|
-
return
|
|
668
|
+
function getSingleInstantFor(timeZone, isoDateTime, disambig = 0, possibleEpochNanos = timeZone.R(isoDateTime)) {
|
|
669
|
+
if (1 === possibleEpochNanos.length) {
|
|
670
|
+
return possibleEpochNanos[0];
|
|
483
671
|
}
|
|
484
|
-
if (1 ===
|
|
485
|
-
|
|
672
|
+
if (1 === disambig && throwRangeError("Ambiguous offset"), possibleEpochNanos.length) {
|
|
673
|
+
return possibleEpochNanos[3 === disambig ? 1 : 0];
|
|
486
674
|
}
|
|
487
|
-
|
|
488
|
-
|
|
675
|
+
const zonedEpochNano = isoDateTimeToEpochNano(isoDateTime);
|
|
676
|
+
const gapNano = ((timeZone, zonedEpochNano) => {
|
|
677
|
+
const startOffsetNano = timeZone.C(zonedEpochNano - bigNanoInUtcDay);
|
|
678
|
+
return (gapNano => (gapNano > nanoInUtcDay && throwRangeError("Out-of-bounds TimeZone gap"),
|
|
679
|
+
gapNano))(timeZone.C(zonedEpochNano + bigNanoInUtcDay) - startOffsetNano);
|
|
680
|
+
})(timeZone, zonedEpochNano);
|
|
681
|
+
const shiftedIsoDateTime = epochNanoToIsoDateTime(zonedEpochNano + BigInt(gapNano * (2 === disambig ? -1 : 1)));
|
|
682
|
+
return (possibleEpochNanos = timeZone.R(shiftedIsoDateTime))[2 === disambig ? 0 : possibleEpochNanos.length - 1];
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
const offsetRegExp = /*@__PURE__*/ createRegExp("([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?");
|
|
686
|
+
|
|
687
|
+
function parseOffsetNanoMaybe(s, onlyHourMinute) {
|
|
688
|
+
const parts = offsetRegExp.exec(s);
|
|
689
|
+
if (parts && (s => (s => {
|
|
690
|
+
"T" !== s[0] && "t" !== s[0] || (s = s.slice(1));
|
|
691
|
+
const fractionIndex = s.search(/[.,]/);
|
|
692
|
+
const main = fractionIndex < 0 ? s : s.slice(0, fractionIndex);
|
|
693
|
+
const parts = main.split(":");
|
|
694
|
+
return 1 === parts.length ? /^(?:\d{2}|\d{4}|\d{6})$/i.test(main) : (2 === parts.length || 3 === parts.length) && parts.every(part => 2 === part.length && /^\d{2}$/i.test(part));
|
|
695
|
+
})(s.slice(1)))(parts[0])) {
|
|
696
|
+
return ((parts, onlyHourMinute) => {
|
|
697
|
+
const firstSubMinutePart = parts[4] || parts[5];
|
|
698
|
+
onlyHourMinute && firstSubMinutePart && throwRangeError(invalidSubstring(firstSubMinutePart));
|
|
699
|
+
const offsetNanoPos = parseInt0(parts[2]) * nanoInHour + parseInt0(parts[3]) * nanoInMinute + parseInt0(parts[4]) * nanoInSec + parseSubsecNano(parts[5] || "");
|
|
700
|
+
return offsetNano = offsetNanoPos * parseSign(parts[1]), Math.abs(offsetNano) >= nanoInUtcDay && throwRangeError("Out-of-bounds offset"),
|
|
701
|
+
offsetNano;
|
|
702
|
+
var offsetNano;
|
|
703
|
+
})(parts, onlyHourMinute);
|
|
489
704
|
}
|
|
490
|
-
const r = ma(n), i = ((e, n) => {
|
|
491
|
-
const t = e.N(Ta(n, -go));
|
|
492
|
-
return (e => {
|
|
493
|
-
if (e > go) {
|
|
494
|
-
throw new RangeError(Du);
|
|
495
|
-
}
|
|
496
|
-
return e;
|
|
497
|
-
})(e.N(Ta(n, go)) - t);
|
|
498
|
-
})(e, r), a = i * (2 === t ? -1 : 1);
|
|
499
|
-
return (o = e.v(So(r, a)))[2 === t ? 0 : o.length - 1];
|
|
500
705
|
}
|
|
501
706
|
|
|
502
|
-
|
|
503
|
-
return [ e, n ];
|
|
504
|
-
}
|
|
707
|
+
const RawDateTimeFormat = Intl.DateTimeFormat;
|
|
505
708
|
|
|
506
|
-
function
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
709
|
+
function formatEpochMilliToPartsRecord(intlFormat, epochMilli) {
|
|
710
|
+
epochMilli < -864e13 && throwRangeError(outOfBoundsDate);
|
|
711
|
+
const parts = intlFormat.formatToParts(epochMilli);
|
|
712
|
+
const hash = {};
|
|
713
|
+
for (const part of parts) {
|
|
714
|
+
hash[part.type] = part.value;
|
|
715
|
+
}
|
|
716
|
+
return hash;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
const timeZonePeriodDaysByName = {
|
|
720
|
+
"El_Aaiun": 17,
|
|
721
|
+
"Tucuman": 12,
|
|
722
|
+
"Tirane": 11,
|
|
723
|
+
"Riga": 10,
|
|
724
|
+
"Simferopol": 9,
|
|
725
|
+
"Vienna": 9,
|
|
726
|
+
"Tunis": 8,
|
|
727
|
+
"Boa_Vista": 6,
|
|
728
|
+
"Fortaleza": 6,
|
|
729
|
+
"Maceio": 6,
|
|
730
|
+
"Noronha": 6,
|
|
731
|
+
"Recife": 6,
|
|
732
|
+
"Gaza": 6,
|
|
733
|
+
"Hebron": 6,
|
|
734
|
+
"DeNoronha": 6
|
|
735
|
+
};
|
|
510
736
|
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
if (n && t) {
|
|
516
|
-
throw new RangeError(invalidSubstring(t));
|
|
517
|
-
}
|
|
518
|
-
return (e => {
|
|
519
|
-
if (Math.abs(e) >= go) {
|
|
520
|
-
throw new RangeError(Iu);
|
|
521
|
-
}
|
|
522
|
-
return e;
|
|
523
|
-
})((parseInt0(e[2]) * no + parseInt0(e[3]) * ao + parseInt0(e[4]) * oo + parseSubsecNano(e[5] || "")) * parseSign(e[1]));
|
|
524
|
-
})(t, n) : void 0;
|
|
737
|
+
const minPossibleTransitionSec = -388152e4;
|
|
738
|
+
|
|
739
|
+
function formatInstantIsoAuto(instantSlots) {
|
|
740
|
+
return formatIsoDateTimeFields(epochNanoToIsoDateTime(instantSlots.epochNanoseconds), void 0) + "Z";
|
|
525
741
|
}
|
|
526
742
|
|
|
527
|
-
function
|
|
528
|
-
|
|
743
|
+
function formatZonedDateTimeIsoAuto(zonedDateTimeSlots) {
|
|
744
|
+
const calendar = zonedDateTimeSlots.calendar;
|
|
745
|
+
const timeZone = zonedDateTimeSlots.timeZone;
|
|
746
|
+
const offsetNano = timeZone.C(zonedDateTimeSlots.epochNanoseconds);
|
|
747
|
+
return formatIsoDateTimeFields(epochNanoToIsoDateTime(zonedDateTimeSlots.epochNanoseconds + BigInt(offsetNano)), void 0) + formatOffsetNano(roundToMinute$4(offsetNano)) + formatTimeZone(timeZone.id, 0) + (calendar === isoCalendarImpl ? "" : formatCalendarId(getCalendarSlotId(calendar), 0));
|
|
529
748
|
}
|
|
530
749
|
|
|
531
|
-
function
|
|
532
|
-
|
|
750
|
+
function formatDateTimeIsoAuto(isoDateTimeSlots) {
|
|
751
|
+
const calendar = isoDateTimeSlots.calendar;
|
|
752
|
+
return formatIsoDateTimeFields(isoDateTimeSlots, void 0) + (calendar === isoCalendarImpl ? "" : formatCalendarId(getCalendarSlotId(calendar), 0));
|
|
533
753
|
}
|
|
534
754
|
|
|
535
|
-
function
|
|
536
|
-
return
|
|
755
|
+
function formatIsoDateTimeFields(isoDateTime, subsecDigits) {
|
|
756
|
+
return formatIsoDateFields(isoDateTime) + "T" + formatTimeFields(isoDateTime, subsecDigits);
|
|
537
757
|
}
|
|
538
758
|
|
|
539
|
-
function
|
|
540
|
-
return
|
|
759
|
+
function formatIsoDateFields(isoDateFields) {
|
|
760
|
+
return formatIsoYearMonthFields(isoDateFields) + "-" + padNumber2(isoDateFields.day);
|
|
541
761
|
}
|
|
542
762
|
|
|
543
|
-
function
|
|
544
|
-
|
|
763
|
+
function formatIsoYearMonthFields(isoDateFields) {
|
|
764
|
+
const {year: year} = isoDateFields;
|
|
765
|
+
return (year < 0 || year > 9999 ? getSignStr(year) + padNumber(6, Math.abs(year)) : padNumber(4, year)) + "-" + padNumber2(isoDateFields.month);
|
|
545
766
|
}
|
|
546
767
|
|
|
547
|
-
function
|
|
548
|
-
const
|
|
549
|
-
return
|
|
550
|
-
|
|
551
|
-
throw new RangeError(F(e));
|
|
552
|
-
}
|
|
553
|
-
if (Pf.test(e)) {
|
|
554
|
-
throw new RangeError(hu);
|
|
555
|
-
}
|
|
556
|
-
return e.toLowerCase().split("/").map(((e, n) => (e.length <= 3 || /\d/.test(e)) && !/etc|yap/.test(e) ? e.toUpperCase() : e.replace(/baja|dumont|[a-z]+/g, ((e, t) => e.length <= 2 && !n || "in" === e || "chat" === e ? e.toUpperCase() : e.length > 2 || !t ? capitalize(e).replace(/island|noronha|murdo|rivadavia|urville/, capitalize) : e)))).join("/");
|
|
557
|
-
})(e) : nf;
|
|
768
|
+
function formatTimeFields(timeFields, subsecDigits) {
|
|
769
|
+
const parts = [ padNumber2(timeFields.hour), padNumber2(timeFields.minute) ];
|
|
770
|
+
return -1 !== subsecDigits && parts.push(padNumber2(timeFields.second) + ((millisecond, microsecond, nanosecond, subsecDigits) => formatSubsecNano(millisecond * nanoInMilli + microsecond * nanoInMicro + nanosecond, subsecDigits))(timeFields.millisecond, timeFields.microsecond, timeFields.nanosecond, subsecDigits)),
|
|
771
|
+
parts.join(":");
|
|
558
772
|
}
|
|
559
773
|
|
|
560
|
-
function
|
|
561
|
-
|
|
562
|
-
|
|
774
|
+
function formatOffsetNano(offsetNano, offsetDisplay = 0) {
|
|
775
|
+
if (1 === offsetDisplay) {
|
|
776
|
+
return "";
|
|
777
|
+
}
|
|
778
|
+
const [hour, nanoRemainder0] = divModFloor(Math.abs(offsetNano), nanoInHour);
|
|
779
|
+
const [minute, nanoRemainder1] = divModFloor(nanoRemainder0, nanoInMinute);
|
|
780
|
+
const [second, nanoRemainder2] = divModFloor(nanoRemainder1, nanoInSec);
|
|
781
|
+
return getSignStr(offsetNano) + padNumber2(hour) + ":" + padNumber2(minute) + (second || nanoRemainder2 ? ":" + padNumber2(second) + formatSubsecNano(nanoRemainder2) : "");
|
|
563
782
|
}
|
|
564
783
|
|
|
565
|
-
function
|
|
566
|
-
return "
|
|
784
|
+
function formatTimeZone(timeZoneId, timeZoneDisplay) {
|
|
785
|
+
return 1 !== timeZoneDisplay ? "[" + (2 === timeZoneDisplay ? "!" : "") + timeZoneId + "]" : "";
|
|
567
786
|
}
|
|
568
787
|
|
|
569
|
-
function
|
|
570
|
-
return
|
|
788
|
+
function formatCalendarId(calendarId, isCritical) {
|
|
789
|
+
return "[" + (isCritical ? "!" : "") + "u-ca=" + calendarId + "]";
|
|
571
790
|
}
|
|
572
791
|
|
|
573
|
-
|
|
574
|
-
|
|
792
|
+
const trailingZerosRE = /0+$/;
|
|
793
|
+
|
|
794
|
+
function formatSubsecNano(totalNano, subsecDigits) {
|
|
795
|
+
let s = padNumber(9, totalNano);
|
|
796
|
+
return s = void 0 === subsecDigits ? s.replace(trailingZerosRE, "") : s.slice(0, subsecDigits),
|
|
797
|
+
s ? "." + s : "";
|
|
575
798
|
}
|
|
576
799
|
|
|
577
|
-
function
|
|
578
|
-
return
|
|
800
|
+
function getSignStr(num) {
|
|
801
|
+
return num < 0 ? "-" : "+";
|
|
579
802
|
}
|
|
580
803
|
|
|
581
|
-
|
|
582
|
-
|
|
804
|
+
const icuRegExp = /^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/;
|
|
805
|
+
|
|
806
|
+
const badCharactersRegExp = /[^\w\/:+-]+/;
|
|
807
|
+
|
|
808
|
+
function refineTimeZoneId(rawId) {
|
|
809
|
+
return resolveTimeZoneId(requireString(rawId));
|
|
583
810
|
}
|
|
584
811
|
|
|
585
|
-
function
|
|
586
|
-
|
|
587
|
-
return ((e, n) => ({
|
|
588
|
-
...parseIntlYear(e, n),
|
|
589
|
-
V: e.month,
|
|
590
|
-
day: parseInt(e.day)
|
|
591
|
-
}))(hashIntlFormatParts(n, e), t);
|
|
592
|
-
}
|
|
593
|
-
const n = bf(e), t = computeCalendarIdBase(e);
|
|
594
|
-
return {
|
|
595
|
-
id: e,
|
|
596
|
-
_: createIntlFieldCache(epochMilliToIntlFields),
|
|
597
|
-
J: createIntlYearDataCache(epochMilliToIntlFields)
|
|
598
|
-
};
|
|
812
|
+
function resolveTimeZoneId(rawId) {
|
|
813
|
+
return resolveTimeZoneRecord(rawId).id;
|
|
599
814
|
}
|
|
600
815
|
|
|
601
|
-
function
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
r += 400 * Cu;
|
|
615
|
-
} while ((o = e(r)).year <= t);
|
|
616
|
-
do {
|
|
617
|
-
if (r += (1 - o.day) * Cu, o.year === t && (a.push(r), s.push(o.V)), r -= Cu, ++i > 100 || r < -gl) {
|
|
618
|
-
throw new RangeError(du);
|
|
619
|
-
}
|
|
620
|
-
} while ((o = e(r)).year >= t);
|
|
816
|
+
function resolveTimeZoneRecord(rawId) {
|
|
817
|
+
const upperRawId = rawId.toUpperCase();
|
|
818
|
+
const offsetRecord = (upperRawId => {
|
|
819
|
+
const offsetNano = parseOffsetNanoMaybe(upperRawId, 1);
|
|
820
|
+
if (void 0 !== offsetNano) {
|
|
821
|
+
return {
|
|
822
|
+
id: formatOffsetNano(offsetNano),
|
|
823
|
+
_: offsetNano,
|
|
824
|
+
o: offsetNano
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
})(upperRawId);
|
|
828
|
+
if (offsetRecord) {
|
|
621
829
|
return {
|
|
622
|
-
|
|
623
|
-
|
|
830
|
+
kind: "fixed",
|
|
831
|
+
...offsetRecord
|
|
624
832
|
};
|
|
625
|
-
}
|
|
833
|
+
}
|
|
834
|
+
const normId = "UTC" === upperRawId ? "UTC" : (rawId => (badCharactersRegExp.test(rawId) && throwRangeError(invalidTimeZone(rawId)),
|
|
835
|
+
icuRegExp.test(rawId) && throwRangeError("Forbidden ICU TimeZone"), rawId.toLowerCase().split("/").map((part, partI) => (part.length <= 3 || /\d/.test(part)) && !/etc|yap/.test(part) ? part.toUpperCase() : part.replace(/baja|dumont|[a-z]+/g, (a, i) => a.length <= 2 && !partI || "in" === a || "chat" === a ? a.toUpperCase() : a.length > 2 || !i ? capitalize(a).replace(/island|noronha|murdo|rivadavia|urville/, capitalize) : a)).join("/")))(rawId);
|
|
836
|
+
return queryNamedTimeZoneRecord(normId);
|
|
626
837
|
}
|
|
627
838
|
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
839
|
+
const queryNamedTimeZoneRecord = /*@__PURE__*/ memoize$1(normId => {
|
|
840
|
+
if ("UTC" === normId) {
|
|
841
|
+
return {
|
|
842
|
+
kind: "utc",
|
|
843
|
+
id: normId,
|
|
844
|
+
o: normId
|
|
845
|
+
};
|
|
635
846
|
}
|
|
847
|
+
const upperNormId = normId.toUpperCase();
|
|
848
|
+
const format = queryTimeZoneIntlFormat(upperNormId);
|
|
636
849
|
return {
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
850
|
+
kind: "named",
|
|
851
|
+
id: normId,
|
|
852
|
+
format: format,
|
|
853
|
+
o: format.resolvedOptions().timeZone
|
|
640
854
|
};
|
|
641
|
-
}
|
|
855
|
+
});
|
|
642
856
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
857
|
+
const queryTimeZoneIntlFormat = /*@__PURE__*/ memoize$1(upperNormId => new RawDateTimeFormat("en-u-hc-h23", {
|
|
858
|
+
calendar: "iso8601",
|
|
859
|
+
timeZone: upperNormId,
|
|
860
|
+
era: "short",
|
|
861
|
+
year: "numeric",
|
|
862
|
+
month: "numeric",
|
|
863
|
+
day: "numeric",
|
|
864
|
+
hour: "numeric",
|
|
865
|
+
minute: "numeric",
|
|
866
|
+
second: "numeric"
|
|
867
|
+
}));
|
|
646
868
|
|
|
647
|
-
function
|
|
648
|
-
const
|
|
649
|
-
return
|
|
869
|
+
function queryTimeZone(rawTimeZoneId) {
|
|
870
|
+
const record = resolveTimeZoneRecord(rawTimeZoneId);
|
|
871
|
+
return queryTimeZoneRecord(record.id, record);
|
|
650
872
|
}
|
|
651
873
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
874
|
+
const queryTimeZoneRecord = /*@__PURE__*/ memoize$1((normTimeZoneId, record) => "named" === record.kind ? new IntlTimeZone(normTimeZoneId, record.o, record.format) : new FixedTimeZone(normTimeZoneId, record.o, "fixed" === record.kind ? record._ : 0));
|
|
875
|
+
|
|
876
|
+
class FixedTimeZone {
|
|
877
|
+
constructor(id, compareKey, offsetNano) {
|
|
878
|
+
this.id = id, this.o = compareKey, this._ = offsetNano;
|
|
879
|
+
}
|
|
880
|
+
C() {
|
|
881
|
+
return this._;
|
|
882
|
+
}
|
|
883
|
+
R(isoDateTime) {
|
|
884
|
+
return [ isoDateTimeAndOffsetToEpochNano(isoDateTime, this._) ];
|
|
885
|
+
}
|
|
886
|
+
U() {}
|
|
655
887
|
}
|
|
656
888
|
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
889
|
+
class IntlTimeZone {
|
|
890
|
+
constructor(id, compareKey, format) {
|
|
891
|
+
this.id = id, this.o = compareKey, this.qe = ((computeOffsetSec, periodDays) => {
|
|
892
|
+
const getSample = memoize$1(computeOffsetSec);
|
|
893
|
+
const getSplit = memoize$1(createSplitTuple);
|
|
894
|
+
const periodSec = 86400 * periodDays;
|
|
895
|
+
function getOffsetSec(epochSec) {
|
|
896
|
+
const [startEpochSec, endEpochSec] = computePeriod(epochSec, periodSec);
|
|
897
|
+
const clampedStartEpochSec = clampIntlSampleEpochSec(startEpochSec);
|
|
898
|
+
const clampedEndEpochSec = clampIntlSampleEpochSec(endEpochSec);
|
|
899
|
+
const startOffsetSec = getSample(clampedStartEpochSec);
|
|
900
|
+
const endOffsetSec = getSample(clampedEndEpochSec);
|
|
901
|
+
return startOffsetSec === endOffsetSec ? startOffsetSec : pinch(getSplit(clampedStartEpochSec, clampedEndEpochSec), startOffsetSec, endOffsetSec, epochSec);
|
|
667
902
|
}
|
|
903
|
+
function pinch(split, startOffsetSec, endOffsetSec, forEpochSec) {
|
|
904
|
+
let offsetSec;
|
|
905
|
+
let splitDurSec;
|
|
906
|
+
for (;(void 0 === forEpochSec || void 0 === (offsetSec = forEpochSec < split[0] ? startOffsetSec : forEpochSec >= split[1] ? endOffsetSec : void 0)) && (splitDurSec = split[1] - split[0]); ) {
|
|
907
|
+
const middleEpochSec = split[0] + Math.floor(splitDurSec / 2);
|
|
908
|
+
computeOffsetSec(middleEpochSec) === endOffsetSec ? split[1] = middleEpochSec : split[0] = middleEpochSec + 1;
|
|
909
|
+
}
|
|
910
|
+
return offsetSec;
|
|
911
|
+
}
|
|
912
|
+
return {
|
|
913
|
+
Ee(zonedEpochSec) {
|
|
914
|
+
const wideOffsetSec0 = getOffsetSec(zonedEpochSec - 86400);
|
|
915
|
+
const wideOffsetSec1 = getOffsetSec(zonedEpochSec + 86400);
|
|
916
|
+
const wideUtcEpochSec0 = zonedEpochSec - wideOffsetSec0;
|
|
917
|
+
const wideUtcEpochSec1 = zonedEpochSec - wideOffsetSec1;
|
|
918
|
+
if (wideOffsetSec0 === wideOffsetSec1) {
|
|
919
|
+
return [ wideUtcEpochSec0 ];
|
|
920
|
+
}
|
|
921
|
+
const narrowOffsetSec0 = getOffsetSec(wideUtcEpochSec0);
|
|
922
|
+
return narrowOffsetSec0 === getOffsetSec(wideUtcEpochSec1) ? [ zonedEpochSec - narrowOffsetSec0 ] : wideOffsetSec0 > wideOffsetSec1 ? [ wideUtcEpochSec0, wideUtcEpochSec1 ] : [];
|
|
923
|
+
},
|
|
924
|
+
De: getOffsetSec,
|
|
925
|
+
U: function getTransition(epochSec, direction) {
|
|
926
|
+
if (direction > 0 && epochSec >= 864e10) {
|
|
927
|
+
return;
|
|
928
|
+
}
|
|
929
|
+
if (direction < 0) {
|
|
930
|
+
if (epochSec <= minPossibleTransitionSec) {
|
|
931
|
+
return;
|
|
932
|
+
}
|
|
933
|
+
const lookaheadEpochSec = getCurrentEpochSec() + 94867200;
|
|
934
|
+
if (epochSec > lookaheadEpochSec) {
|
|
935
|
+
return getTransition(lookaheadEpochSec, -1);
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
const searchEpochSec = direction > 0 ? Math.max(epochSec, minPossibleTransitionSec) : epochSec;
|
|
939
|
+
let [startEpochSec, endEpochSec] = computePeriod(searchEpochSec, periodSec);
|
|
940
|
+
const inc = periodSec * direction;
|
|
941
|
+
const searchLimit = direction > 0 ? Math.max(epochSec, getCurrentEpochSec()) + 94867200 : minPossibleTransitionSec;
|
|
942
|
+
const inBounds = () => direction < 0 ? endEpochSec > searchLimit : startEpochSec < searchLimit;
|
|
943
|
+
for (;inBounds(); ) {
|
|
944
|
+
const clampedStartEpochSec = clampIntlSampleEpochSec(startEpochSec);
|
|
945
|
+
const clampedEndEpochSec = clampIntlSampleEpochSec(endEpochSec);
|
|
946
|
+
const startOffsetSec = getSample(clampedStartEpochSec);
|
|
947
|
+
const endOffsetSec = getSample(clampedEndEpochSec);
|
|
948
|
+
if (startOffsetSec !== endOffsetSec) {
|
|
949
|
+
const split = getSplit(clampedStartEpochSec, clampedEndEpochSec);
|
|
950
|
+
pinch(split, startOffsetSec, endOffsetSec);
|
|
951
|
+
const transitionEpochSec = split[0];
|
|
952
|
+
if ((compareNumbers$1(transitionEpochSec, epochSec) || 1) === direction) {
|
|
953
|
+
return transitionEpochSec;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
startEpochSec += inc, endEpochSec += inc;
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
})((format => epochSec => {
|
|
961
|
+
const intlParts = formatEpochMilliToPartsRecord(format, 1e3 * epochSec);
|
|
962
|
+
return 86400 * isoArgsToEpochDays((intlParts => {
|
|
963
|
+
const relatedYear = intlParts.relatedYear;
|
|
964
|
+
if (void 0 !== relatedYear) {
|
|
965
|
+
return parseInt(relatedYear);
|
|
966
|
+
}
|
|
967
|
+
const year = parseInt(intlParts.year);
|
|
968
|
+
return void 0 !== intlParts.era && "bce" === normalizeEraName(intlParts.era) ? 1 - year : year;
|
|
969
|
+
})(intlParts), parseInt(intlParts.month), parseInt(intlParts.day)) + 3600 * parseInt(intlParts.hour) + 60 * parseInt(intlParts.minute) + parseInt(intlParts.second) - epochSec;
|
|
970
|
+
})(format), (timeZoneId => {
|
|
971
|
+
const timeZoneName = timeZoneId.split("/").pop();
|
|
972
|
+
return timeZonePeriodDaysByName[timeZoneName] || 60;
|
|
973
|
+
})(id));
|
|
974
|
+
}
|
|
975
|
+
C(epochNano) {
|
|
976
|
+
return this.qe.De((epochNano => epochNanoToSecMod(epochNano)[0])(epochNano)) * nanoInSec;
|
|
977
|
+
}
|
|
978
|
+
R(isoDateTime) {
|
|
979
|
+
const zonedEpochSec = 86400 * isoDateToEpochDays(isoDateTime) + timeFieldsToSec(isoDateTime);
|
|
980
|
+
const subsecNano = timeFieldsToSubsecNano(isoDateTime);
|
|
981
|
+
return this.qe.Ee(zonedEpochSec).map(epochSec => checkEpochNanoInBounds(BigInt(epochSec) * bigNanoInSec + BigInt(subsecNano)));
|
|
982
|
+
}
|
|
983
|
+
U(epochNano, direction) {
|
|
984
|
+
const [epochSec, subsecNano] = epochNanoToSecMod(epochNano);
|
|
985
|
+
const resEpochSec = this.qe.U(epochSec + (direction > 0 || subsecNano ? 1 : 0), direction);
|
|
986
|
+
if (void 0 !== resEpochSec) {
|
|
987
|
+
return BigInt(resEpochSec) * bigNanoInSec;
|
|
668
988
|
}
|
|
669
989
|
}
|
|
670
990
|
}
|
|
671
991
|
|
|
672
|
-
function
|
|
673
|
-
|
|
674
|
-
return [ n.era, n.eraYear ];
|
|
992
|
+
function getCurrentEpochSec() {
|
|
993
|
+
return Math.floor(Date.now() / 1e3);
|
|
675
994
|
}
|
|
676
995
|
|
|
677
|
-
function
|
|
678
|
-
return
|
|
996
|
+
function createSplitTuple(startEpochSec, endEpochSec) {
|
|
997
|
+
return [ startEpochSec, endEpochSec ];
|
|
679
998
|
}
|
|
680
999
|
|
|
681
|
-
function
|
|
682
|
-
|
|
1000
|
+
function computePeriod(epochSec, periodSec) {
|
|
1001
|
+
const startEpochSec = Math.floor(epochSec / periodSec) * periodSec;
|
|
1002
|
+
return [ startEpochSec, startEpochSec + periodSec ];
|
|
683
1003
|
}
|
|
684
1004
|
|
|
685
|
-
function
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
return n;
|
|
692
|
-
}
|
|
693
|
-
return e;
|
|
1005
|
+
function clampIntlSampleEpochSec(epochSec) {
|
|
1006
|
+
return constrainToRange(epochSec, -1e10, 864e10);
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
function instantToZonedDateTime(instantSlots, timeZone, calendar) {
|
|
1010
|
+
return createZonedEpochNanoSlots(instantSlots.epochNanoseconds, timeZone, calendar);
|
|
694
1011
|
}
|
|
695
1012
|
|
|
696
|
-
function
|
|
697
|
-
|
|
1013
|
+
function plainDateTimeToZonedDateTime(plainDateTimeSlots, timeZone, options) {
|
|
1014
|
+
const epochNano = ((timeZone, isoDateTime, options) => {
|
|
1015
|
+
const epochDisambig = (options => coerceEpochDisambig(normalizeOptions(options)))(options);
|
|
1016
|
+
return getSingleInstantFor(timeZone, isoDateTime, epochDisambig);
|
|
1017
|
+
})(timeZone, plainDateTimeSlots, options);
|
|
1018
|
+
return createZonedEpochNanoSlots(checkEpochNanoInBounds(epochNano), timeZone, plainDateTimeSlots.calendar);
|
|
698
1019
|
}
|
|
699
1020
|
|
|
700
|
-
function
|
|
701
|
-
return
|
|
702
|
-
id: t
|
|
703
|
-
}) : Object.assign(Object.create(n), Of(t));
|
|
1021
|
+
function epochMilliToInstant(epochMilli) {
|
|
1022
|
+
return createEpochNanoSlots(checkEpochNanoInBounds(BigInt(toStrictInteger(epochMilli)) * bigNanoInMilli));
|
|
704
1023
|
}
|
|
705
1024
|
|
|
706
|
-
|
|
707
|
-
|
|
1025
|
+
const PlainDateTimeBranding = "PlainDateTime";
|
|
1026
|
+
|
|
1027
|
+
const ZonedDateTimeBranding = "ZonedDateTime";
|
|
1028
|
+
|
|
1029
|
+
const InstantBranding = "Instant";
|
|
1030
|
+
|
|
1031
|
+
function defineTemporalClass(branding, cls, getSlots, ...getterMaps) {
|
|
1032
|
+
Object.defineProperties(cls, createNameDescriptors(branding)), Object.defineProperties(cls.prototype, createStringTagDescriptors("Temporal." + branding));
|
|
1033
|
+
for (const getterMap of getterMaps) {
|
|
1034
|
+
defineSlotGetters(cls.prototype, getSlots, getterMap);
|
|
1035
|
+
}
|
|
1036
|
+
return cls;
|
|
708
1037
|
}
|
|
709
1038
|
|
|
710
|
-
function
|
|
711
|
-
|
|
1039
|
+
function defineSlotGetters(destPrototype, getSlots, getterMap) {
|
|
1040
|
+
Object.defineProperties(destPrototype, mapProps(getter => ({
|
|
1041
|
+
get() {
|
|
1042
|
+
return getter(getSlots(this));
|
|
1043
|
+
},
|
|
1044
|
+
configurable: 1
|
|
1045
|
+
}), getterMap));
|
|
712
1046
|
}
|
|
713
1047
|
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
1048
|
+
const attachDebugString = "noop" === noop.name ? instance => {
|
|
1049
|
+
Object.defineProperty(instance, "_str_", {
|
|
1050
|
+
value: instance.toJSON()
|
|
1051
|
+
});
|
|
1052
|
+
} : noop;
|
|
1053
|
+
|
|
1054
|
+
function invalidRecordType() {
|
|
1055
|
+
throwTypeError(invalidCallingContext);
|
|
720
1056
|
}
|
|
721
1057
|
|
|
722
|
-
function
|
|
723
|
-
|
|
1058
|
+
function forbiddenValueOf() {
|
|
1059
|
+
throwTypeError(forbiddenValueOf$1);
|
|
724
1060
|
}
|
|
725
1061
|
|
|
726
|
-
const
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
millisecond: 2,
|
|
730
|
-
second: 3,
|
|
731
|
-
minute: 4,
|
|
732
|
-
hour: 5,
|
|
733
|
-
day: 6,
|
|
734
|
-
week: 7,
|
|
735
|
-
month: 8,
|
|
736
|
-
year: 9
|
|
737
|
-
}, Yu = /*@__PURE__*/ Object.keys(Bu), Cu = 864e5, ku = 1e3, ro = 1e3, Ke = 1e6, oo = 1e9, ao = 6e10, no = 36e11, go = 864e11, Zu = [ 1, ro, Ke, oo, ao, no, go ], p = /*@__PURE__*/ Yu.slice(0, 6), l$1 = "iso8601", Xu = "gregory", el = "japanese", nl = {
|
|
738
|
-
[Xu]: {
|
|
739
|
-
"gregory-inverse": -1,
|
|
740
|
-
gregory: 0
|
|
1062
|
+
const dateFieldGetters$1 = {
|
|
1063
|
+
era(slots) {
|
|
1064
|
+
return computeCalendarEraFields(slots.calendar, slots).era;
|
|
741
1065
|
},
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
japanese: 0,
|
|
745
|
-
meiji: 1867,
|
|
746
|
-
taisho: 1911,
|
|
747
|
-
showa: 1925,
|
|
748
|
-
heisei: 1988,
|
|
749
|
-
reiwa: 2018
|
|
1066
|
+
eraYear(slots) {
|
|
1067
|
+
return computeCalendarEraFields(slots.calendar, slots).eraYear;
|
|
750
1068
|
},
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
ethiopic: 5500
|
|
1069
|
+
year(slots) {
|
|
1070
|
+
return computeCalendarDateFields(slots.calendar, slots).year;
|
|
754
1071
|
},
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
coptic: 0
|
|
1072
|
+
month(slots) {
|
|
1073
|
+
return computeCalendarDateFields(slots.calendar, slots).month;
|
|
758
1074
|
},
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
roc: 0
|
|
1075
|
+
monthCode(slots) {
|
|
1076
|
+
return computeCalendarMonthCode(slots.calendar, slots);
|
|
762
1077
|
},
|
|
763
|
-
|
|
764
|
-
|
|
1078
|
+
day(slots) {
|
|
1079
|
+
return computeCalendarDateFields(slots.calendar, slots).day;
|
|
1080
|
+
}
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
const yearMonthDerivedGetters = {
|
|
1084
|
+
daysInMonth(slots) {
|
|
1085
|
+
return computeCalendarDaysInMonth(slots.calendar, slots);
|
|
765
1086
|
},
|
|
766
|
-
|
|
767
|
-
|
|
1087
|
+
daysInYear(slots) {
|
|
1088
|
+
return computeCalendarDaysInYear(slots.calendar, slots);
|
|
768
1089
|
},
|
|
769
|
-
|
|
770
|
-
|
|
1090
|
+
monthsInYear(slots) {
|
|
1091
|
+
return computeCalendarMonthsInYear(slots.calendar, slots);
|
|
771
1092
|
},
|
|
772
|
-
|
|
773
|
-
|
|
1093
|
+
inLeapYear(slots) {
|
|
1094
|
+
return computeCalendarInLeapYear(slots.calendar, slots);
|
|
774
1095
|
}
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
const dateDerivedGetters = {
|
|
1099
|
+
dayOfWeek(slots) {
|
|
1100
|
+
return computeIsoDayOfWeek(slots);
|
|
779
1101
|
},
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
ce: "japanese"
|
|
1102
|
+
dayOfYear(slots) {
|
|
1103
|
+
return computeCalendarDayOfYear(slots.calendar, slots);
|
|
783
1104
|
},
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
era1: "ethiopic"
|
|
1105
|
+
weekOfYear(slots) {
|
|
1106
|
+
return computeCalendarWeekOfYear(slots.calendar, slots);
|
|
787
1107
|
},
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
era1: "coptic"
|
|
1108
|
+
yearOfWeek(slots) {
|
|
1109
|
+
return computeCalendarYearOfWeek(slots.calendar, slots);
|
|
791
1110
|
},
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
1111
|
+
daysInWeek() {
|
|
1112
|
+
return 7;
|
|
1113
|
+
},
|
|
1114
|
+
daysInMonth(slots) {
|
|
1115
|
+
return computeCalendarDaysInMonth(slots.calendar, slots);
|
|
1116
|
+
},
|
|
1117
|
+
daysInYear(slots) {
|
|
1118
|
+
return computeCalendarDaysInYear(slots.calendar, slots);
|
|
1119
|
+
},
|
|
1120
|
+
monthsInYear(slots) {
|
|
1121
|
+
return computeCalendarMonthsInYear(slots.calendar, slots);
|
|
1122
|
+
},
|
|
1123
|
+
inLeapYear(slots) {
|
|
1124
|
+
return computeCalendarInLeapYear(slots.calendar, slots);
|
|
795
1125
|
}
|
|
796
|
-
}
|
|
797
|
-
chinese: 13,
|
|
798
|
-
dangi: 13,
|
|
799
|
-
hebrew: -6
|
|
800
|
-
}, d = /*@__PURE__*/ gt(requireType, "string"), w$1 = [ "isoNanosecond", "isoMicrosecond", "isoMillisecond", "isoSecond", "isoMinute", "isoHour" ], ml = [ "isoDay", "isoMonth", "isoYear" ], pl = /*@__PURE__*/ w$1.concat(ml), hl = /*@__PURE__*/ sortStrings(w$1), Il = /*@__PURE__*/ sortStrings(pl), At = /*@__PURE__*/ Su(hl, 0), Dl = 1e8, gl = Dl * Cu, Tl = [ Dl, 0 ], Ml = [ -Dl, 0 ], yl = 275760, Nl = -271821, en$1 = Intl.DateTimeFormat, vl = 1970, Fl = 12, El = /*@__PURE__*/ isoArgsToEpochMilli(1868, 9, 8), Ol = /*@__PURE__*/ on$1(computeJapaneseEraParts, WeakMap), zl = {
|
|
801
|
-
compatible: 0,
|
|
802
|
-
reject: 1,
|
|
803
|
-
earlier: 2,
|
|
804
|
-
later: 3
|
|
805
|
-
}, Vl = /*@__PURE__*/ gt(refineChoiceOption, "disambiguation", zl), x = "PlainDateTime", _ = "ZonedDateTime", Re = "Instant", nf = "UTC", tf = 5184e3, of = /*@__PURE__*/ isoArgsToEpochSec(1847), rf = /*@__PURE__*/ isoArgsToEpochSec((() => {
|
|
806
|
-
const e = new Date;
|
|
807
|
-
return (0 === e.getTime() ? 2040 : e.getUTCFullYear()) + 10;
|
|
808
|
-
})()), af = /0+$/, he = /*@__PURE__*/ on$1(_zonedEpochSlotsToIso, WeakMap), L = /*@__PURE__*/ on$1((e => {
|
|
809
|
-
const n = getTimeZoneEssence(e);
|
|
810
|
-
return "object" == typeof n ? new IntlTimeZone(n) : new FixedTimeZone(n || 0);
|
|
811
|
-
}));
|
|
1126
|
+
};
|
|
812
1127
|
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
1128
|
+
function createNativeGetters(shimGetters) {
|
|
1129
|
+
return createPropGetters(Object.keys(shimGetters));
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
const timeGetters = /*@__PURE__*/ createNativeGetters(timeGetters$1);
|
|
1133
|
+
|
|
1134
|
+
const dateFieldGetters = /*@__PURE__*/ createNativeGetters(dateFieldGetters$1);
|
|
1135
|
+
|
|
1136
|
+
createNativeGetters(yearMonthDerivedGetters), createNativeGetters(dateDerivedGetters);
|
|
1137
|
+
|
|
1138
|
+
const PlainDateTimeRecordBranding = `${PlainDateTimeBranding}Record`;
|
|
1139
|
+
|
|
1140
|
+
const ZonedDateTimeRecordBranding = `${ZonedDateTimeBranding}Record`;
|
|
1141
|
+
|
|
1142
|
+
const InstantRecordBranding = `${InstantBranding}Record`;
|
|
1143
|
+
|
|
1144
|
+
const calendarMap = /*@__PURE__*/ new WeakMap;
|
|
1145
|
+
|
|
1146
|
+
const instantMap = /*@__PURE__*/ new WeakMap;
|
|
1147
|
+
|
|
1148
|
+
const zonedDateTimeMap = /*@__PURE__*/ new WeakMap;
|
|
1149
|
+
|
|
1150
|
+
const plainDateTimeMap = /*@__PURE__*/ new WeakMap;
|
|
1151
|
+
|
|
1152
|
+
function getCalendarSlots(record) {
|
|
1153
|
+
return getCalendarSlotsIfPresent(record) || invalidRecordType();
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
function getCalendarSlotsIfPresent(record) {
|
|
1157
|
+
return calendarMap.get(record);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
function getInstantSlots(record) {
|
|
1161
|
+
return getInstantSlotsIfPresent(record) || invalidRecordType();
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
function getInstantSlotsIfPresent(record) {
|
|
1165
|
+
return instantMap.get(record);
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
function setInstantSlots(instance, slots) {
|
|
1169
|
+
instantMap.set(instance, slots);
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
function getZonedDateTimeSlots(record) {
|
|
1173
|
+
return getZonedDateTimeSlotsIfPresent(record) || invalidRecordType();
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
function getZonedDateTimeSlotsIfPresent(record) {
|
|
1177
|
+
return zonedDateTimeMap.get(record);
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
function setZonedDateTimeSlots(instance, slots) {
|
|
1181
|
+
zonedDateTimeMap.set(instance, slots);
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
function getPlainDateTimeSlots(record) {
|
|
1185
|
+
return getPlainDateTimeSlotsIfPresent(record) || invalidRecordType();
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
function getPlainDateTimeSlotsIfPresent(record) {
|
|
1189
|
+
return plainDateTimeMap.get(record);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
function setPlainDateTimeSlots(instance, slots) {
|
|
1193
|
+
plainDateTimeMap.set(instance, slots);
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
function getCalendarRecordId(record) {
|
|
1197
|
+
return getCalendarSlots(record).id;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
function getCalendarRecordImplCreator(record) {
|
|
1201
|
+
const getImpl = getCalendarSlots(record).Be;
|
|
1202
|
+
return getImpl || throwRangeError(exoticCalendarRequired(getCalendarRecordId(record), "getExotic or getAny")),
|
|
1203
|
+
getImpl;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
function refineNativeCalendarArgMaybe(calendarRecord) {
|
|
1207
|
+
if (void 0 !== calendarRecord) {
|
|
1208
|
+
return getValidatedCalendarId(calendarRecord);
|
|
816
1209
|
}
|
|
817
|
-
|
|
818
|
-
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
function getValidatedCalendarId(record) {
|
|
1213
|
+
return getCalendarRecordImplCreator(record), getCalendarRecordId(record);
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
const getNativePlainDateTime = getPlainDateTimeSlots;
|
|
1217
|
+
|
|
1218
|
+
const NativePlainDateTimeRecord = /*@__PURE__*/ defineTemporalClass(PlainDateTimeRecordBranding, class {
|
|
1219
|
+
get calendarId() {
|
|
1220
|
+
return getNativePlainDateTime(this).calendarId;
|
|
819
1221
|
}
|
|
820
|
-
|
|
821
|
-
return (
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
});
|
|
826
|
-
if (!n || Math.abs(n[0]) > 1e8) {
|
|
827
|
-
throw new RangeError(Mu);
|
|
828
|
-
}
|
|
829
|
-
})(e), [ isoToEpochNanoWithOffset(e, this.j) ];
|
|
1222
|
+
toJSON() {
|
|
1223
|
+
return getNativePlainDateTime(this).toJSON();
|
|
1224
|
+
}
|
|
1225
|
+
valueOf() {
|
|
1226
|
+
return getNativePlainDateTime(this).valueOf();
|
|
830
1227
|
}
|
|
831
|
-
|
|
1228
|
+
}, getNativePlainDateTime, dateFieldGetters, timeGetters);
|
|
1229
|
+
|
|
1230
|
+
function createNativePlainDateTimeRecord(native) {
|
|
1231
|
+
const instance = Object.create(NativePlainDateTimeRecord.prototype);
|
|
1232
|
+
return setPlainDateTimeSlots(instance, native), attachDebugString(instance), instance;
|
|
832
1233
|
}
|
|
833
1234
|
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
return i;
|
|
848
|
-
}
|
|
849
|
-
const n = on$1(e), t = on$1(createSplitTuple);
|
|
850
|
-
let o = of, r = rf;
|
|
851
|
-
return {
|
|
852
|
-
se(e) {
|
|
853
|
-
const n = getOffsetSec(e - 86400), t = getOffsetSec(e + 86400), o = e - n, r = e - t;
|
|
854
|
-
if (n === t) {
|
|
855
|
-
return [ o ];
|
|
856
|
-
}
|
|
857
|
-
const i = getOffsetSec(o);
|
|
858
|
-
return i === getOffsetSec(r) ? [ e - i ] : n > t ? [ o, r ] : [];
|
|
859
|
-
},
|
|
860
|
-
ue: getOffsetSec,
|
|
861
|
-
l(e, i) {
|
|
862
|
-
const a = clampNumber(e, o, r);
|
|
863
|
-
let [s, c] = computePeriod(a);
|
|
864
|
-
const u = tf * i, l = i < 0 ? () => c > o || (o = a, 0) : () => s < r || (r = a,
|
|
865
|
-
0);
|
|
866
|
-
for (;l(); ) {
|
|
867
|
-
const o = n(s), r = n(c);
|
|
868
|
-
if (o !== r) {
|
|
869
|
-
const n = t(s, c);
|
|
870
|
-
pinch(n, o, r);
|
|
871
|
-
const a = n[0];
|
|
872
|
-
if ((compareNumbers$1(a, e) || 1) === i) {
|
|
873
|
-
return a;
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
s += u, c += u;
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
};
|
|
880
|
-
})((e => n => {
|
|
881
|
-
const t = hashIntlFormatParts(e, n * ku);
|
|
882
|
-
return isoArgsToEpochSec(parseIntlPartsYear(t), parseInt(t.month), parseInt(t.day), parseInt(t.hour), parseInt(t.minute), parseInt(t.second)) - n;
|
|
883
|
-
})(e));
|
|
1235
|
+
function create$5$1(isoYear, isoMonth, isoDay, hour, minute, second, millisecond, microsecond, nanosecond, calendar) {
|
|
1236
|
+
return createNativePlainDateTimeRecord(new NativeTemporal.PlainDateTime(isoYear, isoMonth, isoDay, hour, minute, second, millisecond, microsecond, nanosecond, refineNativeCalendarArgMaybe(calendar)));
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
function toZonedDateTime$1$1(record, timeZoneId, options) {
|
|
1240
|
+
return createNativeZonedDateTimeRecord(getNativePlainDateTime(record).toZonedDateTime(timeZoneId, options));
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
const getNativeZonedDateTime = getZonedDateTimeSlots;
|
|
1244
|
+
|
|
1245
|
+
const NativeZonedDateTimeRecord = /*@__PURE__*/ defineTemporalClass(ZonedDateTimeRecordBranding, class {
|
|
1246
|
+
get calendarId() {
|
|
1247
|
+
return getNativeZonedDateTime(this).calendarId;
|
|
884
1248
|
}
|
|
885
|
-
|
|
886
|
-
return this.
|
|
1249
|
+
get timeZoneId() {
|
|
1250
|
+
return getNativeZonedDateTime(this).timeZoneId;
|
|
887
1251
|
}
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
var o;
|
|
891
|
-
return this.ae.se(n).map((e => io(Ta(Ge(e, oo), t))));
|
|
1252
|
+
get epochMilliseconds() {
|
|
1253
|
+
return getNativeZonedDateTime(this).epochMilliseconds;
|
|
892
1254
|
}
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
1255
|
+
get epochNanoseconds() {
|
|
1256
|
+
return getNativeZonedDateTime(this).epochNanoseconds;
|
|
1257
|
+
}
|
|
1258
|
+
toJSON() {
|
|
1259
|
+
return getNativeZonedDateTime(this).toJSON();
|
|
1260
|
+
}
|
|
1261
|
+
valueOf() {
|
|
1262
|
+
return getNativeZonedDateTime(this).valueOf();
|
|
898
1263
|
}
|
|
1264
|
+
}, getNativeZonedDateTime, dateFieldGetters, timeGetters);
|
|
1265
|
+
|
|
1266
|
+
function createNativeZonedDateTimeRecord(native) {
|
|
1267
|
+
const instance = Object.create(NativeZonedDateTimeRecord.prototype);
|
|
1268
|
+
return setZonedDateTimeSlots(instance, native), attachDebugString(instance), instance;
|
|
899
1269
|
}
|
|
900
1270
|
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
})
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
function toZonedDateTimeISO(e, n) {
|
|
931
|
-
return Je(e, Me(n));
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
function computeDateFields(e) {
|
|
935
|
-
const n = ra(e.calendar), [t, a, o] = n.u(e), [r, s] = n.$(e), [i, c] = n.m(t, a);
|
|
936
|
-
return {
|
|
937
|
-
era: r,
|
|
938
|
-
eraYear: s,
|
|
939
|
-
year: t,
|
|
940
|
-
monthCode: sa(i, c),
|
|
941
|
-
month: a,
|
|
942
|
-
day: o
|
|
943
|
-
};
|
|
1271
|
+
function offsetNanoseconds$2(record) {
|
|
1272
|
+
return getNativeZonedDateTime(record).offsetNanoseconds;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
const getNativeInstant = getInstantSlots;
|
|
1276
|
+
|
|
1277
|
+
const NativeInstantRecord = /*@__PURE__*/ defineTemporalClass(InstantRecordBranding, class {
|
|
1278
|
+
get epochMilliseconds() {
|
|
1279
|
+
return getNativeInstant(this).epochMilliseconds;
|
|
1280
|
+
}
|
|
1281
|
+
get epochNanoseconds() {
|
|
1282
|
+
return getNativeInstant(this).epochNanoseconds;
|
|
1283
|
+
}
|
|
1284
|
+
toJSON() {
|
|
1285
|
+
return getNativeInstant(this).toJSON();
|
|
1286
|
+
}
|
|
1287
|
+
valueOf() {
|
|
1288
|
+
return getNativeInstant(this).valueOf();
|
|
1289
|
+
}
|
|
1290
|
+
});
|
|
1291
|
+
|
|
1292
|
+
function createNativeInstantRecord(native) {
|
|
1293
|
+
const instance = Object.create(NativeInstantRecord.prototype);
|
|
1294
|
+
return setInstantSlots(instance, native), attachDebugString(instance), instance;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
function fromEpochMilliseconds$2(epochMilliseconds) {
|
|
1298
|
+
return createNativeInstantRecord(NativeTemporal.Instant.fromEpochMilliseconds(epochMilliseconds));
|
|
944
1299
|
}
|
|
945
1300
|
|
|
946
|
-
function
|
|
947
|
-
return
|
|
1301
|
+
function toZonedDateTimeISO$2(record, timeZoneId) {
|
|
1302
|
+
return createNativeZonedDateTimeRecord(getNativeInstant(record).toZonedDateTimeISO(timeZoneId));
|
|
948
1303
|
}
|
|
949
1304
|
|
|
950
|
-
|
|
951
|
-
|
|
1305
|
+
function refineShimCalendarArgMaybe(calendarRecord) {
|
|
1306
|
+
return void 0 === calendarRecord ? isoCalendarImpl : getCalendarRecordImpl(calendarRecord);
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
function getCalendarRecordImpl(record) {
|
|
1310
|
+
return getCalendarRecordImplCreator(record)();
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
const getShimPlainDateTimeSlots = getPlainDateTimeSlots;
|
|
1314
|
+
|
|
1315
|
+
const ShimPlainDateTimeRecord = /*@__PURE__*/ defineTemporalClass(PlainDateTimeRecordBranding, class {
|
|
1316
|
+
get calendarId() {
|
|
1317
|
+
return getCalendarSlotId(getShimPlainDateTimeSlots(this).calendar);
|
|
1318
|
+
}
|
|
1319
|
+
toJSON() {
|
|
1320
|
+
return formatDateTimeIsoAuto(getShimPlainDateTimeSlots(this));
|
|
1321
|
+
}
|
|
1322
|
+
valueOf() {
|
|
1323
|
+
return forbiddenValueOf();
|
|
1324
|
+
}
|
|
1325
|
+
}, getShimPlainDateTimeSlots, dateFieldGetters$1, timeGetters$1);
|
|
1326
|
+
|
|
1327
|
+
function createShimPlainDateTimeRecord(slots) {
|
|
1328
|
+
const instance = Object.create(ShimPlainDateTimeRecord.prototype);
|
|
1329
|
+
return setPlainDateTimeSlots(instance, slots), attachDebugString(instance), instance;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
function create$5(isoYear, isoMonth, isoDay, hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0, calendar) {
|
|
1333
|
+
const fields = checkIsoDateTimeInBounds(validateIsoDateTimeFields(mapProps(toIntegerWithTrunc, {
|
|
1334
|
+
year: isoYear,
|
|
1335
|
+
month: isoMonth,
|
|
1336
|
+
day: isoDay,
|
|
1337
|
+
hour: hour,
|
|
1338
|
+
minute: minute,
|
|
1339
|
+
second: second,
|
|
1340
|
+
millisecond: millisecond,
|
|
1341
|
+
microsecond: microsecond,
|
|
1342
|
+
nanosecond: nanosecond
|
|
1343
|
+
})));
|
|
1344
|
+
const calendarImpl = refineShimCalendarArgMaybe(calendar);
|
|
1345
|
+
return createShimPlainDateTimeRecord(createDateTimeSlots(fields, calendarImpl));
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
function toZonedDateTime$1(record, timeZoneId, options) {
|
|
1349
|
+
return createShimZonedDateTimeRecord(plainDateTimeToZonedDateTime(getShimPlainDateTimeSlots(record), queryTimeZone(refineTimeZoneId(timeZoneId)), options));
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
const getShimZonedDateTimeSlots = getZonedDateTimeSlots;
|
|
1353
|
+
|
|
1354
|
+
const ShimZonedDateTimeRecord = /*@__PURE__*/ defineTemporalClass(ZonedDateTimeRecordBranding, class {
|
|
1355
|
+
get calendarId() {
|
|
1356
|
+
return getCalendarSlotId(getShimZonedDateTimeSlots(this).calendar);
|
|
1357
|
+
}
|
|
1358
|
+
get timeZoneId() {
|
|
1359
|
+
return getShimZonedDateTimeSlots(this).timeZone.id;
|
|
1360
|
+
}
|
|
1361
|
+
get epochMilliseconds() {
|
|
1362
|
+
return getEpochMilli(getShimZonedDateTimeSlots(this));
|
|
1363
|
+
}
|
|
1364
|
+
get epochNanoseconds() {
|
|
1365
|
+
return getEpochNano(getShimZonedDateTimeSlots(this));
|
|
1366
|
+
}
|
|
1367
|
+
toJSON() {
|
|
1368
|
+
return formatZonedDateTimeIsoAuto(getShimZonedDateTimeSlots(this));
|
|
1369
|
+
}
|
|
1370
|
+
valueOf() {
|
|
1371
|
+
return forbiddenValueOf();
|
|
1372
|
+
}
|
|
1373
|
+
}, getShimZonedDateTimeIsoSlots, dateFieldGetters$1, timeGetters$1);
|
|
1374
|
+
|
|
1375
|
+
function createShimZonedDateTimeRecord(slots) {
|
|
1376
|
+
const instance = Object.create(ShimZonedDateTimeRecord.prototype);
|
|
1377
|
+
return setZonedDateTimeSlots(instance, slots), attachDebugString(instance), instance;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
function getShimZonedDateTimeIsoSlots(record) {
|
|
1381
|
+
const slots = getShimZonedDateTimeSlots(record);
|
|
952
1382
|
return {
|
|
953
|
-
...
|
|
954
|
-
|
|
955
|
-
offset: t
|
|
1383
|
+
...zonedEpochSlotsToIso(slots),
|
|
1384
|
+
calendar: slots.calendar
|
|
956
1385
|
};
|
|
957
|
-
}
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
function offsetNanoseconds$1(record) {
|
|
1389
|
+
return zonedEpochSlotsToIso(getShimZonedDateTimeSlots(record)).offsetNanoseconds;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
const getShimInstantSlots = getInstantSlots;
|
|
1393
|
+
|
|
1394
|
+
const ShimInstantRecord = /*@__PURE__*/ defineTemporalClass(InstantRecordBranding, class {
|
|
1395
|
+
get epochMilliseconds() {
|
|
1396
|
+
return getEpochMilli(getShimInstantSlots(this));
|
|
1397
|
+
}
|
|
1398
|
+
get epochNanoseconds() {
|
|
1399
|
+
return getEpochNano(getShimInstantSlots(this));
|
|
1400
|
+
}
|
|
1401
|
+
toJSON() {
|
|
1402
|
+
return formatInstantIsoAuto(getShimInstantSlots(this));
|
|
1403
|
+
}
|
|
1404
|
+
valueOf() {
|
|
1405
|
+
return forbiddenValueOf();
|
|
1406
|
+
}
|
|
1407
|
+
});
|
|
1408
|
+
|
|
1409
|
+
function createShimInstantRecord(slots) {
|
|
1410
|
+
const instance = Object.create(ShimInstantRecord.prototype);
|
|
1411
|
+
return setInstantSlots(instance, slots), attachDebugString(instance), instance;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
function fromEpochMilliseconds$1(epochMilliseconds) {
|
|
1415
|
+
return createShimInstantRecord(epochMilliToInstant(epochMilliseconds));
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
function toZonedDateTimeISO$1(record, timeZoneId) {
|
|
1419
|
+
return createShimZonedDateTimeRecord(instantToZonedDateTime(getShimInstantSlots(record), queryTimeZone(refineTimeZoneId(timeZoneId))));
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
const offsetNanoseconds = NativeTemporal ? offsetNanoseconds$2 : offsetNanoseconds$1;
|
|
1423
|
+
|
|
1424
|
+
const create = NativeTemporal ? create$5$1 : create$5;
|
|
1425
|
+
|
|
1426
|
+
const toZonedDateTime = NativeTemporal ? toZonedDateTime$1$1 : toZonedDateTime$1;
|
|
1427
|
+
|
|
1428
|
+
const fromEpochMilliseconds = NativeTemporal ? fromEpochMilliseconds$2 : fromEpochMilliseconds$1;
|
|
1429
|
+
|
|
1430
|
+
const toZonedDateTimeISO = NativeTemporal ? toZonedDateTimeISO$2 : toZonedDateTimeISO$1;
|
|
1431
|
+
|
|
958
1432
|
// Adding
|
|
959
1433
|
function addWeeks(m, n) {
|
|
960
1434
|
let a = dateToUtcArray(m);
|
|
@@ -1770,9 +2244,9 @@ var FullCalendar = (function (exports) {
|
|
|
1770
2244
|
if (this.timeZone === 'UTC') {
|
|
1771
2245
|
return new Date(ms);
|
|
1772
2246
|
}
|
|
1773
|
-
const
|
|
2247
|
+
const zdt = toZonedDateTimeISO(fromEpochMilliseconds(ms), this.timeZone);
|
|
1774
2248
|
return new Date(// a "Date Marker", which is like PlainDateTime
|
|
1775
|
-
Date.UTC(
|
|
2249
|
+
Date.UTC(zdt.year, zdt.month - 1, zdt.day, zdt.hour, zdt.minute, zdt.second, zdt.millisecond));
|
|
1776
2250
|
}
|
|
1777
2251
|
offsetForMarker(m) {
|
|
1778
2252
|
if (this.timeZone === 'local') {
|
|
@@ -1781,7 +2255,7 @@ var FullCalendar = (function (exports) {
|
|
|
1781
2255
|
if (this.timeZone === 'UTC') {
|
|
1782
2256
|
return 0;
|
|
1783
2257
|
}
|
|
1784
|
-
return offsetNanoseconds(
|
|
2258
|
+
return offsetNanoseconds(toZonedDateTime(create(m.getUTCFullYear(), m.getUTCMonth() + 1, m.getUTCDate(), m.getUTCHours(), m.getUTCMinutes(), m.getUTCSeconds(), m.getUTCMilliseconds()), this.timeZone)) / (1000000000 * 60);
|
|
1785
2259
|
}
|
|
1786
2260
|
// Conversion
|
|
1787
2261
|
toDate(m) {
|
|
@@ -1791,7 +2265,7 @@ var FullCalendar = (function (exports) {
|
|
|
1791
2265
|
if (this.timeZone === 'UTC') {
|
|
1792
2266
|
return new Date(m.valueOf()); // make sure it's a copy
|
|
1793
2267
|
}
|
|
1794
|
-
return new Date(
|
|
2268
|
+
return new Date(toZonedDateTime(create(m.getUTCFullYear(), m.getUTCMonth() + 1, m.getUTCDate(), m.getUTCHours(), m.getUTCMinutes(), m.getUTCSeconds(), m.getUTCMilliseconds()), this.timeZone).epochMilliseconds);
|
|
1795
2269
|
}
|
|
1796
2270
|
}
|
|
1797
2271
|
|
|
@@ -2059,7 +2533,7 @@ var FullCalendar = (function (exports) {
|
|
|
2059
2533
|
}
|
|
2060
2534
|
}
|
|
2061
2535
|
|
|
2062
|
-
var classNames = {"popoverZ":"fc-
|
|
2536
|
+
var classNames = {"popoverZ":"fc-tF","isolate":"fc-5w","borderBoxRoot":"fc-Mg","notAllowed":"fc-Q9","noScrollbars":"fc-xd","noShrink":"fc-Zo","calendarScreenRoot":"fc-Yo","safeTiles":"fc-G6","calendarPrintRoot":"fc-me","cursorPointer":"fc-lv","cursorResizeT":"fc-vR","cursorResizeB":"fc-ni","cursorResizeS":"fc-8S","cursorResizeE":"fc-yU","cursorColResizer":"fc-ey","hit":"fc-6F","hitX":"fc-zw","hitY":"fc-Pi","hitXSkinny":"fc-86","selectNone":"fc-xR","invisible":"fc-yw","borderNone":"fc-Y7","borderOnlyT":"fc-5B","borderOnlyB":"fc-6q","borderOnlyS":"fc-Zb","borderOnlyE":"fc-Xy","borderlessX":"fc-HY","borderlessY":"fc-YK","fakeBorderS":"fc-kv","flexRow":"fc-Qr","flexCol":"fc-s3","grow":"fc-Uk","liquid":"fc-uD","minHeight0":"fc-7B","liquidX":"fc-rr","printRoot":"fc-zi","printHeader":"fc-t1","noPadding":"fc-eX","noMargin":"fc-xn","noMarginY":"fc-Mz","noMarginX":"fc-jK","whiteSpaceNoWrap":"fc-Jx","whiteSpacePre":"fc-Fz","overflowAnchorNone":"fc-1Z","crop":"fc-iG","cropNowrap":"fc-rW","rel":"fc-Uv","abs":"fc-TZ","start0":"fc-7N","fill":"fc-Y3","fillTop":"fc-6T","fillX":"fc-al","fillY":"fc-7m","fillStart":"fc-4v","sticky":"fc-HK","stickyT":"fc-zZ","stickyS":"fc-YA","tableHeaderSticky":"fc-iU","contentBox":"fc-Qk","offscreen":"fc-Et","alignCenter":"fc-o5","alignStart":"fc-n1","alignEnd":"fc-Wl","footerScrollbarSticky":"fc-My","footerScrollbar":"fc-43","breakInsideAvoid":"fc-FH","printSiblingRow":"fc-uJ","z0":"fc-LD","z1":"fc-xs","focusZ2":"fc-Gz","internalTimelineSlot":"fc-sH","internalEvent":"fc-0m","internalEventMirror":"fc-uc","internalEventDraggable":"fc-rA","internalEventSelected":"fc-Vs","internalEventResizable":"fc-Ds","internalEventResizer":"fc-Xj","internalEventResizerStart":"fc-fA","internalEventResizerEnd":"fc-xp","internalBgEvent":"fc-Ji","internalMoreLink":"fc-N2","internalNavLink":"fc-fI","internalPopover":"fc-1g","internalView":"fc-ca","internalScroller":"fc-7a"};
|
|
2063
2537
|
|
|
2064
2538
|
function joinClassNames(...args) {
|
|
2065
2539
|
return args.filter(Boolean).join(' ');
|
|
@@ -5075,9 +5549,9 @@ var FullCalendar = (function (exports) {
|
|
|
5075
5549
|
},
|
|
5076
5550
|
];
|
|
5077
5551
|
|
|
5078
|
-
var r,u,i,f=[],c=l$
|
|
5552
|
+
var r,u,i,f=[],c=l$2,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,s=c.__;function j$1(){for(var n;n=f.shift();){var t=n.__H;if(n.__P&&t)try{t.__h.some(z),t.__h.some(B$1),t.__h=[];}catch(r){t.__h=[],c.__e(r,n.__v);}}}c.__b=function(n){r=null,e&&e(n);},c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),s&&s(n,t);},c.__r=function(n){a&&a(n);var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0;})):(i.__h.some(z),i.__h.some(B$1),i.__h=[],0)),u=r;},c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===c.requestAnimationFrame||((i=c.requestAnimationFrame)||w)(j$1)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0;})),u=r=null;},c.__c=function(n,t){t.some(function(n){try{n.__h.some(z),n.__h=n.__h.filter(function(n){return !n.__||B$1(n)});}catch(r){t.some(function(n){n.__h&&(n.__h=[]);}),t=[],c.__e(r,n.__v);}}),l&&l(n,t);},c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.some(function(n){try{z(n);}catch(n){t=n;}}),r.__H=void 0,t&&c.__e(t,r.__v));};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,35);k&&(t=requestAnimationFrame(r));}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function B$1(n){var t=r;n.__c=n.__(),r=t;}
|
|
5079
5553
|
|
|
5080
|
-
function g(n,t){for(var e in t)n[e]=t[e];return n}function E(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function M(n,t){this.props=n,this.context=t;}(M.prototype=new C).isPureReactComponent=!0,M.prototype.shouldComponentUpdate=function(n,t){return E(this.props,n)||E(this.state,t)};var T=l$
|
|
5554
|
+
function g(n,t){for(var e in t)n[e]=t[e];return n}function E(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function M(n,t){this.props=n,this.context=t;}(M.prototype=new C).isPureReactComponent=!0,M.prototype.shouldComponentUpdate=function(n,t){return E(this.props,n)||E(this.state,t)};var T=l$2.__b;l$2.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),T&&T(n);};var O=l$2.__e;l$2.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);O(n,t,e,r);};var U=l$2.unmount;function V(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c.__e=!0,n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return V(n,t,e)})),n}function W(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return W(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function P(){this.__u=0,this.o=null,this.__b=null;}function j(n){var t=n.__&&n.__.__c;return t&&t.__a&&t.__a(n)}function B(){this.i=null,this.l=null;}l$2.unmount=function(n){var t=n.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),U&&U(n);},(P.prototype=new C).__c=function(n,t){var e=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(e);var u=j(r.__v),o=!1,i=function(){o||r.__z||(o=!0,e.__R=null,u?u(c):c());};e.__R=i;var l=e.__P;e.__P=null;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=W(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=l,t.forceUpdate();}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},P.prototype.componentWillUnmount=function(){this.o=[];},P.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=V(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&k$1(S,null,n.fallback);return i&&(i.__u&=-33),[k$1(S,null,e.__a?null:n.children),i]};var H=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.i=e=e[2];}};function Z(n){return this.getChildContext=function(){return n.context},n.children}function Y(n){var e=this,r=n.h;if(e.componentWillUnmount=function(){R(null,e.v),e.v=null,e.h=null;},e.h&&e.h!==r&&e.componentWillUnmount(),!e.v){for(var u=e.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:u.__m},contains:function(){return !0},namespaceURI:r.namespaceURI,insertBefore:function(n,t){this.childNodes.push(n),e.h.insertBefore(n,t);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.h.removeChild(n);}};}R(k$1(Z,{context:e.context},n.__v),e.v);}function $(n,e){var r=k$1(Y,{__v:n,h:e});return r.containerInfo=e,r}(B.prototype=new C).__a=function(n){var t=this,e=j(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),H(t,n,r)):u();};e?e(o):o();}},B.prototype.render=function(n){this.i=null,this.l=new Map;var t=F(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){H(n,e,t);});};var q="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,G=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,J=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,K=/[A-Z0-9]/g,Q="undefined"!=typeof document,X=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function nn(n,t,e){return null==t.__k&&(t.textContent=""),R(n,t),"function"==typeof e&&e(),n?n.__c:null}C.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(C.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var en=l$2.event;l$2.event=function(n){return en&&(n=en(n)),n.persist=function(){},n.isPropagationStopped=function(){return this.cancelBubble},n.isDefaultPrevented=function(){return this.defaultPrevented},n.nativeEvent=n};var un={configurable:!0,get:function(){return this.class}},on=l$2.vnode;l$2.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1==e.indexOf("-");for(var i in t){var l=t[i];if(!("value"===i&&"defaultValue"in t&&null==l||Q&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var c=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===l?l="":"translate"===c&&"no"===l?l=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?i="ondblclick":"onchange"!==c||"input"!==e&&"textarea"!==e||X(t.type)?"onfocus"===c?i="onfocusin":"onblur"===c?i="onfocusout":J.test(i)&&(i=c):c=i="oninput":o&&G.test(i)?i=i.replace(K,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===c&&u[i=c]&&(i="oninputCapture"),u[i]=l;}}"select"==e&&(u.multiple&&Array.isArray(u.value)&&(u.value=F(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),null!=u.defaultValue&&(u.value=F(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;}))),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",un)):t.className&&(u.class=u.className=t.className),n.props=u;}(n),n.$$typeof=q,on&&on(n);};var ln=l$2.__r;l$2.__r=function(n){ln&&ln(n),n.__c;};var cn=l$2.diffed;l$2.diffed=function(n){cn&&cn(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value);};function hn(n){return !!n&&n.$$typeof===q}function pn(n){return !!n.__k&&(R(null,n),!0)}var bn=function(n,t){var r=l$2.debounceRendering;l$2.debounceRendering=function(n){return n()};var u=n(t);return l$2.debounceRendering=r,u};
|
|
5081
5555
|
|
|
5082
5556
|
function memoize(workerFunc, resEquality, teardownFunc) {
|
|
5083
5557
|
let currentArgs;
|
|
@@ -5120,7 +5594,7 @@ var FullCalendar = (function (exports) {
|
|
|
5120
5594
|
};
|
|
5121
5595
|
}
|
|
5122
5596
|
|
|
5123
|
-
const ViewContextType = X$
|
|
5597
|
+
const ViewContextType = X$1({}); // for Components
|
|
5124
5598
|
function buildViewContext(viewSpec, viewApi, viewOptions, dateProfileGenerator, dateEnv, nowManager, pluginHooks, dispatch, getCurrentData, emitter, calendarApi, baseId, registerInteractiveComponent, unregisterInteractiveComponent) {
|
|
5125
5599
|
return {
|
|
5126
5600
|
dateEnv,
|
|
@@ -5315,7 +5789,7 @@ var FullCalendar = (function (exports) {
|
|
|
5315
5789
|
return attrs;
|
|
5316
5790
|
}
|
|
5317
5791
|
|
|
5318
|
-
const RenderId = X$
|
|
5792
|
+
const RenderId = X$1(0);
|
|
5319
5793
|
|
|
5320
5794
|
class ContentContainer extends C {
|
|
5321
5795
|
constructor() {
|
|
@@ -6338,7 +6812,7 @@ var FullCalendar = (function (exports) {
|
|
|
6338
6812
|
TODO: converge with ViewContainer
|
|
6339
6813
|
*/
|
|
6340
6814
|
function createViewHookComponent(contentGenerator) {
|
|
6341
|
-
return (viewProps) => (u$
|
|
6815
|
+
return (viewProps) => (u$1(ViewContextType.Consumer, { children: (context) => {
|
|
6342
6816
|
const { options, viewSpec } = context;
|
|
6343
6817
|
const renderProps = {
|
|
6344
6818
|
// the "extra" props, for sliceEvents...
|
|
@@ -6350,7 +6824,7 @@ var FullCalendar = (function (exports) {
|
|
|
6350
6824
|
isHeightAuto: getIsHeightAuto(options),
|
|
6351
6825
|
view: context.viewApi,
|
|
6352
6826
|
};
|
|
6353
|
-
return (u$
|
|
6827
|
+
return (u$1(ContentContainer, { tag: "div", className: joinClassNames(generateClassName(options.viewClass, renderProps),
|
|
6354
6828
|
// WORKAROUND for way calendar's className would get merged into view's className
|
|
6355
6829
|
generateClassName(viewSpec.optionDefaults.class, renderProps), generateClassName(viewSpec.optionDefaults.className, renderProps), generateClassName(viewSpec.optionOverrides.class, renderProps), generateClassName(viewSpec.optionOverrides.className, renderProps)), renderProps: renderProps, generatorName: undefined, customGenerator: contentGenerator, didMount: options.didMount || options.viewDidMount, willUnmount: options.willUnmount || options.viewWillUnmount }));
|
|
6356
6830
|
} }));
|
|
@@ -7773,10 +8247,10 @@ var FullCalendar = (function (exports) {
|
|
|
7773
8247
|
const { contentGenerator, className } = this.props;
|
|
7774
8248
|
if (contentGenerator) {
|
|
7775
8249
|
// TODO: somehow give className to the svg?
|
|
7776
|
-
return (u$
|
|
8250
|
+
return (u$1(ContentContainer, { tag: 'span', style: { display: 'contents' }, attrs: { 'aria-hidden': true }, renderProps: {}, generatorName: undefined, customGenerator: contentGenerator }));
|
|
7777
8251
|
}
|
|
7778
8252
|
if (className !== undefined) {
|
|
7779
|
-
return (u$
|
|
8253
|
+
return (u$1("span", { "aria-hidden": true, className: className }));
|
|
7780
8254
|
}
|
|
7781
8255
|
}
|
|
7782
8256
|
}
|
|
@@ -7808,10 +8282,10 @@ var FullCalendar = (function (exports) {
|
|
|
7808
8282
|
for (let widget of widgetGroup) {
|
|
7809
8283
|
let { name, customElement, buttonHint } = widget;
|
|
7810
8284
|
if (name === 'title') {
|
|
7811
|
-
children.push(u$
|
|
8285
|
+
children.push(u$1("div", { role: 'heading', "aria-level": options.headingLevel, id: props.titleId, className: joinClassNames(options.toolbarTitleClass), children: props.title }));
|
|
7812
8286
|
}
|
|
7813
8287
|
else if (customElement) {
|
|
7814
|
-
children.push(u$
|
|
8288
|
+
children.push(u$1(ContentContainer, { tag: 'span', style: { display: 'contents' }, renderProps: {}, generatorName: undefined, customGenerator: customElement }));
|
|
7815
8289
|
}
|
|
7816
8290
|
else {
|
|
7817
8291
|
let isSelected = name === props.selectedButton;
|
|
@@ -7826,7 +8300,7 @@ var FullCalendar = (function (exports) {
|
|
|
7826
8300
|
}
|
|
7827
8301
|
let iconNode;
|
|
7828
8302
|
if (buttonDisplay !== 'text') {
|
|
7829
|
-
iconNode = (u$
|
|
8303
|
+
iconNode = (u$1(ButtonIcon, { className: widget.buttonIconClass, contentGenerator: widget.buttonIconContent }));
|
|
7830
8304
|
}
|
|
7831
8305
|
let inGroup = widgetGroup.length > 1 && isOnlyButtons;
|
|
7832
8306
|
let buttonGroup = inGroup ? { hasSelection: isOnlyView } : null;
|
|
@@ -7839,7 +8313,7 @@ var FullCalendar = (function (exports) {
|
|
|
7839
8313
|
isIconOnly: buttonDisplay === 'icon',
|
|
7840
8314
|
buttonGroup,
|
|
7841
8315
|
};
|
|
7842
|
-
children.push(u$
|
|
8316
|
+
children.push(u$1(ContentContainer, { tag: 'button', attrs: {
|
|
7843
8317
|
type: 'button',
|
|
7844
8318
|
disabled: isDisabled,
|
|
7845
8319
|
...((isOnlyButtons && isOnlyView)
|
|
@@ -7854,8 +8328,8 @@ var FullCalendar = (function (exports) {
|
|
|
7854
8328
|
: buttonDisplay === 'icon'
|
|
7855
8329
|
? iconNode
|
|
7856
8330
|
: buttonDisplay === 'icon-text'
|
|
7857
|
-
? (u$
|
|
7858
|
-
: (u$
|
|
8331
|
+
? (u$1(S, { children: [iconNode, widget.buttonText] }))
|
|
8332
|
+
: (u$1(S, { children: [widget.buttonText, iconNode] })) // text-icon
|
|
7859
8333
|
) }));
|
|
7860
8334
|
}
|
|
7861
8335
|
}
|
|
@@ -7877,11 +8351,11 @@ var FullCalendar = (function (exports) {
|
|
|
7877
8351
|
let { sectionWidgets } = props.model;
|
|
7878
8352
|
const { borderlessX, borderlessTop, borderlessBottom } = computeViewBorderless(options);
|
|
7879
8353
|
const toolbarClassOption = props.isHeader ? options.headerToolbarClass : options.footerToolbarClass;
|
|
7880
|
-
return (u$
|
|
8354
|
+
return (u$1("div", { className: joinClassNames(generateClassName(toolbarClassOption, { borderlessX, borderlessTop, borderlessBottom }), generateClassName(options.toolbarClass, { borderlessX, borderlessTop, borderlessBottom })), children: [this.renderSection('start', sectionWidgets.start), this.renderSection('center', sectionWidgets.center), this.renderSection('end', sectionWidgets.end)] }));
|
|
7881
8355
|
}
|
|
7882
8356
|
renderSection(name, widgetGroups) {
|
|
7883
8357
|
let { props } = this;
|
|
7884
|
-
return (u$
|
|
8358
|
+
return (u$1(ToolbarSection, { name: name, widgetGroups: widgetGroups, title: props.title, titleId: props.titleId, navUnit: props.navUnit, selectedButton: props.selectedButton, isTodayEnabled: props.isTodayEnabled, isPrevEnabled: props.isPrevEnabled, isNextEnabled: props.isNextEnabled }, name));
|
|
7885
8359
|
}
|
|
7886
8360
|
}
|
|
7887
8361
|
|
|
@@ -8008,7 +8482,7 @@ var FullCalendar = (function (exports) {
|
|
|
8008
8482
|
viewAspectRatio = Math.max(options.aspectRatio, 0.5); // prevent from getting too tall
|
|
8009
8483
|
}
|
|
8010
8484
|
let viewContext = this.buildViewContext(props.viewSpec, props.viewApi, props.options, props.dateProfileGenerator, props.dateEnv, props.nowManager, props.pluginHooks, props.dispatch, props.getCurrentData, props.emitter, props.calendarApi, props.baseId, this.registerInteractiveComponent, this.unregisterInteractiveComponent);
|
|
8011
|
-
return (u$
|
|
8485
|
+
return (u$1(ViewContextType.Provider, { value: viewContext, children: [toolbarConfig.header && (u$1(Toolbar, { model: toolbarConfig.header, isHeader: true, titleId: this.viewTitleId, ...props.toolbarProps })), u$1("div", { className: joinClassNames(classNames.flexCol, classNames.rel,
|
|
8012
8486
|
// prevents browsers' "scroll anchoring behavior", which cause scroll thrashing
|
|
8013
8487
|
// when clicking "Next" for month-view, because rows would flex-grow while other rows
|
|
8014
8488
|
// temporarily removed. This behavior probably universally unhelpful for our uses,
|
|
@@ -8019,7 +8493,7 @@ var FullCalendar = (function (exports) {
|
|
|
8019
8493
|
classNames.minHeight0, viewHeightLiquid && classNames.liquid), style: {
|
|
8020
8494
|
height: viewHeight,
|
|
8021
8495
|
aspectRatio: viewAspectRatio != null ? String(viewAspectRatio) : undefined,
|
|
8022
|
-
}, children: [this.renderView(joinClassNames((viewHeightLiquid || viewHeight) && classNames.liquid, viewAspectRatio != null && classNames.fill, classNames.internalView)), this.buildAppendContent()] }), toolbarConfig.footer && (u$
|
|
8496
|
+
}, children: [this.renderView(joinClassNames((viewHeightLiquid || viewHeight) && classNames.liquid, viewAspectRatio != null && classNames.fill, classNames.internalView)), this.buildAppendContent()] }), toolbarConfig.footer && (u$1(Toolbar, { model: toolbarConfig.footer, isHeader: false, ...props.toolbarProps }))] }));
|
|
8023
8497
|
}
|
|
8024
8498
|
renderView(className) {
|
|
8025
8499
|
const { props } = this;
|
|
@@ -8048,11 +8522,11 @@ var FullCalendar = (function (exports) {
|
|
|
8048
8522
|
Object.assign(viewProps, transformer.transform(viewProps, contentProps));
|
|
8049
8523
|
}
|
|
8050
8524
|
let ViewComponent = viewSpec.component;
|
|
8051
|
-
return (u$
|
|
8525
|
+
return (u$1(ViewComponent, { ...viewProps }));
|
|
8052
8526
|
}
|
|
8053
8527
|
buildAppendContent() {
|
|
8054
8528
|
const { props } = this;
|
|
8055
|
-
return (u$
|
|
8529
|
+
return (u$1(S, { children: props.pluginHooks.viewContainerAppends.map((buildAppendContent, i) => (u$1(S, { children: buildAppendContent(props) }, i))) }));
|
|
8056
8530
|
}
|
|
8057
8531
|
// BE AWARE React StrictMode might execute this twice
|
|
8058
8532
|
componentDidMount() {
|
|
@@ -8485,7 +8959,7 @@ var FullCalendar = (function (exports) {
|
|
|
8485
8959
|
isHeightAuto: getIsHeightAuto(options),
|
|
8486
8960
|
viewApi: context.viewApi,
|
|
8487
8961
|
});
|
|
8488
|
-
return (u$
|
|
8962
|
+
return (u$1(ContentContainer, { elRef: props.elRef, tag: props.tag || 'div', attrs: props.attrs, style: props.style, className: joinClassNames(props.className, generateClassName(options.viewClass, renderProps),
|
|
8489
8963
|
// WORKAROUND for way calendar's className would get merged into view's className
|
|
8490
8964
|
generateClassName(viewSpec.optionDefaults.class, renderProps), generateClassName(viewSpec.optionDefaults.className, renderProps), generateClassName(viewSpec.optionOverrides.class, renderProps), generateClassName(viewSpec.optionOverrides.className, renderProps)), renderProps: renderProps, generatorName: undefined, didMount: options.didMount || options.viewDidMount, willUnmount: options.willUnmount || options.viewWillUnmount, children: () => props.children }));
|
|
8491
8965
|
}
|
|
@@ -8787,12 +9261,12 @@ var FullCalendar = (function (exports) {
|
|
|
8787
9261
|
// if there's only one axis that needs scrolling, the other axis will unintentionally have
|
|
8788
9262
|
// scrollbars too if we don't force to 'hidden'
|
|
8789
9263
|
const fallbackOverflow = (props.horizontal || props.vertical) ? 'hidden' : '';
|
|
8790
|
-
return (u$
|
|
9264
|
+
return (u$1("div", { ref: this.handleEl, className: joinClassNames(props.className, classNames.noPadding, classNames.rel, // for children fillTop/fillStart
|
|
8791
9265
|
props.hideScrollbars && classNames.noScrollbars, classNames.internalScroller), style: {
|
|
8792
9266
|
...props.style,
|
|
8793
9267
|
overflowX: (props.horizontal ? 'auto' : fallbackOverflow),
|
|
8794
9268
|
overflowY: (props.vertical ? 'auto' : fallbackOverflow),
|
|
8795
|
-
}, children: [props.children, Boolean(props.clientWidthRef) && (u$
|
|
9269
|
+
}, children: [props.children, Boolean(props.clientWidthRef) && (u$1("div", { ref: this.handleHRuler, className: classNames.fillTop })), Boolean(props.clientHeightRef || props.bottomScrollbarWidthRef) && (u$1("div", { ref: this.handleVRuler, className: classNames.fillStart }))] }));
|
|
8796
9270
|
}
|
|
8797
9271
|
endScroll() {
|
|
8798
9272
|
this.listener.endScroll();
|
|
@@ -8971,7 +9445,7 @@ var FullCalendar = (function (exports) {
|
|
|
8971
9445
|
const innerClassName = joinClassNames(generateClassName(options.eventInnerClass, renderProps), isBlock && generateClassName(options.blockEventInnerClass, renderProps), props.display === 'row' && generateClassName(options.rowEventInnerClass, renderProps), props.display === 'column' && generateClassName(options.columnEventInnerClass, renderProps), props.display === 'list-item' && generateClassName(options.listItemEventInnerClass, renderProps), !props.disableLiquid && classNames.liquid);
|
|
8972
9446
|
const beforeContent = props.display === 'row' && options.rowEventBeforeContent;
|
|
8973
9447
|
const afterContent = props.display === 'row' && options.rowEventAfterContent;
|
|
8974
|
-
return (u$
|
|
9448
|
+
return (u$1(ContentContainer, { tag: tag, attrs: {
|
|
8975
9449
|
...props.attrs,
|
|
8976
9450
|
...attrs,
|
|
8977
9451
|
// HACK because this event-element gets attached to root during some dragging
|
|
@@ -8979,17 +9453,17 @@ var FullCalendar = (function (exports) {
|
|
|
8979
9453
|
}, className: outerClassName, style: {
|
|
8980
9454
|
'--fc-event-color': renderProps.color,
|
|
8981
9455
|
'--fc-event-contrast-color': renderProps.contrastColor,
|
|
8982
|
-
}, elRef: this.handleEl, renderProps: renderProps, generatorName: "eventContent", customGenerator: options.eventContent, defaultGenerator: renderInnerContent$2, classNameGenerator: options.eventClass, didMount: options.eventDidMount, willUnmount: options.eventWillUnmount, children: (InnerContent) => (u$
|
|
9456
|
+
}, elRef: this.handleEl, renderProps: renderProps, generatorName: "eventContent", customGenerator: options.eventContent, defaultGenerator: renderInnerContent$2, classNameGenerator: options.eventClass, didMount: options.eventDidMount, willUnmount: options.eventWillUnmount, children: (InnerContent) => (u$1(S, { children: [Boolean(renderProps.isSelected && isBlock) && (u$1("div", { className: props.display === 'column'
|
|
8983
9457
|
? classNames.hitX
|
|
8984
|
-
: classNames.hitY })), (beforeClassName || beforeContent) && (u$
|
|
9458
|
+
: classNames.hitY })), (beforeClassName || beforeContent) && (u$1("div", { className: joinClassNames(beforeClassName, !props.disableZindexes && classNames.z1, renderProps.isStartResizable && joinClassNames(props.display === 'column'
|
|
8985
9459
|
? classNames.cursorResizeT
|
|
8986
9460
|
: classNames.cursorResizeS,
|
|
8987
9461
|
// these classnames required for dnd
|
|
8988
|
-
classNames.internalEventResizer, classNames.internalEventResizerStart)), children: [beforeContent && (u$
|
|
9462
|
+
classNames.internalEventResizer, classNames.internalEventResizerStart)), children: [beforeContent && (u$1(ContentContainer, { tag: 'div', style: { display: 'contents' }, attrs: { 'aria-hidden': true }, renderProps: renderProps, generatorName: undefined, customGenerator: beforeContent })), Boolean(renderProps.isStartResizable && renderProps.isSelected) && (u$1("div", { className: classNames.hit }))] })), u$1(InnerContent, { tag: "div", className: joinClassNames(innerClassName, !props.disableZindexes && classNames.z0) }), (afterClassName || afterContent) && (u$1("div", { className: joinClassNames(afterClassName, !props.disableZindexes && classNames.z1, renderProps.isEndResizable && joinClassNames(props.display === 'column'
|
|
8989
9463
|
? classNames.cursorResizeB
|
|
8990
9464
|
: classNames.cursorResizeE,
|
|
8991
9465
|
// these classnames required for dnd
|
|
8992
|
-
classNames.internalEventResizer, classNames.internalEventResizerEnd)), children: [afterContent && (u$
|
|
9466
|
+
classNames.internalEventResizer, classNames.internalEventResizerEnd)), children: [afterContent && (u$1(ContentContainer, { tag: 'div', style: { display: 'contents' }, attrs: { 'aria-hidden': true }, renderProps: renderProps, generatorName: undefined, customGenerator: afterContent })), Boolean(renderProps.isEndResizable && renderProps.isSelected) && (u$1("div", { className: classNames.hit }))] }))] })) }));
|
|
8993
9467
|
}
|
|
8994
9468
|
componentDidUpdate(prevProps) {
|
|
8995
9469
|
if (this.el && this.props.eventRange !== prevProps.eventRange) {
|
|
@@ -9001,7 +9475,7 @@ var FullCalendar = (function (exports) {
|
|
|
9001
9475
|
seg: isPropsEqualShallow,
|
|
9002
9476
|
});
|
|
9003
9477
|
function renderInnerContent$2(innerProps) {
|
|
9004
|
-
return (u$
|
|
9478
|
+
return (u$1(S, { children: [innerProps.timeText && (u$1("div", { className: innerProps.timeClass, children: innerProps.timeText })), u$1("div", { className: innerProps.titleClass, children: innerProps.event.title || u$1(S, { children: "\u00A0" }) })] }));
|
|
9005
9479
|
}
|
|
9006
9480
|
|
|
9007
9481
|
class Slicer {
|
|
@@ -9321,7 +9795,7 @@ var FullCalendar = (function (exports) {
|
|
|
9321
9795
|
this.elRef = M$1();
|
|
9322
9796
|
}
|
|
9323
9797
|
render() {
|
|
9324
|
-
return (u$
|
|
9798
|
+
return (u$1("div", { ref: this.elRef }));
|
|
9325
9799
|
}
|
|
9326
9800
|
componentDidMount() {
|
|
9327
9801
|
this._isUnmounting = false;
|
|
@@ -9450,10 +9924,10 @@ var FullCalendar = (function (exports) {
|
|
|
9450
9924
|
// does not include backgroundEventClass.. added below
|
|
9451
9925
|
const outerClassName = joinClassNames(eventUi.className, classNames.fill, classNames.internalEvent, classNames.internalBgEvent, props.isVertical ? classNames.flexCol : classNames.flexRow);
|
|
9452
9926
|
const innerClassName = joinClassNames(generateClassName(options.backgroundEventInnerClass, renderProps), classNames.liquid);
|
|
9453
|
-
return (u$
|
|
9927
|
+
return (u$1(ContentContainer, { tag: 'div', className: outerClassName, style: {
|
|
9454
9928
|
'--fc-event-color': renderProps.color,
|
|
9455
9929
|
'--fc-event-contrast-color': renderProps.contrastColor,
|
|
9456
|
-
}, defaultGenerator: renderInnerContent$1, elRef: this.handleEl, renderProps: renderProps, generatorName: "backgroundEventContent", customGenerator: options.backgroundEventContent, classNameGenerator: options.backgroundEventClass, didMount: options.backgroundEventDidMount, willUnmount: options.backgroundEventWillUnmount, children: (InnerContent) => (u$
|
|
9930
|
+
}, defaultGenerator: renderInnerContent$1, elRef: this.handleEl, renderProps: renderProps, generatorName: "backgroundEventContent", customGenerator: options.backgroundEventContent, classNameGenerator: options.backgroundEventClass, didMount: options.backgroundEventDidMount, willUnmount: options.backgroundEventWillUnmount, children: (InnerContent) => (u$1(InnerContent, { tag: 'div', className: innerClassName })) }));
|
|
9457
9931
|
}
|
|
9458
9932
|
componentDidUpdate(prevProps) {
|
|
9459
9933
|
if (this.el && this.props.eventRange !== prevProps.eventRange) {
|
|
@@ -9463,12 +9937,12 @@ var FullCalendar = (function (exports) {
|
|
|
9463
9937
|
}
|
|
9464
9938
|
function renderInnerContent$1(props) {
|
|
9465
9939
|
let { title } = props.event;
|
|
9466
|
-
return title && (u$
|
|
9940
|
+
return title && (u$1("div", { className: props.titleClass, children: props.event.title }));
|
|
9467
9941
|
}
|
|
9468
9942
|
// Other types of fills
|
|
9469
9943
|
// -------------------------------------------------------------------------------------------------
|
|
9470
9944
|
function renderFill(fillType, options) {
|
|
9471
|
-
return (u$
|
|
9945
|
+
return (u$1("div", { className: joinClassNames(fillType === 'non-business' ? options.nonBusinessHoursClass :
|
|
9472
9946
|
fillType === 'highlight' ? options.highlightClass : undefined, classNames.fill) }));
|
|
9473
9947
|
}
|
|
9474
9948
|
|
|
@@ -9561,22 +10035,22 @@ var FullCalendar = (function (exports) {
|
|
|
9561
10035
|
? dayHeaderAlign({ level: 0, inPopover: true, isNarrow: false })
|
|
9562
10036
|
: dayHeaderAlign;
|
|
9563
10037
|
const isRtl = computeElIsRtl(props.alignEl);
|
|
9564
|
-
return $(u$
|
|
10038
|
+
return $(u$1("div", { "data-date": fullDateStr, id: props.id, role: 'dialog', "aria-labelledby": props.titleId, className: joinClassNames(options.popoverClass, classNames.flexCol, classNames.popoverZ, classNames.abs, classNames.borderBoxRoot, classNames.internalPopover), style: {
|
|
9565
10039
|
// positioning is mutated directly in updateSize, HOWEVER, we don't want popover to start
|
|
9566
10040
|
// low on screen because might cause unnecessary scrollbars
|
|
9567
10041
|
top: 0,
|
|
9568
10042
|
left: 0,
|
|
9569
10043
|
},
|
|
9570
10044
|
// HACK because of portal
|
|
9571
|
-
dir: isRtl ? 'rtl' : undefined, "data-color-scheme": options.colorScheme || undefined, ref: this.handleRootEl, children: [u$
|
|
10045
|
+
dir: isRtl ? 'rtl' : undefined, "data-color-scheme": options.colorScheme || undefined, ref: this.handleRootEl, children: [u$1("div", { tabIndex: 0, style: { outline: 'none' }, ref: this.focusStartRef }), u$1("div", { className: joinClassNames(generateClassName(options.dayHeaderClass, dayHeaderRenderProps), classNames.flexCol, classNames.borderOnlyB, align === 'center' ? classNames.alignCenter :
|
|
9572
10046
|
align === 'end' ? classNames.alignEnd :
|
|
9573
|
-
classNames.alignStart), children: [u$
|
|
10047
|
+
classNames.alignStart), children: [u$1("div", { children: u$1(ContentContainer, { tag: "div", attrs: {
|
|
9574
10048
|
id: props.titleId,
|
|
9575
10049
|
// NOTE: more-popover never has nav-links
|
|
9576
|
-
}, generatorName: "dayHeaderContent", renderProps: dayHeaderRenderProps, customGenerator: options.dayHeaderContent, defaultGenerator: renderText, classNameGenerator: options.dayHeaderInnerClass, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }) }), u$
|
|
10050
|
+
}, generatorName: "dayHeaderContent", renderProps: dayHeaderRenderProps, customGenerator: options.dayHeaderContent, defaultGenerator: renderText, classNameGenerator: options.dayHeaderInnerClass, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }) }), u$1(ContentContainer, { tag: 'button', attrs: {
|
|
9577
10051
|
'aria-label': options.closeHint,
|
|
9578
10052
|
...createAriaClickAttrs(this.handleClose)
|
|
9579
|
-
}, elRef: this.closeRef, className: joinClassNames(options.popoverCloseClass, classNames.flexRow, classNames.cursorPointer), renderProps: {}, customGenerator: options.popoverCloseContent, generatorName: 'popoverCloseContent' })] }), u$
|
|
10053
|
+
}, elRef: this.closeRef, className: joinClassNames(options.popoverCloseClass, classNames.flexRow, classNames.cursorPointer), renderProps: {}, customGenerator: options.popoverCloseContent, generatorName: 'popoverCloseContent' })] }), u$1("div", { className: joinClassNames(generateClassName(options.dayCellClass, dayCellRenderProps), classNames.flexCol, classNames.borderNone), children: u$1("div", { className: generateClassName(options.dayCellInnerClass, dayCellRenderProps), children: props.children }) }), u$1("div", { tabIndex: 0, style: { outline: 'none' }, ref: this.focusEndRef })] }), getAppendableRoot(props.alignEl));
|
|
9580
10054
|
}
|
|
9581
10055
|
queryHit(isRtl, positionLeft, positionTop, elWidth, elHeight) {
|
|
9582
10056
|
let { rootEl, props } = this;
|
|
@@ -9755,7 +10229,7 @@ var FullCalendar = (function (exports) {
|
|
|
9755
10229
|
}
|
|
9756
10230
|
render() {
|
|
9757
10231
|
let { props, state } = this;
|
|
9758
|
-
return (u$
|
|
10232
|
+
return (u$1(ViewContextType.Consumer, { children: (context) => {
|
|
9759
10233
|
let { viewApi, options, calendarApi, baseId } = context;
|
|
9760
10234
|
let { moreLinkText } = options;
|
|
9761
10235
|
let moreCnt = props.hiddenSegs.length;
|
|
@@ -9774,7 +10248,7 @@ var FullCalendar = (function (exports) {
|
|
|
9774
10248
|
isNarrow: props.isNarrow,
|
|
9775
10249
|
view: viewApi,
|
|
9776
10250
|
};
|
|
9777
|
-
return (u$
|
|
10251
|
+
return (u$1(S, { children: [Boolean(moreCnt) && (u$1(ContentContainer, { tag: 'div', elRef: this.handleLinkEl, className: joinClassNames(generateClassName(// will added to moreLinkClass
|
|
9778
10252
|
props.display === 'row'
|
|
9779
10253
|
? options.rowMoreLinkClass // row
|
|
9780
10254
|
: options.columnMoreLinkClass, // column
|
|
@@ -9788,12 +10262,12 @@ var FullCalendar = (function (exports) {
|
|
|
9788
10262
|
'aria-haspopup': 'dialog',
|
|
9789
10263
|
'aria-expanded': state.isPopoverOpen,
|
|
9790
10264
|
'aria-controls': state.isPopoverOpen ? popoverId : undefined,
|
|
9791
|
-
}, renderProps: renderProps, generatorName: "moreLinkContent", customGenerator: options.moreLinkContent, defaultGenerator: renderMoreLinkText, classNameGenerator: options.moreLinkClass, didMount: options.moreLinkDidMount, willUnmount: options.moreLinkWillUnmount, children: (InnerContent) => (u$
|
|
10265
|
+
}, renderProps: renderProps, generatorName: "moreLinkContent", customGenerator: options.moreLinkContent, defaultGenerator: renderMoreLinkText, classNameGenerator: options.moreLinkClass, didMount: options.moreLinkDidMount, willUnmount: options.moreLinkWillUnmount, children: (InnerContent) => (u$1(InnerContent, { tag: 'div', className: joinClassNames(generateClassName(options.moreLinkInnerClass, renderProps), generateClassName(props.display === 'row'
|
|
9792
10266
|
? options.rowMoreLinkInnerClass // row
|
|
9793
10267
|
: options.columnMoreLinkInnerClass, // column
|
|
9794
10268
|
renderProps), props.display === 'row'
|
|
9795
10269
|
? classNames.stickyS
|
|
9796
|
-
: classNames.stickyT) })) })), state.isPopoverOpen && (u$
|
|
10270
|
+
: classNames.stickyT) })) })), state.isPopoverOpen && (u$1(MorePopover, { id: popoverId, titleId: popoverId + '-title', startDate: range.start, endDate: range.end, dateProfile: props.dateProfile, todayRange: props.todayRange, dateSpanProps: props.dateSpanProps, alignEl: props.alignElRef ?
|
|
9797
10271
|
props.alignElRef.current :
|
|
9798
10272
|
this.linkEl, alignParentTop: props.alignParentTop, forceTimed: props.forceTimed, onClose: this.handlePopoverClose, children: props.popoverContent() }))] }));
|
|
9799
10273
|
} }));
|
|
@@ -9834,15 +10308,15 @@ var FullCalendar = (function (exports) {
|
|
|
9834
10308
|
class DayGridMoreLink extends BaseComponent {
|
|
9835
10309
|
render() {
|
|
9836
10310
|
let { props } = this;
|
|
9837
|
-
return (u$
|
|
10311
|
+
return (u$1(MoreLinkContainer, { display: 'row', className: props.className, isNarrow: props.isNarrow, isMicro: props.isMicro, dateProfile: props.dateProfile, todayRange: props.todayRange, allDayDate: props.allDayDate, segs: props.segs, hiddenSegs: props.hiddenSegs, alignElRef: props.alignElRef, alignParentTop: props.alignParentTop, dateSpanProps: props.dateSpanProps, popoverContent: () => (u$1(S, { children: props.segs.map((seg) => {
|
|
9838
10312
|
let { eventRange } = seg;
|
|
9839
10313
|
let { instanceId } = eventRange.instance;
|
|
9840
10314
|
let isDragging = Boolean(props.eventDrag && props.eventDrag.affectedInstances[instanceId]);
|
|
9841
10315
|
let isResizing = Boolean(props.eventResize && props.eventResize.affectedInstances[instanceId]);
|
|
9842
10316
|
let isInvisible = isDragging || isResizing;
|
|
9843
|
-
return (u$
|
|
10317
|
+
return (u$1("div", { style: {
|
|
9844
10318
|
visibility: isInvisible ? 'hidden' : undefined,
|
|
9845
|
-
}, children: u$
|
|
10319
|
+
}, children: u$1(StandardEvent, { display: hasListItemDisplay(seg) ? 'list-item' : 'row', eventRange: eventRange, isStart: seg.isStart, isEnd: seg.isEnd, isDragging: isDragging, isResizing: isResizing, isMirror: false, isSelected: instanceId === props.eventSelection, defaultTimeFormat: DEFAULT_TABLE_EVENT_TIME_FORMAT, defaultDisplayEventEnd: false, ...getEventRangeMeta(eventRange, props.todayRange) }) }, instanceId));
|
|
9846
10320
|
}) })) }));
|
|
9847
10321
|
}
|
|
9848
10322
|
}
|
|
@@ -9907,12 +10381,12 @@ var FullCalendar = (function (exports) {
|
|
|
9907
10381
|
businessHours: Boolean(options.businessHours),
|
|
9908
10382
|
});
|
|
9909
10383
|
if (dateMeta.isDisabled) {
|
|
9910
|
-
return (u$
|
|
10384
|
+
return (u$1("div", { role: 'gridcell', "aria-disabled": true, className: joinClassNames(generateClassName(options.dayCellClass, renderProps), props.className, baseClassName), style: {
|
|
9911
10385
|
width: props.width
|
|
9912
10386
|
} }));
|
|
9913
10387
|
}
|
|
9914
10388
|
const fullDateStr = buildDateStr(context, props.date);
|
|
9915
|
-
return (u$
|
|
10389
|
+
return (u$1(ContentContainer, { tag: "div", elRef: this.rootElRef, className: joinClassNames(props.className, baseClassName), attrs: {
|
|
9916
10390
|
...props.attrs,
|
|
9917
10391
|
role: 'gridcell',
|
|
9918
10392
|
'aria-label': fullDateStr,
|
|
@@ -9921,14 +10395,14 @@ var FullCalendar = (function (exports) {
|
|
|
9921
10395
|
}, style: {
|
|
9922
10396
|
width: props.width,
|
|
9923
10397
|
}, renderProps: renderProps, generatorName: "dayCellTopContent" // !!! for top
|
|
9924
|
-
, customGenerator: options.dayCellTopContent /* !!! for top */, defaultGenerator: renderTopInner, classNameGenerator: options.dayCellClass, didMount: options.dayCellDidMount, willUnmount: options.dayCellWillUnmount, children: (InnerContent) => (u$
|
|
9925
|
-
generateClassName(options.dayCellTopClass, renderProps)), children: props.showDayNumber && (u$
|
|
10398
|
+
, customGenerator: options.dayCellTopContent /* !!! for top */, defaultGenerator: renderTopInner, classNameGenerator: options.dayCellClass, didMount: options.dayCellDidMount, willUnmount: options.dayCellWillUnmount, children: (InnerContent) => (u$1(S, { children: [u$1("div", { className: joinClassNames(classNames.rel, // puts it above bg-fills, which are positioned on TOP of this component :|
|
|
10399
|
+
generateClassName(options.dayCellTopClass, renderProps)), children: props.showDayNumber && (u$1(InnerContent // the dayCellTopContent
|
|
9926
10400
|
, { tag: 'div', attrs: hasNavLink
|
|
9927
10401
|
? buildNavLinkAttrs(context, props.date, undefined, fullDateStr)
|
|
9928
10402
|
: { 'aria-hidden': true } // label already on cell
|
|
9929
|
-
, className: generateClassName(options.dayCellTopInnerClass, renderProps) })) }), u$
|
|
10403
|
+
, className: generateClassName(options.dayCellTopInnerClass, renderProps) })) }), u$1("div", { className: joinClassNames(classNames.flexCol, props.fgLiquidHeight ? classNames.liquid : classNames.grow), ref: this.handleBodyEl, children: [u$1("div", { className: generateClassName(options.dayCellInnerClass, renderProps), style: { minHeight: props.fgHeight }, children: props.fg }), u$1(DayGridMoreLink, { className: classNames.rel, allDayDate: props.date, segs: props.segs, hiddenSegs: props.hiddenSegs, alignElRef: this.rootElRef, alignParentTop: props.showDayNumber
|
|
9930
10404
|
? '[role=row]'
|
|
9931
|
-
: `.${classNames.internalView}`, dateSpanProps: props.dateSpanProps, dateProfile: props.dateProfile, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, todayRange: props.todayRange, isNarrow: props.isNarrow, isMicro: props.isMicro })] }), u$
|
|
10405
|
+
: `.${classNames.internalView}`, dateSpanProps: props.dateSpanProps, dateProfile: props.dateProfile, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, todayRange: props.todayRange, isNarrow: props.isNarrow, isMicro: props.isMicro })] }), u$1("div", { className: joinClassNames(classNames.rel, // puts it above bg-fills
|
|
9932
10406
|
generateClassName(options.dayCellBottomClass, renderProps)) })] })) }));
|
|
9933
10407
|
}
|
|
9934
10408
|
componentDidMount() {
|
|
@@ -9941,7 +10415,7 @@ var FullCalendar = (function (exports) {
|
|
|
9941
10415
|
// Utils
|
|
9942
10416
|
// -------------------------------------------------------------------------------------------------
|
|
9943
10417
|
function renderTopInner(props) {
|
|
9944
|
-
return props.text || u$
|
|
10418
|
+
return props.text || u$1(S, { children: "\u00A0" }); // TODO: DRY?
|
|
9945
10419
|
}
|
|
9946
10420
|
function shouldDisplayMonthStart(date, currentRange, dateEnv) {
|
|
9947
10421
|
const { start: currentStart, end: currentEnd } = currentRange;
|
|
@@ -10624,7 +11098,7 @@ var FullCalendar = (function (exports) {
|
|
|
10624
11098
|
}
|
|
10625
11099
|
render() {
|
|
10626
11100
|
const { props } = this;
|
|
10627
|
-
return (u$
|
|
11101
|
+
return (u$1("div", { className: joinClassNames(props.className, classNames.abs), style: props.style, ref: this.rootElRef, children: props.children }));
|
|
10628
11102
|
}
|
|
10629
11103
|
componentDidMount() {
|
|
10630
11104
|
this._isUnmounting = false;
|
|
@@ -10702,14 +11176,14 @@ var FullCalendar = (function (exports) {
|
|
|
10702
11176
|
const hasNavLink = options.navLinks;
|
|
10703
11177
|
const fullWeekStr = buildDateStr(context, weekDateMarker, 'week');
|
|
10704
11178
|
const weekNumberRenderProps = this.buildWeekNumberRenderProps(weekDateMarker, context, props.cellIsNarrow, hasNavLink);
|
|
10705
|
-
return (u$
|
|
11179
|
+
return (u$1("div", { role: props.role /* !!! */, "aria-label": props.role === 'row' // HACK
|
|
10706
11180
|
? fullWeekStr
|
|
10707
11181
|
: undefined // can't have label on non-role div
|
|
10708
11182
|
, className: joinClassNames(options.dayRowClass, props.className, classNames.flexRow, classNames.rel, // origin for inlineWeekNumber?
|
|
10709
11183
|
classNames.isolate, (props.forPrint && props.basis !== undefined) && // basis implies siblings (must share height)
|
|
10710
11184
|
classNames.printSiblingRow), style: {
|
|
10711
11185
|
flexBasis: props.basis,
|
|
10712
|
-
}, ref: this.handleRootEl, children: [(props.showWeekNumbers && !props.cellIsMicro) && (u$
|
|
11186
|
+
}, ref: this.handleRootEl, children: [(props.showWeekNumbers && !props.cellIsMicro) && (u$1(ContentContainer, { tag: 'div', attrs: {
|
|
10713
11187
|
...(hasNavLink
|
|
10714
11188
|
? buildNavLinkAttrs(context, weekDateMarker, 'week', fullWeekStr, /* isTabbable = */ false)
|
|
10715
11189
|
: {}),
|
|
@@ -10720,9 +11194,9 @@ var FullCalendar = (function (exports) {
|
|
|
10720
11194
|
className: classNames.z1, renderProps: weekNumberRenderProps, generatorName: "inlineWeekNumberContent", customGenerator: options.inlineWeekNumberContent, defaultGenerator: renderText$1, classNameGenerator: options.inlineWeekNumberClass, didMount: options.inlineWeekNumberDidMount, willUnmount: options.inlineWeekNumberWillUnmount })), this.renderFillSegs(props.businessHourSegs, 'non-business'), this.renderFillSegs(props.bgEventSegs, 'bg-event'), this.renderFillSegs(highlightSegs, 'highlight'), props.cells.map((cell, col) => {
|
|
10721
11195
|
const normalFgNodes = this.renderFgSegs(maxMainTop, renderableSegsByCol[col], segTops, props.todayRange,
|
|
10722
11196
|
/* isMirror = */ false);
|
|
10723
|
-
return (u$
|
|
11197
|
+
return (u$1(DayGridCell, { dateProfile: props.dateProfile, todayRange: props.todayRange, date: cell.date, isMajor: cell.isMajor, showDayNumber: props.showDayNumbers, isNarrow: props.cellIsNarrow, isMicro: props.cellIsMicro, borderStart: Boolean(col),
|
|
10724
11198
|
// content
|
|
10725
|
-
segs: segsByCol[col], hiddenSegs: hiddenSegsByCol[col], fgLiquidHeight: fgLiquidHeight, fg: (u$
|
|
11199
|
+
segs: segsByCol[col], hiddenSegs: hiddenSegsByCol[col], fgLiquidHeight: fgLiquidHeight, fg: (u$1(S, { children: normalFgNodes })), eventDrag: props.eventDrag, eventResize: props.eventResize, eventSelection: props.eventSelection,
|
|
10726
11200
|
// render hooks
|
|
10727
11201
|
renderProps: cell.renderProps, dateSpanProps: cell.dateSpanProps, attrs: cell.attrs, className: cell.className,
|
|
10728
11202
|
// dimensions
|
|
@@ -10755,7 +11229,7 @@ var FullCalendar = (function (exports) {
|
|
|
10755
11229
|
const isInvisible = !isMirror && (isDragging || isResizing || standinFor || top == null);
|
|
10756
11230
|
const isListItem = hasListItemDisplay(seg);
|
|
10757
11231
|
const isSelected = instanceId === eventSelection;
|
|
10758
|
-
nodes.push(u$
|
|
11232
|
+
nodes.push(u$1(DayGridEventHarness, { className: seg.start ? classNames.fakeBorderS : '', style: {
|
|
10759
11233
|
visibility: isInvisible ? 'hidden' : undefined,
|
|
10760
11234
|
top,
|
|
10761
11235
|
insetInlineStart,
|
|
@@ -10763,7 +11237,7 @@ var FullCalendar = (function (exports) {
|
|
|
10763
11237
|
zIndex: isSelected ? 1000 : 0, // container inner z-indexes; HACK: relies on hardcoded z-index offset; fragile if stacking context changes
|
|
10764
11238
|
}, heightRef: (!standinFor && !isMirror)
|
|
10765
11239
|
? segHeightRefMap.createRef(key)
|
|
10766
|
-
: null, children: u$
|
|
11240
|
+
: null, children: u$1(StandardEvent, { display: isListItem ? 'list-item' : 'row', eventRange: eventRange, isStart: seg.isStart, isEnd: seg.isEnd, isDragging: isDragging, isResizing: isResizing, isMirror: isMirror, isSelected: isSelected, isNarrow: props.cellIsNarrow, defaultTimeFormat: DEFAULT_TABLE_EVENT_TIME_FORMAT, defaultDisplayEventEnd: defaultDisplayEventEnd, disableResizing: isListItem, forcedTimeText: cellIsMicro ? '' : undefined, ...getEventRangeMeta(eventRange, todayRange) }) }, key));
|
|
10767
11241
|
}
|
|
10768
11242
|
return nodes;
|
|
10769
11243
|
}
|
|
@@ -10776,14 +11250,14 @@ var FullCalendar = (function (exports) {
|
|
|
10776
11250
|
const key = seg.start + ':' + seg.end; // NOTE: don't use date, because could be multiple of same (w/ resources)
|
|
10777
11251
|
const { insetInlineStart, insetInlineEnd } = computeHorizontalsFromSeg(seg, colWidth, colCount);
|
|
10778
11252
|
const isVisible = !seg.standinFor;
|
|
10779
|
-
nodes.push(u$
|
|
11253
|
+
nodes.push(u$1("div", { className: classNames.fillY, style: {
|
|
10780
11254
|
visibility: (isVisible ? '' : 'hidden'),
|
|
10781
11255
|
insetInlineStart,
|
|
10782
11256
|
insetInlineEnd,
|
|
10783
11257
|
}, children: fillType === 'bg-event' ?
|
|
10784
|
-
u$
|
|
11258
|
+
u$1(BgEvent, { eventRange: seg.eventRange, isStart: seg.isStart, isEnd: seg.isEnd, isNarrow: props.cellIsNarrow, isVertical: false, ...getEventRangeMeta(seg.eventRange, todayRange) }) : (renderFill(fillType, context.options)) }, key));
|
|
10785
11259
|
}
|
|
10786
|
-
return u$
|
|
11260
|
+
return u$1(S, { children: nodes });
|
|
10787
11261
|
}
|
|
10788
11262
|
// Sizing
|
|
10789
11263
|
// -----------------------------------------------------------------------------------------------
|
|
@@ -10899,7 +11373,10 @@ var FullCalendar = (function (exports) {
|
|
|
10899
11373
|
render() {
|
|
10900
11374
|
let { props, context, rowHeightRefMap } = this;
|
|
10901
11375
|
let { options } = context;
|
|
10902
|
-
let
|
|
11376
|
+
let { cellRows } = props;
|
|
11377
|
+
let rowCount = cellRows.length;
|
|
11378
|
+
// Will cause rows to not be reused across months
|
|
11379
|
+
let firstCellKey = cellRows[0]?.[0]?.key || '';
|
|
10903
11380
|
let fgEventSegsByRow = this.splitFgEventSegs(props.fgEventSegs, rowCount);
|
|
10904
11381
|
let bgEventSegsByRow = this.splitBgEventSegs(props.bgEventSegs, rowCount);
|
|
10905
11382
|
let businessHourSegsByRow = this.splitBusinessHourSegs(props.businessHourSegs, rowCount);
|
|
@@ -10909,10 +11386,10 @@ var FullCalendar = (function (exports) {
|
|
|
10909
11386
|
let isHeightAuto = getIsHeightAuto(options);
|
|
10910
11387
|
let rowHeightsRedistribute = !props.forPrint && !isHeightAuto;
|
|
10911
11388
|
let rowBasis = computeRowBasis(props.visibleWidth, rowCount, isHeightAuto, options);
|
|
10912
|
-
return (u$
|
|
11389
|
+
return (u$1("div", { role: 'rowgroup', className: joinClassNames(props.className,
|
|
10913
11390
|
// HACK for Safari. Can't do break-inside:avoid with flexbox items, likely b/c it's not standard:
|
|
10914
11391
|
// https://stackoverflow.com/a/60256345
|
|
10915
|
-
!props.forPrint && classNames.flexCol), style: { width: props.width }, ref: this.handleRootEl, children:
|
|
11392
|
+
!props.forPrint && classNames.flexCol), style: { width: props.width }, ref: this.handleRootEl, children: cellRows.map((cells, row) => (u$1(DayGridRow, { role: 'row', dateProfile: props.dateProfile, todayRange: props.todayRange, cells: cells, cellIsNarrow: props.cellIsNarrow, cellIsMicro: props.cellIsMicro, showDayNumbers: rowCount > 1, showWeekNumbers: rowCount > 1 && options.weekNumbers, forPrint: props.forPrint,
|
|
10916
11393
|
// if not auto-height, distribute height of container somewhat evently to rows
|
|
10917
11394
|
className: joinClassNames(rowHeightsRedistribute && classNames.grow, rowCount > 1 && classNames.breakInsideAvoid, // don't avoid breaks for single tall row
|
|
10918
11395
|
row < rowCount - 1 ? classNames.borderOnlyB : classNames.borderNone),
|
|
@@ -10921,7 +11398,7 @@ var FullCalendar = (function (exports) {
|
|
|
10921
11398
|
// dimensions
|
|
10922
11399
|
colWidth: props.colWidth, basis: rowBasis,
|
|
10923
11400
|
// refs
|
|
10924
|
-
heightRef: rowHeightRefMap.createRef(cells[0].key) }, cells[0].key))) }));
|
|
11401
|
+
heightRef: rowHeightRefMap.createRef(cells[0].key) }, firstCellKey + ':' + cells[0].key))) }));
|
|
10925
11402
|
}
|
|
10926
11403
|
// Hit System
|
|
10927
11404
|
// -----------------------------------------------------------------------------------------------
|
|
@@ -11047,7 +11524,7 @@ var FullCalendar = (function (exports) {
|
|
|
11047
11524
|
typeof stickyInput === 'string') ? stickyInput : 0;
|
|
11048
11525
|
}
|
|
11049
11526
|
}
|
|
11050
|
-
return (u$
|
|
11527
|
+
return (u$1(ContentContainer, { tag: 'div', attrs: {
|
|
11051
11528
|
role: 'columnheader',
|
|
11052
11529
|
'aria-colspan': dataConfig.colSpan,
|
|
11053
11530
|
...dataConfig.attrs,
|
|
@@ -11058,10 +11535,10 @@ var FullCalendar = (function (exports) {
|
|
|
11058
11535
|
}, renderProps: finalRenderProps, generatorName: renderConfig.generatorName, customGenerator: renderConfig.customGenerator, defaultGenerator: renderText$1, classNameGenerator:
|
|
11059
11536
|
// don't use custom classNames if disabled
|
|
11060
11537
|
// TODO: make DRY with DayCellContainer
|
|
11061
|
-
isDisabled ? undefined : renderConfig.classNameGenerator, didMount: renderConfig.didMount, willUnmount: renderConfig.willUnmount, children: (InnerContainer) => (u$
|
|
11538
|
+
isDisabled ? undefined : renderConfig.classNameGenerator, didMount: renderConfig.didMount, willUnmount: renderConfig.willUnmount, children: (InnerContainer) => (u$1("div", { ref: this.handleInnerEl, className: joinClassNames(classNames.flexCol, classNames.noShrink, classNames.whiteSpaceNoWrap, isSticky && classNames.sticky), style: {
|
|
11062
11539
|
left: edgeCoord,
|
|
11063
11540
|
right: edgeCoord,
|
|
11064
|
-
}, children: u$
|
|
11541
|
+
}, children: u$1(InnerContainer, { tag: 'div', attrs: dataConfig.innerAttrs, className: generateClassName(renderConfig.innerClassNameGenerator, finalRenderProps) }) })) }));
|
|
11065
11542
|
}
|
|
11066
11543
|
componentDidMount() {
|
|
11067
11544
|
this._isUnmounting = false;
|
|
@@ -11119,9 +11596,9 @@ var FullCalendar = (function (exports) {
|
|
|
11119
11596
|
render() {
|
|
11120
11597
|
const { props, context } = this;
|
|
11121
11598
|
const { options } = context;
|
|
11122
|
-
return (u$
|
|
11599
|
+
return (u$1("div", { role: props.role /* !!! */, "aria-rowindex": props.rowIndex != null ? 1 + props.rowIndex : undefined, className: joinClassNames(options.dayHeaderRowClass, props.className, classNames.flexRow, classNames.contentBox, props.borderBottom ? classNames.borderOnlyB : classNames.borderNone), style: {
|
|
11123
11600
|
height: props.height,
|
|
11124
|
-
}, children: props.dataConfigs.map((dataConfig, cellI) => (u$
|
|
11601
|
+
}, children: props.dataConfigs.map((dataConfig, cellI) => (u$1(DayGridHeaderCell, { renderConfig: props.renderConfig, dataConfig: dataConfig, borderStart: Boolean(cellI), colWidth: props.colWidth, viewportWidth: props.viewportWidth, innerHeightRef: this.innerHeightRefMap.createRef(dataConfig.key), cellIsNarrow: props.cellIsNarrow, cellIsMicro: props.cellIsMicro, rowLevel: props.rowLevel }, dataConfig.key))) }));
|
|
11125
11602
|
}
|
|
11126
11603
|
componentDidMount() {
|
|
11127
11604
|
this._isUnmounting = false;
|
|
@@ -11140,7 +11617,7 @@ var FullCalendar = (function (exports) {
|
|
|
11140
11617
|
render() {
|
|
11141
11618
|
const { props } = this;
|
|
11142
11619
|
const { headerTiers } = props;
|
|
11143
|
-
return (u$
|
|
11620
|
+
return (u$1("div", { role: 'rowgroup', className: joinClassNames(props.className, classNames.flexCol, props.width == null && classNames.liquid), style: {
|
|
11144
11621
|
width: props.width,
|
|
11145
11622
|
}, children: headerTiers.map((rowConfig, i) => (k$1(DayGridHeaderRow, { ...rowConfig, key: i, role: 'row', borderBottom: i < headerTiers.length - 1, colWidth: props.colWidth, viewportWidth: props.viewportWidth, cellIsNarrow: props.cellIsNarrow, cellIsMicro: props.cellIsMicro, rowLevel: headerTiers.length - i - 1 }))) }));
|
|
11146
11623
|
}
|
|
@@ -11182,18 +11659,18 @@ var FullCalendar = (function (exports) {
|
|
|
11182
11659
|
const cellWidth = clientWidth != null ? clientWidth / colCount : undefined;
|
|
11183
11660
|
const cellIsMicro = cellWidth != null && cellWidth <= dayMicroWidth;
|
|
11184
11661
|
const cellIsNarrow = cellIsMicro || (cellWidth != null && cellWidth <= options.dayNarrowWidth);
|
|
11185
|
-
return (u$
|
|
11662
|
+
return (u$1(S, { children: [options.dayHeaders && (u$1("div", { className: joinClassNames(generateClassName(options.tableHeaderClass, {
|
|
11186
11663
|
isSticky: tableHeaderSticky,
|
|
11187
11664
|
borderlessX,
|
|
11188
11665
|
borderlessTop,
|
|
11189
11666
|
borderlessBottom,
|
|
11190
11667
|
multiMonthColumns: 0,
|
|
11191
11668
|
}), classNames.printHeader, // either flexCol or table-header-group
|
|
11192
|
-
tableHeaderSticky && classNames.tableHeaderSticky), children: [u$
|
|
11669
|
+
tableHeaderSticky && classNames.tableHeaderSticky), children: [u$1("div", { className: classNames.flexRow, children: [u$1(DayGridHeader, { headerTiers: props.headerTiers, cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro }), Boolean(endScrollbarWidth) && (u$1("div", { className: joinClassNames(generateClassName(options.fillerClass, { inTableHeader: true }), classNames.borderOnlyS), style: { minWidth: endScrollbarWidth } }))] }), u$1("div", { className: generateClassName(options.dayHeaderDividerClass, {
|
|
11193
11670
|
isSticky: tableHeaderSticky,
|
|
11194
11671
|
multiMonthColumns: 0,
|
|
11195
11672
|
options: { allDaySlot: Boolean(options.allDaySlot) },
|
|
11196
|
-
}) })] })), u$
|
|
11673
|
+
}) })] })), u$1(Scroller, { vertical: verticalScrollbars, className: joinClassNames(generateClassName(options.tableBodyClass, {
|
|
11197
11674
|
borderlessX,
|
|
11198
11675
|
borderlessTop,
|
|
11199
11676
|
borderlessBottom,
|
|
@@ -11201,13 +11678,13 @@ var FullCalendar = (function (exports) {
|
|
|
11201
11678
|
}),
|
|
11202
11679
|
// HACK for Safari. Can't do break-inside:avoid with flexbox items, likely b/c it's not standard:
|
|
11203
11680
|
// https://stackoverflow.com/a/60256345
|
|
11204
|
-
!props.forPrint && classNames.flexCol, verticalScrollbars && classNames.liquid), ref: this.handleScroller, clientWidthRef: this.handleClientWidth, children: u$
|
|
11681
|
+
!props.forPrint && classNames.flexCol, verticalScrollbars && classNames.liquid), ref: this.handleScroller, clientWidthRef: this.handleClientWidth, children: u$1(DayGridRows, { dateProfile: props.dateProfile, todayRange: props.todayRange, cellRows: props.cellRows, forPrint: props.forPrint, isHitComboAllowed: props.isHitComboAllowed, className: classNames.grow, dayMaxEvents: props.forPrint ? undefined : options.dayMaxEvents, dayMaxEventRows: options.dayMaxEventRows,
|
|
11205
11682
|
// content
|
|
11206
11683
|
fgEventSegs: props.fgEventSegs, bgEventSegs: props.bgEventSegs, businessHourSegs: props.businessHourSegs, dateSelectionSegs: props.dateSelectionSegs, eventDrag: props.eventDrag, eventResize: props.eventResize, eventSelection: props.eventSelection,
|
|
11207
11684
|
// dimensions
|
|
11208
11685
|
visibleWidth: totalWidth, cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro,
|
|
11209
11686
|
// refs
|
|
11210
|
-
rowHeightRefMap: props.rowHeightRefMap }) }), u$
|
|
11687
|
+
rowHeightRefMap: props.rowHeightRefMap }) }), u$1(Ruler, { widthRef: this.handleTotalWidth })] }));
|
|
11211
11688
|
}
|
|
11212
11689
|
componentDidMount() {
|
|
11213
11690
|
this._isUnmounting = false;
|
|
@@ -11228,7 +11705,7 @@ var FullCalendar = (function (exports) {
|
|
|
11228
11705
|
// the outer dimensions change, but the inner dimensions do not. The Scroller's
|
|
11229
11706
|
// dimension-watching, when used in ponyfill-mode, can't fire on border-box change, so we
|
|
11230
11707
|
// workaround it by monitoring dimensions of a wrapper instead
|
|
11231
|
-
return (u$
|
|
11708
|
+
return (u$1("div", { ref: this.rootElRef, className: joinClassNames(classNames.footerScrollbar, props.isSticky && classNames.footerScrollbarSticky), children: u$1(Scroller, { horizontal: true, ref: props.scrollerRef, children: u$1("div", { style: { minWidth: props.canvasWidth } }) }) }));
|
|
11232
11709
|
}
|
|
11233
11710
|
componentDidMount() {
|
|
11234
11711
|
this._isUnmounting = false;
|
|
@@ -11280,18 +11757,18 @@ var FullCalendar = (function (exports) {
|
|
|
11280
11757
|
const [canvasWidth, colWidth] = computeColWidth(colCount, props.dayMinWidth, clientWidth);
|
|
11281
11758
|
const cellIsMicro = colWidth != null && colWidth <= dayMicroWidth;
|
|
11282
11759
|
const cellIsNarrow = cellIsMicro || (colWidth != null && colWidth <= options.dayNarrowWidth);
|
|
11283
|
-
return (u$
|
|
11760
|
+
return (u$1(S, { children: [options.dayHeaders && (u$1("div", { className: joinClassNames(generateClassName(options.tableHeaderClass, {
|
|
11284
11761
|
isSticky: tableHeaderSticky,
|
|
11285
11762
|
borderlessX,
|
|
11286
11763
|
borderlessTop,
|
|
11287
11764
|
borderlessBottom,
|
|
11288
11765
|
multiMonthColumns: 0,
|
|
11289
11766
|
}), classNames.printHeader, // either flexCol or table-header-group
|
|
11290
|
-
tableHeaderSticky && classNames.tableHeaderSticky), children: [u$
|
|
11767
|
+
tableHeaderSticky && classNames.tableHeaderSticky), children: [u$1(Scroller, { horizontal: true, hideScrollbars: true, className: classNames.flexRow, ref: this.headerScrollerRef, children: [u$1(DayGridHeader, { headerTiers: props.headerTiers, colWidth: colWidth, viewportWidth: clientWidth, width: canvasWidth, cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro }), Boolean(endScrollbarWidth) && (u$1("div", { className: joinClassNames(generateClassName(options.fillerClass, { inTableHeader: true }), classNames.borderOnlyS), style: { minWidth: endScrollbarWidth } }))] }), u$1("div", { className: generateClassName(options.dayHeaderDividerClass, {
|
|
11291
11768
|
isSticky: tableHeaderSticky,
|
|
11292
11769
|
multiMonthColumns: 0,
|
|
11293
11770
|
options: { allDaySlot: Boolean(options.allDaySlot) },
|
|
11294
|
-
}) })] })), u$
|
|
11771
|
+
}) })] })), u$1(Scroller, { vertical: verticalScrollbars, horizontal: true, hideScrollbars: footerScrollbarSticky ||
|
|
11295
11772
|
props.forPrint // prevents blank space in print-view on Safari
|
|
11296
11773
|
, className: joinClassNames(generateClassName(options.tableBodyClass, {
|
|
11297
11774
|
borderlessX,
|
|
@@ -11301,13 +11778,13 @@ var FullCalendar = (function (exports) {
|
|
|
11301
11778
|
}),
|
|
11302
11779
|
// HACK for Safari. Can't do break-inside:avoid with flexbox items, likely b/c it's not standard:
|
|
11303
11780
|
// https://stackoverflow.com/a/60256345
|
|
11304
|
-
!props.forPrint && classNames.flexCol, verticalScrollbars && classNames.liquid), ref: this.bodyScrollerRef, clientWidthRef: this.handleClientWidth, children: u$
|
|
11781
|
+
!props.forPrint && classNames.flexCol, verticalScrollbars && classNames.liquid), ref: this.bodyScrollerRef, clientWidthRef: this.handleClientWidth, children: u$1(DayGridRows, { dateProfile: props.dateProfile, todayRange: props.todayRange, cellRows: props.cellRows, forPrint: props.forPrint, isHitComboAllowed: props.isHitComboAllowed, className: classNames.grow, dayMaxEvents: props.forPrint ? undefined : options.dayMaxEvents, dayMaxEventRows: options.dayMaxEventRows,
|
|
11305
11782
|
// content
|
|
11306
11783
|
fgEventSegs: props.fgEventSegs, bgEventSegs: props.bgEventSegs, businessHourSegs: props.businessHourSegs, dateSelectionSegs: props.dateSelectionSegs, eventDrag: props.eventDrag, eventResize: props.eventResize, eventSelection: props.eventSelection,
|
|
11307
11784
|
// dimensions
|
|
11308
11785
|
colWidth: colWidth, width: canvasWidth, visibleWidth: totalWidth, cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro,
|
|
11309
11786
|
// refs
|
|
11310
|
-
rowHeightRefMap: props.rowHeightRefMap }) }), Boolean(footerScrollbarSticky) && (u$
|
|
11787
|
+
rowHeightRefMap: props.rowHeightRefMap }) }), Boolean(footerScrollbarSticky) && (u$1(FooterScrollbar, { isSticky: true, canvasWidth: canvasWidth, scrollerRef: this.footerScrollerRef })), u$1(Ruler, { widthRef: this.handleTotalWidth })] }));
|
|
11311
11788
|
}
|
|
11312
11789
|
// Lifecycle
|
|
11313
11790
|
// -----------------------------------------------------------------------------------------------
|
|
@@ -11388,7 +11865,7 @@ var FullCalendar = (function (exports) {
|
|
|
11388
11865
|
scrollerRef: this.scrollerRef,
|
|
11389
11866
|
rowHeightRefMap: this.rowHeightRefMap,
|
|
11390
11867
|
};
|
|
11391
|
-
return (u$
|
|
11868
|
+
return (u$1(ViewContainer, { viewSpec: context.viewSpec, attrs: {
|
|
11392
11869
|
role: 'grid',
|
|
11393
11870
|
'aria-rowcount': props.headerTiers.length + props.cellRows.length,
|
|
11394
11871
|
'aria-colcount': props.cellRows[0].length,
|
|
@@ -11400,7 +11877,7 @@ var FullCalendar = (function (exports) {
|
|
|
11400
11877
|
borderlessTop,
|
|
11401
11878
|
borderlessBottom,
|
|
11402
11879
|
multiMonthColumns: 0,
|
|
11403
|
-
})), children: options.dayMinWidth ? (u$
|
|
11880
|
+
})), children: options.dayMinWidth ? (u$1(DayGridLayoutPannable, { ...commonLayoutProps, dayMinWidth: options.dayMinWidth })) : (u$1(DayGridLayoutNormal, { ...commonLayoutProps })) }));
|
|
11404
11881
|
}
|
|
11405
11882
|
// Lifecycle
|
|
11406
11883
|
// -----------------------------------------------------------------------------------------------
|
|
@@ -11705,11 +12182,11 @@ var FullCalendar = (function (exports) {
|
|
|
11705
12182
|
view: viewApi,
|
|
11706
12183
|
isNarrow: props.isNarrow,
|
|
11707
12184
|
};
|
|
11708
|
-
return (u$
|
|
12185
|
+
return (u$1(ContentContainer, { tag: "div", attrs: {
|
|
11709
12186
|
role: 'rowheader',
|
|
11710
12187
|
}, className: joinClassNames(classNames.flexRow, classNames.noMargin, classNames.noPadding, classNames.contentBox), style: {
|
|
11711
12188
|
width: props.width,
|
|
11712
|
-
}, renderProps: renderProps, generatorName: "allDayHeaderContent", customGenerator: options.allDayHeaderContent, defaultGenerator: renderAllDayInner, classNameGenerator: options.allDayHeaderClass, didMount: options.allDayHeaderDidMount, willUnmount: options.allDayHeaderWillUnmount, children: (InnerContent) => (u$
|
|
12189
|
+
}, renderProps: renderProps, generatorName: "allDayHeaderContent", customGenerator: options.allDayHeaderContent, defaultGenerator: renderAllDayInner, classNameGenerator: options.allDayHeaderClass, didMount: options.allDayHeaderDidMount, willUnmount: options.allDayHeaderWillUnmount, children: (InnerContent) => (u$1("div", { className: joinClassNames(classNames.flexRow, classNames.noShrink, classNames.whiteSpacePre), ref: this.innerElRef, children: u$1(InnerContent, { tag: 'div', className: generateClassName(options.allDayHeaderInnerClass, renderProps) }) })) }));
|
|
11713
12190
|
}
|
|
11714
12191
|
componentDidMount() {
|
|
11715
12192
|
this._isUnmounting = false;
|
|
@@ -11749,7 +12226,7 @@ var FullCalendar = (function (exports) {
|
|
|
11749
12226
|
};
|
|
11750
12227
|
}
|
|
11751
12228
|
render() {
|
|
11752
|
-
return (u$
|
|
12229
|
+
return (u$1(DayGridRow, { ...this.props,
|
|
11753
12230
|
/* BAD: these overwrite the props! caller might want to pass them */
|
|
11754
12231
|
rootElRef: this.handleRootEl, heightRef: this.heightRef }));
|
|
11755
12232
|
}
|
|
@@ -12033,7 +12510,7 @@ var FullCalendar = (function (exports) {
|
|
|
12033
12510
|
class TimeGridEvent extends BaseComponent {
|
|
12034
12511
|
render() {
|
|
12035
12512
|
const { props } = this;
|
|
12036
|
-
return (u$
|
|
12513
|
+
return (u$1(StandardEvent, { ...props, display: 'column', level: props.level, isNarrow: props.isNarrow, isShort: props.isShort, className:
|
|
12037
12514
|
// see note in TimeGridCol on why we use flexbox
|
|
12038
12515
|
props.isLiquid ? classNames.liquid : '', disableLiquid: !props.isLiquid, defaultTimeFormat: DEFAULT_TIME_FORMAT$1 }));
|
|
12039
12516
|
}
|
|
@@ -12042,27 +12519,27 @@ var FullCalendar = (function (exports) {
|
|
|
12042
12519
|
class TimeGridMoreLink extends BaseComponent {
|
|
12043
12520
|
render() {
|
|
12044
12521
|
let { props } = this;
|
|
12045
|
-
return (u$
|
|
12522
|
+
return (u$1("div", { className: joinClassNames(classNames.abs, classNames.flexCol), style: {
|
|
12046
12523
|
top: props.top,
|
|
12047
12524
|
height: props.height,
|
|
12048
12525
|
insetInlineEnd: 0,
|
|
12049
12526
|
zIndex: 9999, // HACK. move to className?
|
|
12050
|
-
}, children: u$
|
|
12527
|
+
}, children: u$1(MoreLinkContainer, { className: classNames.liquid, display: 'column', allDayDate: null, segs: props.hiddenSegs, hiddenSegs: props.hiddenSegs, dateSpanProps: props.dateSpanProps, dateProfile: props.dateProfile, todayRange: props.todayRange, popoverContent: () => renderPlainFgSegs(props.hiddenSegs, props, /* isMirror = */ false), forceTimed: true, isNarrow: props.isNarrow, isMicro: props.isMicro }) }));
|
|
12051
12528
|
}
|
|
12052
12529
|
}
|
|
12053
12530
|
|
|
12054
|
-
const NowIndicatorDot = (props) => (u$
|
|
12531
|
+
const NowIndicatorDot = (props) => (u$1(ViewContextType.Consumer, { children: (context) => {
|
|
12055
12532
|
let { options } = context;
|
|
12056
|
-
return (u$
|
|
12533
|
+
return (u$1("div", { className: joinClassNames(props.className, options.nowIndicatorDotClass), style: props.style }));
|
|
12057
12534
|
} }));
|
|
12058
12535
|
|
|
12059
|
-
const NowIndicatorLineContainer = (props) => (u$
|
|
12536
|
+
const NowIndicatorLineContainer = (props) => (u$1(ViewContextType.Consumer, { children: (context) => {
|
|
12060
12537
|
let { options } = context;
|
|
12061
12538
|
let renderProps = {
|
|
12062
12539
|
date: context.dateEnv.toDate(props.date),
|
|
12063
12540
|
view: context.viewApi,
|
|
12064
12541
|
};
|
|
12065
|
-
return (u$
|
|
12542
|
+
return (u$1(ContentContainer, { elRef: props.elRef, tag: props.tag || 'div', attrs: props.attrs, className: props.className, style: props.style, renderProps: renderProps, generatorName: "nowIndicatorLineContent", customGenerator: options.nowIndicatorLineContent, classNameGenerator: options.nowIndicatorLineClass, didMount: options.nowIndicatorLineDidMount, willUnmount: options.nowIndicatorLineWillUnmount, children: props.children }));
|
|
12066
12543
|
} }));
|
|
12067
12544
|
|
|
12068
12545
|
/*
|
|
@@ -12073,10 +12550,10 @@ var FullCalendar = (function (exports) {
|
|
|
12073
12550
|
const top = props.totalHeight != null
|
|
12074
12551
|
? props.totalHeight * computeDateTopFrac(props.nowDate, props.dateProfile, props.dayDate)
|
|
12075
12552
|
: undefined;
|
|
12076
|
-
return (u$
|
|
12553
|
+
return (u$1("div", { className: classNames.fill, style: {
|
|
12077
12554
|
zIndex: 2, // inlined from $now-indicator-z
|
|
12078
12555
|
pointerEvents: 'none', // TODO: className
|
|
12079
|
-
}, children: [u$
|
|
12556
|
+
}, children: [u$1(NowIndicatorLineContainer, { className: joinClassNames(classNames.fillX, classNames.noMarginX, classNames.borderlessX), style: { top }, date: props.nowDate }), (props.showDot ?? true) && (u$1(NowIndicatorDot, { className: joinClassNames(classNames.abs, classNames.start0), style: { top } }))] }));
|
|
12080
12557
|
}
|
|
12081
12558
|
|
|
12082
12559
|
// Firefox is terrible at rendering absolute elements that span across multiple print pages
|
|
@@ -12113,19 +12590,19 @@ var FullCalendar = (function (exports) {
|
|
|
12113
12590
|
view: context.viewApi,
|
|
12114
12591
|
};
|
|
12115
12592
|
if (dateMeta.isDisabled) {
|
|
12116
|
-
return (u$
|
|
12593
|
+
return (u$1("div", { role: 'gridcell', "aria-disabled": true, className: joinClassNames(generateClassName(options.dayLaneClass, renderProps), baseClassName), style: baseStyle }));
|
|
12117
12594
|
}
|
|
12118
12595
|
const innerClassName = joinClassNames(generateClassName(options.dayLaneInnerClass, renderProps), !isStack && classNames.fill);
|
|
12119
12596
|
const sortedFgSegs = this.sortEventSegs(props.fgEventSegs, options.eventOrder);
|
|
12120
|
-
return (u$
|
|
12597
|
+
return (u$1(ContentContainer, { tag: "div", attrs: {
|
|
12121
12598
|
...props.attrs,
|
|
12122
12599
|
role: 'gridcell',
|
|
12123
12600
|
...(dateMeta.isToday ? { 'aria-current': 'date' } : {}),
|
|
12124
12601
|
'data-date': formatDayString(props.date),
|
|
12125
|
-
}, className: baseClassName, style: baseStyle, renderProps: renderProps, generatorName: undefined, classNameGenerator: options.dayLaneClass, didMount: options.dayLaneDidMount, willUnmount: options.dayLaneWillUnmount, children: () => (u$
|
|
12602
|
+
}, className: baseClassName, style: baseStyle, renderProps: renderProps, generatorName: undefined, classNameGenerator: options.dayLaneClass, didMount: options.dayLaneDidMount, willUnmount: options.dayLaneWillUnmount, children: () => (u$1(S, { children: [this.renderFillSegs(props.businessHourSegs, 'non-business'), this.renderFillSegs(props.bgEventSegs, 'bg-event'), this.renderFillSegs(props.dateSelectionSegs, 'highlight'), u$1("div", { className: innerClassName, style: { zIndex: 1 }, children: this.renderFgSegs(sortedFgSegs,
|
|
12126
12603
|
/* isMirror = */ false) }), Boolean(mirrorSegs.length) && (
|
|
12127
12604
|
// but only show it when there are actual mirror events, to avoid blocking clicks
|
|
12128
|
-
u$
|
|
12605
|
+
u$1("div", { className: innerClassName, style: { zIndex: 1 }, children: this.renderFgSegs(mirrorSegs,
|
|
12129
12606
|
/* isMirror = */ true) })), this.renderNowIndicator(props.nowIndicatorSegs)] })) }));
|
|
12130
12607
|
}
|
|
12131
12608
|
renderFgSegs(sortedFgSegs, isMirror) {
|
|
@@ -12143,7 +12620,7 @@ var FullCalendar = (function (exports) {
|
|
|
12143
12620
|
// TODO: memoize this?
|
|
12144
12621
|
let segVerticals = computeFgSegVerticals(segs, dateProfile, date, props.slatCnt, props.slatHeight, eventMinHeight, eventShortHeight);
|
|
12145
12622
|
let [segRects, hiddenGroups] = buildWebPositioning(segs, segVerticals, eventOrderStrict, eventMaxStack);
|
|
12146
|
-
return (u$
|
|
12623
|
+
return (u$1(S, { children: [segs.map((seg, index) => {
|
|
12147
12624
|
let { eventRange } = seg;
|
|
12148
12625
|
let { instanceId } = eventRange.instance; // guaranteed because it's an fg event
|
|
12149
12626
|
let segVertical = segVerticals[index] || {};
|
|
@@ -12158,7 +12635,7 @@ var FullCalendar = (function (exports) {
|
|
|
12158
12635
|
let isDragging = Boolean(props.eventDrag && props.eventDrag.affectedInstances[instanceId]);
|
|
12159
12636
|
let isResizing = Boolean(props.eventResize && props.eventResize.affectedInstances[instanceId]);
|
|
12160
12637
|
let isInvisible = !isMirror && (isDragging || isResizing || !segRect);
|
|
12161
|
-
return (u$
|
|
12638
|
+
return (u$1("div", {
|
|
12162
12639
|
// we would have used classNames.fill, but multi-page spanning breaks in Firefox
|
|
12163
12640
|
// we would have used height:100%, but multi-page spanning breaks in Safari
|
|
12164
12641
|
className: joinClassNames(classNames.abs, classNames.flexCol), style: {
|
|
@@ -12166,7 +12643,7 @@ var FullCalendar = (function (exports) {
|
|
|
12166
12643
|
top: segVertical.start,
|
|
12167
12644
|
height: segVertical.size,
|
|
12168
12645
|
...hStyle,
|
|
12169
|
-
}, children: u$
|
|
12646
|
+
}, children: u$1(TimeGridEvent, { eventRange: eventRange, slicedStart: seg.startDate, slicedEnd: seg.endDate, isStart: seg.isStart, isEnd: seg.isEnd, isDragging: isDragging, isResizing: isResizing, isMirror: isMirror, isSelected: isSelected, level: segRect ? segRect.stackDepth : 0, isNarrow: props.isNarrow, isShort: segVertical.isShort || false, isLiquid: true, ...getEventRangeMeta(eventRange, todayRange, nowDate) }) }, instanceId));
|
|
12170
12647
|
}), this.renderHiddenGroups(hiddenGroups)] }));
|
|
12171
12648
|
}
|
|
12172
12649
|
/*
|
|
@@ -12174,17 +12651,17 @@ var FullCalendar = (function (exports) {
|
|
|
12174
12651
|
*/
|
|
12175
12652
|
renderHiddenGroups(hiddenGroups) {
|
|
12176
12653
|
let { dateSpanProps, dateProfile, todayRange, nowDate, eventSelection, eventDrag, eventResize, isNarrow, isMicro } = this.props;
|
|
12177
|
-
return (u$
|
|
12178
|
-
return (u$
|
|
12654
|
+
return (u$1(S, { children: hiddenGroups.map((hiddenGroup) => {
|
|
12655
|
+
return (u$1(TimeGridMoreLink, { hiddenSegs: hiddenGroup.segs, top: hiddenGroup.start, height: hiddenGroup.end - hiddenGroup.start, isNarrow: isNarrow, isMicro: isMicro, dateSpanProps: dateSpanProps, dateProfile: dateProfile, todayRange: todayRange, nowDate: nowDate, eventSelection: eventSelection, eventDrag: eventDrag, eventResize: eventResize }, hiddenGroup.key));
|
|
12179
12656
|
}) }));
|
|
12180
12657
|
}
|
|
12181
12658
|
renderFillSegs(segs, fillType) {
|
|
12182
12659
|
let { props, context } = this;
|
|
12183
12660
|
let segVerticals = computeFgSegVerticals(segs, props.dateProfile, props.date, props.slatCnt, props.slatHeight, context.options.eventMinHeight, context.options.eventShortHeight);
|
|
12184
|
-
return (u$
|
|
12661
|
+
return (u$1(S, { children: segs.map((seg, index) => {
|
|
12185
12662
|
const { eventRange } = seg;
|
|
12186
12663
|
const segVertical = segVerticals[index] || {};
|
|
12187
|
-
return (u$
|
|
12664
|
+
return (u$1("div", { className: classNames.fillX, style: {
|
|
12188
12665
|
top: segVertical.start,
|
|
12189
12666
|
height: segVertical.size,
|
|
12190
12667
|
// HACK to get bg fills to overlap cell-start border
|
|
@@ -12193,7 +12670,7 @@ var FullCalendar = (function (exports) {
|
|
|
12193
12670
|
// will render on both at the same time
|
|
12194
12671
|
marginInlineStart: -1,
|
|
12195
12672
|
}, children: fillType === 'bg-event' ?
|
|
12196
|
-
u$
|
|
12673
|
+
u$1(BgEvent, { eventRange: eventRange, isStart: seg.isStart, isEnd: seg.isEnd, isNarrow: props.isNarrow, isShort: segVertical.isShort || false, isVertical: true, ...getEventRangeMeta(eventRange, props.todayRange, props.nowDate) }) :
|
|
12197
12674
|
renderFill(fillType, context.options) }, buildEventRangeKey(eventRange)));
|
|
12198
12675
|
}) }));
|
|
12199
12676
|
}
|
|
@@ -12202,7 +12679,7 @@ var FullCalendar = (function (exports) {
|
|
|
12202
12679
|
if (props.forPrint || this.getIsStack()) {
|
|
12203
12680
|
return;
|
|
12204
12681
|
}
|
|
12205
|
-
return segs.map((seg, i) => (u$
|
|
12682
|
+
return segs.map((seg, i) => (u$1(TimeGridNowIndicatorLine, { nowDate: seg.startDate, dayDate: props.date, dateProfile: props.dateProfile, totalHeight: props.slatHeight != null ? props.slatHeight * props.slatCnt : undefined, showDot: seg.showDot ?? true }, i)));
|
|
12206
12683
|
}
|
|
12207
12684
|
/*
|
|
12208
12685
|
TODO: eventually move to width, not left+right
|
|
@@ -12235,13 +12712,13 @@ var FullCalendar = (function (exports) {
|
|
|
12235
12712
|
}
|
|
12236
12713
|
}
|
|
12237
12714
|
function renderPlainFgSegs(sortedFgSegs, { todayRange, nowDate, eventSelection, eventDrag, eventResize }, isMirror) {
|
|
12238
|
-
return (u$
|
|
12715
|
+
return (u$1(S, { children: sortedFgSegs.map((seg) => {
|
|
12239
12716
|
let { eventRange } = seg;
|
|
12240
12717
|
let { instanceId } = eventRange.instance;
|
|
12241
12718
|
let isDragging = Boolean(eventDrag && eventDrag.affectedInstances[instanceId]);
|
|
12242
12719
|
let isResizing = Boolean(eventResize && eventResize.affectedInstances[instanceId]);
|
|
12243
12720
|
let isInvisible = isDragging || isResizing;
|
|
12244
|
-
return (u$
|
|
12721
|
+
return (u$1("div", { className: classNames.breakInsideAvoid, style: { visibility: isInvisible ? 'hidden' : undefined }, children: u$1(TimeGridEvent, { eventRange: eventRange, slicedStart: seg.startDate, slicedEnd: seg.endDate, isStart: seg.isStart, isEnd: seg.isEnd, isDragging: isDragging, isResizing: isResizing, isMirror: isMirror, isSelected: instanceId === eventSelection, level: 0, isShort: false, isNarrow: false, disableResizing: true, ...getEventRangeMeta(eventRange, todayRange, nowDate) }) }, instanceId));
|
|
12245
12722
|
}) }));
|
|
12246
12723
|
}
|
|
12247
12724
|
|
|
@@ -12265,7 +12742,7 @@ var FullCalendar = (function (exports) {
|
|
|
12265
12742
|
}
|
|
12266
12743
|
render() {
|
|
12267
12744
|
const { props } = this;
|
|
12268
|
-
return (u$
|
|
12745
|
+
return (u$1("div", { role: props.role /* !!! */, className: joinClassNames(props.className, classNames.flexRow), ref: this.handleRootEl, children: props.cells.map((cell, col) => (u$1(TimeGridCol, { dateProfile: props.dateProfile, nowDate: props.nowDate, todayRange: props.todayRange, date: cell.date, isMajor: cell.isMajor, slatCnt: props.slatCnt, renderProps: cell.renderProps, attrs: cell.attrs, dateSpanProps: cell.dateSpanProps, forPrint: props.forPrint, borderStart: Boolean(col), isNarrow: props.cellIsNarrow, isMicro: props.cellIsMicro,
|
|
12269
12746
|
// content
|
|
12270
12747
|
fgEventSegs: props.fgEventSegsByCol[col], bgEventSegs: props.bgEventSegsByCol[col], businessHourSegs: props.businessHourSegsByCol[col], nowIndicatorSegs: props.nowIndicatorSegsByCol[col], dateSelectionSegs: props.dateSelectionSegsByCol[col], eventDrag: props.eventDragByCol[col], eventResize: props.eventResizeByCol[col], eventSelection: props.eventSelection,
|
|
12271
12748
|
// dimensions
|
|
@@ -12320,26 +12797,26 @@ var FullCalendar = (function (exports) {
|
|
|
12320
12797
|
return { snapDuration, snapsPerSlot };
|
|
12321
12798
|
}
|
|
12322
12799
|
|
|
12323
|
-
const NowIndicatorHeaderContainer = (props) => (u$
|
|
12800
|
+
const NowIndicatorHeaderContainer = (props) => (u$1(ViewContextType.Consumer, { children: (context) => {
|
|
12324
12801
|
let { options } = context;
|
|
12325
12802
|
let renderProps = {
|
|
12326
12803
|
date: context.dateEnv.toDate(props.date),
|
|
12327
12804
|
view: context.viewApi,
|
|
12328
12805
|
};
|
|
12329
|
-
return (u$
|
|
12806
|
+
return (u$1(ContentContainer, { elRef: props.elRef, tag: props.tag || 'div', attrs: props.attrs, className: props.className, style: props.style, renderProps: renderProps, generatorName: "nowIndicatorHeaderContent", customGenerator: options.nowIndicatorHeaderContent, classNameGenerator: options.nowIndicatorHeaderClass, didMount: options.nowIndicatorHeaderDidMount, willUnmount: options.nowIndicatorHeaderWillUnmount, children: props.children }));
|
|
12330
12807
|
} }));
|
|
12331
12808
|
|
|
12332
12809
|
/*
|
|
12333
12810
|
TODO: DRY with other NowIndicator components
|
|
12334
12811
|
*/
|
|
12335
12812
|
function TimeGridNowIndicatorArrow(props) {
|
|
12336
|
-
return (u$
|
|
12813
|
+
return (u$1("div", {
|
|
12337
12814
|
// crop any overflow that the arrow/line might cause
|
|
12338
12815
|
// TODO: just do this on the entire canvas within the scroller
|
|
12339
12816
|
className: joinClassNames(classNames.fill, classNames.crop), style: {
|
|
12340
12817
|
zIndex: 2, // inlined from $now-indicator-z
|
|
12341
12818
|
pointerEvents: 'none', // TODO: className
|
|
12342
|
-
}, children: u$
|
|
12819
|
+
}, children: u$1(NowIndicatorHeaderContainer, { className: classNames.abs, style: {
|
|
12343
12820
|
top: props.totalHeight != null
|
|
12344
12821
|
? props.totalHeight * computeDateTopFrac(props.nowDate, props.dateProfile)
|
|
12345
12822
|
: undefined
|
|
@@ -12373,15 +12850,15 @@ var FullCalendar = (function (exports) {
|
|
|
12373
12850
|
let renderProps = this.createRenderProps(props.date, props.time, !props.isLabeled, props.isNarrow, props.isFirst, headerFormat, context);
|
|
12374
12851
|
let className = joinClassNames(props.liquidHeight && classNames.liquid, classNames.flexRow, classNames.alignStart, classNames.noMargin, classNames.noPadding, props.borderTop ? classNames.borderOnlyT : classNames.borderNone);
|
|
12375
12852
|
if (!props.isLabeled) {
|
|
12376
|
-
return (u$
|
|
12853
|
+
return (u$1("div", { className: joinClassNames(generateClassName(options.slotHeaderClass, renderProps), className), style: {
|
|
12377
12854
|
height: props.height,
|
|
12378
12855
|
} }));
|
|
12379
12856
|
}
|
|
12380
|
-
return (u$
|
|
12857
|
+
return (u$1(ContentContainer, { tag: "div", attrs: {
|
|
12381
12858
|
'data-time': props.isoTimeStr,
|
|
12382
12859
|
}, style: {
|
|
12383
12860
|
height: props.height,
|
|
12384
|
-
}, className: className, renderProps: renderProps, generatorName: "slotHeaderContent", customGenerator: options.slotHeaderContent, defaultGenerator: renderInnerContent, classNameGenerator: options.slotHeaderClass, didMount: options.slotHeaderDidMount, willUnmount: options.slotHeaderWillUnmount, children: (InnerContent) => (u$
|
|
12861
|
+
}, className: className, renderProps: renderProps, generatorName: "slotHeaderContent", customGenerator: options.slotHeaderContent, defaultGenerator: renderInnerContent, classNameGenerator: options.slotHeaderClass, didMount: options.slotHeaderDidMount, willUnmount: options.slotHeaderWillUnmount, children: (InnerContent) => (u$1("div", { ref: this.innerElRef, className: joinClassNames(classNames.noShrink, classNames.whiteSpaceNoWrap, classNames.flexRow), children: u$1(InnerContent, { tag: "div", className: generateClassName(options.slotHeaderInnerClass, renderProps) }) })) }));
|
|
12385
12862
|
}
|
|
12386
12863
|
componentDidMount() {
|
|
12387
12864
|
this._isUnmounting = false;
|
|
@@ -12445,7 +12922,7 @@ var FullCalendar = (function (exports) {
|
|
|
12445
12922
|
isMinor: !props.isLabeled,
|
|
12446
12923
|
view: context.viewApi,
|
|
12447
12924
|
};
|
|
12448
|
-
return (u$
|
|
12925
|
+
return (u$1(ContentContainer, { tag: "div", attrs: {
|
|
12449
12926
|
'data-time': props.isoTimeStr,
|
|
12450
12927
|
}, className: joinClassNames(classNames.noMargin, classNames.noPadding, classNames.liquid, props.borderTop ? classNames.borderOnlyT : classNames.borderNone), renderProps: renderProps, generatorName: undefined, classNameGenerator: options.slotLaneClass, didMount: options.slotLaneDidMount, willUnmount: options.slotLaneWillUnmount }));
|
|
12451
12928
|
}
|
|
@@ -12480,12 +12957,12 @@ var FullCalendar = (function (exports) {
|
|
|
12480
12957
|
hasNavLink,
|
|
12481
12958
|
options: { dayMinWidth: options.dayMinWidth },
|
|
12482
12959
|
};
|
|
12483
|
-
return (u$
|
|
12960
|
+
return (u$1(ContentContainer, { tag: 'div', attrs: {
|
|
12484
12961
|
role: 'gridcell', // doesn't always describe other cells in row, so make generic
|
|
12485
12962
|
'aria-label': fullDateStr,
|
|
12486
12963
|
}, className: joinClassNames(classNames.flexRow, classNames.noMargin, classNames.noPadding, props.isLiquid ? classNames.liquid : classNames.contentBox), style: {
|
|
12487
12964
|
width: props.width,
|
|
12488
|
-
}, renderProps: weekNumberRenderProps, generatorName: "weekNumberHeaderContent", customGenerator: options.weekNumberHeaderContent, defaultGenerator: renderText$1, classNameGenerator: options.weekNumberHeaderClass, didMount: options.weekNumberHeaderDidMount, willUnmount: options.weekNumberHeaderWillUnmount, children: (InnerContent) => (u$
|
|
12965
|
+
}, renderProps: weekNumberRenderProps, generatorName: "weekNumberHeaderContent", customGenerator: options.weekNumberHeaderContent, defaultGenerator: renderText$1, classNameGenerator: options.weekNumberHeaderClass, didMount: options.weekNumberHeaderDidMount, willUnmount: options.weekNumberHeaderWillUnmount, children: (InnerContent) => (u$1("div", { ref: this.innerElRef, className: joinClassNames(classNames.flexRow, classNames.noShrink, classNames.whiteSpaceNoWrap), children: u$1(InnerContent, { tag: 'div', attrs: hasNavLink
|
|
12489
12966
|
? buildNavLinkAttrs(context, range.start, 'week', fullDateStr)
|
|
12490
12967
|
: { 'aria-label': fullDateStr }, className: generateClassName(options.weekNumberHeaderInnerClass, weekNumberRenderProps) }) })) }));
|
|
12491
12968
|
}
|
|
@@ -12512,7 +12989,7 @@ var FullCalendar = (function (exports) {
|
|
|
12512
12989
|
}
|
|
12513
12990
|
|
|
12514
12991
|
function TimeGridAxisEmpty(props) {
|
|
12515
|
-
return (u$
|
|
12992
|
+
return (u$1("div", { role: 'gridcell' // is empty so can't be rowheader/columnheader
|
|
12516
12993
|
, className: props.isLiquid ? classNames.liquid : classNames.contentBox, style: { width: props.width } }));
|
|
12517
12994
|
}
|
|
12518
12995
|
|
|
@@ -12653,7 +13130,7 @@ var FullCalendar = (function (exports) {
|
|
|
12653
13130
|
: (bodyHeight != null && clientHeight != null)
|
|
12654
13131
|
? (bodyHeight - clientHeight)
|
|
12655
13132
|
: undefined;
|
|
12656
|
-
return (u$
|
|
13133
|
+
return (u$1(S, { children: [options.dayHeaders && (u$1("div", { className: joinClassNames(generateClassName(options.tableHeaderClass, {
|
|
12657
13134
|
isSticky: tableHeaderSticky,
|
|
12658
13135
|
borderlessX,
|
|
12659
13136
|
borderlessTop,
|
|
@@ -12663,62 +13140,62 @@ var FullCalendar = (function (exports) {
|
|
|
12663
13140
|
// see note in TimeGridLayout about why we don't do classNames.printHeader
|
|
12664
13141
|
classNames.flexCol, tableHeaderSticky && classNames.tableHeaderSticky), style: {
|
|
12665
13142
|
zIndex: 1,
|
|
12666
|
-
}, children: [u$
|
|
13143
|
+
}, children: [u$1("div", { className: classNames.flexRow, children: [u$1("div", { role: 'rowgroup', className: classNames.contentBox, style: { width: axisWidth }, children: headerTiers.map((rowConfig, tierNum) => (u$1("div", { role: 'row', "aria-rowindex": tierNum + 1, className: joinClassNames(options.dayHeaderRowClass, classNames.flexRow, classNames.contentBox, tierNum < props.headerTiers.length - 1
|
|
12667
13144
|
? classNames.borderOnlyB
|
|
12668
13145
|
: classNames.borderNone), style: {
|
|
12669
13146
|
height: state.headerTierHeights[tierNum]
|
|
12670
|
-
}, children: (options.weekNumbers && rowConfig.isDateRow) ? (u$
|
|
13147
|
+
}, children: (options.weekNumbers && rowConfig.isDateRow) ? (u$1(TimeGridWeekNumber, { dateProfile: props.dateProfile, innerWidthRef: headerLabelInnerWidthRefMap.createRef(tierNum), innerHeightRef: headerLabelInnerHeightRefMap.createRef(tierNum), width: undefined, isLiquid: true, isNarrow: cellIsNarrow })) : (u$1(TimeGridAxisEmpty, { width: undefined, isLiquid: true })) }, tierNum))) }), u$1("div", { className: generateClassName(options.slotHeaderDividerClass, {
|
|
12671
13148
|
inTableHeader: true,
|
|
12672
13149
|
options: { dayMinWidth: options.dayMinWidth },
|
|
12673
|
-
}) }), u$
|
|
13150
|
+
}) }), u$1(Scroller, { horizontal: true, hideScrollbars: true, className: joinClassNames(classNames.flexRow, classNames.liquid), ref: this.headerScrollerRef, children: [u$1("div", { role: 'rowgroup', className: canvasWidth == null ? classNames.liquid : '', style: { width: canvasWidth }, children: props.headerTiers.map((rowConfig, tierNum) => (k$1(DayGridHeaderRow, { ...rowConfig, key: tierNum, role: 'row', rowIndex: tierNum, borderBottom: tierNum < props.headerTiers.length - 1, height: state.headerTierHeights[tierNum], colWidth: colWidth, viewportWidth: clientWidth, innerHeightRef: headerMainInnerHeightRefMap.createRef(tierNum), cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro, rowLevel: props.headerTiers.length - tierNum - 1 }))) }), Boolean(endScrollbarWidth) && (u$1("div", { className: joinClassNames(generateClassName(options.fillerClass, { inTableHeader: true }), classNames.borderOnlyS), style: { minWidth: endScrollbarWidth } }))] })] }), u$1("div", { className: generateClassName(options.dayHeaderDividerClass, {
|
|
12674
13151
|
isSticky: tableHeaderSticky,
|
|
12675
13152
|
multiMonthColumns: 0,
|
|
12676
13153
|
options: { allDaySlot: Boolean(options.allDaySlot) },
|
|
12677
|
-
}) })] })), u$
|
|
13154
|
+
}) })] })), u$1("div", { role: 'rowgroup', className: joinClassNames(generateClassName(options.tableBodyClass, {
|
|
12678
13155
|
borderlessX,
|
|
12679
13156
|
borderlessTop,
|
|
12680
13157
|
borderlessBottom,
|
|
12681
13158
|
multiMonthColumns: 0,
|
|
12682
13159
|
}), classNames.flexCol, verticalScrolling && classNames.liquid, classNames.isolate), style: {
|
|
12683
13160
|
zIndex: 0,
|
|
12684
|
-
}, children: [options.allDaySlot && (u$
|
|
13161
|
+
}, children: [options.allDaySlot && (u$1(S, { children: [u$1("div", { role: 'row', "aria-rowindex": firstBodyRowIndex, className: classNames.flexRow, style: { zIndex: 1 }, children: [u$1(TimeGridAllDayHeader, { width: axisWidth, innerWidthRef: this.handleAllDayLabelInnerWidth, isNarrow: cellIsNarrow }), u$1("div", { className: generateClassName(options.slotHeaderDividerClass, {
|
|
12685
13162
|
inTableHeader: false,
|
|
12686
13163
|
options: { dayMinWidth: options.dayMinWidth },
|
|
12687
|
-
}) }), u$
|
|
13164
|
+
}) }), u$1(Scroller, { horizontal: true, hideScrollbars: true,
|
|
12688
13165
|
// fill remaining width
|
|
12689
|
-
className: joinClassNames(classNames.flexRow, classNames.liquidX), ref: this.allDayScrollerRef, children: [u$
|
|
13166
|
+
className: joinClassNames(classNames.flexRow, classNames.liquidX), ref: this.allDayScrollerRef, children: [u$1("div", { className: classNames.flexRow, style: { width: canvasWidth }, children: u$1(TimeGridAllDayLane, { dateProfile: props.dateProfile, todayRange: props.todayRange, cells: props.cells, showDayNumbers: false, forPrint: forPrint, isHitComboAllowed: props.isHitComboAllowed, className: joinClassNames(classNames.borderNone, classNames.liquidX), cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro,
|
|
12690
13167
|
// content
|
|
12691
13168
|
fgEventSegs: props.fgEventSegs, bgEventSegs: props.bgEventSegs, businessHourSegs: props.businessHourSegs, dateSelectionSegs: props.dateSelectionSegs, eventSelection: props.eventSelection, eventDrag: props.eventDrag, eventResize: props.eventResize, dayMaxEvents: props.dayMaxEvents, dayMaxEventRows: props.dayMaxEventRows,
|
|
12692
13169
|
// dimensions
|
|
12693
|
-
colWidth: colWidth }) }), Boolean(endScrollbarWidth) && (u$
|
|
13170
|
+
colWidth: colWidth }) }), Boolean(endScrollbarWidth) && (u$1("div", { className: joinClassNames(generateClassName(options.fillerClass, { inTableHeader: false }), classNames.borderOnlyS), style: { minWidth: endScrollbarWidth } }))] })] }), u$1("div", { className: joinClassNames(options.allDayDividerClass), style: { zIndex: 2 } })] })), u$1("div", { role: 'row', "aria-rowindex": firstBodyRowIndex + (options.allDaySlot ? 1 : 0), className: joinClassNames(classNames.flexRow, classNames.rel, // for Ruler.fillStart
|
|
12694
13171
|
verticalScrolling && classNames.liquid), style: {
|
|
12695
13172
|
zIndex: 0,
|
|
12696
|
-
}, children: [u$
|
|
13173
|
+
}, children: [u$1(Scroller, { vertical: verticalScrolling, hideScrollbars: true, className: joinClassNames(classNames.flexCol, classNames.contentBox), style: {
|
|
12697
13174
|
width: axisWidth,
|
|
12698
|
-
}, ref: this.axisScrollerRef, clientHeightRef: this.handleBodyHeight, children: !simplePrint && (u$
|
|
13175
|
+
}, ref: this.axisScrollerRef, clientHeightRef: this.handleBodyHeight, children: !simplePrint && (u$1(S, { children: u$1("div", { role: 'rowheader', "aria-label": options.timedText, className: joinClassNames(classNames.flexCol, classNames.grow, classNames.rel), style: {
|
|
12699
13176
|
height: forcedBodyHeight,
|
|
12700
|
-
}, children: [u$
|
|
13177
|
+
}, children: [u$1("div", { "aria-hidden": true, className: joinClassNames(classNames.flexCol, (verticalScrolling && options.expandRows) && classNames.grow, absPrint && classNames.fillX), children: props.slatMetas.map((slatMeta, slatI) => (k$1(TimeGridSlatHeader, { ...slatMeta /* FYI doesn't need isoTimeStr */, key: slatMeta.key, innerWidthRef: slatLabelInnerWidthRefMap.createRef(slatMeta.key), innerHeightRef: slatLabelInnerHeightRefMap.createRef(slatMeta.key), borderTop: Boolean(slatI), isNarrow: cellIsNarrow, height: slatLiquidHeight ? undefined : slatHeight, liquidHeight: slatLiquidHeight }))) }), !forPrint && options.nowIndicator && rangeContainsMarker(props.dateProfile.currentRange, nowDate) &&
|
|
12701
13178
|
nowTimeMs >= props.dateProfile.slotMinTime.milliseconds &&
|
|
12702
|
-
nowTimeMs < props.dateProfile.slotMaxTime.milliseconds && (u$
|
|
13179
|
+
nowTimeMs < props.dateProfile.slotMaxTime.milliseconds && (u$1(TimeGridNowIndicatorArrow, { nowDate: nowDate, dateProfile: props.dateProfile, totalHeight: slatHeight != null ? slatHeight * slatCnt : undefined })), Boolean(rowsNotExpanding || bottomScrollbarWidth) && (u$1("div", { className: joinClassNames(generateClassName(options.fillerClass, { inTableHeader: false }), classNames.borderOnlyT, rowsNotExpanding && classNames.liquid), style: {
|
|
12703
13180
|
minHeight: bottomScrollbarWidth
|
|
12704
|
-
} }))] }) })) }), u$
|
|
13181
|
+
} }))] }) })) }), u$1("div", { className: generateClassName(options.slotHeaderDividerClass, {
|
|
12705
13182
|
inTableHeader: false,
|
|
12706
13183
|
options: { dayMinWidth: options.dayMinWidth },
|
|
12707
|
-
}) }), u$
|
|
13184
|
+
}) }), u$1("div", {
|
|
12708
13185
|
// we need this div because it's bad for Scroller to have left/right borders,
|
|
12709
13186
|
// AND because we need to containt the FooterScrollbar
|
|
12710
|
-
className: joinClassNames(classNames.flexCol, classNames.liquid), children: [u$
|
|
13187
|
+
className: joinClassNames(classNames.flexCol, classNames.liquid), children: [u$1(Scroller, { vertical: verticalScrolling, horizontal: true, hideScrollbars: footerScrollbarSticky || // also means height:auto, so won't need vertical scrollbars anyway
|
|
12711
13188
|
forPrint, className: joinClassNames(classNames.flexCol, classNames.rel, // for Ruler.fillStart
|
|
12712
|
-
verticalScrolling && classNames.liquid), ref: this.mainScrollerRef, clientWidthRef: this.handleClientWidth, clientHeightRef: this.handleClientHeight, children: u$
|
|
13189
|
+
verticalScrolling && classNames.liquid), ref: this.mainScrollerRef, clientWidthRef: this.handleClientWidth, clientHeightRef: this.handleClientHeight, children: u$1("div", { className: joinClassNames(classNames.flexCol, classNames.grow, classNames.rel), style: {
|
|
12713
13190
|
width: canvasWidth,
|
|
12714
13191
|
height: forcedBodyHeight,
|
|
12715
|
-
}, children: [u$
|
|
13192
|
+
}, children: [u$1(TimeGridCols, { dateProfile: props.dateProfile, nowDate: props.nowDate, todayRange: props.todayRange, cells: props.cells, slatCnt: slatCnt, forPrint: forPrint, isHitComboAllowed: props.isHitComboAllowed, className: simplePrint ? '' : classNames.fill,
|
|
12716
13193
|
// content
|
|
12717
13194
|
fgEventSegsByCol: props.fgEventSegsByCol, bgEventSegsByCol: props.bgEventSegsByCol, businessHourSegsByCol: props.businessHourSegsByCol, nowIndicatorSegsByCol: props.nowIndicatorSegsByCol, dateSelectionSegsByCol: props.dateSelectionSegsByCol, eventDragByCol: props.eventDragByCol, eventResizeByCol: props.eventResizeByCol, eventSelection: props.eventSelection,
|
|
12718
13195
|
// dimensions
|
|
12719
|
-
colWidth: colWidth, slatHeight: slatHeight, cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro }), !simplePrint && (u$
|
|
13196
|
+
colWidth: colWidth, slatHeight: slatHeight, cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro }), !simplePrint && (u$1(S, { children: [u$1("div", { "aria-hidden": true, className: joinClassNames(classNames.flexCol, (verticalScrolling && options.expandRows) && classNames.grow, absPrint ? classNames.fillX : classNames.rel), children: props.slatMetas.map((slatMeta, slatI) => (u$1("div", { className: joinClassNames(classNames.flexRow, slatLiquidHeight && classNames.liquid), style: {
|
|
12720
13197
|
height: slatLiquidHeight ? '' : slatHeight
|
|
12721
|
-
}, children: k$1(TimeGridSlatLane, { ...slatMeta /* FYI doesn't need isoTimeStr */, key: slatMeta.key, borderTop: Boolean(slatI) }) }, slatMeta.key))) }), rowsNotExpanding && (u$
|
|
13198
|
+
}, children: k$1(TimeGridSlatLane, { ...slatMeta /* FYI doesn't need isoTimeStr */, key: slatMeta.key, borderTop: Boolean(slatI) }) }, slatMeta.key))) }), rowsNotExpanding && (u$1("div", { className: joinClassNames(generateClassName(options.fillerClass, { inTableHeader: false }), classNames.borderOnlyT, classNames.liquid) }))] }))] }) }), Boolean(footerScrollbarSticky) && (u$1(FooterScrollbar, { isSticky: true, canvasWidth: canvasWidth, scrollerRef: this.footScrollerRef, scrollbarWidthRef: this.handleStickyBottomScrollbarWidth }))] })] })] }), u$1(Ruler, { widthRef: this.handleTotalWidth })] }));
|
|
12722
13199
|
}
|
|
12723
13200
|
// Lifecycle
|
|
12724
13201
|
// -----------------------------------------------------------------------------------------------
|
|
@@ -12884,7 +13361,7 @@ var FullCalendar = (function (exports) {
|
|
|
12884
13361
|
const colWidth = clientWidth != null ? clientWidth / colCount : undefined;
|
|
12885
13362
|
const cellIsMicro = colWidth != null && colWidth <= dayMicroWidth;
|
|
12886
13363
|
const cellIsNarrow = cellIsMicro || (colWidth != null && colWidth <= options.dayNarrowWidth);
|
|
12887
|
-
return (u$
|
|
13364
|
+
return (u$1(S, { children: [options.dayHeaders && (u$1("div", { role: 'rowgroup', className: joinClassNames(generateClassName(options.tableHeaderClass, {
|
|
12888
13365
|
isSticky: tableHeaderSticky,
|
|
12889
13366
|
borderlessX,
|
|
12890
13367
|
borderlessTop,
|
|
@@ -12894,55 +13371,55 @@ var FullCalendar = (function (exports) {
|
|
|
12894
13371
|
// see note in TimeGridLayout about why we don't do classNames.printHeader
|
|
12895
13372
|
classNames.flexCol, tableHeaderSticky && classNames.tableHeaderSticky), style: {
|
|
12896
13373
|
zIndex: 1,
|
|
12897
|
-
}, children: [props.headerTiers.map((rowConfig, tierNum) => (u$
|
|
13374
|
+
}, children: [props.headerTiers.map((rowConfig, tierNum) => (u$1("div", { role: 'row', className: classNames.flexRow, children: [u$1("div", { className: joinClassNames(options.dayHeaderRowClass, classNames.flexRow, tierNum < props.headerTiers.length - 1
|
|
12898
13375
|
? classNames.borderOnlyB
|
|
12899
|
-
: classNames.borderNone), children: (options.weekNumbers && rowConfig.isDateRow) ? (u$
|
|
13376
|
+
: classNames.borderNone), children: (options.weekNumbers && rowConfig.isDateRow) ? (u$1(TimeGridWeekNumber, { dateProfile: props.dateProfile, innerWidthRef: this.handleWeekNumberInnerWidth, innerHeightRef: headerLabelInnerWidthRefMap.createRef(tierNum), width: axisWidth, isLiquid: false, isNarrow: cellIsNarrow })) : (u$1(TimeGridAxisEmpty, { width: axisWidth, isLiquid: false })) }), u$1("div", { className: generateClassName(options.slotHeaderDividerClass, {
|
|
12900
13377
|
inTableHeader: true,
|
|
12901
13378
|
options: { dayMinWidth: options.dayMinWidth },
|
|
12902
|
-
}) }), u$
|
|
13379
|
+
}) }), u$1(DayGridHeaderRow, { ...rowConfig, className: classNames.liquid, borderBottom: tierNum < props.headerTiers.length - 1, viewportWidth: clientWidth, cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro, rowLevel: props.headerTiers.length - tierNum - 1 }), Boolean(endScrollbarWidth) && (u$1("div", { className: joinClassNames(generateClassName(options.fillerClass, { inTableHeader: true }), classNames.borderOnlyS), style: { minWidth: endScrollbarWidth } }))] }, tierNum))), u$1("div", { className: generateClassName(options.dayHeaderDividerClass, {
|
|
12903
13380
|
isSticky: tableHeaderSticky,
|
|
12904
13381
|
multiMonthColumns: 0,
|
|
12905
13382
|
options: { allDaySlot: Boolean(options.allDaySlot) },
|
|
12906
|
-
}) })] })), u$
|
|
13383
|
+
}) })] })), u$1("div", { role: 'rowgroup', className: joinClassNames(generateClassName(options.tableBodyClass, {
|
|
12907
13384
|
borderlessX,
|
|
12908
13385
|
borderlessTop,
|
|
12909
13386
|
borderlessBottom,
|
|
12910
13387
|
multiMonthColumns: 0,
|
|
12911
13388
|
}), classNames.flexCol, verticalScrolling && classNames.liquid, classNames.isolate), style: {
|
|
12912
13389
|
zIndex: 0,
|
|
12913
|
-
}, children: [options.allDaySlot && (u$
|
|
13390
|
+
}, children: [options.allDaySlot && (u$1(S, { children: [u$1("div", { role: 'row', className: classNames.flexRow, style: { zIndex: 1 }, children: [u$1(TimeGridAllDayHeader, { width: axisWidth, innerWidthRef: this.handleAllDayLabelInnerWidth, isNarrow: cellIsNarrow }), u$1("div", { className: generateClassName(options.slotHeaderDividerClass, {
|
|
12914
13391
|
inTableHeader: false,
|
|
12915
13392
|
options: { dayMinWidth: options.dayMinWidth },
|
|
12916
|
-
}) }), u$
|
|
13393
|
+
}) }), u$1(TimeGridAllDayLane, { dateProfile: props.dateProfile, todayRange: props.todayRange, cells: props.cells, showDayNumbers: false, forPrint: forPrint, isHitComboAllowed: props.isHitComboAllowed, className: joinClassNames(classNames.liquidX, classNames.borderNone), cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro,
|
|
12917
13394
|
// content
|
|
12918
|
-
fgEventSegs: props.fgEventSegs, bgEventSegs: props.bgEventSegs, businessHourSegs: props.businessHourSegs, dateSelectionSegs: props.dateSelectionSegs, eventDrag: props.eventDrag, eventResize: props.eventResize, eventSelection: props.eventSelection, dayMaxEvents: props.dayMaxEvents, dayMaxEventRows: props.dayMaxEventRows }), Boolean(endScrollbarWidth) && (u$
|
|
13395
|
+
fgEventSegs: props.fgEventSegs, bgEventSegs: props.bgEventSegs, businessHourSegs: props.businessHourSegs, dateSelectionSegs: props.dateSelectionSegs, eventDrag: props.eventDrag, eventResize: props.eventResize, eventSelection: props.eventSelection, dayMaxEvents: props.dayMaxEvents, dayMaxEventRows: props.dayMaxEventRows }), Boolean(endScrollbarWidth) && (u$1("div", { className: joinClassNames(generateClassName(options.fillerClass, { inTableHeader: false }), classNames.borderOnlyS), style: { minWidth: endScrollbarWidth } }))] }), u$1("div", { className: joinClassNames(options.allDayDividerClass), style: { zIndex: 2 } })] })), u$1(Scroller, { vertical: verticalScrolling, className: joinClassNames(classNames.flexCol, classNames.rel, // for Ruler.fillStart
|
|
12919
13396
|
verticalScrolling && classNames.liquid), style: {
|
|
12920
13397
|
zIndex: 0,
|
|
12921
|
-
}, ref: props.timeScrollerRef, clientWidthRef: this.handleClientWidth, clientHeightRef: this.handleClientHeight, children: u$
|
|
13398
|
+
}, ref: props.timeScrollerRef, clientWidthRef: this.handleClientWidth, clientHeightRef: this.handleClientHeight, children: u$1("div", { className: joinClassNames(classNames.flexCol, classNames.grow, classNames.rel), style: {
|
|
12922
13399
|
// in print mode, this div creates the height and everything is absolutely positioned within
|
|
12923
13400
|
// we need to do this so that slats positioning synces with events's positioning
|
|
12924
13401
|
// otherwise, get out of sync on second page
|
|
12925
13402
|
height: forcedBodyHeight,
|
|
12926
|
-
}, children: [u$
|
|
13403
|
+
}, children: [u$1("div", { role: 'row', className: joinClassNames(classNames.flexRow, !simplePrint && classNames.fill), children: [u$1("div", { role: 'rowheader', "aria-label": options.timedText, className: classNames.contentBox, style: { width: axisWidth } }), u$1("div", { className: generateClassName(options.slotHeaderDividerClass, {
|
|
12927
13404
|
inTableHeader: false,
|
|
12928
13405
|
options: { dayMinWidth: options.dayMinWidth },
|
|
12929
|
-
}) }), u$
|
|
13406
|
+
}) }), u$1(TimeGridCols, { dateProfile: props.dateProfile, nowDate: props.nowDate, todayRange: props.todayRange, cells: props.cells, slatCnt: slatCnt, forPrint: forPrint, isHitComboAllowed: props.isHitComboAllowed, className: classNames.liquid,
|
|
12930
13407
|
// content
|
|
12931
13408
|
fgEventSegsByCol: props.fgEventSegsByCol, bgEventSegsByCol: props.bgEventSegsByCol, businessHourSegsByCol: props.businessHourSegsByCol, nowIndicatorSegsByCol: props.nowIndicatorSegsByCol, dateSelectionSegsByCol: props.dateSelectionSegsByCol, eventDragByCol: props.eventDragByCol, eventResizeByCol: props.eventResizeByCol, eventSelection: props.eventSelection,
|
|
12932
13409
|
// dimensions
|
|
12933
|
-
slatHeight: slatHeight, cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro })] }), !simplePrint && (u$
|
|
13410
|
+
slatHeight: slatHeight, cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro })] }), !simplePrint && (u$1(S, { children: [u$1("div", { "aria-hidden": true, className: joinClassNames(classNames.flexCol, (verticalScrolling && options.expandRows) && classNames.grow, absPrint
|
|
12934
13411
|
? classNames.fillX // will assume top:0, height will be decided naturally
|
|
12935
|
-
: classNames.rel), children: props.slatMetas.map((slatMeta, slatI) => (u$
|
|
13412
|
+
: classNames.rel), children: props.slatMetas.map((slatMeta, slatI) => (u$1("div", { className: joinClassNames(slatLiquidHeight && classNames.liquid, classNames.flexRow), style: {
|
|
12936
13413
|
height: slatLiquidHeight ? undefined : slatHeight
|
|
12937
|
-
}, children: [u$
|
|
13414
|
+
}, children: [u$1("div", {
|
|
12938
13415
|
// the pannable version of TimeGrid has axis labels all consecutive in one column
|
|
12939
13416
|
// simulate this for the non-pannable version
|
|
12940
|
-
className: classNames.flexCol, style: { width: axisWidth }, children: k$1(TimeGridSlatHeader, { ...slatMeta /* FYI doesn't need isoTimeStr */, key: slatMeta.key, innerWidthRef: slatLabelInnerWidthRefMap.createRef(slatMeta.key), innerHeightRef: slatLabelInnerHeightRefMap.createRef(slatMeta.key), borderTop: Boolean(slatI), isNarrow: cellIsNarrow }) }), u$
|
|
13417
|
+
className: classNames.flexCol, style: { width: axisWidth }, children: k$1(TimeGridSlatHeader, { ...slatMeta /* FYI doesn't need isoTimeStr */, key: slatMeta.key, innerWidthRef: slatLabelInnerWidthRefMap.createRef(slatMeta.key), innerHeightRef: slatLabelInnerHeightRefMap.createRef(slatMeta.key), borderTop: Boolean(slatI), isNarrow: cellIsNarrow }) }), u$1("div", { className: generateClassName(options.slotHeaderDividerClass, {
|
|
12941
13418
|
inTableHeader: false,
|
|
12942
13419
|
options: { dayMinWidth: options.dayMinWidth },
|
|
12943
|
-
}), style: { visibility: 'hidden' } }), k$1(TimeGridSlatLane, { ...slatMeta /* FYI doesn't need isoTimeStr */, key: slatMeta.key, borderTop: Boolean(slatI) })] }, slatMeta.key))) }), rowsNotExpanding && (u$
|
|
13420
|
+
}), style: { visibility: 'hidden' } }), k$1(TimeGridSlatLane, { ...slatMeta /* FYI doesn't need isoTimeStr */, key: slatMeta.key, borderTop: Boolean(slatI) })] }, slatMeta.key))) }), rowsNotExpanding && (u$1("div", { className: joinClassNames(generateClassName(options.fillerClass, { inTableHeader: false }), classNames.borderOnlyT, classNames.liquid) })), !forPrint && options.nowIndicator && rangeContainsMarker(props.dateProfile.currentRange, nowDate) &&
|
|
12944
13421
|
nowTimeMs >= props.dateProfile.slotMinTime.milliseconds &&
|
|
12945
|
-
nowTimeMs < props.dateProfile.slotMaxTime.milliseconds && (u$
|
|
13422
|
+
nowTimeMs < props.dateProfile.slotMaxTime.milliseconds && (u$1(TimeGridNowIndicatorArrow, { nowDate: nowDate, dateProfile: props.dateProfile, totalHeight: slatHeight != null ? slatHeight * slatCnt : undefined }))] }))] }) })] }), u$1(Ruler, { widthRef: this.handleTotalWidth })] }));
|
|
12946
13423
|
}
|
|
12947
13424
|
// Lifecycle
|
|
12948
13425
|
// -----------------------------------------------------------------------------------------------
|
|
@@ -13083,7 +13560,7 @@ var FullCalendar = (function (exports) {
|
|
|
13083
13560
|
borderlessX,
|
|
13084
13561
|
borderlessBottom,
|
|
13085
13562
|
};
|
|
13086
|
-
return (u$
|
|
13563
|
+
return (u$1(ViewContainer, { attrs: {
|
|
13087
13564
|
role: 'grid',
|
|
13088
13565
|
'aria-colcount': props.cells.length,
|
|
13089
13566
|
'aria-labelledby': props.labelId,
|
|
@@ -13100,7 +13577,7 @@ var FullCalendar = (function (exports) {
|
|
|
13100
13577
|
// Also, there's weird padding on the last page at bottom of container, which matches
|
|
13101
13578
|
// the height of the repeated header
|
|
13102
13579
|
// - Safari was never able to do repeated headers in the first place
|
|
13103
|
-
!props.forPrint && classNames.flexCol, classNames.isolate), viewSpec: context.viewSpec, children: dayMinWidth ? (u$
|
|
13580
|
+
!props.forPrint && classNames.flexCol, classNames.isolate), viewSpec: context.viewSpec, children: dayMinWidth ? (u$1(TimeGridLayoutPannable, { ...commonLayoutProps, dayMinWidth: dayMinWidth, dayScrollerRef: this.dayScrollerRef })) : (u$1(TimeGridLayoutNormal, { ...commonLayoutProps })) }));
|
|
13104
13581
|
}
|
|
13105
13582
|
// Lifecycle
|
|
13106
13583
|
// -----------------------------------------------------------------------------------------------
|
|
@@ -13464,133 +13941,133 @@ var FullCalendar = (function (exports) {
|
|
|
13464
13941
|
}
|
|
13465
13942
|
|
|
13466
13943
|
var protectedApi = /*#__PURE__*/Object.freeze({
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
|
|
13521
|
-
|
|
13522
|
-
|
|
13523
|
-
|
|
13524
|
-
|
|
13525
|
-
|
|
13526
|
-
|
|
13527
|
-
|
|
13528
|
-
|
|
13529
|
-
|
|
13530
|
-
|
|
13531
|
-
|
|
13532
|
-
|
|
13533
|
-
|
|
13534
|
-
|
|
13535
|
-
|
|
13536
|
-
|
|
13537
|
-
|
|
13538
|
-
|
|
13539
|
-
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
|
|
13558
|
-
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
|
|
13944
|
+
__proto__: null,
|
|
13945
|
+
CustomRenderingStore: CustomRenderingStore,
|
|
13946
|
+
debounce: debounce,
|
|
13947
|
+
EventImpl: EventImpl,
|
|
13948
|
+
buildEventRangeKey: buildEventRangeKey,
|
|
13949
|
+
combineEventUis: combineEventUis,
|
|
13950
|
+
compareByFieldSpecs: compareByFieldSpecs,
|
|
13951
|
+
computeViewBorderless: computeViewBorderless,
|
|
13952
|
+
computeVisibleDayRange: computeVisibleDayRange,
|
|
13953
|
+
createEventUi: createEventUi,
|
|
13954
|
+
createFormatter: createFormatter,
|
|
13955
|
+
filterHash: filterHash,
|
|
13956
|
+
flexibleCompare: flexibleCompare,
|
|
13957
|
+
getEventKey: getEventKey,
|
|
13958
|
+
getEventRangeMeta: getEventRangeMeta,
|
|
13959
|
+
guid: guid,
|
|
13960
|
+
identity: identity,
|
|
13961
|
+
isArraysEqual: isArraysEqual,
|
|
13962
|
+
isPropsEqualShallow: isPropsEqualShallow,
|
|
13963
|
+
mapHash: mapHash,
|
|
13964
|
+
mergeEventStores: mergeEventStores,
|
|
13965
|
+
parseFieldSpecs: parseFieldSpecs,
|
|
13966
|
+
refineClassName: refineClassName,
|
|
13967
|
+
refineClassNameGenerator: refineClassNameGenerator,
|
|
13968
|
+
refineProps: refineProps,
|
|
13969
|
+
removeExact: removeExact,
|
|
13970
|
+
sortEventSegs: sortEventSegs,
|
|
13971
|
+
warn: warn,
|
|
13972
|
+
CalendarApiImpl: CalendarApiImpl,
|
|
13973
|
+
CalendarDataManager: CalendarDataManager,
|
|
13974
|
+
CalendarInner: CalendarInner,
|
|
13975
|
+
CalendarMediaRoot: CalendarMediaRoot,
|
|
13976
|
+
computeRootClassName: computeRootClassName,
|
|
13977
|
+
parseBusinessHours: parseBusinessHours,
|
|
13978
|
+
BaseComponent: BaseComponent,
|
|
13979
|
+
ContentContainer: ContentContainer,
|
|
13980
|
+
RenderId: RenderId,
|
|
13981
|
+
generateClassName: generateClassName,
|
|
13982
|
+
getFooterScrollbarSticky: getFooterScrollbarSticky,
|
|
13983
|
+
getIsHeightAuto: getIsHeightAuto,
|
|
13984
|
+
getTableHeaderSticky: getTableHeaderSticky,
|
|
13985
|
+
memoize: memoize,
|
|
13986
|
+
memoizeObjArg: memoizeObjArg,
|
|
13987
|
+
setRef: setRef,
|
|
13988
|
+
computeEdges: computeEdges,
|
|
13989
|
+
computeInnerRect: computeInnerRect,
|
|
13990
|
+
getRectCenter: getRectCenter,
|
|
13991
|
+
joinFuncishClassNames: joinFuncishClassNames,
|
|
13992
|
+
mergeCalendarOptions: mergeCalendarOptions,
|
|
13993
|
+
mergeContentInjectors: mergeContentInjectors,
|
|
13994
|
+
mergeLifecycleCallbacks: mergeLifecycleCallbacks,
|
|
13995
|
+
mergeViewOptionsMap: mergeViewOptionsMap,
|
|
13996
|
+
applyStyleProp: applyStyleProp,
|
|
13997
|
+
computeElIsRtl: computeElIsRtl,
|
|
13998
|
+
AllDaySplitter: AllDaySplitter,
|
|
13999
|
+
DayTimeColsSlicer: DayTimeColsSlicer,
|
|
14000
|
+
NowIndicatorDot: NowIndicatorDot,
|
|
14001
|
+
NowIndicatorHeaderContainer: NowIndicatorHeaderContainer,
|
|
14002
|
+
NowIndicatorLineContainer: NowIndicatorLineContainer,
|
|
14003
|
+
Splitter: Splitter,
|
|
14004
|
+
TimeGridLayout: TimeGridLayout,
|
|
14005
|
+
buildDayRanges: buildDayRanges,
|
|
14006
|
+
buildTimeColsModel: buildTimeColsModel,
|
|
14007
|
+
organizeSegsByCol: organizeSegsByCol,
|
|
14008
|
+
splitInteractionByCol: splitInteractionByCol,
|
|
14009
|
+
DateComponent: DateComponent,
|
|
14010
|
+
DelayedRunner: DelayedRunner,
|
|
14011
|
+
NowTimer: NowTimer,
|
|
14012
|
+
Scroller: Scroller,
|
|
14013
|
+
StandardEvent: StandardEvent,
|
|
14014
|
+
ViewContainer: ViewContainer,
|
|
14015
|
+
afterSize: afterSize,
|
|
14016
|
+
buildNavLinkAttrs: buildNavLinkAttrs,
|
|
14017
|
+
getDateMeta: getDateMeta,
|
|
14018
|
+
watchHeight: watchHeight,
|
|
14019
|
+
watchSize: watchSize,
|
|
14020
|
+
watchWidth: watchWidth,
|
|
14021
|
+
requestJson: requestJson,
|
|
14022
|
+
unpromisify: unpromisify,
|
|
14023
|
+
Emitter: Emitter,
|
|
14024
|
+
DateProfileGenerator: DateProfileGenerator,
|
|
14025
|
+
computeMajorUnit: computeMajorUnit,
|
|
14026
|
+
isMajorUnit: isMajorUnit,
|
|
14027
|
+
BgEvent: BgEvent,
|
|
14028
|
+
DayTableModel: DayTableModel,
|
|
14029
|
+
DayTableSlicer: DayTableSlicer,
|
|
14030
|
+
MoreLinkContainer: MoreLinkContainer,
|
|
14031
|
+
RefMap: RefMap,
|
|
14032
|
+
Ruler: Ruler,
|
|
14033
|
+
SegHierarchy: SegHierarchy,
|
|
14034
|
+
Slicer: Slicer,
|
|
14035
|
+
buildDateDataConfigs: buildDateDataConfigs,
|
|
14036
|
+
buildDateRenderConfig: buildDateRenderConfig,
|
|
14037
|
+
buildDateRowConfig: buildDateRowConfig,
|
|
14038
|
+
buildDayTableModel: buildDayTableModel,
|
|
14039
|
+
createDayHeaderFormatter: createDayHeaderFormatter,
|
|
14040
|
+
groupIntersectingSegs: groupIntersectingSegs,
|
|
14041
|
+
renderFill: renderFill,
|
|
14042
|
+
ElementDragging: ElementDragging,
|
|
14043
|
+
config: config,
|
|
14044
|
+
isPropsValid: isPropsValid,
|
|
14045
|
+
DayGridLayout: DayGridLayout,
|
|
14046
|
+
FooterScrollbar: FooterScrollbar,
|
|
14047
|
+
DateEnv: DateEnv,
|
|
14048
|
+
addDays: addDays,
|
|
14049
|
+
addMs: addMs,
|
|
14050
|
+
asCleanDays: asCleanDays,
|
|
14051
|
+
asRoughMinutes: asRoughMinutes,
|
|
14052
|
+
asRoughMs: asRoughMs,
|
|
14053
|
+
asRoughSeconds: asRoughSeconds,
|
|
14054
|
+
createDuration: createDuration,
|
|
14055
|
+
diffDayAndTime: diffDayAndTime,
|
|
14056
|
+
diffWholeDays: diffWholeDays,
|
|
14057
|
+
diffWholeWeeks: diffWholeWeeks,
|
|
14058
|
+
formatDayString: formatDayString,
|
|
14059
|
+
greatestDurationDenominator: greatestDurationDenominator,
|
|
14060
|
+
intersectRanges: intersectRanges,
|
|
14061
|
+
isInt: isInt,
|
|
14062
|
+
isValidDate: isValidDate,
|
|
14063
|
+
multiplyDuration: multiplyDuration,
|
|
14064
|
+
padStart: padStart,
|
|
14065
|
+
parseMarker: parse,
|
|
14066
|
+
rangeContainsMarker: rangeContainsMarker,
|
|
14067
|
+
rangesEqual: rangesEqual,
|
|
14068
|
+
rangesIntersect: rangesIntersect,
|
|
14069
|
+
startOfDay: startOfDay,
|
|
14070
|
+
wholeDivideDurations: wholeDivideDurations
|
|
13594
14071
|
});
|
|
13595
14072
|
|
|
13596
14073
|
config.touchMouseIgnoreWait = 500;
|
|
@@ -15878,10 +16355,10 @@ var FullCalendar = (function (exports) {
|
|
|
15878
16355
|
}
|
|
15879
16356
|
|
|
15880
16357
|
var interaction = /*#__PURE__*/Object.freeze({
|
|
15881
|
-
|
|
15882
|
-
|
|
15883
|
-
|
|
15884
|
-
|
|
16358
|
+
__proto__: null,
|
|
16359
|
+
Draggable: ExternalDraggable,
|
|
16360
|
+
ThirdPartyDraggable: ThirdPartyDraggable,
|
|
16361
|
+
'default': interactionPlugin
|
|
15885
16362
|
});
|
|
15886
16363
|
|
|
15887
16364
|
class TableDateProfileGenerator extends DateProfileGenerator {
|
|
@@ -15940,9 +16417,9 @@ var FullCalendar = (function (exports) {
|
|
|
15940
16417
|
const datesRepDistinctDays = dayTableModel.rowCount === 1;
|
|
15941
16418
|
const dayHeaderFormat = this.createDayHeaderFormatter(context.options.dayHeaderFormat, datesRepDistinctDays, dayTableModel.colCount);
|
|
15942
16419
|
const slicedProps = this.slicer.sliceProps(props, dateProfile, options.nextDayThreshold, context, dayTableModel);
|
|
15943
|
-
return (u$
|
|
16420
|
+
return (u$1(NowTimer, { unit: "day", children: (nowDate, todayRange) => {
|
|
15944
16421
|
const headerTiers = this.buildDateRowConfigs(dayTableModel.headerDates, datesRepDistinctDays, dateProfile, todayRange, dayHeaderFormat, context);
|
|
15945
|
-
return (u$
|
|
16422
|
+
return (u$1(DayGridLayout, { labelId: props.labelId, labelStr: props.labelStr, dateProfile: dateProfile, todayRange: todayRange, cellRows: dayTableModel.cellRows, forPrint: props.forPrint, className: props.className,
|
|
15946
16423
|
// header content
|
|
15947
16424
|
headerTiers: headerTiers,
|
|
15948
16425
|
// body content
|
|
@@ -15980,8 +16457,8 @@ var FullCalendar = (function (exports) {
|
|
|
15980
16457
|
};
|
|
15981
16458
|
|
|
15982
16459
|
var daygrid = /*#__PURE__*/Object.freeze({
|
|
15983
|
-
|
|
15984
|
-
|
|
16460
|
+
__proto__: null,
|
|
16461
|
+
'default': dayGridPlugin
|
|
15985
16462
|
});
|
|
15986
16463
|
|
|
15987
16464
|
class TimeGridView extends DateComponent {
|
|
@@ -16015,7 +16492,7 @@ var FullCalendar = (function (exports) {
|
|
|
16015
16492
|
const timedProps = this.dayTimeColsSlicer.sliceProps(splitProps.timed, dateProfile, null, context, dayRanges);
|
|
16016
16493
|
const dayHeaderFormat = this.createDayHeaderFormatter(context.options.dayHeaderFormat, true, // datesRepDistinctDays
|
|
16017
16494
|
dayTableModel.colCount);
|
|
16018
|
-
return (u$
|
|
16495
|
+
return (u$1(NowTimer, { unit: options.nowIndicator ? 'minute' : 'day' /* hacky */, children: (nowDate, todayRange) => {
|
|
16019
16496
|
const colCount = dayTableModel.cellRows[0].length;
|
|
16020
16497
|
const nowIndicatorSeg = !props.forPrint && options.nowIndicator &&
|
|
16021
16498
|
this.dayTimeColsSlicer.sliceNowDate(nowDate, dateProfile, options.nextDayThreshold, context, dayRanges);
|
|
@@ -16028,7 +16505,7 @@ var FullCalendar = (function (exports) {
|
|
|
16028
16505
|
const eventResizeByCol = this.splitEventResize(timedProps.eventResize, colCount);
|
|
16029
16506
|
const headerTiers = this.buildDateRowConfigs(dayTableModel.headerDates, true, // datesRepDistinctDays
|
|
16030
16507
|
props.dateProfile, todayRange, dayHeaderFormat, context);
|
|
16031
|
-
return (u$
|
|
16508
|
+
return (u$1(TimeGridLayout, { labelId: props.labelId, labelStr: props.labelStr, dateProfile: dateProfile, nowDate: nowDate, todayRange: todayRange, cells: dayTableModel.cellRows[0], forPrint: props.forPrint, className: props.className,
|
|
16032
16509
|
// header content
|
|
16033
16510
|
headerTiers: headerTiers,
|
|
16034
16511
|
// all-day content
|
|
@@ -16065,8 +16542,8 @@ var FullCalendar = (function (exports) {
|
|
|
16065
16542
|
};
|
|
16066
16543
|
|
|
16067
16544
|
var timegrid = /*#__PURE__*/Object.freeze({
|
|
16068
|
-
|
|
16069
|
-
|
|
16545
|
+
__proto__: null,
|
|
16546
|
+
'default': timeGridPlugin
|
|
16070
16547
|
});
|
|
16071
16548
|
|
|
16072
16549
|
class ListDayHeaderInner extends BaseComponent {
|
|
@@ -16089,7 +16566,7 @@ var FullCalendar = (function (exports) {
|
|
|
16089
16566
|
const navLinkAttrs = hasNavLink
|
|
16090
16567
|
? buildNavLinkAttrs(this.context, props.dayDate, undefined, text, this.props.isTabbable)
|
|
16091
16568
|
: {};
|
|
16092
|
-
return (u$
|
|
16569
|
+
return (u$1(ContentContainer, { tag: "div", attrs: navLinkAttrs, renderProps: renderProps, generatorName: "listDayHeaderContent", customGenerator: options.listDayHeaderContent, defaultGenerator: renderText$1, classNameGenerator: options.listDayHeaderInnerClass }));
|
|
16093
16570
|
}
|
|
16094
16571
|
}
|
|
16095
16572
|
|
|
@@ -16104,10 +16581,10 @@ var FullCalendar = (function (exports) {
|
|
|
16104
16581
|
...dateMeta,
|
|
16105
16582
|
view: viewApi,
|
|
16106
16583
|
};
|
|
16107
|
-
return (u$
|
|
16584
|
+
return (u$1(ContentContainer, { tag: "div", attrs: {
|
|
16108
16585
|
'data-date': formatDayString(dayDate),
|
|
16109
16586
|
...(dateMeta.isToday ? { 'aria-current': 'date' } : {}),
|
|
16110
|
-
}, className: stickyHeaderDates ? classNames.stickyT : '', renderProps: renderProps, generatorName: undefined, classNameGenerator: options.listDayHeaderClass, didMount: options.listDayHeaderDidMount, willUnmount: options.listDayHeaderWillUnmount, children: () => (u$
|
|
16587
|
+
}, className: stickyHeaderDates ? classNames.stickyT : '', renderProps: renderProps, generatorName: undefined, classNameGenerator: options.listDayHeaderClass, didMount: options.listDayHeaderDidMount, willUnmount: options.listDayHeaderWillUnmount, children: () => (u$1(S, { children: [Boolean(listDayFormat) && (u$1(ListDayHeaderInner, { dayDate: dayDate, dayFormat: listDayFormat, isTabbable: true, dateMeta: dateMeta, level: 0 })), Boolean(listDayAltFormat) && (u$1(ListDayHeaderInner, { dayDate: dayDate, dayFormat: listDayAltFormat, isTabbable: false, dateMeta: dateMeta, level: 1 }))] })) }));
|
|
16111
16588
|
}
|
|
16112
16589
|
}
|
|
16113
16590
|
function createDefaultListDayFormat({ durationUnit, singleUnit }) {
|
|
@@ -16144,7 +16621,7 @@ var FullCalendar = (function (exports) {
|
|
|
16144
16621
|
let forcedTimeText = (displayEventTime !== false) && (eventRange.def.allDay || (!props.isStart && !props.isEnd))
|
|
16145
16622
|
? context.options.allDayText
|
|
16146
16623
|
: undefined;
|
|
16147
|
-
return (u$
|
|
16624
|
+
return (u$1(StandardEvent, { ...props, attrs: {
|
|
16148
16625
|
role: 'listitem',
|
|
16149
16626
|
}, forcedTimeText: forcedTimeText, defaultTimeFormat: DEFAULT_TIME_FORMAT, disableDragging: true, disableResizing: true, disableZindexes // because conflicts with sticky list headers
|
|
16150
16627
|
: true, display: 'list-item' }));
|
|
@@ -16175,11 +16652,11 @@ var FullCalendar = (function (exports) {
|
|
|
16175
16652
|
...dateMeta,
|
|
16176
16653
|
view: context.viewApi,
|
|
16177
16654
|
};
|
|
16178
|
-
return (u$
|
|
16655
|
+
return (u$1("div", { role: 'listitem', "aria-label": fullDateStr, className: generateClassName(options.listDayClass, listDayData), children: [u$1(ListDayHeader, { dayDate: props.dayDate, dateMeta: dateMeta, forPrint: props.forPrint }), u$1("div", { role: 'list', "aria-label": options.eventsHint, className: joinClassNames(generateClassName(options.listDayBodyClass, listDayEventsData), classNames.flexCol), children: segs.map((seg, index) => {
|
|
16179
16656
|
const key = getEventKey(seg);
|
|
16180
16657
|
const isFirst = index === 0;
|
|
16181
16658
|
const isLast = index === segs.length - 1;
|
|
16182
|
-
return (u$
|
|
16659
|
+
return (u$1(ListEvent, { eventRange: seg.eventRange, slicedStart: seg.slicedStart, slicedEnd: seg.slicedEnd, isStart: seg.isStart, isEnd: seg.isEnd, isFirst: isFirst, isLast: isLast, isDragging: false, isResizing: false, isMirror: false, isSelected: false, ...getEventRangeMeta(seg.eventRange, todayRange, nowDate) }, key));
|
|
16183
16660
|
}) })] }));
|
|
16184
16661
|
}
|
|
16185
16662
|
}
|
|
@@ -16211,7 +16688,7 @@ var FullCalendar = (function (exports) {
|
|
|
16211
16688
|
let { dayDates, dayRanges } = this.computeDateVars(props.dateProfile);
|
|
16212
16689
|
let eventSegs = this.eventStoreToSegs(props.eventStore, props.eventUiBases, dayRanges);
|
|
16213
16690
|
let verticalScrolling = !props.forPrint && !getIsHeightAuto(options);
|
|
16214
|
-
return (u$
|
|
16691
|
+
return (u$1(ViewContainer, { viewSpec: context.viewSpec, className: joinClassNames(props.className, classNames.flexCol), elRef: this.setRootEl, children: eventSegs.length ? (u$1(Scroller // TODO: don't need heavyweight component
|
|
16215
16692
|
, { vertical: verticalScrolling, className: joinClassNames(classNames.flexCol, verticalScrolling ? classNames.liquid : ''), children: this.renderSegList(eventSegs, dayDates) })) : this.renderEmptyMessage() }));
|
|
16216
16693
|
}
|
|
16217
16694
|
renderEmptyMessage() {
|
|
@@ -16220,14 +16697,14 @@ var FullCalendar = (function (exports) {
|
|
|
16220
16697
|
text: options.noEventsText,
|
|
16221
16698
|
view: viewApi,
|
|
16222
16699
|
};
|
|
16223
|
-
return (u$
|
|
16700
|
+
return (u$1(ContentContainer, { tag: "div", attrs: {
|
|
16224
16701
|
role: 'status', // does a polite announcement
|
|
16225
|
-
}, renderProps: renderProps, generatorName: "noEventsContent", customGenerator: options.noEventsContent, defaultGenerator: renderNoEventsInner, classNameGenerator: options.noEventsClass, className: classNames.grow, didMount: options.noEventsDidMount, willUnmount: options.noEventsWillUnmount, children: (InnerContent) => (u$
|
|
16702
|
+
}, renderProps: renderProps, generatorName: "noEventsContent", customGenerator: options.noEventsContent, defaultGenerator: renderNoEventsInner, classNameGenerator: options.noEventsClass, className: classNames.grow, didMount: options.noEventsDidMount, willUnmount: options.noEventsWillUnmount, children: (InnerContent) => (u$1(InnerContent, { tag: "div", className: generateClassName(options.noEventsInnerClass, renderProps) })) }));
|
|
16226
16703
|
}
|
|
16227
16704
|
renderSegList(allSegs, dayDates) {
|
|
16228
16705
|
let { options } = this.context;
|
|
16229
16706
|
let segsByDay = groupSegsByDay(allSegs); // sparse array
|
|
16230
|
-
return (u$
|
|
16707
|
+
return (u$1("div", { role: "list", "aria-labelledby": this.props.labelId, "aria-label": this.props.labelStr, className: joinClassNames(classNames.flexCol, joinClassNames(options.listDaysClass)), children: u$1(NowTimer, { unit: "day", children: (nowDate, todayRange) => {
|
|
16231
16708
|
const dayNodes = [];
|
|
16232
16709
|
const populatedDayCount = segsByDay.reduce((count, daySegs) => count + (daySegs ? 1 : 0), 0);
|
|
16233
16710
|
let populatedDayIndex = 0;
|
|
@@ -16238,11 +16715,11 @@ var FullCalendar = (function (exports) {
|
|
|
16238
16715
|
const key = formatDayString(dayDate);
|
|
16239
16716
|
const isFirst = populatedDayIndex === 0;
|
|
16240
16717
|
const isLast = populatedDayIndex === populatedDayCount - 1;
|
|
16241
|
-
dayNodes.push(u$
|
|
16718
|
+
dayNodes.push(u$1(ListDay, { dayDate: dayDate, nowDate: nowDate, todayRange: todayRange, segs: daySegs, isFirst: isFirst, isLast: isLast, forPrint: this.props.forPrint }, key));
|
|
16242
16719
|
populatedDayIndex += 1;
|
|
16243
16720
|
}
|
|
16244
16721
|
}
|
|
16245
|
-
return (u$
|
|
16722
|
+
return (u$1(S, { children: dayNodes }));
|
|
16246
16723
|
} }) }));
|
|
16247
16724
|
}
|
|
16248
16725
|
_eventStoreToSegs(eventStore, eventUiBases, dayRanges) {
|
|
@@ -16336,8 +16813,8 @@ var FullCalendar = (function (exports) {
|
|
|
16336
16813
|
};
|
|
16337
16814
|
|
|
16338
16815
|
var list = /*#__PURE__*/Object.freeze({
|
|
16339
|
-
|
|
16340
|
-
|
|
16816
|
+
__proto__: null,
|
|
16817
|
+
'default': listPlugin
|
|
16341
16818
|
});
|
|
16342
16819
|
|
|
16343
16820
|
class SingleMonth extends DateComponent {
|
|
@@ -16426,25 +16903,25 @@ var FullCalendar = (function (exports) {
|
|
|
16426
16903
|
const navLinkAttrs = hasNavLink
|
|
16427
16904
|
? buildNavLinkAttrs(context, monthStartDate, 'month', props.isoDateStr)
|
|
16428
16905
|
: {};
|
|
16429
|
-
return (u$
|
|
16906
|
+
return (u$1("div", { role: 'listitem', style: { width: props.width }, children: u$1("div", { role: 'grid', "aria-labelledby": this.titleId, "data-date": props.isoDateStr, className: joinClassNames(generateClassName(options.singleMonthClass, {
|
|
16430
16907
|
isFirst: props.isFirst,
|
|
16431
16908
|
isLast: props.isLast,
|
|
16432
16909
|
multiMonthColumns: props.colCount || 0,
|
|
16433
|
-
}), classNames.flexCol, props.hasLateralSiblings && classNames.breakInsideAvoid), children: [u$
|
|
16910
|
+
}), classNames.flexCol, props.hasLateralSiblings && classNames.breakInsideAvoid), children: [u$1(Ruler, { widthRef: this.handleGridWidth }), u$1("div", { id: this.titleId, ref: this.titleElRef, className: joinClassNames(generateClassName(options.singleMonthHeaderClass, headerRenderProps), isTitleAndHeaderSticky && classNames.stickyT, classNames.flexCol), style: {
|
|
16434
16911
|
// HACK to keep zIndex above table-header,
|
|
16435
16912
|
// because in Chrome, something about position:sticky on this title div
|
|
16436
16913
|
// causes its bottom border to no be considered part of its mass,
|
|
16437
16914
|
// and would get overlapped and hidden by the table-header div
|
|
16438
16915
|
zIndex: isTitleAndHeaderSticky ? 3 : undefined, // TODO: className?
|
|
16439
16916
|
marginBottom: titleStickyBottom,
|
|
16440
|
-
}, children: u$
|
|
16917
|
+
}, children: u$1("div", { ...navLinkAttrs, className: joinClassNames(generateClassName(options.singleMonthHeaderInnerClass, headerRenderProps), navLinkAttrs.className), children: joinDateTimeFormatParts(dateEnv.formatToParts(monthStartDate, props.titleFormat)) }) }), u$1("div", { className: joinClassNames(generateClassName(options.tableClass, {
|
|
16441
16918
|
borderlessX,
|
|
16442
16919
|
borderlessTop,
|
|
16443
16920
|
borderlessBottom,
|
|
16444
16921
|
multiMonthColumns: props.colCount || 0,
|
|
16445
16922
|
}), classNames.flexCol), style: {
|
|
16446
16923
|
marginTop: titleStickyBottom != null ? -titleStickyBottom : undefined,
|
|
16447
|
-
}, children: [u$
|
|
16924
|
+
}, children: [u$1("div", { ref: this.tableHeaderElRef, className: joinClassNames(generateClassName(options.tableHeaderClass, {
|
|
16448
16925
|
isSticky: isTitleAndHeaderSticky,
|
|
16449
16926
|
borderlessX,
|
|
16450
16927
|
borderlessTop,
|
|
@@ -16454,11 +16931,11 @@ var FullCalendar = (function (exports) {
|
|
|
16454
16931
|
zIndex: isTitleAndHeaderSticky ? 2 : undefined, // TODO: className?
|
|
16455
16932
|
top: isTitleAndHeaderSticky ? state.titleHeight : 0,
|
|
16456
16933
|
marginBottom: headerStickyBottom,
|
|
16457
|
-
}, children: [u$
|
|
16934
|
+
}, children: [u$1(DayGridHeaderRow, { ...rowConfig, role: 'row', borderBottom: false, cellIsNarrow: cellIsNarrow, cellIsMicro: cellIsMicro, rowLevel: 0 }), u$1("div", { className: generateClassName(options.dayHeaderDividerClass, {
|
|
16458
16935
|
isSticky: isTitleAndHeaderSticky,
|
|
16459
16936
|
multiMonthColumns: props.colCount || 0,
|
|
16460
16937
|
options: { allDaySlot: Boolean(options.allDaySlot) },
|
|
16461
|
-
}) })] }), u$
|
|
16938
|
+
}) })] }), u$1("div", { className: joinClassNames(generateClassName(options.tableBodyClass, {
|
|
16462
16939
|
borderlessX,
|
|
16463
16940
|
borderlessTop,
|
|
16464
16941
|
borderlessBottom,
|
|
@@ -16467,7 +16944,7 @@ var FullCalendar = (function (exports) {
|
|
|
16467
16944
|
zIndex: isTitleAndHeaderSticky ? 1 : undefined, // TODO: className?
|
|
16468
16945
|
marginTop: headerStickyBottom != null ? -headerStickyBottom : undefined,
|
|
16469
16946
|
aspectRatio: isAspectRatio ? String(options.aspectRatio) : undefined,
|
|
16470
|
-
}, children: u$
|
|
16947
|
+
}, children: u$1(DayGridRows, { dateProfile: props.dateProfile, todayRange: props.todayRange, cellRows: dayTableModel.cellRows, className: isAspectRatio ? classNames.fill : '', forPrint: forPrint && !props.hasLateralSiblings, dayMaxEventRows: (forPrint && props.hasLateralSiblings)
|
|
16471
16948
|
? 1 // for side-by-side multimonths, limit to one row
|
|
16472
16949
|
: true // otherwise, always do +more link, never expand rows
|
|
16473
16950
|
,
|
|
@@ -16548,13 +17025,13 @@ var FullCalendar = (function (exports) {
|
|
|
16548
17025
|
cssMonthWidth = fracToCssDim(1 / cols);
|
|
16549
17026
|
hasLateralSiblings = cols > 1;
|
|
16550
17027
|
}
|
|
16551
|
-
return (u$
|
|
17028
|
+
return (u$1(NowTimer, { unit: "day", children: (nowDate, todayRange) => (u$1(ViewContainer, { viewSpec: context.viewSpec, className: joinClassNames(
|
|
16552
17029
|
// HACK for Safari. Can't do break-inside:avoid with flexbox items, likely b/c it's not standard:
|
|
16553
17030
|
// https://stackoverflow.com/a/60256345
|
|
16554
|
-
!props.forPrint && classNames.flexCol, props.className), children: [u$
|
|
17031
|
+
!props.forPrint && classNames.flexCol, props.className), children: [u$1(Scroller, { vertical: verticalScrolling, className: verticalScrolling ? classNames.liquid : '', ref: this.scrollerRef, children: u$1("div", { role: 'list', ref: this.tilesElRef, "aria-labelledby": props.labelId, "aria-label": props.labelStr, className: classNames.safeTiles, children: monthDateProfiles.map((monthDateProfile, i) => {
|
|
16555
17032
|
const monthStr = formatIsoMonthStr(monthDateProfile.currentRange.start);
|
|
16556
17033
|
return (k$1(SingleMonth, { ...props, key: monthStr, todayRange: todayRange, isoDateStr: monthStr, titleFormat: monthTitleFormat, dateProfile: monthDateProfile, width: cssMonthWidth, colCount: cols, isFirst: !i, isLast: i === monthDateProfiles.length - 1, hasLateralSiblings: hasLateralSiblings }));
|
|
16557
|
-
}) }) }), u$
|
|
17034
|
+
}) }) }), u$1(Ruler, { widthRef: this.handleInnerWidth })] })) }));
|
|
16558
17035
|
}
|
|
16559
17036
|
// Lifecycle
|
|
16560
17037
|
// -----------------------------------------------------------------------------------------------
|
|
@@ -16694,8 +17171,8 @@ var FullCalendar = (function (exports) {
|
|
|
16694
17171
|
};
|
|
16695
17172
|
|
|
16696
17173
|
var multimonth = /*#__PURE__*/Object.freeze({
|
|
16697
|
-
|
|
16698
|
-
|
|
17174
|
+
__proto__: null,
|
|
17175
|
+
'default': multiMonthPlugin
|
|
16699
17176
|
});
|
|
16700
17177
|
|
|
16701
17178
|
const blankButtonState = {
|
|
@@ -16799,7 +17276,7 @@ var FullCalendar = (function (exports) {
|
|
|
16799
17276
|
return sliceEventStore(props.eventStore, props.eventUiBases, props.dateProfile.activeRange, allDay ? props.nextDayThreshold : null).fg;
|
|
16800
17277
|
}
|
|
16801
17278
|
|
|
16802
|
-
const version = '7.0.0
|
|
17279
|
+
const version = '7.0.0';
|
|
16803
17280
|
|
|
16804
17281
|
var protectedStyles = /*#__PURE__*/Object.freeze({
|
|
16805
17282
|
__proto__: null,
|
|
@@ -16852,7 +17329,7 @@ var FullCalendar = (function (exports) {
|
|
|
16852
17329
|
let { currentData } = this;
|
|
16853
17330
|
this.isRendered = true;
|
|
16854
17331
|
bn(() => {
|
|
16855
|
-
this.vdomRoot.render(u$
|
|
17332
|
+
this.vdomRoot.render(u$1(S, { children: u$1(RenderId.Provider, { value: this.customContentRenderId, children: u$1(CalendarMediaRoot, { emitter: currentData.emitter, children: (forPrint) => {
|
|
16856
17333
|
const options = currentData.calendarOptions;
|
|
16857
17334
|
const isRtl = options.direction === 'rtl';
|
|
16858
17335
|
const className = computeRootClassName(options, forPrint);
|
|
@@ -16860,7 +17337,7 @@ var FullCalendar = (function (exports) {
|
|
|
16860
17337
|
this.setClassName(className);
|
|
16861
17338
|
this.setHeight(options.height);
|
|
16862
17339
|
this.setColorScheme(options.colorScheme || '');
|
|
16863
|
-
return (u$
|
|
17340
|
+
return (u$1(CalendarInner, { ...currentData, forPrint: forPrint, baseId: this.baseId }));
|
|
16864
17341
|
} }) }) }));
|
|
16865
17342
|
});
|
|
16866
17343
|
}
|
|
@@ -16972,7 +17449,7 @@ var FullCalendar = (function (exports) {
|
|
|
16972
17449
|
}
|
|
16973
17450
|
}
|
|
16974
17451
|
|
|
16975
|
-
const Shared = { F: globalLocales, G: globalPlugins, H: joinClassNames, S, u: u$
|
|
17452
|
+
const Shared = { F: globalLocales, G: globalPlugins, H: joinClassNames, S, u: u$1 };
|
|
16976
17453
|
|
|
16977
17454
|
exports.Calendar = Calendar;
|
|
16978
17455
|
exports.CalendarController = CalendarController;
|