summaryrefslogtreecommitdiff
path: root/docs/timeline.html
blob: 6fef53af5d7899b9978c6e0d6340b3bfa0110ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
  <head><script>var __markwhen_initial_state = {"rawText":"333 // Overview and Deadlines\nsection Semesters and Meetings\n2025-01-27/2025-05-20: Spring 25\n2025-05-21/2025-08-12:Summer 25\n2025-08-13/2025-12-23:Fall 25\n\n2025-01-27: Initial Meeting\n2025-02-14 every other week for 3 months: Meetings\nend\n\n// PROJECT START\nsection Phase 1: Planning\n2025-02-03: Define course objectives and learning outcomes\n2025-02-03: Lay out course overview\n2025-02-04: Structure course syllabus based on objectives and CLOs\n2025-02-04: Align topics with mechanical engineering applications\n2025-02-17/2025-02-21: Develop grading and assessment strategy\n- [ ] quizzes\n- [ ] projects\n- [ ] exams\nend\n\nsection Phase 2: Tutorial Development - Creating\n2025-02-24/2025-03-21: Develop programming fundamentals materials\n- [x] Intro to Programming\n- [x] Installing Anaconda\n- [x] Intro to Anaconda\n- [x] Intro to Spyder\n- [x] Basics of python\n- [x] Arrays (Numpy)\n- [x] Functions\n- [x] Control Structures\n- [ ] Classes/Objects\n2025-03-19/2025-03-27: Create algorithm development materials \n- [x] Problem solving strategies \n- [x] Version Control\n- [ ] Code debugging\n- [ ] Code documentation\n- [ ] Code Libraries & Resources (GitHub)\n- [x] AI Assisted Programming\n- [ ] Verification and Validation\n- [ ] Root finding methods\n- [ ] Linear Regression\n2025-03-31/2025-04-04: Develop application of computational mathematics content\n- [ ] System of Equations and LU Decomposition\n- [ ] Nonlinear Equation Solver\n- [ ] Numerical Differentiation and integration application\n2025-04-07/2025-04-10: Design data processing and visualization lessons\n- [ ] Importing Scientific data (Intro to Pandas)\n- [ ] Plotting (Intro to Matplotlib)\n- [ ] Data Processing\n- [ ] Data visualization\n2025-04-14/2025-04-18: Develop AI & machine learning introduction materials\nend\n- [ ] Supervised vs unsupervised learning\n- [ ] Neural Networks\n\nsection Phase 3: Tutorial Development - Revision\n2025-04-21/2025-05-01: Edit programming fundamentals materials\n2025-04-21/2025-05-01: Edit algorithm development materials \n2025-04-21/2025-05-01: Edit numerical methods & computational mathematics content\n2025-04-21/2025-05-01: Edit data processing and visualization lessons\n2025-04-21/2025-05-01: Edit AI & machine learning introduction materials\nend\n\nsection Phase 4: Resource Creation\n2025-05-05/2025-05-16: Develop lecture slides and presentation materials\n2025-05-05/2025-05-16: Create coding exercises and projects for each module\n2025-05-19/2025-06-01: Prepare course reference materials \n- [ ] reading list\n- [ ] documentation guides\nend\n\nsection Phase 5: Implementation & Testing\n2025-06-23/2025-07-04: Refine based on feedback, prepare learning platform\n2025-06-02/2025-06-13: Conduct pilot course with a small student group\n2025-06-09/2025-06-20: Collect feedback and finalize materials\nend\n\nsection Phase 6: Course Launch\n2025-07-07/2025-07-18: Final adjustments and platform setup\n2025-08-04: Soft Deadline\n2026-01-20/2026-03-04: Official course launch and first semester rollout\nend","parsed":[{"events":{"value":[{"value":[{"value":{"eventString":"2025-01-27/2025-05-20: Spring 25","eventText":" Spring 25","dateRangeIso":{"fromDateTimeIso":"2025-01-27T00:00:00.000-07:00","toDateTimeIso":"2025-05-21T00:00:00.000-06:00"},"rangeInText":{"from":61,"to":94,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Spring 25"},"dateText":"2025-01-27/2025-05-20","dateRangeInText":{"type":"dateRange","from":61,"to":82}}},{"value":{"eventString":"2025-05-21/2025-08-12:Summer 25","eventText":"Summer 25","dateRangeIso":{"fromDateTimeIso":"2025-05-21T00:00:00.000-06:00","toDateTimeIso":"2025-08-13T00:00:00.000-06:00"},"rangeInText":{"from":94,"to":126,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Summer 25"},"dateText":"2025-05-21/2025-08-12","dateRangeInText":{"type":"dateRange","from":94,"to":115}}},{"value":{"eventString":"2025-08-13/2025-12-23:Fall 25","eventText":"Fall 25","dateRangeIso":{"fromDateTimeIso":"2025-08-13T00:00:00.000-06:00","toDateTimeIso":"2025-12-24T00:00:00.000-07:00"},"rangeInText":{"from":126,"to":157,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Fall 25"},"dateText":"2025-08-13/2025-12-23","dateRangeInText":{"type":"dateRange","from":126,"to":147}}},{"value":{"eventString":"2025-01-27: Initial Meeting","eventText":" Initial Meeting","dateRangeIso":{"fromDateTimeIso":"2025-01-27T00:00:00.000-07:00","toDateTimeIso":"2025-01-28T00:00:00.000-07:00"},"rangeInText":{"from":157,"to":185,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Initial Meeting"},"dateText":"2025-01-27","dateRangeInText":{"type":"dateRange","from":157,"to":167}}},{"value":{"eventString":"2025-02-14 every other week for 3 months: Meetings","eventText":" Meetings","dateRangeIso":{"fromDateTimeIso":"2025-02-14T00:00:00.000-07:00","toDateTimeIso":"2025-02-15T00:00:00.000-07:00"},"recurrence":{"every":{"weeks":2},"for":{"months":3}},"recurrenceRangeInText":{"type":"recurrence","from":195,"to":225,"content":" every other week for 3 months"},"rangeInText":{"from":185,"to":236,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Meetings"},"dateText":"2025-02-14","dateRangeInText":{"type":"dateRange","from":185,"to":195}}}],"tags":[],"style":"section","rangeInText":{"from":30,"to":38,"type":"section"},"startExpanded":true,"title":"Semesters and Meetings"},{"value":[{"value":{"eventString":"2025-02-03: Define course objectives and learning outcomes","eventText":" Define course objectives and learning outcomes","dateRangeIso":{"fromDateTimeIso":"2025-02-03T00:00:00.000-07:00","toDateTimeIso":"2025-02-04T00:00:00.000-07:00"},"rangeInText":{"from":284,"to":343,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Define course objectives and learning outcomes"},"dateText":"2025-02-03","dateRangeInText":{"type":"dateRange","from":284,"to":294}}},{"value":{"eventString":"2025-02-03: Lay out course overview","eventText":" Lay out course overview","dateRangeIso":{"fromDateTimeIso":"2025-02-03T00:00:00.000-07:00","toDateTimeIso":"2025-02-04T00:00:00.000-07:00"},"rangeInText":{"from":343,"to":379,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Lay out course overview"},"dateText":"2025-02-03","dateRangeInText":{"type":"dateRange","from":343,"to":353}}},{"value":{"eventString":"2025-02-04: Structure course syllabus based on objectives and CLOs","eventText":" Structure course syllabus based on objectives and CLOs","dateRangeIso":{"fromDateTimeIso":"2025-02-04T00:00:00.000-07:00","toDateTimeIso":"2025-02-05T00:00:00.000-07:00"},"rangeInText":{"from":379,"to":446,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Structure course syllabus based on objectives and CLOs"},"dateText":"2025-02-04","dateRangeInText":{"type":"dateRange","from":379,"to":389}}},{"value":{"eventString":"2025-02-04: Align topics with mechanical engineering applications","eventText":" Align topics with mechanical engineering applications","dateRangeIso":{"fromDateTimeIso":"2025-02-04T00:00:00.000-07:00","toDateTimeIso":"2025-02-05T00:00:00.000-07:00"},"rangeInText":{"from":446,"to":512,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Align topics with mechanical engineering applications"},"dateText":"2025-02-04","dateRangeInText":{"type":"dateRange","from":446,"to":456}}},{"value":{"eventString":"2025-02-17/2025-02-21: Develop grading and assessment strategy","eventText":" Develop grading and assessment strategy","dateRangeIso":{"fromDateTimeIso":"2025-02-17T00:00:00.000-07:00","toDateTimeIso":"2025-02-22T00:00:00.000-07:00"},"rangeInText":{"from":512,"to":616,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"quizzes","type":"checkbox","value":false},{"raw":"projects","type":"checkbox","value":false},{"raw":"exams","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":575,"to":580,"content":false},{"type":"listItemContents","from":580,"to":587},{"type":"checkboxItemIndicator","from":589,"to":594,"content":false},{"type":"listItemContents","from":594,"to":602},{"type":"checkboxItemIndicator","from":604,"to":609,"content":false},{"type":"listItemContents","from":609,"to":614}],"eventDescription":"Develop grading and assessment strategy"},"dateText":"2025-02-17/2025-02-21","dateRangeInText":{"type":"dateRange","from":512,"to":533}}}],"tags":[],"style":"section","rangeInText":{"from":258,"to":266,"type":"section"},"startExpanded":true,"title":"Phase 1: Planning"},{"value":[{"value":{"eventString":"2025-02-24/2025-03-21: Develop programming fundamentals materials","eventText":" Develop programming fundamentals materials","dateRangeIso":{"fromDateTimeIso":"2025-02-24T00:00:00.000-07:00","toDateTimeIso":"2025-03-22T00:00:00.000-06:00"},"rangeInText":{"from":670,"to":942,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"Intro to Programming","type":"checkbox","value":true},{"raw":"Installing Anaconda","type":"checkbox","value":true},{"raw":"Intro to Anaconda","type":"checkbox","value":true},{"raw":"Intro to Spyder","type":"checkbox","value":true},{"raw":"Basics of python","type":"checkbox","value":true},{"raw":"Arrays (Numpy)","type":"checkbox","value":true},{"raw":"Functions","type":"checkbox","value":true},{"raw":"Control Structures","type":"checkbox","value":true},{"raw":"Classes/Objects","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":736,"to":741,"content":true},{"type":"listItemContents","from":741,"to":761},{"type":"checkboxItemIndicator","from":763,"to":768,"content":true},{"type":"listItemContents","from":768,"to":787},{"type":"checkboxItemIndicator","from":789,"to":794,"content":true},{"type":"listItemContents","from":794,"to":811},{"type":"checkboxItemIndicator","from":813,"to":818,"content":true},{"type":"listItemContents","from":818,"to":833},{"type":"checkboxItemIndicator","from":835,"to":840,"content":true},{"type":"listItemContents","from":840,"to":856},{"type":"checkboxItemIndicator","from":858,"to":863,"content":true},{"type":"listItemContents","from":863,"to":877},{"type":"checkboxItemIndicator","from":879,"to":884,"content":true},{"type":"listItemContents","from":884,"to":893},{"type":"checkboxItemIndicator","from":895,"to":900,"content":true},{"type":"listItemContents","from":900,"to":918},{"type":"checkboxItemIndicator","from":920,"to":925,"content":false},{"type":"listItemContents","from":925,"to":940}],"eventDescription":"Develop programming fundamentals materials"},"dateText":"2025-02-24/2025-03-21","dateRangeInText":{"type":"dateRange","from":670,"to":691}}},{"value":{"eventString":"2025-03-19/2025-03-27: Create algorithm development materials ","eventText":" Create algorithm development materials ","dateRangeIso":{"fromDateTimeIso":"2025-03-19T00:00:00.000-06:00","toDateTimeIso":"2025-03-28T00:00:00.000-06:00"},"rangeInText":{"from":942,"to":1264,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"Problem solving strategies","type":"checkbox","value":true},{"raw":"Version Control","type":"checkbox","value":true},{"raw":"Code debugging","type":"checkbox","value":false},{"raw":"Code documentation","type":"checkbox","value":false},{"raw":"Code Libraries & Resources (GitHub)","type":"checkbox","value":false},{"raw":"AI Assisted Programming","type":"checkbox","value":true},{"raw":"Verification and Validation","type":"checkbox","value":false},{"raw":"Root finding methods","type":"checkbox","value":false},{"raw":"Linear Regression","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":1005,"to":1010,"content":true},{"type":"listItemContents","from":1010,"to":1037},{"type":"checkboxItemIndicator","from":1039,"to":1044,"content":true},{"type":"listItemContents","from":1044,"to":1059},{"type":"checkboxItemIndicator","from":1061,"to":1066,"content":false},{"type":"listItemContents","from":1066,"to":1080},{"type":"checkboxItemIndicator","from":1082,"to":1087,"content":false},{"type":"listItemContents","from":1087,"to":1105},{"type":"checkboxItemIndicator","from":1107,"to":1112,"content":false},{"type":"listItemContents","from":1112,"to":1147},{"type":"checkboxItemIndicator","from":1149,"to":1154,"content":true},{"type":"listItemContents","from":1154,"to":1177},{"type":"checkboxItemIndicator","from":1179,"to":1184,"content":false},{"type":"listItemContents","from":1184,"to":1211},{"type":"checkboxItemIndicator","from":1213,"to":1218,"content":false},{"type":"listItemContents","from":1218,"to":1238},{"type":"checkboxItemIndicator","from":1240,"to":1245,"content":false},{"type":"listItemContents","from":1245,"to":1262}],"eventDescription":"Create algorithm development materials"},"dateText":"2025-03-19/2025-03-27","dateRangeInText":{"type":"dateRange","from":942,"to":963}}},{"value":{"eventString":"2025-03-31/2025-04-04: Develop application of computational mathematics content","eventText":" Develop application of computational mathematics content","dateRangeIso":{"fromDateTimeIso":"2025-03-31T00:00:00.000-06:00","toDateTimeIso":"2025-04-05T00:00:00.000-06:00"},"rangeInText":{"from":1264,"to":1483,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"System of Equations and LU Decomposition","type":"checkbox","value":false},{"raw":"Nonlinear Equation Solver","type":"checkbox","value":false},{"raw":"Numerical Differentiation and integration application","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":1344,"to":1349,"content":false},{"type":"listItemContents","from":1349,"to":1389},{"type":"checkboxItemIndicator","from":1391,"to":1396,"content":false},{"type":"listItemContents","from":1396,"to":1421},{"type":"checkboxItemIndicator","from":1423,"to":1428,"content":false},{"type":"listItemContents","from":1428,"to":1481}],"eventDescription":"Develop application of computational mathematics content"},"dateText":"2025-03-31/2025-04-04","dateRangeInText":{"type":"dateRange","from":1264,"to":1285}}},{"value":{"eventString":"2025-04-07/2025-04-10: Design data processing and visualization lessons","eventText":" Design data processing and visualization lessons","dateRangeIso":{"fromDateTimeIso":"2025-04-07T00:00:00.000-06:00","toDateTimeIso":"2025-04-11T00:00:00.000-06:00"},"rangeInText":{"from":1483,"to":1689,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"Importing Scientific data (Intro to Pandas)","type":"checkbox","value":false},{"raw":"Plotting (Intro to Matplotlib)","type":"checkbox","value":false},{"raw":"Data Processing","type":"checkbox","value":false},{"raw":"Data visualization","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":1555,"to":1560,"content":false},{"type":"listItemContents","from":1560,"to":1603},{"type":"checkboxItemIndicator","from":1605,"to":1610,"content":false},{"type":"listItemContents","from":1610,"to":1640},{"type":"checkboxItemIndicator","from":1642,"to":1647,"content":false},{"type":"listItemContents","from":1647,"to":1662},{"type":"checkboxItemIndicator","from":1664,"to":1669,"content":false},{"type":"listItemContents","from":1669,"to":1687}],"eventDescription":"Design data processing and visualization lessons"},"dateText":"2025-04-07/2025-04-10","dateRangeInText":{"type":"dateRange","from":1483,"to":1504}}},{"value":{"eventString":"2025-04-14/2025-04-18: Develop AI & machine learning introduction materials","eventText":" Develop AI & machine learning introduction materials","dateRangeIso":{"fromDateTimeIso":"2025-04-14T00:00:00.000-06:00","toDateTimeIso":"2025-04-19T00:00:00.000-06:00"},"rangeInText":{"from":1689,"to":1765,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Develop AI & machine learning introduction materials"},"dateText":"2025-04-14/2025-04-18","dateRangeInText":{"type":"dateRange","from":1689,"to":1710}}}],"tags":[],"style":"section","rangeInText":{"from":621,"to":629,"type":"section"},"startExpanded":true,"title":"Phase 2: Tutorial Development - Creating"},{"value":[{"value":{"eventString":"2025-04-21/2025-05-01: Edit programming fundamentals materials","eventText":" Edit programming fundamentals materials","dateRangeIso":{"fromDateTimeIso":"2025-04-21T00:00:00.000-06:00","toDateTimeIso":"2025-05-02T00:00:00.000-06:00"},"rangeInText":{"from":1883,"to":1946,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Edit programming fundamentals materials"},"dateText":"2025-04-21/2025-05-01","dateRangeInText":{"type":"dateRange","from":1883,"to":1904}}},{"value":{"eventString":"2025-04-21/2025-05-01: Edit algorithm development materials ","eventText":" Edit algorithm development materials ","dateRangeIso":{"fromDateTimeIso":"2025-04-21T00:00:00.000-06:00","toDateTimeIso":"2025-05-02T00:00:00.000-06:00"},"rangeInText":{"from":1946,"to":2007,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Edit algorithm development materials"},"dateText":"2025-04-21/2025-05-01","dateRangeInText":{"type":"dateRange","from":1946,"to":1967}}},{"value":{"eventString":"2025-04-21/2025-05-01: Edit numerical methods & computational mathematics content","eventText":" Edit numerical methods & computational mathematics content","dateRangeIso":{"fromDateTimeIso":"2025-04-21T00:00:00.000-06:00","toDateTimeIso":"2025-05-02T00:00:00.000-06:00"},"rangeInText":{"from":2007,"to":2089,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Edit numerical methods & computational mathematics content"},"dateText":"2025-04-21/2025-05-01","dateRangeInText":{"type":"dateRange","from":2007,"to":2028}}},{"value":{"eventString":"2025-04-21/2025-05-01: Edit data processing and visualization lessons","eventText":" Edit data processing and visualization lessons","dateRangeIso":{"fromDateTimeIso":"2025-04-21T00:00:00.000-06:00","toDateTimeIso":"2025-05-02T00:00:00.000-06:00"},"rangeInText":{"from":2089,"to":2159,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Edit data processing and visualization lessons"},"dateText":"2025-04-21/2025-05-01","dateRangeInText":{"type":"dateRange","from":2089,"to":2110}}},{"value":{"eventString":"2025-04-21/2025-05-01: Edit AI & machine learning introduction materials","eventText":" Edit AI & machine learning introduction materials","dateRangeIso":{"fromDateTimeIso":"2025-04-21T00:00:00.000-06:00","toDateTimeIso":"2025-05-02T00:00:00.000-06:00"},"rangeInText":{"from":2159,"to":2232,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Edit AI & machine learning introduction materials"},"dateText":"2025-04-21/2025-05-01","dateRangeInText":{"type":"dateRange","from":2159,"to":2180}}}],"tags":[],"style":"section","rangeInText":{"from":1834,"to":1842,"type":"section"},"startExpanded":true,"title":"Phase 3: Tutorial Development - Revision"},{"value":[{"value":{"eventString":"2025-05-05/2025-05-16: Develop lecture slides and presentation materials","eventText":" Develop lecture slides and presentation materials","dateRangeIso":{"fromDateTimeIso":"2025-05-05T00:00:00.000-06:00","toDateTimeIso":"2025-05-17T00:00:00.000-06:00"},"rangeInText":{"from":2272,"to":2345,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Develop lecture slides and presentation materials"},"dateText":"2025-05-05/2025-05-16","dateRangeInText":{"type":"dateRange","from":2272,"to":2293}}},{"value":{"eventString":"2025-05-05/2025-05-16: Create coding exercises and projects for each module","eventText":" Create coding exercises and projects for each module","dateRangeIso":{"fromDateTimeIso":"2025-05-05T00:00:00.000-06:00","toDateTimeIso":"2025-05-17T00:00:00.000-06:00"},"rangeInText":{"from":2345,"to":2421,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Create coding exercises and projects for each module"},"dateText":"2025-05-05/2025-05-16","dateRangeInText":{"type":"dateRange","from":2345,"to":2366}}},{"value":{"eventString":"2025-05-19/2025-06-01: Prepare course reference materials ","eventText":" Prepare course reference materials ","dateRangeIso":{"fromDateTimeIso":"2025-05-19T00:00:00.000-06:00","toDateTimeIso":"2025-06-02T00:00:00.000-06:00"},"rangeInText":{"from":2421,"to":2526,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"reading list","type":"checkbox","value":false},{"raw":"documentation guides","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":2480,"to":2485,"content":false},{"type":"listItemContents","from":2485,"to":2497},{"type":"checkboxItemIndicator","from":2499,"to":2504,"content":false},{"type":"listItemContents","from":2504,"to":2524}],"eventDescription":"Prepare course reference materials"},"dateText":"2025-05-19/2025-06-01","dateRangeInText":{"type":"dateRange","from":2421,"to":2442}}}],"tags":[],"style":"section","rangeInText":{"from":2237,"to":2245,"type":"section"},"startExpanded":true,"title":"Phase 4: Resource Creation"},{"value":[{"value":{"eventString":"2025-06-23/2025-07-04: Refine based on feedback, prepare learning platform","eventText":" Refine based on feedback, prepare learning platform","dateRangeIso":{"fromDateTimeIso":"2025-06-23T00:00:00.000-06:00","toDateTimeIso":"2025-07-05T00:00:00.000-06:00"},"rangeInText":{"from":2573,"to":2648,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Refine based on feedback, prepare learning platform"},"dateText":"2025-06-23/2025-07-04","dateRangeInText":{"type":"dateRange","from":2573,"to":2594}}},{"value":{"eventString":"2025-06-02/2025-06-13: Conduct pilot course with a small student group","eventText":" Conduct pilot course with a small student group","dateRangeIso":{"fromDateTimeIso":"2025-06-02T00:00:00.000-06:00","toDateTimeIso":"2025-06-14T00:00:00.000-06:00"},"rangeInText":{"from":2648,"to":2719,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Conduct pilot course with a small student group"},"dateText":"2025-06-02/2025-06-13","dateRangeInText":{"type":"dateRange","from":2648,"to":2669}}},{"value":{"eventString":"2025-06-09/2025-06-20: Collect feedback and finalize materials","eventText":" Collect feedback and finalize materials","dateRangeIso":{"fromDateTimeIso":"2025-06-09T00:00:00.000-06:00","toDateTimeIso":"2025-06-21T00:00:00.000-06:00"},"rangeInText":{"from":2719,"to":2782,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Collect feedback and finalize materials"},"dateText":"2025-06-09/2025-06-20","dateRangeInText":{"type":"dateRange","from":2719,"to":2740}}}],"tags":[],"style":"section","rangeInText":{"from":2531,"to":2539,"type":"section"},"startExpanded":true,"title":"Phase 5: Implementation & Testing"},{"value":[{"value":{"eventString":"2025-07-07/2025-07-18: Final adjustments and platform setup","eventText":" Final adjustments and platform setup","dateRangeIso":{"fromDateTimeIso":"2025-07-07T00:00:00.000-06:00","toDateTimeIso":"2025-07-19T00:00:00.000-06:00"},"rangeInText":{"from":2818,"to":2878,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Final adjustments and platform setup"},"dateText":"2025-07-07/2025-07-18","dateRangeInText":{"type":"dateRange","from":2818,"to":2839}}},{"value":{"eventString":"2025-08-04: Soft Deadline","eventText":" Soft Deadline","dateRangeIso":{"fromDateTimeIso":"2025-08-04T00:00:00.000-06:00","toDateTimeIso":"2025-08-05T00:00:00.000-06:00"},"rangeInText":{"from":2878,"to":2904,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Soft Deadline"},"dateText":"2025-08-04","dateRangeInText":{"type":"dateRange","from":2878,"to":2888}}},{"value":{"eventString":"2026-01-20/2026-03-04: Official course launch and first semester rollout","eventText":" Official course launch and first semester rollout","dateRangeIso":{"fromDateTimeIso":"2026-01-20T00:00:00.000-07:00","toDateTimeIso":"2026-03-05T00:00:00.000-07:00"},"rangeInText":{"from":2904,"to":2977,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Official course launch and first semester rollout"},"dateText":"2026-01-20/2026-03-04","dateRangeInText":{"type":"dateRange","from":2904,"to":2925}}}],"tags":[],"style":"section","rangeInText":{"from":2787,"to":2795,"type":"section"},"startExpanded":true,"title":"Phase 6: Course Launch"}]},"head":{"value":{"eventString":"2025-01-27/2025-05-20: Spring 25","eventText":" Spring 25","dateRangeIso":{"fromDateTimeIso":"2025-01-27T00:00:00.000-07:00","toDateTimeIso":"2025-05-21T00:00:00.000-06:00"},"rangeInText":{"from":61,"to":94,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Spring 25"},"dateText":"2025-01-27/2025-05-20","dateRangeInText":{"type":"dateRange","from":61,"to":82}}},"tail":{"value":{"eventString":"2026-01-20/2026-03-04: Official course launch and first semester rollout","eventText":" Official course launch and first semester rollout","dateRangeIso":{"fromDateTimeIso":"2026-01-20T00:00:00.000-07:00","toDateTimeIso":"2026-03-05T00:00:00.000-07:00"},"rangeInText":{"from":2904,"to":2977,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Official course launch and first semester rollout"},"dateText":"2026-01-20/2026-03-04","dateRangeInText":{"type":"dateRange","from":2904,"to":2925}}},"ids":{},"ranges":[{"from":30,"to":38,"type":"section"},{"type":"dateRange","from":61,"to":82},{"type":"dateRangeColon","from":82,"to":83},{"type":"dateRange","from":94,"to":115},{"type":"dateRangeColon","from":115,"to":116},{"type":"dateRange","from":126,"to":147},{"type":"dateRangeColon","from":147,"to":148},{"type":"dateRange","from":157,"to":167},{"type":"dateRangeColon","from":167,"to":168},{"type":"dateRange","from":185,"to":195},{"type":"recurrence","from":195,"to":225,"content":" every other week for 3 months"},{"type":"dateRangeColon","from":225,"to":226},{"from":236,"to":239,"type":"section"},{"type":"comment","from":241,"to":257},{"from":258,"to":266,"type":"section"},{"type":"dateRange","from":284,"to":294},{"type":"dateRangeColon","from":294,"to":295},{"type":"dateRange","from":343,"to":353},{"type":"dateRangeColon","from":353,"to":354},{"type":"dateRange","from":379,"to":389},{"type":"dateRangeColon","from":389,"to":390},{"type":"dateRange","from":446,"to":456},{"type":"dateRangeColon","from":456,"to":457},{"type":"dateRange","from":512,"to":533},{"type":"dateRangeColon","from":533,"to":534},{"type":"checkboxItemIndicator","from":575,"to":580,"content":false},{"type":"listItemContents","from":580,"to":587},{"type":"checkboxItemIndicator","from":589,"to":594,"content":false},{"type":"listItemContents","from":594,"to":602},{"type":"checkboxItemIndicator","from":604,"to":609,"content":false},{"type":"listItemContents","from":609,"to":614},{"from":616,"to":619,"type":"section"},{"from":621,"to":629,"type":"section"},{"type":"dateRange","from":670,"to":691},{"type":"dateRangeColon","from":691,"to":692},{"type":"checkboxItemIndicator","from":736,"to":741,"content":true},{"type":"listItemContents","from":741,"to":761},{"type":"checkboxItemIndicator","from":763,"to":768,"content":true},{"type":"listItemContents","from":768,"to":787},{"type":"checkboxItemIndicator","from":789,"to":794,"content":true},{"type":"listItemContents","from":794,"to":811},{"type":"checkboxItemIndicator","from":813,"to":818,"content":true},{"type":"listItemContents","from":818,"to":833},{"type":"checkboxItemIndicator","from":835,"to":840,"content":true},{"type":"listItemContents","from":840,"to":856},{"type":"checkboxItemIndicator","from":858,"to":863,"content":true},{"type":"listItemContents","from":863,"to":877},{"type":"checkboxItemIndicator","from":879,"to":884,"content":true},{"type":"listItemContents","from":884,"to":893},{"type":"checkboxItemIndicator","from":895,"to":900,"content":true},{"type":"listItemContents","from":900,"to":918},{"type":"checkboxItemIndicator","from":920,"to":925,"content":false},{"type":"listItemContents","from":925,"to":940},{"type":"dateRange","from":942,"to":963},{"type":"dateRangeColon","from":963,"to":964},{"type":"checkboxItemIndicator","from":1005,"to":1010,"content":true},{"type":"listItemContents","from":1010,"to":1037},{"type":"checkboxItemIndicator","from":1039,"to":1044,"content":true},{"type":"listItemContents","from":1044,"to":1059},{"type":"checkboxItemIndicator","from":1061,"to":1066,"content":false},{"type":"listItemContents","from":1066,"to":1080},{"type":"checkboxItemIndicator","from":1082,"to":1087,"content":false},{"type":"listItemContents","from":1087,"to":1105},{"type":"checkboxItemIndicator","from":1107,"to":1112,"content":false},{"type":"listItemContents","from":1112,"to":1147},{"type":"checkboxItemIndicator","from":1149,"to":1154,"content":true},{"type":"listItemContents","from":1154,"to":1177},{"type":"checkboxItemIndicator","from":1179,"to":1184,"content":false},{"type":"listItemContents","from":1184,"to":1211},{"type":"checkboxItemIndicator","from":1213,"to":1218,"content":false},{"type":"listItemContents","from":1218,"to":1238},{"type":"checkboxItemIndicator","from":1240,"to":1245,"content":false},{"type":"listItemContents","from":1245,"to":1262},{"type":"dateRange","from":1264,"to":1285},{"type":"dateRangeColon","from":1285,"to":1286},{"type":"checkboxItemIndicator","from":1344,"to":1349,"content":false},{"type":"listItemContents","from":1349,"to":1389},{"type":"checkboxItemIndicator","from":1391,"to":1396,"content":false},{"type":"listItemContents","from":1396,"to":1421},{"type":"checkboxItemIndicator","from":1423,"to":1428,"content":false},{"type":"listItemContents","from":1428,"to":1481},{"type":"dateRange","from":1483,"to":1504},{"type":"dateRangeColon","from":1504,"to":1505},{"type":"checkboxItemIndicator","from":1555,"to":1560,"content":false},{"type":"listItemContents","from":1560,"to":1603},{"type":"checkboxItemIndicator","from":1605,"to":1610,"content":false},{"type":"listItemContents","from":1610,"to":1640},{"type":"checkboxItemIndicator","from":1642,"to":1647,"content":false},{"type":"listItemContents","from":1647,"to":1662},{"type":"checkboxItemIndicator","from":1664,"to":1669,"content":false},{"type":"listItemContents","from":1669,"to":1687},{"type":"dateRange","from":1689,"to":1710},{"type":"dateRangeColon","from":1710,"to":1711},{"from":1765,"to":1768,"type":"section"},{"from":1834,"to":1842,"type":"section"},{"type":"dateRange","from":1883,"to":1904},{"type":"dateRangeColon","from":1904,"to":1905},{"type":"dateRange","from":1946,"to":1967},{"type":"dateRangeColon","from":1967,"to":1968},{"type":"dateRange","from":2007,"to":2028},{"type":"dateRangeColon","from":2028,"to":2029},{"type":"dateRange","from":2089,"to":2110},{"type":"dateRangeColon","from":2110,"to":2111},{"type":"dateRange","from":2159,"to":2180},{"type":"dateRangeColon","from":2180,"to":2181},{"from":2232,"to":2235,"type":"section"},{"from":2237,"to":2245,"type":"section"},{"type":"dateRange","from":2272,"to":2293},{"type":"dateRangeColon","from":2293,"to":2294},{"type":"dateRange","from":2345,"to":2366},{"type":"dateRangeColon","from":2366,"to":2367},{"type":"dateRange","from":2421,"to":2442},{"type":"dateRangeColon","from":2442,"to":2443},{"type":"checkboxItemIndicator","from":2480,"to":2485,"content":false},{"type":"listItemContents","from":2485,"to":2497},{"type":"checkboxItemIndicator","from":2499,"to":2504,"content":false},{"type":"listItemContents","from":2504,"to":2524},{"from":2526,"to":2529,"type":"section"},{"from":2531,"to":2539,"type":"section"},{"type":"dateRange","from":2573,"to":2594},{"type":"dateRangeColon","from":2594,"to":2595},{"type":"dateRange","from":2648,"to":2669},{"type":"dateRangeColon","from":2669,"to":2670},{"type":"dateRange","from":2719,"to":2740},{"type":"dateRangeColon","from":2740,"to":2741},{"from":2782,"to":2785,"type":"section"},{"from":2787,"to":2795,"type":"section"},{"type":"dateRange","from":2818,"to":2839},{"type":"dateRangeColon","from":2839,"to":2840},{"type":"dateRange","from":2878,"to":2888},{"type":"dateRangeColon","from":2888,"to":2889},{"type":"dateRange","from":2904,"to":2925},{"type":"dateRangeColon","from":2925,"to":2926},{"from":2977,"to":2980,"type":"section"}],"foldables":{"30":{"type":"section","startLine":1,"startIndex":30,"endIndex":239,"foldStartIndex":60},"126":{"startIndex":155,"endIndex":156,"type":"event","foldStartIndex":155,"startLine":4},"258":{"type":"section","startLine":11,"startIndex":258,"endIndex":619,"foldStartIndex":283},"512":{"startIndex":574,"endIndex":615,"type":"event","foldStartIndex":574,"startLine":16},"621":{"type":"section","startLine":22,"startIndex":621,"endIndex":1768,"foldStartIndex":669},"670":{"startIndex":735,"endIndex":941,"type":"event","foldStartIndex":735,"startLine":23},"942":{"startIndex":1004,"endIndex":1263,"type":"event","foldStartIndex":1004,"startLine":33},"1264":{"startIndex":1343,"endIndex":1482,"type":"event","foldStartIndex":1343,"startLine":43},"1483":{"startIndex":1554,"endIndex":1688,"type":"event","foldStartIndex":1554,"startLine":47},"1834":{"type":"section","startLine":57,"startIndex":1834,"endIndex":2235,"foldStartIndex":1882},"2237":{"type":"section","startLine":65,"startIndex":2237,"endIndex":2529,"foldStartIndex":2271},"2421":{"startIndex":2479,"endIndex":2525,"type":"event","foldStartIndex":2479,"startLine":68},"2531":{"type":"section","startLine":73,"startIndex":2531,"endIndex":2785,"foldStartIndex":2572},"2787":{"type":"section","startLine":79,"startIndex":2787,"endIndex":2980,"foldStartIndex":2817}},"header":{"dateFormat":"M/d/y"},"metadata":{"earliestTime":"2025-01-27T00:00:00.000-07:00","latestTime":"2026-03-05T00:00:00.000-07:00","maxDurationDays":133.04166666666666,"startLineIndex":0,"startStringIndex":0,"endLineIndex":83,"endStringIndex":2980}}],"transformed":{"value":[{"value":[{"value":{"eventString":"2025-01-27/2025-05-20: Spring 25","eventText":" Spring 25","dateRangeIso":{"fromDateTimeIso":"2025-01-27T00:00:00.000-07:00","toDateTimeIso":"2025-05-21T00:00:00.000-06:00"},"rangeInText":{"from":61,"to":94,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Spring 25"},"dateText":"2025-01-27/2025-05-20","dateRangeInText":{"type":"dateRange","from":61,"to":82}}},{"value":{"eventString":"2025-05-21/2025-08-12:Summer 25","eventText":"Summer 25","dateRangeIso":{"fromDateTimeIso":"2025-05-21T00:00:00.000-06:00","toDateTimeIso":"2025-08-13T00:00:00.000-06:00"},"rangeInText":{"from":94,"to":126,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Summer 25"},"dateText":"2025-05-21/2025-08-12","dateRangeInText":{"type":"dateRange","from":94,"to":115}}},{"value":{"eventString":"2025-08-13/2025-12-23:Fall 25","eventText":"Fall 25","dateRangeIso":{"fromDateTimeIso":"2025-08-13T00:00:00.000-06:00","toDateTimeIso":"2025-12-24T00:00:00.000-07:00"},"rangeInText":{"from":126,"to":157,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Fall 25"},"dateText":"2025-08-13/2025-12-23","dateRangeInText":{"type":"dateRange","from":126,"to":147}}},{"value":{"eventString":"2025-01-27: Initial Meeting","eventText":" Initial Meeting","dateRangeIso":{"fromDateTimeIso":"2025-01-27T00:00:00.000-07:00","toDateTimeIso":"2025-01-28T00:00:00.000-07:00"},"rangeInText":{"from":157,"to":185,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Initial Meeting"},"dateText":"2025-01-27","dateRangeInText":{"type":"dateRange","from":157,"to":167}}},{"value":{"eventString":"2025-02-14 every other week for 3 months: Meetings","eventText":" Meetings","dateRangeIso":{"fromDateTimeIso":"2025-02-14T00:00:00.000-07:00","toDateTimeIso":"2025-02-15T00:00:00.000-07:00"},"recurrence":{"every":{"weeks":2},"for":{"months":3}},"recurrenceRangeInText":{"type":"recurrence","from":195,"to":225,"content":" every other week for 3 months"},"rangeInText":{"from":185,"to":236,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Meetings"},"dateText":"2025-02-14","dateRangeInText":{"type":"dateRange","from":185,"to":195}}}],"tags":[],"style":"section","rangeInText":{"from":30,"to":38,"type":"section"},"startExpanded":true,"title":"Semesters and Meetings"},{"value":[{"value":{"eventString":"2025-02-03: Define course objectives and learning outcomes","eventText":" Define course objectives and learning outcomes","dateRangeIso":{"fromDateTimeIso":"2025-02-03T00:00:00.000-07:00","toDateTimeIso":"2025-02-04T00:00:00.000-07:00"},"rangeInText":{"from":284,"to":343,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Define course objectives and learning outcomes"},"dateText":"2025-02-03","dateRangeInText":{"type":"dateRange","from":284,"to":294}}},{"value":{"eventString":"2025-02-03: Lay out course overview","eventText":" Lay out course overview","dateRangeIso":{"fromDateTimeIso":"2025-02-03T00:00:00.000-07:00","toDateTimeIso":"2025-02-04T00:00:00.000-07:00"},"rangeInText":{"from":343,"to":379,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Lay out course overview"},"dateText":"2025-02-03","dateRangeInText":{"type":"dateRange","from":343,"to":353}}},{"value":{"eventString":"2025-02-04: Structure course syllabus based on objectives and CLOs","eventText":" Structure course syllabus based on objectives and CLOs","dateRangeIso":{"fromDateTimeIso":"2025-02-04T00:00:00.000-07:00","toDateTimeIso":"2025-02-05T00:00:00.000-07:00"},"rangeInText":{"from":379,"to":446,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Structure course syllabus based on objectives and CLOs"},"dateText":"2025-02-04","dateRangeInText":{"type":"dateRange","from":379,"to":389}}},{"value":{"eventString":"2025-02-04: Align topics with mechanical engineering applications","eventText":" Align topics with mechanical engineering applications","dateRangeIso":{"fromDateTimeIso":"2025-02-04T00:00:00.000-07:00","toDateTimeIso":"2025-02-05T00:00:00.000-07:00"},"rangeInText":{"from":446,"to":512,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Align topics with mechanical engineering applications"},"dateText":"2025-02-04","dateRangeInText":{"type":"dateRange","from":446,"to":456}}},{"value":{"eventString":"2025-02-17/2025-02-21: Develop grading and assessment strategy","eventText":" Develop grading and assessment strategy","dateRangeIso":{"fromDateTimeIso":"2025-02-17T00:00:00.000-07:00","toDateTimeIso":"2025-02-22T00:00:00.000-07:00"},"rangeInText":{"from":512,"to":616,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"quizzes","type":"checkbox","value":false},{"raw":"projects","type":"checkbox","value":false},{"raw":"exams","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":575,"to":580,"content":false},{"type":"listItemContents","from":580,"to":587},{"type":"checkboxItemIndicator","from":589,"to":594,"content":false},{"type":"listItemContents","from":594,"to":602},{"type":"checkboxItemIndicator","from":604,"to":609,"content":false},{"type":"listItemContents","from":609,"to":614}],"eventDescription":"Develop grading and assessment strategy"},"dateText":"2025-02-17/2025-02-21","dateRangeInText":{"type":"dateRange","from":512,"to":533}}}],"tags":[],"style":"section","rangeInText":{"from":258,"to":266,"type":"section"},"startExpanded":true,"title":"Phase 1: Planning"},{"value":[{"value":{"eventString":"2025-02-24/2025-03-21: Develop programming fundamentals materials","eventText":" Develop programming fundamentals materials","dateRangeIso":{"fromDateTimeIso":"2025-02-24T00:00:00.000-07:00","toDateTimeIso":"2025-03-22T00:00:00.000-06:00"},"rangeInText":{"from":670,"to":942,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"Intro to Programming","type":"checkbox","value":true},{"raw":"Installing Anaconda","type":"checkbox","value":true},{"raw":"Intro to Anaconda","type":"checkbox","value":true},{"raw":"Intro to Spyder","type":"checkbox","value":true},{"raw":"Basics of python","type":"checkbox","value":true},{"raw":"Arrays (Numpy)","type":"checkbox","value":true},{"raw":"Functions","type":"checkbox","value":true},{"raw":"Control Structures","type":"checkbox","value":true},{"raw":"Classes/Objects","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":736,"to":741,"content":true},{"type":"listItemContents","from":741,"to":761},{"type":"checkboxItemIndicator","from":763,"to":768,"content":true},{"type":"listItemContents","from":768,"to":787},{"type":"checkboxItemIndicator","from":789,"to":794,"content":true},{"type":"listItemContents","from":794,"to":811},{"type":"checkboxItemIndicator","from":813,"to":818,"content":true},{"type":"listItemContents","from":818,"to":833},{"type":"checkboxItemIndicator","from":835,"to":840,"content":true},{"type":"listItemContents","from":840,"to":856},{"type":"checkboxItemIndicator","from":858,"to":863,"content":true},{"type":"listItemContents","from":863,"to":877},{"type":"checkboxItemIndicator","from":879,"to":884,"content":true},{"type":"listItemContents","from":884,"to":893},{"type":"checkboxItemIndicator","from":895,"to":900,"content":true},{"type":"listItemContents","from":900,"to":918},{"type":"checkboxItemIndicator","from":920,"to":925,"content":false},{"type":"listItemContents","from":925,"to":940}],"eventDescription":"Develop programming fundamentals materials"},"dateText":"2025-02-24/2025-03-21","dateRangeInText":{"type":"dateRange","from":670,"to":691}}},{"value":{"eventString":"2025-03-19/2025-03-27: Create algorithm development materials ","eventText":" Create algorithm development materials ","dateRangeIso":{"fromDateTimeIso":"2025-03-19T00:00:00.000-06:00","toDateTimeIso":"2025-03-28T00:00:00.000-06:00"},"rangeInText":{"from":942,"to":1264,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"Problem solving strategies","type":"checkbox","value":true},{"raw":"Version Control","type":"checkbox","value":true},{"raw":"Code debugging","type":"checkbox","value":false},{"raw":"Code documentation","type":"checkbox","value":false},{"raw":"Code Libraries & Resources (GitHub)","type":"checkbox","value":false},{"raw":"AI Assisted Programming","type":"checkbox","value":true},{"raw":"Verification and Validation","type":"checkbox","value":false},{"raw":"Root finding methods","type":"checkbox","value":false},{"raw":"Linear Regression","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":1005,"to":1010,"content":true},{"type":"listItemContents","from":1010,"to":1037},{"type":"checkboxItemIndicator","from":1039,"to":1044,"content":true},{"type":"listItemContents","from":1044,"to":1059},{"type":"checkboxItemIndicator","from":1061,"to":1066,"content":false},{"type":"listItemContents","from":1066,"to":1080},{"type":"checkboxItemIndicator","from":1082,"to":1087,"content":false},{"type":"listItemContents","from":1087,"to":1105},{"type":"checkboxItemIndicator","from":1107,"to":1112,"content":false},{"type":"listItemContents","from":1112,"to":1147},{"type":"checkboxItemIndicator","from":1149,"to":1154,"content":true},{"type":"listItemContents","from":1154,"to":1177},{"type":"checkboxItemIndicator","from":1179,"to":1184,"content":false},{"type":"listItemContents","from":1184,"to":1211},{"type":"checkboxItemIndicator","from":1213,"to":1218,"content":false},{"type":"listItemContents","from":1218,"to":1238},{"type":"checkboxItemIndicator","from":1240,"to":1245,"content":false},{"type":"listItemContents","from":1245,"to":1262}],"eventDescription":"Create algorithm development materials"},"dateText":"2025-03-19/2025-03-27","dateRangeInText":{"type":"dateRange","from":942,"to":963}}},{"value":{"eventString":"2025-03-31/2025-04-04: Develop application of computational mathematics content","eventText":" Develop application of computational mathematics content","dateRangeIso":{"fromDateTimeIso":"2025-03-31T00:00:00.000-06:00","toDateTimeIso":"2025-04-05T00:00:00.000-06:00"},"rangeInText":{"from":1264,"to":1483,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"System of Equations and LU Decomposition","type":"checkbox","value":false},{"raw":"Nonlinear Equation Solver","type":"checkbox","value":false},{"raw":"Numerical Differentiation and integration application","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":1344,"to":1349,"content":false},{"type":"listItemContents","from":1349,"to":1389},{"type":"checkboxItemIndicator","from":1391,"to":1396,"content":false},{"type":"listItemContents","from":1396,"to":1421},{"type":"checkboxItemIndicator","from":1423,"to":1428,"content":false},{"type":"listItemContents","from":1428,"to":1481}],"eventDescription":"Develop application of computational mathematics content"},"dateText":"2025-03-31/2025-04-04","dateRangeInText":{"type":"dateRange","from":1264,"to":1285}}},{"value":{"eventString":"2025-04-07/2025-04-10: Design data processing and visualization lessons","eventText":" Design data processing and visualization lessons","dateRangeIso":{"fromDateTimeIso":"2025-04-07T00:00:00.000-06:00","toDateTimeIso":"2025-04-11T00:00:00.000-06:00"},"rangeInText":{"from":1483,"to":1689,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"Importing Scientific data (Intro to Pandas)","type":"checkbox","value":false},{"raw":"Plotting (Intro to Matplotlib)","type":"checkbox","value":false},{"raw":"Data Processing","type":"checkbox","value":false},{"raw":"Data visualization","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":1555,"to":1560,"content":false},{"type":"listItemContents","from":1560,"to":1603},{"type":"checkboxItemIndicator","from":1605,"to":1610,"content":false},{"type":"listItemContents","from":1610,"to":1640},{"type":"checkboxItemIndicator","from":1642,"to":1647,"content":false},{"type":"listItemContents","from":1647,"to":1662},{"type":"checkboxItemIndicator","from":1664,"to":1669,"content":false},{"type":"listItemContents","from":1669,"to":1687}],"eventDescription":"Design data processing and visualization lessons"},"dateText":"2025-04-07/2025-04-10","dateRangeInText":{"type":"dateRange","from":1483,"to":1504}}},{"value":{"eventString":"2025-04-14/2025-04-18: Develop AI & machine learning introduction materials","eventText":" Develop AI & machine learning introduction materials","dateRangeIso":{"fromDateTimeIso":"2025-04-14T00:00:00.000-06:00","toDateTimeIso":"2025-04-19T00:00:00.000-06:00"},"rangeInText":{"from":1689,"to":1765,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Develop AI & machine learning introduction materials"},"dateText":"2025-04-14/2025-04-18","dateRangeInText":{"type":"dateRange","from":1689,"to":1710}}}],"tags":[],"style":"section","rangeInText":{"from":621,"to":629,"type":"section"},"startExpanded":true,"title":"Phase 2: Tutorial Development - Creating"},{"value":[{"value":{"eventString":"2025-04-21/2025-05-01: Edit programming fundamentals materials","eventText":" Edit programming fundamentals materials","dateRangeIso":{"fromDateTimeIso":"2025-04-21T00:00:00.000-06:00","toDateTimeIso":"2025-05-02T00:00:00.000-06:00"},"rangeInText":{"from":1883,"to":1946,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Edit programming fundamentals materials"},"dateText":"2025-04-21/2025-05-01","dateRangeInText":{"type":"dateRange","from":1883,"to":1904}}},{"value":{"eventString":"2025-04-21/2025-05-01: Edit algorithm development materials ","eventText":" Edit algorithm development materials ","dateRangeIso":{"fromDateTimeIso":"2025-04-21T00:00:00.000-06:00","toDateTimeIso":"2025-05-02T00:00:00.000-06:00"},"rangeInText":{"from":1946,"to":2007,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Edit algorithm development materials"},"dateText":"2025-04-21/2025-05-01","dateRangeInText":{"type":"dateRange","from":1946,"to":1967}}},{"value":{"eventString":"2025-04-21/2025-05-01: Edit numerical methods & computational mathematics content","eventText":" Edit numerical methods & computational mathematics content","dateRangeIso":{"fromDateTimeIso":"2025-04-21T00:00:00.000-06:00","toDateTimeIso":"2025-05-02T00:00:00.000-06:00"},"rangeInText":{"from":2007,"to":2089,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Edit numerical methods & computational mathematics content"},"dateText":"2025-04-21/2025-05-01","dateRangeInText":{"type":"dateRange","from":2007,"to":2028}}},{"value":{"eventString":"2025-04-21/2025-05-01: Edit data processing and visualization lessons","eventText":" Edit data processing and visualization lessons","dateRangeIso":{"fromDateTimeIso":"2025-04-21T00:00:00.000-06:00","toDateTimeIso":"2025-05-02T00:00:00.000-06:00"},"rangeInText":{"from":2089,"to":2159,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Edit data processing and visualization lessons"},"dateText":"2025-04-21/2025-05-01","dateRangeInText":{"type":"dateRange","from":2089,"to":2110}}},{"value":{"eventString":"2025-04-21/2025-05-01: Edit AI & machine learning introduction materials","eventText":" Edit AI & machine learning introduction materials","dateRangeIso":{"fromDateTimeIso":"2025-04-21T00:00:00.000-06:00","toDateTimeIso":"2025-05-02T00:00:00.000-06:00"},"rangeInText":{"from":2159,"to":2232,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Edit AI & machine learning introduction materials"},"dateText":"2025-04-21/2025-05-01","dateRangeInText":{"type":"dateRange","from":2159,"to":2180}}}],"tags":[],"style":"section","rangeInText":{"from":1834,"to":1842,"type":"section"},"startExpanded":true,"title":"Phase 3: Tutorial Development - Revision"},{"value":[{"value":{"eventString":"2025-05-05/2025-05-16: Develop lecture slides and presentation materials","eventText":" Develop lecture slides and presentation materials","dateRangeIso":{"fromDateTimeIso":"2025-05-05T00:00:00.000-06:00","toDateTimeIso":"2025-05-17T00:00:00.000-06:00"},"rangeInText":{"from":2272,"to":2345,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Develop lecture slides and presentation materials"},"dateText":"2025-05-05/2025-05-16","dateRangeInText":{"type":"dateRange","from":2272,"to":2293}}},{"value":{"eventString":"2025-05-05/2025-05-16: Create coding exercises and projects for each module","eventText":" Create coding exercises and projects for each module","dateRangeIso":{"fromDateTimeIso":"2025-05-05T00:00:00.000-06:00","toDateTimeIso":"2025-05-17T00:00:00.000-06:00"},"rangeInText":{"from":2345,"to":2421,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Create coding exercises and projects for each module"},"dateText":"2025-05-05/2025-05-16","dateRangeInText":{"type":"dateRange","from":2345,"to":2366}}},{"value":{"eventString":"2025-05-19/2025-06-01: Prepare course reference materials ","eventText":" Prepare course reference materials ","dateRangeIso":{"fromDateTimeIso":"2025-05-19T00:00:00.000-06:00","toDateTimeIso":"2025-06-02T00:00:00.000-06:00"},"rangeInText":{"from":2421,"to":2526,"type":"event"},"eventDescription":{"tags":[],"supplemental":[{"raw":"reading list","type":"checkbox","value":false},{"raw":"documentation guides","type":"checkbox","value":false}],"locations":[],"matchedListItems":[{"type":"checkboxItemIndicator","from":2480,"to":2485,"content":false},{"type":"listItemContents","from":2485,"to":2497},{"type":"checkboxItemIndicator","from":2499,"to":2504,"content":false},{"type":"listItemContents","from":2504,"to":2524}],"eventDescription":"Prepare course reference materials"},"dateText":"2025-05-19/2025-06-01","dateRangeInText":{"type":"dateRange","from":2421,"to":2442}}}],"tags":[],"style":"section","rangeInText":{"from":2237,"to":2245,"type":"section"},"startExpanded":true,"title":"Phase 4: Resource Creation"},{"value":[{"value":{"eventString":"2025-06-23/2025-07-04: Refine based on feedback, prepare learning platform","eventText":" Refine based on feedback, prepare learning platform","dateRangeIso":{"fromDateTimeIso":"2025-06-23T00:00:00.000-06:00","toDateTimeIso":"2025-07-05T00:00:00.000-06:00"},"rangeInText":{"from":2573,"to":2648,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Refine based on feedback, prepare learning platform"},"dateText":"2025-06-23/2025-07-04","dateRangeInText":{"type":"dateRange","from":2573,"to":2594}}},{"value":{"eventString":"2025-06-02/2025-06-13: Conduct pilot course with a small student group","eventText":" Conduct pilot course with a small student group","dateRangeIso":{"fromDateTimeIso":"2025-06-02T00:00:00.000-06:00","toDateTimeIso":"2025-06-14T00:00:00.000-06:00"},"rangeInText":{"from":2648,"to":2719,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Conduct pilot course with a small student group"},"dateText":"2025-06-02/2025-06-13","dateRangeInText":{"type":"dateRange","from":2648,"to":2669}}},{"value":{"eventString":"2025-06-09/2025-06-20: Collect feedback and finalize materials","eventText":" Collect feedback and finalize materials","dateRangeIso":{"fromDateTimeIso":"2025-06-09T00:00:00.000-06:00","toDateTimeIso":"2025-06-21T00:00:00.000-06:00"},"rangeInText":{"from":2719,"to":2782,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Collect feedback and finalize materials"},"dateText":"2025-06-09/2025-06-20","dateRangeInText":{"type":"dateRange","from":2719,"to":2740}}}],"tags":[],"style":"section","rangeInText":{"from":2531,"to":2539,"type":"section"},"startExpanded":true,"title":"Phase 5: Implementation & Testing"},{"value":[{"value":{"eventString":"2025-07-07/2025-07-18: Final adjustments and platform setup","eventText":" Final adjustments and platform setup","dateRangeIso":{"fromDateTimeIso":"2025-07-07T00:00:00.000-06:00","toDateTimeIso":"2025-07-19T00:00:00.000-06:00"},"rangeInText":{"from":2818,"to":2878,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Final adjustments and platform setup"},"dateText":"2025-07-07/2025-07-18","dateRangeInText":{"type":"dateRange","from":2818,"to":2839}}},{"value":{"eventString":"2025-08-04: Soft Deadline","eventText":" Soft Deadline","dateRangeIso":{"fromDateTimeIso":"2025-08-04T00:00:00.000-06:00","toDateTimeIso":"2025-08-05T00:00:00.000-06:00"},"rangeInText":{"from":2878,"to":2904,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Soft Deadline"},"dateText":"2025-08-04","dateRangeInText":{"type":"dateRange","from":2878,"to":2888}}},{"value":{"eventString":"2026-01-20/2026-03-04: Official course launch and first semester rollout","eventText":" Official course launch and first semester rollout","dateRangeIso":{"fromDateTimeIso":"2026-01-20T00:00:00.000-07:00","toDateTimeIso":"2026-03-05T00:00:00.000-07:00"},"rangeInText":{"from":2904,"to":2977,"type":"event"},"eventDescription":{"tags":[],"supplemental":[],"locations":[],"matchedListItems":[],"eventDescription":"Official course launch and first semester rollout"},"dateText":"2026-01-20/2026-03-04","dateRangeInText":{"type":"dateRange","from":2904,"to":2925}}}],"tags":[],"style":"section","rangeInText":{"from":2787,"to":2795,"type":"section"},"startExpanded":true,"title":"Phase 6: Course Launch"}]}}</script>
    <meta charset="UTF-8" >
    <link rel="icon" href="/favicon.ico" >
    <meta       name="viewport"
      content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0, user-scalable=no"
    >
    <title>Markwhen Timeline</title>
    <script type="module" crossorigin>
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function zl(t,e){const n=Object.create(null),s=t.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return e?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const Ke={},Zs=[],ln=()=>{},Ng=()=>!1,xg=/^on[^a-z]/,Co=t=>xg.test(t),Yl=t=>t.startsWith("onUpdate:"),ct=Object.assign,Ul=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Lg=Object.prototype.hasOwnProperty,Ne=(t,e)=>Lg.call(t,e),we=Array.isArray,Gs=t=>Ao(t)==="[object Map]",Mh=t=>Ao(t)==="[object Set]",Se=t=>typeof t=="function",it=t=>typeof t=="string",Bl=t=>typeof t=="symbol",Ze=t=>t!==null&&typeof t=="object",Ch=t=>Ze(t)&&Se(t.then)&&Se(t.catch),Ah=Object.prototype.toString,Ao=t=>Ah.call(t),Rg=t=>Ao(t).slice(8,-1),Nh=t=>Ao(t)==="[object Object]",Hl=t=>it(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ki=zl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),No=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Pg=/-(\w)/g,rr=No(t=>t.replace(Pg,(e,n)=>n?n.toUpperCase():"")),$g=/\B([A-Z])/g,dr=No(t=>t.replace($g,"-$1").toLowerCase()),xh=No(t=>t.charAt(0).toUpperCase()+t.slice(1)),Zi=No(t=>t?`on${xh(t)}`:""),ti=(t,e)=>!Object.is(t,e),Da=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},oo=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Fg=t=>{const e=parseFloat(t);return isNaN(e)?t:e},zg=t=>{const e=it(t)?Number(t):NaN;return isNaN(e)?t:e};let pu;const sl=()=>pu||(pu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ze(t){if(we(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],r=it(s)?Hg(s):ze(s);if(r)for(const i in r)e[i]=r[i]}return e}else{if(it(t))return t;if(Ze(t))return t}}const Yg=/;(?![^(]*\))/g,Ug=/:([^]+)/,Bg=/\/\*[^]*?\*\//g;function Hg(t){const e={};return t.replace(Bg,"").split(Yg).forEach(n=>{if(n){const s=n.split(Ug);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function ut(t){let e="";if(it(t))e=t;else if(we(t))for(let n=0;n<t.length;n++){const s=ut(t[n]);s&&(e+=s+" ")}else if(Ze(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function gu(t){if(!t)return null;let{class:e,style:n}=t;return e&&!it(e)&&(t.class=ut(e)),n&&(t.style=ze(n)),t}const jg="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Wg=zl(jg);function Lh(t){return!!t||t===""}const pt=t=>it(t)?t:t==null?"":we(t)||Ze(t)&&(t.toString===Ah||!Se(t.toString))?JSON.stringify(t,Rh,2):String(t),Rh=(t,e)=>e&&e.__v_isRef?Rh(t,e.value):Gs(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Mh(e)?{[`Set(${e.size})`]:[...e.values()]}:Ze(e)&&!we(e)&&!Nh(e)?String(e):e;let Pt;class Ph{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pt,!e&&Pt&&(this.index=(Pt.scopes||(Pt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Pt;try{return Pt=this,e()}finally{Pt=n}}}on(){Pt=this}off(){Pt=this.parent}stop(e){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function $h(t){return new Ph(t)}function Vg(t,e=Pt){e&&e.active&&e.effects.push(t)}function jl(){return Pt}function Fh(t){Pt&&Pt.cleanups.push(t)}const Wl=t=>{const e=new Set(t);return e.w=0,e.n=0,e},zh=t=>(t.w&es)>0,Yh=t=>(t.n&es)>0,qg=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=es},Kg=t=>{const{deps:e}=t;if(e.length){let n=0;for(let s=0;s<e.length;s++){const r=e[s];zh(r)&&!Yh(r)?r.delete(t):e[n++]=r,r.w&=~es,r.n&=~es}e.length=n}},ao=new WeakMap;let Yr=0,es=1;const rl=30;let sn;const Es=Symbol(""),il=Symbol("");class Vl{constructor(e,n=null,s){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Vg(this,s)}run(){if(!this.active)return this.fn();let e=sn,n=Gn;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=sn,sn=this,Gn=!0,es=1<<++Yr,Yr<=rl?qg(this):yu(this),this.fn()}finally{Yr<=rl&&Kg(this),es=1<<--Yr,sn=this.parent,Gn=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){sn===this?this.deferStop=!0:this.active&&(yu(this),this.onStop&&this.onStop(),this.active=!1)}}function yu(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let Gn=!0;const Uh=[];function mr(){Uh.push(Gn),Gn=!1}function pr(){const t=Uh.pop();Gn=t===void 0?!0:t}function Lt(t,e,n){if(Gn&&sn){let s=ao.get(t);s||ao.set(t,s=new Map);let r=s.get(n);r||s.set(n,r=Wl()),Bh(r)}}function Bh(t,e){let n=!1;Yr<=rl?Yh(t)||(t.n|=es,n=!zh(t)):n=!t.has(sn),n&&(t.add(sn),sn.deps.push(t))}function Cn(t,e,n,s,r,i){const o=ao.get(t);if(!o)return;let a=[];if(e==="clear")a=[...o.values()];else if(n==="length"&&we(t)){const l=Number(s);o.forEach((c,u)=>{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":we(t)?Hl(n)&&a.push(o.get("length")):(a.push(o.get(Es)),Gs(t)&&a.push(o.get(il)));break;case"delete":we(t)||(a.push(o.get(Es)),Gs(t)&&a.push(o.get(il)));break;case"set":Gs(t)&&a.push(o.get(Es));break}if(a.length===1)a[0]&&ol(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);ol(Wl(l))}}function ol(t,e){const n=we(t)?t:[...t];for(const s of n)s.computed&&vu(s);for(const s of n)s.computed||vu(s)}function vu(t,e){(t!==sn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function Zg(t,e){var n;return(n=ao.get(t))==null?void 0:n.get(e)}const Gg=zl("__proto__,__v_isRef,__isVue"),Hh=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Bl)),Xg=ql(),Jg=ql(!1,!0),Qg=ql(!0),Tu=ey();function ey(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=Ae(this);for(let i=0,o=this.length;i<o;i++)Lt(s,"get",i+"");const r=s[e](...n);return r===-1||r===!1?s[e](...n.map(Ae)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){mr();const s=Ae(this)[e].apply(this,n);return pr(),s}}),t}function ty(t){const e=Ae(this);return Lt(e,"has",t),e.hasOwnProperty(t)}function ql(t=!1,e=!1){return function(s,r,i){if(r==="__v_isReactive")return!t;if(r==="__v_isReadonly")return t;if(r==="__v_isShallow")return e;if(r==="__v_raw"&&i===(t?e?yy:Kh:e?qh:Vh).get(s))return s;const o=we(s);if(!t){if(o&&Ne(Tu,r))return Reflect.get(Tu,r,i);if(r==="hasOwnProperty")return ty}const a=Reflect.get(s,r,i);return(Bl(r)?Hh.has(r):Gg(r))||(t||Lt(s,"get",r),e)?a:st(a)?o&&Hl(r)?a:a.value:Ze(a)?t?Gh(a):Os(a):a}}const ny=jh(),sy=jh(!0);function jh(t=!1){return function(n,s,r,i){let o=n[s];if(ir(o)&&st(o)&&!st(r))return!1;if(!t&&(!lo(r)&&!ir(r)&&(o=Ae(o),r=Ae(r)),!we(n)&&st(o)&&!st(r)))return o.value=r,!0;const a=we(n)&&Hl(s)?Number(s)<n.length:Ne(n,s),l=Reflect.set(n,s,r,i);return n===Ae(i)&&(a?ti(r,o)&&Cn(n,"set",s,r):Cn(n,"add",s,r)),l}}function ry(t,e){const n=Ne(t,e);t[e];const s=Reflect.deleteProperty(t,e);return s&&n&&Cn(t,"delete",e,void 0),s}function iy(t,e){const n=Reflect.has(t,e);return(!Bl(e)||!Hh.has(e))&&Lt(t,"has",e),n}function oy(t){return Lt(t,"iterate",we(t)?"length":Es),Reflect.ownKeys(t)}const Wh={get:Xg,set:ny,deleteProperty:ry,has:iy,ownKeys:oy},ay={get:Qg,set(t,e){return!0},deleteProperty(t,e){return!0}},ly=ct({},Wh,{get:Jg,set:sy}),Kl=t=>t,xo=t=>Reflect.getPrototypeOf(t);function Ci(t,e,n=!1,s=!1){t=t.__v_raw;const r=Ae(t),i=Ae(e);n||(e!==i&&Lt(r,"get",e),Lt(r,"get",i));const{has:o}=xo(r),a=s?Kl:n?Xl:ni;if(o.call(r,e))return a(t.get(e));if(o.call(r,i))return a(t.get(i));t!==r&&t.get(e)}function Ai(t,e=!1){const n=this.__v_raw,s=Ae(n),r=Ae(t);return e||(t!==r&&Lt(s,"has",t),Lt(s,"has",r)),t===r?n.has(t):n.has(t)||n.has(r)}function Ni(t,e=!1){return t=t.__v_raw,!e&&Lt(Ae(t),"iterate",Es),Reflect.get(t,"size",t)}function wu(t){t=Ae(t);const e=Ae(this);return xo(e).has.call(e,t)||(e.add(t),Cn(e,"add",t,t)),this}function _u(t,e){e=Ae(e);const n=Ae(this),{has:s,get:r}=xo(n);let i=s.call(n,t);i||(t=Ae(t),i=s.call(n,t));const o=r.call(n,t);return n.set(t,e),i?ti(e,o)&&Cn(n,"set",t,e):Cn(n,"add",t,e),this}function bu(t){const e=Ae(this),{has:n,get:s}=xo(e);let r=n.call(e,t);r||(t=Ae(t),r=n.call(e,t)),s&&s.call(e,t);const i=e.delete(t);return r&&Cn(e,"delete",t,void 0),i}function Eu(){const t=Ae(this),e=t.size!==0,n=t.clear();return e&&Cn(t,"clear",void 0,void 0),n}function xi(t,e){return function(s,r){const i=this,o=i.__v_raw,a=Ae(o),l=e?Kl:t?Xl:ni;return!t&&Lt(a,"iterate",Es),o.forEach((c,u)=>s.call(r,l(c),l(u),i))}}function Li(t,e,n){return function(...s){const r=this.__v_raw,i=Ae(r),o=Gs(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=r[t](...s),u=n?Kl:e?Xl:ni;return!e&&Lt(i,"iterate",l?il:Es),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:a?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function Pn(t){return function(...e){return t==="delete"?!1:this}}function cy(){const t={get(i){return Ci(this,i)},get size(){return Ni(this)},has:Ai,add:wu,set:_u,delete:bu,clear:Eu,forEach:xi(!1,!1)},e={get(i){return Ci(this,i,!1,!0)},get size(){return Ni(this)},has:Ai,add:wu,set:_u,delete:bu,clear:Eu,forEach:xi(!1,!0)},n={get(i){return Ci(this,i,!0)},get size(){return Ni(this,!0)},has(i){return Ai.call(this,i,!0)},add:Pn("add"),set:Pn("set"),delete:Pn("delete"),clear:Pn("clear"),forEach:xi(!0,!1)},s={get(i){return Ci(this,i,!0,!0)},get size(){return Ni(this,!0)},has(i){return Ai.call(this,i,!0)},add:Pn("add"),set:Pn("set"),delete:Pn("delete"),clear:Pn("clear"),forEach:xi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=Li(i,!1,!1),n[i]=Li(i,!0,!1),e[i]=Li(i,!1,!0),s[i]=Li(i,!0,!0)}),[t,n,e,s]}const[uy,fy,hy,dy]=cy();function Zl(t,e){const n=e?t?dy:hy:t?fy:uy;return(s,r,i)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?s:Reflect.get(Ne(n,r)&&r in s?n:s,r,i)}const my={get:Zl(!1,!1)},py={get:Zl(!1,!0)},gy={get:Zl(!0,!1)},Vh=new WeakMap,qh=new WeakMap,Kh=new WeakMap,yy=new WeakMap;function vy(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ty(t){return t.__v_skip||!Object.isExtensible(t)?0:vy(Rg(t))}function Os(t){return ir(t)?t:Gl(t,!1,Wh,my,Vh)}function Zh(t){return Gl(t,!1,ly,py,qh)}function Gh(t){return Gl(t,!0,ay,gy,Kh)}function Gl(t,e,n,s,r){if(!Ze(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=r.get(t);if(i)return i;const o=Ty(t);if(o===0)return t;const a=new Proxy(t,o===2?s:n);return r.set(t,a),a}function Xn(t){return ir(t)?Xn(t.__v_raw):!!(t&&t.__v_isReactive)}function ir(t){return!!(t&&t.__v_isReadonly)}function lo(t){return!!(t&&t.__v_isShallow)}function Xh(t){return Xn(t)||ir(t)}function Ae(t){const e=t&&t.__v_raw;return e?Ae(e):t}function Lo(t){return oo(t,"__v_skip",!0),t}const ni=t=>Ze(t)?Os(t):t,Xl=t=>Ze(t)?Gh(t):t;function Jh(t){Gn&&sn&&(t=Ae(t),Bh(t.dep||(t.dep=Wl())))}function Qh(t,e){t=Ae(t);const n=t.dep;n&&ol(n)}function st(t){return!!(t&&t.__v_isRef===!0)}function ce(t){return ed(t,!1)}function wy(t){return ed(t,!0)}function ed(t,e){return st(t)?t:new _y(t,e)}class _y{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Ae(e),this._value=n?e:ni(e)}get value(){return Jh(this),this._value}set value(e){const n=this.__v_isShallow||lo(e)||ir(e);e=n?e:Ae(e),ti(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:ni(e),Qh(this))}}function B(t){return st(t)?t.value:t}const by={get:(t,e,n)=>B(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const r=t[e];return st(r)&&!st(n)?(r.value=n,!0):Reflect.set(t,e,n,s)}};function td(t){return Xn(t)?t:new Proxy(t,by)}function Ey(t){const e=we(t)?new Array(t.length):{};for(const n in t)e[n]=Iy(t,n);return e}class Sy{constructor(e,n,s){this._object=e,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Zg(Ae(this._object),this._key)}}function Iy(t,e,n){const s=t[e];return st(s)?s:new Sy(t,e,n)}class Oy{constructor(e,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Vl(e,()=>{this._dirty||(this._dirty=!0,Qh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const e=Ae(this);return Jh(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Dn(t,e,n=!1){let s,r;const i=Se(t);return i?(s=t,r=ln):(s=t.get,r=t.set),new Oy(s,r,i||!r,n)}function Jn(t,e,n,s){let r;try{r=s?t(...s):t()}catch(i){Ro(i,e,n)}return r}function qt(t,e,n,s){if(Se(t)){const i=Jn(t,e,n,s);return i&&Ch(i)&&i.catch(o=>{Ro(o,e,n)}),i}const r=[];for(let i=0;i<t.length;i++)r.push(qt(t[i],e,n,s));return r}function Ro(t,e,n,s=!0){const r=e?e.vnode:null;if(e){let i=e.parent;const o=e.proxy,a=n;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,o,a)===!1)return}i=i.parent}const l=e.appContext.config.errorHandler;if(l){Jn(l,null,10,[t,o,a]);return}}Dy(t,n,r,s)}function Dy(t,e,n,s=!0){console.error(t)}let si=!1,al=!1;const bt=[];let Tn=0;const Xs=[];let On=null,ps=0;const nd=Promise.resolve();let Jl=null;function rn(t){const e=Jl||nd;return t?e.then(this?t.bind(this):t):e}function ky(t){let e=Tn+1,n=bt.length;for(;e<n;){const s=e+n>>>1;ri(bt[s])<t?e=s+1:n=s}return e}function Ql(t){(!bt.length||!bt.includes(t,si&&t.allowRecurse?Tn+1:Tn))&&(t.id==null?bt.push(t):bt.splice(ky(t.id),0,t),sd())}function sd(){!si&&!al&&(al=!0,Jl=nd.then(id))}function My(t){const e=bt.indexOf(t);e>Tn&&bt.splice(e,1)}function Cy(t){we(t)?Xs.push(...t):(!On||!On.includes(t,t.allowRecurse?ps+1:ps))&&Xs.push(t),sd()}function Su(t,e=si?Tn+1:0){for(;e<bt.length;e++){const n=bt[e];n&&n.pre&&(bt.splice(e,1),e--,n())}}function rd(t){if(Xs.length){const e=[...new Set(Xs)];if(Xs.length=0,On){On.push(...e);return}for(On=e,On.sort((n,s)=>ri(n)-ri(s)),ps=0;ps<On.length;ps++)On[ps]();On=null,ps=0}}const ri=t=>t.id==null?1/0:t.id,Ay=(t,e)=>{const n=ri(t)-ri(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function id(t){al=!1,si=!0,bt.sort(Ay);const e=ln;try{for(Tn=0;Tn<bt.length;Tn++){const n=bt[Tn];n&&n.active!==!1&&Jn(n,null,14)}}finally{Tn=0,bt.length=0,rd(),si=!1,Jl=null,(bt.length||Xs.length)&&id()}}function Ny(t,e,...n){if(t.isUnmounted)return;const s=t.vnode.props||Ke;let r=n;const i=e.startsWith("update:"),o=i&&e.slice(7);if(o&&o in s){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:h}=s[u]||Ke;h&&(r=n.map(d=>it(d)?d.trim():d)),f&&(r=n.map(Fg))}let a,l=s[a=Zi(e)]||s[a=Zi(rr(e))];!l&&i&&(l=s[a=Zi(dr(e))]),l&&qt(l,t,6,r);const c=s[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,qt(c,t,6,r)}}function od(t,e,n=!1){const s=e.emitsCache,r=s.get(t);if(r!==void 0)return r;const i=t.emits;let o={},a=!1;if(!Se(t)){const l=c=>{const u=od(c,e,!0);u&&(a=!0,ct(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!a?(Ze(t)&&s.set(t,null),null):(we(i)?i.forEach(l=>o[l]=null):ct(o,i),Ze(t)&&s.set(t,o),o)}function Po(t,e){return!t||!Co(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ne(t,e[0].toLowerCase()+e.slice(1))||Ne(t,dr(e))||Ne(t,e))}let Tt=null,$o=null;function co(t){const e=Tt;return Tt=t,$o=t&&t.type.__scopeId||null,e}function ad(t){$o=t}function ld(){$o=null}function gt(t,e=Tt,n){if(!e||t._n)return t;const s=(...r)=>{s._d&&Ru(-1);const i=co(e);let o;try{o=t(...r)}finally{co(i),s._d&&Ru(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function ka(t){const{type:e,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:f,data:h,setupState:d,ctx:m,inheritAttrs:p}=t;let y,g;const T=co(t);try{if(n.shapeFlag&4){const w=r||s;y=vn(u.call(w,w,f,i,d,h,m)),g=l}else{const w=e;y=vn(w.length>1?w(i,{attrs:l,slots:a,emit:c}):w(i,null)),g=e.props?l:xy(l)}}catch(w){qr.length=0,Ro(w,t,1),y=_e(Kt)}let I=y;if(g&&p!==!1){const w=Object.keys(g),{shapeFlag:b}=I;w.length&&b&7&&(o&&w.some(Yl)&&(g=Ly(g,o)),I=ts(I,g))}return n.dirs&&(I=ts(I),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&(I.transition=n.transition),y=I,co(T),y}const xy=t=>{let e;for(const n in t)(n==="class"||n==="style"||Co(n))&&((e||(e={}))[n]=t[n]);return e},Ly=(t,e)=>{const n={};for(const s in t)(!Yl(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function Ry(t,e,n){const{props:s,children:r,component:i}=t,{props:o,children:a,patchFlag:l}=e,c=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Iu(s,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(o[h]!==s[h]&&!Po(c,h))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?Iu(s,o,c):!0:!!o;return!1}function Iu(t,e,n){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(e[i]!==t[i]&&!Po(n,i))return!0}return!1}function Py({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const $y=t=>t.__isSuspense;function Fy(t,e){e&&e.pendingBranch?we(t)?e.effects.push(...t):e.effects.push(t):Cy(t)}function As(t,e){return ec(t,null,e)}const Ri={};function He(t,e,n){return ec(t,e,n)}function ec(t,e,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=Ke){var a;const l=jl()===((a=dt)==null?void 0:a.scope)?dt:null;let c,u=!1,f=!1;if(st(t)?(c=()=>t.value,u=lo(t)):Xn(t)?(c=()=>t,s=!0):we(t)?(f=!0,u=t.some(w=>Xn(w)||lo(w)),c=()=>t.map(w=>{if(st(w))return w.value;if(Xn(w))return Ts(w);if(Se(w))return Jn(w,l,2)})):Se(t)?e?c=()=>Jn(t,l,2):c=()=>{if(!(l&&l.isUnmounted))return h&&h(),qt(t,l,3,[d])}:c=ln,e&&s){const w=c;c=()=>Ts(w())}let h,d=w=>{h=T.onStop=()=>{Jn(w,l,4)}},m;if(ai)if(d=ln,e?n&&qt(e,l,3,[c(),f?[]:void 0,d]):c(),r==="sync"){const w=Mv();m=w.__watcherHandles||(w.__watcherHandles=[])}else return ln;let p=f?new Array(t.length).fill(Ri):Ri;const y=()=>{if(T.active)if(e){const w=T.run();(s||u||(f?w.some((b,S)=>ti(b,p[S])):ti(w,p)))&&(h&&h(),qt(e,l,3,[w,p===Ri?void 0:f&&p[0]===Ri?[]:p,d]),p=w)}else T.run()};y.allowRecurse=!!e;let g;r==="sync"?g=y:r==="post"?g=()=>At(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),g=()=>Ql(y));const T=new Vl(c,g);e?n?y():p=T.run():r==="post"?At(T.run.bind(T),l&&l.suspense):T.run();const I=()=>{T.stop(),l&&l.scope&&Ul(l.scope.effects,T)};return m&&m.push(I),I}function zy(t,e,n){const s=this.proxy,r=it(t)?t.includes(".")?cd(s,t):()=>s[t]:t.bind(s,s);let i;Se(e)?i=e:(i=e.handler,n=e);const o=dt;or(this);const a=ec(r,i.bind(s),n);return o?or(o):Ss(),a}function cd(t,e){const n=e.split(".");return()=>{let s=t;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function Ts(t,e){if(!Ze(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),st(t))Ts(t.value,e);else if(we(t))for(let n=0;n<t.length;n++)Ts(t[n],e);else if(Mh(t)||Gs(t))t.forEach(n=>{Ts(n,e)});else if(Nh(t))for(const n in t)Ts(t[n],e);return t}function Js(t,e){const n=Tt;if(n===null)return t;const s=Ho(n)||n.proxy,r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,a,l,c=Ke]=e[i];o&&(Se(o)&&(o={mounted:o,updated:o}),o.deep&&Ts(a),r.push({dir:o,instance:s,value:a,oldValue:void 0,arg:l,modifiers:c}))}return t}function ls(t,e,n,s){const r=t.dirs,i=e&&e.dirs;for(let o=0;o<r.length;o++){const a=r[o];i&&(a.oldValue=i[o].value);let l=a.dir[s];l&&(mr(),qt(l,n,8,[t.el,a,t,e]),pr())}}function Yy(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return os(()=>{t.isMounted=!0}),pd(()=>{t.isUnmounting=!0}),t}const Ut=[Function,Array],ud={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ut,onEnter:Ut,onAfterEnter:Ut,onEnterCancelled:Ut,onBeforeLeave:Ut,onLeave:Ut,onAfterLeave:Ut,onLeaveCancelled:Ut,onBeforeAppear:Ut,onAppear:Ut,onAfterAppear:Ut,onAppearCancelled:Ut},Uy={name:"BaseTransition",props:ud,setup(t,{slots:e}){const n=Md(),s=Yy();let r;return()=>{const i=e.default&&hd(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==Kt){o=p;break}}const a=Ae(t),{mode:l}=a;if(s.isLeaving)return Ma(o);const c=Ou(o);if(!c)return Ma(o);const u=ll(c,a,s,n);cl(c,u);const f=n.subTree,h=f&&Ou(f);let d=!1;const{getTransitionKey:m}=c.type;if(m){const p=m();r===void 0?r=p:p!==r&&(r=p,d=!0)}if(h&&h.type!==Kt&&(!gs(c,h)||d)){const p=ll(h,a,s,n);if(cl(h,p),l==="out-in")return s.isLeaving=!0,p.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},Ma(o);l==="in-out"&&c.type!==Kt&&(p.delayLeave=(y,g,T)=>{const I=fd(s,h);I[String(h.key)]=h,y._leaveCb=()=>{g(),y._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=T})}return o}}},By=Uy;function fd(t,e){const{leavingVNodes:n}=t;let s=n.get(e.type);return s||(s=Object.create(null),n.set(e.type,s)),s}function ll(t,e,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:d,onLeaveCancelled:m,onBeforeAppear:p,onAppear:y,onAfterAppear:g,onAppearCancelled:T}=e,I=String(t.key),w=fd(n,t),b=(D,A)=>{D&&qt(D,s,9,A)},S=(D,A)=>{const z=A[1];b(D,A),we(D)?D.every(X=>X.length<=1)&&z():D.length<=1&&z()},C={mode:i,persisted:o,beforeEnter(D){let A=a;if(!n.isMounted)if(r)A=p||a;else return;D._leaveCb&&D._leaveCb(!0);const z=w[I];z&&gs(t,z)&&z.el._leaveCb&&z.el._leaveCb(),b(A,[D])},enter(D){let A=l,z=c,X=u;if(!n.isMounted)if(r)A=y||l,z=g||c,X=T||u;else return;let L=!1;const re=D._enterCb=he=>{L||(L=!0,he?b(X,[D]):b(z,[D]),C.delayedLeave&&C.delayedLeave(),D._enterCb=void 0)};A?S(A,[D,re]):re()},leave(D,A){const z=String(t.key);if(D._enterCb&&D._enterCb(!0),n.isUnmounting)return A();b(f,[D]);let X=!1;const L=D._leaveCb=re=>{X||(X=!0,A(),re?b(m,[D]):b(d,[D]),D._leaveCb=void 0,w[z]===t&&delete w[z])};w[z]=t,h?S(h,[D,L]):L()},clone(D){return ll(D,e,n,s)}};return C}function Ma(t){if(Fo(t))return t=ts(t),t.children=null,t}function Ou(t){return Fo(t)?t.children?t.children[0]:void 0:t}function cl(t,e){t.shapeFlag&6&&t.component?cl(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function hd(t,e=!1,n){let s=[],r=0;for(let i=0;i<t.length;i++){let o=t[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Pe?(o.patchFlag&128&&r++,s=s.concat(hd(o.children,e,a))):(e||o.type!==Kt)&&s.push(a!=null?ts(o,{key:a}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function ke(t,e){return Se(t)?(()=>ct({name:t.name},e,{setup:t}))():t}const Wr=t=>!!t.type.__asyncLoader,Fo=t=>t.type.__isKeepAlive;function dd(t,e){md(t,"a",e)}function Hy(t,e){md(t,"da",e)}function md(t,e,n=dt){const s=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(zo(e,s,n),n){let r=n.parent;for(;r&&r.parent;)Fo(r.parent.vnode)&&jy(s,e,n,r),r=r.parent}}function jy(t,e,n,s){const r=zo(e,t,s,!0);Yo(()=>{Ul(s[e],r)},n)}function zo(t,e,n=dt,s=!1){if(n){const r=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;mr(),or(n);const a=qt(e,n,t,o);return Ss(),pr(),a});return s?r.unshift(i):r.push(i),i}}const xn=t=>(e,n=dt)=>(!ai||t==="sp")&&zo(t,(...s)=>e(...s),n),Wy=xn("bm"),os=xn("m"),Vy=xn("bu"),qy=xn("u"),pd=xn("bum"),Yo=xn("um"),Ky=xn("sp"),Zy=xn("rtg"),Gy=xn("rtc");function Xy(t,e=dt){zo("ec",t,e)}const Jy=Symbol.for("v-ndc");function un(t,e,n,s){let r;const i=n&&n[s];if(we(t)||it(t)){r=new Array(t.length);for(let o=0,a=t.length;o<a;o++)r[o]=e(t[o],o,void 0,i&&i[o])}else if(typeof t=="number"){r=new Array(t);for(let o=0;o<t;o++)r[o]=e(o+1,o,void 0,i&&i[o])}else if(Ze(t))if(t[Symbol.iterator])r=Array.from(t,(o,a)=>e(o,a,void 0,i&&i[a]));else{const o=Object.keys(t);r=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];r[a]=e(t[c],c,a,i&&i[a])}}else r=[];return n&&(n[s]=r),r}function gd(t,e,n={},s,r){if(Tt.isCE||Tt.parent&&Wr(Tt.parent)&&Tt.parent.isCE)return e!=="default"&&(n.name=e),_e("slot",n,s&&s());let i=t[e];i&&i._c&&(i._d=!1),ne();const o=i&&yd(i(n)),a=Ge(Pe,{key:n.key||o&&o.key||`_${e}`},o||(s?s():[]),o&&t._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function yd(t){return t.some(e=>fo(e)?!(e.type===Kt||e.type===Pe&&!yd(e.children)):!0)?t:null}function tc(t,e){const n={};for(const s in t)n[e&&/[A-Z]/.test(s)?`on:${s}`:Zi(s)]=t[s];return n}const ul=t=>t?Cd(t)?Ho(t)||t.proxy:ul(t.parent):null,Vr=ct(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ul(t.parent),$root:t=>ul(t.root),$emit:t=>t.emit,$options:t=>nc(t),$forceUpdate:t=>t.f||(t.f=()=>Ql(t.update)),$nextTick:t=>t.n||(t.n=rn.bind(t.proxy)),$watch:t=>zy.bind(t)}),Ca=(t,e)=>t!==Ke&&!t.__isScriptSetup&&Ne(t,e),Qy={get({_:t},e){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return s[e];case 2:return r[e];case 4:return n[e];case 3:return i[e]}else{if(Ca(s,e))return o[e]=1,s[e];if(r!==Ke&&Ne(r,e))return o[e]=2,r[e];if((c=t.propsOptions[0])&&Ne(c,e))return o[e]=3,i[e];if(n!==Ke&&Ne(n,e))return o[e]=4,n[e];fl&&(o[e]=0)}}const u=Vr[e];let f,h;if(u)return e==="$attrs"&&Lt(t,"get",e),u(t);if((f=a.__cssModules)&&(f=f[e]))return f;if(n!==Ke&&Ne(n,e))return o[e]=4,n[e];if(h=l.config.globalProperties,Ne(h,e))return h[e]},set({_:t},e,n){const{data:s,setupState:r,ctx:i}=t;return Ca(r,e)?(r[e]=n,!0):s!==Ke&&Ne(s,e)?(s[e]=n,!0):Ne(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let a;return!!n[o]||t!==Ke&&Ne(t,o)||Ca(e,o)||(a=i[0])&&Ne(a,o)||Ne(s,o)||Ne(Vr,o)||Ne(r.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ne(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Du(t){return we(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let fl=!0;function ev(t){const e=nc(t),n=t.proxy,s=t.ctx;fl=!1,e.beforeCreate&&ku(e.beforeCreate,t,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:d,updated:m,activated:p,deactivated:y,beforeDestroy:g,beforeUnmount:T,destroyed:I,unmounted:w,render:b,renderTracked:S,renderTriggered:C,errorCaptured:D,serverPrefetch:A,expose:z,inheritAttrs:X,components:L,directives:re,filters:he}=e;if(c&&tv(c,s,null),o)for(const te in o){const E=o[te];Se(E)&&(s[te]=E.bind(n))}if(r){const te=r.call(n,n);Ze(te)&&(t.data=Os(te))}if(fl=!0,i)for(const te in i){const E=i[te],G=Se(E)?E.bind(n,n):Se(E.get)?E.get.bind(n,n):ln,F=!Se(E)&&Se(E.set)?E.set.bind(n):ln,Q=x({get:G,set:F});Object.defineProperty(s,te,{enumerable:!0,configurable:!0,get:()=>Q.value,set:ve=>Q.value=ve})}if(a)for(const te in a)vd(a[te],s,n,te);if(l){const te=Se(l)?l.call(n):l;Reflect.ownKeys(te).forEach(E=>{Gi(E,te[E])})}u&&ku(u,t,"c");function J(te,E){we(E)?E.forEach(G=>te(G.bind(n))):E&&te(E.bind(n))}if(J(Wy,f),J(os,h),J(Vy,d),J(qy,m),J(dd,p),J(Hy,y),J(Xy,D),J(Gy,S),J(Zy,C),J(pd,T),J(Yo,w),J(Ky,A),we(z))if(z.length){const te=t.exposed||(t.exposed={});z.forEach(E=>{Object.defineProperty(te,E,{get:()=>n[E],set:G=>n[E]=G})})}else t.exposed||(t.exposed={});b&&t.render===ln&&(t.render=b),X!=null&&(t.inheritAttrs=X),L&&(t.components=L),re&&(t.directives=re)}function tv(t,e,n=ln){we(t)&&(t=hl(t));for(const s in t){const r=t[s];let i;Ze(r)?"default"in r?i=cn(r.from||s,r.default,!0):i=cn(r.from||s):i=cn(r),st(i)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[s]=i}}function ku(t,e,n){qt(we(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function vd(t,e,n,s){const r=s.includes(".")?cd(n,s):()=>n[s];if(it(t)){const i=e[t];Se(i)&&He(r,i)}else if(Se(t))He(r,t.bind(n));else if(Ze(t))if(we(t))t.forEach(i=>vd(i,e,n,s));else{const i=Se(t.handler)?t.handler.bind(n):e[t.handler];Se(i)&&He(r,i,t)}}function nc(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let l;return a?l=a:!r.length&&!n&&!s?l=e:(l={},r.length&&r.forEach(c=>uo(l,c,o,!0)),uo(l,e,o)),Ze(e)&&i.set(e,l),l}function uo(t,e,n,s=!1){const{mixins:r,extends:i}=e;i&&uo(t,i,n,!0),r&&r.forEach(o=>uo(t,o,n,!0));for(const o in e)if(!(s&&o==="expose")){const a=nv[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const nv={data:Mu,props:Cu,emits:Cu,methods:Ur,computed:Ur,beforeCreate:Dt,created:Dt,beforeMount:Dt,mounted:Dt,beforeUpdate:Dt,updated:Dt,beforeDestroy:Dt,beforeUnmount:Dt,destroyed:Dt,unmounted:Dt,activated:Dt,deactivated:Dt,errorCaptured:Dt,serverPrefetch:Dt,components:Ur,directives:Ur,watch:rv,provide:Mu,inject:sv};function Mu(t,e){return e?t?function(){return ct(Se(t)?t.call(this,this):t,Se(e)?e.call(this,this):e)}:e:t}function sv(t,e){return Ur(hl(t),hl(e))}function hl(t){if(we(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Dt(t,e){return t?[...new Set([].concat(t,e))]:e}function Ur(t,e){return t?ct(Object.create(null),t,e):e}function Cu(t,e){return t?we(t)&&we(e)?[...new Set([...t,...e])]:ct(Object.create(null),Du(t),Du(e??{})):e}function rv(t,e){if(!t)return e;if(!e)return t;const n=ct(Object.create(null),t);for(const s in e)n[s]=Dt(t[s],e[s]);return n}function Td(){return{app:null,config:{isNativeTag:Ng,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let iv=0;function ov(t,e){return function(s,r=null){Se(s)||(s=ct({},s)),r!=null&&!Ze(r)&&(r=null);const i=Td(),o=new Set;let a=!1;const l=i.app={_uid:iv++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:Cv,get config(){return i.config},set config(c){},use(c,...u){return o.has(c)||(c&&Se(c.install)?(o.add(c),c.install(l,...u)):Se(c)&&(o.add(c),c(l,...u))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,u){return u?(i.components[c]=u,l):i.components[c]},directive(c,u){return u?(i.directives[c]=u,l):i.directives[c]},mount(c,u,f){if(!a){const h=_e(s,r);return h.appContext=i,u&&e?e(h,c):t(h,c,f),a=!0,l._container=c,c.__vue_app__=l,Ho(h.component)||h.component.proxy}},unmount(){a&&(t(null,l._container),delete l._container.__vue_app__)},provide(c,u){return i.provides[c]=u,l},runWithContext(c){ii=l;try{return c()}finally{ii=null}}};return l}}let ii=null;function Gi(t,e){if(dt){let n=dt.provides;const s=dt.parent&&dt.parent.provides;s===n&&(n=dt.provides=Object.create(s)),n[t]=e}}function cn(t,e,n=!1){const s=dt||Tt;if(s||ii){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:ii._context.provides;if(r&&t in r)return r[t];if(arguments.length>1)return n&&Se(e)?e.call(s&&s.proxy):e}}function av(){return!!(dt||Tt||ii)}function lv(t,e,n,s=!1){const r={},i={};oo(i,Bo,1),t.propsDefaults=Object.create(null),wd(t,e,r,i);for(const o in t.propsOptions[0])o in r||(r[o]=void 0);n?t.props=s?r:Zh(r):t.type.props?t.props=r:t.props=i,t.attrs=i}function cv(t,e,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=t,a=Ae(r),[l]=t.propsOptions;let c=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(Po(t.emitsOptions,h))continue;const d=e[h];if(l)if(Ne(i,h))d!==i[h]&&(i[h]=d,c=!0);else{const m=rr(h);r[m]=dl(l,a,m,d,t,!1)}else d!==i[h]&&(i[h]=d,c=!0)}}}else{wd(t,e,r,i)&&(c=!0);let u;for(const f in a)(!e||!Ne(e,f)&&((u=dr(f))===f||!Ne(e,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=dl(l,a,f,void 0,t,!0)):delete r[f]);if(i!==a)for(const f in i)(!e||!Ne(e,f))&&(delete i[f],c=!0)}c&&Cn(t,"set","$attrs")}function wd(t,e,n,s){const[r,i]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(Ki(l))continue;const c=e[l];let u;r&&Ne(r,u=rr(l))?!i||!i.includes(u)?n[u]=c:(a||(a={}))[u]=c:Po(t.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,o=!0)}if(i){const l=Ae(n),c=a||Ke;for(let u=0;u<i.length;u++){const f=i[u];n[f]=dl(r,l,f,c[f],t,!Ne(c,f))}}return o}function dl(t,e,n,s,r,i){const o=t[n];if(o!=null){const a=Ne(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Se(l)){const{propsDefaults:c}=r;n in c?s=c[n]:(or(r),s=c[n]=l.call(null,e),Ss())}else s=l}o[0]&&(i&&!a?s=!1:o[1]&&(s===""||s===dr(n))&&(s=!0))}return s}function _d(t,e,n=!1){const s=e.propsCache,r=s.get(t);if(r)return r;const i=t.props,o={},a=[];let l=!1;if(!Se(t)){const u=f=>{l=!0;const[h,d]=_d(f,e,!0);ct(o,h),d&&a.push(...d)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!i&&!l)return Ze(t)&&s.set(t,Zs),Zs;if(we(i))for(let u=0;u<i.length;u++){const f=rr(i[u]);Au(f)&&(o[f]=Ke)}else if(i)for(const u in i){const f=rr(u);if(Au(f)){const h=i[u],d=o[f]=we(h)||Se(h)?{type:h}:ct({},h);if(d){const m=Lu(Boolean,d.type),p=Lu(String,d.type);d[0]=m>-1,d[1]=p<0||m<p,(m>-1||Ne(d,"default"))&&a.push(f)}}}const c=[o,a];return Ze(t)&&s.set(t,c),c}function Au(t){return t[0]!=="$"}function Nu(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function xu(t,e){return Nu(t)===Nu(e)}function Lu(t,e){return we(e)?e.findIndex(n=>xu(n,t)):Se(e)&&xu(e,t)?0:-1}const bd=t=>t[0]==="_"||t==="$stable",sc=t=>we(t)?t.map(vn):[vn(t)],uv=(t,e,n)=>{if(e._n)return e;const s=gt((...r)=>sc(e(...r)),n);return s._c=!1,s},Ed=(t,e,n)=>{const s=t._ctx;for(const r in t){if(bd(r))continue;const i=t[r];if(Se(i))e[r]=uv(r,i,s);else if(i!=null){const o=sc(i);e[r]=()=>o}}},Sd=(t,e)=>{const n=sc(e);t.slots.default=()=>n},fv=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=Ae(e),oo(e,"_",n)):Ed(e,t.slots={})}else t.slots={},e&&Sd(t,e);oo(t.slots,Bo,1)},hv=(t,e,n)=>{const{vnode:s,slots:r}=t;let i=!0,o=Ke;if(s.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:(ct(r,e),!n&&a===1&&delete r._):(i=!e.$stable,Ed(e,r)),o=e}else e&&(Sd(t,e),o={default:1});if(i)for(const a in r)!bd(a)&&!(a in o)&&delete r[a]};function ml(t,e,n,s,r=!1){if(we(t)){t.forEach((h,d)=>ml(h,e&&(we(e)?e[d]:e),n,s,r));return}if(Wr(s)&&!r)return;const i=s.shapeFlag&4?Ho(s.component)||s.component.proxy:s.el,o=r?null:i,{i:a,r:l}=t,c=e&&e.r,u=a.refs===Ke?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(it(c)?(u[c]=null,Ne(f,c)&&(f[c]=null)):st(c)&&(c.value=null)),Se(l))Jn(l,a,12,[o,u]);else{const h=it(l),d=st(l);if(h||d){const m=()=>{if(t.f){const p=h?Ne(f,l)?f[l]:u[l]:l.value;r?we(p)&&Ul(p,i):we(p)?p.includes(i)||p.push(i):h?(u[l]=[i],Ne(f,l)&&(f[l]=u[l])):(l.value=[i],t.k&&(u[t.k]=l.value))}else h?(u[l]=o,Ne(f,l)&&(f[l]=o)):d&&(l.value=o,t.k&&(u[t.k]=o))};o?(m.id=-1,At(m,n)):m()}}}const At=Fy;function dv(t){return mv(t)}function mv(t,e){const n=sl();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:d=ln,insertStaticContent:m}=t,p=(O,M,N,Y=null,H=null,W=null,oe=!1,ee=null,se=!!M.dynamicChildren)=>{if(O===M)return;O&&!gs(O,M)&&(Y=$(O),ve(O,H,W,!0),O=null),M.patchFlag===-2&&(se=!1,M.dynamicChildren=null);const{type:j,ref:ge,shapeFlag:me}=M;switch(j){case Uo:y(O,M,N,Y);break;case Kt:g(O,M,N,Y);break;case Aa:O==null&&T(M,N,Y,oe);break;case Pe:L(O,M,N,Y,H,W,oe,ee,se);break;default:me&1?b(O,M,N,Y,H,W,oe,ee,se):me&6?re(O,M,N,Y,H,W,oe,ee,se):(me&64||me&128)&&j.process(O,M,N,Y,H,W,oe,ee,se,q)}ge!=null&&H&&ml(ge,O&&O.ref,W,M||O,!M)},y=(O,M,N,Y)=>{if(O==null)s(M.el=a(M.children),N,Y);else{const H=M.el=O.el;M.children!==O.children&&c(H,M.children)}},g=(O,M,N,Y)=>{O==null?s(M.el=l(M.children||""),N,Y):M.el=O.el},T=(O,M,N,Y)=>{[O.el,O.anchor]=m(O.children,M,N,Y,O.el,O.anchor)},I=({el:O,anchor:M},N,Y)=>{let H;for(;O&&O!==M;)H=h(O),s(O,N,Y),O=H;s(M,N,Y)},w=({el:O,anchor:M})=>{let N;for(;O&&O!==M;)N=h(O),r(O),O=N;r(M)},b=(O,M,N,Y,H,W,oe,ee,se)=>{oe=oe||M.type==="svg",O==null?S(M,N,Y,H,W,oe,ee,se):A(O,M,H,W,oe,ee,se)},S=(O,M,N,Y,H,W,oe,ee)=>{let se,j;const{type:ge,props:me,shapeFlag:ye,transition:Te,dirs:be}=O;if(se=O.el=o(O.type,W,me&&me.is,me),ye&8?u(se,O.children):ye&16&&D(O.children,se,null,Y,H,W&&ge!=="foreignObject",oe,ee),be&&ls(O,null,Y,"created"),C(se,O,O.scopeId,oe,Y),me){for(const K in me)K!=="value"&&!Ki(K)&&i(se,K,null,me[K],W,O.children,Y,H,Fe);"value"in me&&i(se,"value",null,me.value),(j=me.onVnodeBeforeMount)&&gn(j,Y,O)}be&&ls(O,null,Y,"beforeMount");const Le=(!H||H&&!H.pendingBranch)&&Te&&!Te.persisted;Le&&Te.beforeEnter(se),s(se,M,N),((j=me&&me.onVnodeMounted)||Le||be)&&At(()=>{j&&gn(j,Y,O),Le&&Te.enter(se),be&&ls(O,null,Y,"mounted")},H)},C=(O,M,N,Y,H)=>{if(N&&d(O,N),Y)for(let W=0;W<Y.length;W++)d(O,Y[W]);if(H){let W=H.subTree;if(M===W){const oe=H.vnode;C(O,oe,oe.scopeId,oe.slotScopeIds,H.parent)}}},D=(O,M,N,Y,H,W,oe,ee,se=0)=>{for(let j=se;j<O.length;j++){const ge=O[j]=ee?jn(O[j]):vn(O[j]);p(null,ge,M,N,Y,H,W,oe,ee)}},A=(O,M,N,Y,H,W,oe)=>{const ee=M.el=O.el;let{patchFlag:se,dynamicChildren:j,dirs:ge}=M;se|=O.patchFlag&16;const me=O.props||Ke,ye=M.props||Ke;let Te;N&&cs(N,!1),(Te=ye.onVnodeBeforeUpdate)&&gn(Te,N,M,O),ge&&ls(M,O,N,"beforeUpdate"),N&&cs(N,!0);const be=H&&M.type!=="foreignObject";if(j?z(O.dynamicChildren,j,ee,N,Y,be,W):oe||E(O,M,ee,null,N,Y,be,W,!1),se>0){if(se&16)X(ee,M,me,ye,N,Y,H);else if(se&2&&me.class!==ye.class&&i(ee,"class",null,ye.class,H),se&4&&i(ee,"style",me.style,ye.style,H),se&8){const Le=M.dynamicProps;for(let K=0;K<Le.length;K++){const Oe=Le[K],nt=me[Oe],It=ye[Oe];(It!==nt||Oe==="value")&&i(ee,Oe,nt,It,H,O.children,N,Y,Fe)}}se&1&&O.children!==M.children&&u(ee,M.children)}else!oe&&j==null&&X(ee,M,me,ye,N,Y,H);((Te=ye.onVnodeUpdated)||ge)&&At(()=>{Te&&gn(Te,N,M,O),ge&&ls(M,O,N,"updated")},Y)},z=(O,M,N,Y,H,W,oe)=>{for(let ee=0;ee<M.length;ee++){const se=O[ee],j=M[ee],ge=se.el&&(se.type===Pe||!gs(se,j)||se.shapeFlag&70)?f(se.el):N;p(se,j,ge,null,Y,H,W,oe,!0)}},X=(O,M,N,Y,H,W,oe)=>{if(N!==Y){if(N!==Ke)for(const ee in N)!Ki(ee)&&!(ee in Y)&&i(O,ee,N[ee],null,oe,M.children,H,W,Fe);for(const ee in Y){if(Ki(ee))continue;const se=Y[ee],j=N[ee];se!==j&&ee!=="value"&&i(O,ee,j,se,oe,M.children,H,W,Fe)}"value"in Y&&i(O,"value",N.value,Y.value)}},L=(O,M,N,Y,H,W,oe,ee,se)=>{const j=M.el=O?O.el:a(""),ge=M.anchor=O?O.anchor:a("");let{patchFlag:me,dynamicChildren:ye,slotScopeIds:Te}=M;Te&&(ee=ee?ee.concat(Te):Te),O==null?(s(j,N,Y),s(ge,N,Y),D(M.children,N,ge,H,W,oe,ee,se)):me>0&&me&64&&ye&&O.dynamicChildren?(z(O.dynamicChildren,ye,N,H,W,oe,ee),(M.key!=null||H&&M===H.subTree)&&Id(O,M,!0)):E(O,M,N,ge,H,W,oe,ee,se)},re=(O,M,N,Y,H,W,oe,ee,se)=>{M.slotScopeIds=ee,O==null?M.shapeFlag&512?H.ctx.activate(M,N,Y,oe,se):he(M,N,Y,H,W,oe,se):de(O,M,se)},he=(O,M,N,Y,H,W,oe)=>{const ee=O.component=bv(O,Y,H);if(Fo(O)&&(ee.ctx.renderer=q),Ev(ee),ee.asyncDep){if(H&&H.registerDep(ee,J),!O.el){const se=ee.subTree=_e(Kt);g(null,se,M,N)}return}J(ee,O,M,N,H,W,oe)},de=(O,M,N)=>{const Y=M.component=O.component;if(Ry(O,M,N))if(Y.asyncDep&&!Y.asyncResolved){te(Y,M,N);return}else Y.next=M,My(Y.update),Y.update();else M.el=O.el,Y.vnode=M},J=(O,M,N,Y,H,W,oe)=>{const ee=()=>{if(O.isMounted){let{next:ge,bu:me,u:ye,parent:Te,vnode:be}=O,Le=ge,K;cs(O,!1),ge?(ge.el=be.el,te(O,ge,oe)):ge=be,me&&Da(me),(K=ge.props&&ge.props.onVnodeBeforeUpdate)&&gn(K,Te,ge,be),cs(O,!0);const Oe=ka(O),nt=O.subTree;O.subTree=Oe,p(nt,Oe,f(nt.el),$(nt),O,H,W),ge.el=Oe.el,Le===null&&Py(O,Oe.el),ye&&At(ye,H),(K=ge.props&&ge.props.onVnodeUpdated)&&At(()=>gn(K,Te,ge,be),H)}else{let ge;const{el:me,props:ye}=M,{bm:Te,m:be,parent:Le}=O,K=Wr(M);if(cs(O,!1),Te&&Da(Te),!K&&(ge=ye&&ye.onVnodeBeforeMount)&&gn(ge,Le,M),cs(O,!0),me&&Ie){const Oe=()=>{O.subTree=ka(O),Ie(me,O.subTree,O,H,null)};K?M.type.__asyncLoader().then(()=>!O.isUnmounted&&Oe()):Oe()}else{const Oe=O.subTree=ka(O);p(null,Oe,N,Y,O,H,W),M.el=Oe.el}if(be&&At(be,H),!K&&(ge=ye&&ye.onVnodeMounted)){const Oe=M;At(()=>gn(ge,Le,Oe),H)}(M.shapeFlag&256||Le&&Wr(Le.vnode)&&Le.vnode.shapeFlag&256)&&O.a&&At(O.a,H),O.isMounted=!0,M=N=Y=null}},se=O.effect=new Vl(ee,()=>Ql(j),O.scope),j=O.update=()=>se.run();j.id=O.uid,cs(O,!0),j()},te=(O,M,N)=>{M.component=O;const Y=O.vnode.props;O.vnode=M,O.next=null,cv(O,M.props,Y,N),hv(O,M.children,N),mr(),Su(),pr()},E=(O,M,N,Y,H,W,oe,ee,se=!1)=>{const j=O&&O.children,ge=O?O.shapeFlag:0,me=M.children,{patchFlag:ye,shapeFlag:Te}=M;if(ye>0){if(ye&128){F(j,me,N,Y,H,W,oe,ee,se);return}else if(ye&256){G(j,me,N,Y,H,W,oe,ee,se);return}}Te&8?(ge&16&&Fe(j,H,W),me!==j&&u(N,me)):ge&16?Te&16?F(j,me,N,Y,H,W,oe,ee,se):Fe(j,H,W,!0):(ge&8&&u(N,""),Te&16&&D(me,N,Y,H,W,oe,ee,se))},G=(O,M,N,Y,H,W,oe,ee,se)=>{O=O||Zs,M=M||Zs;const j=O.length,ge=M.length,me=Math.min(j,ge);let ye;for(ye=0;ye<me;ye++){const Te=M[ye]=se?jn(M[ye]):vn(M[ye]);p(O[ye],Te,N,null,H,W,oe,ee,se)}j>ge?Fe(O,H,W,!0,!1,me):D(M,N,Y,H,W,oe,ee,se,me)},F=(O,M,N,Y,H,W,oe,ee,se)=>{let j=0;const ge=M.length;let me=O.length-1,ye=ge-1;for(;j<=me&&j<=ye;){const Te=O[j],be=M[j]=se?jn(M[j]):vn(M[j]);if(gs(Te,be))p(Te,be,N,null,H,W,oe,ee,se);else break;j++}for(;j<=me&&j<=ye;){const Te=O[me],be=M[ye]=se?jn(M[ye]):vn(M[ye]);if(gs(Te,be))p(Te,be,N,null,H,W,oe,ee,se);else break;me--,ye--}if(j>me){if(j<=ye){const Te=ye+1,be=Te<ge?M[Te].el:Y;for(;j<=ye;)p(null,M[j]=se?jn(M[j]):vn(M[j]),N,be,H,W,oe,ee,se),j++}}else if(j>ye)for(;j<=me;)ve(O[j],H,W,!0),j++;else{const Te=j,be=j,Le=new Map;for(j=be;j<=ye;j++){const yt=M[j]=se?jn(M[j]):vn(M[j]);yt.key!=null&&Le.set(yt.key,j)}let K,Oe=0;const nt=ye-be+1;let It=!1,Ln=0;const _n=new Array(nt);for(j=0;j<nt;j++)_n[j]=0;for(j=Te;j<=me;j++){const yt=O[j];if(Oe>=nt){ve(yt,H,W,!0);continue}let Je;if(yt.key!=null)Je=Le.get(yt.key);else for(K=be;K<=ye;K++)if(_n[K-be]===0&&gs(yt,M[K])){Je=K;break}Je===void 0?ve(yt,H,W,!0):(_n[Je-be]=j+1,Je>=Ln?Ln=Je:It=!0,p(yt,M[Je],N,null,H,W,oe,ee,se),Oe++)}const Ps=It?pv(_n):Zs;for(K=Ps.length-1,j=nt-1;j>=0;j--){const yt=be+j,Je=M[yt],bi=yt+1<ge?M[yt+1].el:Y;_n[j]===0?p(null,Je,N,bi,H,W,oe,ee,se):It&&(K<0||j!==Ps[K]?Q(Je,N,bi,2):K--)}}},Q=(O,M,N,Y,H=null)=>{const{el:W,type:oe,transition:ee,children:se,shapeFlag:j}=O;if(j&6){Q(O.component.subTree,M,N,Y);return}if(j&128){O.suspense.move(M,N,Y);return}if(j&64){oe.move(O,M,N,q);return}if(oe===Pe){s(W,M,N);for(let me=0;me<se.length;me++)Q(se[me],M,N,Y);s(O.anchor,M,N);return}if(oe===Aa){I(O,M,N);return}if(Y!==2&&j&1&&ee)if(Y===0)ee.beforeEnter(W),s(W,M,N),At(()=>ee.enter(W),H);else{const{leave:me,delayLeave:ye,afterLeave:Te}=ee,be=()=>s(W,M,N),Le=()=>{me(W,()=>{be(),Te&&Te()})};ye?ye(W,be,Le):Le()}else s(W,M,N)},ve=(O,M,N,Y=!1,H=!1)=>{const{type:W,props:oe,ref:ee,children:se,dynamicChildren:j,shapeFlag:ge,patchFlag:me,dirs:ye}=O;if(ee!=null&&ml(ee,null,N,O,!0),ge&256){M.ctx.deactivate(O);return}const Te=ge&1&&ye,be=!Wr(O);let Le;if(be&&(Le=oe&&oe.onVnodeBeforeUnmount)&&gn(Le,M,O),ge&6)ot(O.component,N,Y);else{if(ge&128){O.suspense.unmount(N,Y);return}Te&&ls(O,null,M,"beforeUnmount"),ge&64?O.type.remove(O,M,N,H,q,Y):j&&(W!==Pe||me>0&&me&64)?Fe(j,M,N,!1,!0):(W===Pe&&me&384||!H&&ge&16)&&Fe(se,M,N),Y&&Be(O)}(be&&(Le=oe&&oe.onVnodeUnmounted)||Te)&&At(()=>{Le&&gn(Le,M,O),Te&&ls(O,null,M,"unmounted")},N)},Be=O=>{const{type:M,el:N,anchor:Y,transition:H}=O;if(M===Pe){je(N,Y);return}if(M===Aa){w(O);return}const W=()=>{r(N),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(O.shapeFlag&1&&H&&!H.persisted){const{leave:oe,delayLeave:ee}=H,se=()=>oe(N,W);ee?ee(O.el,W,se):se()}else W()},je=(O,M)=>{let N;for(;O!==M;)N=h(O),r(O),O=N;r(M)},ot=(O,M,N)=>{const{bum:Y,scope:H,update:W,subTree:oe,um:ee}=O;Y&&Da(Y),H.stop(),W&&(W.active=!1,ve(oe,O,M,N)),ee&&At(ee,M),At(()=>{O.isUnmounted=!0},M),M&&M.pendingBranch&&!M.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===M.pendingId&&(M.deps--,M.deps===0&&M.resolve())},Fe=(O,M,N,Y=!1,H=!1,W=0)=>{for(let oe=W;oe<O.length;oe++)ve(O[oe],M,N,Y,H)},$=O=>O.shapeFlag&6?$(O.component.subTree):O.shapeFlag&128?O.suspense.next():h(O.anchor||O.el),ie=(O,M,N)=>{O==null?M._vnode&&ve(M._vnode,null,null,!0):p(M._vnode||null,O,M,null,null,null,N),Su(),rd(),M._vnode=O},q={p,um:ve,m:Q,r:Be,mt:he,mc:D,pc:E,pbc:z,n:$,o:t};let le,Ie;return e&&([le,Ie]=e(q)),{render:ie,hydrate:le,createApp:ov(ie,le)}}function cs({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Id(t,e,n=!1){const s=t.children,r=e.children;if(we(s)&&we(r))for(let i=0;i<s.length;i++){const o=s[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=jn(r[i]),a.el=o.el),n||Id(o,a)),a.type===Uo&&(a.el=o.el)}}function pv(t){const e=t.slice(),n=[0];let s,r,i,o,a;const l=t.length;for(s=0;s<l;s++){const c=t[s];if(c!==0){if(r=n[n.length-1],t[r]<c){e[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,t[n[a]]<c?i=a+1:o=a;c<t[n[i]]&&(i>0&&(e[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}const gv=t=>t.__isTeleport,Pe=Symbol.for("v-fgt"),Uo=Symbol.for("v-txt"),Kt=Symbol.for("v-cmt"),Aa=Symbol.for("v-stc"),qr=[];let on=null;function ne(t=!1){qr.push(on=t?null:[])}function yv(){qr.pop(),on=qr[qr.length-1]||null}let oi=1;function Ru(t){oi+=t}function Od(t){return t.dynamicChildren=oi>0?on||Zs:null,yv(),oi>0&&on&&on.push(t),t}function pe(t,e,n,s,r,i){return Od(V(t,e,n,s,r,i,!0))}function Ge(t,e,n,s,r){return Od(_e(t,e,n,s,r,!0))}function fo(t){return t?t.__v_isVNode===!0:!1}function gs(t,e){return t.type===e.type&&t.key===e.key}const Bo="__vInternal",Dd=({key:t})=>t??null,Xi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?it(t)||st(t)||Se(t)?{i:Tt,r:t,k:e,f:!!n}:t:null);function V(t,e=null,n=null,s=0,r=null,i=t===Pe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Dd(e),ref:e&&Xi(e),scopeId:$o,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Tt};return a?(rc(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=it(n)?8:16),oi>0&&!o&&on&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&on.push(l),l}const _e=vv;function vv(t,e=null,n=null,s=0,r=null,i=!1){if((!t||t===Jy)&&(t=Kt),fo(t)){const a=ts(t,e,!0);return n&&rc(a,n),oi>0&&!i&&on&&(a.shapeFlag&6?on[on.indexOf(t)]=a:on.push(a)),a.patchFlag|=-2,a}if(Dv(t)&&(t=t.__vccOpts),e){e=Tv(e);let{class:a,style:l}=e;a&&!it(a)&&(e.class=ut(a)),Ze(l)&&(Xh(l)&&!we(l)&&(l=ct({},l)),e.style=ze(l))}const o=it(t)?1:$y(t)?128:gv(t)?64:Ze(t)?4:Se(t)?2:0;return V(t,e,n,s,r,o,i,!0)}function Tv(t){return t?Xh(t)||Bo in t?ct({},t):t:null}function ts(t,e,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=t,a=e?ns(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Dd(a),ref:e&&e.ref?n&&r?we(r)?r.concat(Xi(e)):[r,Xi(e)]:Xi(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Pe?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ts(t.ssContent),ssFallback:t.ssFallback&&ts(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function kd(t=" ",e=0){return _e(Uo,null,t,e)}function Ue(t="",e=!1){return e?(ne(),Ge(Kt,null,t)):_e(Kt,null,t)}function vn(t){return t==null||typeof t=="boolean"?_e(Kt):we(t)?_e(Pe,null,t.slice()):typeof t=="object"?jn(t):_e(Uo,null,String(t))}function jn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ts(t)}function rc(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(we(e))n=16;else if(typeof e=="object")if(s&65){const r=e.default;r&&(r._c&&(r._d=!1),rc(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!(Bo in e)?e._ctx=Tt:r===3&&Tt&&(Tt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Se(e)?(e={default:e,_ctx:Tt},n=32):(e=String(e),s&64?(n=16,e=[kd(e)]):n=8);t.children=e,t.shapeFlag|=n}function ns(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const r in s)if(r==="class")e.class!==s.class&&(e.class=ut([e.class,s.class]));else if(r==="style")e.style=ze([e.style,s.style]);else if(Co(r)){const i=e[r],o=s[r];o&&i!==o&&!(we(i)&&i.includes(o))&&(e[r]=i?[].concat(i,o):o)}else r!==""&&(e[r]=s[r])}return e}function gn(t,e,n,s=null){qt(t,e,7,[n,s])}const wv=Td();let _v=0;function bv(t,e,n){const s=t.type,r=(e?e.appContext:t.appContext)||wv,i={uid:_v++,vnode:t,type:s,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ph(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_d(s,r),emitsOptions:od(s,r),emit:null,emitted:null,propsDefaults:Ke,inheritAttrs:s.inheritAttrs,ctx:Ke,data:Ke,props:Ke,attrs:Ke,slots:Ke,refs:Ke,setupState:Ke,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=Ny.bind(null,i),t.ce&&t.ce(i),i}let dt=null;const Md=()=>dt||Tt;let ic,Fs,Pu="__VUE_INSTANCE_SETTERS__";(Fs=sl()[Pu])||(Fs=sl()[Pu]=[]),Fs.push(t=>dt=t),ic=t=>{Fs.length>1?Fs.forEach(e=>e(t)):Fs[0](t)};const or=t=>{ic(t),t.scope.on()},Ss=()=>{dt&&dt.scope.off(),ic(null)};function Cd(t){return t.vnode.shapeFlag&4}let ai=!1;function Ev(t,e=!1){ai=e;const{props:n,children:s}=t.vnode,r=Cd(t);lv(t,n,r,e),fv(t,s);const i=r?Sv(t,e):void 0;return ai=!1,i}function Sv(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Lo(new Proxy(t.ctx,Qy));const{setup:s}=n;if(s){const r=t.setupContext=s.length>1?Ov(t):null;or(t),mr();const i=Jn(s,t,0,[t.props,r]);if(pr(),Ss(),Ch(i)){if(i.then(Ss,Ss),e)return i.then(o=>{$u(t,o,e)}).catch(o=>{Ro(o,t,0)});t.asyncDep=i}else $u(t,i,e)}else Ad(t,e)}function $u(t,e,n){Se(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ze(e)&&(t.setupState=td(e)),Ad(t,n)}let Fu;function Ad(t,e,n){const s=t.type;if(!t.render){if(!e&&Fu&&!s.render){const r=s.template||nc(t).template;if(r){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=s,c=ct(ct({isCustomElement:i,delimiters:a},o),l);s.render=Fu(r,c)}}t.render=s.render||ln}or(t),mr(),ev(t),pr(),Ss()}function Iv(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Lt(t,"get","$attrs"),e[n]}}))}function Ov(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return Iv(t)},slots:t.slots,emit:t.emit,expose:e}}function Ho(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(td(Lo(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Vr)return Vr[n](t)},has(e,n){return n in e||n in Vr}}))}function Dv(t){return Se(t)&&"__vccOpts"in t}const x=(t,e)=>Dn(t,e,ai);function oc(t,e,n){const s=arguments.length;return s===2?Ze(e)&&!we(e)?fo(e)?_e(t,null,[e]):_e(t,e):_e(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&fo(n)&&(n=[n]),_e(t,e,n))}const kv=Symbol.for("v-scx"),Mv=()=>cn(kv),Cv="3.3.4",Av="http://www.w3.org/2000/svg",ys=typeof document<"u"?document:null,zu=ys&&ys.createElement("template"),Nv={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const r=e?ys.createElementNS(Av,t):ys.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:t=>ys.createTextNode(t),createComment:t=>ys.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ys.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,r,i){const o=n?n.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{zu.innerHTML=s?`<svg>${t}</svg>`:t;const a=zu.content;if(s){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function xv(t,e,n){const s=t._vtc;s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function Lv(t,e,n){const s=t.style,r=it(n);if(n&&!r){if(e&&!it(e))for(const i in e)n[i]==null&&pl(s,i,"");for(const i in n)pl(s,i,n[i])}else{const i=s.display;r?e!==n&&(s.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(s.display=i)}}const Yu=/\s*!important$/;function pl(t,e,n){if(we(n))n.forEach(s=>pl(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=Rv(t,e);Yu.test(n)?t.setProperty(dr(s),n.replace(Yu,""),"important"):t[s]=n}}const Uu=["Webkit","Moz","ms"],Na={};function Rv(t,e){const n=Na[e];if(n)return n;let s=rr(e);if(s!=="filter"&&s in t)return Na[e]=s;s=xh(s);for(let r=0;r<Uu.length;r++){const i=Uu[r]+s;if(i in t)return Na[e]=i}return e}const Bu="http://www.w3.org/1999/xlink";function Pv(t,e,n,s,r){if(s&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Bu,e.slice(6,e.length)):t.setAttributeNS(Bu,e,n);else{const i=Wg(e);n==null||i&&!Lh(n)?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}function $v(t,e,n,s,r,i,o){if(e==="innerHTML"||e==="textContent"){s&&o(s,r,i),t[e]=n??"";return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){t._value=n;const c=a==="OPTION"?t.getAttribute("value"):t.value,u=n??"";c!==u&&(t.value=u),n==null&&t.removeAttribute(e);return}let l=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=Lh(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{t[e]=n}catch{}l&&t.removeAttribute(e)}function Fv(t,e,n,s){t.addEventListener(e,n,s)}function zv(t,e,n,s){t.removeEventListener(e,n,s)}function Yv(t,e,n,s,r=null){const i=t._vei||(t._vei={}),o=i[e];if(s&&o)o.value=s;else{const[a,l]=Uv(e);if(s){const c=i[e]=jv(s,r);Fv(t,a,c,l)}else o&&(zv(t,a,o,l),i[e]=void 0)}}const Hu=/(?:Once|Passive|Capture)$/;function Uv(t){let e;if(Hu.test(t)){e={};let s;for(;s=t.match(Hu);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):dr(t.slice(2)),e]}let xa=0;const Bv=Promise.resolve(),Hv=()=>xa||(Bv.then(()=>xa=0),xa=Date.now());function jv(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;qt(Wv(s,n.value),e,5,[s])};return n.value=t,n.attached=Hv(),n}function Wv(t,e){if(we(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>r=>!r._stopped&&s&&s(r))}else return e}const ju=/^on[a-z]/,Vv=(t,e,n,s,r=!1,i,o,a,l)=>{e==="class"?xv(t,s,r):e==="style"?Lv(t,n,s):Co(e)?Yl(e)||Yv(t,e,n,s,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):qv(t,e,s,r))?$v(t,e,s,i,o,a,l):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),Pv(t,e,s,r))};function qv(t,e,n,s){return s?!!(e==="innerHTML"||e==="textContent"||e in t&&ju.test(e)&&Se(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||ju.test(e)&&it(n)?!1:e in t}const $n="transition",Nr="animation",jo=(t,{slots:e})=>oc(By,Kv(t),e);jo.displayName="Transition";const Nd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};jo.props=ct({},ud,Nd);const us=(t,e=[])=>{we(t)?t.forEach(n=>n(...e)):t&&t(...e)},Wu=t=>t?we(t)?t.some(e=>e.length>1):t.length>1:!1;function Kv(t){const e={};for(const L in t)L in Nd||(e[L]=t[L]);if(t.css===!1)return e;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=t,m=Zv(r),p=m&&m[0],y=m&&m[1],{onBeforeEnter:g,onEnter:T,onEnterCancelled:I,onLeave:w,onLeaveCancelled:b,onBeforeAppear:S=g,onAppear:C=T,onAppearCancelled:D=I}=e,A=(L,re,he)=>{fs(L,re?u:a),fs(L,re?c:o),he&&he()},z=(L,re)=>{L._isLeaving=!1,fs(L,f),fs(L,d),fs(L,h),re&&re()},X=L=>(re,he)=>{const de=L?C:T,J=()=>A(re,L,he);us(de,[re,J]),Vu(()=>{fs(re,L?l:i),Fn(re,L?u:a),Wu(de)||qu(re,s,p,J)})};return ct(e,{onBeforeEnter(L){us(g,[L]),Fn(L,i),Fn(L,o)},onBeforeAppear(L){us(S,[L]),Fn(L,l),Fn(L,c)},onEnter:X(!1),onAppear:X(!0),onLeave(L,re){L._isLeaving=!0;const he=()=>z(L,re);Fn(L,f),Jv(),Fn(L,h),Vu(()=>{L._isLeaving&&(fs(L,f),Fn(L,d),Wu(w)||qu(L,s,y,he))}),us(w,[L,he])},onEnterCancelled(L){A(L,!1),us(I,[L])},onAppearCancelled(L){A(L,!0),us(D,[L])},onLeaveCancelled(L){z(L),us(b,[L])}})}function Zv(t){if(t==null)return null;if(Ze(t))return[La(t.enter),La(t.leave)];{const e=La(t);return[e,e]}}function La(t){return zg(t)}function Fn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function fs(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function Vu(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Gv=0;function qu(t,e,n,s){const r=t._endId=++Gv,i=()=>{r===t._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=Xv(t,e);if(!o)return s();const c=o+"end";let u=0;const f=()=>{t.removeEventListener(c,h),i()},h=d=>{d.target===t&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),t.addEventListener(c,h)}function Xv(t,e){const n=window.getComputedStyle(t),s=m=>(n[m]||"").split(", "),r=s(`${$n}Delay`),i=s(`${$n}Duration`),o=Ku(r,i),a=s(`${Nr}Delay`),l=s(`${Nr}Duration`),c=Ku(a,l);let u=null,f=0,h=0;e===$n?o>0&&(u=$n,f=o,h=i.length):e===Nr?c>0&&(u=Nr,f=c,h=l.length):(f=Math.max(o,c),u=f>0?o>c?$n:Nr:null,h=u?u===$n?i.length:l.length:0);const d=u===$n&&/\b(transform|all)(,|$)/.test(s(`${$n}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:d}}function Ku(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,s)=>Zu(n)+Zu(t[s])))}function Zu(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Jv(){return document.body.offsetHeight}const Qv=["ctrl","shift","alt","meta"],e0={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Qv.some(n=>t[`${n}Key`]&&!e.includes(n))},_t=(t,e)=>(n,...s)=>{for(let r=0;r<e.length;r++){const i=e0[e[r]];if(i&&i(n,e))return}return t(n,...s)},Qs={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):xr(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),xr(t,!0),s.enter(t)):s.leave(t,()=>{xr(t,!1)}):xr(t,e))},beforeUnmount(t,{value:e}){xr(t,e)}};function xr(t,e){t.style.display=e?t._vod:"none"}const t0=ct({patchProp:Vv},Nv);let Gu;function n0(){return Gu||(Gu=dv(t0))}const s0=(...t)=>{const e=n0().createApp(...t),{mount:n}=e;return e.mount=s=>{const r=r0(s);if(!r)return;const i=e._component;!Se(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e};function r0(t){return it(t)?document.querySelector(t):t}var i0=!1;/*!
 * pinia v2.1.6
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */let xd;const Wo=t=>xd=t,Ld=Symbol();function gl(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Kr;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Kr||(Kr={}));function o0(){const t=$h(!0),e=t.run(()=>ce({}));let n=[],s=[];const r=Lo({install(i){Wo(r),r._a=i,i.provide(Ld,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return!this._a&&!i0?s.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const Rd=()=>{};function Xu(t,e,n,s=Rd){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),s())};return!n&&jl()&&Fh(r),r}function zs(t,...e){t.slice().forEach(n=>{n(...e)})}const a0=t=>t();function yl(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,s)=>t.set(s,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],r=t[n];gl(r)&&gl(s)&&t.hasOwnProperty(n)&&!st(s)&&!Xn(s)?t[n]=yl(r,s):t[n]=s}return t}const l0=Symbol();function c0(t){return!gl(t)||!t.hasOwnProperty(l0)}const{assign:Bn}=Object;function u0(t){return!!(st(t)&&t.effect)}function f0(t,e,n,s){const{state:r,actions:i,getters:o}=e,a=n.state.value[t];let l;function c(){a||(n.state.value[t]=r?r():{});const u=Ey(n.state.value[t]);return Bn(u,i,Object.keys(o||{}).reduce((f,h)=>(f[h]=Lo(x(()=>{Wo(n);const d=n._s.get(t);return o[h].call(d,d)})),f),{}))}return l=Pd(t,c,e,n,s,!0),l}function Pd(t,e,n={},s,r,i){let o;const a=Bn({actions:{}},n),l={deep:!0};let c,u,f=[],h=[],d;const m=s.state.value[t];!i&&!m&&(s.state.value[t]={}),ce({});let p;function y(D){let A;c=u=!1,typeof D=="function"?(D(s.state.value[t]),A={type:Kr.patchFunction,storeId:t,events:d}):(yl(s.state.value[t],D),A={type:Kr.patchObject,payload:D,storeId:t,events:d});const z=p=Symbol();rn().then(()=>{p===z&&(c=!0)}),u=!0,zs(f,A,s.state.value[t])}const g=i?function(){const{state:A}=n,z=A?A():{};this.$patch(X=>{Bn(X,z)})}:Rd;function T(){o.stop(),f=[],h=[],s._s.delete(t)}function I(D,A){return function(){Wo(s);const z=Array.from(arguments),X=[],L=[];function re(J){X.push(J)}function he(J){L.push(J)}zs(h,{args:z,name:D,store:b,after:re,onError:he});let de;try{de=A.apply(this&&this.$id===t?this:b,z)}catch(J){throw zs(L,J),J}return de instanceof Promise?de.then(J=>(zs(X,J),J)).catch(J=>(zs(L,J),Promise.reject(J))):(zs(X,de),de)}}const w={_p:s,$id:t,$onAction:Xu.bind(null,h),$patch:y,$reset:g,$subscribe(D,A={}){const z=Xu(f,D,A.detached,()=>X()),X=o.run(()=>He(()=>s.state.value[t],L=>{(A.flush==="sync"?u:c)&&D({storeId:t,type:Kr.direct,events:d},L)},Bn({},l,A)));return z},$dispose:T},b=Os(w);s._s.set(t,b);const S=s._a&&s._a.runWithContext||a0,C=s._e.run(()=>(o=$h(),S(()=>o.run(e))));for(const D in C){const A=C[D];if(st(A)&&!u0(A)||Xn(A))i||(m&&c0(A)&&(st(A)?A.value=m[D]:yl(A,m[D])),s.state.value[t][D]=A);else if(typeof A=="function"){const z=I(D,A);C[D]=z,a.actions[D]=A}}return Bn(b,C),Bn(Ae(b),C),Object.defineProperty(b,"$state",{get:()=>s.state.value[t],set:D=>{y(A=>{Bn(A,D)})}}),s._p.forEach(D=>{Bn(b,o.run(()=>D({store:b,app:s._a,pinia:s,options:a})))}),m&&i&&n.hydrate&&n.hydrate(b.$state,m),c=!0,u=!0,b}function gr(t,e,n){let s,r;const i=typeof e=="function";typeof t=="string"?(s=t,r=i?n:e):(r=t,s=t.id);function o(a,l){const c=av();return a=a||(c?cn(Ld,null):null),a&&Wo(a),a=xd,a._s.has(s)||(i?Pd(s,e,r,a):f0(s,r,a)),a._s.get(s)}return o.$id=s,o}const hi=(t,e)=>!t||!e?!1:t.join(",")===e.join(",");class Ns extends Error{}class h0 extends Ns{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class d0 extends Ns{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class m0 extends Ns{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Br extends Ns{}class $d extends Ns{constructor(e){super(`Invalid unit ${e}`)}}class jt extends Ns{}class zn extends Ns{constructor(){super("Zone is an abstract class")}}const ae="numeric",fn="short",Ft="long",ho={year:ae,month:ae,day:ae},Fd={year:ae,month:fn,day:ae},p0={year:ae,month:fn,day:ae,weekday:fn},zd={year:ae,month:Ft,day:ae},Yd={year:ae,month:Ft,day:ae,weekday:Ft},Ud={hour:ae,minute:ae},Bd={hour:ae,minute:ae,second:ae},Hd={hour:ae,minute:ae,second:ae,timeZoneName:fn},jd={hour:ae,minute:ae,second:ae,timeZoneName:Ft},Wd={hour:ae,minute:ae,hourCycle:"h23"},Vd={hour:ae,minute:ae,second:ae,hourCycle:"h23"},qd={hour:ae,minute:ae,second:ae,hourCycle:"h23",timeZoneName:fn},Kd={hour:ae,minute:ae,second:ae,hourCycle:"h23",timeZoneName:Ft},Zd={year:ae,month:ae,day:ae,hour:ae,minute:ae},Gd={year:ae,month:ae,day:ae,hour:ae,minute:ae,second:ae},Xd={year:ae,month:fn,day:ae,hour:ae,minute:ae},Jd={year:ae,month:fn,day:ae,hour:ae,minute:ae,second:ae},g0={year:ae,month:fn,day:ae,weekday:fn,hour:ae,minute:ae},Qd={year:ae,month:Ft,day:ae,hour:ae,minute:ae,timeZoneName:fn},em={year:ae,month:Ft,day:ae,hour:ae,minute:ae,second:ae,timeZoneName:fn},tm={year:ae,month:Ft,day:ae,weekday:Ft,hour:ae,minute:ae,timeZoneName:Ft},nm={year:ae,month:Ft,day:ae,weekday:Ft,hour:ae,minute:ae,second:ae,timeZoneName:Ft};class di{get type(){throw new zn}get name(){throw new zn}get ianaName(){return this.name}get isUniversal(){throw new zn}offsetName(e,n){throw new zn}formatOffset(e,n){throw new zn}offset(e){throw new zn}equals(e){throw new zn}get isValid(){throw new zn}}let Ra=null;class mi extends di{static get instance(){return Ra===null&&(Ra=new mi),Ra}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return rm(e,n,s)}formatOffset(e,n){return Gr(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Ji={};function y0(t){return Ji[t]||(Ji[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ji[t]}const v0={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function T0(t,e){const n=t.format(e).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,o,a,l,c,u]=s;return[o,r,i,a,l,c,u]}function w0(t,e){const n=t.formatToParts(e),s=[];for(let r=0;r<n.length;r++){const{type:i,value:o}=n[r],a=v0[i];i==="era"?s[a]=o:Me(a)||(s[a]=parseInt(o,10))}return s}let Pi={};class An extends di{static create(e){return Pi[e]||(Pi[e]=new An(e)),Pi[e]}static resetCache(){Pi={},Ji={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=An.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return rm(e,n,s,this.name)}formatOffset(e,n){return Gr(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const s=y0(this.name);let[r,i,o,a,l,c,u]=s.formatToParts?w0(s,n):T0(s,n);a==="BC"&&(r=-Math.abs(r)+1);const h=qo({year:r,month:i,day:o,hour:l===24?0:l,minute:c,second:u,millisecond:0});let d=+n;const m=d%1e3;return d-=m>=0?m:1e3+m,(h-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ju={};function _0(t,e={}){const n=JSON.stringify([t,e]);let s=Ju[n];return s||(s=new Intl.ListFormat(t,e),Ju[n]=s),s}let vl={};function Tl(t,e={}){const n=JSON.stringify([t,e]);let s=vl[n];return s||(s=new Intl.DateTimeFormat(t,e),vl[n]=s),s}let wl={};function b0(t,e={}){const n=JSON.stringify([t,e]);let s=wl[n];return s||(s=new Intl.NumberFormat(t,e),wl[n]=s),s}let _l={};function E0(t,e={}){const{base:n,...s}=e,r=JSON.stringify([t,s]);let i=_l[r];return i||(i=new Intl.RelativeTimeFormat(t,e),_l[r]=i),i}let Hr=null;function S0(){return Hr||(Hr=new Intl.DateTimeFormat().resolvedOptions().locale,Hr)}function I0(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let s,r;try{s=Tl(t).resolvedOptions(),r=t}catch{const l=t.substring(0,n);s=Tl(l).resolvedOptions(),r=l}const{numberingSystem:i,calendar:o}=s;return[r,i,o]}}function O0(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function D0(t){const e=[];for(let n=1;n<=12;n++){const s=U.utc(2009,n,1);e.push(t(s))}return e}function k0(t){const e=[];for(let n=1;n<=7;n++){const s=U.utc(2016,11,13+n);e.push(t(s))}return e}function $i(t,e,n,s){const r=t.listingMode();return r==="error"?null:r==="en"?n(e):s(e)}function M0(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class C0{constructor(e,n,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const{padTo:r,floor:i,...o}=s;if(!n||Object.keys(o).length>0){const a={useGrouping:!1,...s};s.padTo>0&&(a.minimumIntegerDigits=s.padTo),this.inf=b0(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):lc(e,3);return lt(n,this.padTo)}}}class A0{constructor(e,n,s){this.opts=s,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&An.create(a).valid?(r=a,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=Tl(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const s=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:s}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class N0{constructor(e,n,s){this.opts={style:"long",...s},!n&&sm()&&(this.rtf=E0(e,s))}format(e,n){return this.rtf?this.rtf.format(e,n):Z0(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class qe{static fromOpts(e){return qe.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,s,r=!1){const i=e||at.defaultLocale,o=i||(r?"en-US":S0()),a=n||at.defaultNumberingSystem,l=s||at.defaultOutputCalendar;return new qe(o,a,l,i)}static resetCache(){Hr=null,vl={},wl={},_l={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:s}={}){return qe.create(e,n,s)}constructor(e,n,s,r){const[i,o,a]=I0(e);this.locale=i,this.numberingSystem=n||o||null,this.outputCalendar=s||a||null,this.intl=O0(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=M0(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:qe.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return $i(this,e,am,()=>{const s=n?{month:e,day:"numeric"}:{month:e},r=n?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=D0(i=>this.extract(i,s,"month"))),this.monthsCache[r][e]})}weekdays(e,n=!1){return $i(this,e,um,()=>{const s=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=n?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=k0(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return $i(this,void 0,()=>fm,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[U.utc(2016,11,13,9),U.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return $i(this,e,hm,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[U.utc(-40,1,1),U.utc(2017,1,1)].map(s=>this.extract(s,n,"era"))),this.eraCache[e]})}extract(e,n,s){const r=this.dtFormatter(e,n),i=r.formatToParts(),o=i.find(a=>a.type.toLowerCase()===s);return o?o.value:null}numberFormatter(e={}){return new C0(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new A0(e,this.intl,n)}relFormatter(e={}){return new N0(this.intl,this.isEnglish(),e)}listFormatter(e={}){return _0(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Pa=null;class Mt extends di{static get utcInstance(){return Pa===null&&(Pa=new Mt(0)),Pa}static instance(e){return e===0?Mt.utcInstance:new Mt(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Mt(Ko(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Gr(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Gr(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Gr(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class x0 extends di{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function qn(t,e){if(Me(t)||t===null)return e;if(t instanceof di)return t;if(L0(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?mi.instance:n==="utc"||n==="gmt"?Mt.utcInstance:Mt.parseSpecifier(n)||An.create(t)}else return Is(t)?Mt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new x0(t)}let Qu=()=>Date.now(),ef="system",tf=null,nf=null,sf=null,rf=60,of;class at{static get now(){return Qu}static set now(e){Qu=e}static set defaultZone(e){ef=e}static get defaultZone(){return qn(ef,mi.instance)}static get defaultLocale(){return tf}static set defaultLocale(e){tf=e}static get defaultNumberingSystem(){return nf}static set defaultNumberingSystem(e){nf=e}static get defaultOutputCalendar(){return sf}static set defaultOutputCalendar(e){sf=e}static get twoDigitCutoffYear(){return rf}static set twoDigitCutoffYear(e){rf=e%100}static get throwOnInvalid(){return of}static set throwOnInvalid(e){of=e}static resetCaches(){qe.resetCache(),An.resetCache()}}function Me(t){return typeof t>"u"}function Is(t){return typeof t=="number"}function Vo(t){return typeof t=="number"&&t%1===0}function L0(t){return typeof t=="string"}function R0(t){return Object.prototype.toString.call(t)==="[object Date]"}function sm(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function P0(t){return Array.isArray(t)?t:[t]}function af(t,e,n){if(t.length!==0)return t.reduce((s,r)=>{const i=[e(r),r];return s&&n(s[0],i[0])===s[0]?s:i},null)[1]}function $0(t,e){return e.reduce((n,s)=>(n[s]=t[s],n),{})}function ar(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function kn(t,e,n){return Vo(t)&&t>=e&&t<=n}function F0(t,e){return t-e*Math.floor(t/e)}function lt(t,e=2){const n=t<0;let s;return n?s="-"+(""+-t).padStart(e,"0"):s=(""+t).padStart(e,"0"),s}function Wn(t){if(!(Me(t)||t===null||t===""))return parseInt(t,10)}function hs(t){if(!(Me(t)||t===null||t===""))return parseFloat(t)}function ac(t){if(!(Me(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function lc(t,e,n=!1){const s=10**e;return(n?Math.trunc:Math.round)(t*s)/s}function pi(t){return t%4===0&&(t%100!==0||t%400===0)}function Zr(t){return pi(t)?366:365}function mo(t,e){const n=F0(e-1,12)+1,s=t+(e-n)/12;return n===2?pi(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function qo(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function po(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,s=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||s===3?53:52}function bl(t){return t>99?t:t>at.twoDigitCutoffYear?1900+t:2e3+t}function rm(t,e,n,s=null){const r=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const o={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,o).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function Ko(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const s=parseInt(e,10)||0,r=n<0||Object.is(n,-0)?-s:s;return n*60+r}function im(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new jt(`Invalid unit value ${t}`);return e}function go(t,e){const n={};for(const s in t)if(ar(t,s)){const r=t[s];if(r==null)continue;n[e(s)]=im(r)}return n}function Gr(t,e){const n=Math.trunc(Math.abs(t/60)),s=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${lt(n,2)}:${lt(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${lt(n,2)}${lt(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Zo(t){return $0(t,["hour","minute","second","millisecond"])}const z0=["January","February","March","April","May","June","July","August","September","October","November","December"],om=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Y0=["J","F","M","A","M","J","J","A","S","O","N","D"];function am(t){switch(t){case"narrow":return[...Y0];case"short":return[...om];case"long":return[...z0];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const lm=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],cm=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],U0=["M","T","W","T","F","S","S"];function um(t){switch(t){case"narrow":return[...U0];case"short":return[...cm];case"long":return[...lm];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const fm=["AM","PM"],B0=["Before Christ","Anno Domini"],H0=["BC","AD"],j0=["B","A"];function hm(t){switch(t){case"narrow":return[...j0];case"short":return[...H0];case"long":return[...B0];default:return null}}function W0(t){return fm[t.hour<12?0:1]}function V0(t,e){return um(e)[t.weekday-1]}function q0(t,e){return am(e)[t.month-1]}function K0(t,e){return hm(e)[t.year<0?0:1]}function Z0(t,e,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${r[t][0]}`;case-1:return f?"yesterday":`last ${r[t][0]}`;case 0:return f?"today":`this ${r[t][0]}`}}const o=Object.is(e,-0)||e<0,a=Math.abs(e),l=a===1,c=r[t],u=s?l?c[1]:c[2]||c[1]:l?r[t][0]:t;return o?`${a} ${u} ago`:`in ${a} ${u}`}function lf(t,e){let n="";for(const s of t)s.literal?n+=s.val:n+=e(s.val);return n}const G0={D:ho,DD:Fd,DDD:zd,DDDD:Yd,t:Ud,tt:Bd,ttt:Hd,tttt:jd,T:Wd,TT:Vd,TTT:qd,TTTT:Kd,f:Zd,ff:Xd,fff:Qd,ffff:tm,F:Gd,FF:Jd,FFF:em,FFFF:nm};class Et{static create(e,n={}){return new Et(e,n)}static parseFormat(e){let n=null,s="",r=!1;const i=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);a==="'"?(s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),n=null,s="",r=!r):r||a===n?s+=a:(s.length>0&&i.push({literal:/^\s+$/.test(s),val:s}),s=a,n=a)}return s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),i}static macroTokenToFormatOpts(e){return G0[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return lt(e,n);const s={...this.opts};return n>0&&(s.padTo=n),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,n){const s=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(d,m)=>this.loc.extract(e,d,m),o=d=>e.isOffsetFixed&&e.offset===0&&d.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,d.format):"",a=()=>s?W0(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(d,m)=>s?q0(e,d):i(m?{month:d}:{month:d,day:"numeric"},"month"),c=(d,m)=>s?V0(e,d):i(m?{weekday:d}:{weekday:d,month:"long",day:"numeric"},"weekday"),u=d=>{const m=Et.macroTokenToFormatOpts(d);return m?this.formatWithSystemDefault(e,m):d},f=d=>s?K0(e,d):i({era:d},"era"),h=d=>{switch(d){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(d)}};return lf(Et.parseFormat(n),h)}formatDurationFromString(e,n){const s=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=l=>c=>{const u=s(c);return u?this.num(l.get(u),c.length):c},i=Et.parseFormat(n),o=i.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),a=e.shiftTo(...o.map(s).filter(l=>l));return lf(i,r(a))}}class an{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const dm=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function yr(...t){const e=t.reduce((n,s)=>n+s.source,"");return RegExp(`^${e}$`)}function vr(...t){return e=>t.reduce(([n,s,r],i)=>{const[o,a,l]=i(e,r);return[{...n,...o},a||s,l]},[{},null,1]).slice(0,2)}function Tr(t,...e){if(t==null)return[null,null];for(const[n,s]of e){const r=n.exec(t);if(r)return s(r)}return[null,null]}function mm(...t){return(e,n)=>{const s={};let r;for(r=0;r<t.length;r++)s[t[r]]=Wn(e[n+r]);return[s,null,n+r]}}const pm=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,X0=`(?:${pm.source}?(?:\\[(${dm.source})\\])?)?`,cc=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,gm=RegExp(`${cc.source}${X0}`),uc=RegExp(`(?:T${gm.source})?`),J0=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Q0=/(\d{4})-?W(\d\d)(?:-?(\d))?/,eT=/(\d{4})-?(\d{3})/,tT=mm("weekYear","weekNumber","weekDay"),nT=mm("year","ordinal"),sT=/(\d{4})-(\d\d)-(\d\d)/,ym=RegExp(`${cc.source} ?(?:${pm.source}|(${dm.source}))?`),rT=RegExp(`(?: ${ym.source})?`);function er(t,e,n){const s=t[e];return Me(s)?n:Wn(s)}function iT(t,e){return[{year:er(t,e),month:er(t,e+1,1),day:er(t,e+2,1)},null,e+3]}function wr(t,e){return[{hours:er(t,e,0),minutes:er(t,e+1,0),seconds:er(t,e+2,0),milliseconds:ac(t[e+3])},null,e+4]}function gi(t,e){const n=!t[e]&&!t[e+1],s=Ko(t[e+1],t[e+2]),r=n?null:Mt.instance(s);return[{},r,e+3]}function yi(t,e){const n=t[e]?An.create(t[e]):null;return[{},n,e+1]}const oT=RegExp(`^T?${cc.source}$`),aT=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function lT(t){const[e,n,s,r,i,o,a,l,c]=t,u=e[0]==="-",f=l&&l[0]==="-",h=(d,m=!1)=>d!==void 0&&(m||d&&u)?-d:d;return[{years:h(hs(n)),months:h(hs(s)),weeks:h(hs(r)),days:h(hs(i)),hours:h(hs(o)),minutes:h(hs(a)),seconds:h(hs(l),l==="-0"),milliseconds:h(ac(c),f)}]}const cT={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fc(t,e,n,s,r,i,o){const a={year:e.length===2?bl(Wn(e)):Wn(e),month:om.indexOf(n)+1,day:Wn(s),hour:Wn(r),minute:Wn(i)};return o&&(a.second=Wn(o)),t&&(a.weekday=t.length>3?lm.indexOf(t)+1:cm.indexOf(t)+1),a}const uT=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function fT(t){const[,e,n,s,r,i,o,a,l,c,u,f]=t,h=fc(e,r,s,n,i,o,a);let d;return l?d=cT[l]:c?d=0:d=Ko(u,f),[h,new Mt(d)]}function hT(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const dT=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,mT=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,pT=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function cf(t){const[,e,n,s,r,i,o,a]=t;return[fc(e,r,s,n,i,o,a),Mt.utcInstance]}function gT(t){const[,e,n,s,r,i,o,a]=t;return[fc(e,a,n,s,r,i,o),Mt.utcInstance]}const yT=yr(J0,uc),vT=yr(Q0,uc),TT=yr(eT,uc),wT=yr(gm),vm=vr(iT,wr,gi,yi),_T=vr(tT,wr,gi,yi),bT=vr(nT,wr,gi,yi),ET=vr(wr,gi,yi);function ST(t){return Tr(t,[yT,vm],[vT,_T],[TT,bT],[wT,ET])}function IT(t){return Tr(hT(t),[uT,fT])}function OT(t){return Tr(t,[dT,cf],[mT,cf],[pT,gT])}function DT(t){return Tr(t,[aT,lT])}const kT=vr(wr);function MT(t){return Tr(t,[oT,kT])}const CT=yr(sT,rT),AT=yr(ym),NT=vr(wr,gi,yi);function xT(t){return Tr(t,[CT,vm],[AT,NT])}const uf="Invalid Duration",Tm={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},LT={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Tm},Bt=146097/400,Ys=146097/4800,RT={years:{quarters:4,months:12,weeks:Bt/7,days:Bt,hours:Bt*24,minutes:Bt*24*60,seconds:Bt*24*60*60,milliseconds:Bt*24*60*60*1e3},quarters:{months:3,weeks:Bt/28,days:Bt/4,hours:Bt*24/4,minutes:Bt*24*60/4,seconds:Bt*24*60*60/4,milliseconds:Bt*24*60*60*1e3/4},months:{weeks:Ys/7,days:Ys,hours:Ys*24,minutes:Ys*24*60,seconds:Ys*24*60*60,milliseconds:Ys*24*60*60*1e3},...Tm},ws=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],PT=ws.slice(0).reverse();function Yn(t,e,n=!1){const s={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Ce(s)}function wm(t,e){let n=e.milliseconds??0;for(const s of PT.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function ff(t,e){const n=wm(t,e)<0?-1:1;ws.reduceRight((s,r)=>{if(Me(e[r]))return s;if(s){const i=e[s]*n,o=t[r][s],a=Math.floor(i/o);e[r]+=a*n,e[s]-=a*o*n}return r},null),ws.reduce((s,r)=>{if(Me(e[r]))return s;if(s){const i=e[s]%1;e[s]-=i,e[r]+=i*t[s][r]}return r},null)}function $T(t){const e={};for(const[n,s]of Object.entries(t))s!==0&&(e[n]=s);return e}class Ce{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let s=n?RT:LT;e.matrix&&(s=e.matrix),this.values=e.values,this.loc=e.loc||qe.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(e,n){return Ce.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new jt(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Ce({values:go(e,Ce.normalizeUnit),loc:qe.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(Is(e))return Ce.fromMillis(e);if(Ce.isDuration(e))return e;if(typeof e=="object")return Ce.fromObject(e);throw new jt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[s]=DT(e);return s?Ce.fromObject(s,n):Ce.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[s]=MT(e);return s?Ce.fromObject(s,n):Ce.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new jt("need to specify a reason the Duration is invalid");const s=e instanceof an?e:new an(e,n);if(at.throwOnInvalid)throw new m0(s);return new Ce({invalid:s})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new $d(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const s={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Et.create(this.loc,s).formatDurationFromString(this,e):uf}toHuman(e={}){if(!this.isValid)return uf;const n=ws.map(s=>{const r=this.values[s];return Me(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:s.slice(0,-1)}).format(r)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=lc(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},U.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?wm(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=Ce.fromDurationLike(e),s={};for(const r of ws)(ar(n.values,r)||ar(this.values,r))&&(s[r]=n.get(r)+this.get(r));return Yn(this,{values:s},!0)}minus(e){if(!this.isValid)return this;const n=Ce.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const s of Object.keys(this.values))n[s]=im(e(this.values[s],s));return Yn(this,{values:n},!0)}get(e){return this[Ce.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...go(e,Ce.normalizeUnit)};return Yn(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:s,matrix:r}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:r,conversionAccuracy:s};return Yn(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return ff(this.matrix,e),Yn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=$T(this.normalize().shiftToAll().toObject());return Yn(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>Ce.normalizeUnit(o));const n={},s={},r=this.toObject();let i;for(const o of ws)if(e.indexOf(o)>=0){i=o;let a=0;for(const c in s)a+=this.matrix[c][o]*s[c],s[c]=0;Is(r[o])&&(a+=r[o]);const l=Math.trunc(a);n[o]=l,s[o]=(a*1e3-l*1e3)/1e3}else Is(r[o])&&(s[o]=r[o]);for(const o in s)s[o]!==0&&(n[i]+=o===i?s[o]:s[o]/this.matrix[i][o]);return ff(this.matrix,n),Yn(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Yn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(s,r){return s===void 0||s===0?r===void 0||r===0:s===r}for(const s of ws)if(!n(this.values[s],e.values[s]))return!1;return!0}}const Us="Invalid Interval";function FT(t,e){return!t||!t.isValid?et.invalid("missing or invalid start"):!e||!e.isValid?et.invalid("missing or invalid end"):e<t?et.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class et{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new jt("need to specify a reason the Interval is invalid");const s=e instanceof an?e:new an(e,n);if(at.throwOnInvalid)throw new d0(s);return new et({invalid:s})}static fromDateTimes(e,n){const s=Rr(e),r=Rr(n),i=FT(s,r);return i??new et({start:s,end:r})}static after(e,n){const s=Ce.fromDurationLike(n),r=Rr(e);return et.fromDateTimes(r,r.plus(s))}static before(e,n){const s=Ce.fromDurationLike(n),r=Rr(e);return et.fromDateTimes(r.minus(s),r)}static fromISO(e,n){const[s,r]=(e||"").split("/",2);if(s&&r){let i,o;try{i=U.fromISO(s,n),o=i.isValid}catch{o=!1}let a,l;try{a=U.fromISO(r,n),l=a.isValid}catch{l=!1}if(o&&l)return et.fromDateTimes(i,a);if(o){const c=Ce.fromISO(r,n);if(c.isValid)return et.after(i,c)}else if(l){const c=Ce.fromISO(s,n);if(c.isValid)return et.before(a,c)}}return et.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(e),s=this.end.startOf(e);return Math.floor(s.diff(n,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?et.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Rr).filter(o=>this.contains(o)).sort(),s=[];let{s:r}=this,i=0;for(;r<this.e;){const o=n[i]||this.e,a=+o>+this.e?this.e:o;s.push(et.fromDateTimes(r,a)),r=a,i+=1}return s}splitBy(e){const n=Ce.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s}=this,r=1,i;const o=[];for(;s<this.e;){const a=this.start.plus(n.mapUnits(l=>l*r));i=+a>+this.e?this.e:a,o.push(et.fromDateTimes(s,i)),s=i,r+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,s=this.e<e.e?this.e:e.e;return n>=s?null:et.fromDateTimes(n,s)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,s=this.e>e.e?this.e:e.e;return et.fromDateTimes(n,s)}static merge(e){const[n,s]=e.sort((r,i)=>r.s-i.s).reduce(([r,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[r,i.union(o)]:[r.concat([i]),o]:[r,o],[[],null]);return s&&n.push(s),n}static xor(e){let n=null,s=0;const r=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),a=o.sort((l,c)=>l.time-c.time);for(const l of a)s+=l.type==="s"?1:-1,s===1?n=l.time:(n&&+n!=+l.time&&r.push(et.fromDateTimes(n,l.time)),n=null);return et.merge(r)}difference(...e){return et.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Us}toLocaleString(e=ho,n={}){return this.isValid?Et.create(this.s.loc.clone(n),e).formatInterval(this):Us}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Us}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Us}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Us}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Us}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Ce.invalid(this.invalidReason)}mapEndpoints(e){return et.fromDateTimes(e(this.s),e(this.e))}}class Fi{static hasDST(e=at.defaultZone){const n=U.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return An.isValidZone(e)}static normalizeZone(e){return qn(e,at.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||qe.create(n,s,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||qe.create(n,s,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||qe.create(n,s,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||qe.create(n,s,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return qe.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return qe.create(n,null,"gregory").eras(e)}static features(){return{relative:sm()}}}function hf(t,e){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(Ce.fromMillis(s).as("days"))}function zT(t,e,n){const s=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=hf(l,c);return(u-u%7)/7}],["days",hf]],r={},i=t;let o,a;for(const[l,c]of s)n.indexOf(l)>=0&&(o=l,r[l]=c(t,e),a=i.plus(r),a>e?(r[l]--,t=i.plus(r),t>e&&(a=t,r[l]--,t=i.plus(r))):t=a);return[t,r,a,o]}function YT(t,e,n,s){let[r,i,o,a]=zT(t,e,n);const l=e-r,c=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(o<e&&(o=r.plus({[a]:1})),o!==r&&(i[a]=(i[a]||0)+l/(o-r)));const u=Ce.fromObject(i,s);return c.length>0?Ce.fromMillis(l,s).shiftTo(...c).plus(u):u}const hc={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},df={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},UT=hc.hanidec.replace(/[\[|\]]/g,"").split("");function BT(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(t[n].search(hc.hanidec)!==-1)e+=UT.indexOf(t[n]);else for(const r in df){const[i,o]=df[r];s>=i&&s<=o&&(e+=s-i)}}return parseInt(e,10)}else return e}function Qt({numberingSystem:t},e=""){return new RegExp(`${hc[t||"latn"]}${e}`)}const HT="missing Intl.DateTimeFormat.formatToParts support";function Re(t,e=n=>n){return{regex:t,deser:([n])=>e(BT(n))}}const jT=String.fromCharCode(160),_m=`[ ${jT}]`,bm=new RegExp(_m,"g");function WT(t){return t.replace(/\./g,"\\.?").replace(bm,_m)}function mf(t){return t.replace(/\./g,"").replace(bm," ").toLowerCase()}function en(t,e){return t===null?null:{regex:RegExp(t.map(WT).join("|")),deser:([n])=>t.findIndex(s=>mf(n)===mf(s))+e}}function pf(t,e){return{regex:t,deser:([,n,s])=>Ko(n,s),groups:e}}function zi(t){return{regex:t,deser:([e])=>e}}function VT(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function qT(t,e){const n=Qt(e),s=Qt(e,"{2}"),r=Qt(e,"{3}"),i=Qt(e,"{4}"),o=Qt(e,"{6}"),a=Qt(e,"{1,2}"),l=Qt(e,"{1,3}"),c=Qt(e,"{1,6}"),u=Qt(e,"{1,9}"),f=Qt(e,"{2,4}"),h=Qt(e,"{4,6}"),d=y=>({regex:RegExp(VT(y.val)),deser:([g])=>g,literal:!0}),p=(y=>{if(t.literal)return d(y);switch(y.val){case"G":return en(e.eras("short"),0);case"GG":return en(e.eras("long"),0);case"y":return Re(c);case"yy":return Re(f,bl);case"yyyy":return Re(i);case"yyyyy":return Re(h);case"yyyyyy":return Re(o);case"M":return Re(a);case"MM":return Re(s);case"MMM":return en(e.months("short",!0),1);case"MMMM":return en(e.months("long",!0),1);case"L":return Re(a);case"LL":return Re(s);case"LLL":return en(e.months("short",!1),1);case"LLLL":return en(e.months("long",!1),1);case"d":return Re(a);case"dd":return Re(s);case"o":return Re(l);case"ooo":return Re(r);case"HH":return Re(s);case"H":return Re(a);case"hh":return Re(s);case"h":return Re(a);case"mm":return Re(s);case"m":return Re(a);case"q":return Re(a);case"qq":return Re(s);case"s":return Re(a);case"ss":return Re(s);case"S":return Re(l);case"SSS":return Re(r);case"u":return zi(u);case"uu":return zi(a);case"uuu":return Re(n);case"a":return en(e.meridiems(),0);case"kkkk":return Re(i);case"kk":return Re(f,bl);case"W":return Re(a);case"WW":return Re(s);case"E":case"c":return Re(n);case"EEE":return en(e.weekdays("short",!1),1);case"EEEE":return en(e.weekdays("long",!1),1);case"ccc":return en(e.weekdays("short",!0),1);case"cccc":return en(e.weekdays("long",!0),1);case"Z":case"ZZ":return pf(new RegExp(`([+-]${a.source})(?::(${s.source}))?`),2);case"ZZZ":return pf(new RegExp(`([+-]${a.source})(${s.source})?`),2);case"z":return zi(/[a-z_+-/]{1,256}?/i);case" ":return zi(/[^\S\n\r]/);default:return d(y)}})(t)||{invalidReason:HT};return p.token=t,p}const KT={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function ZT(t,e,n){const{type:s,value:r}=t;if(s==="literal"){const l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}const i=e[s];let o=s;s==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let a=KT[o];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function GT(t){return[`^${t.map(n=>n.regex).reduce((n,s)=>`${n}(${s.source})`,"")}$`,t]}function XT(t,e,n){const s=t.match(e);if(s){const r={};let i=1;for(const o in n)if(ar(n,o)){const a=n[o],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(s.slice(i,i+l))),i+=l}return[s,r]}else return[s,{}]}function JT(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,s;return Me(t.z)||(n=An.create(t.z)),Me(t.Z)||(n||(n=new Mt(t.Z)),s=t.Z),Me(t.q)||(t.M=(t.q-1)*3+1),Me(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Me(t.u)||(t.S=ac(t.u)),[Object.keys(t).reduce((i,o)=>{const a=e(o);return a&&(i[a]=t[o]),i},{}),n,s]}let $a=null;function QT(){return $a||($a=U.fromMillis(1555555555555)),$a}function ew(t,e){if(t.literal)return t;const n=Et.macroTokenToFormatOpts(t.val),s=Im(n,e);return s==null||s.includes(void 0)?t:s}function Em(t,e){return Array.prototype.concat(...t.map(n=>ew(n,e)))}function Sm(t,e,n){const s=Em(Et.parseFormat(n),t),r=s.map(o=>qT(o,t)),i=r.find(o=>o.invalidReason);if(i)return{input:e,tokens:s,invalidReason:i.invalidReason};{const[o,a]=GT(r),l=RegExp(o,"i"),[c,u]=XT(e,l,a),[f,h,d]=u?JT(u):[null,null,void 0];if(ar(u,"a")&&ar(u,"H"))throw new Br("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:s,regex:l,rawMatches:c,matches:u,result:f,zone:h,specificOffset:d}}}function tw(t,e,n){const{result:s,zone:r,specificOffset:i,invalidReason:o}=Sm(t,e,n);return[s,r,i,o]}function Im(t,e){if(!t)return null;const s=Et.create(e,t).dtFormatter(QT()),r=s.formatToParts(),i=s.resolvedOptions();return r.map(o=>ZT(o,t,i))}const Om=[0,31,59,90,120,151,181,212,243,273,304,334],Dm=[0,31,60,91,121,152,182,213,244,274,305,335];function Vt(t,e){return new an("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function km(t,e,n){const s=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return r===0?7:r}function Mm(t,e,n){return n+(pi(t)?Dm:Om)[e-1]}function Cm(t,e){const n=pi(t)?Dm:Om,s=n.findIndex(i=>i<e),r=e-n[s];return{month:s+1,day:r}}function yo(t){const{year:e,month:n,day:s}=t,r=Mm(e,n,s),i=km(e,n,s);let o=Math.floor((r-i+10)/7),a;return o<1?(a=e-1,o=po(a)):o>po(e)?(a=e+1,o=1):a=e,{weekYear:a,weekNumber:o,weekday:i,...Zo(t)}}function gf(t){const{weekYear:e,weekNumber:n,weekday:s}=t,r=km(e,1,4),i=Zr(e);let o=n*7+s-r-3,a;o<1?(a=e-1,o+=Zr(a)):o>i?(a=e+1,o-=Zr(e)):a=e;const{month:l,day:c}=Cm(a,o);return{year:a,month:l,day:c,...Zo(t)}}function Fa(t){const{year:e,month:n,day:s}=t,r=Mm(e,n,s);return{year:e,ordinal:r,...Zo(t)}}function yf(t){const{year:e,ordinal:n}=t,{month:s,day:r}=Cm(e,n);return{year:e,month:s,day:r,...Zo(t)}}function nw(t){const e=Vo(t.weekYear),n=kn(t.weekNumber,1,po(t.weekYear)),s=kn(t.weekday,1,7);return e?n?s?!1:Vt("weekday",t.weekday):Vt("week",t.week):Vt("weekYear",t.weekYear)}function sw(t){const e=Vo(t.year),n=kn(t.ordinal,1,Zr(t.year));return e?n?!1:Vt("ordinal",t.ordinal):Vt("year",t.year)}function Am(t){const e=Vo(t.year),n=kn(t.month,1,12),s=kn(t.day,1,mo(t.year,t.month));return e?n?s?!1:Vt("day",t.day):Vt("month",t.month):Vt("year",t.year)}function Nm(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=kn(e,0,23)||e===24&&n===0&&s===0&&r===0,o=kn(n,0,59),a=kn(s,0,59),l=kn(r,0,999);return i?o?a?l?!1:Vt("millisecond",r):Vt("second",s):Vt("minute",n):Vt("hour",e)}const za="Invalid DateTime",vf=864e13;function Yi(t){return new an("unsupported zone",`the zone "${t.name}" is not supported`)}function Ya(t){return t.weekData===null&&(t.weekData=yo(t.c)),t.weekData}function ds(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new U({...n,...e,old:n})}function xm(t,e,n){let s=t-e*60*1e3;const r=n.offset(s);if(e===r)return[s,e];s-=(r-e)*60*1e3;const i=n.offset(s);return r===i?[s,r]:[t-Math.min(r,i)*60*1e3,Math.max(r,i)]}function Ui(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Qi(t,e,n){return xm(qo(t),e,n)}function Tf(t,e){const n=t.o,s=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:s,month:r,day:Math.min(t.c.day,mo(s,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=Ce.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=qo(i);let[l,c]=xm(a,n,t.zone);return o!==0&&(l+=o,c=t.zone.offset(l)),{ts:l,o:c}}function Lr(t,e,n,s,r,i){const{setZone:o,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const l=e||a,c=U.fromObject(t,{...n,zone:l,specificOffset:i});return o?c:c.setZone(a)}else return U.invalid(new an("unparsable",`the input "${r}" can't be parsed as ${s}`))}function Bi(t,e,n=!0){return t.isValid?Et.create(qe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Ua(t,e){const n=t.c.year>9999||t.c.year<0;let s="";return n&&t.c.year>=0&&(s+="+"),s+=lt(t.c.year,n?6:4),e?(s+="-",s+=lt(t.c.month),s+="-",s+=lt(t.c.day)):(s+=lt(t.c.month),s+=lt(t.c.day)),s}function wf(t,e,n,s,r,i){let o=lt(t.c.hour);return e?(o+=":",o+=lt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=":")):o+=lt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(o+=lt(t.c.second),(t.c.millisecond!==0||!s)&&(o+=".",o+=lt(t.c.millisecond,3))),r&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=lt(Math.trunc(-t.o/60)),o+=":",o+=lt(Math.trunc(-t.o%60))):(o+="+",o+=lt(Math.trunc(t.o/60)),o+=":",o+=lt(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const Lm={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rw={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},iw={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Rm=["year","month","day","hour","minute","second","millisecond"],ow=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],aw=["year","ordinal","hour","minute","second","millisecond"];function _f(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new $d(t);return e}function bf(t,e){const n=qn(e.zone,at.defaultZone),s=qe.fromObject(e),r=at.now();let i,o;if(Me(t.year))i=r;else{for(const c of Rm)Me(t[c])&&(t[c]=Lm[c]);const a=Am(t)||Nm(t);if(a)return U.invalid(a);const l=n.offset(r);[i,o]=Qi(t,l,n)}return new U({ts:i,zone:n,loc:s,o})}function Ef(t,e,n){const s=Me(n.round)?!0:n.round,r=(o,a)=>(o=lc(o,s||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(o,a)),i=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return r(i(n.unit),n.unit);for(const o of n.units){const a=i(o);if(Math.abs(a)>=1)return r(a,o)}return r(t>e?-0:0,n.units[n.units.length-1])}function Sf(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class U{constructor(e){const n=e.zone||at.defaultZone;let s=e.invalid||(Number.isNaN(e.ts)?new an("invalid input"):null)||(n.isValid?null:Yi(n));this.ts=Me(e.ts)?at.now():e.ts;let r=null,i=null;if(!s)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[r,i]=[e.old.c,e.old.o];else{const a=n.offset(this.ts);r=Ui(this.ts,a),s=Number.isNaN(r.year)?new an("invalid input"):null,r=s?null:r,i=s?null:a}this._zone=n,this.loc=e.loc||qe.create(),this.invalid=s,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new U({})}static local(){const[e,n]=Sf(arguments),[s,r,i,o,a,l,c]=n;return bf({year:s,month:r,day:i,hour:o,minute:a,second:l,millisecond:c},e)}static utc(){const[e,n]=Sf(arguments),[s,r,i,o,a,l,c]=n;return e.zone=Mt.utcInstance,bf({year:s,month:r,day:i,hour:o,minute:a,second:l,millisecond:c},e)}static fromJSDate(e,n={}){const s=R0(e)?e.valueOf():NaN;if(Number.isNaN(s))return U.invalid("invalid input");const r=qn(n.zone,at.defaultZone);return r.isValid?new U({ts:s,zone:r,loc:qe.fromObject(n)}):U.invalid(Yi(r))}static fromMillis(e,n={}){if(Is(e))return e<-vf||e>vf?U.invalid("Timestamp out of range"):new U({ts:e,zone:qn(n.zone,at.defaultZone),loc:qe.fromObject(n)});throw new jt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(Is(e))return new U({ts:e*1e3,zone:qn(n.zone,at.defaultZone),loc:qe.fromObject(n)});throw new jt("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const s=qn(n.zone,at.defaultZone);if(!s.isValid)return U.invalid(Yi(s));const r=at.now(),i=Me(n.specificOffset)?s.offset(r):n.specificOffset,o=go(e,_f),a=!Me(o.ordinal),l=!Me(o.year),c=!Me(o.month)||!Me(o.day),u=l||c,f=o.weekYear||o.weekNumber,h=qe.fromObject(n);if((u||a)&&f)throw new Br("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new Br("Can't mix ordinal dates with month/day");const d=f||o.weekday&&!u;let m,p,y=Ui(r,i);d?(m=ow,p=rw,y=yo(y)):a?(m=aw,p=iw,y=Fa(y)):(m=Rm,p=Lm);let g=!1;for(const D of m){const A=o[D];Me(A)?g?o[D]=p[D]:o[D]=y[D]:g=!0}const T=d?nw(o):a?sw(o):Am(o),I=T||Nm(o);if(I)return U.invalid(I);const w=d?gf(o):a?yf(o):o,[b,S]=Qi(w,i,s),C=new U({ts:b,zone:s,o:S,loc:h});return o.weekday&&u&&e.weekday!==C.weekday?U.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${C.toISO()}`):C}static fromISO(e,n={}){const[s,r]=ST(e);return Lr(s,r,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[s,r]=IT(e);return Lr(s,r,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[s,r]=OT(e);return Lr(s,r,n,"HTTP",n)}static fromFormat(e,n,s={}){if(Me(e)||Me(n))throw new jt("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=s,o=qe.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[a,l,c,u]=tw(o,e,n);return u?U.invalid(u):Lr(a,l,s,`format ${n}`,e,c)}static fromString(e,n,s={}){return U.fromFormat(e,n,s)}static fromSQL(e,n={}){const[s,r]=xT(e);return Lr(s,r,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new jt("need to specify a reason the DateTime is invalid");const s=e instanceof an?e:new an(e,n);if(at.throwOnInvalid)throw new h0(s);return new U({invalid:s})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const s=Im(e,qe.fromObject(n));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(e,n={}){return Em(Et.parseFormat(e),qe.fromObject(n)).map(r=>r.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ya(this).weekYear:NaN}get weekNumber(){return this.isValid?Ya(this).weekNumber:NaN}get weekday(){return this.isValid?Ya(this).weekday:NaN}get ordinal(){return this.isValid?Fa(this.c).ordinal:NaN}get monthShort(){return this.isValid?Fi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Fi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Fi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Fi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,s=qo(this.c),r=this.zone.offset(s-e),i=this.zone.offset(s+e),o=this.zone.offset(s-r*n),a=this.zone.offset(s-i*n);if(o===a)return[this];const l=s-o*n,c=s-a*n,u=Ui(l,o),f=Ui(c,a);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[ds(this,{ts:l}),ds(this,{ts:c})]:[this]}get isInLeapYear(){return pi(this.year)}get daysInMonth(){return mo(this.year,this.month)}get daysInYear(){return this.isValid?Zr(this.year):NaN}get weeksInWeekYear(){return this.isValid?po(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:s,calendar:r}=Et.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:s,outputCalendar:r}}toUTC(e=0,n={}){return this.setZone(Mt.instance(e),n)}toLocal(){return this.setZone(at.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(e=qn(e,at.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(n||s){const i=e.offset(this.ts),o=this.toObject();[r]=Qi(o,i,e)}return ds(this,{ts:r,zone:e})}else return U.invalid(Yi(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:s});return ds(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=go(e,_f),s=!Me(n.weekYear)||!Me(n.weekNumber)||!Me(n.weekday),r=!Me(n.ordinal),i=!Me(n.year),o=!Me(n.month)||!Me(n.day),a=i||o,l=n.weekYear||n.weekNumber;if((a||r)&&l)throw new Br("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new Br("Can't mix ordinal dates with month/day");let c;s?c=gf({...yo(this.c),...n}):Me(n.ordinal)?(c={...this.toObject(),...n},Me(n.day)&&(c.day=Math.min(mo(c.year,c.month),c.day))):c=yf({...Fa(this.c),...n});const[u,f]=Qi(c,this.o,this.zone);return ds(this,{ts:u,o:f})}plus(e){if(!this.isValid)return this;const n=Ce.fromDurationLike(e);return ds(this,Tf(this,n))}minus(e){if(!this.isValid)return this;const n=Ce.fromDurationLike(e).negate();return ds(this,Tf(this,n))}startOf(e){if(!this.isValid)return this;const n={},s=Ce.normalizeUnit(e);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(s==="weeks"&&(n.weekday=1),s==="quarters"){const r=Math.ceil(this.month/3);n.month=(r-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?Et.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):za}toLocaleString(e=ho,n={}){return this.isValid?Et.create(this.loc.clone(n),e).formatDateTime(this):za}toLocaleParts(e={}){return this.isValid?Et.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:s=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=e==="extended";let a=Ua(this,o);return a+="T",a+=wf(this,o,n,s,r,i),a}toISODate({format:e="extended"}={}){return this.isValid?Ua(this,e==="extended"):null}toISOWeekDate(){return Bi(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:s=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+wf(this,o==="extended",n,e,s,i):null}toRFC2822(){return Bi(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Bi(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ua(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:s=!0}={}){let r="HH:mm:ss.SSS";return(n||e)&&(s&&(r+=" "),n?r+="z":e&&(r+="ZZ")),Bi(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():za}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",s={}){if(!this.isValid||!e.isValid)return Ce.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...s},i=P0(n).map(Ce.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,l=o?e:this,c=YT(a,l,i,r);return o?c.negate():c}diffNow(e="milliseconds",n={}){return this.diff(U.now(),e,n)}until(e){return this.isValid?et.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const s=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(n)<=s&&s<=r.endOf(n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||U.fromObject({},{zone:this.zone}),s=e.padding?this<n?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),Ef(n,this.plus(s),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?Ef(e.base||U.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(U.isDateTime))throw new jt("min requires all arguments be DateTimes");return af(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(U.isDateTime))throw new jt("max requires all arguments be DateTimes");return af(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,s={}){const{locale:r=null,numberingSystem:i=null}=s,o=qe.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return Sm(o,e,n)}static fromStringExplain(e,n,s={}){return U.fromFormatExplain(e,n,s)}static get DATE_SHORT(){return ho}static get DATE_MED(){return Fd}static get DATE_MED_WITH_WEEKDAY(){return p0}static get DATE_FULL(){return zd}static get DATE_HUGE(){return Yd}static get TIME_SIMPLE(){return Ud}static get TIME_WITH_SECONDS(){return Bd}static get TIME_WITH_SHORT_OFFSET(){return Hd}static get TIME_WITH_LONG_OFFSET(){return jd}static get TIME_24_SIMPLE(){return Wd}static get TIME_24_WITH_SECONDS(){return Vd}static get TIME_24_WITH_SHORT_OFFSET(){return qd}static get TIME_24_WITH_LONG_OFFSET(){return Kd}static get DATETIME_SHORT(){return Zd}static get DATETIME_SHORT_WITH_SECONDS(){return Gd}static get DATETIME_MED(){return Xd}static get DATETIME_MED_WITH_SECONDS(){return Jd}static get DATETIME_MED_WITH_WEEKDAY(){return g0}static get DATETIME_FULL(){return Qd}static get DATETIME_FULL_WITH_SECONDS(){return em}static get DATETIME_HUGE(){return tm}static get DATETIME_HUGE_WITH_SECONDS(){return nm}}function Rr(t){if(U.isDateTime(t))return t;if(t&&t.valueOf&&Is(t.valueOf()))return U.fromJSDate(t);if(t&&typeof t=="object")return U.fromObject(t);throw new jt(`Unknown datetime argument: ${t}, of type ${typeof t}`)}class Go{constructor(e){this.value=e}}const dc=/(milliseconds|ms)/i,mc=/(seconds|second|secs|sec|s)/i,pc=/(minutes|minute|mins|min)/i,gc=/(hours|hour|h)/i,yc=/(?:(week\s*|work\s*|business\s*)?(days|day|d))/i,vc=/(weeks|week|w)/i,Tc=/(months|month)/i,wc=/(years|year|y)/i,El=new RegExp(`(\\d+\\W*)(${dc.source}|${mc.source}|${pc.source}|${gc.source}|${yc.source}|${vc.source}|${Tc.source}|${wc.source})(?:\\s*,\\s*|\\s*)`,"g"),Pm=/(?:\W|^)(!\w+)/,Sl=new RegExp(`(by|before|after)?(\\s*${Pm.source}\\s*)?(?:plus|\\+)?\\s*(${El.source})*`),lw=/january|february|march|april|may|june|july|august|september|october|november|december/,cw=/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/,_c=new RegExp(`(?:(${lw.source})|(${cw.source}))`),uw=new RegExp(`(([0-3]?[0-9])\\s+${_c.source})`),fw=new RegExp(`(${_c.source}\\s+([0-3]?[0-9](?!\\d)))`),bc=/((1|2|3|4|5|6|7|8|9|10|11|12)(:\d{2})?([ap]m)|([012]?[0-9])(:\d{2})?)/,hw=new RegExp(`(?:(?:${uw.source}|${fw.source}),?(?:\\s+(\\d{4}),?)?(?:\\s+${bc.source})?)|(${_c.source}(?:\\s+(\\d{1,4}))?)`),dw=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2,}(?:\.\d*)?Z/,Il=/now/,mw=new RegExp(`(\\d{1,5}(\\/\\d{1,5}(\\/\\d{1,5}(?:(?:,|\\s)+${bc.source})?)?)?)`),If=new RegExp(`(${dw.source})|(${Il.source})|${bc.source}|(${mw.source})|(${Sl.source})|${hw.source}`),$m=new RegExp(`(?:(\\d+|other)?\\s*)(${dc.source}|${mc.source}|${pc.source}|${gc.source}|${yc.source}|${vc.source}|${Tc.source}|${wc.source})`,"g"),pw=new RegExp(`((\\s+for\\s+(\\d+\\W*)(${dc.source}|${mc.source}|${pc.source}|${gc.source}|${yc.source}|${vc.source}|${Tc.source}|${wc.source}|(times)))|(\\s+x\\s*(\\d+)))?`),Fm=new RegExp(`\\s*every\\s+${$m.source}${pw.source}`),gw=new RegExp(`((${If.source})(?:\\s*(?:-|to)\\s*(${If.source}))?)(${Fm.source})?\\s*:`),Ec=new RegExp(`^(\\s*)${gw.source}(.*)`,"i");let P=0;++P;const yw=++P,vw=++P;++P;const Tw=++P,ww=++P,_w=++P,bw=++P,Ew=++P,Sw=++P,Iw=++P,Ow=++P;++P;++P;++P;const Dw=++P,kw=++P,Mw=++P,Cw=++P,Aw=++P,Nw=++P,xw=++P,Lw=++P;++P;const Rw=++P;++P;++P;++P;++P;++P;++P;++P;++P;++P;++P;++P;++P;++P;const Pw=++P,$w=++P,Fw=++P;++P;const zw=++P,Yw=++P,Uw=++P,Bw=++P,Hw=++P,jw=++P,Ww=++P,Vw=++P,qw=++P,Kw=++P;++P;const Zw=++P,Gw=++P,Xw=++P,Jw=++P;++P;const Qw=++P,e1=++P,t1=++P,n1=++P,s1=++P,r1=++P,i1=++P,o1=++P;++P;++P;++P;const a1=++P,l1=++P,c1=++P,u1=++P,f1=++P,h1=++P,d1=++P,m1=++P;++P;const p1=++P;++P;++P;++P;++P;++P;++P;++P;++P;++P;++P;++P;++P;++P;const g1=++P,y1=++P,v1=++P;++P;const T1=++P,w1=++P,_1=++P,b1=++P,E1=++P,S1=++P,I1=++P,O1=++P,D1=++P,k1=++P;++P;const M1=++P,C1=++P,A1=++P,N1=++P,Of=++P;++P;const x1=++P,L1=++P,R1=++P,P1=++P,$1=++P,F1=++P,z1=++P,Y1=++P,U1=++P,B1=++P,H1=++P,j1=++P;++P;const W1=++P,V1=++P,q1=++P,K1=++P,Z1=++P,G1=++P,X1=++P,J1=++P,Q1=++P,e_=++P;++P;const t_=++P,Df=++P,Ol=/^\s*\/\/.*/,vo=/(?:^|\s)#(?!\d+(?:\s|$))(\w+)/g,Xo=/^(\s*)(group|section)(?:\s|$)/i,zm=/^(\s*)end(?:Group|Section)/i,n_=/^- .*/,s_=/^- (\[(x|X| )?\]).*/,Ym=/^\s*(\[(x|X| )?\]).*/,kf=/(\d{4}(-\d{2}(-\d{2})?)?)/,r_=new RegExp(`((?:${kf.source}|(${Sl.source})|(${Il.source}))(\\s*/\\s*(?:${kf.source}|(${Sl.source})|(${Il.source})))?)(${Fm.source})?\\s*:`),Sc=new RegExp(`^(\\s*)${r_.source}(.*)`,"i");let ue=0;++ue;const i_=++ue,o_=++ue,a_=++ue,l_=++ue,c_=++ue,u_=++ue;++ue;const f_=++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;const h_=++ue,d_=++ue,m_=++ue,p_=++ue,g_=++ue,y_=++ue,v_=++ue;++ue;const T_=++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;++ue;const w_=++ue,__=++ue,b_=++ue;++ue;const E_=++ue,S_=++ue,I_=++ue,O_=++ue,D_=++ue,k_=++ue,M_=++ue,C_=++ue,A_=++ue,N_=++ue,x_=++ue,L_=++ue;++ue;const R_=++ue,P_=++ue,$_=++ue,F_=++ue,z_=++ue,Y_=++ue,U_=++ue,B_=++ue,H_=++ue,j_=++ue;++ue;const W_=++ue,Mf=++ue;function Cf(t){return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")?t:`http://${t}`}const To="M/d/y",V_="d/M/y",q_="M/y",K_="y";class Wt{static diffFromString(e){const n=e.matchAll(El);let s=n.next();const r={};for(;s.value;){const i=s.value,o=parseInt(i[1]);i[3]?r.milliseconds=(r.milliseconds??0)+o:i[4]?r.seconds=(r.seconds??0)+o:i[5]?r.minutes=(r.minutes??0)+o:i[6]?r.hours=(r.hours??0)+o:i[7]||(i[8]?r.days=(r.days??0)+o:i[9]?r.weeks=(r.weeks??0)+o:i[10]?r.months=(r.months??0)+o:i[11]&&(r.years=(r.years??0)+o)),s=n.next()}return r}static from(e,n,s=!1){const r=e.matchAll(El);let i=r.next();const o=s?"minus":"plus";for(;i.value;){const a=i.value,l=parseInt(a[1]);a[3]?n=n[o]({milliseconds:l}):a[4]?n=n[o]({seconds:l}):a[5]?n=n[o]({minutes:l}):a[6]?n=n[o]({hours:l}):a[7]?n=s?Z_(l,n):G_(l,n):a[8]?n=n[o]({days:l}):a[9]?n=n[o]({weeks:l}):a[10]?n=n[o]({months:l}):a[11]&&(n=n[o]({years:l})),i=r.next()}return n}}function Z_(t,e){const n=e.weekday-1,s=t-n;if(s<=0)return e.minus({days:t});const r=2,i=7,o=5,a=n,l=~~(s/o),c=s%o,u=l*i,f=c?r+c:0;return e.minus({days:a+u+f})}function G_(t,e){const r=6-e.weekday,i=t-r;if(i<=0)return e.plus({days:t});{const c=r,u=~~(i/5),f=i%5,h=u*7,d=f?2+f:0;return e.plus({days:c+h+d})}}class wo{constructor(e,n,s,r,i,o){this.fromDateTime=e,this.toDateTime=n,this.originalString=s,this.dateRangeInText=r,this.eventText=i,this.recurrence=o==null?void 0:o.recurrence,this.recurrenceRangeInText=o==null?void 0:o.range}}const X_=/\[([^\]\<\>]+)\]\(((https?:\/\/)?[\w\d./\&\?=\-#:,_]+)\)/g,J_=/\[([^\]]+)\]\((location|map)\)/g,Af=/!\[([^\]\<\>]*)\]\(((https?:\/\/)?[\w\d./\&\?=\-#:,_]+)\)/,Q_=/@([\w\d\/]+)/g,eb=/(?:\s|^)(\d{1,3})%(?:\s|$)/;var Kn;(function(t){t.TEXT="text",t.LIST_ITEM="listItem",t.CHECKBOX="checkbox",t.IMAGE="image"})(Kn||(Kn={}));class tb{constructor(e){this.raw=e,e.startsWith("- []")?(this.type=Kn.CHECKBOX,this.value=!1,this.raw=e.substring(4).trim()):e.startsWith("- [ ]")?(this.type=Kn.CHECKBOX,this.value=!1,this.raw=e.substring(5).trim()):e.startsWith("- [x]")?(this.type=Kn.CHECKBOX,this.value=!0,this.raw=e.substring(5).trim()):e.startsWith("- ")?(this.type=Kn.LIST_ITEM,this.raw=e.substring(2)):this.type=Kn.TEXT}}class Nf{constructor(e,n){this.type="image",this.altText=e,this.link=n}}class nb{constructor(e,n,s){this.tags=[],this.supplemental=[],this.locations=[],this.matchedListItems=n;for(let r=0;r<e.length;r++){let i=e[r];if(!i.match(Ol)){if(r===0&&(i=i.replace(Af,(o,a,l)=>(this.supplemental.push(new Nf(a,Cf(l))),""))),i=i.replace(J_,(o,a)=>(this.locations.push(a),"")),i=i.replace(vo,(o,a)=>(this.tags.includes(a)||this.tags.push(a),"")),i=i.replace(Pm,(o,a)=>this.id?a:(this.id=a,"")),!this.percent){const o=i.match(eb);o&&(this.percent=parseInt(o[0]))}e[r]=i}}this.eventDescription=e[0],this.supplemental=this.supplemental.concat(e.slice(1).filter(r=>!r.match(Ol)&&!!r.trim()).map(r=>{r=r.replace(vo,(o,a)=>(this.tags.includes(a)||this.tags.push(a),""));const i=r.match(Af);return i?new Nf(i[1],Cf(i[2])):new tb(r.trim())})),this.completed=s}}var $e;(function(t){t.Comment="comment",t.CheckboxItemIndicator="checkboxItemIndicator",t.listItemIndicator="listItemIndicator",t.ListItemContents="listItemContents",t.Tag="tag",t.tagDefinition="tagDefinition",t.Title="title",t.View="view",t.Viewer="viewer",t.Description="description",t.Section="section",t.DateRange="dateRange",t.DateRangeColon="dateRangeColon",t.Event="event",t.Edit="edit",t.Editor="editor",t.Recurrence="recurrence",t.FrontmatterDelimiter="frontMatterDelimiter",t.HeaderKey="headerKey",t.HeaderKeyColon="headerKeyColon",t.HeaderValue="headerValue"})($e||($e={}));const Ic=t=>({fromDateTimeIso:t.fromDateTime.toISO(),toDateTimeIso:t.toDateTime.toISO()}),mt=t=>({fromDateTime:U.fromISO(t.fromDateTimeIso),toDateTime:U.fromISO(t.toDateTimeIso)});class sb{constructor(e,n,s,r,i,o){this.eventString=e,this.eventText=n.eventText,this.dateRangeIso=Ic(n),this.recurrence=n.recurrence,this.recurrenceRangeInText=n.recurrenceRangeInText,this.rangeInText=s,this.eventDescription=i,this.dateText=o,this.dateRangeInText=r}}function rb(){const t=U.now();return{events:new Go([]),ranges:[],foldables:[],ids:{},header:{dateFormat:To},metadata:{earliestTime:t.minus({years:5}).toISO(),latestTime:t.plus({years:5}).toISO(),maxDurationDays:t.diff(t.minus({years:1})).as("days"),startLineIndex:0,endLineIndex:0,startStringIndex:0,endStringIndex:0,preferredInterpolationFormat:void 0}}}function lr(t,e,n,s,r,i){const o=t[e],a=t[n]||":00";let l=t[s];if(!l){const f=parseInt(o);isNaN(f)&&(l="am"),f<9||f===12?l="pm":l="am"}if(o)return{dateTimeIso:U.fromFormat(`${o}${a}${l}`,"h:mma").toISO(),granularity:a===":00"?"hour":"minute"};const c=t[r],u=t[i]||":00";return{dateTimeIso:U.fromFormat(`${c}${u}`,`${c.length===2&&c[0]==="0"?"HH":"H"}:mm`).toISO(),granularity:u===":00"?"hour":"minute"}}function ib(t){return lr(t,kw,Mw,Cw,Aw,Nw)}function ob(t){return lr(t,l1,c1,u1,f1,h1)}function ab(t){return lr(t,jw,Ww,Vw,qw,Kw)}function lb(t){return lr(t,S1,I1,O1,D1,k1)}function cb(t,e){let n=t[zw],s=t[Uw],r=t[Bw]||`${U.now().year}`,i=t[Hw]&&ab(t),o=n&&s&&_o(`${r} ${n} ${parseInt(s)}`,e);if(n=t[Yw],o=o||n&&s&&bo(`${r} ${n} ${parseInt(s)}`,e),s=t[Pw],n=t[$w],o=o||n&&s&&_o(`${r} ${n} ${parseInt(s)}`,e),n=t[Fw],o=o||n&&s&&bo(`${r} ${n} ${parseInt(s)}`,e),o){if(i){const a=U.fromISO(o.dateTimeIso,{setZone:!0,zone:e.timezone}),l=U.fromISO(i.dateTimeIso,{setZone:!0,zone:e.timezone});o.dateTimeIso=a.set({hour:l.hour,minute:l.minute}).toISO(),o.granularity=i.granularity}return o}if(r=t[Xw]||`${U.now().year}`,n=t[Zw],n)return{dateTimeIso:U.fromFormat(`${r} ${n}`,"y MMMM",{setZone:!0,zone:e.timezone}).toISO(),granularity:"month"};if(n=t[Gw],n)return{dateTimeIso:U.fromFormat(`${r} ${n}`,"y MMM",{setZone:!0,zone:e.timezone}).toISO(),granularity:"month"}}function ub(t,e){let n=t[T1],s=t[_1],r=t[b1]||`${U.now().year}`,i=t[E1]&&lb(t),o=n&&s&&_o(`${r} ${n} ${parseInt(s)}`,e);if(n=t[w1],o=o||n&&s&&bo(`${r} ${n} ${parseInt(s)}`,e),s=t[g1],n=t[y1],o=o||n&&s&&_o(`${r} ${n} ${parseInt(s)}`,e),n=t[v1],o=o||n&&s&&bo(`${r} ${n} ${parseInt(s)}`,e),o){if(i&&i){const a=U.fromISO(o.dateTimeIso,{setZone:!0,zone:e.timezone}),l=U.fromISO(i.dateTimeIso,{setZone:!0,zone:e.timezone});o.dateTimeIso=a.set({hour:l.hour,minute:l.minute}).toISO(),o.granularity=i.granularity}return o}if(r=t[A1]||`${U.now().year}`,n=t[M1],n)return{dateTimeIso:U.fromFormat(`${r} ${n}`,"y MMMM",{setZone:!0,zone:e.timezone}).toISO(),granularity:"month"};if(n=t[C1],n)return{dateTimeIso:U.fromFormat(`${r} ${n}`,"y MMM",{setZone:!0,zone:e.timezone}).toISO(),granularity:"month"}}function _o(t,e){return{dateTimeIso:U.fromFormat(t,"y MMMM d",{setZone:!0,zone:e.timezone}).toISO(),granularity:"day"}}function bo(t,e){return{dateTimeIso:U.fromFormat(t,"y MMM d",{setZone:!0,zone:e.timezone}).toISO(),granularity:"day"}}function fb(t,e,n){const s=new Go([]);return s.tags=[],s.style="group",s.rangeInText=n,t=t.replace(Xo,(r,i,o)=>(s.startExpanded=!i.length,s.style=o,"")).replace(vo,(r,i)=>(s.tags.includes(i)||s.tags.push(i),"")),s.title=t.trim(),s}function Oc(t){var e;return(e=t.tail)==null?void 0:e.value}function hb(t){const e=Oc(t);if(e)return mt(e.dateRangeIso).toDateTime}function xf(t,e,n,s){const r=JSON.stringify({s:t,fullFormat:e}),i=s==null?void 0:s.zone(n.timezone).slashDate.get(r);if(i)return i;const o=[[e,"day"],[q_,"month"],[K_,"year"]];for(const a of o){let l=U.fromFormat(t,a[0]);if(l.isValid){const c={dateTimeIso:l.toISO(),granularity:a[1]};return s==null||s.zone(n.timezone).slashDate.set(r,c),c}}}function vs(t,e,n){const s=JSON.stringify(t),r=n==null?void 0:n.zone(e.timezone).roundDateUp.get(s);if(r)return r;const i=a=>(n==null||n.zone(e.timezone).roundDateUp.set(s,a),a),o=U.fromISO(t.dateTimeIso,{setZone:!0,zone:e.timezone});return!o.isValid||["instant","hour","minute","second"].includes(t.granularity)?i(t.dateTimeIso):i(o.plus({[t.granularity]:1}).toISO())}const Lf=["years","months","weeks","weekdays","days","hours","minutes","seconds","milliseconds"],Rf=(t,e,n)=>{const s=t[__];if(!s)return;const r=t[0].indexOf(s),i={type:$e.Recurrence,from:e[n]+r,to:e[n]+r+s.length,content:s};let o;const a=t[b_];a?a.trim().toLowerCase()==="other"?o=2:o=parseInt(a.trim()):o=1;const l=[A_,C_,M_,D_,k_,O_,I_,S_,E_].findIndex(f=>!!t[f]),u={[Lf[l]]:o};if(t[N_])if(t[x_]){const f=parseInt(t[L_].trim()),h=[...Lf,"times"],d=[H_,B_,U_,z_,Y_,F_,$_,P_,R_,j_].findIndex(p=>t[p]),m=h[d];return{recurrence:{every:u,for:{[m]:f}},range:i}}else{const f=parseInt(t[W_].trim());return{recurrence:{every:u,for:{times:f}},range:i}}return{recurrence:{every:u},range:i}},Pf=(t,e,n)=>{const s=t[N1];if(!s)return;const r=t[0].indexOf(s),i={type:$e.Recurrence,from:e[n]+r,to:e[n]+r+s.length,content:s};let o;if(t[Of]){const f=t[Of].trim();f.toLowerCase()==="other"?o=2:o=parseInt(f)}else o=1;const a=["years","months","weeks","weekdays","days","hours","minutes","seconds","milliseconds"],l=[U1,Y1,z1,$1,F1,P1,R1,L1,x1].findIndex(f=>!!t[f]),u={[a[l]]:o};if(t[B1])if(t[H1]){const f=parseInt(t[j1].trim()),h=["years","months","weeks","weekdays","days","hours","minutes","seconds","milliseconds","times"],d=[Q1,J1,X1,Z1,G1,K1,q1,V1,W1,e_].findIndex(p=>t[p]),m=h[d];return{recurrence:{every:u,for:{[m]:f}},range:i}}else{const f=parseInt(t[t_].trim());return{recurrence:{every:u,for:{times:f}},range:i}}return{recurrence:{every:u},range:i}};function db(t,e,n,s,r){const i=t.match(Ec);if(!i)return;const o=i[yw],a=i[vw],l=i[Jw],c=i[xw],u=i[Lw],f=["before","by"].includes(u||"")?"before":"after",h=i[d1];i[m1];const d=cb(i,s),m=ub(i,s),p=i[Ow],y=i[o1],g=i[ww],T=i[e1],I=i[Tw],w=i[Qw];let b,S,C="instant",D=!0;const A=t.indexOf(o),z={type:$e.DateRange,from:n[e]+A,to:n[e]+A+o.length};s.ranges.push(z);const X=t.indexOf(":",A+o.length),L=J=>({type:J,from:n[e]+X,to:n[e]+X+1}),re=r==null?void 0:r.zone(s.timezone).ranges.get(o);if(re){const J=Pf(i,n,e);return J&&s.ranges.push(J.range),s.ranges.push(L($e.DateRangeColon)),new wo(U.fromISO(re.fromDateTimeIso,{setZone:!0}),U.fromISO(re.toDateTimeIso,{setZone:!0}),o,z,i[Df],J)}if(c){D=!1;const J=i[Rw];let te=J&&(f==="after"?s.ids[J]?mt(s.ids[J].dateRangeIso).toDateTime:void 0:s.ids[J]?mt(s.ids[J].dateRangeIso).fromDateTime:void 0);if(!te){const E=Oc(s);E?te=f==="after"?mt(E.dateRangeIso).toDateTime:mt(E.dateRangeIso).fromDateTime:te=s.now}!h&&!l?f==="before"?(S=te,b=Wt.from(c,te,!0)):(b=te,S=Wt.from(c,te)):f==="before"?h&&(S=Wt.from(c,te,!0),b=Wt.from(h,S,!0)):b=Wt.from(c,te),C="instant"}else if(d)b=U.fromISO(d.dateTimeIso,{setZone:!0,zone:s.timezone}),C=d.granularity;else if(p){const J=i[Dw];let te=p;J&&(te=te.substring(0,te.indexOf(J)).trim().replace(/,/g,""));const E=xf(te,s.header.dateFormat,s,r);if(E){if(J){const G=ib(i),F=U.fromISO(G.dateTimeIso);b=U.fromISO(E.dateTimeIso,{setZone:!0,zone:s.timezone}).set({hour:F.hour,minute:F.minute}),C=G.granularity}else b=U.fromISO(E.dateTimeIso,{setZone:!0,zone:s.timezone}),C=E.granularity;s.preferredInterpolationFormat=s.header.dateFormat}else console.error("Was supposed to have slash date but couldn't parse it.")}else if(g){D=!1;const J=lr(i,_w,bw,Ew,Sw,Iw),te=hb(s)||U.now(),E=U.fromISO(J.dateTimeIso,{setZone:!0,zone:s.timezone});let G=te.set({hour:E.hour,minute:E.minute});G<te?(G=G.plus({days:1}),b=G,C=J.granularity):(b=G,C=J.granularity)}else I?(b=s.now.setZone(s.timezone),C="instant"):(b=U.fromISO(a,{zone:s.timezone,setZone:!0}),C="instant");if((!b||!b.isValid)&&(b=s.now.setZone(s.timezone),C="instant"),!S)if(h){D=!1;const J=i[p1];let te=J&&s.ids[J]&&mt(s.ids[J].dateRangeIso).toDateTime;te||(te=b),S=Wt.from(l,te)}else if(m)S=U.fromISO(vs(m,s,r),{setZone:!0,zone:s.timezone});else if(y){const J=i[a1];let te=y;J&&(te=te.substring(0,te.indexOf(J)).trim().replace(/,/g,""));const E=xf(te,s.header.dateFormat,s,r);if(E){if(J){const G=U.fromISO(E.dateTimeIso,{setZone:!0,zone:s.timezone}),F=ob(i),Q=U.fromISO(F.dateTimeIso,{setZone:!0,zone:s.timezone});S=G.set({hour:Q.hour,minute:Q.minute}),S=U.fromISO(vs({dateTimeIso:S.toISO(),granularity:F.granularity},s,r),{setZone:!0,zone:s.timezone})}else S=U.fromISO(vs(E,s,r),{setZone:!0,zone:s.timezone});s.preferredInterpolationFormat=s.header.dateFormat}else console.error("Was supposed to have slash date but couldn't parse it.")}else if(T){const J=lr(i,t1,n1,s1,r1,i1),te=U.fromISO(J.dateTimeIso,{setZone:!0,zone:s.timezone});let E=b.set({hour:te.hour,minute:te.minute});E<b&&(E=E.plus({days:1})),S=E,C=J.granularity}else w?(S=U.now(),C="instant"):S=U.fromISO(vs({dateTimeIso:l,granularity:"instant"},s,r),{setZone:!0,zone:s.timezone});(!S||!S.isValid)&&(S=U.fromISO(vs({dateTimeIso:b.toISO(),granularity:C},s,r),{setZone:!0,zone:s.timezone}));const he=Pf(i,n,e);he&&s.ranges.push(he.range),s.ranges.push(L($e.DateRangeColon));const de=new wo(b,S,o,z,i[Df],he);return D&&(r==null||r.zone(s.timezone).ranges.set(o,{fromDateTimeIso:b.toISO(),toDateTimeIso:S.toISO()})),de}function mb(t,e,n,s,r){const i=t.match(Sc);if(!i)return;const o=i[i_],a=i[o_],l=!!i[a_],c=!!i[l_],u=i[d_],f=i[m_],h=!!i[p_],d=!!i[g_],m=i[u_];i[v_];const p=i[c_],y=["before","by"].includes(m||"")?"before":"after",g=i[y_],T=i[h_],I=i[w_],w=t.indexOf(o),b={type:$e.DateRange,from:n[e]+w,to:n[e]+w+o.length};s.ranges.push(b);const S=t.indexOf(":",w+o.length),C=de=>({type:de,from:n[e]+S,to:n[e]+S+1}),D=r==null?void 0:r.zone(s.timezone).ranges.get(o);if(D){const de=Rf(i,n,e);return de&&s.ranges.push(de.range),s.ranges.push(C($e.DateRangeColon)),new wo(U.fromISO(D.fromDateTimeIso,{setZone:!0}),U.fromISO(D.toDateTimeIso,{setZone:!0}),o,b,i[Mf],de)}let A,z,X="instant",L=!0;if(a)A=U.fromISO(a,{setZone:!0,zone:s.timezone}),X=c?"day":l?"month":"year";else if(p){L=!1;const de=i[f_];let J=de&&(y==="after"?s.ids[de]?mt(s.ids[de].dateRangeIso).toDateTime:void 0:s.ids[de]?mt(s.ids[de].dateRangeIso).fromDateTime:void 0);if(!J){const te=Oc(s);te?J=y==="after"?mt(te.dateRangeIso).toDateTime:mt(te.dateRangeIso).fromDateTime:J=s.now}!g&&!u?y==="before"?(z=J,A=Wt.from(p,J,!0)):(A=J,z=Wt.from(p,J)):y==="before"?g&&(z=Wt.from(p,J,!0),A=Wt.from(g,z,!0)):A=Wt.from(p,J),X="instant"}else T?(A=s.now.setZone(s.timezone),X="instant"):(A=U.fromISO(a,{zone:s.timezone}),X="instant");if((!A||!(A!=null&&A.isValid))&&(A=s.now.setZone(s.timezone),X="instant"),!z)if(g){L=!1;const de=i[T_];let J=de&&s.ids[de]&&mt(s.ids[de].dateRangeIso).toDateTime;J||(J=A),z=Wt.from(g,J)}else I?(z=s.now.setZone(s.timezone),X="instant"):f&&(z=U.fromISO(vs({dateTimeIso:f,granularity:d?"day":h?"month":"year"},s,r),{setZone:!0,zone:s.timezone}));(!z||!z.isValid)&&(z=U.fromISO(vs({dateTimeIso:A.toISO(),granularity:X},s,r),{setZone:!0,zone:s.timezone}));const re=Rf(i,n,e);re&&s.ranges.push(re.range),s.ranges.push(C($e.DateRangeColon));const he=new wo(A,z,o,b,i[Mf],re);return L&&(r==null||r.zone(s.timezone).ranges.set(o,{fromDateTimeIso:A.toISO(),toDateTimeIso:z.toISO()})),he}function Um(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const Pr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,pb=typeof AbortController=="function",Eo=pb?AbortController:class{constructor(){this.signal=new Bm}abort(){this.signal.dispatchEvent("abort")}},gb=typeof AbortSignal=="function",yb=typeof Eo.AbortSignal=="function",Bm=gb?AbortSignal:yb?Eo.AbortController:class{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if(e==="abort"){this.aborted=!0;const n={type:e,target:this};this.onabort(n),this._listeners.forEach(s=>s(n),this)}}onabort(){}addEventListener(e,n){e==="abort"&&this._listeners.push(n)}removeEventListener(e,n){e==="abort"&&(this._listeners=this._listeners.filter(s=>s!==n))}},Dc=new Set,Ba=(t,e)=>{const n=`LRU_CACHE_OPTION_${t}`;Jo(n)&&kc(n,`${t} option`,`options.${e}`,Ds)},Ha=(t,e)=>{const n=`LRU_CACHE_METHOD_${t}`;if(Jo(n)){const{prototype:s}=Ds,{get:r}=Object.getOwnPropertyDescriptor(s,t);kc(n,`${t} method`,`cache.${e}()`,r)}},vb=(t,e)=>{const n=`LRU_CACHE_PROPERTY_${t}`;if(Jo(n)){const{prototype:s}=Ds,{get:r}=Object.getOwnPropertyDescriptor(s,t);kc(n,`${t} property`,`cache.${e}`,r)}},Hm=(...t)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...t):console.error(...t)},Jo=t=>!Dc.has(t),kc=(t,e,n,s)=>{Dc.add(t);const r=`The ${e} is deprecated. Please use ${n} instead.`;Hm(r,"DeprecationWarning",t,s)},Hn=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),jm=t=>Hn(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?eo:null:null;class eo extends Array{constructor(e){super(e),this.fill(0)}}class Tb{constructor(e){if(e===0)return[];const n=jm(e);this.heap=new n(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class Ds{constructor(e={}){const{max:n=0,ttl:s,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:c,disposeAfter:u,noDisposeOnSet:f,noUpdateTTL:h,maxSize:d=0,maxEntrySize:m=0,sizeCalculation:p,fetchMethod:y,fetchContext:g,noDeleteOnFetchRejection:T,noDeleteOnStaleGet:I}=e,{length:w,maxAge:b,stale:S}=e instanceof Ds?{}:e;if(n!==0&&!Hn(n))throw new TypeError("max option must be a nonnegative integer");const C=n?jm(n):Array;if(!C)throw new Error("invalid max value: "+n);if(this.max=n,this.maxSize=d,this.maxEntrySize=m||this.maxSize,this.sizeCalculation=p||w,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=y||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=g,!this.fetchMethod&&g!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(n).fill(null),this.valList=new Array(n).fill(null),this.next=new C(n),this.prev=new C(n),this.head=0,this.tail=0,this.free=new Tb(n),this.initialFill=1,this.size=0,typeof c=="function"&&(this.dispose=c),typeof u=="function"?(this.disposeAfter=u,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!T,this.maxEntrySize!==0){if(this.maxSize!==0&&!Hn(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!Hn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!l||!!S,this.noDeleteOnStaleGet=!!I,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Hn(r)||r===0?r:1,this.ttlAutopurge=!!i,this.ttl=s||b||0,this.ttl){if(!Hn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const D="LRU_CACHE_UNBOUNDED";Jo(D)&&(Dc.add(D),Hm("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",D,Ds))}S&&Ba("stale","allowStale"),b&&Ba("maxAge","ttl"),w&&Ba("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new eo(this.max),this.starts=new eo(this.max),this.setItemTTL=(s,r,i=Pr.now())=>{if(this.starts[s]=r!==0?i:0,this.ttls[s]=r,r!==0&&this.ttlAutopurge){const o=setTimeout(()=>{this.isStale(s)&&this.delete(this.keyList[s])},r+1);o.unref&&o.unref()}},this.updateItemAge=s=>{this.starts[s]=this.ttls[s]!==0?Pr.now():0};let e=0;const n=()=>{const s=Pr.now();if(this.ttlResolution>0){e=s;const r=setTimeout(()=>e=0,this.ttlResolution);r.unref&&r.unref()}return s};this.getRemainingTTL=s=>{const r=this.keyMap.get(s);return r===void 0?0:this.ttls[r]===0||this.starts[r]===0?1/0:this.starts[r]+this.ttls[r]-(e||n())},this.isStale=s=>this.ttls[s]!==0&&this.starts[s]!==0&&(e||n())-this.starts[s]>this.ttls[s]}updateItemAge(e){}setItemTTL(e,n,s){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new eo(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,n,s,r)=>{if(this.isBackgroundFetch(n))return 0;if(!Hn(s))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(s=r(n,e),!Hn(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer)");return s},this.addItemSize=(e,n)=>{if(this.sizes[e]=n,this.maxSize){const s=this.maxSize-this.sizes[e];for(;this.calculatedSize>s;)this.evict(!0)}this.calculatedSize+=this.sizes[e]}}removeItemSize(e){}addItemSize(e,n){}requireSize(e,n,s,r){if(s||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let n=this.tail;!(!this.isValidIndex(n)||((e||!this.isStale(n))&&(yield n),n===this.head));)n=this.prev[n]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let n=this.head;!(!this.isValidIndex(n)||((e||!this.isStale(n))&&(yield n),n===this.tail));)n=this.next[n]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,n={}){for(const s of this.indexes())if(e(this.valList[s],this.keyList[s],this))return this.get(this.keyList[s],n)}forEach(e,n=this){for(const s of this.indexes())e.call(n,this.valList[s],this.keyList[s],this)}rforEach(e,n=this){for(const s of this.rindexes())e.call(n,this.valList[s],this.keyList[s],this)}get prune(){return Ha("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const n of this.rindexes({allowStale:!0}))this.isStale(n)&&(this.delete(this.keyList[n]),e=!0);return e}dump(){const e=[];for(const n of this.indexes({allowStale:!0})){const s=this.keyList[n],r=this.valList[n],o={value:this.isBackgroundFetch(r)?r.__staleWhileFetching:r};if(this.ttls){o.ttl=this.ttls[n];const a=Pr.now()-this.starts[n];o.start=Math.floor(Date.now()-a)}this.sizes&&(o.size=this.sizes[n]),e.unshift([s,o])}return e}load(e){this.clear();for(const[n,s]of e){if(s.start){const r=Date.now()-s.start;s.start=Pr.now()-r}this.set(n,s.value,s)}}dispose(e,n,s){}set(e,n,{ttl:s=this.ttl,start:r,noDisposeOnSet:i=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL}={}){if(o=this.requireSize(e,n,o,a),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(e),this;let c=this.size===0?void 0:this.keyMap.get(e);if(c===void 0)c=this.newIndex(),this.keyList[c]=e,this.valList[c]=n,this.keyMap.set(e,c),this.next[this.tail]=c,this.prev[c]=this.tail,this.tail=c,this.size++,this.addItemSize(c,o),l=!1;else{const u=this.valList[c];n!==u&&(this.isBackgroundFetch(u)?u.__abortController.abort():i||(this.dispose(u,e,"set"),this.disposeAfter&&this.disposed.push([u,e,"set"])),this.removeItemSize(c),this.valList[c]=n,this.addItemSize(c,o)),this.moveToTail(c)}if(s!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),l||this.setItemTTL(c,s,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const n=this.head,s=this.keyList[n],r=this.valList[n];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,s,"evict"),this.disposeAfter&&this.disposed.push([r,s,"evict"])),this.removeItemSize(n),e&&(this.keyList[n]=null,this.valList[n]=null,this.free.push(n)),this.head=this.next[n],this.keyMap.delete(s),this.size--,n}has(e,{updateAgeOnHas:n=this.updateAgeOnHas}={}){const s=this.keyMap.get(e);return s!==void 0&&!this.isStale(s)?(n&&this.updateItemAge(s),!0):!1}peek(e,{allowStale:n=this.allowStale}={}){const s=this.keyMap.get(e);if(s!==void 0&&(n||!this.isStale(s))){const r=this.valList[s];return this.isBackgroundFetch(r)?r.__staleWhileFetching:r}}backgroundFetch(e,n,s,r){const i=n===void 0?void 0:this.valList[n];if(this.isBackgroundFetch(i))return i;const o=new Eo,a={signal:o.signal,options:s,context:r},l=h=>(o.signal.aborted||this.set(e,h,a.options),h),c=h=>{if(this.valList[n]===f&&(!s.noDeleteOnFetchRejection||f.__staleWhileFetching===void 0?this.delete(e):this.valList[n]=f.__staleWhileFetching),f.__returned===f)throw h},u=h=>h(this.fetchMethod(e,i,a)),f=new Promise(u).then(l,c);return f.__abortController=o,f.__staleWhileFetching=i,f.__returned=null,n===void 0?(this.set(e,f,a.options),n=this.keyMap.get(e)):this.valList[n]=f,f}isBackgroundFetch(e){return e&&typeof e=="object"&&typeof e.then=="function"&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||e.__returned===null)}async fetch(e,{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,fetchContext:f=this.fetchContext,forceRefresh:h=!1}={}){if(!this.fetchMethod)return this.get(e,{allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:r});const d={allowStale:n,updateAgeOnGet:s,noDeleteOnStaleGet:r,ttl:i,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:u};let m=this.keyMap.get(e);if(m===void 0){const p=this.backgroundFetch(e,m,d,f);return p.__returned=p}else{const p=this.valList[m];if(this.isBackgroundFetch(p))return n&&p.__staleWhileFetching!==void 0?p.__staleWhileFetching:p.__returned=p;if(!h&&!this.isStale(m))return this.moveToTail(m),s&&this.updateItemAge(m),p;const y=this.backgroundFetch(e,m,d,f);return n&&y.__staleWhileFetching!==void 0?y.__staleWhileFetching:y.__returned=y}}get(e,{allowStale:n=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet}={}){const i=this.keyMap.get(e);if(i!==void 0){const o=this.valList[i],a=this.isBackgroundFetch(o);return this.isStale(i)?a?n?o.__staleWhileFetching:void 0:(r||this.delete(e),n?o:void 0):a?void 0:(this.moveToTail(i),s&&this.updateItemAge(i),o)}}connect(e,n){this.prev[n]=e,this.next[e]=n}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return Ha("del","delete"),this.delete}delete(e){let n=!1;if(this.size!==0){const s=this.keyMap.get(e);if(s!==void 0)if(n=!0,this.size===1)this.clear();else{this.removeItemSize(s);const r=this.valList[s];this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,e,"delete"),this.disposeAfter&&this.disposed.push([r,e,"delete"])),this.keyMap.delete(e),this.keyList[s]=null,this.valList[s]=null,s===this.tail?this.tail=this.prev[s]:s===this.head?this.head=this.next[s]:(this.next[this.prev[s]]=this.next[s],this.prev[this.next[s]]=this.prev[s]),this.size--,this.free.push(s)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return n}clear(){for(const e of this.rindexes({allowStale:!0})){const n=this.valList[e];if(this.isBackgroundFetch(n))n.__abortController.abort();else{const s=this.keyList[e];this.dispose(n,s,"delete"),this.disposeAfter&&this.disposed.push([n,s,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return Ha("reset","clear"),this.clear}get length(){return vb("length","size"),this.size}static get AbortController(){return Eo}static get AbortSignal(){return Bm}}var wb=Ds;const Mc=Um(wb),to=()=>new Mc({max:1e3});class _b{constructor(){this.slashDate=to(),this.roundDateUp=to(),this.ranges=to()}}class bb{constructor(){this.caches={},this.zones=to()}zone(e){const n=e.name,s=this.caches[n];return s||(this.caches[n]=new _b,this.caches[n])}}function Cc(t,e,n,s){if(t.match(Ol)){const r=n[e],i=r+t.length;s.ranges.push({type:$e.Comment,from:r,to:i});const o=s.currentFoldableComment();if(o)o.endIndex=i;else{const a=t.indexOf("//");s.startFoldable({startIndex:r,startLine:e,endIndex:i,type:"comment",foldStartIndex:r+(a>-1?a+2:0)})}return!0}else return s.finishFoldableComment(e),!1}function Eb(t,e,n,s){const r=t.match(s_);if(r){const i=n[e],o=t.indexOf(r[1])+r[1].length,a=i+o,l={type:$e.CheckboxItemIndicator,from:i,to:a,content:r.includes("x")||r.includes("X")},c={type:$e.ListItemContents,from:a,to:i+t.length-1};return s.ranges.push(l,c),[l,c]}else if(t.match(n_)){const i=n[e],o={type:$e.listItemIndicator,from:n[e],to:i+1},a={type:$e.ListItemContents,from:i,to:i+t.length-1};return s.ranges.push(o,a),[o,a]}return!1}function Sb(t,e,n,s){const r=(i,o,a,l,c)=>{if(l===0){const u=n[e]+l+o.length;s.ranges.push({type:$e.Tag,from:u,to:u+a.length+1,content:{tag:a}})}return`${o})${a}`};return t.replace(/(^|\W+)#(\w+)/g,r)}function Wm(t,e,n,s){const r=t.matchAll(vo);if(r)for(let i of r){const o=t.indexOf("#"+i[1]),a=n[e]+o;s.ranges.push({type:$e.Tag,from:a,to:a+i[1].length+1,content:{tag:i[1]}}),s.header[")"+i[1]]||(s.header[")"+i[1]]=void 0)}return!1}function Qo(t,e){const n=`${t}`,s=e==null?void 0:e.zones.get(n);if(s)return s;{const r=["z","ZZZ","ZZ","Z"];let i;for(const o of r)if(i=U.fromFormat(n,o,{setZone:!0}),i.isValid&&i.zone.isValid||o!=="z"&&(i=U.fromFormat(`+${n}`,o,{setZone:!0}),i.isValid&&i.zone.isValid))return e==null||e.zones.set(n,i.zone),i.zone}}function Ib(t,e,n){if(typeof t.timezone<"u"){const s=Qo(t.timezone,n);s&&(e.timezoneStack=[s])}}function Ob(t,e,n){t.eventDescription.id&&!n.ids[t.eventDescription.id]&&(n.ids[t.eventDescription.id]=t),(!n.earliest||e.fromDateTime<n.earliest)&&(n.earliest=e.fromDateTime),(!n.latest||e.toDateTime>n.latest)&&(n.latest=e.toDateTime);const s=+e.toDateTime-+e.fromDateTime;(typeof n.maxDuration>"u"||s>n.maxDuration)&&(n.maxDuration=s)}function Db(t,e,n){const s=t.eventText.match(Ym),r=e.indexOf(t.eventText);let i;if(s){const o=r+t.eventText.indexOf(s[0]),a=o+t.eventText.indexOf(s[1])+s[1].length;i=["X","x"].some(c=>s.includes(c));const l={type:$e.CheckboxItemIndicator,from:t.dateRangeInText.from+o,to:t.dateRangeInText.from+a,content:i};n.ranges.push(l)}return i}function kb(t,e,n,s,r,i){let o=mb(t,n,s,r,i);if(o||(o=db(t,n,s,r,i)),!o)return n;let a=n,l;const c=[];for(;l=e[++a],!(typeof l!="string"||l.match(Sc)||l.match(Ec)||l.match(Xo)||r.currentPath.length>1&&l.match(zm));){Cc(l,a,s,r),Wm(l,a,s,r);const y=Eb(l,a,s,r);y&&c.push(...y)}const u=e.slice(n,a),f={from:o.dateRangeInText.from,to:s[a],type:$e.Event},h=Db(o,t,r);u[0]=o.eventText.trim();const d=new nb(u,c,h),m=d.tags.length&&r.header[`)${d.tags[d.tags.length-1]}`];if(typeof m=="object"&&typeof m.timezone<"u"){const y=Qo(m.timezone,i);y&&(o.fromDateTime=o.fromDateTime.setZone(y,{keepLocalTime:!0}),o.toDateTime=o.toDateTime.setZone(y,{keepLocalTime:!0}))}const p=new sb(t,o,f,o.dateRangeInText,d,o.originalString);return p&&(r.push(new Go(p)),Ob(p,o,r),a-n>1&&(r.foldables[s[n]]={startIndex:s[n+1]-1,endIndex:s[a]-1,type:"event",foldStartIndex:s[n+1]-1,startLine:n})),a-1}const Vm=(t,e,n,s)=>{if(!n||!n.length){if(Array.isArray(e.value))return e.value.push(t),Array.isArray(t.value)?{path:[e.value.length-1,t.value.length],tail:s}:{path:[e.value.length-1],tail:t};throw new Error("Can't push onto event node")}else{const{tail:r,path:i}=Vm(t,e.value[n[0]],n.slice(1),s);return{path:[n[0],...i],tail:r}}},Ac=(t,e)=>{if(!e.length)return t;const n=t.value;if(!(!n.length||n.length-1<e[0]))return Ac(n[e[0]],e.slice(1))},qm=t=>t==null?void 0:t.value,Zt=t=>!Array.isArray(t.value);class Mb{constructor(){this.now=U.now(),this.events=new Go([]),this.ids={},this.paletteIndex=0,this.earliest=void 0,this.latest=void 0,this.maxDuration=void 0,this.currentPath=[],this.foldables={},this.foldableSections=[],this.ranges=[],this.header={dateFormat:To},this.timezoneStack=[new mi]}get timezone(){return this.timezoneStack[this.timezoneStack.length-1]}currentFoldableSection(){return this.foldableSections[this.foldableSections.length-1]}currentFoldableComment(){return this.foldables.comment}startFoldableSection(e){this.foldableSections.push(e)}startFoldable(e){this.foldables[e.type]=e}finishFoldableSection(e,n){const s=this.foldableSections.pop();s&&s.startLine<e-1&&(this.foldables[s.startIndex]={...s,endIndex:n})}finishFoldableComment(e){const n=this.currentFoldableComment();n&&(n.startLine<e-1&&(this.foldables[n.startIndex]={...n}),delete this.foldables.comment)}push(e){const{path:n,tail:s}=Vm(e,this.events,this.currentPath.slice(0,-1),this.tail);s&&(this.head||(this.head=s),this.tail=s),this.currentPath=n}endCurrentGroup(e,n,s){var r;if(this.currentPath.pop(),this.timezoneStack.length>1){const i=Ac(this.events,this.currentPath);if(i&&!Zt(i)){const o=((r=i.tags)==null?void 0:r.length)&&this.header[`)${i.tags[i.tags.length-1]}`];if(typeof o=="object"&&typeof o.timezone<"u"){const a=Qo(o.timezone,s);a&&this.timezone.equals(a)&&this.timezoneStack.pop()}}}this.finishFoldableSection(n.line,e)}toTimeline(e,n,s){const r=this.maxDuration?this.maxDuration/1e3/60/60/24:this.now.diff(this.now.minus({years:1})).as("days");return{events:this.events,head:this.head,tail:this.tail,ids:this.ids,ranges:this.ranges,foldables:this.foldables,header:this.header,metadata:{earliestTime:(this.earliest||this.now.minus({years:5})).toISO(),latestTime:(this.latest||this.now.plus({years:5})).toISO(),maxDurationDays:r,startLineIndex:0,startStringIndex:e[0],endLineIndex:n,preferredInterpolationFormat:this.preferredInterpolationFormat,endStringIndex:s,...this.title?{title:this.title}:{},...this.description?{description:this.description}:{}}}}}function Cb(t,e,n,s,r){return s.currentPath.length>1&&t.match(zm)?(s.ranges.push({from:n[e],to:n[e]+t.length,type:$e.Section}),s.endCurrentGroup(n[e]+t.length,{line:e,index:t.length},r),!0):!1}function Ab(t,e,n,s,r){var o;const i=t.match(Xo);if(i){const a={from:n[e],to:n[e]+i[0].length,type:$e.Section};s.ranges.push(a);const l=fb(t,i,a),c=((o=l.tags)==null?void 0:o.length)&&s.header[`)${l.tags[l.tags.length-1]}`];if(typeof c=="object"&&typeof c.timezone<"u"){const u=Qo(c.timezone,r);u&&s.timezoneStack.push(u)}return s.push(l),s.startFoldableSection({type:$e.Section,startLine:e,startIndex:n[e],endIndex:n[e]+t.length,foldStartIndex:n[e]+t.length}),!0}return!1}function Nb(t,e,n,s,r){return[Cc,Wm,Ab,Cb].some(i=>i(t,e,n,s,r))}const Nc=Symbol.for("yaml.alias"),Dl=Symbol.for("yaml.document"),Qn=Symbol.for("yaml.map"),Km=Symbol.for("yaml.pair"),Nn=Symbol.for("yaml.scalar"),_r=Symbol.for("yaml.seq"),Xt=Symbol.for("yaml.node.type"),xs=t=>!!t&&typeof t=="object"&&t[Xt]===Nc,br=t=>!!t&&typeof t=="object"&&t[Xt]===Dl,Er=t=>!!t&&typeof t=="object"&&t[Xt]===Qn,Xe=t=>!!t&&typeof t=="object"&&t[Xt]===Km,Ve=t=>!!t&&typeof t=="object"&&t[Xt]===Nn,Sr=t=>!!t&&typeof t=="object"&&t[Xt]===_r;function Qe(t){if(t&&typeof t=="object")switch(t[Xt]){case Qn:case _r:return!0}return!1}function rt(t){if(t&&typeof t=="object")switch(t[Xt]){case Nc:case Qn:case Nn:case _r:return!0}return!1}const xb=t=>(Ve(t)||Qe(t))&&!!t.anchor,xt=Symbol("break visit"),Zm=Symbol("skip children"),wn=Symbol("remove node");function ss(t,e){const n=Gm(e);br(t)?Ws(null,t.contents,n,Object.freeze([t]))===wn&&(t.contents=null):Ws(null,t,n,Object.freeze([]))}ss.BREAK=xt;ss.SKIP=Zm;ss.REMOVE=wn;function Ws(t,e,n,s){const r=Xm(t,e,n,s);if(rt(r)||Xe(r))return Jm(t,s,r),Ws(t,r,n,s);if(typeof r!="symbol"){if(Qe(e)){s=Object.freeze(s.concat(e));for(let i=0;i<e.items.length;++i){const o=Ws(i,e.items[i],n,s);if(typeof o=="number")i=o-1;else{if(o===xt)return xt;o===wn&&(e.items.splice(i,1),i-=1)}}}else if(Xe(e)){s=Object.freeze(s.concat(e));const i=Ws("key",e.key,n,s);if(i===xt)return xt;i===wn&&(e.key=null);const o=Ws("value",e.value,n,s);if(o===xt)return xt;o===wn&&(e.value=null)}}return r}async function ea(t,e){const n=Gm(e);br(t)?await Vs(null,t.contents,n,Object.freeze([t]))===wn&&(t.contents=null):await Vs(null,t,n,Object.freeze([]))}ea.BREAK=xt;ea.SKIP=Zm;ea.REMOVE=wn;async function Vs(t,e,n,s){const r=await Xm(t,e,n,s);if(rt(r)||Xe(r))return Jm(t,s,r),Vs(t,r,n,s);if(typeof r!="symbol"){if(Qe(e)){s=Object.freeze(s.concat(e));for(let i=0;i<e.items.length;++i){const o=await Vs(i,e.items[i],n,s);if(typeof o=="number")i=o-1;else{if(o===xt)return xt;o===wn&&(e.items.splice(i,1),i-=1)}}}else if(Xe(e)){s=Object.freeze(s.concat(e));const i=await Vs("key",e.key,n,s);if(i===xt)return xt;i===wn&&(e.key=null);const o=await Vs("value",e.value,n,s);if(o===xt)return xt;o===wn&&(e.value=null)}}return r}function Gm(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function Xm(t,e,n,s){var r,i,o,a,l;if(typeof n=="function")return n(t,e,s);if(Er(e))return(r=n.Map)==null?void 0:r.call(n,t,e,s);if(Sr(e))return(i=n.Seq)==null?void 0:i.call(n,t,e,s);if(Xe(e))return(o=n.Pair)==null?void 0:o.call(n,t,e,s);if(Ve(e))return(a=n.Scalar)==null?void 0:a.call(n,t,e,s);if(xs(e))return(l=n.Alias)==null?void 0:l.call(n,t,e,s)}function Jm(t,e,n){const s=e[e.length-1];if(Qe(s))s.items[t]=n;else if(Xe(s))t==="key"?s.key=n:s.value=n;else if(br(s))s.contents=n;else{const r=xs(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}const Lb={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Rb=t=>t.replace(/[!,[\]{}]/g,e=>Lb[e]);class kt{constructor(e,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},kt.defaultYaml,e),this.tags=Object.assign({},kt.defaultTags,n)}clone(){const e=new kt(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new kt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:kt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},kt.defaultTags);break}return e}add(e,n){this.atNextDocument&&(this.yaml={explicit:kt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},kt.defaultTags),this.atNextDocument=!1);const s=e.trim().split(/[ \t]+/),r=s.shift();switch(r){case"%TAG":{if(s.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[i,o]=s;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=s;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const o=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,o),!1}}default:return n(0,`Unknown directive ${r}`,!0),!1}}tagName(e,n){if(e==="!")return"!";if(e[0]!=="!")return n(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,s,r]=e.match(/^(.*!)([^!]*)$/);r||n(`The ${e} tag has no suffix`);const i=this.tags[s];return i?i+decodeURIComponent(r):s==="!"?e:(n(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[n,s]of Object.entries(this.tags))if(e.startsWith(s))return n+Rb(e.substring(s.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let r;if(e&&s.length>0&&rt(e.contents)){const i={};ss(e.contents,(o,a)=>{rt(a)&&a.tag&&(i[a.tag]=!0)}),r=Object.keys(i)}else r=[];for(const[i,o]of s)i==="!!"&&o==="tag:yaml.org,2002:"||(!e||r.some(a=>a.startsWith(o)))&&n.push(`%TAG ${i} ${o}`);return n.join(`
`)}}kt.defaultYaml={explicit:!1,version:"1.2"};kt.defaultTags={"!!":"tag:yaml.org,2002:"};function Qm(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(n)}return!0}function ep(t){const e=new Set;return ss(t,{Value(n,s){s.anchor&&e.add(s.anchor)}}),e}function tp(t,e){for(let n=1;;++n){const s=`${t}${n}`;if(!e.has(s))return s}}function Pb(t,e){const n=[],s=new Map;let r=null;return{onAnchor:i=>{n.push(i),r||(r=ep(t));const o=tp(e,r);return r.add(o),o},setAnchors:()=>{for(const i of n){const o=s.get(i);if(typeof o=="object"&&o.anchor&&(Ve(o.node)||Qe(o.node)))o.node.anchor=o.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:s}}function qs(t,e,n,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let r=0,i=s.length;r<i;++r){const o=s[r],a=qs(t,s,String(r),o);a===void 0?delete s[r]:a!==o&&(s[r]=a)}else if(s instanceof Map)for(const r of Array.from(s.keys())){const i=s.get(r),o=qs(t,s,r,i);o===void 0?s.delete(r):o!==i&&s.set(r,o)}else if(s instanceof Set)for(const r of Array.from(s)){const i=qs(t,s,r,r);i===void 0?s.delete(r):i!==r&&(s.delete(r),s.add(i))}else for(const[r,i]of Object.entries(s)){const o=qs(t,s,r,i);o===void 0?delete s[r]:o!==i&&(s[r]=o)}return t.call(e,n,s)}function Gt(t,e,n){if(Array.isArray(t))return t.map((s,r)=>Gt(s,String(r),n));if(t&&typeof t.toJSON=="function"){if(!n||!xb(t))return t.toJSON(e,n);const s={aliasCount:0,count:1,res:void 0};n.anchors.set(t,s),n.onCreate=i=>{s.res=i,delete n.onCreate};const r=t.toJSON(e,n);return n.onCreate&&n.onCreate(r),r}return typeof t=="bigint"&&!(n!=null&&n.keep)?Number(t):t}class xc{constructor(e){Object.defineProperty(this,Xt,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:n,maxAliasCount:s,onAnchor:r,reviver:i}={}){if(!br(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},a=Gt(this,"",o);if(typeof r=="function")for(const{count:l,res:c}of o.anchors.values())r(c,l);return typeof i=="function"?qs(i,{"":a},"",a):a}}class ta extends xc{constructor(e){super(Nc),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let n;return ss(e,{Node:(s,r)=>{if(r===this)return ss.BREAK;r.anchor===this.source&&(n=r)}}),n}toJSON(e,n){if(!n)return{source:this.source};const{anchors:s,doc:r,maxAliasCount:i}=n,o=this.resolve(r);if(!o){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=s.get(o);if(a||(Gt(o,null,n),a=s.get(o)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=no(r,o,s)),a.count*a.aliasCount>i)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,n,s){const r=`*${this.source}`;if(e){if(Qm(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(e.implicitKey)return`${r} `}return r}}function no(t,e,n){if(xs(e)){const s=e.resolve(t),r=n&&s&&n.get(s);return r?r.count*r.aliasCount:0}else if(Qe(e)){let s=0;for(const r of e.items){const i=no(t,r,n);i>s&&(s=i)}return s}else if(Xe(e)){const s=no(t,e.key,n),r=no(t,e.value,n);return Math.max(s,r)}return 1}const np=t=>!t||typeof t!="function"&&typeof t!="object";class Ee extends xc{constructor(e){super(Nn),this.value=e}toJSON(e,n){return n!=null&&n.keep?this.value:Gt(this.value,e,n)}toString(){return String(this.value)}}Ee.BLOCK_FOLDED="BLOCK_FOLDED";Ee.BLOCK_LITERAL="BLOCK_LITERAL";Ee.PLAIN="PLAIN";Ee.QUOTE_DOUBLE="QUOTE_DOUBLE";Ee.QUOTE_SINGLE="QUOTE_SINGLE";const $b="tag:yaml.org,2002:";function Fb(t,e,n){if(e){const s=n.filter(i=>i.tag===e),r=s.find(i=>!i.format)??s[0];if(!r)throw new Error(`Tag ${e} not found`);return r}return n.find(s=>{var r;return((r=s.identify)==null?void 0:r.call(s,t))&&!s.format})}function li(t,e,n){var f,h,d;if(br(t)&&(t=t.contents),rt(t))return t;if(Xe(t)){const m=(h=(f=n.schema[Qn]).createNode)==null?void 0:h.call(f,n.schema,null,n);return m.items.push(t),m}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:s,onAnchor:r,onTagObj:i,schema:o,sourceObjects:a}=n;let l;if(s&&t&&typeof t=="object"){if(l=a.get(t),l)return l.anchor||(l.anchor=r(t)),new ta(l.anchor);l={anchor:null,node:null},a.set(t,l)}e!=null&&e.startsWith("!!")&&(e=$b+e.slice(2));let c=Fb(t,e,o.tags);if(!c){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const m=new Ee(t);return l&&(l.node=m),m}c=t instanceof Map?o[Qn]:Symbol.iterator in Object(t)?o[_r]:o[Qn]}i&&(i(c),delete n.onTagObj);const u=c!=null&&c.createNode?c.createNode(n.schema,t,n):typeof((d=c==null?void 0:c.nodeClass)==null?void 0:d.from)=="function"?c.nodeClass.from(n.schema,t,n):new Ee(t);return e?u.tag=e:c.default||(u.tag=c.tag),l&&(l.node=u),u}function So(t,e,n){let s=n;for(let r=e.length-1;r>=0;--r){const i=e[r];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const o=[];o[i]=s,s=o}else s=new Map([[i,s]])}return li(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}const jr=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done;class na extends xc{constructor(e,n){super(e),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(e){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(n.schema=e),n.items=n.items.map(s=>rt(s)||Xe(s)?s.clone(e):s),this.range&&(n.range=this.range.slice()),n}addIn(e,n){if(jr(e))this.add(n);else{const[s,...r]=e,i=this.get(s,!0);if(Qe(i))i.addIn(r,n);else if(i===void 0&&this.schema)this.set(s,So(this.schema,r,n));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`)}}deleteIn(e){const[n,...s]=e;if(s.length===0)return this.delete(n);const r=this.get(n,!0);if(Qe(r))return r.deleteIn(s);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}getIn(e,n){const[s,...r]=e,i=this.get(s,!0);return r.length===0?!n&&Ve(i)?i.value:i:Qe(i)?i.getIn(r,n):void 0}hasAllNullValues(e){return this.items.every(n=>{if(!Xe(n))return!1;const s=n.value;return s==null||e&&Ve(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){const[n,...s]=e;if(s.length===0)return this.has(n);const r=this.get(n,!0);return Qe(r)?r.hasIn(s):!1}setIn(e,n){const[s,...r]=e;if(r.length===0)this.set(s,n);else{const i=this.get(s,!0);if(Qe(i))i.setIn(r,n);else if(i===void 0&&this.schema)this.set(s,So(this.schema,r,n));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`)}}}na.maxFlowStringSingleLineLength=60;const zb=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function Mn(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}const Zn=(t,e,n)=>t.endsWith(`
`)?Mn(n,e):n.includes(`
`)?`
`+Mn(n,e):(t.endsWith(" ")?"":" ")+n,sp="flow",kl="block",so="quoted";function sa(t,e,n="flow",{indentAtStart:s,lineWidth:r=80,minContentWidth:i=20,onFold:o,onOverflow:a}={}){if(!r||r<0)return t;const l=Math.max(1+i,1+r-e.length);if(t.length<=l)return t;const c=[],u={};let f=r-e.length;typeof s=="number"&&(s>r-Math.max(2,i)?c.push(0):f=r-s);let h,d,m=!1,p=-1,y=-1,g=-1;n===kl&&(p=$f(t,p),p!==-1&&(f=p+l));for(let I;I=t[p+=1];){if(n===so&&I==="\\"){switch(y=p,t[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}g=p}if(I===`
`)n===kl&&(p=$f(t,p)),f=p+l,h=void 0;else{if(I===" "&&d&&d!==" "&&d!==`
`&&d!=="	"){const w=t[p+1];w&&w!==" "&&w!==`
`&&w!=="	"&&(h=p)}if(p>=f)if(h)c.push(h),f=h+l,h=void 0;else if(n===so){for(;d===" "||d==="	";)d=I,I=t[p+=1],m=!0;const w=p>g+1?p-2:y-1;if(u[w])return t;c.push(w),u[w]=!0,f=w+l,h=void 0}else m=!0}d=I}if(m&&a&&a(),c.length===0)return t;o&&o();let T=t.slice(0,c[0]);for(let I=0;I<c.length;++I){const w=c[I],b=c[I+1]||t.length;w===0?T=`
${e}${t.slice(0,b)}`:(n===so&&u[w]&&(T+=`${t[w]}\\`),T+=`
${e}${t.slice(w+1,b)}`)}return T}function $f(t,e){let n=t[e+1];for(;n===" "||n==="	";){do n=t[e+=1];while(n&&n!==`
`);n=t[e+1]}return e}const ra=(t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),ia=t=>/^(%|---|\.\.\.)/m.test(t);function Yb(t,e,n){if(!e||e<0)return!1;const s=e-n,r=t.length;if(r<=s)return!1;for(let i=0,o=0;i<r;++i)if(t[i]===`
`){if(i-o>s)return!0;if(o=i+1,r-o<=s)return!1}return!0}function Xr(t,e){const n=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return n;const{implicitKey:s}=e,r=e.options.doubleQuotedMinMultiLineLength,i=e.indent||(ia(t)?"  ":"");let o="",a=0;for(let l=0,c=n[l];c;c=n[++l])if(c===" "&&n[l+1]==="\\"&&n[l+2]==="n"&&(o+=n.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(n[l+1]){case"u":{o+=n.slice(a,l);const u=n.substr(l+2,4);switch(u){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:u.substr(0,2)==="00"?o+="\\x"+u.substr(2):o+=n.substr(l,6)}l+=5,a=l+1}break;case"n":if(s||n[l+2]==='"'||n.length<r)l+=1;else{for(o+=n.slice(a,l)+`

`;n[l+2]==="\\"&&n[l+3]==="n"&&n[l+4]!=='"';)o+=`
`,l+=2;o+=i,n[l+2]===" "&&(o+="\\"),l+=1,a=l+1}break;default:l+=1}return o=a?o+n.slice(a):n,s?o:sa(o,i,so,ra(e,!1))}function Ml(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
`)||/[ \t]\n|\n[ \t]/.test(t))return Xr(t,e);const n=e.indent||(ia(t)?"  ":""),s="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
${n}`)+"'";return e.implicitKey?s:sa(s,n,sp,ra(e,!1))}function Ks(t,e){const{singleQuote:n}=e.options;let s;if(n===!1)s=Xr;else{const r=t.includes('"'),i=t.includes("'");r&&!i?s=Ml:i&&!r?s=Xr:s=n?Ml:Xr}return s(t,e)}let Cl;try{Cl=new RegExp(`(^|(?<!
))
+(?!
|$)`,"g")}catch{Cl=/\n+(?!\n|$)/g}function ro({comment:t,type:e,value:n},s,r,i){const{blockQuote:o,commentString:a,lineWidth:l}=s.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Ks(n,s);const c=s.indent||(s.forceBlockIndent||ia(n)?"  ":""),u=o==="literal"?!0:o==="folded"||e===Ee.BLOCK_FOLDED?!1:e===Ee.BLOCK_LITERAL?!0:!Yb(n,l,c.length);if(!n)return u?`|
`:`>
`;let f,h;for(h=n.length;h>0;--h){const S=n[h-1];if(S!==`
`&&S!=="	"&&S!==" ")break}let d=n.substring(h);const m=d.indexOf(`
`);m===-1?f="-":n===d||m!==d.length-1?(f="+",i&&i()):f="",d&&(n=n.slice(0,-d.length),d[d.length-1]===`
`&&(d=d.slice(0,-1)),d=d.replace(Cl,`$&${c}`));let p=!1,y,g=-1;for(y=0;y<n.length;++y){const S=n[y];if(S===" ")p=!0;else if(S===`
`)g=y;else break}let T=n.substring(0,g<y?g+1:y);T&&(n=n.substring(T.length),T=T.replace(/\n+/g,`$&${c}`));let w=(u?"|":">")+(p?c?"2":"1":"")+f;if(t&&(w+=" "+a(t.replace(/ ?[\r\n]+/g," ")),r&&r()),u)return n=n.replace(/\n+/g,`$&${c}`),`${w}
${c}${T}${n}${d}`;n=n.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);const b=sa(`${T}${n}${d}`,c,kl,ra(s,!0));return`${w}
${c}${b}`}function Ub(t,e,n,s){const{type:r,value:i}=t,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=e;if(a&&i.includes(`
`)||u&&/[[\]{},]/.test(i))return Ks(i,e);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||u||!i.includes(`
`)?Ks(i,e):ro(t,e,n,s);if(!a&&!u&&r!==Ee.PLAIN&&i.includes(`
`))return ro(t,e,n,s);if(ia(i)){if(l==="")return e.forceBlockIndent=!0,ro(t,e,n,s);if(a&&l===c)return Ks(i,e)}const f=i.replace(/\n+/g,`$&
${l}`);if(o){const h=p=>{var y;return p.default&&p.tag!=="tag:yaml.org,2002:str"&&((y=p.test)==null?void 0:y.test(f))},{compat:d,tags:m}=e.doc.schema;if(m.some(h)||d!=null&&d.some(h))return Ks(i,e)}return a?f:sa(f,l,sp,ra(e,!1))}function vi(t,e,n,s){const{implicitKey:r,inFlow:i}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:a}=t;a!==Ee.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=Ee.QUOTE_DOUBLE);const l=u=>{switch(u){case Ee.BLOCK_FOLDED:case Ee.BLOCK_LITERAL:return r||i?Ks(o.value,e):ro(o,e,n,s);case Ee.QUOTE_DOUBLE:return Xr(o.value,e);case Ee.QUOTE_SINGLE:return Ml(o.value,e);case Ee.PLAIN:return Ub(o,e,n,s);default:return null}};let c=l(a);if(c===null){const{defaultKeyType:u,defaultStringType:f}=e.options,h=r&&u||f;if(c=l(h),c===null)throw new Error(`Unsupported default string type ${h}`)}return c}function rp(t,e){const n=Object.assign({blockQuote:!0,commentString:zb,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let s;switch(n.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:t,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):"  ",inFlow:s,options:n}}function Bb(t,e){var r;if(e.tag){const i=t.filter(o=>o.tag===e.tag);if(i.length>0)return i.find(o=>o.format===e.format)??i[0]}let n,s;if(Ve(e)){s=e.value;const i=t.filter(o=>{var a;return(a=o.identify)==null?void 0:a.call(o,s)});n=i.find(o=>o.format===e.format)??i.find(o=>!o.format)}else s=e,n=t.find(i=>i.nodeClass&&s instanceof i.nodeClass);if(!n){const i=((r=s==null?void 0:s.constructor)==null?void 0:r.name)??typeof s;throw new Error(`Tag not resolved for ${i} value`)}return n}function Hb(t,e,{anchors:n,doc:s}){if(!s.directives)return"";const r=[],i=(Ve(t)||Qe(t))&&t.anchor;i&&Qm(i)&&(n.add(i),r.push(`&${i}`));const o=t.tag?t.tag:e.default?null:e.tag;return o&&r.push(s.directives.tagString(o)),r.join(" ")}function cr(t,e,n,s){var l;if(Xe(t))return t.toString(e,n,s);if(xs(t)){if(e.doc.directives)return t.toString(e);if((l=e.resolvedAliases)!=null&&l.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let r;const i=rt(t)?t:e.doc.createNode(t,{onTagObj:c=>r=c});r||(r=Bb(e.doc.schema.tags,i));const o=Hb(i,r,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const a=typeof r.stringify=="function"?r.stringify(i,e,n,s):Ve(i)?vi(i,e,n,s):i.toString(e,n,s);return o?Ve(i)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
${e.indent}${a}`:a}function jb({key:t,value:e},n,s,r){const{allNullValues:i,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:f}}=n;let h=rt(t)&&t.comment||null;if(f){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(Qe(t)){const C="With simple keys, collection cannot be used as a key value";throw new Error(C)}}let d=!f&&(!t||h&&e==null&&!n.inFlow||Qe(t)||(Ve(t)?t.type===Ee.BLOCK_FOLDED||t.type===Ee.BLOCK_LITERAL:typeof t=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!d&&(f||!i),indent:a+l});let m=!1,p=!1,y=cr(t,n,()=>m=!0,()=>p=!0);if(!d&&!n.inFlow&&y.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(n.inFlow){if(i||e==null)return m&&s&&s(),y===""?"?":d?`? ${y}`:y}else if(i&&!f||e==null&&d)return y=`? ${y}`,h&&!m?y+=Zn(y,n.indent,c(h)):p&&r&&r(),y;m&&(h=null),d?(h&&(y+=Zn(y,n.indent,c(h))),y=`? ${y}
${a}:`):(y=`${y}:`,h&&(y+=Zn(y,n.indent,c(h))));let g,T,I;rt(e)?(g=!!e.spaceBefore,T=e.commentBefore,I=e.comment):(g=!1,T=null,I=null,e&&typeof e=="object"&&(e=o.createNode(e))),n.implicitKey=!1,!d&&!h&&Ve(e)&&(n.indentAtStart=y.length+1),p=!1,!u&&l.length>=2&&!n.inFlow&&!d&&Sr(e)&&!e.flow&&!e.tag&&!e.anchor&&(n.indent=n.indent.substring(2));let w=!1;const b=cr(e,n,()=>w=!0,()=>p=!0);let S=" ";if(h||g||T){if(S=g?`
`:"",T){const C=c(T);S+=`
${Mn(C,n.indent)}`}b===""&&!n.inFlow?S===`
`&&(S=`

`):S+=`
${n.indent}`}else if(!d&&Qe(e)){const C=b[0],D=b.indexOf(`
`),A=D!==-1,z=n.inFlow??e.flow??e.items.length===0;if(A||!z){let X=!1;if(A&&(C==="&"||C==="!")){let L=b.indexOf(" ");C==="&"&&L!==-1&&L<D&&b[L+1]==="!"&&(L=b.indexOf(" ",L+1)),(L===-1||D<L)&&(X=!0)}X||(S=`
${n.indent}`)}}else(b===""||b[0]===`
`)&&(S="");return y+=S+b,n.inFlow?w&&s&&s():I&&!w?y+=Zn(y,n.indent,c(I)):p&&r&&r(),y}function ip(t,e){(t==="debug"||t==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e))}const Ff="<<";function op(t,e,{key:n,value:s}){if(t!=null&&t.doc.schema.merge&&Wb(n))if(s=xs(s)?s.resolve(t.doc):s,Sr(s))for(const r of s.items)ja(t,e,r);else if(Array.isArray(s))for(const r of s)ja(t,e,r);else ja(t,e,s);else{const r=Gt(n,"",t);if(e instanceof Map)e.set(r,Gt(s,r,t));else if(e instanceof Set)e.add(r);else{const i=Vb(n,r,t),o=Gt(s,i,t);i in e?Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[i]=o}}return e}const Wb=t=>t===Ff||Ve(t)&&t.value===Ff&&(!t.type||t.type===Ee.PLAIN);function ja(t,e,n){const s=t&&xs(n)?n.resolve(t.doc):n;if(!Er(s))throw new Error("Merge sources must be maps or map aliases");const r=s.toJSON(null,t,Map);for(const[i,o]of r)e instanceof Map?e.has(i)||e.set(i,o):e instanceof Set?e.add(i):Object.prototype.hasOwnProperty.call(e,i)||Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function Vb(t,e,n){if(e===null)return"";if(typeof e!="object")return String(e);if(rt(t)&&(n!=null&&n.doc)){const s=rp(n.doc,{});s.anchors=new Set;for(const i of n.anchors.keys())s.anchors.add(i.anchor);s.inFlow=!0,s.inStringifyKey=!0;const r=t.toString(s);if(!n.mapKeyWarned){let i=JSON.stringify(r);i.length>40&&(i=i.substring(0,36)+'..."'),ip(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(e)}function Lc(t,e,n){const s=li(t,void 0,n),r=li(e,void 0,n);return new St(s,r)}class St{constructor(e,n=null){Object.defineProperty(this,Xt,{value:Km}),this.key=e,this.value=n}clone(e){let{key:n,value:s}=this;return rt(n)&&(n=n.clone(e)),rt(s)&&(s=s.clone(e)),new St(n,s)}toJSON(e,n){const s=n!=null&&n.mapAsMap?new Map:{};return op(n,s,this)}toString(e,n,s){return e!=null&&e.doc?jb(this,e,n,s):JSON.stringify(this)}}function ap(t,e,n){return(e.inFlow??t.flow?Kb:qb)(t,e,n)}function qb({comment:t,items:e},n,{blockItemPrefix:s,flowChars:r,itemIndent:i,onChompKeep:o,onComment:a}){const{indent:l,options:{commentString:c}}=n,u=Object.assign({},n,{indent:i,type:null});let f=!1;const h=[];for(let m=0;m<e.length;++m){const p=e[m];let y=null;if(rt(p))!f&&p.spaceBefore&&h.push(""),Io(n,h,p.commentBefore,f),p.comment&&(y=p.comment);else if(Xe(p)){const T=rt(p.key)?p.key:null;T&&(!f&&T.spaceBefore&&h.push(""),Io(n,h,T.commentBefore,f))}f=!1;let g=cr(p,u,()=>y=null,()=>f=!0);y&&(g+=Zn(g,i,c(y))),f&&y&&(f=!1),h.push(s+g)}let d;if(h.length===0)d=r.start+r.end;else{d=h[0];for(let m=1;m<h.length;++m){const p=h[m];d+=p?`
${l}${p}`:`
`}}return t?(d+=`
`+Mn(c(t),l),a&&a()):f&&o&&o(),d}function Kb({comment:t,items:e},n,{flowChars:s,itemIndent:r,onComment:i}){const{indent:o,indentStep:a,flowCollectionPadding:l,options:{commentString:c}}=n;r+=a;const u=Object.assign({},n,{indent:r,inFlow:!0,type:null});let f=!1,h=0;const d=[];for(let g=0;g<e.length;++g){const T=e[g];let I=null;if(rt(T))T.spaceBefore&&d.push(""),Io(n,d,T.commentBefore,!1),T.comment&&(I=T.comment);else if(Xe(T)){const b=rt(T.key)?T.key:null;b&&(b.spaceBefore&&d.push(""),Io(n,d,b.commentBefore,!1),b.comment&&(f=!0));const S=rt(T.value)?T.value:null;S?(S.comment&&(I=S.comment),S.commentBefore&&(f=!0)):T.value==null&&(b!=null&&b.comment)&&(I=b.comment)}I&&(f=!0);let w=cr(T,u,()=>I=null);g<e.length-1&&(w+=","),I&&(w+=Zn(w,r,c(I))),!f&&(d.length>h||w.includes(`
`))&&(f=!0),d.push(w),h=d.length}let m;const{start:p,end:y}=s;if(d.length===0)m=p+y;else if(f||(f=d.reduce((T,I)=>T+I.length+2,2)>na.maxFlowStringSingleLineLength),f){m=p;for(const g of d)m+=g?`
${a}${o}${g}`:`
`;m+=`
${o}${y}`}else m=`${p}${l}${d.join(" ")}${l}${y}`;return t&&(m+=Zn(m,o,c(t)),i&&i()),m}function Io({indent:t,options:{commentString:e}},n,s,r){if(s&&r&&(s=s.replace(/^\n+/,"")),s){const i=Mn(e(s),t);n.push(i.trimStart())}}function _s(t,e){const n=Ve(e)?e.value:e;for(const s of t)if(Xe(s)&&(s.key===e||s.key===n||Ve(s.key)&&s.key.value===n))return s}class $t extends na{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Qn,e),this.items=[]}static from(e,n,s){const{keepUndefined:r,replacer:i}=s,o=new this(e),a=(l,c)=>{if(typeof i=="function")c=i.call(n,l,c);else if(Array.isArray(i)&&!i.includes(l))return;(c!==void 0||r)&&o.items.push(Lc(l,c,s))};if(n instanceof Map)for(const[l,c]of n)a(l,c);else if(n&&typeof n=="object")for(const l of Object.keys(n))a(l,n[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,n){var o;let s;Xe(e)?s=e:!e||typeof e!="object"||!("key"in e)?s=new St(e,e==null?void 0:e.value):s=new St(e.key,e.value);const r=_s(this.items,s.key),i=(o=this.schema)==null?void 0:o.sortMapEntries;if(r){if(!n)throw new Error(`Key ${s.key} already set`);Ve(r.value)&&np(s.value)?r.value.value=s.value:r.value=s.value}else if(i){const a=this.items.findIndex(l=>i(s,l)<0);a===-1?this.items.push(s):this.items.splice(a,0,s)}else this.items.push(s)}delete(e){const n=_s(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){const s=_s(this.items,e),r=s==null?void 0:s.value;return(!n&&Ve(r)?r.value:r)??void 0}has(e){return!!_s(this.items,e)}set(e,n){this.add(new St(e,n),!0)}toJSON(e,n,s){const r=s?new s:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(r);for(const i of this.items)op(n,r,i);return r}toString(e,n,s){if(!e)return JSON.stringify(this);for(const r of this.items)if(!Xe(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ap(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:n})}}const Ir={collection:"map",default:!0,nodeClass:$t,tag:"tag:yaml.org,2002:map",resolve(t,e){return Er(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,n)=>$t.from(t,e,n)};class rs extends na{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(_r,e),this.items=[]}add(e){this.items.push(e)}delete(e){const n=Hi(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){const s=Hi(e);if(typeof s!="number")return;const r=this.items[s];return!n&&Ve(r)?r.value:r}has(e){const n=Hi(e);return typeof n=="number"&&n<this.items.length}set(e,n){const s=Hi(e);if(typeof s!="number")throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[s];Ve(r)&&np(n)?r.value=n:this.items[s]=n}toJSON(e,n){const s=[];n!=null&&n.onCreate&&n.onCreate(s);let r=0;for(const i of this.items)s.push(Gt(i,String(r++),n));return s}toString(e,n,s){return e?ap(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+"  ",onChompKeep:s,onComment:n}):JSON.stringify(this)}static from(e,n,s){const{replacer:r}=s,i=new this(e);if(n&&Symbol.iterator in Object(n)){let o=0;for(let a of n){if(typeof r=="function"){const l=n instanceof Set?a:String(o++);a=r.call(n,l,a)}i.items.push(li(a,void 0,s))}}return i}}function Hi(t){let e=Ve(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const Or={collection:"seq",default:!0,nodeClass:rs,tag:"tag:yaml.org,2002:seq",resolve(t,e){return Sr(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,n)=>rs.from(t,e,n)},oa={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,n,s){return e=Object.assign({actualString:!0},e),vi(t,e,n,s)}},aa={identify:t=>t==null,createNode:()=>new Ee(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ee(null),stringify:({source:t},e)=>typeof t=="string"&&aa.test.test(t)?t:e.options.nullStr},Rc={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new Ee(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},n){if(t&&Rc.test.test(t)){const s=t[0]==="t"||t[0]==="T";if(e===s)return t}return e?n.options.trueStr:n.options.falseStr}};function dn({format:t,minFractionDigits:e,tag:n,value:s}){if(typeof s=="bigint")return String(s);const r=typeof s=="number"?s:Number(s);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=JSON.stringify(s);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let o=i.indexOf(".");o<0&&(o=i.length,i+=".");let a=e-(i.length-o-1);for(;a-- >0;)i+="0"}return i}const lp={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:dn},cp={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():dn(t)}},up={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new Ee(parseFloat(t)),n=t.indexOf(".");return n!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-n-1),e},stringify:dn},la=t=>typeof t=="bigint"||Number.isInteger(t),Pc=(t,e,n,{intAsBigInt:s})=>s?BigInt(t):parseInt(t.substring(e),n);function fp(t,e,n){const{value:s}=t;return la(s)&&s>=0?n+s.toString(e):dn(t)}const hp={identify:t=>la(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,n)=>Pc(t,2,8,n),stringify:t=>fp(t,8,"0o")},dp={identify:la,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,n)=>Pc(t,0,10,n),stringify:dn},mp={identify:t=>la(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,n)=>Pc(t,2,16,n),stringify:t=>fp(t,16,"0x")},Zb=[Ir,Or,oa,aa,Rc,hp,dp,mp,lp,cp,up];function zf(t){return typeof t=="bigint"||Number.isInteger(t)}const ji=({value:t})=>JSON.stringify(t),Gb=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:ji},{identify:t=>t==null,createNode:()=>new Ee(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ji},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:ji},{identify:zf,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:n})=>n?BigInt(t):parseInt(t,10),stringify:({value:t})=>zf(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:ji}],Xb={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},Jb=[Ir,Or].concat(Gb,Xb),$c={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof Buffer=="function")return Buffer.from(t,"base64");if(typeof atob=="function"){const n=atob(t.replace(/[\n\r]/g,"")),s=new Uint8Array(n.length);for(let r=0;r<n.length;++r)s[r]=n.charCodeAt(r);return s}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:n},s,r,i){const o=n;let a;if(typeof Buffer=="function")a=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=Ee.BLOCK_LITERAL),e!==Ee.QUOTE_DOUBLE){const l=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),c=Math.ceil(a.length/l),u=new Array(c);for(let f=0,h=0;f<c;++f,h+=l)u[f]=a.substr(h,l);a=u.join(e===Ee.BLOCK_LITERAL?`
`:" ")}return vi({comment:t,type:e,value:a},s,r,i)}};function pp(t,e){if(Sr(t))for(let n=0;n<t.items.length;++n){let s=t.items[n];if(!Xe(s)){if(Er(s)){s.items.length>1&&e("Each pair must have its own sequence indicator");const r=s.items[0]||new St(new Ee(null));if(s.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${s.commentBefore}
${r.key.commentBefore}`:s.commentBefore),s.comment){const i=r.value??r.key;i.comment=i.comment?`${s.comment}
${i.comment}`:s.comment}s=r}t.items[n]=Xe(s)?s:new St(s)}}else e("Expected a sequence for this tag");return t}function gp(t,e,n){const{replacer:s}=n,r=new rs(t);r.tag="tag:yaml.org,2002:pairs";let i=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof s=="function"&&(o=s.call(e,String(i++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;r.items.push(Lc(a,l,n))}return r}const Fc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:pp,createNode:gp};class tr extends rs{constructor(){super(),this.add=$t.prototype.add.bind(this),this.delete=$t.prototype.delete.bind(this),this.get=$t.prototype.get.bind(this),this.has=$t.prototype.has.bind(this),this.set=$t.prototype.set.bind(this),this.tag=tr.tag}toJSON(e,n){if(!n)return super.toJSON(e);const s=new Map;n!=null&&n.onCreate&&n.onCreate(s);for(const r of this.items){let i,o;if(Xe(r)?(i=Gt(r.key,"",n),o=Gt(r.value,i,n)):i=Gt(r,"",n),s.has(i))throw new Error("Ordered maps must not include duplicate keys");s.set(i,o)}return s}static from(e,n,s){const r=gp(e,n,s),i=new this;return i.items=r.items,i}}tr.tag="tag:yaml.org,2002:omap";const zc={collection:"seq",identify:t=>t instanceof Map,nodeClass:tr,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const n=pp(t,e),s=[];for(const{key:r}of n.items)Ve(r)&&(s.includes(r.value)?e(`Ordered maps must not include duplicate keys: ${r.value}`):s.push(r.value));return Object.assign(new tr,n)},createNode:(t,e,n)=>tr.from(t,e,n)};function yp({value:t,source:e},n){return e&&(t?vp:Tp).test.test(e)?e:t?n.options.trueStr:n.options.falseStr}const vp={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ee(!0),stringify:yp},Tp={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Ee(!1),stringify:yp},Qb={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:dn},eE={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():dn(t)}},tE={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new Ee(parseFloat(t.replace(/_/g,""))),n=t.indexOf(".");if(n!==-1){const s=t.substring(n+1).replace(/_/g,"");s[s.length-1]==="0"&&(e.minFractionDigits=s.length)}return e},stringify:dn},Ti=t=>typeof t=="bigint"||Number.isInteger(t);function ca(t,e,n,{intAsBigInt:s}){const r=t[0];if((r==="-"||r==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),s){switch(n){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return r==="-"?BigInt(-1)*o:o}const i=parseInt(t,n);return r==="-"?-1*i:i}function Yc(t,e,n){const{value:s}=t;if(Ti(s)){const r=s.toString(e);return s<0?"-"+n+r.substr(1):n+r}return dn(t)}const nE={identify:Ti,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,n)=>ca(t,2,2,n),stringify:t=>Yc(t,2,"0b")},sE={identify:Ti,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,n)=>ca(t,1,8,n),stringify:t=>Yc(t,8,"0")},rE={identify:Ti,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,n)=>ca(t,0,10,n),stringify:dn},iE={identify:Ti,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,n)=>ca(t,2,16,n),stringify:t=>Yc(t,16,"0x")};class nr extends $t{constructor(e){super(e),this.tag=nr.tag}add(e){let n;Xe(e)?n=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?n=new St(e.key,null):n=new St(e,null),_s(this.items,n.key)||this.items.push(n)}get(e,n){const s=_s(this.items,e);return!n&&Xe(s)?Ve(s.key)?s.key.value:s.key:s}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const s=_s(this.items,e);s&&!n?this.items.splice(this.items.indexOf(s),1):!s&&n&&this.items.push(new St(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),n,s);throw new Error("Set items must all have null values")}static from(e,n,s){const{replacer:r}=s,i=new this(e);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof r=="function"&&(o=r.call(n,o,o)),i.items.push(Lc(o,null,s));return i}}nr.tag="tag:yaml.org,2002:set";const Uc={collection:"map",identify:t=>t instanceof Set,nodeClass:nr,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,n)=>nr.from(t,e,n),resolve(t,e){if(Er(t)){if(t.hasAllNullValues(!0))return Object.assign(new nr,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function Bc(t,e){const n=t[0],s=n==="-"||n==="+"?t.substring(1):t,r=o=>e?BigInt(o):Number(o),i=s.replace(/_/g,"").split(":").reduce((o,a)=>o*r(60)+r(a),r(0));return n==="-"?r(-1)*i:i}function wp(t){let{value:e}=t,n=o=>o;if(typeof e=="bigint")n=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return dn(t);let s="";e<0&&(s="-",e*=n(-1));const r=n(60),i=[e%r];return e<60?i.unshift(0):(e=(e-i[0])/r,i.unshift(e%r),e>=60&&(e=(e-i[0])/r,i.unshift(e))),s+i.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const _p={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:n})=>Bc(t,n),stringify:wp},bp={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>Bc(t,!1),stringify:wp},ua={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(ua.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,s,r,i,o,a]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(n,s-1,r,i||0,o||0,a||0,l);const u=e[8];if(u&&u!=="Z"){let f=Bc(u,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Yf=[Ir,Or,oa,aa,vp,Tp,nE,sE,rE,iE,Qb,eE,tE,$c,zc,Fc,Uc,_p,bp,ua],Uf=new Map([["core",Zb],["failsafe",[Ir,Or,oa]],["json",Jb],["yaml11",Yf],["yaml-1.1",Yf]]),Bf={binary:$c,bool:Rc,float:up,floatExp:cp,floatNaN:lp,floatTime:bp,int:dp,intHex:mp,intOct:hp,intTime:_p,map:Ir,null:aa,omap:zc,pairs:Fc,seq:Or,set:Uc,timestamp:ua},oE={"tag:yaml.org,2002:binary":$c,"tag:yaml.org,2002:omap":zc,"tag:yaml.org,2002:pairs":Fc,"tag:yaml.org,2002:set":Uc,"tag:yaml.org,2002:timestamp":ua};function Wa(t,e){let n=Uf.get(e);if(!n)if(Array.isArray(t))n=[];else{const s=Array.from(Uf.keys()).filter(r=>r!=="yaml11").map(r=>JSON.stringify(r)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${s} or define customTags array`)}if(Array.isArray(t))for(const s of t)n=n.concat(s);else typeof t=="function"&&(n=t(n.slice()));return n.map(s=>{if(typeof s!="string")return s;const r=Bf[s];if(r)return r;const i=Object.keys(Bf).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${s}"; use one of ${i}`)})}const aE=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0;class fa{constructor({compat:e,customTags:n,merge:s,resolveKnownTags:r,schema:i,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?Wa(e,"compat"):e?Wa(null,e):null,this.merge=!!s,this.name=typeof i=="string"&&i||"core",this.knownTags=r?oE:{},this.tags=Wa(n,this.name),this.toStringOptions=a??null,Object.defineProperty(this,Qn,{value:Ir}),Object.defineProperty(this,Nn,{value:oa}),Object.defineProperty(this,_r,{value:Or}),this.sortMapEntries=typeof o=="function"?o:o===!0?aE:null}clone(){const e=Object.create(fa.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function lE(t,e){var l;const n=[];let s=e.directives===!0;if(e.directives!==!1&&t.directives){const c=t.directives.toString(t);c?(n.push(c),s=!0):t.directives.docStart&&(s=!0)}s&&n.push("---");const r=rp(t,e),{commentString:i}=r.options;if(t.commentBefore){n.length!==1&&n.unshift("");const c=i(t.commentBefore);n.unshift(Mn(c,""))}let o=!1,a=null;if(t.contents){if(rt(t.contents)){if(t.contents.spaceBefore&&s&&n.push(""),t.contents.commentBefore){const f=i(t.contents.commentBefore);n.push(Mn(f,""))}r.forceBlockIndent=!!t.comment,a=t.contents.comment}const c=a?void 0:()=>o=!0;let u=cr(t.contents,r,()=>a=null,c);a&&(u+=Zn(u,"",i(a))),(u[0]==="|"||u[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${u}`:n.push(u)}else n.push(cr(t.contents,r));if((l=t.directives)!=null&&l.docEnd)if(t.comment){const c=i(t.comment);c.includes(`
`)?(n.push("..."),n.push(Mn(c,""))):n.push(`... ${c}`)}else n.push("...");else{let c=t.comment;c&&o&&(c=c.replace(/^\n+/,"")),c&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(Mn(i(c),"")))}return n.join(`
`)+`
`}class Dr{constructor(e,n,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Xt,{value:Dl});let r=null;typeof n=="function"||Array.isArray(n)?r=n:s===void 0&&n&&(s=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},s);this.options=i;let{version:o}=i;s!=null&&s._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new kt({version:o}),this.setSchema(o,s),this.contents=e===void 0?null:this.createNode(e,r,s)}clone(){const e=Object.create(Dr.prototype,{[Xt]:{value:Dl}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=rt(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Bs(this.contents)&&this.contents.add(e)}addIn(e,n){Bs(this.contents)&&this.contents.addIn(e,n)}createAlias(e,n){if(!e.anchor){const s=ep(this);e.anchor=!n||s.has(n)?tp(n||"a",s):n}return new ta(e.anchor)}createNode(e,n,s){let r;if(typeof n=="function")e=n.call({"":e},"",e),r=n;else if(Array.isArray(n)){const y=T=>typeof T=="number"||T instanceof String||T instanceof Number,g=n.filter(y).map(String);g.length>0&&(n=n.concat(g)),r=n}else s===void 0&&n&&(s=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:u}=s??{},{onAnchor:f,setAnchors:h,sourceObjects:d}=Pb(this,o||"a"),m={aliasDuplicateObjects:i??!0,keepUndefined:l??!1,onAnchor:f,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:d},p=li(e,u,m);return a&&Qe(p)&&(p.flow=!0),h(),p}createPair(e,n,s={}){const r=this.createNode(e,null,s),i=this.createNode(n,null,s);return new St(r,i)}delete(e){return Bs(this.contents)?this.contents.delete(e):!1}deleteIn(e){return jr(e)?this.contents==null?!1:(this.contents=null,!0):Bs(this.contents)?this.contents.deleteIn(e):!1}get(e,n){return Qe(this.contents)?this.contents.get(e,n):void 0}getIn(e,n){return jr(e)?!n&&Ve(this.contents)?this.contents.value:this.contents:Qe(this.contents)?this.contents.getIn(e,n):void 0}has(e){return Qe(this.contents)?this.contents.has(e):!1}hasIn(e){return jr(e)?this.contents!==void 0:Qe(this.contents)?this.contents.hasIn(e):!1}set(e,n){this.contents==null?this.contents=So(this.schema,[e],n):Bs(this.contents)&&this.contents.set(e,n)}setIn(e,n){jr(e)?this.contents=n:this.contents==null?this.contents=So(this.schema,Array.from(e),n):Bs(this.contents)&&this.contents.setIn(e,n)}setSchema(e,n={}){typeof e=="number"&&(e=String(e));let s;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new kt({version:"1.1"}),s={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new kt({version:e}),s={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const r=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${r}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(s)this.schema=new fa(Object.assign(s,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:n,mapAsMap:s,maxAliasCount:r,onAnchor:i,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!e,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=Gt(this.contents,n??"",a);if(typeof i=="function")for(const{count:c,res:u}of a.anchors.values())i(u,c);return typeof o=="function"?qs(o,{"":l},"",l):l}toJSON(e,n){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:n})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const n=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return lE(this,e)}}function Bs(t){if(Qe(t))return!0;throw new Error("Expected a YAML collection as document contents")}class Hc extends Error{constructor(e,n,s,r){super(),this.name=e,this.code=s,this.message=r,this.pos=n}}class bs extends Hc{constructor(e,n,s){super("YAMLParseError",e,n,s)}}class Ep extends Hc{constructor(e,n,s){super("YAMLWarning",e,n,s)}}const Oo=(t,e)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>e.linePos(a));const{line:s,col:r}=n.linePos[0];n.message+=` at line ${s}, column ${r}`;let i=r-1,o=t.substring(e.lineStarts[s-1],e.lineStarts[s]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const a=Math.min(i-39,o.length-79);o="…"+o.substring(a),i-=a-1}if(o.length>80&&(o=o.substring(0,79)+"…"),s>1&&/^ *$/.test(o.substring(0,i))){let a=t.substring(e.lineStarts[s-2],e.lineStarts[s-1]);a.length>80&&(a=a.substring(0,79)+`…
`),o=a+o}if(/[^ ]/.test(o)){let a=1;const l=n.linePos[1];l&&l.line===s&&l.col>r&&(a=Math.max(1,Math.min(l.col-r,80-i)));const c=" ".repeat(i)+"^".repeat(a);n.message+=`:

${o}
${c}
`}};function ur(t,{flow:e,indicator:n,next:s,offset:r,onError:i,startOnNewline:o}){let a=!1,l=o,c=o,u="",f="",h=!1,d=!1,m=!1,p=null,y=null,g=null,T=null,I=null;for(const S of t)switch(m&&(S.type!=="space"&&S.type!=="newline"&&S.type!=="comma"&&i(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m=!1),S.type){case"space":!e&&l&&n!=="doc-start"&&S.source[0]==="	"&&i(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||i(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const C=S.source.substring(1)||" ";u?u+=f+C:u=C,f="",l=!1;break}case"newline":l?u?u+=S.source:a=!0:f+=S.source,l=!0,h=!0,(p||y)&&(d=!0),c=!0;break;case"anchor":p&&i(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),S.source.endsWith(":")&&i(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),p=S,I===null&&(I=S.offset),l=!1,c=!1,m=!0;break;case"tag":{y&&i(S,"MULTIPLE_TAGS","A node can have at most one tag"),y=S,I===null&&(I=S.offset),l=!1,c=!1,m=!0;break}case n:(p||y)&&i(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`),T&&i(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${e??"collection"}`),T=S,l=!1,c=!1;break;case"comma":if(e){g&&i(S,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),g=S,l=!1,c=!1;break}default:i(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),l=!1,c=!1}const w=t[t.length-1],b=w?w.offset+w.source.length:r;return m&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&i(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:g,found:T,spaceBefore:a,comment:u,hasNewline:h,hasNewlineAfterProp:d,anchor:p,tag:y,end:b,start:I??b}}function ci(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
`))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const n of e.start)if(n.type==="newline")return!0;if(e.sep){for(const n of e.sep)if(n.type==="newline")return!0}if(ci(e.key)||ci(e.value))return!0}return!1;default:return!0}}function Al(t,e,n){if((e==null?void 0:e.type)==="flow-collection"){const s=e.end[0];s.indent===t&&(s.source==="]"||s.source==="}")&&ci(e)&&n(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Sp(t,e,n){const{uniqueKeys:s}=t.options;if(s===!1)return!1;const r=typeof s=="function"?s:(i,o)=>i===o||Ve(i)&&Ve(o)&&i.value===o.value&&!(i.value==="<<"&&t.schema.merge);return e.some(i=>r(i.key,n))}const Hf="All mapping items must start at the same column";function cE({composeNode:t,composeEmptyNode:e},n,s,r,i){var u;const o=(i==null?void 0:i.nodeClass)??$t,a=new o(n.schema);n.atRoot&&(n.atRoot=!1);let l=s.offset,c=null;for(const f of s.items){const{start:h,key:d,sep:m,value:p}=f,y=ur(h,{indicator:"explicit-key-ind",next:d??(m==null?void 0:m[0]),offset:l,onError:r,startOnNewline:!0}),g=!y.found;if(g){if(d&&(d.type==="block-seq"?r(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==s.indent&&r(l,"BAD_INDENT",Hf)),!y.anchor&&!y.tag&&!m){c=y.end,y.comment&&(a.comment?a.comment+=`
`+y.comment:a.comment=y.comment);continue}(y.hasNewlineAfterProp||ci(d))&&r(d??h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((u=y.found)==null?void 0:u.indent)!==s.indent&&r(l,"BAD_INDENT",Hf);const T=y.end,I=d?t(n,d,y,r):e(n,T,h,null,y,r);n.schema.compat&&Al(s.indent,d,r),Sp(n,a.items,I)&&r(T,"DUPLICATE_KEY","Map keys must be unique");const w=ur(m??[],{indicator:"map-value-ind",next:p,offset:I.range[2],onError:r,startOnNewline:!d||d.type==="block-scalar"});if(l=w.end,w.found){g&&((p==null?void 0:p.type)==="block-map"&&!w.hasNewline&&r(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&y.start<w.found.offset-1024&&r(I.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const b=p?t(n,p,w,r):e(n,l,m,null,w,r);n.schema.compat&&Al(s.indent,p,r),l=b.range[2];const S=new St(I,b);n.options.keepSourceTokens&&(S.srcToken=f),a.items.push(S)}else{g&&r(I.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),w.comment&&(I.comment?I.comment+=`
`+w.comment:I.comment=w.comment);const b=new St(I);n.options.keepSourceTokens&&(b.srcToken=f),a.items.push(b)}}return c&&c<l&&r(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[s.offset,l,c??l],a}function uE({composeNode:t,composeEmptyNode:e},n,s,r,i){const o=(i==null?void 0:i.nodeClass)??rs,a=new o(n.schema);n.atRoot&&(n.atRoot=!1);let l=s.offset,c=null;for(const{start:u,value:f}of s.items){const h=ur(u,{indicator:"seq-item-ind",next:f,offset:l,onError:r,startOnNewline:!0});if(!h.found)if(h.anchor||h.tag||f)f&&f.type==="block-seq"?r(h.end,"BAD_INDENT","All sequence items must start at the same column"):r(l,"MISSING_CHAR","Sequence item without - indicator");else{c=h.end,h.comment&&(a.comment=h.comment);continue}const d=f?t(n,f,h,r):e(n,h.end,u,null,h,r);n.schema.compat&&Al(s.indent,f,r),l=d.range[2],a.items.push(d)}return a.range=[s.offset,l,c??l],a}function wi(t,e,n,s){let r="";if(t){let i=!1,o="";for(const a of t){const{source:l,type:c}=a;switch(c){case"space":i=!0;break;case"comment":{n&&!i&&s(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const u=l.substring(1)||" ";r?r+=o+u:r=u,o="";break}case"newline":r&&(o+=l),i=!0;break;default:s(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=l.length}}return{comment:r,offset:e}}const Va="Block collections are not allowed within flow collections",qa=t=>t&&(t.type==="block-map"||t.type==="block-seq");function fE({composeNode:t,composeEmptyNode:e},n,s,r,i){const o=s.start.source==="{",a=o?"flow map":"flow sequence",l=(i==null?void 0:i.nodeClass)??(o?$t:rs),c=new l(n.schema);c.flow=!0;const u=n.atRoot;u&&(n.atRoot=!1);let f=s.offset+s.start.source.length;for(let y=0;y<s.items.length;++y){const g=s.items[y],{start:T,key:I,sep:w,value:b}=g,S=ur(T,{flow:a,indicator:"explicit-key-ind",next:I??(w==null?void 0:w[0]),offset:f,onError:r,startOnNewline:!1});if(!S.found){if(!S.anchor&&!S.tag&&!w&&!b){y===0&&S.comma?r(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):y<s.items.length-1&&r(S.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),S.comment&&(c.comment?c.comment+=`
`+S.comment:c.comment=S.comment),f=S.end;continue}!o&&n.options.strict&&ci(I)&&r(I,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(y===0)S.comma&&r(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(S.comma||r(S.start,"MISSING_CHAR",`Missing , between ${a} items`),S.comment){let C="";e:for(const D of T)switch(D.type){case"comma":case"space":break;case"comment":C=D.source.substring(1);break e;default:break e}if(C){let D=c.items[c.items.length-1];Xe(D)&&(D=D.value??D.key),D.comment?D.comment+=`
`+C:D.comment=C,S.comment=S.comment.substring(C.length+1)}}if(!o&&!w&&!S.found){const C=b?t(n,b,S,r):e(n,S.end,w,null,S,r);c.items.push(C),f=C.range[2],qa(b)&&r(C.range,"BLOCK_IN_FLOW",Va)}else{const C=S.end,D=I?t(n,I,S,r):e(n,C,T,null,S,r);qa(I)&&r(D.range,"BLOCK_IN_FLOW",Va);const A=ur(w??[],{flow:a,indicator:"map-value-ind",next:b,offset:D.range[2],onError:r,startOnNewline:!1});if(A.found){if(!o&&!S.found&&n.options.strict){if(w)for(const L of w){if(L===A.found)break;if(L.type==="newline"){r(L,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}S.start<A.found.offset-1024&&r(A.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else b&&("source"in b&&b.source&&b.source[0]===":"?r(b,"MISSING_CHAR",`Missing space after : in ${a}`):r(A.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const z=b?t(n,b,A,r):A.found?e(n,A.end,w,null,A,r):null;z?qa(b)&&r(z.range,"BLOCK_IN_FLOW",Va):A.comment&&(D.comment?D.comment+=`
`+A.comment:D.comment=A.comment);const X=new St(D,z);if(n.options.keepSourceTokens&&(X.srcToken=g),o){const L=c;Sp(n,L.items,D)&&r(C,"DUPLICATE_KEY","Map keys must be unique"),L.items.push(X)}else{const L=new $t(n.schema);L.flow=!0,L.items.push(X),c.items.push(L)}f=z?z.range[2]:A.end}}const h=o?"}":"]",[d,...m]=s.end;let p=f;if(d&&d.source===h)p=d.offset+d.source.length;else{const y=a[0].toUpperCase()+a.substring(1),g=u?`${y} must end with a ${h}`:`${y} in block collection must be sufficiently indented and end with a ${h}`;r(f,u?"MISSING_CHAR":"BAD_INDENT",g),d&&d.source.length!==1&&m.unshift(d)}if(m.length>0){const y=wi(m,p,n.options.strict,r);y.comment&&(c.comment?c.comment+=`
`+y.comment:c.comment=y.comment),c.range=[s.offset,p,y.offset]}else c.range=[s.offset,p,p];return c}function Ka(t,e,n,s,r,i){const o=n.type==="block-map"?cE(t,e,n,s,i):n.type==="block-seq"?uE(t,e,n,s,i):fE(t,e,n,s,i),a=o.constructor;return r==="!"||r===a.tagName?(o.tag=a.tagName,o):(r&&(o.tag=r),o)}function hE(t,e,n,s,r){var f;const i=s?e.directives.tagName(s.source,h=>r(s,"TAG_RESOLVE_FAILED",h)):null,o=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!s||!i||i==="!"||i===$t.tagName&&o==="map"||i===rs.tagName&&o==="seq"||!o)return Ka(t,e,n,r,i);let a=e.schema.tags.find(h=>h.tag===i&&h.collection===o);if(!a){const h=e.schema.knownTags[i];if(h&&h.collection===o)e.schema.tags.push(Object.assign({},h,{default:!1})),a=h;else return h!=null&&h.collection?r(s,"BAD_COLLECTION_TYPE",`${h.tag} used for ${o} collection, but expects ${h.collection}`,!0):r(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),Ka(t,e,n,r,i)}const l=Ka(t,e,n,r,i,a),c=((f=a.resolve)==null?void 0:f.call(a,l,h=>r(s,"TAG_RESOLVE_FAILED",h),e.options))??l,u=rt(c)?c:new Ee(c);return u.range=l.range,u.tag=i,a!=null&&a.format&&(u.format=a.format),u}function Ip(t,e,n){const s=t.offset,r=dE(t,e,n);if(!r)return{value:"",type:null,comment:"",range:[s,s,s]};const i=r.mode===">"?Ee.BLOCK_FOLDED:Ee.BLOCK_LITERAL,o=t.source?mE(t.source):[];let a=o.length;for(let p=o.length-1;p>=0;--p){const y=o[p][1];if(y===""||y==="\r")a=p;else break}if(a===0){const p=r.chomp==="+"&&o.length>0?`
`.repeat(Math.max(1,o.length-1)):"";let y=s+r.length;return t.source&&(y+=t.source.length),{value:p,type:i,comment:r.comment,range:[s,y,y]}}let l=t.indent+r.indent,c=t.offset+r.length,u=0;for(let p=0;p<a;++p){const[y,g]=o[p];if(g===""||g==="\r")r.indent===0&&y.length>l&&(l=y.length);else{if(y.length<l){const T="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(c+y.length,"MISSING_CHAR",T)}r.indent===0&&(l=y.length),u=p;break}c+=y.length+g.length+1}for(let p=o.length-1;p>=a;--p)o[p][0].length>l&&(a=p+1);let f="",h="",d=!1;for(let p=0;p<u;++p)f+=o[p][0].slice(l)+`
`;for(let p=u;p<a;++p){let[y,g]=o[p];c+=y.length+g.length+1;const T=g[g.length-1]==="\r";if(T&&(g=g.slice(0,-1)),g&&y.length<l){const w=`Block scalar lines must not be less indented than their ${r.indent?"explicit indentation indicator":"first line"}`;n(c-g.length-(T?2:1),"BAD_INDENT",w),y=""}i===Ee.BLOCK_LITERAL?(f+=h+y.slice(l)+g,h=`
`):y.length>l||g[0]==="	"?(h===" "?h=`
`:!d&&h===`
`&&(h=`

`),f+=h+y.slice(l)+g,h=`
`,d=!0):g===""?h===`
`?f+=`
`:h=`
`:(f+=h+g,h=" ",d=!1)}switch(r.chomp){case"-":break;case"+":for(let p=a;p<o.length;++p)f+=`
`+o[p][0].slice(l);f[f.length-1]!==`
`&&(f+=`
`);break;default:f+=`
`}const m=s+r.length+t.source.length;return{value:f,type:i,comment:r.comment,range:[s,m,m]}}function dE({offset:t,props:e},n,s){if(e[0].type!=="block-scalar-header")return s(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:r}=e[0],i=r[0];let o=0,a="",l=-1;for(let h=1;h<r.length;++h){const d=r[h];if(!a&&(d==="-"||d==="+"))a=d;else{const m=Number(d);!o&&m?o=m:l===-1&&(l=t+h)}}l!==-1&&s(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let c=!1,u="",f=r.length;for(let h=1;h<e.length;++h){const d=e[h];switch(d.type){case"space":c=!0;case"newline":f+=d.source.length;break;case"comment":n&&!c&&s(d,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=d.source.length,u=d.source.substring(1);break;case"error":s(d,"UNEXPECTED_TOKEN",d.message),f+=d.source.length;break;default:{const m=`Unexpected token in block scalar header: ${d.type}`;s(d,"UNEXPECTED_TOKEN",m);const p=d.source;p&&typeof p=="string"&&(f+=p.length)}}}return{mode:i,indent:o,chomp:a,comment:u,length:f}}function mE(t){const e=t.split(/\n( *)/),n=e[0],s=n.match(/^( *)/),i=[s!=null&&s[1]?[s[1],n.slice(s[1].length)]:["",n]];for(let o=1;o<e.length;o+=2)i.push([e[o],e[o+1]]);return i}function Op(t,e,n){const{offset:s,type:r,source:i,end:o}=t;let a,l;const c=(h,d,m)=>n(s+h,d,m);switch(r){case"scalar":a=Ee.PLAIN,l=pE(i,c);break;case"single-quoted-scalar":a=Ee.QUOTE_SINGLE,l=gE(i,c);break;case"double-quoted-scalar":a=Ee.QUOTE_DOUBLE,l=yE(i,c);break;default:return n(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`),{value:"",type:null,comment:"",range:[s,s+i.length,s+i.length]}}const u=s+i.length,f=wi(o,u,e,n);return{value:l,type:a,comment:f.comment,range:[s,u,f.offset]}}function pE(t,e){let n="";switch(t[0]){case"	":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${t[0]}`;break}case"@":case"`":{n=`reserved character ${t[0]}`;break}}return n&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Dp(t)}function gE(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),Dp(t.slice(1,-1)).replace(/''/g,"'")}function Dp(t){let e,n;try{e=new RegExp(`(.*?)(?<![ 	])[ 	]*\r?
`,"sy"),n=new RegExp(`[ 	]*(.*?)(?:(?<![ 	])[ 	]*)?\r?
`,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=e.exec(t);if(!s)return t;let r=s[1],i=" ",o=e.lastIndex;for(n.lastIndex=o;s=n.exec(t);)s[1]===""?i===`
`?r+=i:i=`
`:(r+=i+s[1],i=" "),o=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,s=a.exec(t),r+i+((s==null?void 0:s[1])??"")}function yE(t,e){let n="";for(let s=1;s<t.length-1;++s){const r=t[s];if(!(r==="\r"&&t[s+1]===`
`))if(r===`
`){const{fold:i,offset:o}=vE(t,s);n+=i,s=o}else if(r==="\\"){let i=t[++s];const o=TE[i];if(o)n+=o;else if(i===`
`)for(i=t[s+1];i===" "||i==="	";)i=t[++s+1];else if(i==="\r"&&t[s+1]===`
`)for(i=t[++s+1];i===" "||i==="	";)i=t[++s+1];else if(i==="x"||i==="u"||i==="U"){const a={x:2,u:4,U:8}[i];n+=wE(t,s+1,a,e),s+=a}else{const a=t.substr(s-1,2);e(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),n+=a}}else if(r===" "||r==="	"){const i=s;let o=t[s+1];for(;o===" "||o==="	";)o=t[++s+1];o!==`
`&&!(o==="\r"&&t[s+2]===`
`)&&(n+=s>i?t.slice(i,s+1):r)}else n+=r}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),n}function vE(t,e){let n="",s=t[e+1];for(;(s===" "||s==="	"||s===`
`||s==="\r")&&!(s==="\r"&&t[e+2]!==`
`);)s===`
`&&(n+=`
`),e+=1,s=t[e+1];return n||(n=" "),{fold:n,offset:e}}const TE={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
`,r:"\r",t:"	",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","	":"	"};function wE(t,e,n,s){const r=t.substr(e,n),o=r.length===n&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;if(isNaN(o)){const a=t.substr(e-2,n+2);return s(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}function kp(t,e,n,s){const{value:r,type:i,comment:o,range:a}=e.type==="block-scalar"?Ip(e,t.options.strict,s):Op(e,t.options.strict,s),l=n?t.directives.tagName(n.source,f=>s(n,"TAG_RESOLVE_FAILED",f)):null,c=n&&l?_E(t.schema,r,l,n,s):e.type==="scalar"?bE(t,r,e,s):t.schema[Nn];let u;try{const f=c.resolve(r,h=>s(n??e,"TAG_RESOLVE_FAILED",h),t.options);u=Ve(f)?f:new Ee(f)}catch(f){const h=f instanceof Error?f.message:String(f);s(n??e,"TAG_RESOLVE_FAILED",h),u=new Ee(r)}return u.range=a,u.source=r,i&&(u.type=i),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function _E(t,e,n,s,r){var a;if(n==="!")return t[Nn];const i=[];for(const l of t.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)i.push(l);else return l;for(const l of i)if((a=l.test)!=null&&a.test(e))return l;const o=t.knownTags[n];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(r(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),t[Nn])}function bE({directives:t,schema:e},n,s,r){const i=e.tags.find(o=>{var a;return o.default&&((a=o.test)==null?void 0:a.test(n))})||e[Nn];if(e.compat){const o=e.compat.find(a=>{var l;return a.default&&((l=a.test)==null?void 0:l.test(n))})??e[Nn];if(i.tag!==o.tag){const a=t.tagString(i.tag),l=t.tagString(o.tag),c=`Value may be parsed as either ${a} or ${l}`;r(s,"TAG_RESOLVE_FAILED",c,!0)}}return i}function EE(t,e,n){if(e){n===null&&(n=e.length);for(let s=n-1;s>=0;--s){let r=e[s];switch(r.type){case"space":case"comment":case"newline":t-=r.source.length;continue}for(r=e[++s];(r==null?void 0:r.type)==="space";)t+=r.source.length,r=e[++s];break}}return t}const SE={composeNode:Mp,composeEmptyNode:jc};function Mp(t,e,n,s){const{spaceBefore:r,comment:i,anchor:o,tag:a}=n;let l,c=!0;switch(e.type){case"alias":l=IE(t,e,s),(o||a)&&s(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=kp(t,e,a,s),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=hE(SE,t,e,a,s),o&&(l.anchor=o.source.substring(1));break;default:{const u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;s(e,"UNEXPECTED_TOKEN",u),l=jc(t,e.offset,void 0,null,n,s),c=!1}}return o&&l.anchor===""&&s(o,"BAD_ALIAS","Anchor cannot be an empty string"),r&&(l.spaceBefore=!0),i&&(e.type==="scalar"&&e.source===""?l.comment=i:l.commentBefore=i),t.options.keepSourceTokens&&c&&(l.srcToken=e),l}function jc(t,e,n,s,{spaceBefore:r,comment:i,anchor:o,tag:a,end:l},c){const u={type:"scalar",offset:EE(e,n,s),indent:-1,source:""},f=kp(t,u,a,c);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=l),f}function IE({options:t},{offset:e,source:n,end:s},r){const i=new ta(n.substring(1));i.source===""&&r(e,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&r(e+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=e+n.length,a=wi(s,o,t.strict,r);return i.range=[e,o,a.offset],a.comment&&(i.comment=a.comment),i}function OE(t,e,{offset:n,start:s,value:r,end:i},o){const a=Object.assign({_directives:e},t),l=new Dr(void 0,a),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=ur(s,{indicator:"doc-start",next:r??(i==null?void 0:i[0]),offset:n,onError:o,startOnNewline:!0});u.found&&(l.directives.docStart=!0,r&&(r.type==="block-map"||r.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=r?Mp(c,r,u,o):jc(c,u.end,s,null,u,o);const f=l.contents.range[2],h=wi(i,f,!1,o);return h.comment&&(l.comment=h.comment),l.range=[n,f,h.offset],l}function $r(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];const{offset:e,source:n}=t;return[e,e+(typeof n=="string"?n.length:1)]}function jf(t){var r;let e="",n=!1,s=!1;for(let i=0;i<t.length;++i){const o=t[i];switch(o[0]){case"#":e+=(e===""?"":s?`

`:`
`)+(o.substring(1)||" "),n=!0,s=!1;break;case"%":((r=t[i+1])==null?void 0:r[0])!=="#"&&(i+=1),n=!1;break;default:n||(s=!0),n=!1}}return{comment:e,afterEmptyLine:s}}class Wc{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,s,r,i)=>{const o=$r(n);i?this.warnings.push(new Ep(o,s,r)):this.errors.push(new bs(o,s,r))},this.directives=new kt({version:e.version||"1.2"}),this.options=e}decorate(e,n){const{comment:s,afterEmptyLine:r}=jf(this.prelude);if(s){const i=e.contents;if(n)e.comment=e.comment?`${e.comment}
${s}`:s;else if(r||e.directives.docStart||!i)e.commentBefore=s;else if(Qe(i)&&!i.flow&&i.items.length>0){let o=i.items[0];Xe(o)&&(o=o.key);const a=o.commentBefore;o.commentBefore=a?`${s}
${a}`:s}else{const o=i.commentBefore;i.commentBefore=o?`${s}
${o}`:s}}n?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:jf(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,n=!1,s=-1){for(const r of e)yield*this.next(r);yield*this.end(n,s)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(n,s,r)=>{const i=$r(e);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",s,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const n=OE(this.options,this.directives,e,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const n=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new bs($r(e),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const s="Unexpected doc-end without preceding document";this.errors.push(new bs($r(e),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const n=wi(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const s=this.doc.comment;this.doc.comment=s?`${s}
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new bs($r(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const s=Object.assign({_directives:this.directives},this.options),r=new Dr(void 0,s);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,n,n],this.decorate(r,!1),yield r}}}function DE(t,e=!0,n){if(t){const s=(r,i,o)=>{const a=typeof r=="number"?r:Array.isArray(r)?r[0]:r.offset;if(n)n(a,i,o);else throw new bs([a,a+1],i,o)};switch(t.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Op(t,e,s);case"block-scalar":return Ip(t,e,s)}}return null}function kE(t,e){const{implicitKey:n=!1,indent:s,inFlow:r=!1,offset:i=-1,type:o="PLAIN"}=e,a=vi({type:o,value:t},{implicitKey:n,indent:s>0?" ".repeat(s):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),l=e.end??[{type:"newline",offset:-1,indent:s,source:`
`}];switch(a[0]){case"|":case">":{const c=a.indexOf(`
`),u=a.substring(0,c),f=a.substring(c+1)+`
`,h=[{type:"block-scalar-header",offset:i,indent:s,source:u}];return Cp(h,l)||h.push({type:"newline",offset:-1,indent:s,source:`
`}),{type:"block-scalar",offset:i,indent:s,props:h,source:f}}case'"':return{type:"double-quoted-scalar",offset:i,indent:s,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:i,indent:s,source:a,end:l};default:return{type:"scalar",offset:i,indent:s,source:a,end:l}}}function ME(t,e,n={}){let{afterKey:s=!1,implicitKey:r=!1,inFlow:i=!1,type:o}=n,a="indent"in t?t.indent:null;if(s&&typeof a=="number"&&(a+=2),!o)switch(t.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const c=t.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const l=vi({type:o,value:e},{implicitKey:r||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":CE(t,l);break;case'"':Za(t,l,"double-quoted-scalar");break;case"'":Za(t,l,"single-quoted-scalar");break;default:Za(t,l,"scalar")}}function CE(t,e){const n=e.indexOf(`
`),s=e.substring(0,n),r=e.substring(n+1)+`
`;if(t.type==="block-scalar"){const i=t.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=s,t.source=r}else{const{offset:i}=t,o="indent"in t?t.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:o,source:s}];Cp(a,"end"in t?t.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
`});for(const l of Object.keys(t))l!=="type"&&l!=="offset"&&delete t[l];Object.assign(t,{type:"block-scalar",indent:o,props:a,source:r})}}function Cp(t,e){if(e)for(const n of e)switch(n.type){case"space":case"comment":t.push(n);break;case"newline":return t.push(n),!0}return!1}function Za(t,e,n){switch(t.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":t.type=n,t.source=e;break;case"block-scalar":{const s=t.props.slice(1);let r=e.length;t.props[0].type==="block-scalar-header"&&(r-=t.props[0].source.length);for(const i of s)i.offset+=r;delete t.props,Object.assign(t,{type:n,source:e,end:s});break}case"block-map":case"block-seq":{const r={type:"newline",offset:t.offset+e.length,indent:t.indent,source:`
`};delete t.items,Object.assign(t,{type:n,source:e,end:[r]});break}default:{const s="indent"in t?t.indent:-1,r="end"in t&&Array.isArray(t.end)?t.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(t))i!=="type"&&i!=="offset"&&delete t[i];Object.assign(t,{type:n,indent:s,source:e,end:r})}}}const AE=t=>"type"in t?Do(t):io(t);function Do(t){switch(t.type){case"block-scalar":{let e="";for(const n of t.props)e+=Do(n);return e+t.source}case"block-map":case"block-seq":{let e="";for(const n of t.items)e+=io(n);return e}case"flow-collection":{let e=t.start.source;for(const n of t.items)e+=io(n);for(const n of t.end)e+=n.source;return e}case"document":{let e=io(t);if(t.end)for(const n of t.end)e+=n.source;return e}default:{let e=t.source;if("end"in t&&t.end)for(const n of t.end)e+=n.source;return e}}}function io({start:t,key:e,sep:n,value:s}){let r="";for(const i of t)r+=i.source;if(e&&(r+=Do(e)),n)for(const i of n)r+=i.source;return s&&(r+=Do(s)),r}const Nl=Symbol("break visit"),NE=Symbol("skip children"),Ap=Symbol("remove item");function ks(t,e){"type"in t&&t.type==="document"&&(t={start:t.start,value:t.value}),Np(Object.freeze([]),t,e)}ks.BREAK=Nl;ks.SKIP=NE;ks.REMOVE=Ap;ks.itemAtPath=(t,e)=>{let n=t;for(const[s,r]of e){const i=n==null?void 0:n[s];if(i&&"items"in i)n=i.items[r];else return}return n};ks.parentCollection=(t,e)=>{const n=ks.itemAtPath(t,e.slice(0,-1)),s=e[e.length-1][0],r=n==null?void 0:n[s];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function Np(t,e,n){let s=n(e,t);if(typeof s=="symbol")return s;for(const r of["key","value"]){const i=e[r];if(i&&"items"in i){for(let o=0;o<i.items.length;++o){const a=Np(Object.freeze(t.concat([[r,o]])),i.items[o],n);if(typeof a=="number")o=a-1;else{if(a===Nl)return Nl;a===Ap&&(i.items.splice(o,1),o-=1)}}typeof s=="function"&&r==="key"&&(s=s(e,t))}}return typeof s=="function"?s(e,t):s}const ha="\uFEFF",da="",ma="",ui="",xE=t=>!!t&&"items"in t,LE=t=>!!t&&(t.type==="scalar"||t.type==="single-quoted-scalar"||t.type==="double-quoted-scalar"||t.type==="block-scalar");function RE(t){switch(t){case ha:return"<BOM>";case da:return"<DOC>";case ma:return"<FLOW_END>";case ui:return"<SCALAR>";default:return JSON.stringify(t)}}function xp(t){switch(t){case ha:return"byte-order-mark";case da:return"doc-mode";case ma:return"flow-error-end";case ui:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
`:case`\r
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case"	":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const PE=Object.freeze(Object.defineProperty({__proto__:null,BOM:ha,DOCUMENT:da,FLOW_END:ma,SCALAR:ui,createScalarToken:kE,isCollection:xE,isScalar:LE,prettyToken:RE,resolveAsScalar:DE,setScalarValue:ME,stringify:AE,tokenType:xp,visit:ks},Symbol.toStringTag,{value:"Module"}));function Ht(t){switch(t){case void 0:case" ":case`
`:case"\r":case"	":return!0;default:return!1}}const Wf="0123456789ABCDEFabcdef".split(""),$E="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Ga=",[]{}".split(""),FE=` ,[]{}
\r	`.split(""),Xa=t=>!t||FE.includes(t);class Lp{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,n=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!n;let s=this.next??"stream";for(;s&&(n||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos,n=this.buffer[e];for(;n===" "||n==="	";)n=this.buffer[++e];return!n||n==="#"||n===`
`?!0:n==="\r"?this.buffer[e+1]===`
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let n=this.buffer[e];if(this.indentNext>0){let s=0;for(;n===" ";)n=this.buffer[++s+e];if(n==="\r"){const r=this.buffer[s+e+1];if(r===`
`||!r&&!this.atEnd)return e+s+1}return n===`
`||s>=this.indentNext||!n&&!this.atEnd?e+s:-1}if(n==="-"||n==="."){const s=this.buffer.substr(e,3);if((s==="---"||s==="...")&&Ht(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===ha&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let n=e.length;const s=e.indexOf("#");if(s!==-1){const i=e[s-1];(i===" "||i==="	")&&(n=s-1)}for(;;){const i=e[n-1];if(i===" "||i==="	")n-=1;else break}const r=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-n),yield*this.pushNewline(),"stream"}return yield da,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&Ht(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Ht(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ht(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Ht(n)){const s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(e[n]){case"#":yield*this.pushCount(e.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Xa),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,n,s=-1;do e=yield*this.pushNewline(),e>0?(n=yield*this.pushSpaces(!1),this.indentValue=s=n):n=0,n+=yield*this.pushSpaces(!0);while(e+n>0);const r=this.getLine();if(r===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&r[0]!=="#"||s===0&&(r.startsWith("---")||r.startsWith("..."))&&Ht(r[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(r[0]==="]"||r[0]==="}")))return this.flowLevel=0,yield ma,yield*this.parseLineStart();let i=0;for(;r[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Xa),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Ht(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let n=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let i=0;for(;this.buffer[n-1-i]==="\\";)i+=1;if(i%2===0)break;n=this.buffer.indexOf('"',n+1)}const s=this.buffer.substring(0,n);let r=s.indexOf(`
`,this.pos);if(r!==-1){for(;r!==-1;){const i=this.continueScalar(r+1);if(i===-1)break;r=s.indexOf(`
`,i)}r!==-1&&(n=r-(s[r-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const n=this.buffer[++e];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Ht(n)||n==="#")}*parseBlockScalar(){let e=this.pos-1,n=0,s;e:for(let r=this.pos;s=this.buffer[r];++r)switch(s){case" ":n+=1;break;case`
`:e=r,n=0;break;case"\r":{const i=this.buffer[r+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
`)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const r=this.continueScalar(e+1);if(r===-1)break;e=this.buffer.indexOf(`
`,r)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}if(!this.blockScalarKeep)do{let r=e-1,i=this.buffer[r];i==="\r"&&(i=this.buffer[--r]);const o=r;for(;i===" "||i==="	";)i=this.buffer[--r];if(i===`
`&&r>=this.pos&&r+1+n>o)e=r;else break}while(!0);return yield ui,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let n=this.pos-1,s=this.pos-1,r;for(;r=this.buffer[++s];)if(r===":"){const i=this.buffer[s+1];if(Ht(i)||e&&i===",")break;n=s}else if(Ht(r)){let i=this.buffer[s+1];if(r==="\r"&&(i===`
`?(s+=1,r=`
`,i=this.buffer[s+1]):n=s),i==="#"||e&&Ga.includes(i))break;if(r===`
`){const o=this.continueScalar(s+1);if(o===-1)break;s=Math.max(s,o-2)}}else{if(e&&Ga.includes(r))break;n=s}return!r&&!this.atEnd?this.setNext("plain-scalar"):(yield ui,yield*this.pushToIndex(n+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,n){const s=this.buffer.slice(this.pos,e);return s?(yield s,this.pos+=s.length,s.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Xa))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,n=this.charAt(1);if(Ht(n)||e&&Ga.includes(n))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,n=this.buffer[e];for(;!Ht(n)&&n!==">";)n=this.buffer[++e];return yield*this.pushToIndex(n===">"?e+1:e,!1)}else{let e=this.pos+1,n=this.buffer[e];for(;n;)if($E.includes(n))n=this.buffer[++e];else if(n==="%"&&Wf.includes(this.buffer[e+1])&&Wf.includes(this.buffer[e+2]))n=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
`?yield*this.pushCount(2):0}*pushSpaces(e){let n=this.pos-1,s;do s=this.buffer[++n];while(s===" "||e&&s==="	");const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let n=this.pos,s=this.buffer[n];for(;!e(s);)s=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class Rp{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let n=0,s=this.lineStarts.length;for(;n<s;){const i=n+s>>1;this.lineStarts[i]<e?n=i+1:s=i}if(this.lineStarts[n]===e)return{line:n+1,col:1};if(n===0)return{line:0,col:e};const r=this.lineStarts[n-1];return{line:n,col:e-r+1}}}}function nn(t,e){for(let n=0;n<t.length;++n)if(t[n].type===e)return!0;return!1}function Vf(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function Pp(t){switch(t==null?void 0:t.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Wi(t){switch(t.type){case"document":return t.start;case"block-map":{const e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}function Hs(t){var n;if(t.length===0)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=t[++e])==null?void 0:n.type)==="space";);return t.splice(e,t.length)}function qf(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!nn(e.start,"explicit-key-ind")&&!nn(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Pp(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}class Vc{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Lp,this.onNewLine=e}*parse(e,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const s of this.lexer.lex(e,n))yield*this.next(s);n||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const n=xp(e);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const s=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const n=e??this.stack.pop();if(n)if(this.stack.length===0)yield n;else{const s=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in s?s.indent:0:n.type==="flow-collection"&&s.type==="document"&&(n.indent=0),n.type==="flow-collection"&&qf(n),s.type){case"document":s.value=n;break;case"block-scalar":s.props.push(n);break;case"block-map":{const r=s.items[s.items.length-1];if(r.value){s.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(r.sep)r.value=n;else{Object.assign(r,{key:n,sep:[]}),this.onKeyLine=!nn(r.start,"explicit-key-ind");return}break}case"block-seq":{const r=s.items[s.items.length-1];r.value?s.items.push({start:[],value:n}):r.value=n;break}case"flow-collection":{const r=s.items[s.items.length-1];!r||r.value?s.items.push({start:[],key:n,sep:[]}):r.sep?r.value=n:Object.assign(r,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const r=n.items[n.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&Vf(r.start)===-1&&(n.indent===0||r.start.every(i=>i.type!=="comment"||i.indent<n.indent))&&(s.type==="document"?s.end=r.start:s.items.push({start:r.start}),n.items.splice(-1,1))}}else{const s="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:s}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{Vf(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const n=Wi(this.peek(2)),s=Hs(n);let r;e.end?(r=e.end,r.push(this.sourceToken),delete e.end):r=[this.sourceToken];const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var s;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0,i=Array.isArray(r)?r[r.length-1]:void 0;(i==null?void 0:i.type)==="comment"?r==null||r.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const r=e.items[e.items.length-2],i=(s=r==null?void 0:r.value)==null?void 0:s.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent&&n.sep;let i=[];if(r&&n.sep&&!n.value){const o=[];for(let a=0;a<n.sep.length;++a){const l=n.sep[a];switch(l.type){case"newline":o.push(a);break;case"space":break;case"comment":l.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(i=n.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":r||n.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!nn(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):r||n.value?(i.push(this.sourceToken),e.items.push({start:i})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(nn(n.start,"explicit-key-ind"))if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(nn(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Pp(n.key)&&!nn(n.sep,"newline")){const o=Hs(n.start),a=n.key,l=n.sep;l.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:l}]})}else i.length>0?n.sep=n.sep.concat(i,this.sourceToken):n.sep.push(this.sourceToken);else if(nn(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const o=Hs(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):nn(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);r||n.value?(e.items.push({start:i,key:o,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(o):(Object.assign(n,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(e);if(o){r&&o.type!=="block-seq"&&nn(n.start,"explicit-key-ind")&&e.items.push({start:i}),this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var s;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0,i=Array.isArray(r)?r[r.length-1]:void 0;(i==null?void 0:i.type)==="comment"?r==null||r.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const r=e.items[e.items.length-2],i=(s=r==null?void 0:r.value)==null?void 0:s.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||nn(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){const r=this.startBlockValue(e);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const n=e.items[e.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s&&s.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?e.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);!n||n.value?e.items.push({start:[],key:r,sep:[]}):n.sep?this.stack.push(r):Object.assign(n,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const s=this.startBlockValue(e);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{const s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===e.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){const r=Wi(s),i=Hs(r);qf(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let n=this.source.indexOf(`
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Wi(e),s=Hs(n);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Wi(e),s=Hs(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function $p(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new Rp||null,prettyErrors:e}}function zE(t,e={}){const{lineCounter:n,prettyErrors:s}=$p(e),r=new Vc(n==null?void 0:n.addNewLine),i=new Wc(e),o=Array.from(i.compose(r.parse(t)));if(s&&n)for(const a of o)a.errors.forEach(Oo(t,n)),a.warnings.forEach(Oo(t,n));return o.length>0?o:Object.assign([],{empty:!0},i.streamInfo())}function Fp(t,e={}){const{lineCounter:n,prettyErrors:s}=$p(e),r=new Vc(n==null?void 0:n.addNewLine),i=new Wc(e);let o=null;for(const a of i.compose(r.parse(t),!0,t.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new bs(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&n&&(o.errors.forEach(Oo(t,n)),o.warnings.forEach(Oo(t,n))),o}function YE(t,e,n){let s;typeof e=="function"?s=e:n===void 0&&e&&typeof e=="object"&&(n=e);const r=Fp(t,n);if(!r)return null;if(r.warnings.forEach(i=>ip(r.options.logLevel,i)),r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];r.errors=[]}return r.toJS(Object.assign({reviver:s},n))}function UE(t,e,n){let s=null;if(typeof e=="function"||Array.isArray(e)?s=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){const r=Math.round(n);n=r<1?void 0:r>8?{indent:8}:{indent:r}}if(t===void 0){const{keepUndefined:r}=n??e??{};if(!r)return}return new Dr(t,s,n).toString(n)}const BE=Object.freeze(Object.defineProperty({__proto__:null,Alias:ta,CST:PE,Composer:Wc,Document:Dr,Lexer:Lp,LineCounter:Rp,Pair:St,Parser:Vc,Scalar:Ee,Schema:fa,YAMLError:Hc,YAMLMap:$t,YAMLParseError:bs,YAMLSeq:rs,YAMLWarning:Ep,isAlias:xs,isCollection:Qe,isDocument:br,isMap:Er,isNode:rt,isPair:Xe,isScalar:Ve,isSeq:Sr,parse:YE,parseAllDocuments:zE,parseDocument:Fp,stringify:UE,visit:ss,visitAsync:ea},Symbol.toStringTag,{value:"Module"})),Kf=t=>t.trim().split(/ |,/).filter(e=>!!e&&e.includes("@")||e==="*"||e==="\\*"),HE=/^([^:]+)(:)(?:\s|$)/,jE=/[^:]+$/;function WE(t,e,n,s){let r=0,i=r,o=-1,a=-1;const l=p=>!!p.match(Sc)||!!p.match(Ec)||!!p.match(Xo),c=/^---/;let u=!1;const f=[],h=[],d=[];let m=t[r];for(;typeof m<"u"&&!(!u&&l(m));){const p=m.match(c);if(p){const g={type:$e.FrontmatterDelimiter,from:e[i],to:e[i]+4};if(d.push(g),!u)r=i,u=!0;else{d.length===2&&(n.ranges.push(d[0]),n.ranges.push(d[1]));break}}const y=Cc(m,i,e,n);if(y||(m=Sb(m,i,e,n),f.push(m)),!y&&!p){const g=m.match(HE);g&&(h.push({type:$e.HeaderKey,from:e[i],to:e[i]+g[1].length}),h.push({type:$e.HeaderKeyColon,from:e[i]+g[1].length,to:e[i]+g[1].length+1}));const T=m.match(jE);if(T){const I=m.indexOf(T[0]);h.push({type:$e.HeaderValue,from:e[i]+I,to:e[i]+I+T[0].length})}}m.length&&(o===-1&&(o=i),a=i),i++,m=t[i]}try{const p=BE.parse(f.join(`
`));p.dateFormat=p.dateFormat==="d/M/y"?V_:To,p.view&&typeof p.view=="string"&&(p.view=Kf(p.view)),p.edit&&typeof p.edit=="string"&&(p.edit=Kf(p.edit)),Ib(p,n,s),n.ranges.push(...h),n.header=p}catch{n.header={dateFormat:To}}if(d.length===2){const p=e[r];n.foldables[p]={startLine:r,startIndex:p,endIndex:e[i]-1,type:"header",foldStartIndex:d.length===2?p+3:p}}else if(o>=0&&a>=0&&a!==o){const p=e[o],y={startLine:o,startIndex:p,endIndex:e[a+1]-1,type:"header",foldStartIndex:p};n.foldables[p]=y}return i}var VE={exports:{}};(function(t){var e;(function(){e=t.exports})(),e.foldLength=75,e.newLineChar=`\r
`,e.helpers={updateTimezones:function(n){var s,r,i,o,a,l;if(!n||n.name!=="vcalendar")return n;for(s=n.getAllSubcomponents(),r=[],i={},a=0;a<s.length;a++)s[a].name==="vtimezone"?(l=s[a].getFirstProperty("tzid").getFirstValue(),i[l]=s[a]):r=r.concat(s[a].getAllProperties());for(o={},a=0;a<r.length;a++)(l=r[a].getParameter("tzid"))&&(o[l]=!0);for(a in i)i.hasOwnProperty(a)&&!o[a]&&n.removeSubcomponent(i[a]);for(a in o)o.hasOwnProperty(a)&&!i[a]&&e.TimezoneService.has(a)&&n.addSubcomponent(e.TimezoneService.get(a).component);return n},isStrictlyNaN:function(n){return typeof n=="number"&&isNaN(n)},strictParseInt:function(n){var s=parseInt(n,10);if(e.helpers.isStrictlyNaN(s))throw new Error('Could not extract integer from "'+n+'"');return s},formatClassType:function(s,r){if(!(typeof s>"u"))return s instanceof r?s:new r(s)},unescapedIndexOf:function(n,s,r){for(;(r=n.indexOf(s,r))!==-1;)if(r>0&&n[r-1]==="\\")r+=1;else return r;return-1},binsearchInsert:function(n,s,r){if(!n.length)return 0;for(var i=0,o=n.length-1,a,l;i<=o;)if(a=i+Math.floor((o-i)/2),l=r(s,n[a]),l<0)o=a-1;else if(l>0)i=a+1;else break;return l<0?a:l>0?a+1:a},dumpn:function(){e.debug&&(typeof console<"u"&&"log"in console?e.helpers.dumpn=function(s){console.log(s)}:e.helpers.dumpn=function(s){dump(s+`
`)},e.helpers.dumpn(arguments[0]))},clone:function(n,s){if(!n||typeof n!="object")return n;if(n instanceof Date)return new Date(n.getTime());if("clone"in n)return n.clone();if(Array.isArray(n)){for(var r=[],i=0;i<n.length;i++)r.push(s?e.helpers.clone(n[i],!0):n[i]);return r}else{var o={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(s?o[a]=e.helpers.clone(n[a],!0):o[a]=n[a]);return o}},foldline:function(s){for(var r="",i=s||"",o=0,a=0;i.length;){var l=i.codePointAt(o);l<128?++a:l<2048?a+=2:l<65536?a+=3:a+=4,a<e.foldLength+1?o+=l>65535?2:1:(r+=e.newLineChar+" "+i.substring(0,o),i=i.substring(o),o=a=0)}return r.substr(e.newLineChar.length+1)},pad2:function(s){typeof s!="string"&&(typeof s=="number"&&(s=parseInt(s)),s=String(s));var r=s.length;switch(r){case 0:return"00";case 1:return"0"+s;default:return s}},trunc:function(s){return s<0?Math.ceil(s):Math.floor(s)},inherits:function(n,s,r){function i(){}i.prototype=n.prototype,s.prototype=new i,r&&e.helpers.extend(r,s.prototype)},extend:function(n,s){for(var r in n){var i=Object.getOwnPropertyDescriptor(n,r);i&&!Object.getOwnPropertyDescriptor(s,r)&&Object.defineProperty(s,r,i)}return s}},e.design=function(){var n=/\\\\|\\;|\\,|\\[Nn]/g,s=/\\|;|,|\n/g,r=/\\\\|\\,|\\[Nn]/g,i=/\\|,|\n/g;function o(E,G){var F={matches:/.*/,fromICAL:function(Q,ve){return T(Q,E,ve)},toICAL:function(Q,ve){var Be=G;return ve&&(Be=new RegExp(Be.source+"|"+ve)),Q.replace(Be,function(je){switch(je){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case`
`:return"\\n";default:return je}})}};return F}var a={defaultType:"text"},l={defaultType:"text",multiValue:","},c={defaultType:"text",structuredValue:";"},u={defaultType:"integer"},f={defaultType:"date-time",allowedTypes:["date-time","date"]},h={defaultType:"date-time"},d={defaultType:"uri"},m={defaultType:"utc-offset"},p={defaultType:"recur"},y={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function g(E){switch(E){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return`
`;default:return E}}function T(E,G,F){return E.indexOf("\\")===-1?E:(F&&(G=new RegExp(G.source+"|\\\\"+F)),E.replace(G,g))}var I={categories:l,url:d,version:a,uid:a},w={boolean:{values:["TRUE","FALSE"],fromICAL:function(E){switch(E){case"TRUE":return!0;case"FALSE":return!1;default:return!1}},toICAL:function(E){return E?"TRUE":"FALSE"}},float:{matches:/^[+-]?\d+\.\d+$/,fromICAL:function(E){var G=parseFloat(E);return e.helpers.isStrictlyNaN(G)?0:G},toICAL:function(E){return String(E)}},integer:{fromICAL:function(E){var G=parseInt(E);return e.helpers.isStrictlyNaN(G)?0:G},toICAL:function(E){return String(E)}},"utc-offset":{toICAL:function(E){return E.length<7?E.substr(0,3)+E.substr(4,2):E.substr(0,3)+E.substr(4,2)+E.substr(7,2)},fromICAL:function(E){return E.length<6?E.substr(0,3)+":"+E.substr(3,2):E.substr(0,3)+":"+E.substr(3,2)+":"+E.substr(5,2)},decorate:function(E){return e.UtcOffset.fromString(E)},undecorate:function(E){return E.toString()}}},b={cutype:{values:["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"],allowXName:!0,allowIanaToken:!0},"delegated-from":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},"delegated-to":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},encoding:{values:["8BIT","BASE64"]},fbtype:{values:["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],allowXName:!0,allowIanaToken:!0},member:{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},partstat:{values:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"],allowXName:!0,allowIanaToken:!0},range:{values:["THISANDFUTURE"]},related:{values:["START","END"]},reltype:{values:["PARENT","CHILD","SIBLING"],allowXName:!0,allowIanaToken:!0},role:{values:["REQ-PARTICIPANT","CHAIR","OPT-PARTICIPANT","NON-PARTICIPANT"],allowXName:!0,allowIanaToken:!0},rsvp:{values:["TRUE","FALSE"]},"sent-by":{valueType:"cal-address"},tzid:{matches:/^\//},value:{values:["binary","boolean","cal-address","date","date-time","duration","float","integer","period","recur","text","time","uri","utc-offset"],allowXName:!0,allowIanaToken:!0}},S=e.helpers.extend(w,{text:o(n,s),uri:{},binary:{decorate:function(E){return e.Binary.fromString(E)},undecorate:function(E){return E.toString()}},"cal-address":{},date:{decorate:function(E,G){return te.strict?e.Time.fromDateString(E,G):e.Time.fromString(E,G)},undecorate:function(E){return E.toString()},fromICAL:function(E){return!te.strict&&E.length>=15?S["date-time"].fromICAL(E):E.substr(0,4)+"-"+E.substr(4,2)+"-"+E.substr(6,2)},toICAL:function(E){var G=E.length;return G==10?E.substr(0,4)+E.substr(5,2)+E.substr(8,2):G>=19?S["date-time"].toICAL(E):E}},"date-time":{fromICAL:function(E){if(!te.strict&&E.length==8)return S.date.fromICAL(E);var G=E.substr(0,4)+"-"+E.substr(4,2)+"-"+E.substr(6,2)+"T"+E.substr(9,2)+":"+E.substr(11,2)+":"+E.substr(13,2);return E[15]&&E[15]==="Z"&&(G+="Z"),G},toICAL:function(E){var G=E.length;if(G==10&&!te.strict)return S.date.toICAL(E);if(G>=19){var F=E.substr(0,4)+E.substr(5,2)+E.substr(8,5)+E.substr(14,2)+E.substr(17,2);return E[19]&&E[19]==="Z"&&(F+="Z"),F}else return E},decorate:function(E,G){return te.strict?e.Time.fromDateTimeString(E,G):e.Time.fromString(E,G)},undecorate:function(E){return E.toString()}},duration:{decorate:function(E){return e.Duration.fromString(E)},undecorate:function(E){return E.toString()}},period:{fromICAL:function(E){var G=E.split("/");return G[0]=S["date-time"].fromICAL(G[0]),e.Duration.isValueString(G[1])||(G[1]=S["date-time"].fromICAL(G[1])),G},toICAL:function(E){return!te.strict&&E[0].length==10?E[0]=S.date.toICAL(E[0]):E[0]=S["date-time"].toICAL(E[0]),e.Duration.isValueString(E[1])||(!te.strict&&E[1].length==10?E[1]=S.date.toICAL(E[1]):E[1]=S["date-time"].toICAL(E[1])),E.join("/")},decorate:function(E,G){return e.Period.fromJSON(E,G,!te.strict)},undecorate:function(E){return E.toJSON()}},recur:{fromICAL:function(E){return e.Recur._stringToData(E,!0)},toICAL:function(E){var G="";for(var F in E)if(Object.prototype.hasOwnProperty.call(E,F)){var Q=E[F];F=="until"?Q.length>10?Q=S["date-time"].toICAL(Q):Q=S.date.toICAL(Q):F=="wkst"?typeof Q=="number"&&(Q=e.Recur.numericDayToIcalDay(Q)):Array.isArray(Q)&&(Q=Q.join(",")),G+=F.toUpperCase()+"="+Q+";"}return G.substr(0,G.length-1)},decorate:function(G){return e.Recur.fromData(G)},undecorate:function(E){return E.toJSON()}},time:{fromICAL:function(E){if(E.length<6)return E;var G=E.substr(0,2)+":"+E.substr(2,2)+":"+E.substr(4,2);return E[6]==="Z"&&(G+="Z"),G},toICAL:function(E){if(E.length<8)return E;var G=E.substr(0,2)+E.substr(3,2)+E.substr(6,2);return E[8]==="Z"&&(G+="Z"),G}}}),C=e.helpers.extend(I,{action:a,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:a,class:a,comment:a,completed:h,contact:a,created:h,description:a,dtend:f,dtstamp:h,dtstart:f,due:f,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:p,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":h,location:a,method:a,organizer:{defaultType:"cal-address"},"percent-complete":u,priority:u,prodid:a,"related-to":a,repeat:u,rdate:{defaultType:"date-time",allowedTypes:["date-time","date","period"],multiValue:",",detectType:function(E){return E.indexOf("/")!==-1?"period":E.indexOf("T")===-1?"date":"date-time"}},"recurrence-id":f,resources:l,"request-status":c,rrule:p,sequence:u,status:a,summary:a,transp:a,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:m,tzoffsetto:m,tzurl:d,tzid:a,tzname:a}),D=e.helpers.extend(w,{text:o(r,i),uri:o(r,i),date:{decorate:function(E){return e.VCardTime.fromDateAndOrTimeString(E,"date")},undecorate:function(E){return E.toString()},fromICAL:function(E){return E.length==8?S.date.fromICAL(E):E[0]=="-"&&E.length==6?E.substr(0,4)+"-"+E.substr(4):E},toICAL:function(E){return E.length==10?S.date.toICAL(E):E[0]=="-"&&E.length==7?E.substr(0,4)+E.substr(5):E}},time:{decorate:function(E){return e.VCardTime.fromDateAndOrTimeString("T"+E,"time")},undecorate:function(E){return E.toString()},fromICAL:function(E){var G=D.time._splitZone(E,!0),F=G[0],Q=G[1];return Q.length==6?Q=Q.substr(0,2)+":"+Q.substr(2,2)+":"+Q.substr(4,2):Q.length==4&&Q[0]!="-"?Q=Q.substr(0,2)+":"+Q.substr(2,2):Q.length==5&&(Q=Q.substr(0,3)+":"+Q.substr(3,2)),F.length==5&&(F[0]=="-"||F[0]=="+")&&(F=F.substr(0,3)+":"+F.substr(3)),Q+F},toICAL:function(E){var G=D.time._splitZone(E),F=G[0],Q=G[1];return Q.length==8?Q=Q.substr(0,2)+Q.substr(3,2)+Q.substr(6,2):Q.length==5&&Q[0]!="-"?Q=Q.substr(0,2)+Q.substr(3,2):Q.length==6&&(Q=Q.substr(0,3)+Q.substr(4,2)),F.length==6&&(F[0]=="-"||F[0]=="+")&&(F=F.substr(0,3)+F.substr(4)),Q+F},_splitZone:function(E,G){var F=E.length-1,Q=E.length-(G?5:6),ve=E[Q],Be,je;return E[F]=="Z"?(Be=E[F],je=E.substr(0,F)):E.length>6&&(ve=="-"||ve=="+")?(Be=E.substr(Q),je=E.substr(0,Q)):(Be="",je=E),[Be,je]}},"date-time":{decorate:function(E){return e.VCardTime.fromDateAndOrTimeString(E,"date-time")},undecorate:function(E){return E.toString()},fromICAL:function(E){return D["date-and-or-time"].fromICAL(E)},toICAL:function(E){return D["date-and-or-time"].toICAL(E)}},"date-and-or-time":{decorate:function(E){return e.VCardTime.fromDateAndOrTimeString(E,"date-and-or-time")},undecorate:function(E){return E.toString()},fromICAL:function(E){var G=E.split("T");return(G[0]?D.date.fromICAL(G[0]):"")+(G[1]?"T"+D.time.fromICAL(G[1]):"")},toICAL:function(E){var G=E.split("T");return D.date.toICAL(G[0])+(G[1]?"T"+D.time.toICAL(G[1]):"")}},timestamp:S["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/}}),A={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","time","date-time","date-and-or-time","timestamp","boolean","integer","float","utc-offset","language-tag"],allowXName:!0,allowIanaToken:!0}},z=e.helpers.extend(I,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:y,bday:y,caladruri:d,caluri:d,clientpidmap:c,email:a,fburl:d,fn:a,gender:c,geo:d,impp:d,key:d,kind:a,lang:{defaultType:"language-tag"},logo:d,member:d,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:l,note:a,org:{defaultType:"text",structuredValue:";"},photo:d,related:d,rev:{defaultType:"timestamp"},role:a,sound:d,source:d,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:a,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:a}),X=e.helpers.extend(w,{binary:S.binary,date:D.date,"date-time":D["date-time"],"phone-number":{},uri:S.uri,text:S.text,time:S.time,vcard:S.text,"utc-offset":{toICAL:function(E){return E.substr(0,7)},fromICAL:function(E){return E.substr(0,7)},decorate:function(E){return e.UtcOffset.fromString(E)},undecorate:function(E){return E.toString()}}}),L={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","date-time","phone-number","time","boolean","integer","float","utc-offset","vcard","binary"],allowXName:!0,allowIanaToken:!0}},re=e.helpers.extend(I,{fn:a,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:l,photo:{defaultType:"binary",allowedTypes:["binary","uri"]},bday:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(E){return E.indexOf("T")===-1?"date":"date-time"}},adr:{defaultType:"text",structuredValue:";",multiValue:","},label:a,tel:{defaultType:"phone-number"},email:a,mailer:a,tz:{defaultType:"utc-offset",allowedTypes:["utc-offset","text"]},geo:{defaultType:"float",structuredValue:";"},title:a,role:a,logo:{defaultType:"binary",allowedTypes:["binary","uri"]},agent:{defaultType:"vcard",allowedTypes:["vcard","text","uri"]},org:c,note:l,prodid:a,rev:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(E){return E.indexOf("T")===-1?"date":"date-time"}},"sort-string":a,sound:{defaultType:"binary",allowedTypes:["binary","uri"]},class:a,key:{defaultType:"binary",allowedTypes:["binary","text"]}}),he={value:S,param:b,property:C},de={value:D,param:A,property:z},J={value:X,param:L,property:re},te={strict:!0,defaultSet:he,defaultType:"unknown",components:{vcard:de,vcard3:J,vevent:he,vtodo:he,vjournal:he,valarm:he,vtimezone:he,daylight:he,standard:he},icalendar:he,vcard:de,vcard3:J,getDesignSet:function(E){var G=E&&E in te.components;return G?te.components[E]:te.defaultSet}};return te}(),e.stringify=function(){var n=`\r
`,s="unknown",r=e.design,i=e.helpers;function o(l){typeof l[0]=="string"&&(l=[l]);for(var c=0,u=l.length,f="";c<u;c++)f+=o.component(l[c])+n;return f}o.component=function(l,c){var u=l[0].toUpperCase(),f="BEGIN:"+u+n,h=l[1],d=0,m=h.length,p=l[0];for(p==="vcard"&&l[1].length>0&&!(l[1][0][0]==="version"&&l[1][0][3]==="4.0")&&(p="vcard3"),c=c||r.getDesignSet(p);d<m;d++)f+=o.property(h[d],c)+n;for(var y=l[2]||[],g=0,T=y.length;g<T;g++)f+=o.component(y[g],c)+n;return f+="END:"+u,f},o.property=function(l,c,u){var f=l[0].toUpperCase(),h=l[0],d=l[1],m=f,p;for(p in d){var y=d[p];if(d.hasOwnProperty(p)){var I=p in c.param&&c.param[p].multiValue;I&&Array.isArray(y)?(c.param[p].multiValueSeparateDQuote&&(I='"'+I+'"'),y=y.map(o._rfc6868Unescape),y=o.multiValue(y,I,"unknown",null,c)):y=o._rfc6868Unescape(y),m+=";"+p.toUpperCase(),m+="="+o.propertyValue(y)}}if(l.length===3)return m+":";var g=l[2];c||(c=r.defaultSet);var T,I=!1,w=!1,b=!1;return h in c.property?(T=c.property[h],"multiValue"in T&&(I=T.multiValue),"structuredValue"in T&&Array.isArray(l[3])&&(w=T.structuredValue),"defaultType"in T?g===T.defaultType&&(b=!0):g===s&&(b=!0)):g===s&&(b=!0),b||(m+=";VALUE="+g.toUpperCase()),m+=":",I&&w?m+=o.multiValue(l[3],w,g,I,c,w):I?m+=o.multiValue(l.slice(3),I,g,null,c,!1):w?m+=o.multiValue(l[3],w,g,null,c,w):m+=o.value(l[3],g,c,!1),u?m:e.helpers.foldline(m)},o.propertyValue=function(l){return i.unescapedIndexOf(l,",")===-1&&i.unescapedIndexOf(l,":")===-1&&i.unescapedIndexOf(l,";")===-1?l:'"'+l+'"'},o.multiValue=function(l,c,u,f,h,d){for(var m="",p=l.length,y=0;y<p;y++)f&&Array.isArray(l[y])?m+=o.multiValue(l[y],f,u,null,h,d):m+=o.value(l[y],u,h,d),y!==p-1&&(m+=c);return m},o.value=function(l,c,u,f){return c in u.value&&"toICAL"in u.value[c]?u.value[c].toICAL(l,f):l},o._rfc6868Unescape=function(l){return l.replace(/[\n^"]/g,function(c){return a[c]})};var a={'"':"^'","\n":"^n","^":"^^"};return o}(),e.parse=function(){var n=/[^ \t]/,s=":",r=";",i="=",o="unknown",a="text",l=e.design,c=e.helpers;function u(d){this.message=d,this.name="ParserError";try{throw new Error}catch(p){if(p.stack){var m=p.stack.split(`
`);m.shift(),this.stack=m.join(`
`)}}}u.prototype=Error.prototype;function f(d){var m={},p=m.component=[];if(m.stack=[p],f._eachLine(d,function(y,g){f._handleContentLine(g,m)}),m.stack.length>1)throw new u("invalid ical body. component began but did not end");return m=null,p.length==1?p[0]:p}f.property=function(d,m){var p={component:[[],[]],designSet:m||l.defaultSet};return f._handleContentLine(d,p),p.component[1][0]},f.component=function(d){return f(d)},f.ParserError=u,f._handleContentLine=function(d,m){var p=d.indexOf(s),y=d.indexOf(r),g,T,I,w,b={};y!==-1&&p!==-1&&y>p&&(y=-1);var S;if(y!==-1){if(I=d.substring(0,y).toLowerCase(),S=f._parseParameters(d.substring(y),0,m.designSet),S[2]==-1)throw new u("Invalid parameters in '"+d+"'");if(b=S[0],g=S[1].length+S[2]+y,(T=d.substring(g).indexOf(s))!==-1)w=d.substring(g+T+1);else throw new u("Missing parameter value in '"+d+"'")}else if(p!==-1){if(I=d.substring(0,p).toLowerCase(),w=d.substring(p+1),I==="begin"){var C=[w.toLowerCase(),[],[]];m.stack.length===1?m.component.push(C):m.component[2].push(C),m.stack.push(m.component),m.component=C,m.designSet||(m.designSet=l.getDesignSet(m.component[0]));return}else if(I==="end"){m.component=m.stack.pop();return}}else throw new u('invalid line (no token ";" or ":") "'+d+'"');var D,A=!1,z=!1,X;I in m.designSet.property&&(X=m.designSet.property[I],"multiValue"in X&&(A=X.multiValue),"structuredValue"in X&&(z=X.structuredValue),w&&"detectType"in X&&(D=X.detectType(w))),D||("value"in b?D=b.value.toLowerCase():X?D=X.defaultType:D=o),delete b.value;var L;A&&z?(w=f._parseMultiValue(w,z,D,[],A,m.designSet,z),L=[I,b,D,w]):A?(L=[I,b,D],f._parseMultiValue(w,A,D,L,null,m.designSet,!1)):z?(w=f._parseMultiValue(w,z,D,[],null,m.designSet,z),L=[I,b,D,w]):(w=f._parseValue(w,D,m.designSet,!1),L=[I,b,D,w]),m.component[0]==="vcard"&&m.component[1].length===0&&!(I==="version"&&w==="4.0")&&(m.designSet=l.getDesignSet("vcard3")),m.component[1].push(L)},f._parseValue=function(d,m,p,y){return m in p.value&&"fromICAL"in p.value[m]?p.value[m].fromICAL(d,y):d},f._parseParameters=function(d,m,p){for(var y=m,g=0,T=i,I={},w,b,S,C=-1,D,A,z;g!==!1&&(g=c.unescapedIndexOf(d,T,g+1))!==-1;){if(w=d.substr(y+1,g-y-1),w.length==0)throw new u("Empty parameter name in '"+d+"'");b=w.toLowerCase(),z=!1,A=!1,b in p.param&&p.param[b].valueType?D=p.param[b].valueType:D=a,b in p.param&&(A=p.param[b].multiValue,p.param[b].multiValueSeparateDQuote&&(z=f._rfc6868Escape('"'+A+'"')));var X=d[g+1];if(X==='"'){if(C=g+2,g=c.unescapedIndexOf(d,'"',C),A&&g!=-1)for(var L=!0;L;)d[g+1]==A&&d[g+2]=='"'?g=c.unescapedIndexOf(d,'"',g+3):L=!1;if(g===-1)throw new u('invalid line (no matching double quote) "'+d+'"');S=d.substr(C,g-C),y=c.unescapedIndexOf(d,r,g),y===-1&&(g=!1)}else{C=g+1;var re=c.unescapedIndexOf(d,r,C),he=c.unescapedIndexOf(d,s,C);he!==-1&&re>he?(re=he,g=!1):re===-1?(he===-1?re=d.length:re=he,g=!1):(y=re,g=re),S=d.substr(C,re-C)}if(S=f._rfc6868Escape(S),A){var de=z||A;S=f._parseMultiValue(S,de,D,[],null,p)}else S=f._parseValue(S,D,p);A&&b in I?Array.isArray(I[b])?I[b].push(S):I[b]=[I[b],S]:I[b]=S}return[I,S,C]},f._rfc6868Escape=function(d){return d.replace(/\^['n^]/g,function(m){return h[m]})};var h={"^'":'"',"^n":`
`,"^^":"^"};return f._parseMultiValue=function(d,m,p,y,g,T,I){var w=0,b=0,S;if(m.length===0)return d;for(;(w=c.unescapedIndexOf(d,m,b))!==-1;)S=d.substr(b,w-b),g?S=f._parseMultiValue(S,g,p,[],null,T,I):S=f._parseValue(S,p,T,I),y.push(S),b=w+m.length;return S=d.substr(b),g?S=f._parseMultiValue(S,g,p,[],null,T,I):S=f._parseValue(S,p,T,I),y.push(S),y.length==1?y[0]:y},f._eachLine=function(d,m){var p=d.length,y=d.search(n),g=y,T,I,w;do g=d.indexOf(`
`,y)+1,g>1&&d[g-2]==="\r"?w=2:w=1,g===0&&(g=p,w=0),I=d[y],I===" "||I==="	"?T+=d.substr(y+1,g-y-(w+1)):(T&&m(null,T),T=d.substr(y,g-y-w)),y=g;while(g!==p);T=T.trim(),T.length&&m(null,T)},f}(),e.Component=function(){var n=1,s=2,r=0;function i(o,a){typeof o=="string"&&(o=[o,[],[]]),this.jCal=o,this.parent=a||null}return i.prototype={_hydratedPropertyCount:0,_hydratedComponentCount:0,get name(){return this.jCal[r]},get _designSet(){var o=this.parent&&this.parent._designSet;return o||e.design.getDesignSet(this.name)},_hydrateComponent:function(o){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[o])return this._components[o];var a=new i(this.jCal[s][o],this);return this._hydratedComponentCount++,this._components[o]=a},_hydrateProperty:function(o){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[o])return this._properties[o];var a=new e.Property(this.jCal[n][o],this);return this._hydratedPropertyCount++,this._properties[o]=a},getFirstSubcomponent:function(o){if(o){for(var a=0,l=this.jCal[s],c=l.length;a<c;a++)if(l[a][r]===o){var u=this._hydrateComponent(a);return u}}else if(this.jCal[s].length)return this._hydrateComponent(0);return null},getAllSubcomponents:function(o){var a=this.jCal[s].length,l=0;if(o){for(var c=this.jCal[s],u=[];l<a;l++)o===c[l][r]&&u.push(this._hydrateComponent(l));return u}else{if(!this._components||this._hydratedComponentCount!==a)for(;l<a;l++)this._hydrateComponent(l);return this._components||[]}},hasProperty:function(o){for(var a=this.jCal[n],l=a.length,c=0;c<l;c++)if(a[c][r]===o)return!0;return!1},getFirstProperty:function(o){if(o){for(var a=0,l=this.jCal[n],c=l.length;a<c;a++)if(l[a][r]===o){var u=this._hydrateProperty(a);return u}}else if(this.jCal[n].length)return this._hydrateProperty(0);return null},getFirstPropertyValue:function(o){var a=this.getFirstProperty(o);return a?a.getFirstValue():null},getAllProperties:function(o){var a=this.jCal[n].length,l=0;if(o){for(var c=this.jCal[n],u=[];l<a;l++)o===c[l][r]&&u.push(this._hydrateProperty(l));return u}else{if(!this._properties||this._hydratedPropertyCount!==a)for(;l<a;l++)this._hydrateProperty(l);return this._properties||[]}},_removeObjectByIndex:function(o,a,l){if(a=a||[],a[l]){var c=a[l];"parent"in c&&(c.parent=null)}a.splice(l,1),this.jCal[o].splice(l,1)},_removeObject:function(o,a,l){var c=0,u=this.jCal[o],f=u.length,h=this[a];if(typeof l=="string"){for(;c<f;c++)if(u[c][r]===l)return this._removeObjectByIndex(o,h,c),!0}else if(h){for(;c<f;c++)if(h[c]&&h[c]===l)return this._removeObjectByIndex(o,h,c),!0}return!1},_removeAllObjects:function(o,a,l){for(var c=this[a],u=this.jCal[o],f=u.length-1;f>=0;f--)(!l||u[f][r]===l)&&this._removeObjectByIndex(o,c,f)},addSubcomponent:function(o){this._components||(this._components=[],this._hydratedComponentCount=0),o.parent&&o.parent.removeSubcomponent(o);var a=this.jCal[s].push(o.jCal);return this._components[a-1]=o,this._hydratedComponentCount++,o.parent=this,o},removeSubcomponent:function(o){var a=this._removeObject(s,"_components",o);return a&&this._hydratedComponentCount--,a},removeAllSubcomponents:function(o){var a=this._removeAllObjects(s,"_components",o);return this._hydratedComponentCount=0,a},addProperty:function(o){if(!(o instanceof e.Property))throw new TypeError("must instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),o.parent&&o.parent.removeProperty(o);var a=this.jCal[n].push(o.jCal);return this._properties[a-1]=o,this._hydratedPropertyCount++,o.parent=this,o},addPropertyWithValue:function(o,a){var l=new e.Property(o);return l.setValue(a),this.addProperty(l),l},updatePropertyWithValue:function(o,a){var l=this.getFirstProperty(o);return l?l.setValue(a):l=this.addPropertyWithValue(o,a),l},removeProperty:function(o){var a=this._removeObject(n,"_properties",o);return a&&this._hydratedPropertyCount--,a},removeAllProperties:function(o){var a=this._removeAllObjects(n,"_properties",o);return this._hydratedPropertyCount=0,a},toJSON:function(){return this.jCal},toString:function(){return e.stringify.component(this.jCal,this._designSet)}},i.fromString=function(o){return new i(e.parse.component(o))},i}(),e.Property=function(){var n=0,s=1,r=2,i=3,o=e.design;function a(l,c){this._parent=c||null,typeof l=="string"?(this.jCal=[l,{},o.defaultType],this.jCal[r]=this.getDefaultType()):this.jCal=l,this._updateType()}return a.prototype={get type(){return this.jCal[r]},get name(){return this.jCal[n]},get parent(){return this._parent},set parent(l){var c=!this._parent||l&&l._designSet!=this._parent._designSet;return this._parent=l,this.type==o.defaultType&&c&&(this.jCal[r]=this.getDefaultType(),this._updateType()),l},get _designSet(){return this.parent?this.parent._designSet:o.defaultSet},_updateType:function(){var l=this._designSet;this.type in l.value&&(l.value[this.type],"decorate"in l.value[this.type]?this.isDecorated=!0:this.isDecorated=!1,this.name in l.property&&(this.isMultiValue="multiValue"in l.property[this.name],this.isStructuredValue="structuredValue"in l.property[this.name]))},_hydrateValue:function(l){return this._values&&this._values[l]?this._values[l]:this.jCal.length<=i+l?null:this.isDecorated?(this._values||(this._values=[]),this._values[l]=this._decorate(this.jCal[i+l])):this.jCal[i+l]},_decorate:function(l){return this._designSet.value[this.type].decorate(l,this)},_undecorate:function(l){return this._designSet.value[this.type].undecorate(l,this)},_setDecoratedValue:function(l,c){this._values||(this._values=[]),typeof l=="object"&&"icaltype"in l?(this.jCal[i+c]=this._undecorate(l),this._values[c]=l):(this.jCal[i+c]=l,this._values[c]=this._decorate(l))},getParameter:function(l){if(l in this.jCal[s])return this.jCal[s][l]},getFirstParameter:function(l){var c=this.getParameter(l);return Array.isArray(c)?c[0]:c},setParameter:function(l,c){var u=l.toLowerCase();typeof c=="string"&&u in this._designSet.param&&"multiValue"in this._designSet.param[u]&&(c=[c]),this.jCal[s][l]=c},removeParameter:function(l){delete this.jCal[s][l]},getDefaultType:function(){var l=this.jCal[n],c=this._designSet;if(l in c.property){var u=c.property[l];if("defaultType"in u)return u.defaultType}return o.defaultType},resetType:function(l){this.removeAllValues(),this.jCal[r]=l,this._updateType()},getFirstValue:function(){return this._hydrateValue(0)},getValues:function(){var l=this.jCal.length-i;if(l<1)return[];for(var c=0,u=[];c<l;c++)u[c]=this._hydrateValue(c);return u},removeAllValues:function(){this._values&&(this._values.length=0),this.jCal.length=3},setValues:function(l){if(!this.isMultiValue)throw new Error(this.name+`: does not not support mulitValue.
override isMultiValue`);var c=l.length,u=0;if(this.removeAllValues(),c>0&&typeof l[0]=="object"&&"icaltype"in l[0]&&this.resetType(l[0].icaltype),this.isDecorated)for(;u<c;u++)this._setDecoratedValue(l[u],u);else for(;u<c;u++)this.jCal[i+u]=l[u]},setValue:function(l){this.removeAllValues(),typeof l=="object"&&"icaltype"in l&&this.resetType(l.icaltype),this.isDecorated?this._setDecoratedValue(l,0):this.jCal[i]=l},toJSON:function(){return this.jCal},toICALString:function(){return e.stringify.property(this.jCal,this._designSet,!0)}},a.fromString=function(l,c){return new a(e.parse.property(l,c))},a}(),e.UtcOffset=function(){function n(s){this.fromData(s)}return n.prototype={hours:0,minutes:0,factor:1,icaltype:"utc-offset",clone:function(){return e.UtcOffset.fromSeconds(this.toSeconds())},fromData:function(s){if(s)for(var r in s)s.hasOwnProperty(r)&&(this[r]=s[r]);this._normalize()},fromSeconds:function(s){var r=Math.abs(s);return this.factor=s<0?-1:1,this.hours=e.helpers.trunc(r/3600),r-=this.hours*3600,this.minutes=e.helpers.trunc(r/60),this},toSeconds:function(){return this.factor*(60*this.minutes+3600*this.hours)},compare:function(r){var i=this.toSeconds(),o=r.toSeconds();return(i>o)-(o>i)},_normalize:function(){for(var s=this.toSeconds(),r=this.factor;s<-43200;)s+=97200;for(;s>50400;)s-=97200;this.fromSeconds(s),s==0&&(this.factor=r)},toICALString:function(){return e.design.icalendar.value["utc-offset"].toICAL(this.toString())},toString:function(){return(this.factor==1?"+":"-")+e.helpers.pad2(this.hours)+":"+e.helpers.pad2(this.minutes)}},n.fromString=function(s){var r={};return r.factor=s[0]==="+"?1:-1,r.hours=e.helpers.strictParseInt(s.substr(1,2)),r.minutes=e.helpers.strictParseInt(s.substr(4,2)),new e.UtcOffset(r)},n.fromSeconds=function(s){var r=new n;return r.fromSeconds(s),r},n}(),e.Binary=function(){function n(s){this.value=s}return n.prototype={icaltype:"binary",decodeValue:function(){return this._b64_decode(this.value)},setEncodedValue:function(r){this.value=this._b64_encode(r)},_b64_encode:function(r){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,a,l,c,u,f,h,d,m=0,p=0,y="",g=[];if(!r)return r;do o=r.charCodeAt(m++),a=r.charCodeAt(m++),l=r.charCodeAt(m++),d=o<<16|a<<8|l,c=d>>18&63,u=d>>12&63,f=d>>6&63,h=d&63,g[p++]=i.charAt(c)+i.charAt(u)+i.charAt(f)+i.charAt(h);while(m<r.length);y=g.join("");var T=r.length%3;return(T?y.slice(0,T-3):y)+"===".slice(T||3)},_b64_decode:function(r){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,a,l,c,u,f,h,d,m=0,p=0,y="",g=[];if(!r)return r;r+="";do c=i.indexOf(r.charAt(m++)),u=i.indexOf(r.charAt(m++)),f=i.indexOf(r.charAt(m++)),h=i.indexOf(r.charAt(m++)),d=c<<18|u<<12|f<<6|h,o=d>>16&255,a=d>>8&255,l=d&255,f==64?g[p++]=String.fromCharCode(o):h==64?g[p++]=String.fromCharCode(o,a):g[p++]=String.fromCharCode(o,a,l);while(m<r.length);return y=g.join(""),y},toString:function(){return this.value}},n.fromString=function(s){return new n(s)},n}(),function(){e.Period=function(s){if(this.wrappedJSObject=this,s&&"start"in s){if(s.start&&!(s.start instanceof e.Time))throw new TypeError(".start must be an instance of ICAL.Time");this.start=s.start}if(s&&s.end&&s.duration)throw new Error("cannot accept both end and duration");if(s&&"end"in s){if(s.end&&!(s.end instanceof e.Time))throw new TypeError(".end must be an instance of ICAL.Time");this.end=s.end}if(s&&"duration"in s){if(s.duration&&!(s.duration instanceof e.Duration))throw new TypeError(".duration must be an instance of ICAL.Duration");this.duration=s.duration}},e.Period.prototype={start:null,end:null,duration:null,icalclass:"icalperiod",icaltype:"period",clone:function(){return e.Period.fromData({start:this.start?this.start.clone():null,end:this.end?this.end.clone():null,duration:this.duration?this.duration.clone():null})},getDuration:function(){return this.duration?this.duration:this.end.subtractDate(this.start)},getEnd:function(){if(this.end)return this.end;var n=this.start.clone();return n.addDuration(this.duration),n},toString:function(){return this.start+"/"+(this.end||this.duration)},toJSON:function(){return[this.start.toString(),(this.end||this.duration).toString()]},toICALString:function(){return this.start.toICALString()+"/"+(this.end||this.duration).toICALString()}},e.Period.fromString=function(s,r){var i=s.split("/");if(i.length!==2)throw new Error('Invalid string value: "'+s+'" must contain a "/" char.');var o={start:e.Time.fromDateTimeString(i[0],r)},a=i[1];return e.Duration.isValueString(a)?o.duration=e.Duration.fromString(a):o.end=e.Time.fromDateTimeString(a,r),new e.Period(o)},e.Period.fromData=function(s){return new e.Period(s)},e.Period.fromJSON=function(n,s,r){function i(o,a){return r?e.Time.fromString(o,a):e.Time.fromDateTimeString(o,a)}return e.Duration.isValueString(n[1])?e.Period.fromData({start:i(n[0],s),duration:e.Duration.fromString(n[1])}):e.Period.fromData({start:i(n[0],s),end:i(n[1],s)})}}(),function(){var n=/([PDWHMTS]{1,1})/;e.Duration=function(i){this.wrappedJSObject=this,this.fromData(i)},e.Duration.prototype={weeks:0,days:0,hours:0,minutes:0,seconds:0,isNegative:!1,icalclass:"icalduration",icaltype:"duration",clone:function(){return e.Duration.fromData(this)},toSeconds:function(){var i=this.seconds+60*this.minutes+3600*this.hours+86400*this.days+604800*this.weeks;return this.isNegative?-i:i},fromSeconds:function(i){var o=Math.abs(i);return this.isNegative=i<0,this.days=e.helpers.trunc(o/86400),this.days%7==0?(this.weeks=this.days/7,this.days=0):this.weeks=0,o-=(this.days+7*this.weeks)*86400,this.hours=e.helpers.trunc(o/3600),o-=this.hours*3600,this.minutes=e.helpers.trunc(o/60),o-=this.minutes*60,this.seconds=o,this},fromData:function(i){var o=["weeks","days","hours","minutes","seconds","isNegative"];for(var a in o)if(o.hasOwnProperty(a)){var l=o[a];i&&l in i?this[l]=i[l]:this[l]=0}},reset:function(){this.isNegative=!1,this.weeks=0,this.days=0,this.hours=0,this.minutes=0,this.seconds=0},compare:function(i){var o=this.toSeconds(),a=i.toSeconds();return(o>a)-(o<a)},normalize:function(){this.fromSeconds(this.toSeconds())},toString:function(){if(this.toSeconds()==0)return"PT0S";var i="";return this.isNegative&&(i+="-"),i+="P",this.weeks&&(i+=this.weeks+"W"),this.days&&(i+=this.days+"D"),(this.hours||this.minutes||this.seconds)&&(i+="T",this.hours&&(i+=this.hours+"H"),this.minutes&&(i+=this.minutes+"M"),this.seconds&&(i+=this.seconds+"S")),i},toICALString:function(){return this.toString()}},e.Duration.fromSeconds=function(i){return new e.Duration().fromSeconds(i)};function s(r,i,o){var a;switch(r){case"P":i&&i==="-"?o.isNegative=!0:o.isNegative=!1;break;case"D":a="days";break;case"W":a="weeks";break;case"H":a="hours";break;case"M":a="minutes";break;case"S":a="seconds";break;default:return 0}if(a){if(!i&&i!==0)throw new Error('invalid duration value: Missing number before "'+r+'"');var l=parseInt(i,10);if(e.helpers.isStrictlyNaN(l))throw new Error('invalid duration value: Invalid number "'+i+'" before "'+r+'"');o[a]=l}return 1}e.Duration.isValueString=function(r){return r[0]==="P"||r[1]==="P"},e.Duration.fromString=function(i){for(var o=0,a=Object.create(null),l=0;(o=i.search(n))!==-1;){var c=i[o],u=i.substr(0,o);i=i.substr(o+1),l+=s(c,u,a)}if(l<2)throw new Error('invalid duration value: Not enough duration components in "'+i+'"');return new e.Duration(a)},e.Duration.fromData=function(i){return new e.Duration(i)}}(),function(){var n=["tzid","location","tznames","latitude","longitude"];e.Timezone=function(r){this.wrappedJSObject=this,this.fromData(r)},e.Timezone.prototype={tzid:"",location:"",tznames:"",latitude:0,longitude:0,component:null,expandedUntilYear:0,icalclass:"icaltimezone",fromData:function(r){if(this.expandedUntilYear=0,this.changes=[],r instanceof e.Component)this.component=r;else{if(r&&"component"in r)if(typeof r.component=="string"){var i=e.parse(r.component);this.component=new e.Component(i)}else r.component instanceof e.Component?this.component=r.component:this.component=null;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o];r&&a in r&&(this[a]=r[a])}}return this.component instanceof e.Component&&!this.tzid&&(this.tzid=this.component.getFirstPropertyValue("tzid")),this},utcOffset:function(r){if(this==e.Timezone.utcTimezone||this==e.Timezone.localTimezone||(this._ensureCoverage(r.year),!this.changes.length))return 0;for(var i={year:r.year,month:r.month,day:r.day,hour:r.hour,minute:r.minute,second:r.second},o=this._findNearbyChange(i),a=-1,l=1;;){var c=e.helpers.clone(this.changes[o],!0);c.utcOffset<c.prevUtcOffset?e.Timezone.adjust_change(c,0,0,0,c.utcOffset):e.Timezone.adjust_change(c,0,0,0,c.prevUtcOffset);var u=e.Timezone._compare_change_fn(i,c);if(u>=0?a=o:l=-1,l==-1&&a!=-1)break;if(o+=l,o<0)return 0;if(o>=this.changes.length)break}var f=this.changes[a],h=f.utcOffset-f.prevUtcOffset;if(h<0&&a>0){var d=e.helpers.clone(f,!0);if(e.Timezone.adjust_change(d,0,0,0,d.prevUtcOffset),e.Timezone._compare_change_fn(i,d)<0){var m=this.changes[a-1],p=!1;f.is_daylight!=p&&m.is_daylight==p&&(f=m)}}return f.utcOffset},_findNearbyChange:function(r){var i=e.helpers.binsearchInsert(this.changes,r,e.Timezone._compare_change_fn);return i>=this.changes.length?this.changes.length-1:i},_ensureCoverage:function(s){if(e.Timezone._minimumExpansionYear==-1){var r=e.Time.now();e.Timezone._minimumExpansionYear=r.year}var i=s;if(i<e.Timezone._minimumExpansionYear&&(i=e.Timezone._minimumExpansionYear),i+=e.Timezone.EXTRA_COVERAGE,i>e.Timezone.MAX_YEAR&&(i=e.Timezone.MAX_YEAR),!this.changes.length||this.expandedUntilYear<s){for(var o=this.component.getAllSubcomponents(),a=o.length,l=0;l<a;l++)this._expandComponent(o[l],i,this.changes);this.changes.sort(e.Timezone._compare_change_fn),this.expandedUntilYear=i}},_expandComponent:function(s,r,i){if(!s.hasProperty("dtstart")||!s.hasProperty("tzoffsetto")||!s.hasProperty("tzoffsetfrom"))return null;var o=s.getFirstProperty("dtstart").getFirstValue(),a;function l(g){return g.factor*(g.hours*3600+g.minutes*60)}function c(){var g={};return g.is_daylight=s.name=="daylight",g.utcOffset=l(s.getFirstProperty("tzoffsetto").getFirstValue()),g.prevUtcOffset=l(s.getFirstProperty("tzoffsetfrom").getFirstValue()),g}if(!s.hasProperty("rrule")&&!s.hasProperty("rdate"))a=c(),a.year=o.year,a.month=o.month,a.day=o.day,a.hour=o.hour,a.minute=o.minute,a.second=o.second,e.Timezone.adjust_change(a,0,0,0,-a.prevUtcOffset),i.push(a);else{var u=s.getAllProperties("rdate");for(var f in u)if(u.hasOwnProperty(f)){var h=u[f],d=h.getFirstValue();a=c(),a.year=d.year,a.month=d.month,a.day=d.day,d.isDate?(a.hour=o.hour,a.minute=o.minute,a.second=o.second,o.zone!=e.Timezone.utcTimezone&&e.Timezone.adjust_change(a,0,0,0,-a.prevUtcOffset)):(a.hour=d.hour,a.minute=d.minute,a.second=d.second,d.zone!=e.Timezone.utcTimezone&&e.Timezone.adjust_change(a,0,0,0,-a.prevUtcOffset)),i.push(a)}var m=s.getFirstProperty("rrule");if(m){m=m.getFirstValue(),a=c(),m.until&&m.until.zone==e.Timezone.utcTimezone&&(m.until.adjust(0,0,0,a.prevUtcOffset),m.until.zone=e.Timezone.localTimezone);for(var p=m.iterator(o),y;(y=p.next())&&(a=c(),!(y.year>r||!y));)a.year=y.year,a.month=y.month,a.day=y.day,a.hour=y.hour,a.minute=y.minute,a.second=y.second,a.isDate=y.isDate,e.Timezone.adjust_change(a,0,0,0,-a.prevUtcOffset),i.push(a)}}return i},toString:function(){return this.tznames?this.tznames:this.tzid}},e.Timezone._compare_change_fn=function(r,i){return r.year<i.year?-1:r.year>i.year?1:r.month<i.month?-1:r.month>i.month?1:r.day<i.day?-1:r.day>i.day?1:r.hour<i.hour?-1:r.hour>i.hour?1:r.minute<i.minute?-1:r.minute>i.minute?1:r.second<i.second?-1:r.second>i.second?1:0},e.Timezone.convert_time=function(r,i,o){if(r.isDate||i.tzid==o.tzid||i==e.Timezone.localTimezone||o==e.Timezone.localTimezone)return r.zone=o,r;var a=i.utcOffset(r);return r.adjust(0,0,0,-a),a=o.utcOffset(r),r.adjust(0,0,0,a),null},e.Timezone.fromData=function(r){var i=new e.Timezone;return i.fromData(r)},e.Timezone.utcTimezone=e.Timezone.fromData({tzid:"UTC"}),e.Timezone.localTimezone=e.Timezone.fromData({tzid:"floating"}),e.Timezone.adjust_change=function(r,i,o,a,l){return e.Time.prototype.adjust.call(r,i,o,a,l,r)},e.Timezone._minimumExpansionYear=-1,e.Timezone.MAX_YEAR=2035,e.Timezone.EXTRA_COVERAGE=5}(),e.TimezoneService=function(){var n,s={get count(){return Object.keys(n).length},reset:function(){n=Object.create(null);var r=e.Timezone.utcTimezone;n.Z=r,n.UTC=r,n.GMT=r},has:function(r){return!!n[r]},get:function(r){return n[r]},register:function(r,i){if(r instanceof e.Component&&r.name==="vtimezone"&&(i=new e.Timezone(r),r=i.tzid),i instanceof e.Timezone)n[r]=i;else throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component")},remove:function(r){return delete n[r]}};return s.reset(),s}(),function(){e.Time=function(s,r){this.wrappedJSObject=this;var i=this._time=Object.create(null);i.year=0,i.month=1,i.day=1,i.hour=0,i.minute=0,i.second=0,i.isDate=!1,this.fromData(s,r)},e.Time._dowCache={},e.Time._wnCache={},e.Time.prototype={icalclass:"icaltime",_cachedUnixTime:null,get icaltype(){return this.isDate?"date":"date-time"},zone:null,_pendingNormalization:!1,clone:function(){return new e.Time(this._time,this.zone)},reset:function(){this.fromData(e.Time.epochTime),this.zone=e.Timezone.utcTimezone},resetTo:function(s,r,i,o,a,l,c){this.fromData({year:s,month:r,day:i,hour:o,minute:a,second:l,zone:c})},fromJSDate:function(s,r){return s?r?(this.zone=e.Timezone.utcTimezone,this.year=s.getUTCFullYear(),this.month=s.getUTCMonth()+1,this.day=s.getUTCDate(),this.hour=s.getUTCHours(),this.minute=s.getUTCMinutes(),this.second=s.getUTCSeconds()):(this.zone=e.Timezone.localTimezone,this.year=s.getFullYear(),this.month=s.getMonth()+1,this.day=s.getDate(),this.hour=s.getHours(),this.minute=s.getMinutes(),this.second=s.getSeconds()):this.reset(),this._cachedUnixTime=null,this},fromData:function(s,r){if(s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i)){if(i==="icaltype")continue;this[i]=s[i]}}if(r&&(this.zone=r),s&&!("isDate"in s)?this.isDate=!("hour"in s):s&&"isDate"in s&&(this.isDate=s.isDate),s&&"timezone"in s){var o=e.TimezoneService.get(s.timezone);this.zone=o||e.Timezone.localTimezone}return s&&"zone"in s&&(this.zone=s.zone),this.zone||(this.zone=e.Timezone.localTimezone),this._cachedUnixTime=null,this},dayOfWeek:function(s){var r=s||e.Time.SUNDAY,i=(this.year<<12)+(this.month<<8)+(this.day<<3)+r;if(i in e.Time._dowCache)return e.Time._dowCache[i];var o=this.day,a=this.month+(this.month<3?12:0),l=this.year-(this.month<3?1:0),c=o+l+e.helpers.trunc((a+1)*26/10)+e.helpers.trunc(l/4);return c+=e.helpers.trunc(l/100)*6+e.helpers.trunc(l/400),c=(c+7-r)%7+1,e.Time._dowCache[i]=c,c},dayOfYear:function(){var s=e.Time.isLeapYear(this.year)?1:0,r=e.Time.daysInYearPassedMonth;return r[s][this.month-1]+this.day},startOfWeek:function(s){var r=s||e.Time.SUNDAY,i=this.clone();return i.day-=(this.dayOfWeek()+7-r)%7,i.isDate=!0,i.hour=0,i.minute=0,i.second=0,i},endOfWeek:function(s){var r=s||e.Time.SUNDAY,i=this.clone();return i.day+=(7-this.dayOfWeek()+r-e.Time.SUNDAY)%7,i.isDate=!0,i.hour=0,i.minute=0,i.second=0,i},startOfMonth:function(){var s=this.clone();return s.day=1,s.isDate=!0,s.hour=0,s.minute=0,s.second=0,s},endOfMonth:function(){var s=this.clone();return s.day=e.Time.daysInMonth(s.month,s.year),s.isDate=!0,s.hour=0,s.minute=0,s.second=0,s},startOfYear:function(){var s=this.clone();return s.day=1,s.month=1,s.isDate=!0,s.hour=0,s.minute=0,s.second=0,s},endOfYear:function(){var s=this.clone();return s.day=31,s.month=12,s.isDate=!0,s.hour=0,s.minute=0,s.second=0,s},startDoyWeek:function(s){var r=s||e.Time.SUNDAY,i=this.dayOfWeek()-r;return i<0&&(i+=7),this.dayOfYear()-i},getDominicalLetter:function(){return e.Time.getDominicalLetter(this.year)},nthWeekDay:function(s,r){var i=e.Time.daysInMonth(this.month,this.year),o,a=r,l=0,c=this.clone();if(a>=0){c.day=1,a!=0&&a--,l=c.day;var u=c.dayOfWeek(),f=s-u;f<0&&(f+=7),l+=f,l-=s,o=s}else{c.day=i;var h=c.dayOfWeek();a++,o=h-s,o<0&&(o+=7),o=i-o}return o+=a*7,l+o},isNthWeekDay:function(n,s){var r=this.dayOfWeek();if(s===0&&r===n)return!0;var i=this.nthWeekDay(n,s);return i===this.day},weekNumber:function(s){var r=(this.year<<12)+(this.month<<8)+(this.day<<3)+s;if(r in e.Time._wnCache)return e.Time._wnCache[r];var i,o=this.clone();o.isDate=!0;var a=this.year;o.month==12&&o.day>25?(i=e.Time.weekOneStarts(a+1,s),o.compare(i)<0?i=e.Time.weekOneStarts(a,s):a++):(i=e.Time.weekOneStarts(a,s),o.compare(i)<0&&(i=e.Time.weekOneStarts(--a,s)));var l=o.subtractDate(i).toSeconds()/86400,c=e.helpers.trunc(l/7)+1;return e.Time._wnCache[r]=c,c},addDuration:function(s){var r=s.isNegative?-1:1,i=this.second,o=this.minute,a=this.hour,l=this.day;i+=r*s.seconds,o+=r*s.minutes,a+=r*s.hours,l+=r*s.days,l+=r*7*s.weeks,this.second=i,this.minute=o,this.hour=a,this.day=l,this._cachedUnixTime=null},subtractDate:function(s){var r=this.toUnixTime()+this.utcOffset(),i=s.toUnixTime()+s.utcOffset();return e.Duration.fromSeconds(r-i)},subtractDateTz:function(s){var r=this.toUnixTime(),i=s.toUnixTime();return e.Duration.fromSeconds(r-i)},compare:function(s){var r=this.toUnixTime(),i=s.toUnixTime();return r>i?1:i>r?-1:0},compareDateOnlyTz:function(s,r){function i(c){return e.Time._cmp_attr(o,a,c)}var o=this.convertToZone(r),a=s.convertToZone(r),l=0;return(l=i("year"))!=0||(l=i("month"))!=0||(l=i("day"))!=0,l},convertToZone:function(s){var r=this.clone(),i=this.zone.tzid==s.tzid;return!this.isDate&&!i&&e.Timezone.convert_time(r,this.zone,s),r.zone=s,r},utcOffset:function(){return this.zone==e.Timezone.localTimezone||this.zone==e.Timezone.utcTimezone?0:this.zone.utcOffset(this)},toICALString:function(){var n=this.toString();return n.length>10?e.design.icalendar.value["date-time"].toICAL(n):e.design.icalendar.value.date.toICAL(n)},toString:function(){var s=this.year+"-"+e.helpers.pad2(this.month)+"-"+e.helpers.pad2(this.day);return this.isDate||(s+="T"+e.helpers.pad2(this.hour)+":"+e.helpers.pad2(this.minute)+":"+e.helpers.pad2(this.second),this.zone===e.Timezone.utcTimezone&&(s+="Z")),s},toJSDate:function(){return this.zone==e.Timezone.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(this.toUnixTime()*1e3)},_normalize:function(){return this._time.isDate,this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this},adjust:function(s,r,i,o,a){var l,c,u=0,f=0,h,d,m,p,y,g=a||this._time;if(g.isDate||(h=g.second+o,g.second=h%60,l=e.helpers.trunc(h/60),g.second<0&&(g.second+=60,l--),d=g.minute+i+l,g.minute=d%60,c=e.helpers.trunc(d/60),g.minute<0&&(g.minute+=60,c--),m=g.hour+r+c,g.hour=m%24,u=e.helpers.trunc(m/24),g.hour<0&&(g.hour+=24,u--)),g.month>12?f=e.helpers.trunc((g.month-1)/12):g.month<1&&(f=e.helpers.trunc(g.month/12)-1),g.year+=f,g.month-=12*f,p=g.day+s+u,p>0)for(;y=e.Time.daysInMonth(g.month,g.year),!(p<=y);)g.month++,g.month>12&&(g.year++,g.month=1),p-=y;else for(;p<=0;)g.month==1?(g.year--,g.month=12):g.month--,p+=e.Time.daysInMonth(g.month,g.year);return g.day=p,this._cachedUnixTime=null,this},fromUnixTime:function(s){this.zone=e.Timezone.utcTimezone;var r=e.Time.epochTime.clone();r.adjust(0,0,0,s),this.year=r.year,this.month=r.month,this.day=r.day,this.hour=r.hour,this.minute=r.minute,this.second=Math.floor(r.second),this._cachedUnixTime=null},toUnixTime:function(){if(this._cachedUnixTime!==null)return this._cachedUnixTime;var s=this.utcOffset(),r=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-s);return this._cachedUnixTime=r/1e3,this._cachedUnixTime},toJSON:function(){for(var n=["year","month","day","hour","minute","second","isDate"],s=Object.create(null),r=0,i=n.length,o;r<i;r++)o=n[r],s[o]=this[o];return this.zone&&(s.timezone=this.zone.tzid),s}},function(){function s(r){Object.defineProperty(e.Time.prototype,r,{get:function(){return this._pendingNormalization&&(this._normalize(),this._pendingNormalization=!1),this._time[r]},set:function(o){return r==="isDate"&&o&&!this._time.isDate&&this.adjust(0,0,0,0),this._cachedUnixTime=null,this._pendingNormalization=!0,this._time[r]=o,o}})}"defineProperty"in Object&&(s("year"),s("month"),s("day"),s("hour"),s("minute"),s("second"),s("isDate"))}(),e.Time.daysInMonth=function(s,r){var i=[0,31,28,31,30,31,30,31,31,30,31,30,31],o=30;return s<1||s>12||(o=i[s],s==2&&(o+=e.Time.isLeapYear(r))),o},e.Time.isLeapYear=function(s){return s<=1752?s%4==0:s%4==0&&s%100!=0||s%400==0},e.Time.fromDayOfYear=function(s,r){var i=r,o=s,a=new e.Time;a.auto_normalize=!1;var l=e.Time.isLeapYear(i)?1:0;if(o<1)return i--,l=e.Time.isLeapYear(i)?1:0,o+=e.Time.daysInYearPassedMonth[l][12],e.Time.fromDayOfYear(o,i);if(o>e.Time.daysInYearPassedMonth[l][12])return l=e.Time.isLeapYear(i)?1:0,o-=e.Time.daysInYearPassedMonth[l][12],i++,e.Time.fromDayOfYear(o,i);a.year=i,a.isDate=!0;for(var c=11;c>=0;c--)if(o>e.Time.daysInYearPassedMonth[l][c]){a.month=c+1,a.day=o-e.Time.daysInYearPassedMonth[l][c];break}return a.auto_normalize=!0,a},e.Time.fromStringv2=function(s){return new e.Time({year:parseInt(s.substr(0,4),10),month:parseInt(s.substr(5,2),10),day:parseInt(s.substr(8,2),10),isDate:!0})},e.Time.fromDateString=function(n){return new e.Time({year:e.helpers.strictParseInt(n.substr(0,4)),month:e.helpers.strictParseInt(n.substr(5,2)),day:e.helpers.strictParseInt(n.substr(8,2)),isDate:!0})},e.Time.fromDateTimeString=function(n,s){if(n.length<19)throw new Error('invalid date-time value: "'+n+'"');var r;n[19]&&n[19]==="Z"?r="Z":s&&(r=s.getParameter("tzid"));var i=new e.Time({year:e.helpers.strictParseInt(n.substr(0,4)),month:e.helpers.strictParseInt(n.substr(5,2)),day:e.helpers.strictParseInt(n.substr(8,2)),hour:e.helpers.strictParseInt(n.substr(11,2)),minute:e.helpers.strictParseInt(n.substr(14,2)),second:e.helpers.strictParseInt(n.substr(17,2)),timezone:r});return i},e.Time.fromString=function(s,r){return s.length>10?e.Time.fromDateTimeString(s,r):e.Time.fromDateString(s)},e.Time.fromJSDate=function(s,r){var i=new e.Time;return i.fromJSDate(s,r)},e.Time.fromData=function(s,r){var i=new e.Time;return i.fromData(s,r)},e.Time.now=function(){return e.Time.fromJSDate(new Date,!1)},e.Time.weekOneStarts=function(s,r){var i=e.Time.fromData({year:s,month:1,day:1,isDate:!0}),o=i.dayOfWeek(),a=r||e.Time.DEFAULT_WEEK_START;return o>e.Time.THURSDAY&&(i.day+=7),a>e.Time.THURSDAY&&(i.day-=7),i.day-=o-a,i},e.Time.getDominicalLetter=function(n){var s="GFEDCBA",r=(n+(n/4|0)+(n/400|0)-(n/100|0)-1)%7,i=e.Time.isLeapYear(n);return i?s[(r+6)%7]+s[r]:s[r]},e.Time.epochTime=e.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"}),e.Time._cmp_attr=function(s,r,i){return s[i]>r[i]?1:s[i]<r[i]?-1:0},e.Time.daysInYearPassedMonth=[[0,31,59,90,120,151,181,212,243,273,304,334,365],[0,31,60,91,121,152,182,213,244,274,305,335,366]],e.Time.SUNDAY=1,e.Time.MONDAY=2,e.Time.TUESDAY=3,e.Time.WEDNESDAY=4,e.Time.THURSDAY=5,e.Time.FRIDAY=6,e.Time.SATURDAY=7,e.Time.DEFAULT_WEEK_START=e.Time.MONDAY}(),function(){e.VCardTime=function(n,s,r){this.wrappedJSObject=this;var i=this._time=Object.create(null);i.year=null,i.month=null,i.day=null,i.hour=null,i.minute=null,i.second=null,this.icaltype=r||"date-and-or-time",this.fromData(n,s)},e.helpers.inherits(e.Time,e.VCardTime,{icalclass:"vcardtime",icaltype:"date-and-or-time",zone:null,clone:function(){return new e.VCardTime(this._time,this.zone,this.icaltype)},_normalize:function(){return this},utcOffset:function(){return this.zone instanceof e.UtcOffset?this.zone.toSeconds():e.Time.prototype.utcOffset.apply(this,arguments)},toICALString:function(){return e.design.vcard.value[this.icaltype].toICAL(this.toString())},toString:function(){var s=e.helpers.pad2,r=this.year,i=this.month,o=this.day,a=this.hour,l=this.minute,c=this.second,u=r!==null,f=i!==null,h=o!==null,d=a!==null,m=l!==null,p=c!==null,y=(u?s(r)+(f||h?"-":""):f||h?"--":"")+(f?s(i):"")+(h?"-"+s(o):""),g=(d?s(a):"-")+(d&&m?":":"")+(m?s(l):"")+(!d&&!m?"-":"")+(m&&p?":":"")+(p?s(c):""),T;if(this.zone===e.Timezone.utcTimezone)T="Z";else if(this.zone instanceof e.UtcOffset)T=this.zone.toString();else if(this.zone===e.Timezone.localTimezone)T="";else if(this.zone instanceof e.Timezone){var I=e.UtcOffset.fromSeconds(this.zone.utcOffset(this));T=I.toString()}else T="";switch(this.icaltype){case"time":return g+T;case"date-and-or-time":case"date-time":return y+(g=="--"?"":"T"+g+T);case"date":return y}return null}}),e.VCardTime.fromDateAndOrTimeString=function(n,s){function r(y,g,T){return y?e.helpers.strictParseInt(y.substr(g,T)):null}var i=n.split("T"),o=i[0],a=i[1],l=a?e.design.vcard.value.time._splitZone(a):[],c=l[0],u=l[1];e.helpers.strictParseInt;var f=o?o.length:0,h=u?u.length:0,d=o&&o[0]=="-"&&o[1]=="-",m=u&&u[0]=="-",p={year:d?null:r(o,0,4),month:d&&(f==4||f==7)?r(o,2,2):f==7||f==10?r(o,5,2):null,day:f==5?r(o,3,2):f==7&&d?r(o,5,2):f==10?r(o,8,2):null,hour:m?null:r(u,0,2),minute:m&&h==3?r(u,1,2):h>4?m?r(u,1,2):r(u,3,2):null,second:h==4?r(u,2,2):h==6?r(u,4,2):h==8?r(u,6,2):null};return c=="Z"?c=e.Timezone.utcTimezone:c&&c[3]==":"?c=e.UtcOffset.fromString(c):c=null,new e.VCardTime(p,c,s)}}(),function(){var n={SU:e.Time.SUNDAY,MO:e.Time.MONDAY,TU:e.Time.TUESDAY,WE:e.Time.WEDNESDAY,TH:e.Time.THURSDAY,FR:e.Time.FRIDAY,SA:e.Time.SATURDAY},s={};for(var r in n)n.hasOwnProperty(r)&&(s[n[r]]=r);e.Recur=function(h){this.wrappedJSObject=this,this.parts={},h&&typeof h=="object"&&this.fromData(h)},e.Recur.prototype={parts:null,interval:1,wkst:e.Time.MONDAY,until:null,count:null,freq:null,icalclass:"icalrecur",icaltype:"recur",iterator:function(f){return new e.RecurIterator({rule:this,dtstart:f})},clone:function(){return new e.Recur(this.toJSON())},isFinite:function(){return!!(this.count||this.until)},isByCount:function(){return!!(this.count&&!this.until)},addComponent:function(h,d){var m=h.toUpperCase();m in this.parts?this.parts[m].push(d):this.parts[m]=[d]},setComponent:function(h,d){this.parts[h.toUpperCase()]=d.slice()},getComponent:function(h){var d=h.toUpperCase();return d in this.parts?this.parts[d].slice():[]},getNextOccurrence:function(h,d){var m=this.iterator(h),p;do p=m.next();while(p&&p.compare(d)<=0);return p&&d.zone&&(p.zone=d.zone),p},fromData:function(f){for(var h in f){var d=h.toUpperCase();d in u?Array.isArray(f[h])?this.parts[d]=f[h]:this.parts[d]=[f[h]]:this[h]=f[h]}this.interval&&typeof this.interval!="number"&&c.INTERVAL(this.interval,this),this.wkst&&typeof this.wkst!="number"&&(this.wkst=e.Recur.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof e.Time)&&(this.until=e.Time.fromString(this.until))},toJSON:function(){var f=Object.create(null);f.freq=this.freq,this.count&&(f.count=this.count),this.interval>1&&(f.interval=this.interval);for(var h in this.parts)if(this.parts.hasOwnProperty(h)){var d=this.parts[h];Array.isArray(d)&&d.length==1?f[h.toLowerCase()]=d[0]:f[h.toLowerCase()]=e.helpers.clone(this.parts[h])}return this.until&&(f.until=this.until.toString()),"wkst"in this&&this.wkst!==e.Time.DEFAULT_WEEK_START&&(f.wkst=e.Recur.numericDayToIcalDay(this.wkst)),f},toString:function(){var h="FREQ="+this.freq;this.count&&(h+=";COUNT="+this.count),this.interval>1&&(h+=";INTERVAL="+this.interval);for(var d in this.parts)this.parts.hasOwnProperty(d)&&(h+=";"+d+"="+this.parts[d]);return this.until&&(h+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==e.Time.DEFAULT_WEEK_START&&(h+=";WKST="+e.Recur.numericDayToIcalDay(this.wkst)),h}};function i(f,h,d,m){var p=m;if(m[0]==="+"&&(p=m.substr(1)),p=e.helpers.strictParseInt(p),h!==void 0&&m<h)throw new Error(f+': invalid value "'+m+'" must be > '+h);if(d!==void 0&&m>d)throw new Error(f+': invalid value "'+m+'" must be < '+h);return p}e.Recur.icalDayToNumericDay=function(h,d){var m=d||e.Time.SUNDAY;return(n[h]-m+7)%7+1},e.Recur.numericDayToIcalDay=function(h,d){var m=d||e.Time.SUNDAY,p=h+m-e.Time.SUNDAY;return p>7&&(p-=7),s[p]};var o=/^(SU|MO|TU|WE|TH|FR|SA)$/,a=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,l=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],c={FREQ:function(f,h,d){if(l.indexOf(f)!==-1)h.freq=f;else throw new Error('invalid frequency "'+f+'" expected: "'+l.join(", ")+'"')},COUNT:function(f,h,d){h.count=e.helpers.strictParseInt(f)},INTERVAL:function(f,h,d){h.interval=e.helpers.strictParseInt(f),h.interval<1&&(h.interval=1)},UNTIL:function(f,h,d){f.length>10?h.until=e.design.icalendar.value["date-time"].fromICAL(f):h.until=e.design.icalendar.value.date.fromICAL(f),d||(h.until=e.Time.fromString(h.until))},WKST:function(f,h,d){if(o.test(f))h.wkst=e.Recur.icalDayToNumericDay(f);else throw new Error('invalid WKST value "'+f+'"')}},u={BYSECOND:i.bind(this,"BYSECOND",0,60),BYMINUTE:i.bind(this,"BYMINUTE",0,59),BYHOUR:i.bind(this,"BYHOUR",0,23),BYDAY:function(f){if(a.test(f))return f;throw new Error('invalid BYDAY value "'+f+'"')},BYMONTHDAY:i.bind(this,"BYMONTHDAY",-31,31),BYYEARDAY:i.bind(this,"BYYEARDAY",-366,366),BYWEEKNO:i.bind(this,"BYWEEKNO",-53,53),BYMONTH:i.bind(this,"BYMONTH",1,12),BYSETPOS:i.bind(this,"BYSETPOS",-366,366)};e.Recur.fromString=function(f){var h=e.Recur._stringToData(f,!1);return new e.Recur(h)},e.Recur.fromData=function(f){return new e.Recur(f)},e.Recur._stringToData=function(f,h){for(var d=Object.create(null),m=f.split(";"),p=m.length,y=0;y<p;y++){var g=m[y].split("="),T=g[0].toUpperCase(),I=g[0].toLowerCase(),w=h?I:T,b=g[1];if(T in u){for(var S=b.split(","),C=0,D=S.length;C<D;C++)S[C]=u[T](S[C]);d[w]=S.length==1?S[0]:S}else T in c?c[T](b,d,h):d[I]=b}return d}}(),e.RecurIterator=function(){function n(s){this.fromData(s)}return n.prototype={completed:!1,rule:null,dtstart:null,last:null,occurrence_number:0,by_indices:null,initialized:!1,by_data:null,days:null,days_index:0,fromData:function(s){if(this.rule=e.helpers.formatClassType(s.rule,e.Recur),!this.rule)throw new Error("iterator requires a (ICAL.Recur) rule");if(this.dtstart=e.helpers.formatClassType(s.dtstart,e.Time),!this.dtstart)throw new Error("iterator requires a (ICAL.Time) dtstart");s.by_data?this.by_data=s.by_data:this.by_data=e.helpers.clone(this.rule.parts,!0),s.occurrence_number&&(this.occurrence_number=s.occurrence_number),this.days=s.days||[],s.last&&(this.last=e.helpers.formatClassType(s.last,e.Time)),this.by_indices=s.by_indices,this.by_indices||(this.by_indices={BYSECOND:0,BYMINUTE:0,BYHOUR:0,BYDAY:0,BYMONTH:0,BYWEEKNO:0,BYMONTHDAY:0}),this.initialized=s.initialized||!1,this.initialized||this.init()},init:function(){this.initialized=!0,this.last=this.dtstart.clone();var r=this.by_data;if("BYDAY"in r&&this.sort_byday_rules(r.BYDAY),"BYYEARDAY"in r&&("BYMONTH"in r||"BYWEEKNO"in r||"BYMONTHDAY"in r||"BYDAY"in r))throw new Error("Invalid BYYEARDAY rule");if("BYWEEKNO"in r&&"BYMONTHDAY"in r)throw new Error("BYWEEKNO does not fit to BYMONTHDAY");if(this.rule.freq=="MONTHLY"&&("BYYEARDAY"in r||"BYWEEKNO"in r))throw new Error("For MONTHLY recurrences neither BYYEARDAY nor BYWEEKNO may appear");if(this.rule.freq=="WEEKLY"&&("BYYEARDAY"in r||"BYMONTHDAY"in r))throw new Error("For WEEKLY recurrences neither BYMONTHDAY nor BYYEARDAY may appear");if(this.rule.freq!="YEARLY"&&"BYYEARDAY"in r)throw new Error("BYYEARDAY may only appear in YEARLY rules");if(this.last.second=this.setup_defaults("BYSECOND","SECONDLY",this.dtstart.second),this.last.minute=this.setup_defaults("BYMINUTE","MINUTELY",this.dtstart.minute),this.last.hour=this.setup_defaults("BYHOUR","HOURLY",this.dtstart.hour),this.last.day=this.setup_defaults("BYMONTHDAY","DAILY",this.dtstart.day),this.last.month=this.setup_defaults("BYMONTH","MONTHLY",this.dtstart.month),this.rule.freq=="WEEKLY")if("BYDAY"in r){var i=this.ruleDayOfWeek(r.BYDAY[0],this.rule.wkst),o=i[0],a=i[1],l=a-this.last.dayOfWeek(this.rule.wkst);(this.last.dayOfWeek(this.rule.wkst)<a&&l>=0||l<0)&&(this.last.day+=l)}else{var c=e.Recur.numericDayToIcalDay(this.dtstart.dayOfWeek());r.BYDAY=[c]}if(this.rule.freq=="YEARLY"){for(;this.expand_year_days(this.last.year),!(this.days.length>0);)this.increment_year(this.rule.interval);this._nextByYearDay()}if(this.rule.freq=="MONTHLY"&&this.has_by_data("BYDAY")){var u=null,f=this.last.clone(),h=e.Time.daysInMonth(this.last.month,this.last.year);for(var d in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(d)){this.last=f.clone();var i=this.ruleDayOfWeek(this.by_data.BYDAY[d]),o=i[0],a=i[1],m=this.last.nthWeekDay(a,o);if(o>=6||o<=-6)throw new Error("Malformed values in BYDAY part");if(m>h||m<=0){if(u&&u.month==f.month)continue;for(;m>h||m<=0;)this.increment_month(),h=e.Time.daysInMonth(this.last.month,this.last.year),m=this.last.nthWeekDay(a,o)}this.last.day=m,(!u||this.last.compare(u)<0)&&(u=this.last.clone())}if(this.last=u.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>h||this.last.day==0)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")&&this.last.day<0){var h=e.Time.daysInMonth(this.last.month,this.last.year);this.last.day=h+this.last.day+1}},next:function(){var r=this.last?this.last.clone():null;if(this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)return this.completed=!0,null;if(this.occurrence_number==0&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;var i;do switch(i=1,this.rule.freq){case"SECONDLY":this.next_second();break;case"MINUTELY":this.next_minute();break;case"HOURLY":this.next_hour();break;case"DAILY":this.next_day();break;case"WEEKLY":this.next_week();break;case"MONTHLY":i=this.next_month();break;case"YEARLY":this.next_year();break;default:return null}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!i);if(this.last.compare(r)==0)throw new Error("Same occurrence found twice, protecting you from death by recursion");return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)},next_second:function(){return this.next_generic("BYSECOND","SECONDLY","second","minute")},increment_second:function(r){return this.increment_generic(r,"second",60,"minute")},next_minute:function(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")},increment_minute:function(r){return this.increment_generic(r,"minute",60,"hour")},next_hour:function(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")},increment_hour:function(r){this.increment_generic(r,"hour",24,"monthday")},next_day:function(){"BYDAY"in this.by_data;var r=this.rule.freq=="DAILY";return this.next_hour()==0||(r?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0},next_week:function(){var r=0;if(this.next_weekday_by_week()==0)return r;if(this.has_by_data("BYWEEKNO")){++this.by_indices.BYWEEKNO,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,r=1),this.last.month=1,this.last.day=1;var i=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*i,r&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return r},normalizeByMonthDayRules:function(s,r,i){for(var o=e.Time.daysInMonth(r,s),a=[],l=0,c=i.length,u;l<c;l++)if(u=i[l],!(Math.abs(u)>o)){if(u<0)u=o+(u+1);else if(u===0)continue;a.indexOf(u)===-1&&a.push(u)}return a.sort(function(f,h){return f-h})},_byDayAndMonthDay:function(s){var r,i=this.by_data.BYDAY,o,a=0,l,c=i.length,u=0,f,h=this,d=this.last.day;function m(){for(f=e.Time.daysInMonth(h.last.month,h.last.year),r=h.normalizeByMonthDayRules(h.last.year,h.last.month,h.by_data.BYMONTHDAY),l=r.length;r[a]<=d&&!(s&&r[a]==d)&&a<l-1;)a++}function p(){d=0,h.increment_month(),a=0,m()}m(),s&&(d-=1);for(var y=48;!u&&y;){if(y--,o=d+1,o>f){p();continue}var g=r[a++];if(g>=o)d=g;else{p();continue}for(var T=0;T<c;T++){var I=this.ruleDayOfWeek(i[T]),w=I[0],b=I[1];if(this.last.day=d,this.last.isNthWeekDay(b,w)){u=1;break}}if(!u&&a===l){p();continue}}if(y<=0)throw new Error("Malformed values in BYDAY combined with BYMONTHDAY parts");return u},next_month:function(){this.rule.freq=="MONTHLY";var r=1;if(this.next_hour()==0)return r;if(this.has_by_data("BYDAY")&&this.has_by_data("BYMONTHDAY"))r=this._byDayAndMonthDay();else if(this.has_by_data("BYDAY")){var i=e.Time.daysInMonth(this.last.month,this.last.year),o=0,a=0;if(this.has_by_data("BYSETPOS")){for(var l=this.last.day,c=1;c<=i;c++)this.last.day=c,this.is_day_in_byday(this.last)&&(a++,c<=l&&o++);this.last.day=l}r=0;for(var c=this.last.day+1;c<=i;c++)if(this.last.day=c,this.is_day_in_byday(this.last)&&(!this.has_by_data("BYSETPOS")||this.check_set_position(++o)||this.check_set_position(o-a-1))){r=1;break}c>i&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(r=1):r=0)}else if(this.has_by_data("BYMONTHDAY")){this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month());var i=e.Time.daysInMonth(this.last.month,this.last.year),c=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY];c<0&&(c=i+c+1),c>i?(this.last.day=1,r=this.is_day_in_byday(this.last)):this.last.day=c}else{this.increment_month();var i=e.Time.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>i?r=0:this.last.day=this.by_data.BYMONTHDAY[0]}return r},next_weekday_by_week:function(){var r=0;if(this.next_hour()==0)return r;if(!this.has_by_data("BYDAY"))return 1;for(;;){var i=new e.Time;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,r=1);var o=this.by_data.BYDAY[this.by_indices.BYDAY],a=this.ruleDayOfWeek(o),l=a[1];l-=this.rule.wkst,l<0&&(l+=7),i.year=this.last.year,i.month=this.last.month,i.day=this.last.day;var c=i.startDoyWeek(this.rule.wkst);if(!(l+c<1&&!r)){var u=e.Time.fromDayOfYear(c+l,this.last.year);return this.last.year=u.year,this.last.month=u.month,this.last.day=u.day,r}}},next_year:function(){if(this.next_hour()==0)return 0;if(++this.days_index==this.days.length){this.days_index=0;do this.increment_year(this.rule.interval),this.expand_year_days(this.last.year);while(this.days.length==0)}return this._nextByYearDay(),1},_nextByYearDay:function(){var r=this.days[this.days_index],i=this.last.year;r<1&&(r+=1,i+=1);var o=e.Time.fromDayOfYear(r,i);this.last.day=o.day,this.last.month=o.month},ruleDayOfWeek:function(r,i){var o=r.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);if(o){var a=parseInt(o[1]||0,10);return r=e.Recur.icalDayToNumericDay(o[2],i),[a,r]}else return[0,0]},next_generic:function(r,i,o,a,l){var c=r in this.by_data,u=this.rule.freq==i,f=0;if(l&&this[l]()==0)return f;if(c){this.by_indices[r]++,this.by_indices[r];var h=this.by_data[r];this.by_indices[r]==h.length&&(this.by_indices[r]=0,f=1),this.last[o]=h[this.by_indices[r]]}else u&&this["increment_"+o](this.rule.interval);return c&&f&&u&&this["increment_"+a](1),f},increment_monthday:function(r){for(var i=0;i<r;i++){var o=e.Time.daysInMonth(this.last.month,this.last.year);this.last.day++,this.last.day>o&&(this.last.day-=o,this.increment_month())}},increment_month:function(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{this.rule.freq=="MONTHLY"?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;var r=e.helpers.trunc(this.last.month/12);this.last.month%=12,this.last.month++,r!=0&&this.increment_year(r)}},increment_year:function(r){this.last.year+=r},increment_generic:function(r,i,o,a){this.last[i]+=r;var l=e.helpers.trunc(this.last[i]/o);this.last[i]%=o,l!=0&&this["increment_"+a](l)},has_by_data:function(r){return r in this.rule.parts},expand_year_days:function(r){var i=new e.Time;this.days=[];var o={},a=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(var l in a)if(a.hasOwnProperty(l)){var c=a[l];c in this.rule.parts&&(o[c]=this.rule.parts[c])}if("BYMONTH"in o&&"BYWEEKNO"in o){var u=1,f={};i.year=r,i.isDate=!0;for(var h=0;h<this.by_data.BYMONTH.length;h++){var d=this.by_data.BYMONTH[h];i.month=d,i.day=1;var m=i.weekNumber(this.rule.wkst);i.day=e.Time.daysInMonth(d,r);var p=i.weekNumber(this.rule.wkst);for(h=m;h<p;h++)f[h]=1}for(var y=0;y<this.by_data.BYWEEKNO.length&&u;y++){var g=this.by_data.BYWEEKNO[y];g<52?u&=f[y]:u=0}u?delete o.BYMONTH:delete o.BYWEEKNO}var T=Object.keys(o).length;if(T==0){var I=this.dtstart.clone();I.year=this.last.year,this.days.push(I.dayOfYear())}else if(T==1&&"BYMONTH"in o){for(var w in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(w)){var b=this.dtstart.clone();b.year=r,b.month=this.by_data.BYMONTH[w],b.isDate=!0,this.days.push(b.dayOfYear())}}else if(T==1&&"BYMONTHDAY"in o){for(var S in this.by_data.BYMONTHDAY)if(this.by_data.BYMONTHDAY.hasOwnProperty(S)){var C=this.dtstart.clone(),D=this.by_data.BYMONTHDAY[S];if(D<0){var A=e.Time.daysInMonth(C.month,r);D=D+A+1}C.day=D,C.year=r,C.isDate=!0,this.days.push(C.dayOfYear())}}else if(T==2&&"BYMONTHDAY"in o&&"BYMONTH"in o){for(var w in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(w)){var z=this.by_data.BYMONTH[w],A=e.Time.daysInMonth(z,r);for(var S in this.by_data.BYMONTHDAY)if(this.by_data.BYMONTHDAY.hasOwnProperty(S)){var D=this.by_data.BYMONTHDAY[S];D<0&&(D=D+A+1),i.day=D,i.month=z,i.year=r,i.isDate=!0,this.days.push(i.dayOfYear())}}}else if(!(T==1&&"BYWEEKNO"in o)){if(!(T==2&&"BYWEEKNO"in o&&"BYMONTHDAY"in o))if(T==1&&"BYDAY"in o)this.days=this.days.concat(this.expand_by_day(r));else if(T==2&&"BYDAY"in o&&"BYMONTH"in o){for(var w in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(w)){var d=this.by_data.BYMONTH[w],A=e.Time.daysInMonth(d,r);i.year=r,i.month=this.by_data.BYMONTH[w],i.day=1,i.isDate=!0;var X=i.dayOfWeek(),L=i.dayOfYear()-1;i.day=A;var re=i.dayOfWeek();if(this.has_by_data("BYSETPOS")){for(var he=[],de=1;de<=A;de++)i.day=de,this.is_day_in_byday(i)&&he.push(de);for(var J=0;J<he.length;J++)(this.check_set_position(J+1)||this.check_set_position(J-he.length))&&this.days.push(L+he[J])}else for(var te in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(te)){var E=this.by_data.BYDAY[te],G=this.ruleDayOfWeek(E),F=G[0],Q=G[1],ve,Be=(Q+7-X)%7+1,je=A-(re+7-Q)%7;if(F==0)for(var de=Be;de<=A;de+=7)this.days.push(L+de);else F>0?(ve=Be+(F-1)*7,ve<=A&&this.days.push(L+ve)):(ve=je+(F+1)*7,ve>0&&this.days.push(L+ve))}}this.days.sort(function(ie,q){return ie-q})}else if(T==2&&"BYDAY"in o&&"BYMONTHDAY"in o){var ot=this.expand_by_day(r);for(var Fe in ot)if(ot.hasOwnProperty(Fe)){var de=ot[Fe],$=e.Time.fromDayOfYear(de,r);this.by_data.BYMONTHDAY.indexOf($.day)>=0&&this.days.push(de)}}else if(T==3&&"BYDAY"in o&&"BYMONTHDAY"in o&&"BYMONTH"in o){var ot=this.expand_by_day(r);for(var Fe in ot)if(ot.hasOwnProperty(Fe)){var de=ot[Fe],$=e.Time.fromDayOfYear(de,r);this.by_data.BYMONTH.indexOf($.month)>=0&&this.by_data.BYMONTHDAY.indexOf($.day)>=0&&this.days.push(de)}}else if(T==2&&"BYDAY"in o&&"BYWEEKNO"in o){var ot=this.expand_by_day(r);for(var Fe in ot)if(ot.hasOwnProperty(Fe)){var de=ot[Fe],$=e.Time.fromDayOfYear(de,r),g=$.weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(g)&&this.days.push(de)}}else T==3&&"BYDAY"in o&&"BYWEEKNO"in o&&"BYMONTHDAY"in o||(T==1&&"BYYEARDAY"in o?this.days=this.days.concat(this.by_data.BYYEARDAY):this.days=[])}return 0},expand_by_day:function(r){var i=[],o=this.last.clone();o.year=r,o.month=1,o.day=1,o.isDate=!0;var a=o.dayOfWeek();o.month=12,o.day=31,o.isDate=!0;var l=o.dayOfWeek(),c=o.dayOfYear();for(var u in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(u)){var f=this.by_data.BYDAY[u],h=this.ruleDayOfWeek(f),d=h[0],m=h[1];if(d==0)for(var p=(m+7-a)%7+1,y=p;y<=c;y+=7)i.push(y);else if(d>0){var g;m>=a?g=m-a+1:g=m-a+8,i.push(g+(d-1)*7)}else{var T;d=-d,m<=l?T=c-l+m:T=c-l+m-7,i.push(T-(d-1)*7)}}return i},is_day_in_byday:function(r){for(var i in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(i)){var o=this.by_data.BYDAY[i],a=this.ruleDayOfWeek(o),l=a[0],c=a[1],u=r.dayOfWeek();if(l==0&&c==u||r.nthWeekDay(c,l)==r.day)return 1}return 0},check_set_position:function(r){if(this.has_by_data("BYSETPOS")){var i=this.by_data.BYSETPOS.indexOf(r);return i!==-1}return!1},sort_byday_rules:function(r){for(var i=0;i<r.length;i++)for(var o=0;o<i;o++){var a=this.ruleDayOfWeek(r[o],this.rule.wkst)[1],l=this.ruleDayOfWeek(r[i],this.rule.wkst)[1];if(a>l){var c=r[i];r[i]=r[o],r[o]=c}}},check_contract_restriction:function(r,i){var o=n._indexMap[r],a=n._expandMap[this.rule.freq][o],l=!1;if(r in this.by_data&&a==n.CONTRACT){var c=this.by_data[r];for(var u in c)if(c.hasOwnProperty(u)&&c[u]==i){l=!0;break}}else l=!0;return l},check_contracting_rules:function(){var r=this.last.dayOfWeek(),i=this.last.weekNumber(this.rule.wkst),o=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",e.Recur.numericDayToIcalDay(r))&&this.check_contract_restriction("BYWEEKNO",i)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",o)},setup_defaults:function(r,i,o){var a=n._indexMap[r],l=n._expandMap[this.rule.freq][a];return l!=n.CONTRACT&&(r in this.by_data||(this.by_data[r]=[o]),this.rule.freq!=i)?this.by_data[r][0]:o},toJSON:function(){var s=Object.create(null);return s.initialized=this.initialized,s.rule=this.rule.toJSON(),s.dtstart=this.dtstart.toJSON(),s.by_data=this.by_data,s.days=this.days,s.last=this.last.toJSON(),s.by_indices=this.by_indices,s.occurrence_number=this.occurrence_number,s}},n._indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8},n._expandMap={SECONDLY:[1,1,1,1,1,1,1,1],MINUTELY:[2,1,1,1,1,1,1,1],HOURLY:[2,2,1,1,1,1,1,1],DAILY:[2,2,2,1,1,1,1,1],WEEKLY:[2,2,2,2,3,3,1,1],MONTHLY:[2,2,2,2,2,3,3,1],YEARLY:[2,2,2,2,2,2,2,2]},n.UNKNOWN=0,n.CONTRACT=1,n.EXPAND=2,n.ILLEGAL=3,n}(),e.RecurExpansion=function(){function n(o){return e.helpers.formatClassType(o,e.Time)}function s(o,a){return o.compare(a)}function r(o){return o.hasProperty("rdate")||o.hasProperty("rrule")||o.hasProperty("recurrence-id")}function i(o){this.ruleDates=[],this.exDates=[],this.fromData(o)}return i.prototype={complete:!1,ruleIterators:null,ruleDates:null,exDates:null,ruleDateInc:0,exDateInc:0,exDate:null,ruleDate:null,dtstart:null,last:null,fromData:function(o){var a=e.helpers.formatClassType(o.dtstart,e.Time);if(a)this.dtstart=a;else throw new Error(".dtstart (ICAL.Time) must be given");if(o.component)this._init(o.component);else{if(this.last=n(o.last)||a.clone(),!o.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=o.ruleIterators.map(function(l){return e.helpers.formatClassType(l,e.RecurIterator)}),this.ruleDateInc=o.ruleDateInc,this.exDateInc=o.exDateInc,o.ruleDates&&(this.ruleDates=o.ruleDates.map(n),this.ruleDate=this.ruleDates[this.ruleDateInc]),o.exDates&&(this.exDates=o.exDates.map(n),this.exDate=this.exDates[this.exDateInc]),typeof o.complete<"u"&&(this.complete=o.complete)}},next:function(){for(var o,a,l,c=500,u=0;;){if(u++>c)throw new Error("max tries have occured, rule may be impossible to forfill.");if(a=this.ruleDate,o=this._nextRecurrenceIter(this.last),!a&&!o){this.complete=!0;break}if((!a||o&&a.compare(o.last)>0)&&(a=o.last.clone(),o.next()),this.ruleDate===a&&this._nextRuleDay(),this.last=a,this.exDate&&(l=this.exDate.compare(this.last),l<0&&this._nextExDay(),l===0)){this._nextExDay();continue}return this.last}},toJSON:function(){function o(l){return l.toJSON()}var a=Object.create(null);return a.ruleIterators=this.ruleIterators.map(o),this.ruleDates&&(a.ruleDates=this.ruleDates.map(o)),this.exDates&&(a.exDates=this.exDates.map(o)),a.ruleDateInc=this.ruleDateInc,a.exDateInc=this.exDateInc,a.last=this.last.toJSON(),a.dtstart=this.dtstart.toJSON(),a.complete=this.complete,a},_extractDates:function(o,a){function l(m){d=e.helpers.binsearchInsert(c,m,s),c.splice(d,0,m)}for(var c=[],u=o.getAllProperties(a),f=u.length,h=0,d;h<f;h++)u[h].getValues().forEach(l);return c},_init:function(o){if(this.ruleIterators=[],this.last=this.dtstart.clone(),!r(o)){this.ruleDate=this.last.clone(),this.complete=!0;return}if(o.hasProperty("rdate")&&(this.ruleDates=this._extractDates(o,"rdate"),this.ruleDates[0]&&this.ruleDates[0].compare(this.dtstart)<0?(this.ruleDateInc=0,this.last=this.ruleDates[0].clone()):this.ruleDateInc=e.helpers.binsearchInsert(this.ruleDates,this.last,s),this.ruleDate=this.ruleDates[this.ruleDateInc]),o.hasProperty("rrule"))for(var a=o.getAllProperties("rrule"),l=0,c=a.length,u,f;l<c;l++)u=a[l].getFirstValue(),f=u.iterator(this.dtstart),this.ruleIterators.push(f),f.next();o.hasProperty("exdate")&&(this.exDates=this._extractDates(o,"exdate"),this.exDateInc=e.helpers.binsearchInsert(this.exDates,this.last,s),this.exDate=this.exDates[this.exDateInc])},_nextExDay:function(){this.exDate=this.exDates[++this.exDateInc]},_nextRuleDay:function(){this.ruleDate=this.ruleDates[++this.ruleDateInc]},_nextRecurrenceIter:function(){var o=this.ruleIterators;if(o.length===0)return null;for(var a=o.length,l,c,u=0,f;u<a;u++){if(l=o[u],c=l.last,l.completed){a--,u!==0&&u--,o.splice(u,1);continue}(!f||f.last.compare(c)>0)&&(f=l)}return f}},i}(),e.Event=function(){function n(r,i){r instanceof e.Component||(i=r,r=null),r?this.component=r:this.component=new e.Component("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],i&&i.strictExceptions&&(this.strictExceptions=i.strictExceptions),i&&i.exceptions?i.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach(function(o){o.hasProperty("recurrence-id")&&this.relateException(o)},this)}n.prototype={THISANDFUTURE:"THISANDFUTURE",exceptions:null,strictExceptions:!1,relateException:function(r){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(r instanceof e.Component&&(r=new e.Event(r)),this.strictExceptions&&r.uid!==this.uid)throw new Error("attempted to relate unrelated exception");var i=r.recurrenceId.toString();if(this.exceptions[i]=r,r.modifiesFuture()){var o=[r.recurrenceId.toUnixTime(),i],a=e.helpers.binsearchInsert(this.rangeExceptions,o,s);this.rangeExceptions.splice(a,0,o)}},modifiesFuture:function(){if(!this.component.hasProperty("recurrence-id"))return!1;var r=this.component.getFirstProperty("recurrence-id").getParameter("range");return r===this.THISANDFUTURE},findRangeException:function(r){if(!this.rangeExceptions.length)return null;var i=r.toUnixTime(),o=e.helpers.binsearchInsert(this.rangeExceptions,[i],s);if(o-=1,o<0)return null;var a=this.rangeExceptions[o];return i<a[0]?null:a[1]},getOccurrenceDetails:function(r){var i=r.toString(),o=r.convertToZone(e.Timezone.utcTimezone).toString(),a,l={recurrenceId:r};if(i in this.exceptions)a=l.item=this.exceptions[i],l.startDate=a.startDate,l.endDate=a.endDate,l.item=a;else if(o in this.exceptions)a=this.exceptions[o],l.startDate=a.startDate,l.endDate=a.endDate,l.item=a;else{var c=this.findRangeException(r),u;if(c){var f=this.exceptions[c];l.item=f;var h=this._rangeExceptionCache[c];if(!h){var d=f.recurrenceId.clone(),m=f.startDate.clone();d.zone=m.zone,h=m.subtractDate(d),this._rangeExceptionCache[c]=h}var p=r.clone();p.zone=f.startDate.zone,p.addDuration(h),u=p.clone(),u.addDuration(f.duration),l.startDate=p,l.endDate=u}else u=r.clone(),u.addDuration(this.duration),l.endDate=u,l.startDate=r,l.item=this}return l},iterator:function(r){return new e.RecurExpansion({component:this.component,dtstart:r||this.startDate})},isRecurring:function(){var r=this.component;return r.hasProperty("rrule")||r.hasProperty("rdate")},isRecurrenceException:function(){return this.component.hasProperty("recurrence-id")},getRecurrenceTypes:function(){for(var r=this.component.getAllProperties("rrule"),i=0,o=r.length,a=Object.create(null);i<o;i++){var l=r[i].getFirstValue();a[l.freq]=!0}return a},get uid(){return this._firstProp("uid")},set uid(r){this._setProp("uid",r)},get startDate(){return this._firstProp("dtstart")},set startDate(r){this._setTime("dtstart",r)},get endDate(){var r=this._firstProp("dtend");if(!r){var i=this._firstProp("duration");r=this.startDate.clone(),i?r.addDuration(i):r.isDate&&(r.day+=1)}return r},set endDate(r){this.component.hasProperty("duration")&&this.component.removeProperty("duration"),this._setTime("dtend",r)},get duration(){var r=this._firstProp("duration");return r||this.endDate.subtractDateTz(this.startDate)},set duration(r){this.component.hasProperty("dtend")&&this.component.removeProperty("dtend"),this._setProp("duration",r)},get location(){return this._firstProp("location")},set location(r){return this._setProp("location",r)},get attendees(){return this.component.getAllProperties("attendee")},get summary(){return this._firstProp("summary")},set summary(r){this._setProp("summary",r)},get description(){return this._firstProp("description")},set description(r){this._setProp("description",r)},get color(){return this._firstProp("color")},set color(r){this._setProp("color",r)},get organizer(){return this._firstProp("organizer")},set organizer(r){this._setProp("organizer",r)},get sequence(){return this._firstProp("sequence")},set sequence(r){this._setProp("sequence",r)},get recurrenceId(){return this._firstProp("recurrence-id")},set recurrenceId(r){this._setTime("recurrence-id",r)},_setTime:function(r,i){var o=this.component.getFirstProperty(r);o||(o=new e.Property(r),this.component.addProperty(o)),i.zone===e.Timezone.localTimezone||i.zone===e.Timezone.utcTimezone?o.removeParameter("tzid"):o.setParameter("tzid",i.zone.tzid),o.setValue(i)},_setProp:function(r,i){this.component.updatePropertyWithValue(r,i)},_firstProp:function(r){return this.component.getFirstPropertyValue(r)},toString:function(){return this.component.toString()}};function s(r,i){return r[0]>i[0]?1:i[0]>r[0]?-1:0}return n}(),e.ComponentParser=function(){function n(s){typeof s>"u"&&(s={});var r;for(r in s)s.hasOwnProperty(r)&&(this[r]=s[r])}return n.prototype={parseEvent:!0,parseTimezone:!0,oncomplete:function(){},onerror:function(s){},ontimezone:function(s){},onevent:function(s){},process:function(s){typeof s=="string"&&(s=e.parse(s)),s instanceof e.Component||(s=new e.Component(s));for(var r=s.getAllSubcomponents(),i=0,o=r.length,a;i<o;i++)switch(a=r[i],a.name){case"vtimezone":if(this.parseTimezone){var l=a.getFirstPropertyValue("tzid");l&&this.ontimezone(new e.Timezone({tzid:l,component:a}))}break;case"vevent":this.parseEvent&&this.onevent(new e.Event(a));break;default:continue}this.oncomplete()}},n}()})(VE);var tt;(function(t){t[t.SECOND=0]="SECOND",t[t.QUARTER_MINUTE=1]="QUARTER_MINUTE",t[t.MINUTE=2]="MINUTE",t[t.QUARTER_HOUR=3]="QUARTER_HOUR",t[t.HOUR=4]="HOUR",t[t.DAY=5]="DAY",t[t.MONTH=6]="MONTH",t[t.YEAR=7]="YEAR",t[t.DECADE=8]="DECADE",t[t.CENT=9]="CENT"})(tt||(tt={}));tt.CENT+"",tt.DECADE+"",tt.YEAR+"",tt.MONTH+"",tt.DAY+"",tt.HOUR+"",tt.MINUTE+"",tt.QUARTER_HOUR+"",tt.QUARTER_MINUTE+"",tt.SECOND+"";tt.CENT+"",tt.DECADE+"",tt.YEAR+"",tt.MONTH+"",tt.DAY+"",tt.HOUR+"",tt.QUARTER_HOUR+"",tt.MINUTE+"",tt.QUARTER_MINUTE+"",tt.SECOND+"";const qE="0.10.8",KE=t=>{const e=t.split(`
`);let n=[];for(let s=0;s<e.length;s++)s===0&&n.push(0),n.push(1+e[s].length+n[n.length-1]||0);return{lines:e,lengthAtIndex:n}};function Zf(t,e){e===!0&&(e=new bb);const n={version:qE};if(!t)return{timelines:[rb()],cache:e,parser:n};const{lines:s,lengthAtIndex:r}=KE(t);return{timelines:[ZE(s,r,e)],cache:e,parser:n}}function ZE(t,e,n){const s=new Mb,r=WE(t,e,s,n);for(let i=r;i<t.length;i++){const o=t[i];Nb(o,i,e,s,n)||(i=kb(o,t,i,e,s,n))}return s.toTimeline(e,t.length-1,e[t.length-1]+t[t.length-1].length)}const qc=(t,e,n)=>{var c;const s=t.toDateTime.diff(t.fromDateTime),r=t.fromDateTime,i=Ce.fromObject(e.every),o=Math.min(((c=e.for)==null?void 0:c.times)||n,n);let a;if(typeof e.for<"u"&&!e.for.times){const u=Ce.fromObject(e.for);a=r.plus(u)}const l=[r];for(let u=1;u<o;u++){const h=l[u-1].plus(i);if(a&&+h>=+a)break;l.push(h)}return l.map(u=>({fromDateTime:u,toDateTime:u.plus(s)}))},Fr=["22, 163, 76","2, 132, 199","212, 50, 56","242, 202, 45","80, 73, 229","145, 57, 234","214, 45, 123","234, 88, 11","168, 162, 157","255, 255, 255","0, 0, 0"],GE=["green","blue","red","yellow","indigo","purple","pink","orange","gray","white","black"];function XE(t){t=t.replace("#","").replace(")","");const e=t.length===3;var n=parseInt(e?t.slice(0,1).repeat(2):t.slice(0,2),16);if(!isNaN(n)){var s=parseInt(e?t.slice(1,2).repeat(2):t.slice(2,4),16);if(!isNaN(s)){var r=parseInt(e?t.slice(2,3).repeat(2):t.slice(4,6),16);if(!isNaN(r))return`${n}, ${s}, ${r}`}}}const JE=(t,e)=>{const n={},s=t.ranges.flatMap(r=>{var a;if(r.type!==$e.Tag)return[];if(n[r.content.tag])return r.content.color=n[r.content.tag],[r];const i=((a=r.content)==null?void 0:a.tag)&&t.header[")"+r.content.tag];let o;if(o=!!i&&(typeof i=="string"&&i||typeof i=="object"&&i.color),o){const l=GE.indexOf(o);if(l===-1){const c=XE(o);c?r.content.color=c:r.content.color=Fr[e++%Fr.length]}else r.content.color=Fr[l]}else r.content.color=Fr[e++%Fr.length];return n[r.content.tag]=r.content.color,[r]});return[n,s,e]},xl=t=>x(()=>{let n=0;const s={};for(const[r,i]of[["default",t]]){const[o,a,l]=JE(i,n);s[r]=o,n=l}return s}),QE=()=>{let t="";const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<32;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t},eS=t=>{var h;const e=new Map,n=typeof window<"u"&&window.__markwhen_wss_url;let s,r=!1;n&&(s=new WebSocket(n),s.onopen=()=>{r=!0,l("appState"),l("markwhenState")});let i;const o=()=>i||(i=acquireVsCodeApi(),i),a=d=>{var m;s&&r?s.send(JSON.stringify(d)):typeof acquireVsCodeApi<"u"?(m=o())==null||m.postMessage(d):typeof window<"u"&&typeof window.parent<"u"&&window.parent!==window.self?window.parent.postMessage(d,"*"):console.error("Nothing to post to")},l=(d,m)=>{const p=`markwhen_${QE()}`;return new Promise((y,g)=>{e.set(p,{resolve:y,reject:g}),a({type:d,request:!0,id:p,params:m})})},c=(d,m,p)=>a({type:m,response:!0,id:d,params:p}),u=d=>{var p,y;if(!d.data.id||!d.data.id.startsWith("markwhen"))return;const m=d.data;if(m.response)(p=e.get(m.id))==null||p.resolve(m),e.delete(m.id);else if(m.request){const g=(y=t==null?void 0:t[m.type])==null?void 0:y.call(t,m.params);Promise.resolve(g).then(T=>{c(m.id,m.type,T)})}else console.error("Not a request or response",m)};s?s.onmessage=d=>{const m=new MessageEvent("message",{data:JSON.parse(d.data)});u(m)}:typeof window<"u"&&window.addEventListener("message",u);const f=typeof window<"u"&&window.__markwhen_initial_state;if(f&&t&&t.markwhenState){const m=xl(f.parsed[0]).value;t.markwhenState(f),(h=t.appState)==null||h.call(t,{colorMap:m})}return{postRequest:l}};/*!
  * vue-router v4.2.4
  * (c) 2023 Eduardo San Martin Morote
  * @license MIT
  */const js=typeof window<"u";function tS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ye=Object.assign;function Ja(t,e){const n={};for(const s in e){const r=e[s];n[s]=hn(r)?r.map(t):t(r)}return n}const Jr=()=>{},hn=Array.isArray,nS=/\/$/,sS=t=>t.replace(nS,"");function Qa(t,e,n="/"){let s,r={},i="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(s=e.slice(0,l),i=e.slice(l+1,a>-1?a:e.length),r=t(i)),a>-1&&(s=s||e.slice(0,a),o=e.slice(a,e.length)),s=aS(s??e,n),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:o}}function rS(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Gf(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function iS(t,e,n){const s=e.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&fr(e.matched[s],n.matched[r])&&zp(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function fr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function zp(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!oS(t[n],e[n]))return!1;return!0}function oS(t,e){return hn(t)?Xf(t,e):hn(e)?Xf(e,t):t===e}function Xf(t,e){return hn(e)?t.length===e.length&&t.every((n,s)=>n===e[s]):t.length===1&&t[0]===e}function aS(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),s=t.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,a;for(o=0;o<s.length;o++)if(a=s[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var fi;(function(t){t.pop="pop",t.push="push"})(fi||(fi={}));var Qr;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Qr||(Qr={}));function lS(t){if(!t)if(js){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),sS(t)}const cS=/^[^#]+#/;function uS(t,e){return t.replace(cS,"#")+e}function fS(t,e){const n=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:e.behavior,left:s.left-n.left-(e.left||0),top:s.top-n.top-(e.top||0)}}const pa=()=>({left:window.pageXOffset,top:window.pageYOffset});function hS(t){let e;if("el"in t){const n=t.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;e=fS(r,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Jf(t,e){return(history.state?history.state.position-e:-1)+t}const Ll=new Map;function dS(t,e){Ll.set(t,e)}function mS(t){const e=Ll.get(t);return Ll.delete(t),e}let pS=()=>location.protocol+"//"+location.host;function Yp(t,e){const{pathname:n,search:s,hash:r}=e,i=t.indexOf("#");if(i>-1){let a=r.includes(t.slice(i))?t.slice(i).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),Gf(l,"")}return Gf(n,t)+s+r}function gS(t,e,n,s){let r=[],i=[],o=null;const a=({state:h})=>{const d=Yp(t,location),m=n.value,p=e.value;let y=0;if(h){if(n.value=d,e.value=h,o&&o===m){o=null;return}y=p?h.position-p.position:0}else s(d);r.forEach(g=>{g(n.value,m,{delta:y,type:fi.pop,direction:y?y>0?Qr.forward:Qr.back:Qr.unknown})})};function l(){o=n.value}function c(h){r.push(h);const d=()=>{const m=r.indexOf(h);m>-1&&r.splice(m,1)};return i.push(d),d}function u(){const{history:h}=window;h.state&&h.replaceState(Ye({},h.state,{scroll:pa()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function Qf(t,e,n,s=!1,r=!1){return{back:t,current:e,forward:n,replaced:s,position:window.history.length,scroll:r?pa():null}}function yS(t){const{history:e,location:n}=window,s={value:Yp(t,n)},r={value:e.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const f=t.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?t:t.slice(f))+l:pS()+t+l;try{e[u?"replaceState":"pushState"](c,"",h),r.value=c}catch(d){console.error(d),n[u?"replace":"assign"](h)}}function o(l,c){const u=Ye({},e.state,Qf(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,u,!0),s.value=l}function a(l,c){const u=Ye({},r.value,e.state,{forward:l,scroll:pa()});i(u.current,u,!0);const f=Ye({},Qf(s.value,l,null),{position:u.position+1},c);i(l,f,!1),s.value=l}return{location:s,state:r,push:a,replace:o}}function vS(t){t=lS(t);const e=yS(t),n=gS(t,e.state,e.location,e.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=Ye({location:"",base:t,go:s,createHref:uS.bind(null,t)},e,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function TS(t){return typeof t=="string"||t&&typeof t=="object"}function Up(t){return typeof t=="string"||typeof t=="symbol"}const Un={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Bp=Symbol("");var eh;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(eh||(eh={}));function hr(t,e){return Ye(new Error,{type:t,[Bp]:!0},e)}function In(t,e){return t instanceof Error&&Bp in t&&(e==null||!!(t.type&e))}const th="[^/]+?",wS={sensitive:!1,strict:!1,start:!0,end:!0},_S=/[.+*?^${}()[\]/\\]/g;function bS(t,e){const n=Ye({},wS,e),s=[];let r=n.start?"^":"";const i=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let f=0;f<c.length;f++){const h=c[f];let d=40+(n.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(_S,"\\$&"),d+=40;else if(h.type===1){const{value:m,repeatable:p,optional:y,regexp:g}=h;i.push({name:m,repeatable:p,optional:y});const T=g||th;if(T!==th){d+=10;try{new RegExp(`(${T})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${m}" (${T}): `+w.message)}}let I=p?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;f||(I=y&&c.length<2?`(?:/${I})`:"/"+I),y&&(I+="?"),r+=I,d+=20,y&&(d+=-8),p&&(d+=-20),T===".*"&&(d+=-50)}u.push(d)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const o=new RegExp(r,n.sensitive?"":"i");function a(c){const u=c.match(o),f={};if(!u)return null;for(let h=1;h<u.length;h++){const d=u[h]||"",m=i[h-1];f[m.name]=d&&m.repeatable?d.split("/"):d}return f}function l(c){let u="",f=!1;for(const h of t){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const d of h)if(d.type===0)u+=d.value;else if(d.type===1){const{value:m,repeatable:p,optional:y}=d,g=m in c?c[m]:"";if(hn(g)&&!p)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const T=hn(g)?g.join("/"):g;if(!T)if(y)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${m}"`);u+=T}}return u||"/"}return{re:o,score:s,keys:i,parse:a,stringify:l}}function ES(t,e){let n=0;for(;n<t.length&&n<e.length;){const s=e[n]-t[n];if(s)return s;n++}return t.length<e.length?t.length===1&&t[0]===40+40?-1:1:t.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function SS(t,e){let n=0;const s=t.score,r=e.score;for(;n<s.length&&n<r.length;){const i=ES(s[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-s.length)===1){if(nh(s))return 1;if(nh(r))return-1}return r.length-s.length}function nh(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const IS={type:0,value:""},OS=/[a-zA-Z0-9_]/;function DS(t){if(!t)return[[]];if(t==="/")return[[IS]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(d){throw new Error(`ERR (${n})/"${c}": ${d}`)}let n=0,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let a=0,l,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a<t.length;){if(l=t[a++],l==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:l==="/"?(c&&f(),o()):l===":"?(f(),n=1):h();break;case 4:h(),n=s;break;case 1:l==="("?n=2:OS.test(l)?h():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${c}"`),f(),o(),r}function kS(t,e,n){const s=bS(DS(t.path),n),r=Ye(s,{record:t,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function MS(t,e){const n=[],s=new Map;e=ih({strict:!1,end:!0,sensitive:!1},e);function r(u){return s.get(u)}function i(u,f,h){const d=!h,m=CS(u);m.aliasOf=h&&h.record;const p=ih(e,u),y=[m];if("alias"in u){const I=typeof u.alias=="string"?[u.alias]:u.alias;for(const w of I)y.push(Ye({},m,{components:h?h.record.components:m.components,path:w,aliasOf:h?h.record:m}))}let g,T;for(const I of y){const{path:w}=I;if(f&&w[0]!=="/"){const b=f.record.path,S=b[b.length-1]==="/"?"":"/";I.path=f.record.path+(w&&S+w)}if(g=kS(I,f,p),h?h.alias.push(g):(T=T||g,T!==g&&T.alias.push(g),d&&u.name&&!rh(g)&&o(u.name)),m.children){const b=m.children;for(let S=0;S<b.length;S++)i(b[S],g,h&&h.children[S])}h=h||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&l(g)}return T?()=>{o(T)}:Jr}function o(u){if(Up(u)){const f=s.get(u);f&&(s.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&s.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){let f=0;for(;f<n.length&&SS(u,n[f])>=0&&(u.record.path!==n[f].record.path||!Hp(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!rh(u)&&s.set(u.record.name,u)}function c(u,f){let h,d={},m,p;if("name"in u&&u.name){if(h=s.get(u.name),!h)throw hr(1,{location:u});p=h.record.name,d=Ye(sh(f.params,h.keys.filter(T=>!T.optional).map(T=>T.name)),u.params&&sh(u.params,h.keys.map(T=>T.name))),m=h.stringify(d)}else if("path"in u)m=u.path,h=n.find(T=>T.re.test(m)),h&&(d=h.parse(m),p=h.record.name);else{if(h=f.name?s.get(f.name):n.find(T=>T.re.test(f.path)),!h)throw hr(1,{location:u,currentLocation:f});p=h.record.name,d=Ye({},f.params,u.params),m=h.stringify(d)}const y=[];let g=h;for(;g;)y.unshift(g.record),g=g.parent;return{name:p,path:m,params:d,matched:y,meta:NS(y)}}return t.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:r}}function sh(t,e){const n={};for(const s of e)s in t&&(n[s]=t[s]);return n}function CS(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:AS(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function AS(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const s in t.components)e[s]=typeof n=="object"?n[s]:n;return e}function rh(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function NS(t){return t.reduce((e,n)=>Ye(e,n.meta),{})}function ih(t,e){const n={};for(const s in t)n[s]=s in e?e[s]:t[s];return n}function Hp(t,e){return e.children.some(n=>n===t||Hp(t,n))}const jp=/#/g,xS=/&/g,LS=/\//g,RS=/=/g,PS=/\?/g,Wp=/\+/g,$S=/%5B/g,FS=/%5D/g,Vp=/%5E/g,zS=/%60/g,qp=/%7B/g,YS=/%7C/g,Kp=/%7D/g,US=/%20/g;function Kc(t){return encodeURI(""+t).replace(YS,"|").replace($S,"[").replace(FS,"]")}function BS(t){return Kc(t).replace(qp,"{").replace(Kp,"}").replace(Vp,"^")}function Rl(t){return Kc(t).replace(Wp,"%2B").replace(US,"+").replace(jp,"%23").replace(xS,"%26").replace(zS,"`").replace(qp,"{").replace(Kp,"}").replace(Vp,"^")}function HS(t){return Rl(t).replace(RS,"%3D")}function jS(t){return Kc(t).replace(jp,"%23").replace(PS,"%3F")}function WS(t){return t==null?"":jS(t).replace(LS,"%2F")}function ko(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function VS(t){const e={};if(t===""||t==="?")return e;const s=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<s.length;++r){const i=s[r].replace(Wp," "),o=i.indexOf("="),a=ko(o<0?i:i.slice(0,o)),l=o<0?null:ko(i.slice(o+1));if(a in e){let c=e[a];hn(c)||(c=e[a]=[c]),c.push(l)}else e[a]=l}return e}function oh(t){let e="";for(let n in t){const s=t[n];if(n=HS(n),s==null){s!==void 0&&(e+=(e.length?"&":"")+n);continue}(hn(s)?s.map(i=>i&&Rl(i)):[s&&Rl(s)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function qS(t){const e={};for(const n in t){const s=t[n];s!==void 0&&(e[n]=hn(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return e}const KS=Symbol(""),ah=Symbol(""),Zc=Symbol(""),Gc=Symbol(""),Pl=Symbol("");function zr(){let t=[];function e(s){return t.push(s),()=>{const r=t.indexOf(s);r>-1&&t.splice(r,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Vn(t,e,n,s,r){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((o,a)=>{const l=f=>{f===!1?a(hr(4,{from:n,to:e})):f instanceof Error?a(f):TS(f)?a(hr(2,{from:e,to:f})):(i&&s.enterCallbacks[r]===i&&typeof f=="function"&&i.push(f),o())},c=t.call(s&&s.instances[r],e,n,l);let u=Promise.resolve(c);t.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function el(t,e,n,s){const r=[];for(const i of t)for(const o in i.components){let a=i.components[o];if(!(e!=="beforeRouteEnter"&&!i.instances[o]))if(ZS(a)){const c=(a.__vccOpts||a)[e];c&&r.push(Vn(c,n,s,i,o))}else{let l=a();r.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=tS(c)?c.default:c;i.components[o]=u;const h=(u.__vccOpts||u)[e];return h&&Vn(h,n,s,i,o)()}))}}return r}function ZS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function lh(t){const e=cn(Zc),n=cn(Gc),s=x(()=>e.resolve(B(t.to))),r=x(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(fr.bind(null,u));if(h>-1)return h;const d=ch(l[c-2]);return c>1&&ch(u)===d&&f[f.length-1].path!==d?f.findIndex(fr.bind(null,l[c-2])):h}),i=x(()=>r.value>-1&&QS(n.params,s.value.params)),o=x(()=>r.value>-1&&r.value===n.matched.length-1&&zp(n.params,s.value.params));function a(l={}){return JS(l)?e[B(t.replace)?"replace":"push"](B(t.to)).catch(Jr):Promise.resolve()}return{route:s,href:x(()=>s.value.href),isActive:i,isExactActive:o,navigate:a}}const GS=ke({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:lh,setup(t,{slots:e}){const n=Os(lh(t)),{options:s}=cn(Zc),r=x(()=>({[uh(t.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[uh(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&e.default(n);return t.custom?i:oc("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),XS=GS;function JS(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function QS(t,e){for(const n in e){const s=e[n],r=t[n];if(typeof s=="string"){if(s!==r)return!1}else if(!hn(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function ch(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const uh=(t,e,n)=>t??e??n,eI=ke({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const s=cn(Pl),r=x(()=>t.route||s.value),i=cn(ah,0),o=x(()=>{let c=B(i);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=x(()=>r.value.matched[o.value]);Gi(ah,x(()=>o.value+1)),Gi(KS,a),Gi(Pl,r);const l=ce();return He(()=>[l.value,a.value,t.name],([c,u,f],[h,d,m])=>{u&&(u.instances[f]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!fr(u,d)||!h)&&(u.enterCallbacks[f]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=r.value,u=t.name,f=a.value,h=f&&f.components[u];if(!h)return fh(n.default,{Component:h,route:c});const d=f.props[u],m=d?d===!0?c.params:typeof d=="function"?d(c):d:null,y=oc(h,Ye({},m,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return fh(n.default,{Component:y,route:c})||y}}});function fh(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const tI=eI;function nI(t){const e=MS(t.routes,t),n=t.parseQuery||VS,s=t.stringifyQuery||oh,r=t.history,i=zr(),o=zr(),a=zr(),l=wy(Un);let c=Un;js&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ja.bind(null,$=>""+$),f=Ja.bind(null,WS),h=Ja.bind(null,ko);function d($,ie){let q,le;return Up($)?(q=e.getRecordMatcher($),le=ie):le=$,e.addRoute(le,q)}function m($){const ie=e.getRecordMatcher($);ie&&e.removeRoute(ie)}function p(){return e.getRoutes().map($=>$.record)}function y($){return!!e.getRecordMatcher($)}function g($,ie){if(ie=Ye({},ie||l.value),typeof $=="string"){const N=Qa(n,$,ie.path),Y=e.resolve({path:N.path},ie),H=r.createHref(N.fullPath);return Ye(N,Y,{params:h(Y.params),hash:ko(N.hash),redirectedFrom:void 0,href:H})}let q;if("path"in $)q=Ye({},$,{path:Qa(n,$.path,ie.path).path});else{const N=Ye({},$.params);for(const Y in N)N[Y]==null&&delete N[Y];q=Ye({},$,{params:f(N)}),ie.params=f(ie.params)}const le=e.resolve(q,ie),Ie=$.hash||"";le.params=u(h(le.params));const O=rS(s,Ye({},$,{hash:BS(Ie),path:le.path})),M=r.createHref(O);return Ye({fullPath:O,hash:Ie,query:s===oh?qS($.query):$.query||{}},le,{redirectedFrom:void 0,href:M})}function T($){return typeof $=="string"?Qa(n,$,l.value.path):Ye({},$)}function I($,ie){if(c!==$)return hr(8,{from:ie,to:$})}function w($){return C($)}function b($){return w(Ye(T($),{replace:!0}))}function S($){const ie=$.matched[$.matched.length-1];if(ie&&ie.redirect){const{redirect:q}=ie;let le=typeof q=="function"?q($):q;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=T(le):{path:le},le.params={}),Ye({query:$.query,hash:$.hash,params:"path"in le?{}:$.params},le)}}function C($,ie){const q=c=g($),le=l.value,Ie=$.state,O=$.force,M=$.replace===!0,N=S(q);if(N)return C(Ye(T(N),{state:typeof N=="object"?Ye({},Ie,N.state):Ie,force:O,replace:M}),ie||q);const Y=q;Y.redirectedFrom=ie;let H;return!O&&iS(s,le,q)&&(H=hr(16,{to:Y,from:le}),Q(le,le,!0,!1)),(H?Promise.resolve(H):z(Y,le)).catch(W=>In(W)?In(W,2)?W:F(W):E(W,Y,le)).then(W=>{if(W){if(In(W,2))return C(Ye({replace:M},T(W.to),{state:typeof W.to=="object"?Ye({},Ie,W.to.state):Ie,force:O}),ie||Y)}else W=L(Y,le,!0,M,Ie);return X(Y,le,W),W})}function D($,ie){const q=I($,ie);return q?Promise.reject(q):Promise.resolve()}function A($){const ie=je.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext($):$()}function z($,ie){let q;const[le,Ie,O]=sI($,ie);q=el(le.reverse(),"beforeRouteLeave",$,ie);for(const N of le)N.leaveGuards.forEach(Y=>{q.push(Vn(Y,$,ie))});const M=D.bind(null,$,ie);return q.push(M),Fe(q).then(()=>{q=[];for(const N of i.list())q.push(Vn(N,$,ie));return q.push(M),Fe(q)}).then(()=>{q=el(Ie,"beforeRouteUpdate",$,ie);for(const N of Ie)N.updateGuards.forEach(Y=>{q.push(Vn(Y,$,ie))});return q.push(M),Fe(q)}).then(()=>{q=[];for(const N of O)if(N.beforeEnter)if(hn(N.beforeEnter))for(const Y of N.beforeEnter)q.push(Vn(Y,$,ie));else q.push(Vn(N.beforeEnter,$,ie));return q.push(M),Fe(q)}).then(()=>($.matched.forEach(N=>N.enterCallbacks={}),q=el(O,"beforeRouteEnter",$,ie),q.push(M),Fe(q))).then(()=>{q=[];for(const N of o.list())q.push(Vn(N,$,ie));return q.push(M),Fe(q)}).catch(N=>In(N,8)?N:Promise.reject(N))}function X($,ie,q){a.list().forEach(le=>A(()=>le($,ie,q)))}function L($,ie,q,le,Ie){const O=I($,ie);if(O)return O;const M=ie===Un,N=js?history.state:{};q&&(le||M?r.replace($.fullPath,Ye({scroll:M&&N&&N.scroll},Ie)):r.push($.fullPath,Ie)),l.value=$,Q($,ie,q,M),F()}let re;function he(){re||(re=r.listen(($,ie,q)=>{if(!ot.listening)return;const le=g($),Ie=S(le);if(Ie){C(Ye(Ie,{replace:!0}),le).catch(Jr);return}c=le;const O=l.value;js&&dS(Jf(O.fullPath,q.delta),pa()),z(le,O).catch(M=>In(M,12)?M:In(M,2)?(C(M.to,le).then(N=>{In(N,20)&&!q.delta&&q.type===fi.pop&&r.go(-1,!1)}).catch(Jr),Promise.reject()):(q.delta&&r.go(-q.delta,!1),E(M,le,O))).then(M=>{M=M||L(le,O,!1),M&&(q.delta&&!In(M,8)?r.go(-q.delta,!1):q.type===fi.pop&&In(M,20)&&r.go(-1,!1)),X(le,O,M)}).catch(Jr)}))}let de=zr(),J=zr(),te;function E($,ie,q){F($);const le=J.list();return le.length?le.forEach(Ie=>Ie($,ie,q)):console.error($),Promise.reject($)}function G(){return te&&l.value!==Un?Promise.resolve():new Promise(($,ie)=>{de.add([$,ie])})}function F($){return te||(te=!$,he(),de.list().forEach(([ie,q])=>$?q($):ie()),de.reset()),$}function Q($,ie,q,le){const{scrollBehavior:Ie}=t;if(!js||!Ie)return Promise.resolve();const O=!q&&mS(Jf($.fullPath,0))||(le||!q)&&history.state&&history.state.scroll||null;return rn().then(()=>Ie($,ie,O)).then(M=>M&&hS(M)).catch(M=>E(M,$,ie))}const ve=$=>r.go($);let Be;const je=new Set,ot={currentRoute:l,listening:!0,addRoute:d,removeRoute:m,hasRoute:y,getRoutes:p,resolve:g,options:t,push:w,replace:b,go:ve,back:()=>ve(-1),forward:()=>ve(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:J.add,isReady:G,install($){const ie=this;$.component("RouterLink",XS),$.component("RouterView",tI),$.config.globalProperties.$router=ie,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>B(l)}),js&&!Be&&l.value===Un&&(Be=!0,w(r.location).catch(Ie=>{}));const q={};for(const Ie in Un)Object.defineProperty(q,Ie,{get:()=>l.value[Ie],enumerable:!0});$.provide(Zc,ie),$.provide(Gc,Zh(q)),$.provide(Pl,l);const le=$.unmount;je.add($),$.unmount=function(){je.delete($),je.size<1&&(c=Un,re&&re(),re=null,l.value=Un,Be=!1,te=!1),le()}}};function Fe($){return $.reduce((ie,q)=>ie.then(()=>A(q)),Promise.resolve())}return ot}function sI(t,e){const n=[],s=[],r=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;o<i;o++){const a=e.matched[o];a&&(t.matched.find(c=>fr(c,a))?s.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(c=>fr(c,l))||r.push(l))}return[n,s,r]}function rI(){return cn(Gc)}const kr=gr("markwhen",()=>{const t=rI(),e=ce({colorMap:{default:{}}}),n=ce(),s=ce(!1),r=ce(!0),i=ce(C=>{}),o=ce(C=>{}),a=ce(C=>{}),l=ce(typeof window<"u"&&window.__markwhen_initial_state),c=x(()=>{var C,D;if((C=n.value)!=null&&C.rawText)try{return btoa((D=n.value)==null?void 0:D.rawText)}catch{return""}return""}),u=x(()=>{var A;const{user:C,timeline:D}=t.params;return!t.path.includes(".html")&&C?`/${C}`+(D?`/${D}`:""):(A=e.value)!=null&&A.path&&e.value.path!=="/"?e.value.path:`#mw=${c.value}`}),f=x(()=>`https://app.markwhen.com${u.value}`),h=x(()=>`https://timeline.markwhen.com${u.value}`),d=x(()=>`<iframe src="${h.value}" />`);As(async()=>{const{user:C,timeline:D}=t.params;if(C)try{const A=D?`https://app.markwhen.com/${C}/${D}.mw`:`https://app.markwhen.com/${C}.mw`,z=await fetch(A).catch(()=>{});if(z&&(z.redirected&&(window.location.href=z.url),z.ok)){const X=await z.text(),L=Zf(X);e.value={isDark:!1,colorMap:xl(L.timelines[0]).value},n.value={rawText:X,parsed:L.timelines,transformed:L.timelines[0].events},s.value=!0,r.value=!1}}catch{}else if(t.hash&&t.hash.startsWith("#mw=")){const A=atob(t.hash.substring(4)),z=Zf(A);e.value={isDark:!1,colorMap:xl(z.timelines[0]).value},n.value={rawText:A,parsed:z.timelines,transformed:z.timelines[0].events},s.value=!0,r.value=!1}});const{postRequest:m}=eS({appState(C){s.value=!1,r.value=!0,e.value=C},markwhenState:C=>{n.value=C},jumpToPath:({path:C})=>{var D;(D=i.value)==null||D.call(i,C)},jumpToRange:({dateRangeIso:C})=>{var D;(D=o.value)==null||D.call(o,C)},getSvg:C=>{var D;return(D=a.value)==null?void 0:D.call(a,C)}}),p=C=>{m("setHoveringPath",C)},y=C=>{m("setDetailPath",C)},g=(C,D)=>{m("setText",{text:C,at:D})},T=C=>{m("showInEditor",C)},I=C=>{var D;return!!C&&hi(C,(D=e.value)==null?void 0:D.detailPath)},w=(C,D,A=!0)=>{m("newEvent",{dateRangeIso:C,granularity:D,immediate:A})},b=(C,D,A,z)=>{m("editEventDateRange",{path:C,range:D,scale:A,preferredInterpolationFormat:z})},S=()=>{m("markwhenState"),m("appState")};return S(),{app:e,markwhen:n,hadInitialState:l,onJumpToPath:i,onJumpToRange:o,onGetSvg:a,requestStateUpdate:S,setHoveringPath:p,setDetailEventPath:y,isDetailEventPath:I,setText:g,showInEditor:T,createEventFromRange:w,editEventDateRange:b,showEditButton:s,showCopyLinkButton:r,showEmbedButton:r,timelineLink:h,editorLink:f,embedLink:d}});var Nt=(t=>(t[t.SECOND=0]="SECOND",t[t.QUARTER_MINUTE=1]="QUARTER_MINUTE",t[t.MINUTE=2]="MINUTE",t[t.QUARTER_HOUR=3]="QUARTER_HOUR",t[t.HOUR=4]="HOUR",t[t.DAY=5]="DAY",t[t.MONTH=6]="MONTH",t[t.YEAR=7]="YEAR",t[t.DECADE=8]="DECADE",t[t.CENT=9]="CENT",t))(Nt||{});const ga=gr("markers",()=>{const t=xe(),e=ce(),n=ce(),s=x(()=>{const l=[],c=t.scaleOfViewportDateInterval,u=t.baselineLeftmostDate,f=t.baselineRightmostDate;let h=ei(u,c),d=ei(f,c),m=t.scalelessDistanceBetweenDates(u,h);for(l.push({dateTime:u,size:m,ts:u.toMillis(),accumulated:m});h<d&&l.length<1024;){l.push({dateTime:h,size:0,ts:h.toMillis(),accumulated:m}),c==="cent"?h=h.plus({years:100}):c==="decade"?h=h.plus({years:10}):c==="quarterhour"?h=h.plus({minutes:15}):c==="quarterminute"?h=h.plus({seconds:15}):h=h.plus({[c]:1});const p=t.scalelessDistanceBetweenDates(l[l.length-1].dateTime,h);m+=p,l[l.length-1].size=p,l[l.length-1].accumulated=m}return l[l.length-1].size=t.scalelessDistanceBetweenDates(l[l.length-1].dateTime,d),l}),r=x(()=>l=>{const c=t.dateFromClientLeft(l),u=t.scaleOfViewportDateInterval,f=Ms(c,u),h=ei(c,u);return[{dateTime:f,left:t.distanceFromBaselineLeftmostDate(f)},{dateTime:h,left:t.distanceFromBaselineLeftmostDate(h)}]}),i=x(()=>{for(let l=0;l<t.weights.length;l++)if(t.weights[l]>.05)return Zp[l];return"decade"});return{hoveringMarker:e,range:n,markers:s,rangeFromOffsetLeft:r,nextMostGranularScaleOfViewportDateInterval:i,setHoveringMarker:l=>{e.value=l},setRange:l=>{n.value=l}}}),Zp=["second","quarterminute","minute","quarterhour","hour","day","month","year","decade","cent"];function $l(t){return t.second===0?t.minute===0?t.hour===0?t.day===1?t.month===1?t.year%100===0?Nt.CENT:t.year%10===0?Nt.DECADE:Nt.YEAR:Nt.MONTH:Nt.DAY:Nt.HOUR:t.minute%15==0?Nt.QUARTER_HOUR:Nt.MINUTE:t.second%15===0?Nt.QUARTER_MINUTE:Nt.SECOND}const iI=64,wt="hours";function Ms(t,e){const n=t.year;if(e==="cent"){const l=n-n%100;return U.fromObject({year:l})}if(e==="decade"){const l=n-n%10;return U.fromObject({year:l})}if(e==="year")return U.fromObject({year:n});const s=t.month;if(e==="month")return U.fromObject({year:n,month:s});const r=t.day;if(e==="day")return U.fromObject({year:n,month:s,day:r});const i=t.hour;if(e==="hour")return U.fromObject({year:n,month:s,day:r,hour:i});const o=t.minute;if(e==="quarterhour")return U.fromObject({year:n,month:s,day:r,hour:i,minute:o-o%15});const a=t.second;return e==="quarterminute"?U.fromObject({year:n,month:s,day:r,hour:i,minute:o,second:a-a%15}):e==="minute"?U.fromObject({year:n,month:s,day:r,hour:i,minute:o}):U.fromObject({year:n,month:s,day:r,hour:i,minute:o,second:a})}function ei(t,e){let n;return e==="cent"?n={years:100}:e==="decade"?n={years:10}:e==="quarterhour"?n={minutes:15}:e==="quarterminute"?n={seconds:15}:n={[e]:1},Ms(t,e).plus(n)}function oI(t,e){const n=ei(t,e),s=Ms(t,e),r=t.diff(n),i=t.diff(s);return Math.abs(+r)<Math.abs(+i)?n:s}const Gp=t=>t.fromDateTime.plus({seconds:t.toDateTime.diff(t.fromDateTime).as("seconds")/2}),Xp=new Mc({max:1e3}),hh=(t,e)=>(Xp.set(t,e),e),aI=(t,e)=>{const n=JSON.stringify(t.dateRangeIso)+JSON.stringify(t.recurrence),s=Xp.get(n);if(s)return s;if(t.recurrence){const r=qc(mt(t.dateRangeIso),t.recurrence,e);return hh(n,{fromDateTime:r[0].fromDateTime,toDateTime:r[r.length-1].toDateTime})}else return hh(n,mt(t.dateRangeIso))},Cs=(t,e)=>{if(!t||!t.value)return;if(!Array.isArray(t.value)){const s=aI(t.value,e);return{...s,maxFrom:s.fromDateTime}}return t.value.reduce((s,r)=>{const i=Cs(r,e);if(!s||!i)return i;const o=+i.fromDateTime<+s.fromDateTime?i.fromDateTime:s.fromDateTime,a=+i.toDateTime>+s.toDateTime?i.toDateTime:s.toDateTime,l=+i.maxFrom>+s.maxFrom?i.maxFrom:s.maxFrom;return{fromDateTime:o,toDateTime:a,maxFrom:l}},void 0)},lI=.3,Jp=(t,e)=>t*24/e.toDateTime.diff(e.fromDateTime).as(wt),cI=(t,e)=>Ms(t.minus({years:3}),"year");function uI(t,e){if(e&&t){const n={fromDateTime:U.fromISO(t.metadata.earliestTime),toDateTime:U.fromISO(t.metadata.latestTime)},s=Jp(e.width,n)/3,r=Gp(n),i=cI(U.fromISO(t.metadata.earliestTime),t.metadata.maxDurationDays),o=r.diff(i).as(wt)*s/24;return{scale:s,viewportDateInterval:{fromDateTime:U.now().minus({years:10}),toDateTime:U.now().plus({years:10})},viewport:{height:e.height,top:0,width:e.width,left:o-e.width/2,offsetLeft:e.offsetLeft}}}else{const n={fromDateTime:U.now().minus({years:10}),toDateTime:U.now().plus({years:10})};return{scale:lI,viewportDateInterval:n,viewport:{left:0,width:0,top:0,height:0,offsetLeft:0}}}}const is=100,Xc=1,fI=15*Xc,Jc=60*Xc,hI=15*Jc,Qp=60*Jc,eg=24*Qp,tg=30*eg,ng=12*tg,sg=10*ng,dI=10*sg,rg=.25;function yn(t){return Math.floor(t*100)/100}function tn(t,e=0,n=1){return Math.min(n,Math.max(t,e))}const dh=.002,Mo=3e7,xe=gr("timeline",()=>{const t=kr(),e=x(()=>t.markwhen),n=ce(typeof localStorage<"u"&&localStorage.getItem("dateTimeDisplay")||"original"),s=ce(typeof localStorage<"u"&&localStorage.getItem("progressDisplay")||"on"),r=x(()=>e.value.parsed[0]),i=x(()=>r.value.metadata),o=x(()=>Object.keys(r.value.header).filter(K=>K.startsWith(")")).reduce((K,Oe)=>({...K,[Oe.replace(")","")]:r.value.header[Oe]}),{})),a=x(()=>e.value.transformed),l=x(()=>{var K;return!!((K=t.app)!=null&&K.isDark)}),c=x(()=>Cs(a.value,is)||{fromDateTime:U.now().minus({years:5}),toDateTime:U.now().plus({years:5})}),u=x(()=>{var K;return(K=t.app)==null?void 0:K.hoveringPath}),f=t.editEventDateRange,h=t.setHoveringPath,d=()=>t.setHoveringPath(),m=t.setText,p=t.showInEditor,y=t.createEventFromRange,g=t.isDetailEventPath,T=t.setDetailEventPath,I=ce(),w=ce((()=>{var Oe,nt;const K=(Oe=I.value)==null?void 0:Oe.call(I);return uI((nt=e.value)==null?void 0:nt.parsed[0],K)})()),b=ce(!1),S=ce(!1),C=ce(0),D=ce(),A=ce(!0),z=ce(typeof localStorage<"u"&&localStorage.getItem("preferredMode")||"timeline"),X=ce(200),L=ce(0),re=ce(0),he=ce(!1);He(z,K=>{typeof localStorage<"u"&&localStorage.setItem("preferredMode",K)}),He(n,K=>{typeof localStorage<"u"&&localStorage.setItem("dateTimeDisplay",K)}),He(s,K=>{typeof localStorage<"u"&&localStorage.setItem("progressDisplay",K)});const de=()=>{re.value++},J=()=>he.value=!he.value,te=x(()=>z.value==="gantt"?L.value?L.value:X.value:0),E=K=>{L.value=K},G=K=>{X.value=K},F=x(()=>w.value.scale);x(()=>c.value.fromDateTime),x(()=>i.value.maxDurationDays);const Q=ce(U.now()),ve=ce(U.now()),Be=x(()=>({[wt]:w.value.viewport.width*2.5/F.value*24})),je=x(()=>ve.value.minus(Be.value)),ot=x(()=>ve.value.plus(Be.value)),Fe=x(()=>0),$=x(()=>K=>K.diff(je.value).as(wt)*F.value/24),ie=x(()=>(K,Oe)=>{const nt=je.value.plus({[wt]:(K+te.value)/F.value*24}),It=je.value.plus({[wt]:(Oe+K+te.value)/F.value*24});return{fromDateTime:nt,toDateTime:It}}),q=(K,Oe)=>Oe.diff(K).as(wt),le=x(()=>(K,Oe)=>Oe.diff(K).as(wt)*F.value/24),Ie=x(()=>K=>K.diff(ve.value).as(wt)),O=x(()=>K=>K.diff(ve.value).as(wt)*F.value/24+w.value.viewport.width+Fe.value),M=K=>K.diff(w.value.viewportDateInterval.fromDateTime).as(wt)*F.value/24,N=x(()=>K=>je.value.plus({[wt]:(K+w.value.viewport.left)/F.value*24})),Y=K=>{w.value.viewport=K,w.value.viewportDateInterval=ie.value(K.left-K.offsetLeft,K.width+K.offsetLeft)},H=K=>{z.value=K},W=K=>{I.value=K},oe=K=>(w.value.scale=K,!0),ee=K=>{b.value=K},se=K=>{S.value=K},j=K=>{D.value=K},ge=()=>C.value++,me=K=>{A.value=K},ye=K=>{Te.value=K},Te=ce(),be=x(()=>{const nt=w.value.viewportDateInterval.toDateTime,It=w.value.viewportDateInterval.fromDateTime,Ln=nt.diff(It).as(wt),_n=2e3*86400,Ps=Ln*(_n/24),yt=w.value.viewport.width+w.value.viewport.offsetLeft,Je=Ps/yt;return[tn(yn(30*Xc/Je)),tn(yn(20*fI/Je)),tn(yn(30*Jc/Je)),tn(yn(20*hI/Je)),tn(yn(30*Qp/Je)),tn(yn(40*eg/Je)),tn(yn(30*tg/Je)),tn(yn(25*ng/Je)),tn(yn(25*sg/Je)),tn(yn(20*dI/Je))]}),Le=x(()=>{for(let K=0;K<be.value.length;K++)if(be.value[K]>rg)return Zp[K];return"cent"});return{referenceDate:ve,pageSettings:w,startedWidthChange:b,hideNowLine:S,scrollToPath:D,shouldZoomWhenScrolling:A,mode:z,ganttSidebarWidth:X,ganttSidebarTempWidth:L,autoCenterSemaphore:re,miniMapShowing:he,dateTimeDisplay:n,progressDisplay:s,colors:x(()=>{var K;return(K=t.app)==null?void 0:K.colorMap}),baseOffset:Fe,hoveringDate:Q,baselineLeftmostDate:je,baselineRightmostDate:ot,diffAmount:Be,darkMode:l,pageTimeline:r,tags:o,pageTimelineMetadata:i,pageRange:c,transformedEvents:a,pageScale:F,pageScaleBy24:x(()=>F.value/24),scalelessDistanceBetweenDates:q,distanceBetweenDates:le,distanceFromViewportLeftDate:M,distanceFromReferenceDate:O,dateFromClientLeft:N,scalelessDistanceFromReferenceDate:Ie,scaleOfViewportDateInterval:Le,weights:be,leftInsetWidth:te,hoveringEventPaths:u,isDetailEventPath:g,distanceFromBaselineLeftmostDate:$,setDetailEventPath:T,createEventFromRange:y,showInEditor:p,setText:m,setHoveringEvent:h,clearHoveringEvent:d,editEventDateRange:f,setViewport:Y,setViewportGetter:W,setPageScale:oe,setStartedWidthChange:ee,setHideNowLine:se,setScrollToPaths:j,setShouldZoomWhenScrolling:me,setMode:H,setGanttSidebarWidth:G,setGanttSidebarTempWidth:E,autoCenter:de,toggleMiniMap:J,goToNow:ge,goToNowSemaphore:C,setRange:ye,rangeToJumpTo:Te}}),mI=()=>{const t=new Mc({max:300});return{getWeekday:n=>{const s=`${n.year}-${n.month}-${n.day}`,r=t.get(s);if(r)return r;const i=yo(n);return t.set(s,i.weekday),i}}},Qc=t=>{const e=ce(),n=xe();return As(()=>{const s=B(t);let r=Zt(s)?qm(s).eventDescription.tags:s.tags;const i=s.source;e.value=r?n.colors[i||"default"][r[0]]:void 0}),{color:e}},Ls=gr("collapse",()=>{const t=kr(),e=xe(),n=ce((()=>{var m;const h=(m=t.markwhen)==null?void 0:m.parsed[0],d=new Set;return h&&sr(h.events,[],(p,y)=>{Zt(p)||p.startExpanded||d.add(y.join(","))}),d})()),s=h=>{n.value.add(h.join(","))},r=h=>{n.value.delete(h.join(","))},i=h=>{const d=h.join(",");n.value.has(d)?n.value.delete(d):n.value.add(d)},o=(h,d)=>{const m=typeof h=="string"?h:h.join(",");d?n.value.add(m):n.value.delete(m)};return{collapsed:n,isCollapsed:h=>{const d=typeof h=="string"?h:h.join(",");for(const m of n.value.keys())if(d===m)return!0;return!1},isCollapsedChild:h=>{const d=typeof h=="string"?h:h.join(",");for(const m of n.value.keys())if(d!==m&&d.startsWith(`${m},`))return!0;return!1},isCollapsedChildOf:h=>{const d=typeof h=="string"?h:h.join(",");let m;for(const p of n.value.keys())d!==p&&d.startsWith(`${p},`)&&(!m||p.length<m.length)&&(m=p);return m==null?void 0:m.split(",").map(p=>parseInt(p))},collapse:s,setCollapsed:o,toggleCollapsed:i,expand:r,collapseAll:()=>{sr(e.transformedEvents,[],(h,d)=>{Zt(h)||o(d,!0)})},expandAll:()=>{sr(e.transformedEvents,[],(h,d)=>{Zt(h)||o(d,!1)})}}}),pI=t=>t[t.length-1]===0?t.slice(0,-1):[...t.slice(0,-1),t[t.length-1]-1],sr=(t,e,n)=>{if(n(t,e),!Zt(t)){const s=t.value;for(let r=0;r<s.length;r++)sr(s[r],[...e,r],n)}},gI=t=>{if(!t)return[];const e=[];return sr(t,[],(n,s)=>{e.push({path:s,node:n})}),e},_i=gr("nodes",()=>{const t=xe(),e=Ls(),n=x(()=>t.transformedEvents),s=x(()=>gI(t.transformedEvents)),r=(y,g,T)=>{const I=g.join(","),w=T.get(I);if(w)return w;const b=D=>(T.set(I,D),D);if(e.isCollapsed(I)||Zt(y))return b(0);const C=y.value.reduce((D,A,z)=>D+1+r(A,[...g,z],T),0);return b(C)};let i=0;const o=Os(new Map),a=y=>{const g=y.map(I=>I.path.join(",")),T=[];for(const I of o.keys())g.includes(I)||(T.push(o.get(I)),o.delete(I));for(const I of g)if(!o.has(I)){const w=T.pop();typeof w<"u"?o.set(I,w):o.set(I,i++)}return y.map(I=>({...I,key:""+o.get(I.path.join(","))}))},l=x(()=>{const y=[],g=[];for(const{path:T,node:I}of s.value){const w=T.join(",");if(Zt(I)){const b={node:I,path:T};if(t.scrollToPath&&hi(T,t.scrollToPath))y.push(b);else{const C=100+(d.value.get(w)||0)*30,D=t.pageSettings.viewport;if(C>D.top-100&&C<D.top+D.height+100)if(t.mode==="gantt")y.push(b);else{const A=Cs(b.node,is),z=t.pageScaleBy24*t.scalelessDistanceFromReferenceDate(A.fromDateTime),X=t.pageScaleBy24*t.scalelessDistanceBetweenDates(A.fromDateTime,A.toDateTime);(z<D.left+D.width+50||D.left<z+X+50)&&y.push(b)}}}else{if(e.isCollapsedChild(T))continue;if(T.length>0){const b=d.value.get(w)||0,S=f.value.get(w)||0,C=100+b*30,D=30+S*30,A=t.pageSettings.viewport,z=C+D,X=C,L=A.top-100,re=A.top+A.height+100;if(X>re)continue;if(z<L)continue;g.push({path:T,node:I})}}}return[a(y),g]}),c=Os(new Map),u=x(()=>{const y=l.value[1].map(T=>T.path.join(",")),g=[];for(const T of c.keys())y.includes(T)||(g.push(c.get(T)),c.delete(T));for(const T of y)if(!c.has(T)){const I=g.pop();typeof I<"u"?c.set(T,I):c.set(T,i++)}return c}),f=x(()=>{const y=new Map;for(const{path:g,node:T}of s.value)r(T,g,y);return y}),h=(y,g,T,I)=>{const w=g.join(","),b=A=>(T.set(w,A),A);if(!g.length)return b(0);const S=T.get(w);if(typeof S<"u")return S;const C=pI(g).join(",");let D=1+T.get(C);return C.length&&w.length&&C.split(",").length===w.split(",").length&&(D+=I.get(C)||0),b(D)},d=x(()=>{const y=new Map;for(const{path:g,node:T}of s.value)h(T,g,y,f.value);return y}),m=x(()=>{let y=0;for(const g of d.value.values())g>y&&(y=g);return y}),p=x(()=>s.value.length?`${s.value.length*30+500}px`:"100%");return{nodes:n,nodeArray:s,visibleNodes:l,childrenMap:f,predecessorMap:d,sectionKeys:u,height:m,viewHeight:p}}),ms=t=>t.toLocaleString(U.TIME_24_WITH_SECONDS),Ct=t=>t.toLocaleString(U.TIME_24_SIMPLE),ht=t=>t.year,Rt=t=>t.toISODate(),Vi=t=>`${t.day} ${t.monthShort}`,qi=t=>t.toLocaleString(U.DATETIME_SHORT_WITH_SECONDS),tl=t=>`${t.monthShort} ${t.year}`,We=()=>"",ig=[[ms,ms,ms,ms,qi,qi,qi,qi,Rt,ht],[ms,ms,ms,Ct,Ct,Vi,Rt,Rt,Rt,ht],[t=>t.second,Ct,Ct,Ct,Ct,Vi,Rt,Rt,Rt,ht],[t=>t.second,t=>t.minute,t=>t.minute,Ct,Ct,Vi,Rt,Rt,Rt,ht],[We,t=>t.minute,t=>t.minute,Ct,Ct,Vi,Rt,Rt,Rt,ht],[We,We,We,Ct,t=>t.hour,t=>t.day,tl,tl,tl,ht],[We,We,We,Ct,We,t=>t.day,t=>t.monthShort,ht,ht,ht],[We,We,We,Ct,We,We,t=>t.month,ht,ht,ht],[We,We,We,Ct,We,We,We,ht,ht,ht],[We,We,We,We,We,We,We,ht,ht,ht]],yI=V("div",{class:"fixed top-0 left-0 right-0 h-6 bg-white/95 dark:bg-slate-800/95 z-30 border-b dark:border-slate-700"},null,-1),vI=["id"],TI={key:0,class:"flex flex-row"},wI={key:0,class:"whitespace-nowrap text-xs font-bold dark:bg-slate-800 bg-white border-l p-1 dark:border-slate-400 border-slate-500"},_I=V("h6",{class:"whitespace-nowrap text-xs font-bold"}," ",-1),bI=ke({__name:"TimeMarkersBack",setup(t){const e=ga(),n=xe(),{getWeekday:s}=mI(),r=x(()=>n.darkMode),i=_i(),o=x(()=>g=>{if(n.weights[Nt.DAY]>.3){const T=s(g.dateTime),I=Math.min(n.weights[Nt.DAY]*.3,.5);if(typeof T=="number"&&T===6||T===7||T.weekday===6||T.weekday===7)return r.value?`rgba(10, 10, 10, ${I})`:`rgba(170, 170, 170, ${I})`}return"unset"}),a=x(()=>g=>{const T=e.hoveringMarker;return T?+g.dateTime==+T.dateTime:!1}),l=x(()=>g=>n.weights[$l(g.dateTime)]),c=x(()=>g=>{const T=a.value(g)?1:(l.value(g)-.3)*2;return r.value?`rgba(71, 85, 105, ${T})`:`rgba(200, 200, 200, ${T})`}),u=x(()=>{const g=[];return n.transformedEvents?(sr(n.transformedEvents,[],(T,I)=>{if(Zt(T)&&["era","milestone"].some(w=>T.value.eventDescription.tags.map(b=>b.toLowerCase()).includes(w))){const{fromDateTime:w,toDateTime:b}=mt(T.value.dateRangeIso),S=Qc(T).color.value,C=hi(n.hoveringEventPaths,I),D={left:n.distanceFromViewportLeftDate(w)+n.leftInsetWidth-iI,width:Math.max(2,n.distanceBetweenDates(w,b))};S&&(D.backgroundColor=`rgba(${S}, ${C?.15:.1})`,D.borderColor=`rgba(${S}, ${C?.75:.3})`),g.push(D)}}),g):[]}),f=x(()=>g=>$l(g.dateTime)),h=x(()=>{for(let g=0;g<n.weights.length;g++)if(n.weights[g]>rg)return g;return Nt.DECADE}),d=x(()=>g=>ig[h.value][f.value(g)](g.dateTime)),m=x(()=>g=>tn((l.value(g)-.45)*5)),p=x(()=>g=>{var T;return e.hoveringMarker&&+((T=e.hoveringMarker)==null?void 0:T.dateTime)==+g.dateTime}),y=x(()=>g=>{const T=g.dateTime;return h.value>5?T.year:h.value>3?T.toLocaleString(U.DATE_HUGE):T.toLocaleString(U.DATETIME_HUGE_WITH_SECONDS)});return(g,T)=>(ne(),pe(Pe,null,[yI,(ne(!0),pe(Pe,null,un(B(e).markers,I=>(ne(),pe("div",{id:""+I.ts,key:I.ts,class:"h-full flex-shrink-0 absolute top-0 bottom-0",style:ze({backgroundColor:o.value(I),width:`${B(n).pageScaleBy24*I.size}px`,left:`${B(n).pageScaleBy24*(I.accumulated-I.size)}px`,borderLeft:`1px ${a.value(I)?"solid":"dashed"} ${c.value(I)}`,height:`max(${B(i).viewHeight}, 100%)`})},[V("div",{class:ut(["sticky top-0 -m-px",{"font-bold z-50 dark:border-slate-400 border-slate-500":p.value(I),"z-40 dark:border-slate-600":!p.value(I)}])},[V("h6",{class:"timeMarkerTitle text-sm whitespace-nowrap dark:text-white text-black pl-1 border-l border-inherit",style:ze({opacity:p.value(I)?1:m.value(I)})},pt(d.value(I)),5),h.value<=6?(ne(),pe("div",TI,[p.value(I)?(ne(),pe("h6",wI,pt(y.value(I)),1)):Ue("",!0),_I])):Ue("",!0)],2)],12,vI))),128)),(ne(!0),pe(Pe,null,un(u.value,I=>(ne(),pe("div",{class:ut(["absolute top-0 bottom-0 h-full border-l border-r transition",I.backgroundColor?"":"bg-gray-300/50 dark:bg-gray-300/10 border-gray-500/50"]),style:ze({left:`${I.left}px`,width:`${I.width}px`,backgroundColor:I.backgroundColor,borderColor:I.borderColor})},null,6))),256))],64))}});const EI=ke({__name:"NowLine",setup(t){const e=xe(),n=_i(),s=ce(U.now()),r=()=>{s.value=U.now(),setTimeout(()=>r(),1e3*60)};os(()=>{r()});const i=x(()=>Math.min(Math.max(0,e.distanceFromBaselineLeftmostDate(s.value)),e.pageSettings.viewport.width*6));return(o,a)=>B(e).hideNowLine?Ue("",!0):(ne(),pe("div",{key:0,class:"absolute dark:bg-slate-400 bg-blue-300 top-0 bottom-0",style:ze(`width: 1px; left: ${i.value}px; height: max(${B(n).viewHeight}, 100%);`)},null,4))}}),ya=gr("canPan",()=>({canPan:ce(!0)})),SI=()=>{const t=xe(),e=ga(),n=ya(),s=ce(),r=ce(),i=()=>{s.value=void 0,r.value=void 0,window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",l),window.removeEventListener("keydown",o)},o=h=>{h.key==="Escape"&&i()},a=h=>{const d=typeof TouchEvent<"u"&&h instanceof TouchEvent?h.touches[0].clientX:h.clientX,m=e.rangeFromOffsetLeft(d),p=[];p.push(m[0].left<s.value[0].left?m[0]:s.value[0]),p.push(m[1].left>s.value[1].left?m[1]:s.value[1]),r.value=p},l=h=>{const d=r.value?r.value:s.value;d&&t.createEventFromRange(Ic({fromDateTime:d[0].dateTime,toDateTime:d[1].dateTime}),["quarterhour","quarterminute","second"].includes(t.scaleOfViewportDateInterval)?"instant":t.scaleOfViewportDateInterval,t.pageTimelineMetadata.preferredInterpolationFormat),i()},c=h=>{s.value=e.range,window.addEventListener("touchmove",a),window.addEventListener("touchend",l),window.addEventListener("mousemove",a),window.addEventListener("mouseup",l),window.addEventListener("keydown",o)},u=x(()=>r.value?r.value:e.range),f=x(()=>!!s.value);return He(f,h=>{n.canPan=!h}),{mouseDownTouchStartListener:c,newEventPosition:u,creating:f}},II=ke({__name:"NewEvent",setup(t){const{newEventPosition:e,mouseDownTouchStartListener:n,creating:s}=SI(),r=xe(),i=x(()=>r.mode==="gantt");return(o,a)=>B(e)?(ne(),pe("button",{key:0,title:"Click and drag to create new event",class:ut(["h-[10px] border flex items-center justify-center flex-shrink-0 absolute border-transparent hover:border-slate-100 text-slate-600 hover:bg-slate-50 hover:shadow dark:text-slate-100 dark:hover:border-gray-600 dark:hover:bg-slate-700 font-bold",B(s)?"dark:border-gray-600 dark:bg-slate-600 bg-slate-50 border-slate-100 shadow":"bg-transparent"]),style:ze(`left: ${B(e)[0].left}px; width: ${B(e)[1].left-B(e)[0].left}px; top: 100px; height: ${i.value?"15px":"10px"}; border-radius: ${i.value?"0.25rem":"99px"}`),onMousedown:a[0]||(a[0]=_t((...l)=>B(n)&&B(n)(...l),["prevent","stop"])),onTouchstart:a[1]||(a[1]=_t((...l)=>B(n)&&B(n)(...l),["prevent","stop"]))}," + ",38)):Ue("",!0)}}),OI=V("div",{class:"absolute w-[2px] h-4 bg-gray-600 rounded dark:bg-gray-300"},null,-1),DI=V("div",{class:"w-4 h-4 absolute flex items-center justify-center"},[V("div",{class:"w-2 h-2 rounded-full border border-white dark:border-gray-300 bg-gray-600 dark:bg-gray-900 shadow"})],-1),kI=[OI,DI],mh=ke({__name:"DragHandle",props:{left:{},mouseDownTouchStartListener:{type:Function}},setup(t){const e=t,n=x(()=>({left:`${e.left}px`}));return(s,r)=>(ne(),pe("button",{class:"absolute flex items-center justify-center cursor-ew-resize touch-none top-0 bottom-0 z-[4]",style:ze(n.value),onTouchstartPassive:r[0]||(r[0]=(...i)=>s.mouseDownTouchStartListener&&s.mouseDownTouchStartListener(...i)),onMousedown:r[1]||(r[1]=_t((...i)=>s.mouseDownTouchStartListener&&s.mouseDownTouchStartListener(...i),["prevent","stop"]))},kI,36))}}),MI=ke({__name:"EventBar",props:{percent:{},tagColor:{},hovering:{type:Boolean},width:{},taskNumerator:{},taskDenominator:{},dragHandleListenerLeft:{type:Function},dragHandleListenerRight:{type:Function},editable:{type:Boolean},expandedRecurrence:{}},setup(t){const e=t,n=xe(),s=x(()=>n.mode==="gantt"),r=x(()=>e.tagColor||null),i=c=>{const u=n.mode==="gantt";return{left:`${c}px`,width:`${e.width}px`,backgroundColor:r.value?`rgba(${r.value}, 0.3)`:"",border:r.value?`1px solid rgba(${r.value}, 0.3)`:"",height:u?"15px":"10px",borderRadius:u?"0.125rem":"5px",flexShrink:0}},o=x(()=>s.value?15:10),a=c=>{const u=n.mode==="gantt",f={minWidth:"10px",...r.value?{backgroundColor:`rgba(${r.value}, 0.8)`}:{}};return f.width=`${e.percent*e.width/100}px`,f.borderRadius=u?"0.125rem":"5px",f.left=`${c}px`,f},l=x(()=>e.expandedRecurrence[e.expandedRecurrence.length-1]+e.width);return(c,u)=>(ne(),pe("div",{class:"flex flex-row items-center eventBar",style:ze(`width: ${l.value}px`)},[(ne(!0),pe(Pe,null,un(c.expandedRecurrence,(f,h)=>(ne(),pe("div",{key:h,class:"relative items-center",style:ze(`height: ${o.value}px;`)},[V("div",{class:ut({"eventBar transition shadow top-0 absolute":!0,"dark:bg-slate-400 bg-slate-700 opacity-30":!r.value}),style:ze(i(f))},null,6),V("div",{class:ut(["absolute top-0 bottom-0 percentBar transition",{"dark:bg-gray-400 bg-slate-700 border border-gray-800 dark:border-gray-300":!r.value,"opacity-100 shadow-lg":c.hovering,"opacity-60":!c.hovering}]),style:ze(a(f))},null,6),h===0?(ne(),pe(Pe,{key:0},[Js(_e(mh,{class:"pointer-events-auto",left:0,"mouse-down-touch-start-listener":c.dragHandleListenerLeft},null,8,["mouse-down-touch-start-listener"]),[[Qs,c.editable&&c.hovering]]),Js(_e(mh,{class:"pointer-events-auto",left:c.width,"mouse-down-touch-start-listener":c.dragHandleListenerRight},null,8,["left","mouse-down-touch-start-listener"]),[[Qs,c.editable&&c.hovering]])],64)):Ue("",!0)],4))),128))],4))}});const Rs=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},CI=Rs(MI,[["__scopeId","data-v-cc05e6c2"]]),AI=(t,e,n)=>{const s=ya(),r=ce(),i=x(()=>{if(r.value)return U.fromISO(r.value)}),o=ce(),a=x(()=>{if(o.value)return U.fromISO(o.value)}),l=ce(),c=ga(),u=xe(),f=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mousemove",g),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",p),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",y),document.removeEventListener("touchmove",g),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",p),document.removeEventListener("touchend",b),document.removeEventListener("keydown",m)},h=()=>{s.canPan=!0,f(),setTimeout(()=>{r.value=void 0,o.value=void 0},100)},d=()=>{s.canPan=!0,r.value=void 0,o.value=void 0,f()},m=C=>{C.key==="Escape"&&d()},p=C=>{typeof TouchEvent<"u"&&C instanceof TouchEvent||C.preventDefault(),n==null||n(i.value,a.value),h()},y=C=>{let D;typeof TouchEvent<"u"&&C instanceof TouchEvent?D=C.touches[0].clientX:(D=C.clientX,C.preventDefault());const A=u.dateFromClientLeft(D),z=Ms(A,c.nextMostGranularScaleOfViewportDateInterval);r.value=z.toISO()},g=C=>{let D;typeof TouchEvent<"u"&&C instanceof TouchEvent?D=C.touches[0].clientX:(D=C.clientX,C.preventDefault());const A=u.dateFromClientLeft(D),z=Ms(A,c.nextMostGranularScaleOfViewportDateInterval);o.value=z.toISO()},T=C=>{s.canPan=!1,document.addEventListener("mousemove",y),document.addEventListener("mouseup",p),document.addEventListener("touchmove",y),document.addEventListener("touchend",p),document.addEventListener("keydown",m)},I=C=>{s.canPan=!1,document.addEventListener("mousemove",g),document.addEventListener("mouseup",p),document.addEventListener("touchmove",g),document.addEventListener("touchend",p),document.addEventListener("keydown",m)},w=C=>{s.canPan=!1;let D;typeof TouchEvent<"u"&&C instanceof TouchEvent?D=C.touches[0].clientX:(C.preventDefault(),D=C.clientX);const A=u.dateFromClientLeft(D+18),z=oI(A,c.nextMostGranularScaleOfViewportDateInterval);r.value=z.toISO(),o.value=z.plus({[wt]:l.value}).toISO()},b=C=>{typeof TouchEvent<"u"&&C instanceof TouchEvent||C.preventDefault(),n==null||n(i.value,a.value),h()};return{dragHandleListenerLeft:T,dragHandleListenerRight:I,moveHandleListener:C=>{var D;s.canPan=!1,r.value=B(t),o.value=B(e),l.value=(D=a.value)==null?void 0:D.diff(i.value).as(wt),document.addEventListener("mousemove",w),document.addEventListener("touchmove",w),document.addEventListener("mouseup",b),document.addEventListener("touchend",b),document.addEventListener("keydown",m)},tempFrom:i,tempTo:a}},NI={class:"text-xs font-mono font-bold flex flex-row items-center"},xI={class:"h-4 w-4 mr-[2px]",focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},LI={key:0,"stroke-width":"2",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M9 16.17 5.53 12.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L9 16.17z"},RI={key:1,d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"},PI={key:2,d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"},$I={key:0,class:"pt-px mr-1"},FI=ke({__name:"TaskCompletion",props:{taskNumerator:{},taskDenominator:{},completed:{type:Boolean}},setup(t){return(e,n)=>(ne(),pe("div",NI,[(ne(),pe("svg",xI,[e.completed||e.taskNumerator>0&&e.taskNumerator===e.taskDenominator?(ne(),pe("path",LI)):e.taskNumerator===0||!e.taskDenominator&&typeof e.completed<"u"?(ne(),pe("path",RI)):(ne(),pe("path",PI))])),e.taskDenominator?(ne(),pe("span",$I,pt(e.taskNumerator)+"/"+pt(e.taskDenominator),1)):Ue("",!0)]))}}),zI={class:"eventTitle whitespace-nowrap font-semibold text-sm py-1 flex flex-row"},YI={class:"supplementalIndicators flex flex-row dark:text-gray-300 text-gray-500 gap-1 items-center justify-center pl-2"},UI={key:0,class:"h-4 w-4",focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},BI=V("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"},null,-1),HI=[BI],jI={class:"ml-px"},WI=["innerHTML"],VI={key:0},ph=ke({__name:"EventTitle",props:{showingMeta:{type:Boolean},isHovering:{type:Boolean},hasMeta:{type:Boolean},hasSupplemental:{type:Boolean},hasLocations:{type:Boolean},completed:{type:Boolean},taskDenominator:{},taskNumerator:{},titleHtml:{}},emits:["toggleMeta"],setup(t,{emit:e}){const n=xe();return(s,r)=>(ne(),pe("div",zI,[V("div",YI,[s.hasLocations?(ne(),pe("svg",UI,HI)):Ue("",!0),B(n).progressDisplay==="on"&&(s.taskDenominator||typeof s.completed<"u")?(ne(),Ge(FI,{key:1,taskNumerator:s.taskNumerator,taskDenominator:s.taskDenominator,completed:s.completed},null,8,["taskNumerator","taskDenominator","completed"])):Ue("",!0)]),V("p",jI,[V("span",{innerHTML:s.titleHtml,class:ut({"pointer-events-auto":s.titleHtml.includes("underline")})},null,10,WI),s.hasSupplemental?(ne(),pe("span",VI,"...")):Ue("",!0)])]))}}),qI={class:"flex flex-row text-gray-500 dark:text-gray-400 absolute mr-8 moveWidgets top-0 bottom-0 items-center justify-center p-2",style:{left:"-3.6rem"}},KI={class:"flex flex-row items-center justify-center"},ZI=V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor"},[V("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})],-1),GI=[ZI],XI=V("svg",{class:"w-4 h-4",focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[V("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})],-1),JI=[XI],QI=ke({__name:"MoveWidgets",props:{move:{type:Function},left:{}},emits:["edit"],setup(t,{emit:e}){return(n,s)=>(ne(),pe("div",qI,[V("div",KI,[V("button",{title:"Edit event",class:"mr-1 transition dark:hover:text-slate-100 hover:text-black rounded-sm p-px disabled:text-gray-300 disabled:dark:text-gray-600",onClick:s[0]||(s[0]=r=>e("edit"))},GI)]),V("div",{title:"Drag to move",class:"handle flex items-center justify-center cursor-crosshair touch-none hover:text-black dark:hover:text-slate-100 transition",onTouchstart:s[1]||(s[1]=(...r)=>n.move&&n.move(...r)),onMousedown:s[2]||(s[2]=_t((...r)=>n.move&&n.move(...r),["prevent","stop"]))},JI,32)]))}});const eO={};function tO(t,e){return ne(),Ge(jo,{name:"fade"},{default:gt(()=>[gd(t.$slots,"default",{},void 0,!0)]),_:3})}const gh=Rs(eO,[["render",tO],["__scopeId","data-v-39c803d6"]]),og=t=>{const e=Ls(),n=_i(),s=x(()=>e.isCollapsedChildOf(B(t))),r=x(()=>!!s.value);return{top:x(()=>100+n.predecessorMap.get(s.value?s.value.join(","):B(t).join(","))*30),isCollapsed:r}},nO={key:1,class:"absolute top-0 bottom-0 flex items-center pr-4 text-xs text-gray-400 source",style:{transform:"translateX(-100%)"}},sO={class:"eventItem pointer-events-none"},rO={class:"flex h-full"},iO=ke({__name:"EventRow",props:{path:{},eventLocations:{},tags:{},dateText:{},supplemental:{},matchedListItems:{},hovering:{type:Boolean},percent:{},rangeFrom:{},rangeTo:{},titleHtml:{},color:{},isDetailEvent:{type:Boolean},numAbove:{},completed:{type:Boolean},recurrence:{},source:{}},emits:["editDateRange","hover"],setup(t,{emit:e}){const n=t,s=xe(),r=ce(),i=ce(!1),o=x(()=>n.eventLocations.length>0),a=x(()=>!!o.value||!!n.supplemental.length),l=F=>{F.target instanceof HTMLAnchorElement||(F.preventDefault(),i.value=!i.value)},c=x(()=>n.supplemental.filter(F=>F.type==="checkbox"&&F.value).length),u=x(()=>n.supplemental.filter(F=>F.type==="checkbox").length);x(()=>o.value||n.supplemental.length?i.value:!1);const{dragHandleListenerLeft:f,dragHandleListenerRight:h,moveHandleListener:d,tempFrom:m,tempTo:p}=AI(x(()=>n.rangeFrom),x(()=>n.rangeTo),()=>e("editDateRange",I.value)),y=ce(!1),g=ce(!1);He(g,F=>e("hover",F));const T=x(()=>g.value||!!m.value||!!p.value||y.value||n.hovering),I=x(()=>{const F=mt({fromDateTimeIso:n.rangeFrom,toDateTimeIso:n.rangeTo});if(!m.value&&!p.value)return F;if(m.value){if(!p.value)return+m.value<+F.toDateTime?{fromDateTime:m.value,toDateTime:F.toDateTime}:{fromDateTime:F.toDateTime,toDateTime:m.value}}else return+p.value>+F.fromDateTime?{fromDateTime:F.fromDateTime,toDateTime:p.value}:{fromDateTime:p.value,toDateTime:F.fromDateTime};return{fromDateTime:+m.value<+p.value?m.value:p.value,toDateTime:+m.value<+p.value?p.value:m.value}}),w=x(()=>(n.recurrence?qc(I.value,n.recurrence,is):[I.value]).map(F=>s.distanceBetweenDates(I.value.fromDateTime,F.fromDateTime))),b=x(()=>{const F=s.distanceFromBaselineLeftmostDate(I.value.fromDateTime),Q=s.distanceBetweenDates(I.value.fromDateTime,I.value.toDateTime),ve=Math.max(10,Q);return{left:F,width:ve}}),S=x(()=>b.value.left),C=ce(),D=()=>{s.setDetailEventPath(n.path)},A=x(()=>{const F=n.percent;return isNaN(F)?!isNaN(c.value)&&u.value>0?c.value/u.value*100:100:F}),{top:z,isCollapsed:X}=og(x(()=>n.path)),L=()=>s.showInEditor(n.path),re=x(()=>s.mode==="gantt"),he=x(()=>{let F={top:`${z.value}px`,height:"30px",transition:"top 200ms cubic-bezier(0.4, 0, 0.2, 1)"};return F.left=re.value?"0px":`${S.value}px`,re.value&&(F.right="-350%"),F}),de=x(()=>re.value?{"dark:bg-gray-900 bg-white":n.isDetailEvent,"dark:border-gray-400 border-black":n.hovering&&!n.isDetailEvent,"dark:border-indigo-600 border-indigo-500":n.isDetailEvent,"border-transparent":!n.hovering&&!n.isDetailEvent,"dark:bg-slate-400/10  bg-slate-400/10":n.hovering}:{"pointer-events-none":X.value}),J=x(()=>re.value?{}:{"dark:bg-gray-800 bg-white shadow-lg":T.value&&a.value,"dark:bg-gray-900 bg-white shadow-lg":n.isDetailEvent,"ring-1 dark:ring-gray-400 ring-black":n.hovering&&!n.isDetailEvent,"ring-1 dark:ring-indigo-600 ring-indigo-500":n.isDetailEvent,"pointer-events-auto cursor-pointer":!X.value}),te=F=>{const Q=F instanceof MouseEvent?F.clientX:F.touches[0].clientX,ve=F instanceof MouseEvent?F.clientY:F.touches[0].clientY;C.value={x:Q,y:ve}},E=F=>{var Be;const Q=F instanceof MouseEvent?F.clientX:F.touches[0].clientX,ve=F instanceof MouseEvent?F.clientY:F.touches[0].clientY;((Be=C.value)==null?void 0:Be.x)===Q&&C.value.y===ve&&D()},G=x(()=>{const F={};return n.color&&(F.backgroundColor=`rgba(${n.color}, 0.5)`),F.width=`calc(${s.ganttSidebarTempWidth?s.ganttSidebarTempWidth:s.ganttSidebarWidth}px)`,F});return(F,Q)=>(ne(),pe(Pe,null,[V("div",{class:ut(["eventRow absolute",de.value]),style:ze(he.value),onMouseenterPassive:Q[2]||(Q[2]=ve=>!B(X)&&(g.value=!0)),onMouseleavePassive:Q[3]||(Q[3]=ve=>g.value=!1)},[!B(X)&&F.source==="default"?Js((ne(),Ge(QI,{key:0,move:B(d),left:S.value,onMouseenterPassive:Q[0]||(Q[0]=ve=>y.value=!0),onMouseleavePassive:Q[1]||(Q[1]=ve=>y.value=!1),onEdit:L},null,8,["move","left"])),[[Qs,T.value]]):!B(X)&&T.value?(ne(),pe("div",nO,pt(F.source),1)):Ue("",!0),V("div",{class:"flex flex-row eventContent items-center h-full",style:ze(re.value?`margin-left: ${S.value}px`:"")},[V("div",sO,[V("div",ns({class:["flex flex-row rounded -mx-2 px-2 eventBarAndTitle",J.value]},tc(B(X)?{}:{mousedown:te,mouseup:E},!0)),null,16),_e(CI,{ref_key:"eventBar",ref:r,tagColor:F.color,percent:A.value,hovering:T.value||F.hovering,width:b.value.width,taskNumerator:c.value,taskDenominator:u.value,"drag-handle-listener-left":B(f),"drag-handle-listener-right":B(h),editable:!B(X)&&F.source==="default",expandedRecurrence:w.value},null,8,["tagColor","percent","hovering","width","taskNumerator","taskDenominator","drag-handle-listener-left","drag-handle-listener-right","editable","expandedRecurrence"]),_e(gh,null,{default:gt(()=>[Js(V("p",{class:ut(["eventDate text-sm whitespace-nowrap py-1",F.recurrence?"dark:text-orange-300 text-orange-500":"text-gray-400"])},pt(F.dateText),3),[[Qs,!B(X)&&B(s).dateTimeDisplay==="original"]])]),_:1}),_e(gh,null,{default:gt(()=>[B(s).mode==="timeline"?Js((ne(),Ge(ph,{key:0,"showing-meta":i.value,"is-hovering":T.value,"has-meta":a.value,"has-supplemental":!!F.supplemental.length,"has-locations":o.value,"task-denominator":u.value,"task-numerator":c.value,completed:F.completed,"title-html":F.titleHtml,onToggleMeta:l},null,8,["showing-meta","is-hovering","has-meta","has-supplemental","has-locations","task-denominator","task-numerator","completed","title-html"])),[[Qs,!B(X)]]):Ue("",!0)]),_:1})])],4)],38),B(s).mode==="gantt"&&!B(X)?(ne(),pe("div",{key:0,class:"absolute left-0 h-[30px]",style:ze({top:`${B(z)}px`,right:"-350%"}),onMouseenterPassive:Q[4]||(Q[4]=ve=>g.value=!0),onMouseleavePassive:Q[5]||(Q[5]=ve=>g.value=!1)},[V("div",rO,[V("div",{class:ut(["sticky left-0 z-10 h-full",{"dark:bg-slate-400/10 bg-slate-400/25":F.hovering,"bg-white dark:bg-slate-800":!F.hovering}])},[V("div",{class:ut(["h-full",{"border-transparent":!F.hovering&&!F.isDetailEvent,"dark:border-indigo-600 border-indigo-600":F.isDetailEvent}]),style:ze([{"text-overflow":"ellipsis","white-space":"nowrap",overflow:"hidden",cursor:"pointer"},G.value]),onMousedownPassive:te,onMouseupPassive:E},[_e(ph,{class:"px-2 h-full","showing-meta":i.value,"is-hovering":T.value,"has-meta":a.value,"has-supplemental":!!F.supplemental.length,"has-locations":o.value,"task-denominator":u.value,"task-numerator":c.value,completed:F.completed,"title-html":F.titleHtml,onToggleMeta:l},null,8,["showing-meta","is-hovering","has-meta","has-supplemental","has-locations","task-denominator","task-numerator","completed","title-html"])],38)],2)])],36)):Ue("",!0)],64))}});const oO=Rs(iO,[["__scopeId","data-v-6f9379ba"]]),aO=(t,e)=>typeof t>"u"&&typeof e>"u"?!0:!(typeof t>"u"||typeof e>"u"),lO=(t,e)=>t.type===e.type&&t.content===e.content&&t.from===e.from&&t.to===e.to,cO=(t,e)=>yh(t.fromDateTimeIso,e.fromDateTimeIso)&&yh(t.toDateTimeIso,e.toDateTimeIso),uO=(t,e)=>t===e,yh=uO,vh=(t,e)=>t.length===e.length&&t.every((n,s)=>n===e[s]),fO=(t,e)=>t.length==e.length&&t.every((n,s)=>lO(n,e[s])),hO=(t,e)=>t.length===e.length&&t.every((n,s)=>dO(n,e[s])),dO=(t,e)=>t.type!==e.type?!1:t.type===Kn.IMAGE?t.altText===e.altText&&t.link===e.link:t.raw===e.raw&&t.value===e.value,mO=(t,e)=>{if(!t||!e)return!1;if(t.for)if(e.for){const r=Object.keys(t.for),i=Object.keys(e.for);if(r.sort().join(",")!==i.sort().join(","))return!1;for(const o of r)if(t.for[o]!==e.for[o])return!1}else return!1;else if(e.for)return!1;const n=Object.keys(t.every),s=Object.keys(e.every);if(n.sort().join(",")!==s.sort().join(","))return!1;for(const r of n)if(t.every[r]!==e.every[r])return!1;return!0};function Fl(t){return t.replace(/<|>/g,e=>e==="<"?"<span><</span>":"<span>></span>").replace(X_,(e,n,s)=>`<a class="underline" href="${pO(s)}">${n}</a>`).replace(/&/g,"&amp;").replace(Q_,(e,n)=>`<a class="underline" href="/${n}">@${n}</a>`)}function pO(t){return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")?t:`http://${t}`}const Th=(t,e,n,s)=>{const r=ce(s||void 0);return As(()=>{if(!n())return;const i=t();typeof i>"u"?r.value=void 0:(!r.value||!e(r.value,i))&&(r.value=i)}),r},ag=(t,e=()=>!0)=>{const n=xe(),s=(g,T=(w,b)=>w===b,I)=>Th(g,(w,b)=>aO(w,b)&&T(w,b),e,I),r=x(()=>t.value.value),i=Th(()=>t.value.source,(g,T)=>g===T,e,"default"),o=s(()=>B(r).dateRangeIso,cO),a=s(()=>{var g,T;return((T=(g=B(r))==null?void 0:g.eventDescription)==null?void 0:T.locations)||[]},vh),l=s(()=>{var g;return(g=B(r))==null?void 0:g.eventDescription.completed}),c=s(()=>{var g,T;return((T=(g=B(r))==null?void 0:g.eventDescription)==null?void 0:T.supplemental)||[]},hO),u=s(()=>{var g,T;return(T=(g=B(r))==null?void 0:g.eventDescription)==null?void 0:T.percent}),f=s(()=>{var g,T;return((T=(g=B(r))==null?void 0:g.eventDescription)==null?void 0:T.matchedListItems)||[]},fO),h=s(()=>{var g,T;return((T=(g=B(r))==null?void 0:g.eventDescription)==null?void 0:T.tags)||[]},vh),d=ce();As(()=>{var T,I;if(!e())return;const g=(T=h.value)!=null&&T.length?(I=n.colors[i.value||"default"])==null?void 0:I[h.value[0]]:void 0;d.value!==g&&(d.value=g)});const m=s(()=>{var T;const g=B(r);return(T=g==null?void 0:g.recurrenceRangeInText)!=null&&T.content?g.recurrenceRangeInText.content:Fl((g==null?void 0:g.dateText)||"")}),p=s(()=>{var T,I;const g=(I=(T=B(r))==null?void 0:T.eventDescription)==null?void 0:I.eventDescription;return g?Fl(g.replace(Ym,(w,b)=>w.substring(b.length))):""}),y=s(()=>{var g;return(g=B(r))==null?void 0:g.recurrence},mO);return{eventRange:o,eventLocations:a,supplemental:c,percent:u,matchedListItems:f,tags:h,color:d,dateText:m,titleHtml:p,completed:l,recurrence:y,source:i}},gO=ke({__name:"EventNodeRow",props:{node:{},path:{},numAbove:{},numChildren:{}},setup(t){const e=t,n=xe(),{editEventDateRange:s}=n,r=x(()=>e.path.split(",").map(A=>parseInt(A))),i=x(()=>Zt(e.node)),o=x(()=>n.hoveringEventPaths),{eventRange:a,eventLocations:l,supplemental:c,percent:u,matchedListItems:f,tags:h,color:d,dateText:m,titleHtml:p,completed:y,recurrence:g,source:T}=ag(x(()=>e.node),()=>i.value),I=x(()=>r.value),w=x(()=>n.scaleOfViewportDateInterval),b=x(()=>n.pageTimelineMetadata.preferredInterpolationFormat),S=A=>s(r.value,Ic(A),w.value,b.value),C=A=>{A?n.setHoveringEvent(e.path.split(",").map(z=>parseInt(z))):n.clearHoveringEvent()},D=x(()=>n.isDetailEventPath(I.value));return(A,z)=>(ne(),Ge(oO,{source:B(T)||"default","event-locations":B(l)||[],supplemental:B(c)||[],"matched-list-items":B(f)||[],rangeFrom:B(a).fromDateTimeIso,rangeTo:B(a).toDateTimeIso,tags:B(h)||[],color:B(d),path:I.value,percent:B(u),dateText:B(m)||"",titleHtml:B(p)||"",completed:B(y),recurrence:B(g),onEditDateRange:S,onHover:C,"is-detail-event":D.value,hovering:B(hi)(o.value,I.value),numAbove:A.numAbove},null,8,["source","event-locations","supplemental","matched-list-items","rangeFrom","rangeTo","tags","color","path","percent","dateText","titleHtml","completed","recurrence","is-detail-event","hovering","numAbove"]))}}),yO=(t,e,n)=>{const s=ce(!1),r=ce(0),i=ce(0),o=d=>d instanceof MouseEvent?d.pageX:d.touches[0].pageX,a=()=>{document.removeEventListener("mouseup",u),document.removeEventListener("touchend",u),document.removeEventListener("mousemove",c),document.removeEventListener("touchmove",c),document.removeEventListener("keydown",l)},l=d=>{d.key==="Escape"&&(s.value=!1,i.value=0,a())},c=d=>{s.value&&(B(t)?i.value=Math.max(B(e)-r.value+o(d),150):i.value=Math.max(B(e)+r.value-o(d),150))},u=d=>{s.value=!1,i.value&&(n(Math.max(i.value,50)),i.value=0),a()},f=d=>{s.value=!0,r.value=o(d),document.addEventListener("mousemove",c),document.addEventListener("mouseup",u),document.addEventListener("touchmove",c),document.addEventListener("touchend",u),document.addEventListener("keydown",l)},h=x(()=>s.value);return He(h,d=>{ya().canPan=!d}),{tempWidth:i,resizeMouseDown:f,isResizing:h}},vO={class:"fixed left-0 right-0 top-0 h-full pointer-events-none z-20"},TO={class:"flex w-full h-full"},wO={class:"h-full w-full"},_O=ke({__name:"GanttSidebar",setup(t){const e=xe(),n=x(()=>e.ganttSidebarWidth),{tempWidth:s,resizeMouseDown:r}=yO(!0,n,o=>e.setGanttSidebarWidth(o));As(()=>{e.setGanttSidebarTempWidth(s.value)});const i=x(()=>s.value?s.value:n.value);return(o,a)=>Js((ne(),pe("div",vO,[V("div",TO,[V("div",{class:"sticky left-0 relative flex flex-col",style:ze(`width: calc(${i.value}px)`)},[V("div",wO,[V("div",{class:ut(["pointer-events-auto sticky hover:w-1 right-0 inline-flex items-center justify-center hover:transition hover:bg-indigo-600 dark:hover:bg-indigo-600 top-0 bottom-0 z-[5]",{"bg-indigo-600 w-1":B(s),"bg-slate-200 dark:bg-slate-900 w-px":!B(s)}]),style:ze([{cursor:"ew-resize"},`height: ${B(e).pageSettings.viewport.height}px; left: ${i.value}px`]),onMousedown:a[0]||(a[0]=_t((...l)=>B(r)&&B(r)(...l),["prevent","stop"])),onTouchstart:a[1]||(a[1]=_t((...l)=>B(r)&&B(r)(...l),["prevent","stop"]))},null,38)])],4)])],512)),[[Qs,B(e).mode==="gantt"]])}}),bO=ke({__name:"ExpandedSectionBackground",props:{hovering:{type:Boolean},style:{},node:{},left:{},fullWidth:{},path:{},height:{}},setup(t){const e=t,{color:n}=Qc(Dn(()=>e.node)),s=xe(),r=Dn(()=>e.style==="group"),i=Dn(()=>e.path.split(",").map(c=>parseInt(c))),o=Dn(()=>s.isDetailEventPath(i.value)),a=Dn(()=>e.path.split(",").length>4),l=Dn(()=>{const c={height:`${e.height}px`,transition:"height 200ms cubic-bezier(0.4, 0, 0.2, 1)"};if(n.value){e.hovering||o.value?c.backgroundColor=`rgba(${n.value}, 0.1`:a.value||(c.backgroundColor=`rgba(${n.value}, 0.05)`);const u=`1px solid rgba(${n.value}, ${o.value?"0.95":e.hovering?"0.75":"0.12"})`;c.borderTop=u,c.borderBottom=u,r.value&&(c.borderLeft=u,c.borderRight=u)}return r.value&&(c.marginLeft=`${s.pageScaleBy24*e.left-8}px`,c.width=`calc(${s.pageScaleBy24*e.fullWidth+16}px)`),c});return(c,u)=>(ne(),pe("div",{class:ut(["absolute h-full flex flex-row items-center dark:text-gray-400 pointer-events-none",{"dark:bg-opacity-30 bg-opacity-20":c.hovering||!B(n)&&B(o),"dark:bg-opacity-20 bg-opacity-10":!c.hovering&&!B(a),"border-t border-b":!B(n),"border-l border-r":B(r),"dark:border-gray-900/25 border-gray-400/25":!B(n)&&B(a),"bg-gray-400 dark:bg-gray-600":!B(n)&&!B(a),"dark:border-gray-400/25 border-gray-400/25":!B(n)&&!c.hovering,"dark:border-gray-400 border-gray-600":!B(n)&&(c.hovering||B(o)),"ml-0 w-full":!B(r),"rounded-[14px]":B(r)}]),style:ze(B(l))},null,6))}}),EO={key:0,class:"mr-[2px] flex flex-row items-center"},SO={xmlns:"http://www.w3.org/2000/svg",class:"w-1 h-2",width:"40",height:"40",viewBox:"0 0 16 20","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},IO=V("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),OO=V("circle",{cx:"8",cy:"4",r:"4",fill:"currentColor"},null,-1),DO=V("circle",{cx:"8",cy:"18",r:"4",fill:"currentColor"},null,-1),kO=[IO,OO,DO],MO={key:0,xmlns:"http://www.w3.org/2000/svg",class:"w-1 h-2",width:"40",height:"40",viewBox:"0 0 16 20","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},CO=V("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),AO=V("circle",{cx:"8",cy:"11",r:"4",fill:"currentColor"},null,-1),NO=[CO,AO],xO=ke({__name:"DepthIndicator",props:{depth:{}},setup(t){const e=t,n=Dn(()=>Math.floor((e.depth-1)/2)),s=Dn(()=>(e.depth-1)%2===1);return(r,i)=>r.depth>1?(ne(),pe("div",EO,[(ne(!0),pe(Pe,null,un(B(n),o=>(ne(),pe("svg",SO,kO))),256)),B(s)?(ne(),pe("svg",MO,NO)):Ue("",!0)])):Ue("",!0)}}),LO={},RO={xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4 ml-auto",viewBox:"0 0 20 20",fill:"currentColor"},PO=V("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1),$O=[PO];function FO(t,e){return ne(),pe("svg",RO,$O)}const zO=Rs(LO,[["render",FO]]),YO={class:"flex flex-row flex-grow items-center justify-center"},UO=["innerHTML"],BO={key:1,class:"eventTitle text-sm font-semibold whitespace-nowrap ml-1"},HO=ke({__name:"SectionTitleButton",props:{color:{},titleHtml:{},expanded:{type:Boolean},numChildren:{},groupStyle:{},path:{}},emits:["click","hovering"],setup(t,{emit:e}){const n=t,s=ce(),r=x(()=>n.color?{backgroundColor:`rgba(${n.color}, 0.5)`}:{});return(i,o)=>(ne(),pe("button",{ref_key:"button",ref:s,class:ut(["flex flex-row items-center dark:bg-opacity-60 bg-opacity-50",{"bg-gray-500 dark:bg-gray-900":!i.color,"rounded-full px-2 py-px":i.groupStyle==="group","px-1":i.groupStyle!=="group"}]),style:ze(r.value),onMouseoverPassive:o[0]||(o[0]=a=>e("hovering",!0)),onMouseleavePassive:o[1]||(o[1]=a=>e("hovering",!1))},[_e(xO,{depth:i.path.split(",").length},null,8,["depth"]),V("div",YO,[i.titleHtml?(ne(),pe("span",{key:0,class:"eventTitle text-sm font-semibold whitespace-nowrap",innerHTML:i.titleHtml},null,8,UO)):Ue("",!0),i.expanded?Ue("",!0):(ne(),pe("span",BO,"("+pt(i.numChildren)+")",1))]),i.expanded?(ne(),Ge(zO,{key:0})):Ue("",!0)],38))}});const jO=Rs(HO,[["__scopeId","data-v-a5548532"]]),WO=ke({__name:"SectionHeader",props:{path:{},expanded:{type:Boolean},titleHtml:{},color:{},numChildren:{},groupStyle:{},fullWidth:{},left:{},hovering:{type:Boolean}},emits:["toggle","hover"],setup(t,{emit:e}){const n=t,s=xe(),r=Ls(),i=x(()=>({click:p=>e("toggle",p),mouseover:p=>e("hover",!0),mouseleave:p=>e("hover",!1)})),o=x(()=>r.isCollapsed(n.path));let a;const l=ce(!1);He(o,()=>{l.value=!0,isNaN(a)||clearTimeout(a),a=setTimeout(()=>{l.value=!1},200)});const c=x(()=>s.pageScaleBy24*n.fullWidth),u=x(()=>{const p={order:-9999,top:`${3+n.path.slice(1).length*1.2}rem`,zIndex:s.mode==="gantt"?3:0,height:"30px"};return n.groupStyle==="group"&&(p.width=`${c.value}px`,p.marginLeft=`${s.pageScaleBy24*n.left}px`),p}),f=p=>e("toggle",p),h=x(()=>{const p={left:"1rem"};return s.mode==="gantt"&&(p.width=`calc(${s.ganttSidebarTempWidth?s.ganttSidebarTempWidth:s.ganttSidebarWidth}px - 0.5rem)`,p.overflow="auto"),p}),d=x(()=>s.mode==="gantt"?n.hovering?"border dark:border-gray-400 border-black":"border border-transparent":""),m=x(()=>{const p={};return l.value&&(p.transition=l.value?"margin-left 200ms cubic-bezier(0.4, 0, 0.2, 1)":""),n.groupStyle==="group"&&o.value?p.marginLeft=`calc(${c.value}px + 0.75rem)`:p.marginLeft=0,p});return(p,y)=>(ne(),pe("div",ns({class:"flex items-center cursor-pointer",style:u.value},tc(i.value,!0)),[V("div",{class:"sticky flex items-center left-2",style:ze(m.value)},[V("div",{class:ut(["h-[30px] flex flex-row items-center",d.value]),style:ze(h.value)},[_e(jO,{"title-html":p.titleHtml,color:p.color,"num-children":p.numChildren,expanded:p.expanded,"group-style":p.groupStyle,path:p.path,onClick:f},null,8,["title-html","color","num-children","expanded","group-style","path"])],6)],4)],16))}}),VO={class:"relative flex flex-col"},qO=ke({__name:"Section",props:{node:{},path:{},numChildren:{},numAbove:{},groupStyle:{}},setup(t){const e=t,n=xe(),s=Ls(),{setHoveringEvent:r,clearHoveringEvent:i}=n,{scalelessDistanceBetweenDates:o,scalelessDistanceFromReferenceDate:a}=n,l=x({get:()=>s.isCollapsed(e.path),set:A=>s.setCollapsed(e.path,A)}),c=ce(!1),u=x(()=>n.hoveringEventPaths),f=x(()=>e.path.split(",").map(A=>parseInt(A))),h=A=>{A.target instanceof HTMLAnchorElement||(A.preventDefault(),l.value=!l.value)},d=x(()=>Cs(e.node,is)),m=x(()=>!e.node||!d.value?10:o(n.baselineLeftmostDate,d.value.fromDateTime)),{color:p}=Qc(x(()=>e.node)),y=x(()=>!e.node||!d.value?100:o(d.value.fromDateTime,d.value.toDateTime)),g=x(()=>Fl(e.node.title||"")),T=A=>{c.value=A};He(c,A=>{A?r(e.path.split(",").map(z=>parseInt(z))):i()});const I=x(()=>e.groupStyle?e.groupStyle:n.mode==="gantt"||e.node.style==="section"?"section":"group"),w=x(()=>`${n.pageScaleBy24*y.value}px`),b=x(()=>100+e.numAbove*30),S=x(()=>30+e.numChildren*30),C=x(()=>({top:`${b.value}px`,transition:"top 200ms cubic-bezier(0.4, 0, 0.2, 1)",display:s.isCollapsedChild(e.path)?"none":"block",...I.value==="section"?{left:0,right:"-350%"}:{}})),D=x(()=>c.value||hi(u.value,f.value));return(A,z)=>(ne(),pe("div",{class:"absolute",style:ze(C.value)},[V("div",VO,[_e(bO,{hovering:D.value,style:ze(I.value),node:A.node,left:m.value,height:S.value,"full-width":y.value,path:A.path},null,8,["hovering","style","node","left","height","full-width","path"]),V("div",{class:"sticky top-0 cursor-pointer",style:ze({width:w.value})},null,4),_e(WO,{path:A.path,onToggle:h,onHover:T,hovering:D.value,expanded:!l.value,titleHtml:g.value,color:B(p),"num-children":A.node.value.length,"group-style":I.value,left:m.value,"full-width":y.value},null,8,["path","hovering","expanded","titleHtml","color","num-children","group-style","left","full-width"])])],4))}}),KO=ke({__name:"Events",setup(t){const e=xe(),n=_i();x(()=>{const i=n.nodeArray;return i.length?`${i.length*30+500}px`:"100%"});const s=(i,o)=>({node:o,path:i.join(","),numChildren:n.childrenMap.get(i.join(",")),numAbove:n.predecessorMap.get(i.join(","))||0}),r=x(()=>e.ganttSidebarTempWidth?e.ganttSidebarTempWidth:e.ganttSidebarWidth);return x(()=>e.pageSettings.viewport.width*7),(i,o)=>(ne(),pe(Pe,null,[B(e).mode==="gantt"?(ne(),pe("div",{key:0,class:"sticky left-0 relative flex flex-col bg-white dark:bg-slate-800 top-0 bottom-0 z-[2] h-full",style:ze(`width: calc(${r.value}px);`)},null,4)):Ue("",!0),(ne(!0),pe(Pe,null,un(B(n).visibleNodes[1],({path:a,node:l})=>(ne(),Ge(qO,gu(ns({key:B(n).sectionKeys.get(a.join(","))},s(a,l))),null,16))),128)),(ne(!0),pe(Pe,null,un(B(n).visibleNodes[0],({path:a,node:l,key:c})=>(ne(),Ge(gO,gu(ns({key:c},s(a,l))),null,16))),128)),_e(II),_e(_O)],64))}}),wh=2,_h=2,bh=8,Eh=24,Sh=24;function Ih(t,e){return Math.sign(t)*Math.min(e,Math.abs(t))}function ZO(t){let e=t.deltaX,n=t.deltaY;return t.shiftKey&&e===0&&([e,n]=[n,e]),t.deltaMode===WheelEvent.DOM_DELTA_LINE?(e*=bh,n*=bh):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=Eh,n*=Eh),[Ih(e,Sh),Ih(n,Sh)]}function GO(t,e){function n(){}let s=e||{},r=s.startGesture||n,i=s.doGesture||n,o=s.endGesture||n,a=null,l;function c(){a&&(o(a),a=null)}if(t.addEventListener("wheel",function(f){if(!a&&!f.ctrlKey)return;f.cancelable!==!1&&f.preventDefault();let[h,d]=ZO(f);if(a||(a={origin:{x:f.clientX,y:f.clientY},scale:1,translation:{x:0,y:0}},r(a)),f.ctrlKey){let m=d<=0?1-wh*d/100:1/(1+wh*d/100);a={origin:{x:f.clientX,y:f.clientY},scale:a.scale*m,translation:a.translation}}else a={origin:{x:f.clientX,y:f.clientY},scale:a.scale,translation:{x:a.translation.x-_h*h,y:a.translation.y-_h*d}};i(a),l&&window.clearTimeout(l),l=window.setTimeout(c,200)},{passive:!1}),typeof GestureEvent<"u"&&typeof TouchEvent>"u"){let u=!1;t.addEventListener("gesturestart",function(h){u||(r({translation:{x:0,y:0},scale:h.scale,rotation:h.rotation,origin:{x:h.clientX,y:h.clientY}}),u=!0),h.cancelable!==!1&&h.preventDefault()},{passive:!1}),t.addEventListener("gesturechange",function(h){u&&i({translation:{x:0,y:0},scale:h.scale,rotation:h.rotation,origin:{x:h.clientX,y:h.clientY}}),h.cancelable!==!1&&h.preventDefault()},{passive:!1}),t.addEventListener("gestureend",function(h){u&&(o({translation:{x:0,y:0},scale:h.scale,rotation:h.rotation,origin:{x:h.clientX,y:h.clientY}}),u=!1)})}return c}var lg={exports:{}};/*! Hammer.JS - v2.1.0-pre3 - 2019-08-26
 * http://squadette.github.io/hammer.js/
 *
 * Copyright (c) 2019 Jorik Tangelder;
 * Licensed under the MIT license */(function(t){typeof window<"u"&&typeof document<"u"&&function(e,n,s,r){var i=["","webkit","Moz","MS","ms","o"],o=n.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function f(v,_,k){return setTimeout(I(v,k),_)}function h(v,_,k){return Array.isArray(v)?(d(v,k[_],k),!0):!1}function d(v,_,k){var R;if(v)if(v.forEach)v.forEach(_,k);else if(v.length!==r)for(R=0;R<v.length;)_.call(k,v[R],R,v),R++;else for(R in v)v.hasOwnProperty(R)&&_.call(k,v[R],R,v)}function m(v,_,k){var R="DEPRECATED METHOD: "+_+`
`+k+` AT 
`;return function(){var Z=new Error("get-stack-trace"),fe=Z&&Z.stack?Z.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",De=e.console&&(e.console.warn||e.console.log);return De&&De.call(e.console,R,fe),v.apply(this,arguments)}}var p;typeof Object.assign!="function"?p=function(_){if(_===r||_===null)throw new TypeError("Cannot convert undefined or null to object");for(var k=Object(_),R=1;R<arguments.length;R++){var Z=arguments[R];if(Z!==r&&Z!==null)for(var fe in Z)Z.hasOwnProperty(fe)&&(k[fe]=Z[fe])}return k}:p=Object.assign;var y=m(function(_,k,R){for(var Z=Object.keys(k),fe=0;fe<Z.length;)(!R||R&&_[Z[fe]]===r)&&(_[Z[fe]]=k[Z[fe]]),fe++;return _},"extend","Use `assign`."),g=m(function(_,k){return y(_,k,!0)},"merge","Use `assign`.");function T(v,_,k){var R=_.prototype,Z;Z=v.prototype=Object.create(R),Z.constructor=v,Z._super=R,k&&p(Z,k)}function I(v,_){return function(){return v.apply(_,arguments)}}function w(v,_){return typeof v==a?v.apply(_&&_[0]||r,_):v}function b(v,_){return v===r?_:v}function S(v,_,k){d(z(_),function(R){v.addEventListener(R,k,!1)})}function C(v,_,k){d(z(_),function(R){v.removeEventListener(R,k,!1)})}function D(v,_){for(;v;){if(v==_)return!0;v=v.parentNode}return!1}function A(v,_){return v.indexOf(_)>-1}function z(v){return v.trim().split(/\s+/g)}function X(v,_,k){if(v.indexOf&&!k)return v.indexOf(_);for(var R=0;R<v.length;){if(k&&v[R][k]==_||!k&&v[R]===_)return R;R++}return-1}function L(v){return Array.prototype.slice.call(v,0)}function re(v,_,k){for(var R=[],Z=[],fe=0;fe<v.length;){var De=_?v[fe][_]:v[fe];X(Z,De)<0&&R.push(v[fe]),Z[fe]=De,fe++}return k&&(_?R=R.sort(function(vt,Ot){return vt[_]>Ot[_]}):R=R.sort()),R}function he(v,_){if(!v)return r;for(var k,R,Z=_[0].toUpperCase()+_.slice(1),fe=0;fe<i.length;){if(k=i[fe],R=k?k+Z:_,R in v)return R;fe++}return r}var de=1;function J(){return de++}function te(v){var _=v.ownerDocument||v;return _.defaultView||_.parentWindow||e}var E=/mobile|tablet|ip(ad|hone|od)|android/i,G="ontouchstart"in e,F=he(e,"PointerEvent")!==r,Q=G&&E.test(navigator.userAgent),ve="touch",Be="pen",je="mouse",ot="kinect",Fe=25,$=1,ie=2,q=4,le=8,Ie=1,O=2,M=4,N=8,Y=16,H=O|M,W=N|Y,oe=H|W,ee=["x","y"],se=["clientX","clientY"];function j(v,_){var k=this;this.manager=v,this.callback=_,this.element=v.element,this.target=v.options.inputTarget,this.domHandler=function(R){w(v.options.enable,[v])&&k.handler(R)},this.init()}j.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(te(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(te(this.element),this.evWin,this.domHandler)}};function ge(v){var _,k=v.options.inputClass;return k?_=k:F?_=va:Q?_=Si:G?_=Ta:_=Ei,new _(v,me)}function me(v,_,k){var R=k.pointers.length,Z=k.changedPointers.length,fe=_&$&&R-Z===0,De=_&(q|le)&&R-Z===0;k.isFirst=!!fe,k.isFinal=!!De,fe&&(v.session={}),k.eventType=_,ye(v,k),v.emit("hammer.input",k),v.recognize(k),v.session.prevInput=k}function ye(v,_){var k=v.session,R=_.pointers,Z=R.length;k.firstInput||(k.firstInput=Le(_)),Z>1&&!k.firstMultiple?k.firstMultiple=Le(_):Z===1&&(k.firstMultiple=!1);var fe=k.firstInput,De=k.firstMultiple,ft=De?De.center:fe.center,vt=_.center=K(R);_.timeStamp=u(),_.deltaTime=_.timeStamp-fe.timeStamp,_.angle=Ln(ft,vt),_.distance=It(ft,vt),Te(k,_),_.offsetDirection=nt(_.deltaX,_.deltaY);var Ot=Oe(_.deltaTime,_.deltaX,_.deltaY);_.overallVelocityX=Ot.x,_.overallVelocityY=Ot.y,_.overallVelocity=c(Ot.x)>c(Ot.y)?Ot.x:Ot.y,_.scale=De?Ps(De.pointers,R):1,_.rotation=De?_n(De.pointers,R):0,_.maxPointers=k.prevInput?_.pointers.length>k.prevInput.maxPointers?_.pointers.length:k.prevInput.maxPointers:_.pointers.length,be(k,_);var pn=v.element;D(_.srcEvent.target,pn)&&(pn=_.srcEvent.target),_.target=pn}function Te(v,_){var k=_.center,R=v.offsetDelta||{},Z=v.prevDelta||{},fe=v.prevInput||{};(_.eventType===$||fe.eventType===q)&&(Z=v.prevDelta={x:fe.deltaX||0,y:fe.deltaY||0},R=v.offsetDelta={x:k.x,y:k.y}),_.deltaX=Z.x+(k.x-R.x),_.deltaY=Z.y+(k.y-R.y)}function be(v,_){var k=v.lastInterval||_,R=_.timeStamp-k.timeStamp,Z,fe,De,ft;if(_.eventType!=le&&(R>Fe||k.velocity===r)){var vt=_.deltaX-k.deltaX,Ot=_.deltaY-k.deltaY,pn=Oe(R,vt,Ot);fe=pn.x,De=pn.y,Z=c(pn.x)>c(pn.y)?pn.x:pn.y,ft=nt(vt,Ot),v.lastInterval=_}else Z=k.velocity,fe=k.velocityX,De=k.velocityY,ft=k.direction;_.velocity=Z,_.velocityX=fe,_.velocityY=De,_.direction=ft}function Le(v){for(var _=[],k=0;k<v.pointers.length;)_[k]={clientX:l(v.pointers[k].clientX),clientY:l(v.pointers[k].clientY)},k++;return{timeStamp:u(),pointers:_,center:K(_),deltaX:v.deltaX,deltaY:v.deltaY}}function K(v){var _=v.length;if(_===1)return{x:l(v[0].clientX),y:l(v[0].clientY)};for(var k=0,R=0,Z=0;Z<_;)k+=v[Z].clientX,R+=v[Z].clientY,Z++;return{x:l(k/_),y:l(R/_)}}function Oe(v,_,k){return{x:_/v||0,y:k/v||0}}function nt(v,_){return v===_?Ie:c(v)>=c(_)?v<0?O:M:_<0?N:Y}function It(v,_,k){k||(k=ee);var R=_[k[0]]-v[k[0]],Z=_[k[1]]-v[k[1]];return Math.sqrt(R*R+Z*Z)}function Ln(v,_,k){k||(k=ee);var R=_[k[0]]-v[k[0]],Z=_[k[1]]-v[k[1]];return Math.atan2(Z,R)*180/Math.PI}function _n(v,_){return Ln(_[1],_[0],se)-Ln(v[1],v[0],se)}function Ps(v,_){return It(_[0],_[1],se)/It(v[0],v[1],se)}var yt={mousedown:$,mousemove:ie,mouseup:q},Je="mousedown",bi="mousemove mouseup";function Ei(){this.evEl=Je,this.evWin=bi,this.pressed=!1,j.apply(this,arguments)}T(Ei,j,{handler:function(_){var k=yt[_.type];k&$&&_.button===0&&(this.pressed=!0),k&ie&&_.which!==1&&(k=q),this.pressed&&(k&q&&(this.pressed=!1),this.callback(this.manager,k,{pointers:[_],changedPointers:[_],pointerType:je,srcEvent:_}))}});var pg={pointerdown:$,pointermove:ie,pointerup:q,pointercancel:le,pointerout:le},gg={2:ve,3:Be,4:je,5:ot},nu="pointerdown",su="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(nu="MSPointerDown",su="MSPointerMove MSPointerUp MSPointerCancel");function va(){this.evEl=nu,this.evWin=su,j.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}T(va,j,{handler:function(_){var k=this.store,R=!1,Z=_.type.toLowerCase().replace("ms",""),fe=pg[Z],De=gg[_.pointerType]||_.pointerType,ft=De==ve,vt=X(k,_.pointerId,"pointerId");fe&$&&(_.button===0||ft)?vt<0&&(k.push(_),vt=k.length-1):fe&(q|le)&&(R=!0),!(vt<0)&&(k[vt]=_,this.callback(this.manager,fe,{pointers:k,changedPointers:[_],pointerType:De,srcEvent:_}),R&&k.splice(vt,1))}});var yg={touchstart:$,touchmove:ie,touchend:q,touchcancel:le},vg="touchstart",Tg="touchstart touchmove touchend touchcancel";function ru(){this.evTarget=vg,this.evWin=Tg,this.started=!1,j.apply(this,arguments)}T(ru,j,{handler:function(_){var k=yg[_.type];if(k===$&&(this.started=!0),!!this.started){var R=wg.call(this,_,k);k&(q|le)&&R[0].length-R[1].length===0&&(this.started=!1),this.callback(this.manager,k,{pointers:R[0],changedPointers:R[1],pointerType:ve,srcEvent:_})}}});function wg(v,_){var k=L(v.touches),R=L(v.changedTouches);return _&(q|le)&&(k=re(k.concat(R),"identifier",!0)),[k,R]}var _g={touchstart:$,touchmove:ie,touchend:q,touchcancel:le},bg="touchstart touchmove touchend touchcancel";function Si(){this.evTarget=bg,this.targetIds={},j.apply(this,arguments)}T(Si,j,{handler:function(_){var k=_g[_.type],R=Eg.call(this,_,k);R&&this.callback(this.manager,k,{pointers:R[0],changedPointers:R[1],pointerType:ve,srcEvent:_})}});function Eg(v,_){var k=L(v.touches),R=this.targetIds;if(_&($|ie)&&k.length===1)return R[k[0].identifier]=!0,[k,k];var Z,fe,De=L(v.changedTouches),ft=[],vt=this.target;if(fe=k.filter(function(Ot){return D(Ot.target,vt)}),_===$)for(Z=0;Z<fe.length;)R[fe[Z].identifier]=!0,Z++;for(Z=0;Z<De.length;)R[De[Z].identifier]&&ft.push(De[Z]),_&(q|le)&&delete R[De[Z].identifier],Z++;if(ft.length)return[re(fe.concat(ft),"identifier",!0),ft]}var Sg=2500,iu=25;function Ta(){j.apply(this,arguments);var v=I(this.handler,this);this.touch=new Si(this.manager,v),this.mouse=new Ei(this.manager,v),this.primaryTouch=null,this.lastTouches=[]}T(Ta,j,{handler:function(_,k,R){var Z=R.pointerType==ve,fe=R.pointerType==je;if(!(fe&&R.sourceCapabilities&&R.sourceCapabilities.firesTouchEvents)){if(Z)Ig.call(this,k,R);else if(fe&&Og.call(this,R))return;this.callback(_,k,R)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Ig(v,_){v&$?(this.primaryTouch=_.changedPointers[0].identifier,ou.call(this,_)):v&(q|le)&&ou.call(this,_)}function ou(v){var _=v.changedPointers[0];if(_.identifier===this.primaryTouch){var k={x:_.clientX,y:_.clientY};this.lastTouches.push(k);var R=this.lastTouches,Z=function(){var fe=R.indexOf(k);fe>-1&&R.splice(fe,1)};setTimeout(Z,Sg)}}function Og(v){for(var _=v.srcEvent.clientX,k=v.srcEvent.clientY,R=0;R<this.lastTouches.length;R++){var Z=this.lastTouches[R],fe=Math.abs(_-Z.x),De=Math.abs(k-Z.y);if(fe<=iu&&De<=iu)return!0}return!1}var au=he(o.style,"touchAction"),lu=au!==r,cu="compute",uu="auto",wa="manipulation",as="none",Mr="pan-x",Cr="pan-y",Ii=kg();function _a(v,_){this.manager=v,this.set(_)}_a.prototype={set:function(v){v==cu&&(v=this.compute()),lu&&this.manager.element.style&&Ii[v]&&(this.manager.element.style[au]=v),this.actions=v.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var v=[];return d(this.manager.recognizers,function(_){w(_.options.enable,[_])&&(v=v.concat(_.getTouchAction()))}),Dg(v.join(" "))},preventDefaults:function(v){var _=v.srcEvent,k=v.offsetDirection;if(this.manager.session.prevented){_.preventDefault();return}var R=this.actions,Z=A(R,as)&&!Ii[as],fe=A(R,Cr)&&!Ii[Cr],De=A(R,Mr)&&!Ii[Mr];if(Z){var ft=v.pointers.length===1,vt=v.distance<2,Ot=v.deltaTime<250;if(ft&&vt&&Ot)return}if(!(De&&fe)&&(Z||fe&&k&H||De&&k&W))return this.preventSrc(_)},preventSrc:function(v){this.manager.session.prevented=!0,v.preventDefault()}};function Dg(v){if(A(v,as))return as;var _=A(v,Mr),k=A(v,Cr);return _&&k?as:_||k?_?Mr:Cr:A(v,wa)?wa:uu}function kg(){if(!lu)return!1;var v={},_=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(k){v[k]=_?e.CSS.supports("touch-action",k):!0}),v}var Oi=1,Yt=2,$s=4,Rn=8,bn=Rn,Ar=16,mn=32;function En(v){this.options=p({},this.defaults,v||{}),this.id=J(),this.manager=null,this.options.enable=b(this.options.enable,!0),this.state=Oi,this.simultaneous={},this.requireFail=[]}En.prototype={defaults:{},set:function(v){return p(this.options,v),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(v){if(h(v,"recognizeWith",this))return this;var _=this.simultaneous;return v=Di(v,this),_[v.id]||(_[v.id]=v,v.recognizeWith(this)),this},dropRecognizeWith:function(v){return h(v,"dropRecognizeWith",this)?this:(v=Di(v,this),delete this.simultaneous[v.id],this)},requireFailure:function(v){if(h(v,"requireFailure",this))return this;var _=this.requireFail;return v=Di(v,this),X(_,v)===-1&&(_.push(v),v.requireFailure(this)),this},dropRequireFailure:function(v){if(h(v,"dropRequireFailure",this))return this;v=Di(v,this);var _=X(this.requireFail,v);return _>-1&&this.requireFail.splice(_,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(v){return!!this.simultaneous[v.id]},emit:function(v){var _=this,k=this.state;function R(Z){_.manager.emit(Z,v)}k<Rn&&R(_.options.event+fu(k)),R(_.options.event),v.additionalEvent&&R(v.additionalEvent),k>=Rn&&R(_.options.event+fu(k))},tryEmit:function(v){if(this.canEmit())return this.emit(v);this.state=mn},canEmit:function(){for(var v=0;v<this.requireFail.length;){if(!(this.requireFail[v].state&(mn|Oi)))return!1;v++}return!0},recognize:function(v){var _=p({},v);if(!w(this.options.enable,[this,_])){this.reset(),this.state=mn;return}this.state&(bn|Ar|mn)&&(this.state=Oi),this.state=this.process(_),this.state&(Yt|$s|Rn|Ar)&&this.tryEmit(_)},process:function(v){},getTouchAction:function(){},reset:function(){}};function fu(v){return v&Ar?"cancel":v&Rn?"end":v&$s?"move":v&Yt?"start":""}function hu(v){return v==Y?"down":v==N?"up":v==O?"left":v==M?"right":""}function Di(v,_){var k=_.manager;return k?k.get(v):v}function Jt(){En.apply(this,arguments)}T(Jt,En,{defaults:{pointers:1},attrTest:function(v){var _=this.options.pointers;return _===0||v.pointers.length===_},process:function(v){var _=this.state,k=v.eventType,R=_&(Yt|$s),Z=this.attrTest(v);return R&&(k&le||!Z)?_|Ar:R||Z?k&q?_|Rn:_&Yt?_|$s:Yt:mn}});function ki(){Jt.apply(this,arguments),this.pX=null,this.pY=null}T(ki,Jt,{defaults:{event:"pan",threshold:10,pointers:1,direction:oe},getTouchAction:function(){var v=this.options.direction,_=[];return v&H&&_.push(Cr),v&W&&_.push(Mr),_},directionTest:function(v){var _=this.options,k=!0,R=v.distance,Z=v.direction,fe=v.deltaX,De=v.deltaY;return Z&_.direction||(_.direction&H?(Z=fe===0?Ie:fe<0?O:M,k=fe!=this.pX,R=Math.abs(v.deltaX)):(Z=De===0?Ie:De<0?N:Y,k=De!=this.pY,R=Math.abs(v.deltaY))),v.direction=Z,k&&R>_.threshold&&Z&_.direction},attrTest:function(v){return Jt.prototype.attrTest.call(this,v)&&(this.state&Yt||!(this.state&Yt)&&this.directionTest(v))},emit:function(v){this.pX=v.deltaX,this.pY=v.deltaY;var _=hu(v.direction);_&&(v.additionalEvent=this.options.event+_),this._super.emit.call(this,v)}});function ba(){Jt.apply(this,arguments)}T(ba,Jt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[as]},attrTest:function(v){return this._super.attrTest.call(this,v)&&(Math.abs(v.scale-1)>this.options.threshold||this.state&Yt)},emit:function(v){if(v.scale!==1){var _=v.scale<1?"in":"out";v.additionalEvent=this.options.event+_}this._super.emit.call(this,v)}});function Ea(){En.apply(this,arguments),this._timer=null,this._input=null}T(Ea,En,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[uu]},process:function(v){var _=this.options,k=v.pointers.length===_.pointers,R=v.distance<_.threshold,Z=v.deltaTime>_.time;if(this._input=v,!R||!k||v.eventType&(q|le)&&!Z)this.reset();else if(v.eventType&$)this.reset(),this._timer=f(function(){this.state=bn,this.tryEmit()},_.time,this);else if(v.eventType&q)return bn;return mn},reset:function(){clearTimeout(this._timer)},emit:function(v){this.state===bn&&(v&&v.eventType&q?this.manager.emit(this.options.event+"up",v):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Sa(){Jt.apply(this,arguments)}T(Sa,Jt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[as]},attrTest:function(v){return this._super.attrTest.call(this,v)&&(Math.abs(v.rotation)>this.options.threshold||this.state&Yt)}});function Ia(){Jt.apply(this,arguments)}T(Ia,Jt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:H|W,pointers:1},getTouchAction:function(){return ki.prototype.getTouchAction.call(this)},attrTest:function(v){var _=this.options.direction,k;return _&(H|W)?k=v.overallVelocity:_&H?k=v.overallVelocityX:_&W&&(k=v.overallVelocityY),this._super.attrTest.call(this,v)&&_&v.offsetDirection&&v.distance>this.options.threshold&&v.maxPointers==this.options.pointers&&c(k)>this.options.velocity&&v.eventType&q},emit:function(v){var _=hu(v.offsetDirection);_&&this.manager.emit(this.options.event+_,v),this.manager.emit(this.options.event,v)}});function Mi(){En.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}T(Mi,En,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[wa]},process:function(v){var _=this.options,k=v.pointers.length===_.pointers,R=v.distance<_.threshold,Z=v.deltaTime<_.time;if(this.reset(),v.eventType&$&&this.count===0)return this.failTimeout();if(R&&Z&&k){if(v.eventType!=q)return this.failTimeout();var fe=this.pTime?v.timeStamp-this.pTime<_.interval:!0,De=!this.pCenter||It(this.pCenter,v.center)<_.posThreshold;this.pTime=v.timeStamp,this.pCenter=v.center,!De||!fe?this.count=1:this.count+=1,this._input=v;var ft=this.count%_.taps;if(ft===0)return this.hasRequireFailures()?(this._timer=f(function(){this.state=bn,this.tryEmit()},_.interval,this),Yt):bn}return mn},failTimeout:function(){return this._timer=f(function(){this.state=mn},this.options.interval,this),mn},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==bn&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Sn(v,_){return _=_||{},_.recognizers=b(_.recognizers,Sn.defaults.preset),new Oa(v,_)}Sn.VERSION="2.1.0-pre3",Sn.defaults={domEvents:!1,touchAction:cu,enable:!0,inputTarget:null,inputClass:null,preset:[[Sa,{enable:!1}],[ba,{enable:!1},["rotate"]],[Ia,{direction:H}],[ki,{direction:H},["swipe"]],[Mi],[Mi,{event:"doubletap",taps:2},["tap"]],[Ea]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Mg=1,du=2;function Oa(v,_){this.options=p({},Sn.defaults,_||{}),this.options.inputTarget=this.options.inputTarget||v,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=v,this.input=ge(this),this.touchAction=new _a(this,this.options.touchAction),mu(this,!0),d(this.options.recognizers,function(k){var R=this.add(new k[0](k[1]));k[2]&&R.recognizeWith(k[2]),k[3]&&R.requireFailure(k[3])},this)}Oa.prototype={set:function(v){return p(this.options,v),v.touchAction&&this.touchAction.update(),v.inputTarget&&(this.input.destroy(),this.input.target=v.inputTarget,this.input.init()),this},stop:function(v){this.session.stopped=v?du:Mg},recognize:function(v){var _=this.session;if(!_.stopped){this.touchAction.preventDefaults(v);var k,R=this.recognizers,Z=_.curRecognizer;(!Z||Z&&Z.state&bn)&&(Z=_.curRecognizer=null);for(var fe=0;fe<R.length;)k=R[fe],_.stopped!==du&&(!Z||k==Z||k.canRecognizeWith(Z))?k.recognize(v):k.reset(),!Z&&k.state&(Yt|$s|Rn)&&(Z=_.curRecognizer=k),fe++}},get:function(v){if(v instanceof En)return v;for(var _=this.recognizers,k=0;k<_.length;k++)if(_[k].options.event==v)return _[k];return null},add:function(v){if(h(v,"add",this))return this;var _=this.get(v.options.event);return _&&this.remove(_),this.recognizers.push(v),v.manager=this,this.touchAction.update(),v},remove:function(v){if(h(v,"remove",this))return this;if(v=this.get(v),v){var _=this.recognizers,k=X(_,v);k!==-1&&(_.splice(k,1),this.touchAction.update())}return this},on:function(v,_){if(v!==r&&_!==r){var k=this.handlers;return d(z(v),function(R){k[R]=k[R]||[],k[R].push(_)}),this}},off:function(v,_){if(v!==r){var k=this.handlers;return d(z(v),function(R){_?k[R]&&k[R].splice(X(k[R],_),1):delete k[R]}),this}},emit:function(v,_){this.options.domEvents&&Cg(v,_);var k=this.handlers[v]&&this.handlers[v].slice();if(!(!k||!k.length)){_.type=v,_.preventDefault=function(){_.srcEvent.preventDefault()};for(var R=0;R<k.length;)k[R](_),R++}},destroy:function(){this.element&&mu(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function mu(v,_){var k=v.element;if(k.style){var R;d(v.options.cssProps,function(Z,fe){R=he(k.style,fe),_?(v.oldCssProps[R]=k.style[R],k.style[R]=Z):k.style[R]=v.oldCssProps[R]||""}),_||(v.oldCssProps={})}}function Cg(v,_){var k=n.createEvent("Event");k.initEvent(v,!0,!0),k.gesture=_,_.target.dispatchEvent(k)}p(Sn,{INPUT_START:$,INPUT_MOVE:ie,INPUT_END:q,INPUT_CANCEL:le,STATE_POSSIBLE:Oi,STATE_BEGAN:Yt,STATE_CHANGED:$s,STATE_ENDED:Rn,STATE_RECOGNIZED:bn,STATE_CANCELLED:Ar,STATE_FAILED:mn,DIRECTION_NONE:Ie,DIRECTION_LEFT:O,DIRECTION_RIGHT:M,DIRECTION_UP:N,DIRECTION_DOWN:Y,DIRECTION_HORIZONTAL:H,DIRECTION_VERTICAL:W,DIRECTION_ALL:oe,Manager:Oa,Input:j,TouchAction:_a,TouchInput:Si,MouseInput:Ei,PointerEventInput:va,TouchMouseInput:Ta,SingleTouchInput:ru,Recognizer:En,AttrRecognizer:Jt,Tap:Mi,Pan:ki,Swipe:Ia,Pinch:ba,Rotate:Sa,Press:Ea,on:S,off:C,each:d,merge:g,extend:y,assign:p,inherit:T,bindFn:I,prefixed:he});var Ag=typeof e<"u"?e:typeof self<"u"?self:{};Ag.Hammer=Sn,typeof r=="function"&&r.amd?r(function(){return Sn}):t.exports?t.exports=Sn:e[s]=Sn}(window,document,"Hammer")})(lg);var XO=lg.exports;const nl=Um(XO);function cg(t){return jl()?(Fh(t),!0):!1}function eu(t){return typeof t=="function"?t():B(t)}const JO=typeof window<"u"&&typeof document<"u",Oh=()=>{};function QO(t,e){function n(...s){return new Promise((r,i)=>{Promise.resolve(t(()=>e.apply(this,s),{fn:e,thisArg:this,args:s})).then(r).catch(i)})}return n}function eD(t,e=!0,n=!0,s=!1){let r=0,i,o=!0,a=Oh,l;const c=()=>{i&&(clearTimeout(i),i=void 0,a(),a=Oh)};return f=>{const h=eu(t),d=Date.now()-r,m=()=>l=f();return c(),h<=0?(r=Date.now(),m()):(d>h&&(n||!o)?(r=Date.now(),m()):e&&(l=new Promise((p,y)=>{a=s?y:p,i=setTimeout(()=>{r=Date.now(),o=!0,p(m()),c()},Math.max(0,h-d))})),!n&&!i&&(i=setTimeout(()=>o=!0,h)),o=!1,l)}}function tD(t,e=200,n=!1,s=!0,r=!1){return QO(eD(e,n,s,r),t)}function Dh(t){var e;const n=eu(t);return(e=n==null?void 0:n.$el)!=null?e:n}const ug=JO?window:void 0;function nD(){const t=ce(!1);return Md()&&os(()=>{t.value=!0}),t}function fg(t){const e=nD();return x(()=>(e.value,!!t()))}function kh(t,e={}){const{window:n=ug}=e,s=fg(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const i=ce(!1),o=c=>{i.value=c.matches},a=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",o):r.removeListener(o))},l=As(()=>{s.value&&(a(),r=n.matchMedia(eu(t)),"addEventListener"in r?r.addEventListener("change",o):r.addListener(o),i.value=r.matches)});return cg(()=>{l(),a(),r=void 0}),i}function sD(t,e,n={}){const{window:s=ug,...r}=n;let i;const o=fg(()=>s&&"ResizeObserver"in s),a=()=>{i&&(i.disconnect(),i=void 0)},l=x(()=>Array.isArray(t)?t.map(f=>Dh(f)):[Dh(t)]),c=He(l,f=>{if(a(),o.value&&s){i=new ResizeObserver(e);for(const h of f)h&&i.observe(h,r)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{a(),c()};return cg(u),{isSupported:o,stop:u}}const rD=(t,e=()=>{})=>{const n=xe();let s=()=>{};const r=ce(!1);let i=null,o,a,l,c,u=ce(),f,h,d;const m=ya(),p=x(()=>u.value!==void 0);let y;const g=L=>{if(L.preventDefault(),t.value.offsetLeft,t.value.scrollLeft,i){const re=o+c-L.center.y;let he=L.scale;if(i*he>Mo&&(he=1),he!==1&&n.setPageScale(i*L.scale)){const de=a+l-L.center.x;t.value.scrollLeft=de,t.value.scrollTop=re,e()}}else{r.value=!0,i=n.pageScale,o=t.value.scrollTop,a=t.value.scrollLeft,l=L.center.x,c=L.center.y;const re=n.dateFromClientLeft(l),he=n.distanceBetweenDates(re,n.referenceDate);n.referenceDate=re,a=t.value.scrollLeft+he,t.value.scrollLeft=a}},T=L=>{L.preventDefault(),r.value=!1,i=null,a=null,o=null,l=null,c=null},b={startGesture:L=>{if(r.value=!0,!i){i=n.pageScale,o=t.value.scrollTop,a=t.value.scrollLeft,l=L.origin.x-(t.value.offsetLeft+n.leftInsetWidth),c=L.origin.y;const re=n.dateFromClientLeft(L.origin.x),he=n.distanceBetweenDates(re,n.referenceDate);n.referenceDate=re,t.value.scrollLeft=t.value.scrollLeft+he}},doGesture:L=>{const re=i*L.scale;if(!(re>Mo)){if(r.value=!0,n.setPageScale(re)){const he=o+c-L.origin.y;t.value.scrollTop=he,e()}i=null,a=null,o=null,l=null,c=null,r.value=!1,s()}}},S=L=>{L.touches.length>=2&&(y.get("pinch").set({enable:!0}),L.preventDefault())},C=L=>{L.touches.length<=2&&y.get("pinch").set({enable:!1})},D=L=>{m.canPan&&typeof u.value>"u"&&(L.preventDefault(),h=t.value.scrollLeft,d=t.value.scrollTop,u.value=L.srcEvent.clientX,f=L.srcEvent.clientY)},A=L=>{!m.canPan||!u.value||L.isFinal||(t.value.scrollLeft=h+u.value-L.srcEvent.clientX,t.value.scrollTop=d+f-L.srcEvent.clientY)},z=L=>{u.value=void 0,f=void 0,h=void 0,d=void 0},X=()=>{y=new nl.Manager(t.value,{recognizers:[[nl.Pinch,{enable:!0,touchAction:"pan-x pan-y"}],[nl.Pan,{enable:!0}]]}),y.on("pinch",tD(L=>g(L),40,!1,!0)),y.on("pinchend",T),y.on("panstart",D),y.on("pan",A),y.on("panend",z)};return os(()=>{s=GO(t.value,b),X()}),Yo(()=>{var L,re;(L=t.value)==null||L.removeEventListener("touchstart",S),(re=t.value)==null||re.removeEventListener("touchend",C)}),{isZooming:r,isPanning:p}},iD=t=>{const e=ga(),n=xe(),s=ce(0),r=a=>{s.value=a.clientX},i=a=>{const l=e.rangeFromOffsetLeft(a),c=e.markers.find(u=>+l[0].dateTime==+u.dateTime);e.setHoveringMarker(c),e.setRange(l)};He(s,i);const o=()=>i(s.value);return He(()=>n.pageScale,o),os(()=>{var a;return(a=t.value)==null?void 0:a.addEventListener("mousemove",r)}),Yo(()=>{var a;return(a=t.value)==null?void 0:a.removeEventListener("mousemove",r)}),{trigger:o}};const oD=t=>{const e=xe(),n=x(()=>e.transformedEvents),s=ce();return As(()=>{if(!t){s.value=void 0;return}const r=B(t);if(!r){s.value=void 0;return}let i;i=n.value,s.value=i?Ac(i,r):void 0}),s},aD=["d","fill","stroke","stroke-width"],lD=["x","y"],cD=V("tspan",{class:"svgDateText"},"  ",-1),uD={key:0,class:"svgDateText"},fD={key:1,class:"svgEventTitle"},hD=ke({__name:"EventRowSvg",props:{node:{},path:{},numChildren:{},numAbove:{},totalHeight:{},totalWidth:{},height:{},earliestTime:{},latestTime:{},heightUnit:{},dark:{type:Boolean},scale:{},showDateText:{type:Boolean},showEventTitles:{type:Boolean},rowHeight:{},roundedLeft:{type:Boolean},roundedRight:{type:Boolean}},setup(t,{expose:e}){const n=t,{scalelessDistanceBetweenDates:s}=xe(),{color:r,eventRange:i,dateText:o}=ag(x(()=>n.node)),a=x(()=>mt(i.value)),l=x(()=>n.node.value.recurrence),c=x(()=>(l.value?qc(a.value,l.value,is):[a.value]).map(w=>s(n.earliestTime,w.fromDateTime)*n.scale)),u=x(()=>s(a.value.fromDateTime,a.value.toDateTime)*n.scale),f=x(()=>n.height/n.totalHeight*n.totalWidth),h=x(()=>f.value+n.totalWidth/n.totalHeight),d=x(()=>h.value-n.heightUnit/(4*n.rowHeight/3)),m=x(()=>f.value+n.heightUnit/(4*n.rowHeight/3)),p=w=>{const b=(d.value-m.value)/2,S=n.roundedRight?`A ${b} ${b} 0 0 0`:"L",C=n.roundedLeft?`A ${b} ${b} 0 0 0`:"L";return`M ${w+u.value} ${d.value} ${S} ${w+u.value} ${m.value} L ${w} ${m.value} ${C} ${w} ${d.value} Z`},y=x(()=>c.value[c.value.length-1]+u.value),g=ce(),T=()=>{var w;return y.value+(((w=g.value)==null?void 0:w.getComputedTextLength())||0)},I=x(()=>n.heightUnit/10);return e({getRightmostX:T}),(w,b)=>(ne(),pe(Pe,null,[(ne(!0),pe(Pe,null,un(c.value,S=>(ne(),pe("path",{"fill-rule":"evenodd",d:p(S),fill:`rgba(${B(r)||(w.dark?"255, 255, 255":"0, 0, 0")}, 0.8)`,stroke:`rgb(${B(r)||(w.dark?"255, 255, 255":"0, 0, 0")})`,"stroke-width":I.value},null,8,aD))),256)),V("text",{x:y.value,y:d.value,ref_key:"text",ref:g},[cD,w.showDateText?(ne(),pe("tspan",uD,"  "+pt(B(o)),1)):Ue("",!0),w.showEventTitles?(ne(),pe("tspan",fD,"  "+pt(w.node.value.eventDescription.eventDescription),1)):Ue("",!0)],8,lD)],64))}}),dD=["stroke","stroke-dasharray","stroke-width","d"],mD=["x","y"],pD=ke({__name:"MarkersSvg",props:{showMarkers:{},earliestTime:{},latestTime:{},scale:{},totalWidth:{},heightUnit:{},startY:{},dark:{type:Boolean}},setup(t){const e=t,s=xe().scalelessDistanceBetweenDates,r=u=>s(e.earliestTime,u)*e.scale,i=x(()=>e.showMarkers&&["minute","quarterhour","hour","day","month","year","decade"].find(u=>{var f,h;return!!e.showMarkers[u]&&(((f=e.showMarkers[u])==null?void 0:f.label)||((h=e.showMarkers[u])==null?void 0:h.marker))})),o=x(()=>{if(!i.value)return;const u=Ms(e.earliestTime,i.value),f=ei(e.latestTime,i.value);let h=u,d=[h];for(;+h<+f&&d.length<256;){let m={[i.value]:1};i.value==="decade"?m={years:10}:i.value==="quarterhour"&&(m={minutes:15}),h=h.plus(m),d.push(h)}return d}),a=x(()=>e.totalWidth+e.heightUnit*4),l=u=>["minute","quarterhour","hour","day","month","year","decade"].indexOf(u)+2,c=u=>ig[l(i.value)][$l(u)](u);return(u,f)=>(ne(!0),pe(Pe,null,un(o.value,h=>(ne(),pe(Pe,null,[V("path",{stroke:`rgba(${u.dark?"200, 200, 200":"100, 100, 100"}, 0.15)`,"stroke-dasharray":`${u.heightUnit/5},${u.heightUnit/10}`,"stroke-width":u.heightUnit/10,d:`M ${r(h)} ${u.startY} L ${r(h)} ${a.value}`},null,8,dD),V("text",{class:"svgMarkerText",x:r(h)+u.heightUnit/4,y:u.startY*1.5+u.heightUnit/4},pt(c(h)),9,mD)],64))),256))}}),gD=["viewBox"],yD=["x","width","height","fill"],vD=ke({__name:"SvgView",props:{diffScale:{},dark:{type:Boolean},bg:{},showViewport:{type:Boolean},scale:{},showDateText:{type:Boolean},showEventTitles:{type:Boolean},rowHeight:{},roundedRight:{type:Boolean},roundedLeft:{type:Boolean},showMarkers:{},eras:{}},setup(t,{expose:e}){const n=t,s=_i(),r=Ls(),i=(b,S,C="hours")=>S.diff(b).as(C),o=x(()=>(n.eras||[]).map(b=>({left:"left"in b?b.left:i(h.value,b.dateRange.fromDateTime),width:"width"in b?b.width:i(b.dateRange.fromDateTime,b.dateRange.toDateTime)}))),a=x(()=>n.scale||1),l=x(()=>Cs(s.nodes,is)||{fromDateTime:U.now(),toDateTime:U.now()}),c=x(()=>i(l.value.fromDateTime,l.value.toDateTime)),u=ce(c.value),f=x(()=>c.value/s.height),h=x(()=>l.value.fromDateTime),d=x(()=>l.value.toDateTime),m=(b,S)=>({node:S,path:b.join(","),numChildren:s.childrenMap.get(b.join(","))||0,numAbove:s.predecessorMap.get(b.join(","))||0,totalHeight:s.height,totalWidth:c.value,height:s.predecessorMap.get(b.join(","))+1,heightUnit:f.value,earliestTime:h.value,latestTime:d.value,dark:n.dark,scale:a.value,showDateText:n.showDateText,showEventTitles:n.showEventTitles,rowHeight:n.rowHeight,roundedLeft:n.roundedLeft,roundedRight:n.roundedRight}),p=ce(),y=()=>{if(!p.value)return 0;let b=0;for(let S=0;S<p.value.length;S++){const C=p.value[S].getRightmostX();C>b&&(b=C)}return b};e({getRightmostX:y});const g=()=>{u.value=y()+f.value*2};He(n,b=>{rn(()=>g())});const T=x(()=>f.value/1.5*n.rowHeight/3),I=x(()=>-f.value),w=x(()=>f.value);return os(()=>g()),(b,S)=>(ne(),pe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`${I.value} ${w.value} ${u.value} ${(b.rowHeight+2)*B(s).height}`,fill:"currentColor",preserveAspectRatio:"xMinYMin meet",class:"w-full h-full"},[V("svg:style",null," .svgDateText { font: bold "+pt(T.value)+"px system-ui; fill: #93979a; } .svgEventTitle { font: normal "+pt(T.value)+"px system-ui; fill: "+pt(b.dark?"white":"black")+"; } .svgMarkerText { font: normal "+pt(T.value)+"px system-ui; fill: #93979a; } ",1),_e(pD,{showMarkers:b.showMarkers,earliestTime:h.value,latestTime:d.value,scale:a.value,totalWidth:c.value,heightUnit:f.value,startY:w.value,dark:b.dark},null,8,["showMarkers","earliestTime","latestTime","scale","totalWidth","heightUnit","startY","dark"]),(ne(!0),pe(Pe,null,un(B(s).nodeArray,({path:C,node:D},A)=>(ne(),pe(Pe,null,[B(Zt)(D)&&!B(r).isCollapsedChild(C)?(ne(),Ge(hD,ns({ref_for:!0,ref_key:"rows",ref:p,key:C.join(",")+D.value.dateText},m(C,D)),null,16)):Ue("",!0)],64))),256)),(ne(!0),pe(Pe,null,un(o.value,C=>(ne(),pe("rect",{x:C.left,y:0,width:C.width,height:f.value*(B(s).height+4),fill:`rgba(${b.dark?"255, 255, 255":"0, 0, 0"}, 0.1)`},null,8,yD))),256))],8,gD))}}),hg=t=>(ad("data-v-7653eab1"),t=t(),ld(),t),TD={key:0,class:"hintRight absolute -right-2 top-0 bottom-0 whitespace-nowrap flex items-center justify-center ml-2 bg-indigo-600 shadow-lg rounded px-2 font-bold text-white pointer-events-none",style:{transform:"translateX(100%)"}},wD={class:"z-10"},_D=hg(()=>V("div",{class:"absolute top-0 bottom-0 -left-[2px] rotate-45 bg-indigo-600 h-1/2 aspect-square translate-y-2/4 rounded shadow-sm"},null,-1)),bD={class:"z-10"},ED=hg(()=>V("div",{class:"absolute left-0 -bottom-[2px] rotate-45 bg-indigo-600 h-1/2 aspect-square translate-x-2/4 rounded shadow-sm"},null,-1)),SD=ke({__name:"HoverHint",props:{hovering:{type:Boolean},title:{},shortcut:{},hoverPosition:{default:"right"},left:{default:0}},setup(t){return(e,n)=>(ne(),Ge(jo,null,{default:gt(()=>[e.hovering&&e.hoverPosition==="right"?(ne(),pe("div",TD,[V("div",wD,pt(e.title),1),_D])):e.hovering&&e.hoverPosition==="top"?(ne(),pe("div",{key:1,class:"hintTop absolute -top-1 whitespace-nowrap flex items-center justify-center mb-2 bg-indigo-600 shadow-lg rounded px-2 font-bold text-white pointer-events-none",style:ze({transform:"translateY(-100%)",left:`${e.left?e.left:2}px`})},[V("div",bD,pt(e.title),1),ED],4)):Ue("",!0)]),_:1}))}});const ID=Rs(SD,[["__scopeId","data-v-7653eab1"]]),OD=()=>({isTouchscreen:kh("(pointer: course)"),canHover:kh("(hover)")}),zt=ke({__name:"SettingsButton",props:{hoverHintTitle:{},hoverHintShortcut:{},selected:{type:Boolean},hoverHintLeft:{}},emits:["click"],setup(t,{emit:e}){const n=ce(!1),{canHover:s}=OD(),r=s.value?{mouseover:()=>{n.value=!0},mouseleave:()=>{n.value=!1}}:{},i=()=>{n.value=!1,e("click")};return(o,a)=>(ne(),pe("button",ns({onClick:i,class:"p-1 flex flex-row items-center hover:bg-slate-200 transition dark:border-gray-900 dark:hover:bg-slate-600 dark:hover:text-gray-100 text-sm lg:text-base font-bold relative shrink-0"},tc(B(r),!0),{onMousedown:a[0]||(a[0]=_t(()=>{},["stop"])),onTouchstart:a[1]||(a[1]=_t(()=>{},["stop"])),class:{"text-indigo-600 outline-2 outline outline-indigo-600 dark:text-indigo-400 dark:outline-indigo-400":o.selected}}),[gd(o.$slots,"default"),o.hoverHintTitle?(ne(),Ge(ID,{key:0,"hover-position":"top",hovering:n.value,title:o.hoverHintTitle,shortcut:o.hoverHintShortcut,left:o.hoverHintLeft},null,8,["hovering","title","shortcut","left"])):Ue("",!0)],16))}}),dg=t=>(ad("data-v-8aa586c7"),t=t(),ld(),t),DD=dg(()=>V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"w-4 h-4","stroke-width":"1",stroke:"currentColor"},[V("path",{"fill-rule":"evenodd",d:"M3 10a.75.75 0 01.75-.75h10.5a.75.75 0 010 1.5H3.75A.75.75 0 013 10z","clip-rule":"evenodd"})],-1)),kD=dg(()=>V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"w-4 h-4","stroke-width":"1",stroke:"currentColor"},[V("path",{d:"M10.75 4.75a.75.75 0 00-1.5 0v4.5h-4.5a.75.75 0 000 1.5h4.5v4.5a.75.75 0 001.5 0v-4.5h4.5a.75.75 0 000-1.5h-4.5v-4.5z"})],-1)),MD={class:"flex-col hidden lg:flex items-center justify-center flex-shrink px-1"},CD=["value","onMousedown","onMouseup","onTouchstart","on:touchEnd"],AD=ke({__name:"TimelineScale",setup(t){const e=xe();function n(y){let g=0,T=1e3,I=Math.log(dh);const b=(Math.log(Mo)-I)/(T-g);return(Math.log(y)-I)/b+g}const s=ce(n(e.pageScale)),r=y=>e.setPageScale(y);He(()=>e.pageSettings.scale,y=>s.value=n(y));const i=y=>{const g=parseInt(y.target.value);let T=0,I=1e3,w=Math.log(dh);const S=(Math.log(Mo)-w)/(I-T),C=Math.exp(w+S*(g-T));r(C)},o=()=>e.setStartedWidthChange(!0),a=()=>e.setStartedWidthChange(!1);let l,c;const u=ce(!1),f=ce(!1);He(u,y=>{if(y){e.setStartedWidthChange(!0);const g=()=>{rn(()=>{e.setPageScale(e.pageScale*1.05)}),l=setTimeout(g,10)};g()}else clearTimeout(l),e.setStartedWidthChange(!1)}),He(f,y=>{if(y){e.setStartedWidthChange(!0);const g=()=>{rn(()=>{e.setPageScale(e.pageScale*.95)}),c=setTimeout(g,10)};g()}else clearTimeout(c),e.setStartedWidthChange(!1)});const h=y=>{f.value=!0,u.value=!1},d=y=>{f.value=!1,u.value=!1},m=y=>{u.value=!0,f.value=!1},p=y=>{f.value=!1,u.value=!1};return(y,g)=>(ne(),pe(Pe,null,[_e(zt,{onMousedown:_t(h,["stop"]),onTouchstart:_t(h,["stop"]),onMouseup:d,onTouchend:d,onMouseout:d,onMouseleave:d,"hover-hint-title":"Zoom out"},{default:gt(()=>[DD]),_:1},8,["onMousedown","onTouchstart"]),_e(zt,{onMousedown:_t(m,["stop"]),onTouchstart:_t(m,["stop"]),onMouseup:p,onTouchend:p,onMouseout:p,onMouseleave:p,"hover-hint-title":"Zoom in"},{default:gt(()=>[kD]),_:1},8,["onMousedown","onTouchstart"]),V("div",MD,[V("input",{type:"range",min:"0",max:"800",style:{width:"5rem",height:"1.125rem"},value:s.value,onInput:i,class:"bg-transparent flex-shrink",onMousedown:_t(o,["stop"]),onMouseup:_t(a,["stop"]),onTouchstart:_t(o,["stop"]),"on:touchEnd":_t(a,["stop"])},null,40,CD)])],64))}});const ND=Rs(AD,[["__scopeId","data-v-8aa586c7"]]),xD=V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",width:"40",height:"40",viewBox:"0 0 24 24",stroke:"currentColor",fill:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1"},[V("path",{d:"m 3 5 v 3 c 0 0.55 0.45 1 1 1 s 1 -0.45 1 -1 v -2 c 0 -0.55 0.45 -1 1 -1 h 2 c 0.55 0 1 -0.45 1 -1 s -0.45 -1 -1 -1 h -3 c -1.1 0 -2 0.9 -2 2 z m 1 10 c -0.55 0 -1 0.45 -1 1 v 3 c 0 1.1 0.9 2 2 2 h 3 c 0.55 0 1 -0.45 1 -1 s -0.45 -1 -1 -1 h -2 c -0.55 0 -1 -0.45 -1 -1 v -2 c 0 -0.55 -0.45 -1 -1 -1 z m 15 3 c 0 0.55 -0.45 1 -1 1 h -2 c -0.55 0 -1 0.45 -1 1 s 0.45 1 1 1 h 3 c 1.1 0 2 -0.9 2 -2 v -3 c 0 -0.55 -0.45 -1 -1 -1 s -1 0.45 -1 1 v 2 z m 0 -15 h -3 c -0.55 0 -1 0.45 -1 1 s 0.45 1 1 1 h 2 c 0.55 0 1 0.45 1 1 v 2 c 0 0.55 0.45 1 1 1 s 1 -0.45 1 -1 v -3 c 0 -1.1 -0.9 -2 -2 -2 z"}),V("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})],-1),LD=ke({__name:"AutoCenter",setup(t){const{autoCenter:e}=xe();return(n,s)=>(ne(),Ge(zt,{onClick:B(e),"hover-hint-title":"Center"},{default:gt(()=>[xD]),_:1},8,["onClick"]))}}),RD=V("svg",{class:"h-4 w-4",focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor","stroke-width":"1",stroke:"currentColor"},[V("path",{d:"M8.12 19.3c.39.39 1.02.39 1.41 0L12 16.83l2.47 2.47c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-3.17-3.17a.9959.9959 0 0 0-1.41 0l-3.17 3.17c-.4.38-.4 1.02-.01 1.41zm7.76-14.6a.9959.9959 0 0 0-1.41 0L12 7.17 9.53 4.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.03 0 1.42l3.17 3.17c.39.39 1.02.39 1.41 0l3.17-3.17c.4-.39.4-1.03.01-1.42z"})],-1),PD=ke({__name:"CollapseAll",setup(t){const e=Ls(),n=()=>e.collapseAll();return(s,r)=>(ne(),Ge(zt,{"hover-hint-title":"Collapse all",onClick:n},{default:gt(()=>[RD]),_:1}))}}),$D=V("svg",{class:"h-4 w-4",focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor","stroke-width":"1"},[V("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"})],-1),FD=ke({__name:"ExpandAll",setup(t){const e=Ls(),n=()=>e.expandAll();return(s,r)=>(ne(),Ge(zt,{"hover-hint-title":"Expand all",onClick:n},{default:gt(()=>[$D]),_:1}))}}),zD=V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",class:"h-4 w-4"},[V("path",{fill:"currentColor",d:"m 14 13 h -3 c -0.55 0 -1 -0.45 -1 -1 s 0.45 -1 1 -1 h 3 c 0.55 0 1 0.45 1 1 s -0.45 1 -1 1 z m 0 -4 h -5 c -0.55 0 -1 -0.45 -1 -1 s 0.45 -1 1 -1 h 5 c 0.55 0 1 0.45 1 1 s -0.45 1 -1 1 z m -6 -4 h -1 c -0.55 0 -1 -0.45 -1 -1 s 0.45 -1 1 -1 h 2 c 0.55 0 1 0.45 1 1 s -0.45 1 -1 1 z M 2 4 L 2 12.5 A 1 1 0 0 0 3 13.5 L 3.5 13.5 A 1 1 0 0 0 4.5 12.5 L 4.5 3.5 A 1 1 0 0 0 3.5 2.5 L 3 2.5 A 1 1 0 0 0 2 3.5 Z"})],-1),YD=ke({__name:"ToggleMode",setup(t){const e=xe(),n=()=>{e.mode=e.mode==="gantt"?"timeline":"gantt"};return(s,r)=>(ne(),Ge(zt,{"hover-hint-title":"Gantt",onClick:n,selected:B(e).mode==="gantt"},{default:gt(()=>[zD]),_:1},8,["selected"]))}}),UD=V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 2 17 12",class:"h-4 w-4"},[V("path",{d:"m 2 3 a 1 1 0 0 0 0 2 h 11 a 1 1 0 1 0 0 -2 h -11 z m 1 4 a 1 1 0 0 0 0 2 h 11 a 1 1 0 0 0 0 -2 h -11 z m 1 4 a 1 1 0 1 0 0 2 h 11 a 1 1 0 1 0 0 -2 h -11 z",fill:"currentColor"}),V("path",{d:"M 9 1 L 9 15 L 11 15 L 11 1 L 11 1 Z",fill:"currentColor"})],-1),BD=ke({__name:"ToggleNowLine",setup(t){const e=xe(),n=()=>{e.setHideNowLine(!e.hideNowLine)};return(s,r)=>(ne(),Ge(zt,{title:"Toggle now line",hoverHintTitle:"Toggle now line",onClick:n},{default:gt(()=>[UD]),_:1}))}}),HD=V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",width:"40",height:"40",viewBox:"0 0 24 24","stroke-width":"2.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),V("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),V("path",{d:"M12 7v5l3 3"})],-1),jD=ke({__name:"ToggleDateTimeDisplay",setup(t){const e=xe(),n=()=>{e.dateTimeDisplay=e.dateTimeDisplay==="off"?"original":"off"};return(s,r)=>(ne(),Ge(zt,{onClick:n,"hover-hint-title":"Toggle date ranges"},{default:gt(()=>[HD]),_:1}))}}),WD=V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",width:"40",height:"40",viewBox:"0 0 24 24","stroke-width":"2.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[V("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),V("path",{d:"M9 11l3 3l8 -8"}),V("path",{d:"M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9"})],-1),VD=ke({__name:"ToggleShowProgress",setup(t){const e=xe(),n=()=>{e.progressDisplay=e.progressDisplay==="off"?"on":"off"};return(s,r)=>(ne(),Ge(zt,{onClick:n,"hover-hint-title":"Toggle progress indicator"},{default:gt(()=>[WD]),_:1}))}}),qD={class:"text-xs mt-px shrink-0"},KD=ke({__name:"UserRanges",setup(t){const e=kr(),n=xe(),s=x(()=>{var o;const r=(o=e.markwhen)==null?void 0:o.parsed[0].header.ranges,i=[];if(r&&Array.isArray(r)){const a=U.now();for(let l=0;l<r.length;l++){let c=r[l];const f=new RegExp(`^${$m.source}$`).exec(c);if(f){const h=parseInt(f[1]);if(isNaN(h))continue;const m={[f[3]?"milliseconds":f[4]?"seconds":f[5]?"minutes":f[6]?"hours":f[8]?"days":f[9]?"weeks":f[10]?"months":"years"]:h/2};i.push({title:c,fromDateTime:a.minus(m),toDateTime:a.plus(m)})}}}return i});return(r,i)=>(ne(!0),pe(Pe,null,un(s.value,o=>(ne(),Ge(zt,{onClick:a=>B(n).setRange(o)},{default:gt(()=>[V("span",qD,pt(o.title),1)]),_:2},1032,["onClick"]))),256))}}),ZD={class:"flex flex-row-items-center overflow-scroll noScrollBar relative"},GD={class:"flex flex-row gap-2 pt-8"},XD={class:"dark:bg-slate-800 bg-white flex flex-row gap-2 px-2"},JD={class:"flex flex row overflow-visible p-[2px] pointer-events-auto",style:{"grid-area":"gantt"}},QD={class:"flex flex-row pointer-events-auto shrink-0"},ek=V("svg",{class:"h-4 w-4",focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24","data-testid":"ModeStandbyIcon",fill:"currentColor",stroke:"currentColor","stroke-width":"0.4"},[V("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"})],-1),tk=V("span",{class:"text-xs mt-px"},"Now",-1),nk={class:"flex flex row overflow-visible p-[2px] pointer-events-auto"},sk={class:"overflow-visible p-[2px] pointer-events-auto flex flex-row"},rk={class:"overflow-visible p-[2px] pointer-events-auto flex flex-row"},ik={class:"flex flex row overflow-visible p-[2px] pointer-events-auto link"},ok=V("svg",{class:"w-3 h-3 mr-1","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor","stroke-width":"1"},[V("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})],-1),ak={class:"pr-1 font-mono text-xs",style:{"white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","max-width":"32ch"}},lk=V("svg",{class:"h-4 w-4",focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24","data-testid":"CodeIcon",fill:"currentColor",stroke:"currentColor","stroke-width":"1"},[V("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"})],-1),ck=["href"],uk=V("svg",{class:"h-4 w-4 mr-1",focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",fill:"currentColor"},[V("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"})],-1),fk=ke({__name:"Settings",setup(t){const e=xe(),n=kr(),s=x(()=>{let l=e.pageSettings.viewport.offsetLeft;return e.mode==="gantt"?l+(e.ganttSidebarTempWidth?e.ganttSidebarTempWidth:e.ganttSidebarWidth):l}),r=async(l,c)=>{if(!navigator.clipboard)return alert("Clipboard not available :/");try{await navigator.clipboard.writeText(l),alert(`Copied ${c}to clipboard.`)}catch(u){console.error(u),alert("Unable to copy to clipboard:"+u)}},i=async()=>r(n.timelineLink,"link "),o=async()=>r(n.embedLink,"embed code "),a=()=>e.goToNow();return(l,c)=>(ne(),pe("div",{class:"fixed hover:text-slate-700 dark:text-slate-400 text-slate-500 dark:hover:text-slate-300 mt-16",style:ze(`left: calc(${s.value}px); bottom: 0rem; right: 0;`)},[V("div",ZD,[V("div",GD,[V("div",XD,[V("div",JD,[_e(YD)]),V("div",QD,[_e(zt,{class:"gap-1",onClick:a},{default:gt(()=>[ek,tk]),_:1}),_e(KD),_e(LD)]),V("div",nk,[_e(ND)]),V("div",sk,[_e(jD),_e(VD)]),V("div",rk,[_e(FD),_e(PD),_e(BD)]),V("div",ik,[B(n).showCopyLinkButton?(ne(),Ge(zt,{key:0,"hover-hint-left":-1,"hover-hint-title":"Copy view link",onClick:i},{default:gt(()=>[ok,V("p",ak,pt(B(n).timelineLink.substring(8)),1)]),_:1})):Ue("",!0),B(n).showEmbedButton?(ne(),Ge(zt,{key:1,onClick:o,"hover-hint-left":1,"hover-hint-title":"Copy embed code"},{default:gt(()=>[lk]),_:1})):Ue("",!0),B(n).showEditButton?(ne(),pe("a",{key:2,href:B(n).editorLink,target:"_blank",class:"h-6 flex flex-row items-center rounded hover:bg-zinc-200 transition dark:border-gray-900 dark:hover:bg-gray-900 dark:hover:text-gray-100 px-1 text-sm lg:text-base font-bold relative"},[uk,kd("Open editor")],8,ck)):Ue("",!0)])])])])],4))}}),hk=ke({__name:"Timeline",setup(t){const e=xe(),n=kr();n.onJumpToRange=w=>{h(mt(w))},He(()=>e.rangeToJumpTo,w=>h(w,!1)),n.onJumpToPath=w=>{const b=oD(w).value;if(!b)return;const S=Zt(b)?qm(b).dateRangeIso:Cs(b,is);if(S&&(h("fromDateTimeIso"in S?mt(S):S),s.value&&w)){const C=s.value.scrollTop=og(w).top.value;s.value.scrollTop=C-m.value.height/2}},He(()=>e.autoCenterSemaphore,()=>{p()});const s=ce(),r=()=>s.value?{left:s.value.scrollLeft,width:s.value.clientWidth,top:s.value.scrollTop,height:s.value.clientHeight,offsetLeft:s.value.offsetLeft}:{left:0,width:0,top:0,height:0,offsetLeft:0},i=w=>{s.value&&(s.value.scrollLeft=w.left,s.value.scrollTop=w.top)};He(()=>e.pageSettings,w=>{const b={...w.viewport};rn(()=>i(b))});const o=ce(null),a=ce(null);He(()=>e.startedWidthChange,w=>{var S;const b=((S=s.value)==null?void 0:S.scrollLeft)||0;o.value=w?b??null:null,a.value=e.pageSettings.scale}),He(()=>e.pageSettings,w=>{!e.startedWidthChange||!s.value||(o.value+s.value.clientWidth/2,w.scale/(a.value||1))},{deep:!0}),He([()=>e.pageTimelineMetadata.earliestTime,()=>e.pageTimelineMetadata.latestTime],()=>{rn(l)}),sD(s,w=>{e.referenceDate=e.dateFromClientLeft(w[0].target.clientLeft+w[0].target.clientWidth/2),s.value.scrollLeft=s.value.clientWidth*2,rn(l)});const l=()=>e.setViewport(r()),{trigger:c}=iD(s);let u=()=>{};rD(s,()=>{l()});const f=(w,b=!1,S=!1)=>{e.referenceDate=w,s.value.scrollLeft=s.value.clientWidth*2},h=(w,b=!0)=>{if(!w)return;const{width:S}=r(),C=Jp(S,w)/(b?3:1);e.setPageScale(C),rn(()=>{f(Gp(w),!0,!0),l()})},d=()=>f(U.now(),!0);He([()=>e.hideNowLine,()=>e.goToNowSemaphore],()=>d());const m=x(()=>e.pageSettings.viewport);dd(()=>{var b;const w={left:m.value.left,top:m.value.top,width:m.value.width,height:m.value.height,offsetLeft:((b=s.value)==null?void 0:b.offsetLeft)||0};rn(()=>i(w))});const p=()=>h(e.pageRange);os(()=>{e.setViewportGetter(r);const w=s.value;w.scrollLeft=w.clientWidth*2,u=()=>{const b=w.scrollLeft,S={[wt]:w.clientWidth*1.5/e.pageScale*24};b<w.clientWidth/2?(e.referenceDate=e.referenceDate.minus(S),w.scrollLeft=w.clientWidth*2):b>w.clientWidth*3.5&&(e.referenceDate=e.referenceDate.plus(S),w.scrollLeft=w.clientWidth*2),l(),c()}});const y=ce(),g=ce(),T=ce(),I=x(()=>{const w=Cs(e.transformedEvents,is)||{fromDateTime:U.now(),toDateTime:U.now()};return e.scalelessDistanceBetweenDates(w.fromDateTime,w.toDateTime)});return n.onGetSvg=w=>(y.value={diffScale:"hours",showViewport:!1,...w},new Promise((b,S)=>{setTimeout(()=>{var C;if((C=g.value)!=null&&C.firstChild){const D=T.value.getRightmostX(),A=I.value,z=D/A,X=new XMLSerializer().serializeToString(g.value.firstChild);b({svg:X,ratio:z})}b(null)},500)})),ce("auto"),(w,b)=>(ne(),pe("div",{class:ut(["flex flex-row w-full h-full",B(e).darkMode?"dark":""])},[V("div",{id:"timeline",class:"relative overflow-auto w-full dark:text-white text-gray-900 bg-white dark:bg-slate-800",ref_key:"timelineElement",ref:s,onScroll:b[0]||(b[0]=(...S)=>B(u)&&B(u)(...S)),"on:gestureChange":b[1]||(b[1]=(...S)=>B(u)&&B(u)(...S))},[_e(bI),_e(EI),Ue("",!0),_e(KO),_e(fk),V("div",{ref_key:"svgHolder",ref:g,style:{width:"0",height:"0"}},[y.value?(ne(),Ge(vD,ns({key:0},y.value,{ref_key:"svgView",ref:T}),null,16)):Ue("",!0)],512)],544)],2))}}),mg=ke({__name:"App",setup(t){const e=kr();return(n,s)=>B(e).markwhen?(ne(),Ge(hk,{key:0})):Ue("",!0)}});const dk=nI({history:vS("/"),routes:[{path:"/:user?/:timeline?",name:"home",component:mg}]}),tu=s0(mg),mk=o0();tu.use(dk);tu.use(mk);tu.mount("#app");

</script>
    <style>
.timeMarkerShader{z-index:-1;background:linear-gradient(to bottom,#ffffff,85%,#ffffff00)}.dark .timeMarkerShader{background:linear-gradient(to bottom,rgb(51,65,85),85%,#38404700)}.eventBar[data-v-cc05e6c2]{grid-row:1;grid-column:1}.fade-enter-active[data-v-39c803d6],.fade-leave-active[data-v-39c803d6]{transition:opacity .2s cubic-bezier(.4,0,.2,1)}.fade-enter-from[data-v-39c803d6],.fade-leave-to[data-v-39c803d6]{opacity:0}.photoBar[data-v-6f9379ba]{width:10px}.eventRow[data-v-6f9379ba]{padding-top:2px;padding-bottom:2px}.eventDate[data-v-6f9379ba]{font-family:system-ui;margin:0 0 0 8px}.source[data-v-6f9379ba]{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.eventTitle[data-v-6f9379ba]{font-family:system-ui;grid-row:1;grid-column:3}.eventBarAndTitle[data-v-6f9379ba]{grid-row:1;grid-column:1 / 4}.eventDate[data-v-6f9379ba]{grid-row:1;grid-column:2}.eventMeta[data-v-6f9379ba]{grid-row:2;grid-column:3 / -1}.eventItem[data-v-6f9379ba]{display:grid;grid-template-columns:repeat(4,auto);grid-template-rows:repeat(2,auto)}.eventTitle[data-v-a5548532]{font-family:system-ui}td[data-v-2d239466]{padding-left:.25rem;padding-right:.25rem}.hintRight.v-enter-active[data-v-7653eab1],.hintRight.v-leave-active[data-v-7653eab1]{transition:opacity .15s ease-in-out,transform .15s ease-in-out;transform:translate(100%)!important}.hintRight.v-enter-from[data-v-7653eab1],.hintRight.v-leave-to[data-v-7653eab1]{transition:opacity .15s ease-in-out,transform .15s ease-in-out;opacity:0;transform:translate(calc(100% + 4px))!important}.hintTop.v-enter-active[data-v-7653eab1],.hintTop.v-leave-active[data-v-7653eab1]{transition:opacity .15s ease-in-out,transform .15s ease-in-out;transform:translateY(-100%)!important}.hintTop.v-enter-from[data-v-7653eab1],.hintTop.v-leave-to[data-v-7653eab1]{transition:opacity .15s ease-in-out,transform .15s ease-in-out;opacity:0;transform:translateY(calc(-100% + 4px))!important}input[type=range][data-v-8aa586c7]{-webkit-appearance:none}input[type=range][data-v-8aa586c7]:hover::-webkit-slider-runnable-track{background:currentColor;-webkit-transition:.15s all;transition:.15s all;border-radius:5px;height:4px}input[type=range][data-v-8aa586c7]:focus{outline:none}input[type=range][data-v-8aa586c7]::-webkit-slider-runnable-track{background:currentColor;-webkit-transition:.15s all;transition:.15s all;height:4px;border-radius:5px}input[type=range][data-v-8aa586c7]::-moz-range-track{background:currentColor;-moz-transition:.15s all;transition:.15s all;height:4px;border-radius:5px}input[type=range][data-v-8aa586c7]::-webkit-slider-thumb{-webkit-appearance:none;height:12px;width:12px;background:currentColor;margin-top:-4px;border-radius:50%;box-shadow:0 1px 6px #00000063}input[type=range][data-v-8aa586c7]::-moz-range-thumb{height:15px;width:15px;background:currentColor;margin-top:-5px;border-radius:50%;box-shadow:0 1px 6px #00000063;border:none}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-\[2px\]{bottom:-2px}.-left-\[2px\]{left:-2px}.-right-2{right:-.5rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.right-0{right:0}.right-8{right:2rem}.top-0{top:0}.top-8{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[2\]{z-index:2}.z-\[4\]{z-index:4}.z-\[5\]{z-index:5}.-m-px{margin:-1px}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.mb-2{margin-bottom:.5rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-8{margin-right:2rem}.mr-\[2px\]{margin-right:2px}.mt-16{margin-top:4rem}.mt-px{margin-top:1px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1\/2{height:50%}.h-2{height:.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-\[10px\]{height:10px}.h-\[30px\]{height:30px}.h-full{height:100%}.w-1{width:.25rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-\[2px\]{width:2px}.w-full{width:100%}.w-px{width:1px}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.translate-x-2\/4{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2\/4{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-crosshair{cursor:crosshair}.cursor-default{cursor:default}.cursor-ew-resize{cursor:ew-resize}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-auto{overflow:auto}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-x-scroll{overflow-x:scroll}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\[14px\]{border-radius:14px}.rounded-full{border-radius:9999px}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-400\/25{border-color:#9ca3af40}.border-gray-500\/50{border-color:#6b728080}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-indigo-500\/50{border-color:#6366f180}.border-indigo-500\/75{border-color:#6366f1bf}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.border-inherit{border-color:inherit}.border-slate-100{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity))}.border-slate-500{--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity))}.border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-300\/50{background-color:#d1d5db80}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.bg-red-300{--tw-bg-opacity: 1;background-color:rgb(252 165 165 / var(--tw-bg-opacity))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.bg-slate-400\/10{background-color:#94a3b81a}.bg-slate-400\/25{background-color:#94a3b840}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/95{background-color:#fffffff2}.bg-opacity-10{--tw-bg-opacity: .1}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-50{--tw-bg-opacity: .5}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-\[2px\]{padding:2px}.p-px{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-px{padding-left:1px;padding-right:1px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-px{padding-top:1px;padding-bottom:1px}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pr-1{padding-right:.25rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.pt-px{padding-top:1px}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-indigo-400{outline-color:#818cf8}.outline-indigo-600{outline-color:#4f46e5}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-indigo-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root,body,#app{width:100%;height:100%}html,body{height:100%;font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;mix-blend-mode:multiply;padding:0!important}.noScrollBar::-webkit-scrollbar{display:none}.dark{color-scheme:dark}.noScrollBar{scrollbar-width:none}button{-webkit-tap-highlight-color:transparent}.safeBottomPadding{padding-bottom:env(safe-area-inset-bottom)}.hover\:w-1:hover{width:.25rem}.hover\:border-slate-100:hover{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity))}.hover\:bg-indigo-600:hover{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.hover\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.hover\:bg-slate-50:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.hover\:bg-zinc-200:hover{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity))}.hover\:text-black:hover{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.hover\:text-slate-700:hover{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.hover\:shadow:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:transition:hover{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.disabled\:text-gray-300:disabled{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:border-gray-300){--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-400){--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-400\/25){border-color:#9ca3af40}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900\/25){border-color:#11182740}:is(.dark .dark\:border-indigo-600){--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}:is(.dark .dark\:border-slate-400){--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-slate-500){--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity))}:is(.dark .dark\:border-slate-600){--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity))}:is(.dark .dark\:border-slate-700){--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300\/10){background-color:#d1d5db1a}:is(.dark .dark\:bg-gray-400){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-400){--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-700){--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-slate-400){--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-slate-400\/10){background-color:#94a3b81a}:is(.dark .dark\:bg-slate-600){--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-slate-800){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-slate-800\/95){background-color:#1e293bf2}:is(.dark .dark\:bg-slate-900){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-20){--tw-bg-opacity: .2}:is(.dark .dark\:bg-opacity-30){--tw-bg-opacity: .3}:is(.dark .dark\:bg-opacity-60){--tw-bg-opacity: .6}:is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-400){--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-orange-300){--tw-text-opacity: 1;color:rgb(253 186 116 / var(--tw-text-opacity))}:is(.dark .dark\:text-slate-100){--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity))}:is(.dark .dark\:text-slate-400){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:outline-indigo-400){outline-color:#818cf8}:is(.dark .dark\:ring-gray-400){--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-indigo-600){--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}:is(.dark .dark\:hover\:border-gray-600:hover){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:bg-gray-900:hover){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-indigo-600:hover){--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-slate-600:hover){--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-slate-700:hover){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:text-gray-100:hover){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-slate-100:hover){--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-slate-300:hover){--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity))}:is(.dark .disabled\:dark\:text-gray-600):disabled{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}@media (min-width: 1024px){.lg\:flex{display:flex}.lg\:text-base{font-size:1rem;line-height:1.5rem}}

</style>
  </head>
  <body>
    <div id="app"></div>
    
  </body>
</html>